autoglm-gui 1.5.0__py3-none-any.whl → 1.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. AutoGLM_GUI/agents/glm/agent.py +6 -1
  2. AutoGLM_GUI/agents/mai/agent.py +3 -0
  3. AutoGLM_GUI/agents/stream_runner.py +7 -2
  4. AutoGLM_GUI/api/agents.py +26 -1
  5. AutoGLM_GUI/api/history.py +27 -1
  6. AutoGLM_GUI/models/history.py +45 -1
  7. AutoGLM_GUI/scheduler_manager.py +52 -6
  8. AutoGLM_GUI/schemas.py +12 -0
  9. AutoGLM_GUI/static/assets/{about-BQm96DAl.js → about-CfwX1Cmc.js} +1 -1
  10. AutoGLM_GUI/static/assets/{alert-dialog-B42XxGPR.js → alert-dialog-CtGlN2IJ.js} +1 -1
  11. AutoGLM_GUI/static/assets/chat-BYa-foUI.js +129 -0
  12. AutoGLM_GUI/static/assets/{circle-alert-D4rSJh37.js → circle-alert-t08bEMPO.js} +1 -1
  13. AutoGLM_GUI/static/assets/{dialog-DZ78cEcj.js → dialog-FNwZJFwk.js} +1 -1
  14. AutoGLM_GUI/static/assets/eye-D0UPWCWC.js +1 -0
  15. AutoGLM_GUI/static/assets/history-CRo95B7i.js +1 -0
  16. AutoGLM_GUI/static/assets/{index-CmZSnDqc.js → index-BaLMSqd3.js} +1 -1
  17. AutoGLM_GUI/static/assets/{index-CssG-3TH.js → index-CTHbFvKl.js} +5 -5
  18. AutoGLM_GUI/static/assets/index-CV7jGxGm.css +1 -0
  19. AutoGLM_GUI/static/assets/{label-BCUzE_nm.js → label-DJFevVmr.js} +1 -1
  20. AutoGLM_GUI/static/assets/{logs-eoFxn5of.js → logs-RW09DyYY.js} +1 -1
  21. AutoGLM_GUI/static/assets/{popover-DLsuV5Sx.js → popover--JTJrE5v.js} +1 -1
  22. AutoGLM_GUI/static/assets/{scheduled-tasks-MyqGJvy_.js → scheduled-tasks-DTRKsQXF.js} +1 -1
  23. AutoGLM_GUI/static/assets/{square-pen-zGWYrdfj.js → square-pen-CPK_K680.js} +1 -1
  24. AutoGLM_GUI/static/assets/{textarea-BX6y7uM5.js → textarea-PRmVnWq5.js} +1 -1
  25. AutoGLM_GUI/static/assets/{workflows-CYFs6ssC.js → workflows-CdcsAoaT.js} +1 -1
  26. AutoGLM_GUI/static/index.html +2 -2
  27. {autoglm_gui-1.5.0.dist-info → autoglm_gui-1.5.1.dist-info}/METADATA +49 -7
  28. {autoglm_gui-1.5.0.dist-info → autoglm_gui-1.5.1.dist-info}/RECORD +31 -70
  29. AutoGLM_GUI/device_adapter.py +0 -263
  30. AutoGLM_GUI/static/assets/chat-C0L2gQYG.js +0 -129
  31. AutoGLM_GUI/static/assets/history-DFBv7TGc.js +0 -1
  32. AutoGLM_GUI/static/assets/index-Bzyv2yQ2.css +0 -1
  33. mai_agent/base.py +0 -137
  34. mai_agent/mai_grounding_agent.py +0 -263
  35. mai_agent/mai_naivigation_agent.py +0 -526
  36. mai_agent/prompt.py +0 -148
  37. mai_agent/unified_memory.py +0 -67
  38. mai_agent/utils.py +0 -73
  39. phone_agent/__init__.py +0 -12
  40. phone_agent/actions/__init__.py +0 -5
  41. phone_agent/actions/handler.py +0 -400
  42. phone_agent/actions/handler_ios.py +0 -278
  43. phone_agent/adb/__init__.py +0 -51
  44. phone_agent/adb/connection.py +0 -358
  45. phone_agent/adb/device.py +0 -253
  46. phone_agent/adb/input.py +0 -108
  47. phone_agent/adb/screenshot.py +0 -108
  48. phone_agent/agent.py +0 -253
  49. phone_agent/agent_ios.py +0 -277
  50. phone_agent/config/__init__.py +0 -53
  51. phone_agent/config/apps.py +0 -227
  52. phone_agent/config/apps_harmonyos.py +0 -256
  53. phone_agent/config/apps_ios.py +0 -339
  54. phone_agent/config/i18n.py +0 -81
  55. phone_agent/config/prompts.py +0 -80
  56. phone_agent/config/prompts_en.py +0 -79
  57. phone_agent/config/prompts_zh.py +0 -82
  58. phone_agent/config/timing.py +0 -167
  59. phone_agent/device_factory.py +0 -166
  60. phone_agent/hdc/__init__.py +0 -53
  61. phone_agent/hdc/connection.py +0 -384
  62. phone_agent/hdc/device.py +0 -269
  63. phone_agent/hdc/input.py +0 -145
  64. phone_agent/hdc/screenshot.py +0 -127
  65. phone_agent/model/__init__.py +0 -5
  66. phone_agent/model/client.py +0 -290
  67. phone_agent/xctest/__init__.py +0 -47
  68. phone_agent/xctest/connection.py +0 -379
  69. phone_agent/xctest/device.py +0 -472
  70. phone_agent/xctest/input.py +0 -311
  71. phone_agent/xctest/screenshot.py +0 -226
  72. {autoglm_gui-1.5.0.dist-info → autoglm_gui-1.5.1.dist-info}/WHEEL +0 -0
  73. {autoglm_gui-1.5.0.dist-info → autoglm_gui-1.5.1.dist-info}/entry_points.txt +0 -0
  74. {autoglm_gui-1.5.0.dist-info → autoglm_gui-1.5.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,227 +0,0 @@
1
- """App name to package name mapping for supported applications."""
2
-
3
- APP_PACKAGES: dict[str, str] = {
4
- # Social & Messaging
5
- "微信": "com.tencent.mm",
6
- "QQ": "com.tencent.mobileqq",
7
- "微博": "com.sina.weibo",
8
- # E-commerce
9
- "淘宝": "com.taobao.taobao",
10
- "京东": "com.jingdong.app.mall",
11
- "拼多多": "com.xunmeng.pinduoduo",
12
- "淘宝闪购": "com.taobao.taobao",
13
- "京东秒送": "com.jingdong.app.mall",
14
- # Lifestyle & Social
15
- "小红书": "com.xingin.xhs",
16
- "豆瓣": "com.douban.frodo",
17
- "知乎": "com.zhihu.android",
18
- # Maps & Navigation
19
- "高德地图": "com.autonavi.minimap",
20
- "百度地图": "com.baidu.BaiduMap",
21
- # Food & Services
22
- "美团": "com.sankuai.meituan",
23
- "大众点评": "com.dianping.v1",
24
- "饿了么": "me.ele",
25
- "肯德基": "com.yek.android.kfc.activitys",
26
- # Travel
27
- "携程": "ctrip.android.view",
28
- "铁路12306": "com.MobileTicket",
29
- "12306": "com.MobileTicket",
30
- "去哪儿": "com.Qunar",
31
- "去哪儿旅行": "com.Qunar",
32
- "滴滴出行": "com.sdu.didi.psnger",
33
- # Video & Entertainment
34
- "bilibili": "tv.danmaku.bili",
35
- "抖音": "com.ss.android.ugc.aweme",
36
- "快手": "com.smile.gifmaker",
37
- "腾讯视频": "com.tencent.qqlive",
38
- "爱奇艺": "com.qiyi.video",
39
- "优酷视频": "com.youku.phone",
40
- "芒果TV": "com.hunantv.imgo.activity",
41
- "红果短剧": "com.phoenix.read",
42
- # Music & Audio
43
- "网易云音乐": "com.netease.cloudmusic",
44
- "QQ音乐": "com.tencent.qqmusic",
45
- "汽水音乐": "com.luna.music",
46
- "喜马拉雅": "com.ximalaya.ting.android",
47
- # Reading
48
- "番茄小说": "com.dragon.read",
49
- "番茄免费小说": "com.dragon.read",
50
- "七猫免费小说": "com.kmxs.reader",
51
- # Productivity
52
- "飞书": "com.ss.android.lark",
53
- "QQ邮箱": "com.tencent.androidqqmail",
54
- # AI & Tools
55
- "豆包": "com.larus.nova",
56
- # Health & Fitness
57
- "keep": "com.gotokeep.keep",
58
- "美柚": "com.lingan.seeyou",
59
- # News & Information
60
- "腾讯新闻": "com.tencent.news",
61
- "今日头条": "com.ss.android.article.news",
62
- # Real Estate
63
- "贝壳找房": "com.lianjia.beike",
64
- "安居客": "com.anjuke.android.app",
65
- # Finance
66
- "同花顺": "com.hexin.plat.android",
67
- # Games
68
- "星穹铁道": "com.miHoYo.hkrpg",
69
- "崩坏:星穹铁道": "com.miHoYo.hkrpg",
70
- "恋与深空": "com.papegames.lysk.cn",
71
- "AndroidSystemSettings": "com.android.settings",
72
- "Android System Settings": "com.android.settings",
73
- "Android System Settings": "com.android.settings",
74
- "Android-System-Settings": "com.android.settings",
75
- "Settings": "com.android.settings",
76
- "AudioRecorder": "com.android.soundrecorder",
77
- "audiorecorder": "com.android.soundrecorder",
78
- "Bluecoins": "com.rammigsoftware.bluecoins",
79
- "bluecoins": "com.rammigsoftware.bluecoins",
80
- "Broccoli": "com.flauschcode.broccoli",
81
- "broccoli": "com.flauschcode.broccoli",
82
- "Booking.com": "com.booking",
83
- "Booking": "com.booking",
84
- "booking.com": "com.booking",
85
- "booking": "com.booking",
86
- "BOOKING.COM": "com.booking",
87
- "Chrome": "com.android.chrome",
88
- "chrome": "com.android.chrome",
89
- "Google Chrome": "com.android.chrome",
90
- "Clock": "com.android.deskclock",
91
- "clock": "com.android.deskclock",
92
- "Contacts": "com.android.contacts",
93
- "contacts": "com.android.contacts",
94
- "Duolingo": "com.duolingo",
95
- "duolingo": "com.duolingo",
96
- "Expedia": "com.expedia.bookings",
97
- "expedia": "com.expedia.bookings",
98
- "Files": "com.android.fileexplorer",
99
- "files": "com.android.fileexplorer",
100
- "File Manager": "com.android.fileexplorer",
101
- "file manager": "com.android.fileexplorer",
102
- "gmail": "com.google.android.gm",
103
- "Gmail": "com.google.android.gm",
104
- "GoogleMail": "com.google.android.gm",
105
- "Google Mail": "com.google.android.gm",
106
- "GoogleFiles": "com.google.android.apps.nbu.files",
107
- "googlefiles": "com.google.android.apps.nbu.files",
108
- "FilesbyGoogle": "com.google.android.apps.nbu.files",
109
- "GoogleCalendar": "com.google.android.calendar",
110
- "Google-Calendar": "com.google.android.calendar",
111
- "Google Calendar": "com.google.android.calendar",
112
- "google-calendar": "com.google.android.calendar",
113
- "google calendar": "com.google.android.calendar",
114
- "GoogleChat": "com.google.android.apps.dynamite",
115
- "Google Chat": "com.google.android.apps.dynamite",
116
- "Google-Chat": "com.google.android.apps.dynamite",
117
- "GoogleClock": "com.google.android.deskclock",
118
- "Google Clock": "com.google.android.deskclock",
119
- "Google-Clock": "com.google.android.deskclock",
120
- "GoogleContacts": "com.google.android.contacts",
121
- "Google-Contacts": "com.google.android.contacts",
122
- "Google Contacts": "com.google.android.contacts",
123
- "google-contacts": "com.google.android.contacts",
124
- "google contacts": "com.google.android.contacts",
125
- "GoogleDocs": "com.google.android.apps.docs.editors.docs",
126
- "Google Docs": "com.google.android.apps.docs.editors.docs",
127
- "googledocs": "com.google.android.apps.docs.editors.docs",
128
- "google docs": "com.google.android.apps.docs.editors.docs",
129
- "Google Drive": "com.google.android.apps.docs",
130
- "Google-Drive": "com.google.android.apps.docs",
131
- "google drive": "com.google.android.apps.docs",
132
- "google-drive": "com.google.android.apps.docs",
133
- "GoogleDrive": "com.google.android.apps.docs",
134
- "Googledrive": "com.google.android.apps.docs",
135
- "googledrive": "com.google.android.apps.docs",
136
- "GoogleFit": "com.google.android.apps.fitness",
137
- "googlefit": "com.google.android.apps.fitness",
138
- "GoogleKeep": "com.google.android.keep",
139
- "googlekeep": "com.google.android.keep",
140
- "GoogleMaps": "com.google.android.apps.maps",
141
- "Google Maps": "com.google.android.apps.maps",
142
- "googlemaps": "com.google.android.apps.maps",
143
- "google maps": "com.google.android.apps.maps",
144
- "Google Play Books": "com.google.android.apps.books",
145
- "Google-Play-Books": "com.google.android.apps.books",
146
- "google play books": "com.google.android.apps.books",
147
- "google-play-books": "com.google.android.apps.books",
148
- "GooglePlayBooks": "com.google.android.apps.books",
149
- "googleplaybooks": "com.google.android.apps.books",
150
- "GooglePlayStore": "com.android.vending",
151
- "Google Play Store": "com.android.vending",
152
- "Google-Play-Store": "com.android.vending",
153
- "GoogleSlides": "com.google.android.apps.docs.editors.slides",
154
- "Google Slides": "com.google.android.apps.docs.editors.slides",
155
- "Google-Slides": "com.google.android.apps.docs.editors.slides",
156
- "GoogleTasks": "com.google.android.apps.tasks",
157
- "Google Tasks": "com.google.android.apps.tasks",
158
- "Google-Tasks": "com.google.android.apps.tasks",
159
- "Joplin": "net.cozic.joplin",
160
- "joplin": "net.cozic.joplin",
161
- "McDonald": "com.mcdonalds.app",
162
- "mcdonald": "com.mcdonalds.app",
163
- "Osmand": "net.osmand",
164
- "osmand": "net.osmand",
165
- "PiMusicPlayer": "com.Project100Pi.themusicplayer",
166
- "pimusicplayer": "com.Project100Pi.themusicplayer",
167
- "Quora": "com.quora.android",
168
- "quora": "com.quora.android",
169
- "Reddit": "com.reddit.frontpage",
170
- "reddit": "com.reddit.frontpage",
171
- "RetroMusic": "code.name.monkey.retromusic",
172
- "retromusic": "code.name.monkey.retromusic",
173
- "SimpleCalendarPro": "com.scientificcalculatorplus.simplecalculator.basiccalculator.mathcalc",
174
- "SimpleSMSMessenger": "com.simplemobiletools.smsmessenger",
175
- "Telegram": "org.telegram.messenger",
176
- "temu": "com.einnovation.temu",
177
- "Temu": "com.einnovation.temu",
178
- "Tiktok": "com.zhiliaoapp.musically",
179
- "tiktok": "com.zhiliaoapp.musically",
180
- "Twitter": "com.twitter.android",
181
- "twitter": "com.twitter.android",
182
- "X": "com.twitter.android",
183
- "VLC": "org.videolan.vlc",
184
- "WeChat": "com.tencent.mm",
185
- "wechat": "com.tencent.mm",
186
- "Whatsapp": "com.whatsapp",
187
- "WhatsApp": "com.whatsapp",
188
- }
189
-
190
-
191
- def get_package_name(app_name: str) -> str | None:
192
- """
193
- Get the package name for an app.
194
-
195
- Args:
196
- app_name: The display name of the app.
197
-
198
- Returns:
199
- The Android package name, or None if not found.
200
- """
201
- return APP_PACKAGES.get(app_name)
202
-
203
-
204
- def get_app_name(package_name: str) -> str | None:
205
- """
206
- Get the app name from a package name.
207
-
208
- Args:
209
- package_name: The Android package name.
210
-
211
- Returns:
212
- The display name of the app, or None if not found.
213
- """
214
- for name, package in APP_PACKAGES.items():
215
- if package == package_name:
216
- return name
217
- return None
218
-
219
-
220
- def list_supported_apps() -> list[str]:
221
- """
222
- Get a list of all supported app names.
223
-
224
- Returns:
225
- List of app names.
226
- """
227
- return list(APP_PACKAGES.keys())
@@ -1,256 +0,0 @@
1
- """HarmonyOS application package name mappings.
2
-
3
- Maps user-friendly app names to HarmonyOS bundle names.
4
- These bundle names are used with the 'hdc shell aa start -b <bundle>' command.
5
- """
6
-
7
- # Custom ability names for apps that don't use the default "EntryAbility"
8
- # Maps bundle_name -> ability_name
9
- # Generated by: python test/find_abilities.py
10
- APP_ABILITIES: dict[str, str] = {
11
- # Third-party apps
12
- "cn.wps.mobileoffice.hap": "DocumentAbility",
13
- "com.ccb.mobilebank.hm": "CcbMainAbility",
14
- "com.dewu.hos": "HomeAbility",
15
- "com.larus.nova.hm": "MainAbility",
16
- "com.luna.hm.music": "MainAbility",
17
- "com.meitu.meitupic": "MainAbility",
18
- "com.ss.hm.article.news": "MainAbility",
19
- "com.ss.hm.ugc.aweme": "MainAbility",
20
- "com.taobao.taobao4hmos": "Taobao_mainAbility",
21
- "com.tencent.videohm": "AppAbility",
22
- "com.ximalaya.ting.xmharmony": "MainBundleAbility",
23
- "com.zhihu.hmos": "PhoneAbility",
24
- # Huawei system apps
25
- "com.huawei.hmos.browser": "MainAbility",
26
- "com.huawei.hmos.calculator": "com.huawei.hmos.calculator.CalculatorAbility",
27
- "com.huawei.hmos.calendar": "MainAbility",
28
- "com.huawei.hmos.camera": "com.huawei.hmos.camera.MainAbility",
29
- "com.huawei.hmos.clock": "com.huawei.hmos.clock.phone",
30
- "com.huawei.hmos.clouddrive": "MainAbility",
31
- "com.huawei.hmos.email": "ApplicationAbility",
32
- "com.huawei.hmos.filemanager": "MainAbility",
33
- "com.huawei.hmos.health": "Activity_card_entryAbility",
34
- "com.huawei.hmos.notepad": "MainAbility",
35
- "com.huawei.hmos.photos": "MainAbility",
36
- "com.huawei.hmos.screenrecorder": "com.huawei.hmos.screenrecorder.ServiceExtAbility",
37
- "com.huawei.hmos.screenshot": "com.huawei.hmos.screenshot.ServiceExtAbility",
38
- "com.huawei.hmos.settings": "com.huawei.hmos.settings.MainAbility",
39
- "com.huawei.hmos.soundrecorder": "MainAbility",
40
- "com.huawei.hmos.vassistant": "AiCaptionServiceExtAbility",
41
- "com.huawei.hmos.wallet": "MainAbility",
42
- # Huawei services
43
- "com.huawei.hmsapp.appgallery": "MainAbility",
44
- "com.huawei.hmsapp.books": "MainAbility",
45
- "com.huawei.hmsapp.himovie": "MainAbility",
46
- "com.huawei.hmsapp.hisearch": "MainAbility",
47
- "com.huawei.hmsapp.music": "MainAbility",
48
- "com.huawei.hmsapp.thememanager": "MainAbility",
49
- "com.huawei.hmsapp.totemweather": "com.huawei.hmsapp.totemweather.MainAbility",
50
- # OHOS system apps
51
- "com.ohos.callui": "com.ohos.callui.ServiceAbility",
52
- "com.ohos.contacts": "com.ohos.contacts.MainAbility",
53
- "com.ohos.mms": "com.ohos.mms.MainAbility",
54
- }
55
-
56
- APP_PACKAGES: dict[str, str] = {
57
- # Social & Messaging
58
- "微信": "com.tencent.wechat",
59
- "QQ": "com.tencent.mqq",
60
- "微博": "com.sina.weibo.stage",
61
- # E-commerce
62
- "淘宝": "com.taobao.taobao4hmos",
63
- "京东": "com.jd.hm.mall",
64
- "拼多多": "com.xunmeng.pinduoduo.hos",
65
- "淘宝闪购": "com.taobao.taobao4hmos",
66
- "京东秒送": "com.jd.hm.mall",
67
- # Lifestyle & Social
68
- "小红书": "com.xingin.xhs_hos",
69
- "知乎": "com.zhihu.hmos",
70
- # "豆瓣": "com.douban.frodo", # 未在 hdc 列表中找到
71
- # Maps & Navigation
72
- "高德地图": "com.amap.hmapp",
73
- "百度地图": "com.baidu.hmmap",
74
- # Food & Services
75
- "美团": "com.sankuai.hmeituan",
76
- "美团外卖": "com.meituan.takeaway",
77
- "大众点评": "com.sankuai.dianping",
78
- # "肯德基": "com.yek.android.kfc.activitys", # 未在 hdc 列表中找到
79
- # Travel
80
- # "携程": "ctrip.android.view", # 未在 hdc 列表中找到
81
- "铁路12306": "com.chinarailway.ticketingHM",
82
- "12306": "com.chinarailway.ticketingHM",
83
- # "去哪儿": "com.Qunar", # 未在 hdc 列表中找到
84
- # "去哪儿旅行": "com.Qunar", # 未在 hdc 列表中找到
85
- "滴滴出行": "com.sdu.didi.hmos.psnger",
86
- # Video & Entertainment
87
- "bilibili": "yylx.danmaku.bili",
88
- "抖音": "com.ss.hm.ugc.aweme",
89
- "快手": "com.kuaishou.hmapp",
90
- "腾讯视频": "com.tencent.videohm",
91
- "爱奇艺": "com.qiyi.video.hmy",
92
- "芒果TV": "com.mgtv.phone",
93
- # "优酷视频": "com.youku.phone", # 未在 hdc 列表中找到
94
- # "红果短剧": "com.phoenix.read", # 未在 hdc 列表中找到
95
- # Music & Audio
96
- # "网易云音乐": "com.netease.cloudmusic", # 未在 hdc 列表中找到
97
- "QQ音乐": "com.tencent.hm.qqmusic",
98
- "汽水音乐": "com.luna.hm.music",
99
- "喜马拉雅": "com.ximalaya.ting.xmharmony",
100
- # Reading
101
- # "番茄小说": "com.dragon.read", # 未在 hdc 列表中找到
102
- # "番茄免费小说": "com.dragon.read", # 未在 hdc 列表中找到
103
- # "七猫免费小说": "com.kmxs.reader", # 未在 hdc 列表中找到
104
- # Productivity
105
- "飞书": "com.ss.feishu",
106
- # "QQ邮箱": "com.tencent.androidqqmail", # 未在 hdc 列表中找到
107
- # AI & Tools
108
- "豆包": "com.larus.nova.hm",
109
- # Health & Fitness
110
- # "keep": "com.gotokeep.keep", # 未在 hdc 列表中找到
111
- # "美柚": "com.lingan.seeyou", # 未在 hdc 列表中找到
112
- # News & Information
113
- # "腾讯新闻": "com.tencent.news", # 未在 hdc 列表中找到
114
- "今日头条": "com.ss.hm.article.news",
115
- # Real Estate
116
- # "贝壳找房": "com.lianjia.beike", # 未在 hdc 列表中找到
117
- # "安居客": "com.anjuke.android.app", # 未在 hdc 列表中找到
118
- # Finance
119
- # "同花顺": "com.hexin.plat.android", # 未在 hdc 列表中找到
120
- # Games
121
- # "星穹铁道": "com.miHoYo.hkrpg", # 未在 hdc 列表中找到
122
- # "崩坏:星穹铁道": "com.miHoYo.hkrpg", # 未在 hdc 列表中找到
123
- # "恋与深空": "com.papegames.lysk.cn", # 未在 hdc 列表中找到
124
- # HarmonyOS 第三方应用
125
- "百度": "com.baidu.baiduapp",
126
- "阿里巴巴": "com.alibaba.wireless_hmos",
127
- "WPS": "cn.wps.mobileoffice.hap",
128
- "企业微信": "com.tencent.wework.hmos",
129
- "同程": "com.tongcheng.hmos",
130
- "同程旅行": "com.tongcheng.hmos",
131
- "唯品会": "com.vip.hosapp",
132
- "支付宝": "com.alipay.mobile.client",
133
- "UC浏览器": "com.uc.mobile",
134
- "闲鱼": "com.taobao.idlefish4ohos",
135
- "转转": "com.zhuanzhuan.hmoszz",
136
- "迅雷": "com.xunlei.thunder",
137
- "搜狗输入法": "com.sogou.input",
138
- "扫描全能王": "com.intsig.camscanner.hap",
139
- "美图秀秀": "com.meitu.meitupic",
140
- "58同城": "com.wuba.life",
141
- "得物": "com.dewu.hos",
142
- "海底捞": "com.haidilao.haros",
143
- "中国移动": "com.droi.tong",
144
- "中国联通": "com.sinovatech.unicom.ha",
145
- "国家税务总局": "cn.gov.chinatax.gt4.hm",
146
- "建设银行": "com.ccb.mobilebank.hm",
147
- "快手极速版": "com.kuaishou.hmnebula",
148
- # HarmonyOS 系统应用 - 工具类
149
- "浏览器": "com.huawei.hmos.browser",
150
- "计算器": "com.huawei.hmos.calculator",
151
- "日历": "com.huawei.hmos.calendar",
152
- "相机": "com.huawei.hmos.camera",
153
- "时钟": "com.huawei.hmos.clock",
154
- "云盘": "com.huawei.hmos.clouddrive",
155
- "云空间": "com.huawei.hmos.clouddrive",
156
- "邮件": "com.huawei.hmos.email",
157
- "文件管理器": "com.huawei.hmos.filemanager",
158
- "文件": "com.huawei.hmos.files",
159
- "查找设备": "com.huawei.hmos.finddevice",
160
- "查找手机": "com.huawei.hmos.finddevice",
161
- "录音机": "com.huawei.hmos.soundrecorder",
162
- "录音": "com.huawei.hmos.soundrecorder",
163
- "录屏": "com.huawei.hmos.screenrecorder",
164
- "截屏": "com.huawei.hmos.screenshot",
165
- "笔记": "com.huawei.hmos.notepad",
166
- "备忘录": "com.huawei.hmos.notepad",
167
- # HarmonyOS 系统应用 - 媒体类
168
- "相册": "com.huawei.hmos.photos",
169
- "图库": "com.huawei.hmos.photos",
170
- # "视频": "com.huawei.hmos.mediaplayer", # 未在 hdc 列表中找到,但有 com.huawei.hmsapp.himovie
171
- # HarmonyOS 系统应用 - 通讯类
172
- "联系人": "com.ohos.contacts",
173
- "通讯录": "com.ohos.contacts",
174
- "短信": "com.ohos.mms",
175
- "信息": "com.ohos.mms",
176
- "电话": "com.ohos.callui",
177
- "拨号": "com.ohos.callui",
178
- # HarmonyOS 系统应用 - 设置类
179
- "设置": "com.huawei.hmos.settings",
180
- "系统设置": "com.huawei.hmos.settings",
181
- "AndroidSystemSettings": "com.huawei.hmos.settings",
182
- "Android System Settings": "com.huawei.hmos.settings",
183
- "Android System Settings": "com.huawei.hmos.settings",
184
- "Android-System-Settings": "com.huawei.hmos.settings",
185
- "Settings": "com.huawei.hmos.settings",
186
- # HarmonyOS 系统应用 - 生活服务
187
- "健康": "com.huawei.hmos.health",
188
- "运动健康": "com.huawei.hmos.health",
189
- "地图": "com.huawei.hmos.maps.app",
190
- "华为地图": "com.huawei.hmos.maps.app",
191
- "钱包": "com.huawei.hmos.wallet",
192
- "华为钱包": "com.huawei.hmos.wallet",
193
- "智慧生活": "com.huawei.hmos.ailife",
194
- "智能助手": "com.huawei.hmos.vassistant",
195
- "小艺": "com.huawei.hmos.vassistant",
196
- # HarmonyOS 服务
197
- "应用市场": "com.huawei.hmsapp.appgallery",
198
- "华为应用市场": "com.huawei.hmsapp.appgallery",
199
- "音乐": "com.huawei.hmsapp.music",
200
- "华为音乐": "com.huawei.hmsapp.music",
201
- "主题": "com.huawei.hmsapp.thememanager",
202
- "主题管理": "com.huawei.hmsapp.thememanager",
203
- "天气": "com.huawei.hmsapp.totemweather",
204
- "华为天气": "com.huawei.hmsapp.totemweather",
205
- "视频": "com.huawei.hmsapp.himovie",
206
- "华为视频": "com.huawei.hmsapp.himovie",
207
- "阅读": "com.huawei.hmsapp.books",
208
- "华为阅读": "com.huawei.hmsapp.books",
209
- "游戏中心": "com.huawei.hmsapp.gamecenter",
210
- "华为游戏中心": "com.huawei.hmsapp.gamecenter",
211
- "搜索": "com.huawei.hmsapp.hisearch",
212
- "华为搜索": "com.huawei.hmsapp.hisearch",
213
- "指南针": "com.huawei.hmsapp.compass",
214
- "会员中心": "com.huawei.hmos.myhuawei",
215
- "我的华为": "com.huawei.hmos.myhuawei",
216
- "华为会员": "com.huawei.hmos.myhuawei",
217
- }
218
-
219
-
220
- def get_package_name(app_name: str) -> str | None:
221
- """
222
- Get the package name for an app.
223
-
224
- Args:
225
- app_name: The display name of the app.
226
-
227
- Returns:
228
- The HarmonyOS bundle name, or None if not found.
229
- """
230
- return APP_PACKAGES.get(app_name)
231
-
232
-
233
- def get_app_name(package_name: str) -> str | None:
234
- """
235
- Get the app name from a package name.
236
-
237
- Args:
238
- package_name: The HarmonyOS bundle name.
239
-
240
- Returns:
241
- The display name of the app, or None if not found.
242
- """
243
- for name, package in APP_PACKAGES.items():
244
- if package == package_name:
245
- return name
246
- return None
247
-
248
-
249
- def list_supported_apps() -> list[str]:
250
- """
251
- Get a list of all supported app names.
252
-
253
- Returns:
254
- List of app names.
255
- """
256
- return list(APP_PACKAGES.keys())