How to get root rights for android for khadas edge 1 on RK3399?
It might be much simpler, but I haven’t figured out how to do it yet.
I tried rooting the boot.img image via Magisk and installing it using utilities and RkDevTool. Simple methods of obtaining root rights using applications such as KingoRoot, of course, do not work.
I checked for root rights using RootChecker.
What do I need to do to root? I have the original firmware files.
Hi @technicalMi ,
Can you provide the firmware version? Is it our official version or you build it yourself.
I took the working firmware from here:
dl.khadas.com - Index of /products/edge1/firmware/android/.
Tried everything.
I also followed these instructions to build the firmware myself:
Edge1 Android [Khadas Docs].
Hi @technicalMi
You may refer to the patch here. I hope it can help you.
Thanks for sharing the patch! But a problem arose. I modified the file “device/rockchip/common/BoardConfig.mk”: added “BOARD_ALLOW_ROOTSERVICE ?=true” according to the instructions. However during the image build process an error occurs:
[65% 349/529] including system/extras/Android.mk ...FAILED:
build/make/core/base_rules.mk:325: error: system/extras/su: MODULE.TARGET.EXECUTABLES.su already defined by device/rockchip/common/rootservice.16:01:19 ckati failed with: exit status 1
#### failed to build some targets (16:36 (mm:ss)) ####
TARGET_PRODUCT=rk3399_Android10
TARGET_BASE_PARAMETER_IMAGE==HIGH_RELIABLE_RECOVERY_OTA=false
BOARD_AVB_ENABLE=falsesystem filesysystem is ext4
kernel image not fount
In “device/rockchip/common/rootservice/Android.mk” it is written:
ifeq ($(strip $(BOARD_ALLOW_ROOTSERVICE)), true)
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)LOCAL_CFLAGS := -Wall -Werror
LOCAL_SRC_FILES:= $(TARGET_ARCH)/xbin/daemonsuLOCAL_MODULE:= su
LOCAL_MODULE_CLASS := EXECUTABLESLOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_MODULE_TAGS := optionalinclude $(BUILD_PREBUILT)
endif
In “build/make/core/base_rules.mk” it is written in line No. 325:
$(error $(LOCAL_PATH): $(module_id) already defined by $($(module_id)))
What could be the problem?
Hi @technicalMi ,
Have you applied all the patches? Delete the out directory and recompile.
Yes, I applied all the patches according to the attached instructions and cleared the “out” folder. The firmware was successfully built, but there is still no root access. What other methods can you suggest?
Do you compile the userdebug version?