Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取 UID 列表(Android 中安装的应用程序列表)设备。
应用程序的 UID 可以在ApplicationInfo类中找到。为设备上的所有应用程序获取它,如下所示:
ApplicationInfo
List<ApplicationInfo> appsInfo = context.getPackageManager() .getInstalledApplications(PackageManager.GET_UNINSTALLED_PACKAGES);