2016年3月10日 星期四

[Android] 反組譯 APK resource 檔案


http://ibotpeaches.github.io/Apktool/




1.) Put apktool.jar and test.apk in same folder 
2.) Go to the jar and .apk path by command line
3.) And fire the command java -jar apktool.jar d test.apk
4.) It will generate a folder with the name "test" in the same folder




2016年2月24日 星期三

[Android] 從log 查 EXCLUDE_FROM_RECENTS 的小技巧




01-01 00:47:09.000  1432  6076 I ActivityManager: START u0 {flg=0x10000000 cmp=com.oneplus.market/.activity.SearchActivity} from uid 10011 on display 0



FLAG_EXCLUDE_FROM_RECENTS  
excludeFromRecents
Constant Value: 32 (0x00000020)

2016年1月15日 星期五

[Android] download commit message for repo

這是為了把上 code 的 format 弄下來
以方便單獨的 repo project 使用

scp -p -P 29418 <your username>@<your Gerrit review server>:hooks/commit-msg <local path to your git>/.git/hooks/


出處:
https://git.eclipse.org/r/Documentation/cmd-hook-commit-msg.html

2015年12月28日 星期一

[Android] 產生超大檔進行硬碟塞滿測試


dd if=/dev/zero of=test00.tmp bs=1m count=20480

用這個指令把 sdcard 塞滿 可方便做實驗
不過實測 android 單檔最大只到 7.85 GB (8,435,793,920.00 位元組)
要產生兩次

2015年12月23日 星期三

[Android] 關掉虛擬鍵

開啟在system資料夾底下的build.prop檔

在最後一行加入後面這個指令qemu.hw.mainkeys=1

儲存後重開機,底下的三個虛擬按鍵就不見了

youtube有完整影片,照著做就ok了

https://www.youtube.com/watch?v=wt0x3kQR2cc