Enabling root access

I am trying to integrate Android system on BeagleBoard as a device. I have full access to the file system, since I can read / write / format the CF card, which contains the boot and rootfs sections. For example, I can easily modify init.rc to execute arbitrary commands at boot time.

Based on this, how can I enable root access for a user on a device? If this is not possible, how can I configure dropbear SSH (or any other service) to run as root? z4root does not work , and I'm sure there should be a better method providing full access to the file system. This is Android 2.2 (Froyo) for what it costs.

+3
source share
1 answer

Changing the default.prop file to set ro.secure to 0 will allow the adb shell to run as root, as is usually done on an emulator or development device.

Since this is not the case that the Android architects foresees, the solutions that give you “some of the times” for some purposes, as you might find on your desktop, are not necessarily well developed, but you may be able to borrow something from sources of one of the communities, such as cyanogen.

+3
source

Source: https://habr.com/ru/post/1790041/


All Articles