git merge --no-ff xxxx
select * from instanceof android.app.Activity
内存泄露
adb logcat -v time | grep ActivityManager
页面启动时间
adb logcat | grep Timeline
页面启动时间(Miui)
adb logcat -v time | grep AndroidRuntime
crash log
adb logcat -v time | grep "D\/Dalvik"
adb logcat -v time | grep "I\/art"
adb shell "kill -s SIGUSR1 12345"
手动gc
Log.getStackTraceString(new Throwable())
NDK_ROOT/toolchains/arm-linux-androideabi-4.9/.../arm-linux-androideabi-readelf -Ws xxx.so
NDK_ROOT/toolchains/arm-linux-androideabi-4.9/.../arm-linux-androideabi-nm -gC xxx.so
android list sdk --extended --proxy-host test.com --proxy-port 1234
android update sdk --no-ui -t 1,2,3 --proxy-host test.com --proxy-port 1234
gradle -Dhttp.proxyHost=test.com -Dhttp.proxyPort=1234 -Dhttps.proxyHost=test.com -Dhttps.proxyPort=1234
######备用
android list sdk --all --extended --proxy-host test.com --proxy-port 1234
android update sdk --no-ui --all --filter build-tools-23.0.3 --proxy-host test.com --proxy-port 1234
adb shell monkey -p your.app.package.name -c android.intent.category.LAUNCHER 1
setprop ctl.start [cmd]
setprop ctl.start bootanim/bugreport
adb bugreport /sdcard/tmp/``````SYSTEM LOG
"FATAL EXCEPTION:"
"Process: com.xiaomi.smarthome, PID:"
miui:*#*#284#*#* (bugreport->dumpstate->dumpsys)
miui蓝牙日志: *#*#5959#*#*
gradle -Dorg.gradle.jvmargs="-Xmx8192m -XX:MaxPermSize=6144m"
hprof-conv xxx.hprof xxx.std.hprof
adb remount 或者 mount -o rw,remount yaffs2 /system
aapt s -i xxx.9.png -o xxx.png
编译点9图
getprop net.dns1
echo
echo
echo
echo
gradle assembleRelease
生成未签名包
repo init -u https://android.googlesource.com/platform/manifest -b
du -sh .
df -h
apktool d
apktool b -f
keytool -list -v -keystore xxx.keystore
keytool -list -printcert -jarfile
查看证书
keytool -genkey -v -keystore
jarsigner -verbose -keystore
crt+key转keystore
openssl pkcs12 -export -in tuhuolong.crt -inkey tuhuolong_key.txt -out tuhuolong.p12 -name "tuhuolong_key"
keytool -importkeystore -srckeystore tuhuolong.p12 -srcstoretype PKCS12 -destkeystore tuhuolong.jks -deststoretype JKS
改密码
keytool -keypasswd -alias tuhuolong_key -keystore tuhuolong.jks
从指定目录的文件中查找xxxx
grep -rnw XXX_DIRECTORY -e 'xxxx'
android studio清缓存
File -> Invalidate Cache & Restart
logcat|grep "BtGatt.GattService"
git br release-x.x.x
git push origin release-x.x.x
git co release-x.x.x
git push origin release-x.x.x
git co master
git ls release-x.x.x
git cherry-pick commit-id-xxxx
git push origin master
screencap(){
adb shell /system/bin/screencap -p /sdcard/screenshot.png
sleep 1
adb pull /sdcard/screenshot.png .
}
gradle -Dorg.gradle.java.home="xxx/xxx/xxx"
ANDROID_SDK/tools/proguard/bin/retrace.sh -verbose mapping.txt obfuscated_trace.txt