28-02-2019, 12:59 AM
For each android app you install on your phone, the android system will always automatically assign a userID to it. This tutorial will show how to check the package name and userID of installed android apps
Requirements
- Xplore || you could use an app manager such as link2sd, App inspector etc but Xplore doesn't require root and is kind of my favourite file manager
- Install adb and fastboot on your PC ; skip if you've already done so
- Download adb + grep
- Enable USB debugging on your android phone
Steps on how to check the package name of an installed android app
follow the steps below to check the package name of any installed android app
- You can use any app with app manager features e.g Xplore file manager or any other app you know / have
Steps on how to check the UserID or UID of an installed android app
follow the steps below to check the UserID or UID of any installed android app
To check the userId or UID, you must know the package name of the app you intent to check. The guide above already shows how to find package name- Connect your phone to the PC
- Extract the contents of adb + grep and open the folder
- Right click on any empty space within the folder then select 'open command prompt here' or 'open power shell here'
- When the command prompt or power shell window opens, type the command below and press the Enter key. If you get an error then repeat the command but remove "| grep userId"
Code:adb shell dumpsys package com.package.name | grep userId
e.g using link2sd
adb shell dumpsys package com.buak.Link2SD | grep userId
- You'll get an output like in the screenshot below, UserID or UID is the numbers. So on my phone, UserID of Link2SD app is 10085
Important Notice
- UID always changes each time you re-install an app, so best not to assume that the old UID will be the same after you're done reinstalling