ios获取原生系统应用的包

ios获取原生系统应用的包名

1、安装facebook-wda (windows电脑mac电脑均可使用)

pip install facebook-wda
或
pip3 install -U facebook-wda

facebook-wda的github链接如下:

https://github.com/openatx/facebook-wda

2、编写如下代码

import wda
def getPackageName():
     c = wda.USBClient() # 连接一台设备
     return c.app_current()

if __name__ == '__main__':
    getPackageName()

3、启动对应的系统应用

进入到对应系统应用界面,运行第二步代码,获得相关信息。

拿App store 为列,打开该应用后,运行代码,返回如下信息:

{'processArguments': {'env': {}, 'args': []}, 'name': '', 'pid': 52741, 'bundleId': 'com.apple.AppStore'}

bundleId 对应的则为App Store的应用包名

4、常见的苹果自带应用Bundle ID如下

苹果自带应用

NameBundle ID
iMoviecom.apple.iMovie
Apple Storecom.apple.AppStore
Weathercom.apple.weather
相机Cameracom.apple.camera
iBookscom.apple.iBooks
Healthcom.apple.Health
Settingscom.apple.Preferences
Watchcom.apple.Bridge
Mapscom.apple.Maps
Game Centercom.apple.gamecenter
Walletcom.apple.Passbook
电话com.apple.mobilephone
备忘录com.apple.mobilenotes
指南针com.apple.compass
浏览器com.apple.mobilesafari
日历com.apple.mobilecal
信息com.apple.MobileSMS
时钟com.apple.mobiletimer
照片com.apple.mobileslideshow
提醒事项com.apple.reminders
Desktopcom.apple.springboard (Start this will cause your iPhone reboot)

第三方应用 Thirdparty

NameBundle ID
腾讯QQcom.tencent.mqq
微信com.tencent.xin
钉钉com.laiwang.DingTalk
Chromecom.google.chrome.ios

5、其他方法

使用ideviceinstaller,需要mac电脑

# 下载
brew install ideviceinstaller

# 查看 包名
ideviceinstaller -l -o list_all
或
ideviceinstaller -u {iOSDeviceId} -l -o list_all  

ideviceinstaller常用命令

1、打印app列表
ideviceinstaller -l
2、查看当前已连接的设备的UUID
idevice_id -l
3、获取设备信息
ideviceinfo
4、获取设备时间
idevicedate
5、重启设备
idevicediagnostics restart
  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值