Skip to content

VRPirates/adb-package-migrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADB Package Migrator

A script to migrate installed packages between Android user profiles using ADB.

Description

This script lists all installed packages for a specified user profile on an Android device and installs those packages for another user profile. It utilizes ADB commands to achieve this.

Prerequisites

  • Python 3.x
  • ADB installed and configured
  • Android device connected via USB with USB debugging enabled

Usage

  1. Ensure ADB is Installed and Configured:

  2. Connect Your Android Device:

    • Connect your device to your computer via USB.
    • Enable USB debugging on your device (Settings > Developer options > USB debugging).
  3. Clone the Repository:

  4. Navigate to the Repository Folder:

    • Navigate to the cloned repository folder:
      cd adb-package-migrator
  5. Get the List of Users on the Device:

    • Use the following ADB command to list all users on the device:
      • Linux/Mac:
      ./adb.exe shell pm list users
      • Windows:
      adb.exe shell pm list users
    • Note down the user IDs for the profiles you want to migrate packages between.
  6. Edit the Script:

    • Open the move_packages.py file in a text editor or IDE.
    • Ensure the adb_path variable points to the correct path of adb.exe on your system.
  7. Run the Script:

    • Execute the script using Python:
      python move_packages.py <profile_id>

Example Execution

  • Example:
    python move_packages.py 10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages