android12 imx8 去除lock锁,adb文件权限报错代码解决

这篇博客介绍了如何在Android 12版本中,针对IMX8平台去除设备的lock锁,并解决了在该过程中遇到的ADB文件权限报错问题。通过修改`fb_fsl_boot.c`文件中的`wipe_all_userdata()`函数和添加解锁逻辑,以及执行`preinstall.sh`脚本来禁用verity和重新挂载分区。
摘要由CSDN通过智能技术生成

/vendor/nxp-opensource/uboot-imx/drivers/fastboot/fb_fsl/fb_fsl_boot.c

static void wipe_all_userdata(void)

{

char response[FASTBOOT_RESPONSE_LEN];

/* Erase all user data */

printf("Start userdata wipe process....\n");

/* Erase /data partition */

fastboot_wipe_data_partition();

#if defined (CONFIG_ANDROID_SUPPORT) || defined (CONFIG_ANDROID_AUTO_SUPPORT)

/* Erase the misc partition. */

process_erase_mmc(FASTBOOT_PARTITION_MISC, response);

#endif

#ifndef CONFIG_ANDROID_AB_SUPPORT

/* Erase the cache partition for legacy imx6/7 */

process_erase_mmc(FASTBOOT_PARTITION_CACHE, response);

#endif

#if defined(AVB_RPMB

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值