Obtain the Linux UID of an Android App
Use PackageManager
and getApplicationInfo()
.
adb shell dumpsys package com.example.myapp | grep userId=
Use PackageManager
and getApplicationInfo()
.
adb shell dumpsys package com.example.myapp | grep userId=