adb命令启动Activity禁用APP

  • 启动命令:
    adb shell am start -n package/launch activity
    例如:

    1
    adb shell am start -n com.android.settings/.Settings
  • 关闭命令:
    adb shell am force-stop package
    例如:

    1
    adb shell am force-stop com.github.kolacbb.ids
  • 禁用应用

    1
    2
    adb shell pm disable-user com.android.vending
    adb shell pm enable com.android.vending