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.