Disable and unlock apps on multiple Android devices at the same time

1. Say it up front

        The method in this document needs to use ADB and Git. For the specific installation method, see: Simultaneous installation and uninstallation of applications on multiple Android devices

        After disabling the application, the application icon will not appear in the launcher, but the application still exists in the system, and the application can still be found through the application management in the settings (take the PICO headset as an example, the application icon will not appear in the unknown source However, the application can still be found through Settings-->General-->Application Management); after the application is unbanned, the application icon will resume display.

2. Multiple Android devices disable apps at the same time

        Use the batch processing method of Windows system to disable by traversing all the devices connected to the computer.

1. Create a bat file

        Create a new text document and change its suffix to bat.

2. Edit the bat file

        Right mouse button --> Edit. Write the following command in the open Notepad editor.

echo Disable Start
adb devices | tail -n +2 | cut -sf 1 | xargs -iX adb -s X shell pm disable-user 应用包名
echo Disable Finished

        Here, the second line is the main command, among them, "adb devices | tail -n +2 | cut -sf 1 | xargs -iX adb -s X" is used for traversing devices, "shell pm disable-user application package name" In order to disable the application, you can take it out and add adb in front of it and use it through the command line to disable the application in a single device; the first and third lines are only used to print information.

3. Run the bat file

        Place the bat file in any directory, then right-click in this directory to open Git Bash, drag the bat file to the command line with the mouse, and press Enter to run it. Wait for a period of time for all connected devices to disable good apps.

3. Multiple Android devices unblock apps at the same time

        Same as above to disable the application, just create a new bat file and write the following command.

echo Enable Start
adb devices | tail -n +2 | cut -sf 1 | xargs -iX adb -s X shell pm enable 应用包名
echo Enable Finished

Guess you like

Origin blog.csdn.net/qq_40364278/article/details/131596119