最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Mac中如何查看Android的apk的包名等信息

Mac crifan 2686浏览 0评论
折腾:
【未解决】Android手机锤子M1L中查看已安装app的目录和文件中是否有cer等证书文件
需要去查看一个已有的Android的app的apk安装文件中的信息,尤其是包名。
不过,此处,貌似已经通过下载apk时:
少儿趣配音
http://a.app.qq.com/o/simple.jsp?pkgname=com.ishowedu.child.peiyin
或:
少儿趣配音-小米应用商店
而发现包名了:
com.ishowedu.child.peiyin
com.ishowedu.child.peiyin_V5.0.0_1080.apk
不过为了以后其他用途,能看到更完整的信息,还是继续:
mac 查看Android apk 包名
Mac通过aapt命令查看apk的包名等信息 – CSDN博客
前提是:
下载了Android开发工具,其中包含aapt
Android-使用adb和aapt查看应用信息 – CSDN博客
利用adb命令查看apk文件包名的一些方法 – laogui0906 – 博客园
或者是:
Android手机root后,通过adb去操作也可以。
结果此处之前下载的Android studio中竟然没找到aapt:
然后打算再去重新下载:
Android studio mac
Download Android Studio and SDK tools  |  Android Developers
3.1.4 for Mac (851 MB)
不过先去找找:
Android studio mac aapt
macos – Android aapt can not be found on Mac – Stack Overflow
https://stackoverflow.com/questions/11330165/android-aapt-can-not-be-found-on-mac
/path/to/adt/sdk/buid-tools/android-[version]/aapt
去看看:
/Users/crifan/dev/dev_tool/android/AndroidSDK/build-tools/27.0.1
➜  27.0.1 ./aapt dump badging /Users/crifan/dev/dev_root/company/x/projects/scrapy/QuPeiYin_app/com.ishowedu.child.peiyin_V5.0.0_1080.apk
package: name='com.ishowedu.child.peiyin' versionCode='1080' versionName='V5.0.0' platformBuildVersionName='8.0.0'
sdkVersion:'16'
targetSdkVersion:'22'
uses-permission: name='android.permission.CALL_PHONE'
uses-permission: name='android.permission.DISABLE_KEYGUARD'
uses-permission: name='android.permission.RECEIVE_USER_PRESENT'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
uses-permission: name='android.permission.WRITE_SETTINGS'
uses-permission: name='android.permission.GET_TASKS'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='android.permission.READ_PHONE_STATE'
uses-permission: name='android.permission.READ_LOGS'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.RECORD_AUDIO'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.MOUNT_UNMOUNT_FILESYSTEMS'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.hardware.camera.autofocus'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.MODIFY_AUDIO_SETTINGS'
uses-permission: name='android.permission.CHANGE_WIFI_STATE'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='android.permission.VIBRATE'
uses-permission: name='android.permission.RESTART_PACKAGES'
uses-permission: name='android.permission.BLUETOOTH'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.CHANGE_NETWORK_STATE'
uses-permission: name='android.permission.READ_CONTACTS'
uses-permission: name='android.permission.SEND_SMS'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='android.permission.READ_PHONE_STATE'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.CHANGE_CONFIGURATION'
uses-permission: name='
getui.permission.GetuiService.com.ishowedu.child.peiyin
'
uses-permission: name='android.permission.REQUEST_INSTALL_PACKAGES'
uses-permission: name='android.permission.ACCESS_LOCATION_EXTRA_COMMANDS'
uses-permission: name='android.permission.BROADCAST_STICKY'
uses-permission: name='com.android.launcher.permission.READ_SETTINGS'
uses-permission: name='com.android.launcher.permission.UNINSTALL_SHORTCUT'
uses-permission: name='com.android.launcher.permission.INSTALL_SHORTCUT'
uses-permission: name='com.ishowedu.child.peiyin.permission.JPUSH_MESSAGE'
uses-permission: name='com.meizu.flyme.push.permission.RECEIVE'
uses-permission: name='com.meizu.c2dm.permission.RECEIVE'
uses-permission: name='com.ishowedu.child.peiyin.push.permission.MESSAGE'
uses-permission: name='com.ishowedu.child.peiyin.permission.C2D_MESSAGE'
uses-permission: name='android.permission.BROADCAST_PACKAGE_ADDED'
uses-permission: name='android.permission.BROADCAST_PACKAGE_CHANGED'
uses-permission: name='android.permission.BROADCAST_PACKAGE_INSTALL'
uses-permission: name='android.permission.BROADCAST_PACKAGE_REPLACED'
uses-permission: name='com.ishowedu.child.peiyin.permission.MIPUSH_RECEIVE'
uses-permission: name='android.permission.FLASHLIGHT'
uses-permission: name='android.permission.SET_DEBUG_APP'
uses-permission: name='com.google.android.apps.photos.permission.GOOGLE_PHOTOS'
uses-permission: name='android.permission.ACCESS_GPS'
uses-permission: name='android.permission.ACCESS_ASSISTED_GPS'
uses-permission: name='android.permission.ACCESS_LOCATION'
application-label:'少儿趣配音'
application-label-af:'少儿趣配音'
application-label-am:'少儿趣配音'
application-label-ar:'少儿趣配音'
application-label-az:'少儿趣配音'
application-label-be:'少儿趣配音'
application-label-bg:'少儿趣配音'
application-label-bn:'少儿趣配音'
application-label-bs:'少儿趣配音'
application-label-ca:'少儿趣配音'
application-label-cs:'少儿趣配音'
application-label-da:'少儿趣配音'
application-label-de:'少儿趣配音'
application-label-el:'少儿趣配音'
application-label-en:'少儿趣配音'
application-label-en-AU:'少儿趣配音'
application-label-en-CA:'少儿趣配音'
application-label-en-GB:'少儿趣配音'
application-label-en-IN:'少儿趣配音'
application-label-en-XC:'少儿趣配音'
application-label-es:'少儿趣配音'
application-label-es-US:'少儿趣配音'
application-label-et:'少儿趣配音'
application-label-eu:'少儿趣配音'
application-label-fa:'少儿趣配音'
application-label-fi:'少儿趣配音'
application-label-fr:'少儿趣配音'
application-label-fr-CA:'少儿趣配音'
application-label-gl:'少儿趣配音'
application-label-gu:'少儿趣配音'
application-label-hi:'少儿趣配音'
application-label-hr:'少儿趣配音'
application-label-hu:'少儿趣配音'
application-label-hy:'少儿趣配音'
application-label-in:'少儿趣配音'
application-label-is:'少儿趣配音'
application-label-it:'少儿趣配音'
application-label-iw:'少儿趣配音'
application-label-ja:'少儿趣配音'
application-label-ka:'少儿趣配音'
application-label-kk:'少儿趣配音'
application-label-km:'少儿趣配音'
application-label-kn:'少儿趣配音'
application-label-ko:'少儿趣配音'
application-label-ky:'少儿趣配音'
application-label-lo:'少儿趣配音'
application-label-lt:'少儿趣配音'
application-label-lv:'少儿趣配音'
application-label-mk:'少儿趣配音'
application-label-ml:'少儿趣配音'
application-label-mn:'少儿趣配音'
application-label-mr:'少儿趣配音'
application-label-ms:'少儿趣配音'
application-label-my:'少儿趣配音'
application-label-nb:'少儿趣配音'
application-label-ne:'少儿趣配音'
application-label-nl:'少儿趣配音'
application-label-pa:'少儿趣配音'
application-label-pl:'少儿趣配音'
application-label-pt:'少儿趣配音'
application-label-pt-BR:'少儿趣配音'
application-label-pt-PT:'少儿趣配音'
application-label-ro:'少儿趣配音'
application-label-ru:'少儿趣配音'
application-label-si:'少儿趣配音'
application-label-sk:'少儿趣配音'
application-label-sl:'少儿趣配音'
application-label-sq:'少儿趣配音'
application-label-sr:'少儿趣配音'
application-label-sr-Latn:'少儿趣配音'
application-label-sv:'少儿趣配音'
application-label-sw:'少儿趣配音'
application-label-ta:'少儿趣配音'
application-label-te:'少儿趣配音'
application-label-th:'少儿趣配音'
application-label-tl:'少儿趣配音'
application-label-tr:'少儿趣配音'
application-label-uk:'少儿趣配音'
application-label-ur:'少儿趣配音'
application-label-uz:'少儿趣配音'
application-label-vi:'少儿趣配音'
application-label-zh:'少儿趣配音'
application-label-zh-CN:'少儿趣配音'
application-label-zh-HK:'少儿趣配音'
application-label-zh-TW:'少儿趣配音'
application-label-zu:'少儿趣配音'
application-icon-120:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
application-icon-65534:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-65535:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
application: label='少儿趣配音' icon='res/mipmap-mdpi-v4/ic_launcher.png'
launchable-activity: name='refactor.business.splash.FZSplashActivity'  label='少儿趣配音' icon=''
feature-group: label=''
  uses-feature: name='android.hardware.camera'
  uses-feature: name='android.hardware.camera.autofocus'
  uses-feature: name='android.hardware.bluetooth'
  uses-implied-feature: name='android.hardware.bluetooth' reason='requested android.permission.BLUETOOTH permission, and targetSdkVersion > 4'
  uses-feature: name='android.hardware.faketouch'
  uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
  uses-feature: name='android.hardware.location'
  uses-implied-feature: name='android.hardware.location' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, requested android.permission.ACCESS_FINE_LOCATION permission, and requested android.permission.ACCESS_LOCATION_EXTRA_COMMANDS permission'
  uses-feature: name='android.hardware.microphone'
  uses-implied-feature: name='android.hardware.microphone' reason='requested android.permission.RECORD_AUDIO permission'
  uses-feature: name='android.hardware.screen.landscape'
  uses-implied-feature: name='android.hardware.screen.landscape' reason='one or more activities have specified a landscape orientation'
  uses-feature: name='android.hardware.screen.portrait'
  uses-implied-feature: name='android.hardware.screen.portrait' reason='one or more activities have specified a portrait orientation'
  uses-feature: name='android.hardware.telephony'
  uses-implied-feature: name='android.hardware.telephony' reason='requested a telephony permission'
  uses-feature: name='android.hardware.wifi'
  uses-implied-feature: name='android.hardware.wifi' reason='requested android.permission.ACCESS_WIFI_STATE permission, and requested android.permission.CHANGE_WIFI_STATE permission'
main
other-activities
other-receivers
other-services
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--' 'af' 'am' 'ar' 'az' 'be' 'bg' 'bn' 'bs' 'ca' 'cs' 'da' 'de' 'el' 'en' 'en-AU' 'en-CA' 'en-GB' 'en-IN' 'en-XC' 'es' 'es-US' 'et' 'eu' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gu' 'hi' 'hr' 'hu' 'hy' 'in' 'is' 'it' 'iw' 'ja' 'ka' 'kk' 'km' 'kn' 'ko' 'ky' 'lo' 'lt' 'lv' 'mk' 'ml' 'mn' 'mr' 'ms' 'my' 'nb' 'ne' 'nl' 'pa' 'pl' 'pt' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'sk' 'sl' 'sq' 'sr' 'sr-Latn' 'sv' 'sw' 'ta' 'te' 'th' 'tl' 'tr' 'uk' 'ur' 'uz' 'vi' 'zh' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '120' '160' '240' '320' '480' '640' '65534' '65535'
native-code: 'armeabi' 'armeabi-v7a'
其中可见:
package: name=’com.ishowedu.child.peiyin’
包名是:com.ishowedu.child.peiyin
和之前从地址中看到的是一样的。
【总结】
此处确保Mac中已安装了Android Studio后,即可去:
android studio/build-tools/27.0.1
中找到aapt
然后用:
./aapt dump badging xxx.apk
查看到:
package: name=’com.ishowedu.child.peiyin’
其中:
com.ishowedu.child.peiyin
就是我们要找的app的包名。

转载请注明:在路上 » 【已解决】Mac中如何查看Android的apk的包名等信息

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.195 seconds, using 22.08MB memory