Last active
May 15, 2016 01:48
-
-
Save tkawajir/9721512 to your computer and use it in GitHub Desktop.
Android関連諸々
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
①Androidログ出力 | |
・ログに出力時間を含める | |
adb logcat -v time | |
・ファイルに出力 | |
adb logcat > log.txt | |
・ログにスレッドIDも出力 | |
adb logcat -v long | |
・ログをすべてクリアする | |
adb logcat -c | |
②Android kernelログ出力 | |
・ファイルに出力 | |
adb shell su -c dmesg > log.txt | |
・ログをすべてクリアする | |
adb shell su -c dmesg -c | |
③androidのバイナリ | |
・必要な共有ライブラリ | |
cm11/prebuilt/darwin-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-readelf -d ファイル名 | |
④APKの作り方 | |
・framework-res.apkのインストール | |
apktool if framework-res.apk <tag> | |
・APKファイルのデコード | |
apktool d -t <tag> file.apk | |
・APKファイルのビルド | |
apktool b <app_path> | |
・署名用キーの作り方 | |
keytool -genkey -v -keystore hoge.keystore -storepass pass_keystore -alias alias_key1 -keypass pass_key1 -dname "CN=HOGE,O=FUGA,C=JP" -keyalg RSA -validity 10000 | |
・APKファイルの署名 | |
jarsigner -verbose -keystore hoge.keystore -storepass pass_keystore -keypass pass_key1 piyo.apk alias_key1 | |
⑤mount関係 | |
・mount情報の一覧を取得 | |
mount | |
・/systemをrwでremount | |
mount -o remount,rw /system /system |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment