最近使用到 aapt 這個工具當中 dump apk 資訊的功能,
在此做個筆記,
該工具的路徑是在 build 出 Android 包之後產生的 ./out 目錄下 "AndroidSource/out/host/linux-x86/bin/aapt"
目前只使用到 dump 的指令:
rex5405 發表在 痞客邦 留言(0) 人氣(29,906)
每次要用都會忘記,所以做個簡單記錄。
# 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 中增加下面這條,
rex5405 發表在 痞客邦 留言(0) 人氣(37,694)
git 初始設定
設定使用者訊息
$ git config --global user.name "xxx"
$ git config --global user.email "xxx@gmail.com"
rex5405 發表在 痞客邦 留言(0) 人氣(5,530)
* show_progress(frac, sec)
ex.
show_progress(0.300000, 0); --- 控制升級時的進度條,第一個參數 0.3 代表顯示進度條到 30% 的位置,第二個參數是預估這個動作的總秒數,可以都為0
* set_progress(frac)
rex5405 發表在 痞客邦 留言(0) 人氣(2,408)
nmap -sP 192.168.0.0/24
掃瞄子網路內的所有IP,並印出 MAC 資訊
nmap -sT 192.168.0.0/24
使用 TCP connect scan
rex5405 發表在 痞客邦 留言(0) 人氣(322)
筆記一下開啟 wifi adb 的方法
取得 root 權限之後,
開啟 tcp port
#setprop service.adb.tcp.port 5555
rex5405 發表在 痞客邦 留言(0) 人氣(2,702)
加上 include <errno.h>
在想要知道當前 error code 的地方
printf("errno : %d\n", errno);
對照下面列表
rex5405 發表在 痞客邦 留言(0) 人氣(434)
使用的主機是裝 Ubuntu 12.04 的
紀錄一下快速啟用 Samba 的方法。
#apt-get install samba
rex5405 發表在 痞客邦 留言(0) 人氣(1,351)
剛好用到,來做個筆記
import java.io.File; // import File 類別
rex5405 發表在 痞客邦 留言(0) 人氣(6,525)
稍微記錄一下 TextToSpeech (TTS) 的使用方法,
這是 android 的語音合成,
有多種不同的發音套件可以下載,
rex5405 發表在 痞客邦 留言(0) 人氣(5,102)