编译 Repo 调试 工程相关

REPO

编译

编译framework service
1
make services -j16

push

1
adb root; adb remount ; adb push out/target/product/qssi/system/framework/services.jar /system/framework/
编译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
0%