2016-08-22 92 views

回答

3

對於以下工作對我來說無根設備:

在PC設置adb,將設備連接到PC,在PC上推出shell並輸入:

adb shell "dumpsys package | grep -A1 'userId=UID'" 

UID替換爲您要查找的ID,例如10102

實施例:

bash-4.2# adb shell "dumpsys package | grep -A1 'userId=10102'" 
    userId=10102 
    pkg=Package{46171ce com.android.chrome} 
bash-4.2# 

含有包裝{would show the package name of the app in between whitespace and}線。你可以做adb shell dumpsys軟件包PKG_NAME (PKG_NAME → package name of an app)以瞭解關於該軟件包/應用程序的更多細節。

相關問題