最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Get Android app label name from package name, using only Python - Stack Overflow

programmeradmin0浏览0评论

I can get all the package names of android apps on a phone. But I don't know how to get the app label of each of them.

I tried to find information in dumpsys, but did not find any.

I can get all the package names of android apps on a phone. But I don't know how to get the app label of each of them.

I tried to find information in dumpsys, but did not find any.

Share Improve this question edited Nov 20, 2024 at 9:18 simon 5,6261 gold badge16 silver badges29 bronze badges asked Nov 20, 2024 at 7:49 martinmartin 357 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

To retrieve the Android app's label name (application name) using its package name, you can utilize the aapt tool (part of Android SDK) and subprocess in Python. The process involves extracting the app's APK from the device and then reading its manifest for the label.

发布评论

评论列表(0)

  1. 暂无评论