当前位置:网站首页>Use the adb command to manage applications

Use the adb command to manage applications

2022-08-11 06:35:00 rest of my life love static

Step 1: Upload the app

adb push push

Step 2: Install the app

adb shell pm install -t -r install

Step 3: View the package name

adb shell pm list package -fpm

Step 4: View the startup Activity class name

4-1: adb shell
4-2: dumpsys package
4-3:找到Category为Launcher的ActivityInsert image description here

insert image description here

Step 5: Launch the app

adb shell am start -n /insert image description here

Step 6: Uninstall the app

adb uninstall

PS: At work, you may encounter uninstalling applications under the system. If the above command does not work, you can try the following command: adb shell pm uninstall --user 0

原网站

版权声明
本文为[rest of my life love static]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/223/202208110515270726.html