Android Q 新增api 接口需要先执行下面的编译命令
make api-stubs-docs-update-current-api
Android studio 乱码 help-> edit custom vm…
-Dfile.encoding=UTF-8
scp -p -P 29418 xxxxxxxxxxx@xxxx:hooks/commit-msg .git/hooks/
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := xxx
LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_SRC_FILES := xxx
LOCAL_INIT_RC := xxx.rc
include $(BUILD_PREBUILT)
平台class
make framework
out\target\common\obj\JAVA_LIBRARIES\framework_intermediates
获取平台签名
1\ openssl pkcs8 -inform DER -nocrypt -in platform.pk8 -out platform.pem
2\ openssl pkcs12 -export -in platform.x509.pem -out platform.p12 -inkey platform.pem -password pass:123456 -name xxx
3\ keytool -importkeystore -deststorepass 123456 -destkeystore platform.jks -srckeystore platform.p12 -srcstoretype PKCS12 -srcstorepass 123456
storePassword '123456'
keyAlias 'xxx'
keyPassword '123456'
调试开启 malloc_debug
adb root
adb shell setprop libc.debug.malloc.options "\"backtrace=4 verbose backtrace_dump_on_exit \" "
adb shell setprop libc.debug.malloc.program cameraserver
@REM adb shell setprop libc.debug.malloc.env_enabled 1
@REM adb shell export LIBC_DEBUG_MALLOC_ENABLE=1
adb shell chmod 777 /data/local/tmp
adb shell setenforce 0
adb shell "kill `pidof cameraserver`"
adb shell "logcat |grep \"malloc debug enable\" |head -10"
pause