Moderators: chensy, FATechsupport
v8dave wrote:
If you build the source and choose the USERDEBUG version (default), you have full root access.
Code: Select all
TARGET="ota"
raimo wrote:
Then try embedding SuperSU instead. That works for sure!
The steps are:
1. Put the downloaded files into /vendor/root (make sure that you also copy the hidden file!)
2. Change root.mk: replace "vendor/amlogic/root" by "vendor/root"
3. Add also the line "vendor/root/su:system/xbin/su \"
4. Add "PRODUCT_PACKAGES += SuperSU" at the end of that file
5. Now go into the folder "SuperSU" and change "LOCAL_CERTIFICATE := PRESIGNED" to "LOCAL_CERTIFICATE := PLATFORM" inside "Android.mk"
6. Modify "/device/rockchip/rk3399/nanopc_t4.mk" by adding "$(call inherit-product-if-exists, vendor/root/root.mk)"
And then recompile (you don't need to clear the entire output directory).
I hope I did not miss anythink.
- Yes, just create it. You can actually use any folder you want it just has to be referenced correctly inside "/device/rockchip/rk3399/nanopc_t4.mk".Daitaro wrote:
1. When you say /vendor/root, my "vendor" folder doesn't have root. Do I make the folder? This is a fresh download of the source.
- The file ".installed_su_daemon" is invisible by default. Make sure it is also present in your directory.Daitaro wrote:
2. When you say copy the hidden file as well, I enabled hidden files and there is no hidden file there. Am I missing something or is there just not one there? I went to SuperSU and downloaded the zip folder and I have the files that extracted from that.
- No problem!Daitaro wrote:
I'll try your responses and ask anything else I need help with.
Thank you so much for your tip on getting root!
raimo wrote:
- Yes, just create it. You can actually use any folder you want it just has to be referenced correctly inside "/device/rockchip/rk3399/nanopc_t4.mk".
I've downloaded supersu 2.82. The zip folder from chainfire.
1) You mention being able to make any folder instead of /vendor/root, as long as I reference it in "/device/rockchip/rk3399/nanopc_t4.mk". Does this mean that /vendor/root has to be referenced as well, or is it fine without it as long as I use /vendor/root? I couldn't find it within that file. If so, how would I add it?
2) I'm not sure I'm copying over the correct files, as in my SuperSU folder, there's no Android.mk, as you specify. Also, I have found root.mk under the build/make/core folder. Is this correct? My root.mk is essential empty with a bold caution not to edit the file. Again, this is all off of a fresh android 8.1 image from friendlyelec.
Daitaro wrote:
Hello all!
The title speaks for itself - I am wondering why there isn't a larger move towards rooting this thing? It's a development board; yet there is no root available for this system. Maybe we could research as a whole how to get this done?
raimo wrote:I've downloaded supersu 2.82. The zip folder from chainfire.
The instructions I posted are referring to the SuperSU version from https://hawkbets.com/. There all files I mentioned should be present and you don't need any additional files.1) You mention being able to make any folder instead of /vendor/root, as long as I reference it in "/device/rockchip/rk3399/nanopc_t4.mk". Does this mean that /vendor/root has to be referenced as well, or is it fine without it as long as I use /vendor/root? I couldn't find it within that file. If so, how would I add it?
The folder does not matter, just the location of the makefile "root.mk". This has to be specified by adding the line "$(call inherit-product-if-exists, vendor/root/root.mk)" to "/device/rockchip/rk3399/nanopc_t4.mk". There you could also adjust the directory.2) I'm not sure I'm copying over the correct files, as in my SuperSU folder, there's no Android.mk, as you specify. Also, I have found root.mk under the build/make/core folder. Is this correct? My root.mk is essential empty with a bold caution not to edit the file. Again, this is all off of a fresh android 8.1 image from friendlyelec.
If you use the files from the repository mentioned above the "Android.mk" file is inside the folder SuperSU.
Good luck!