Unable to use root to write to disk


(Jon Smirl) #1

These newer Android images have verity enabled. Verity stops viruses from messing with the low level boot process. It also stops you from writing to the disk even if you have root.

adb disable-verity adb reboot

Now you can write to the disk.


(Tatiana Smith Solana) #2

Hello, when I connect the M64 to PC via micro usb, isn´t recognized by pc for USB debuging so I can´t use ADB commands. When run “adb devices” in cmd, the M64 isn´t visible, also windows only can recognize it as a “camera”

Why? How can I use the ADB with this device? I used it before but in this device its impossible


(Jon Smirl) #3

You likely have a ‘user’ build installed instead of a “userdebug” build. The ‘user’ builds are locked down for safety against hackers. Also make sure you have gone through the sequence in settings to turn on USB debug support.

adb works with the right image installed, I use it everyday.


(Tatiana Smith Solana) #4

Hello Jon_Smirl, thanks a lot for your reply, I understand. I downloaded the android 6.0 V2 and V1 from the banana pi official site and from this forum links (are the same) (HDMI), please where can I get the right image with working ADB, the “userdebug” build? Where do you downloaded it??


(Jon Smirl) #5

I build my own from source. Bug the BPi people to put one up that is ‘userdebug’


(Tatiana Smith Solana) #6

ok. Thanks a lot again. I downloaded source, trying to compile it with cygwin but I can´t “Compile the lichee kernel”. The command window say me that I´m not in the lichee upper folder or something similar.

But I am in the top, calling to ./build.sh config, I am not sure what is happening.


(Jon Smirl) #7

Don’t use Cygwin. Make an Ubuntu 14 or 16 VM and compile it there. Virtualbox is free way to get VM.

Andoird 5 needs Ubuntu 14 Android 6 needs Ubuntu 16


(Tatiana Smith Solana) #8

ok, perfect :slight_smile: . I´ll try again with Ubuntu 16 and VMware or similar virtual machine :yum:


(Jon Smirl) #9

Android is developed on Linux and they have used many, many features of Linux in the build process. Cygwin is not compatible enough, Bash on Windows is also not compatible enough. You can get both of those to work if you want to spend several days altering things in the build files but it is way easier to just use a VM.