2016年9月15日木曜日

Install android SDK and read AndroidManifest.xml

install java for brew environment.

$  brew cask install java

install android-sdk.

$ brew install android-sdk

install acutal sdk. this command will kick GUI.

$ android

add " export ANDROID_HOME=/usr/local/opt/android-sdkadd " into .bashrc.


$ aapt l -a KES10_10.5.113.1539_Release.apk 

appt failed with the message  "appears you do not have 'build-tools-23.0.1' installed." 

$ android list sdk -a | grep Build
   3- Android SDK Build-tools, revision 24.0.2
   4- Android SDK Build-tools, revision 24.0.1
   5- Android SDK Build-tools, revision 24
   6- Android SDK Build-tools, revision 23.0.3
   7- Android SDK Build-tools, revision 23.0.2
   8- Android SDK Build-tools, revision 23.0.1

$ android update sdk -a -u -t 8

will install "build-tools-23.0.1". "android update sdk -a -u -t 3" will install version 24.0.2 instead.

$ aapt d xmltree KES10_10.5.113.1539_Release.apk AndroidManifest.xml > manifest_ascii.xml

will convert  AndroidManifest.xml into human-readable "manifest_ascii.xml".

0 件のコメント: