Android 8.0 、9.0源码编译问题记录

本文记录了在Android 8.0和9.0源码编译过程中遇到的问题及解决方法,包括framework.jar替换无效、adb remount权限、未知包名错误等,并提供了fastboot烧录指令、系统语言设置为中文等实用技巧。
摘要由CSDN通过智能技术生成


清理make clean; make clobber 更严格。

1 替换framework.jar不起作用

使用nexus 烧录system后,单独替换framework.jar不起作用。
研究出两种解决方案。亲自测试有效。

第一种方法:不编译优化成odex

缺点:开机非常慢
默认情况在linux编译系统 会开启odex的。
build/make/core/dex_preopt.mk

# The default values for pre-opting: always preopt PIC.
# Conditional to building on linux, as dex2oat currently does not work on darwin.
ifeq ($(HOST_OS),linux)
  WITH_DEXPREOPT ?= true
# For an eng build only pre-opt the boot image. This gives reasonable performance and still
# allows a simple workflow: building in frameworks/base and syncing.
  ifeq (eng,$(TARGET_BUILD_VARIANT))
    WITH_DEXPREOPT_BOOT_IMG_ONLY ?= true
  endif
# Add mini-debug-info to the boot classpath unless explicitly asked not to.
  ifneq (false
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值