最近使用到 aapt 這個工具當中 dump apk 資訊的功能,
在此做個筆記,
該工具的路徑是在 build 出 Android 包之後產生的 ./out 目錄下 "AndroidSource/out/host/linux-x86/bin/aapt"
目前只使用到 dump 的指令:
aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
最近使用到 aapt 這個工具當中 dump apk 資訊的功能,
在此做個筆記,
該工具的路徑是在 build 出 Android 包之後產生的 ./out 目錄下 "AndroidSource/out/host/linux-x86/bin/aapt"
目前只使用到 dump 的指令:
aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
每次要用都會忘記,所以做個簡單記錄。
# ifconfig eth0:1 192.168.0.10 netmask 255.255.255.0
# route add -net 192.168.1.0/24 gw 192.168.0.11
下完上述兩行之後,下 route -n 會看到 routing 中增加下面這條,
git 初始設定
設定使用者訊息
$ git config --global user.name "xxx"
$ git config --global user.email "xxx@gmail.com"
查詢設定結果
* show_progress(frac, sec)
ex.
show_progress(0.300000, 0); --- 控制升級時的進度條,第一個參數 0.3 代表顯示進度條到 30% 的位置,第二個參數是預估這個動作的總秒數,可以都為0
* set_progress(frac)
設置進度條
nmap -sP 192.168.0.0/24
掃瞄子網路內的所有IP,並印出 MAC 資訊
nmap -sT 192.168.0.0/24
使用 TCP connect scan
nmap -sU 192.168.0.0/24
筆記一下開啟 wifi adb 的方法
取得 root 權限之後,
開啟 tcp port
#setprop service.adb.tcp.port 5555
重啟 adb daemon
加上 include <errno.h>
在想要知道當前 error code 的地方
printf("errno : %d\n", errno);
對照下面列表
/usr/include/asm-generic/errno-base.h
使用的主機是裝 Ubuntu 12.04 的
紀錄一下快速啟用 Samba 的方法。
#apt-get install samba
安裝完之後
#vi /etc/samba/smb.conf
剛好用到,來做個筆記
import java.io.File; // import File 類別
File file_test = new File("/tmp/new_file.sh");
File dir_test = new File("/tmp/new_dir");
/* 檔案 */
稍微記錄一下 TextToSpeech (TTS) 的使用方法,
這是 android 的語音合成,
有多種不同的發音套件可以下載,
最常用的還是 Google 文字轉語音,不同家的手機廠商可能內鍵不同的套件,
android 建立出來的檔案系統,
會發現 output 出來的 system 內容的檔案權限跟 owner 與一般 android 中的不相同,
但從 system.img 中解出來的檔案,
則是照標準的 android 規範設定過,
原因在於 android 原生的程式,