使用adb shell可以直接运行某个activity,避免调试过程中修改Manifest文件.

exported

<activity android:name=".MainActivity"
    android:exported="true"
    android:label="@string/app_name"/>

2.使用命令am即可启动该activity

 > adb shell am start -n com.yusuzhan.xxx/.MainActivity

相关文章:

  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-10-16
  • 2021-11-30
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-21
  • 2022-02-03
  • 2022-01-23
  • 2021-11-16
  • 2022-12-23
相关资源
相似解决方案