顯示具有 Android 標籤的文章。 顯示所有文章
顯示具有 Android 標籤的文章。 顯示所有文章

2011年6月23日

Building and decode Android apk


Android 的程式安裝檔在編譯的過程中會打包成副檔名apk的檔案,其中包含足夠的資訊及資料以便可以在實體裝置或模擬器上使用。Android apk 檔其實就是個 zip 壓縮檔,所以只要在副檔名最後加上 .zip 使它變成一個 zip 壓縮檔即可開啟。主要有五個部分﹕

2011年1月28日

Android input binary tool

Android 有個小程式可以模擬鍵盤操作
用法如下:
輸入字串
adb shell input text "ANDROID"
如果要輸入WiFi密碼是還不錯用,有些符號不行,如"#"
點擊螢幕上任一點
Input touchscreen tap x y
滑動至另一點
Input touchscreen swipe x1 y 1 x2 y2
輸入 keyevent
adb shell input keyevent 29    # for key 'A'