2013年10月16日 星期三

Decode and Encode Android APK file

1.  Download Apktool

https://code.google.com/p/android-apktool/

extract to get apktool.jar


2.  decode
java -jar apktool.jar decode app.apk app

3.  encode
java -jar apktool.jar build app app_new.apk

Warning : You need to resign the apk....

自動化下載Google Play 商店銷售報告 ( Automatic Download Google Play Sales Report)


1. Download and Install gsutil

https://developers.google.com/storage/docs/gsutil_install
Linux :

wget  http://storage.googleapis.com/pub/gsutil.tar.gz
tar xfz gsutil.tar.gz -C $HOME

vim ~/.bashrc
export PATH=${PATH}:$HOME/gsutil


2. Registry a Google Cloud Storage Account

https://cloud.google.com

2.5 執行 gsutil config
取得 認證url

將 url 丟給 google play 後台管理人員取得認證碼




3. In Google Play Console

get the gs file url

ex:
gs://projectid




4.
gsutil ls gs://projectid
gsutil ls gs://projectid/sales/salesreport_201310.zip

gsutil cat gs://projectid/sales/salesreport_201310.zip  >> salesreport_201310.zip