Skip to content

Instantly share code, notes, and snippets.

@Aravinth-Earth
Created January 7, 2023 15:27
Show Gist options
  • Save Aravinth-Earth/354403ceab816ae8b51527a2dca50240 to your computer and use it in GitHub Desktop.
Save Aravinth-Earth/354403ceab816ae8b51527a2dca50240 to your computer and use it in GitHub Desktop.
Reinstall the pre-installed app in android phone
  1. make sure 'USB Debugging' is enabled in the android device
    1. if 'USB Debugging' is not enabled, follow below steps,
    2. go to 'Developer Options' in 'Android Settings'
      1. if 'Developer Options' is not available, follow below steps
      2. go to 'About section' in android settings
      3. then go to 'Software Details' section
      4. then find the 'Build Number' section
      5. click on it 6 or more times
      6. you may be prompted to enter your device 'Pin/Pattern' to confirm its the authenticated user
      7. once entered you have enabled 'Developer Options' in your android device
    3. scroll down to the section 'USB Debugging'
    4. then enable it by the switch option next to it
  2. connect you android device with a PC (using windows for this sample)
  3. there may be a prompt to allow 'USB Debugging', allow it
  4. open adb shell by following below steps
    1. open cmd
    2. navigate to adb installation folder, in windows usually its located in C:\Users\#YourUserName#\AppData\Local\Android\Sdk\platform-tools
    3. then type .\adb.exe shell and hit Enter
      1. if adb is not installed, follow below steps,
      2. download it from https://developer.android.com/studio/releases/platform-tools#downloads
      3. then install is with the default/needed location
  5. then type pm install-existing #appPackageName#
    1. to find the right package name, follow below steps
    2. got to the android app listings sites like https://www.apkmirror.com
    3. then find search for the app name
    4. then from the search details, click on the 'i' icon for the app details
    5. and then note down thw package name
      1. for example, com.samsung.android.app.contacts is the package name for Samsung Contacts App
  6. then you should see a user message as Package #appPackageName# installed for user: 0
  7. and that's it. you have successfully reinstalled the needed stock application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment