Page 1 of 1

Rooting NanoPC-T4???

Posted: Mon Mar 25, 2019 9:04 am
by Tiemichael
How do I root the NanoPC-T4?

From another post relating to NanoPI-T4 it says compile with 'Userdebug' - but this does not seem true.
My Build Number says: nanopc_t4-userdebug 8.1.0 ...

I either need a way to build the NanoPC-T4 rooted, or a way to root it afterwards.
If this is not possible, I most likely bought the wrong device ....

Thanks!

Re: Rooting NanoPC-T4???

Posted: Tue Apr 02, 2019 8:17 pm
by shivaa
Hi, I think if you root it you can't build it afterwards.

______________________________________________________________________
https://tweakbox.mobi/ https://getappvalley.com/ https://tutuappx.com/

Re: Rooting NanoPC-T4???

Posted: Wed Apr 03, 2019 3:23 am
by Tiemichael
Not sure about this ...

Currently I am able to root my NanoPC-T4 via adb, but it only lasts until I reboot.
I have not found a way to 'autostart' it ...

Re: Rooting NanoPC-T4???

Posted: Wed Apr 03, 2019 3:52 am
by v8dave
Tiemichael wrote:
Currently I am able to root my NanoPC-T4 via adb, but it only lasts until I reboot.
I have not found a way to 'autostart' it ...


How are you doing this via ADB? What commands are you using?

I am still looking at the kernel to see if this can be done from there.

Re: Rooting NanoPC-T4???

Posted: Wed Apr 03, 2019 11:53 am
by Tiemichael
Here are the commands I am using:
adb root
adb disable-verity (requires adb version 1.0.33 and above)
adb reboot
adb root
adb remount

adb install SuperSU.apk (from SuperSU.zip V2.82 - package)
adb push su /system/xbin/su (from SuperSU.zip V2.82 - package)
adb shell chmod 06755 /system/xbin/su
adb shell chcon u:object_r:system_file:s0 /system/xbin/su

adb shell su --install
adb shell su --daemon&
adb shell setenforce 0
adb shell mount -o remount,ro /system (now system is rooted)

When opening SuperSu you will be asked to 'update the su-binary' - don't, or you will end in a bootloop!!!

adb reboot ( ==> no longer rooted)

Once this is done, you can become rooted again by:
adb root
adb remount
adb shell su --install
adb shell su --daemon&
adb shell setenforce 0

Looking at the complicated installation script for SuperSU with app 1600 lines, my current hope is to find (or even create) a CWS or TWRP-recovery for the NanoPC ...
Any other idea???

Re: Rooting NanoPC-T4???

Posted: Sun Sep 15, 2019 2:17 pm
by pumuckll
thanks

this works also for the neo4


is there a way too root the device permanent?

Re: Rooting NanoPC-T4???

Posted: Wed Oct 09, 2019 7:51 am
by Tiemichael
the answer is here: viewtopic.php?f=63&t=2162