编译 Repo 调试 工程相关

REPO

编译

编译framework service
1
make services -j16

push

1
2
3
4
adb root; adb remount ; adb push out/target/product/qssi/system/framework/services.jar /system/framework/


adb root; adb remount ;adb push out/target/product/qssi/system/framework/services.jar /system/framework/; adb push out/target/product/qssi/system/framework/services.jar.bprof /system/framework/;adb push out/target/product/qssi/system/framework/services.jar.prof /system/framework/ ;adb push out/target/product/qssi/system/framework/oat/arm64/services.art /system/framework/oat/arm64/ ;adb push out/target/product/qssi/system/framework/oat/arm64/services.odex /system/framework/oat/arm64/ ; adb push out/target/product/qssi/system/framework/oat/arm64/services.vdex /system/framework/oat/arm64/ ;
编译SystemUI
1
make SystemUI -j16
surfaceflinger
1
2
3
make surfaceflinger -j16

只需要把 system/bin/surfaceflinger push 进去,然后 kill surfaceflinger 进程就可以生效了
编译framework下的jni

cpp文件需要编译:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#
make libservices.core -j16
make libandroid_servers -j16

make  services -j16

adb root; adb remount; 
adb push out/target/product/qssi/system/lib64/libandroid_servers.so /system/lib64/  ; 
adb push out/target/product/qssi/system/lib/libandroid_servers.so /system/lib/ ; 
adb push out/target/product/qssi/system/framework/services.jar /system/framework/ ; 
adb reboot

调试

设置电量温度 ,温度报警在BatteryService,但是低电量现在不在这里。

1
2
3

adb shell dumpsys battery set level 13
adb shell dumpsys battery set temp 551
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

 2047  adb shell "pm install-create"
 2048  adb shell "pm install-write 2012419093 CtsSplitApp.apk /data/local/tmp/0_CtsSplitApp.apk"
 2049  adb push CtsSplitApp.apk  /data/local/tmp/0_CtsSplitApp.apk
 2050  adb shell "pm install-write 2012419093 CtsSplitApp.apk /data/local/tmp/0_CtsSplitApp.apk"
 2051  adb shell "pm install-commit 2021419093"
 2052  adb shell "pm install-commit 2012419093"
 2053  adb shell "pm list instrumentation"
 2054  adb shell "pm set-app-links-user-selection"
 2055  adb shell "pm list instrumentation"
 2056  adb shell "pm set-app-links-user-selection"
1
2

repo forall -c "pwd;git clean -df;git checkout -f";repo sync -j4;
0%