Ok I managed to execute the command "adb disable-verity" which prompts: "already disabled". But I still have the following error: # mount -o remount rw /system >> mount: '/system' not in /proc/mounts So I cannot manually push an APK to the /system/priv-app folder. How can I solve this issue?
On Thursday, July 30, 2020 at 9:11:06 PM UTC+2 pete....@nxp.com wrote: > > > 在 2020年7月30日星期四 UTC+8下午7:27:15,Riccardo Bruè写道: > >> I am facing the following problem on a custom iMX8 board (compiled >> following the vendor's guide) and using Android 10 (I have root access): >> >> When I connect via ADB (over WiFi) I issue the following command: >> # mount -o remount rw /system >> >> mount: '/system' not in /proc/mounts >> >> So, I tried to solve such error by issuing this other command: >> $ mount -o remount rw / >> >> Another IO error occurs >> >> At the end I tried this other command: >> $ adb remount >> >> Error >> $ adb disable-verity >> >> Device is locked. please unlock the device first >> >> So when I try to unlock it following these steps: >> >> - Settings => System => Advanced => Developer options => OEM unlocking >> - reboot to bootloader (device stuck) >> - type "fastboot 0" in the U-Boot command line >> - run "sudo `which fastboot` oem unlock" from the Host PC (device not >> seen from the PC) >> - wait until the unlock process is complete >> >> I receive the annoted errors, the device remains stuck (I already opened >> a ticket with the board vendor and I am waiting for a reply). >> >> Furthermore, I don't have any display to use with such board so I don't >> know what is appening (I can communicate via debug serial but it seems that >> it remains stuck also from there). >> >> So in order to avoid the whole process, I was thinking to directly build >> a custom version of the Android OS which is directly OEM unlocked so that I >> can issue the adb remount without any issue, but I am a beginner and I >> don't know where to start. >> > > Hi what's the log "the annoted errors, the device remains stuck " after > you unlock the device? > do you "sudo fastboot reboot" after unlock? > > If you want to unlock your device directly, you can apply below patch in > uboot. > > -- a/drivers/fastboot/fb_fsl/fastboot_lock_unlock.c > +++ b/drivers/fastboot/fb_fsl/fastboot_lock_unlock.c > @@ -360,6 +360,7 @@ FbLockState fastboot_get_lock_stat(void) { > unsigned char *bdata; > int mmc_id; > FbLockState ret; > + return FASTBOOT_UNLOCK; > /* uboot used by uuu will boot from USB, always return UNLOCK > state */ > if (is_boot_from_usb()) > return g_lockstat; > @@ -404,6 +405,7 @@ fail: > * which is managed by PresistDataService > */ > > +#define CONFIG_ENABLE_LOCKSTATUS_SUPPORT > #ifdef CONFIG_ENABLE_LOCKSTATUS_SUPPORT > //Brillo has no presist data partition > > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/e0a8def4-b74a-4feb-9ab6-a19fba6fd85an%40googlegroups.com.