An open API service indexing awesome lists of open source software.

https://github.com/hoanganh25991/php-read-apk

read basic info from apk, get out icon path
https://github.com/hoanganh25991/php-read-apk

Last synced: 3 months ago
JSON representation

read basic info from apk, get out icon path

Awesome Lists containing this project

README

        

#PHP read info from apk file

##aapt on linux (ubuntu)

PHP apk parser CAN NOT understand hashed path for application-icon,..

Using `aapt` read out: Where the icon locate?

/*#update source list to install `aapt`
sudo nano /etc/apt/sources.list

#append this line
deb http://us.archive.ubuntu.com/ubuntu vivid main universe

sudo apt-get install aapt

#in folder contain "[file.apk]", run
aapt d badging [file.apk]

#result
application-icon-213:'res/drawable-xhdpi-v4/app_icon.png'
application-icon-240:'res/drawable-xhdpi-v4/app_icon.png'

#appt document http://elinux.org/Android_aapt

##7zip
Base on icon-path, unzip to get it out from [file.apk]

/*#instal 7zip
apt-get install p7zip-full

#run command
7z e [archive.zip] -o[outputdir] [fileFilter1] [fileFilter2] -r

#in [outputdir] get file base on [fileFilter1] [fileFilter2]
#only extract what we need