Home Forum Blog Private Support Courses
Our courses are now on YouTube! Start Watching
Hovatek Forum OPERATING SYSTEMS Android [Tutorial] How to check installed android app package name and UID (UserID)

[Tutorial] How to check installed android app package name and UID (UserID)

[Tutorial] How to check installed android app package name and UID (UserID)

hovatek
hovatek
hovatek
Administrator
50,906
28-02-2019, 12:59 AM
#1



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



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

  1. You can use any app with app manager features e.g Xplore file manager or any other app you know / have

    [Image: how-to-check-the-package-name-of-an-inst...id-app.jpg]





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

  1. Connect your phone to the PC
  2. Extract the contents of adb + grep and open the folder
  3. Right click on any empty space within the folder then select 'open command prompt here' or 'open power shell here'

    [Image: how-to-check-the-UserID-or-UID-of-an-ins...-app-1.jpg]

  4. 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

    [Image: how-to-check-the-UserID-or-UID-of-an-ins...-app-2.jpg]

  5. 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

    [Image: how-to-check-the-UserID-or-UID-of-an-ins...-app-3.jpg]


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
This post was last modified: 06-04-2020, 09:52 AM by X3non.

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
mustysmart
mustysmart
mustysmart
Techie Member
65
16-07-2019, 09:41 PM
#2
Thanks so much sir but my question is that can we change the user ID?

Sent from my A1 lite using Tapatalk
hovatek
hovatek
hovatek
Administrator
50,906
17-07-2019, 10:35 AM
#3
(16-07-2019, 09:41 PM)mustysmart Thanks so much sir but my question is that can we change the user ID?

Sent from my A1 lite using Tapatalk

if you uninstall an app then re-install, it should get a new user ID
This post was last modified: 17-07-2019, 11:11 AM by X3non.

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Inevitable
Inevitable
Inevitable
Junior Member
18
23-07-2019, 09:41 AM
#4
Thanks. Don't add "| grep userId" after package name. It will end up with error.. It took me minutes to figure this out... I run a Windows 10 OS

Thanks for this guide hovatek. You guys are always there for us.
hovatek
hovatek
hovatek
Administrator
50,906
23-07-2019, 03:33 PM
#5

Mediatek Course Mediatek Course


(23-07-2019, 09:41 AM)Inevitable Thanks. Don't add "| grep userId" after package name. It will end up with error.. It took me minutes to figure this out... I run a Windows 10 OS

Thanks for this guide hovatek. You guys are always there for us.

thanks for feedback, hopefully it helps another
the guide was done on windows 10 too, did you use cmd prompt or powershell?

Learn MediaTek, Unisoc / Spreadtrum (SPD) and Qualcomm Software Repairs @ https://www.hovatek.com/training
Note!
We have a reply schedule for Forum Support. Please try Private Support if you can't wait.
Users browsing this thread:
 2 Guest(s)
Users browsing this thread:
 2 Guest(s)
WhTlYt