12月 122019
在frameworks/base/packages/SystemUI目录下执行mm命令,提示找不到metrics-helper模块
不能单独编译模块,全编译系统很浪费时间
问度娘后发现子目录tests依赖于这个模块,将tests目录下的Android.mk改名后即可
另附ubuntu下自动编译SystemUI的shell脚本
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#!/bin/bash rootdir=~/zhtprojects/imx8/aosp8.1/ echo $rootdir cd $rootdir source build/envsetup.sh lunch 34 #cd $rootdir/prebuilts/sdk/ #mm #cd $rootdir/prebuilts/misc/common/android-support-test #mm #cd $rootdir/platform_testing/libraries/metrics-helper #mm cd $rootdir/frameworks/base/packages/SystemUI/ mv tests/Android.mk tests/Android.mk_ mm mv tests/Android.mk_ tests/Android.mk adb root adb remount cd $rootdir adb push $rootdir/out/target/product/mek_8q/system/priv-app/SystemUI /system/priv-app/ adb reboot |
Sorry, the comment form is closed at this time.