DEV Community

Matheus
Matheus

Posted on

ADB access from stock recovery

Image description
ADB has issues from TWRP on the Samsung Galaxy Gran Prime. I modified the stock recovery so that ADB can be used as in TWRP. This is composed of a modified RAM disk + kernel. The modifications introduced in the RAM disk are for allowing ADB to be used as in TWRP. For that, I rebuilt adbd from this source, as well as modified default.prop with the following parameters.

ro.secure=0
ro.debuggable=1
persist.sys.usb.config=adb
ro.adb.secure=0
Enter fullscreen mode Exit fullscreen mode

As for the kernel, I introduced a minimal modification so that SELinux remains permissive. Having SELinux in permissive mode is vital for allowing third-party utilities to run, as well as to have full privileges on the system.

Use Android Image Kitchen for extracting the RAM disk.

All requires one to root is set SELinux to permissive.

Top comments (0)