adb shell command to make Android package uninstall dialog appear

后端 未结 7 965
执笔经年
执笔经年 2020-12-07 08:30

I have adb running and device is connected to my system in debugging mode,

I want to uninstall app using intent launch using adb shell am start &l

7条回答
  •  隐瞒了意图╮
    2020-12-07 08:40

    Use this command in cmd:

    adb shell pm uninstall -k com.packagename

    For example:

    adb shell pm uninstall -k com.fedmich.pagexray
    

    The -k flag tells the package manager to keep the cache and data directories around, even though the app is removed. If you want a clean uninstall, don't specify -k.

提交回复
热议问题