Professional Documents
Culture Documents
com/site/tweakradje/android/rockchip-device
tweakradje
Android >
Home level
Home
RockChip device
MH370 1+1 = 2
The Domain
Expeditionary
Force (DEF)
Android
Android
explained
Applications
Battery Drain
Device Lost?
Flashing
Kospet Hope Lite
Mobile Data
block
Old Phone?
OSMAnd
navigation
Projects
RockChip device
Tablet in car
Tweaking
TWRP and The RK819 - RockChip 3066 Dual Core 1Gb RAM 8 Gb NAND Bluetooth MT6622 Wifi MT5931 LAN
backup HDMI/CVBS iRemote USB OTG sdcard
Utter!
1 of 9 16/01/2020, 21:19
RockChip device - tweakradje https://sites.google.com/site/tweakradje/android/rockchip-device
Devices
Many Android devices use the RockChip soc these days. I have some using the ARM7 rk3066 dual
Abeo internet
core. I love it. It is fast but it must come with mali400 gpu. On this page I will try to explain how to
radio
customize these devices. Also some tools to do just that are added as downloads to the bottom of
Calibrate your TV this page. I don't use ClockWorkMod recovery much. All can be done with adb and some unix
Chromecast commands.
DD-WRT
FS 6600 Dia I use adb on this page. But adb sometimes doesn't recognize newer devices. You can help it by
scanner creating a .android folder in your windows profile folder. Put adb_usb.ini in there with the USB VID
iGO from NNG of your device. RockChip has Vendor ID 0x2207. See adb download below.
Minidlna /
ReadyMedia You device needs to be rooted (but most are from the factory).
Xtreamer Mk1
Interesting Links
Backup Backup Backup
Windows
Hyper-V The first thing you do before anything is create a proper backup of your new device. Just common
Repair sense.
Safe and Secure
Scripting Creating a backup of your device is very simple. You need an sdcard (or use internal /sdcard
Software partition). From the Short Overview page we now know that Android roms are stored in mtd NAND
Spiceworks
partitions. So we need to get them to the PC.
Tweaking
After turning on your device manage to get an ADB connection working to your PC and follow these
instructions:
Recent site
activity adb shell
su (if not pre-rooted)
Tweaking
stop
edited by tweakradje
attachment from
cat /proc/mtd
tweakradje
copy and paste the content of the output to a text file on your pc
2 of 9 16/01/2020, 21:19
RockChip device - tweakradje https://sites.google.com/site/tweakradje/android/rockchip-device
Now back on your PC you need to copy them img's to the PC with adb. Create a folder on your pc
and use:
For tablet you can also use ClockWorkMod Recovery to do it. I use CWMRecovery_RK3060_5.5.0.4
and flash it using flashtool (only flash recovery!)
Even easier is NanDroid Backup. You can install it from the PlayStore and perform a MTD backup on
a live device. Choose CWM format.
Now you are safe as you can be and you can start changing some things on your device.
Restoring
This shows how to restore your device or flash it with other mtd partitions. There are tools for
official RockChip roms. I will attach them below. But on this page I do not use them.
I will show how to restore mtd partitions with unix binary called flash_image on a running device.
After that I will show how to do it on a dead device using the fastboot method. Fastboot is a low
level Android device state which allows you to write mtd nand partitions too. The official RockChip
flasher uses that Android device state too.
With adb
You need flash_image from below. And you need your original mtd images created earlier or other
mtd images you want to try. Put your device in adb mode first.
3 of 9 16/01/2020, 21:19
RockChip device - tweakradje https://sites.google.com/site/tweakradje/android/rockchip-device
adb shell
su (if not pre-rooted)
stop
busybox cp /sdcard/flash_image /dev
cd /dev
chmod 777 fl*
./flash_image misc /sdcard/mtd0_misc.img
./flash_image kernel /sdcard/mtd1_kernel.img
... do that for all mtd's
cd /data/dalvik-cache
rm *
sync
reboot
The first thing after the reboot is to do a factory reset to wipe the data partition. You will loose all
user installed apps and data.
With fastboot
When your device is "bricked" you will not be able to get a proper adb connection. There is an
escape: fastboot. How to enter fastboot on power up is different on every device. But you need to
push and hold a button during boot or push and hold a paperclip in the hole. If in fastboot mode
you will see a RK30SDK or similar device in your Windows hardware tree. It requires other USB
drivers then regular adb. You can get it from the RockChipBatchTool below.
Fastboot is a Windows utility. All commands are done from the pc and are similar to that of the unix
flash_image tool described earlier.
The Rockchip firmware image is packed as one img file containing these partitions (example RK3229
firmware):
boot.img
kernel.img
misc.img
recovery.img
4 of 9 16/01/2020, 21:19
RockChip device - tweakradje https://sites.google.com/site/tweakradje/android/rockchip-device
resource.img
system.img
trust.img
uboot.img
You can Pack/Unpack it with the RK3066_IMG_Mod_Tool.zip you can download here.
Put your image in the Mod Tool folder and rename it to wendal.img
Run the Runme.bat file to Unpack or Pack it. It will be unpacked in the temp\Image folder.
System Mods
You might want to change some things on your device's system partition. Add some things to your
build.prop ( better put them in your own /system/default.prop) or remove/add/update some apk's.
The /system partition is readonly by default. Goto adb shell and mount the partition read-write:
mount -o remount,rw /system
Deep Sleep
On the RK3066 tablets it is common that Deep Sleep system state is not happening. This is because
of the ril daemon and a process that provides 3G USB dongle support. If you don't use the 3G USB
dongle you are better of with Deep Sleep. In standy your tablet battery last much longer.
The easiest way to kill this problem is to kill the rild process. This process starts as a service from
the /init.rc file that belongs to the kernel.
5 of 9 16/01/2020, 21:19
RockChip device - tweakradje https://sites.google.com/site/tweakradje/android/rockchip-device
In a shell you can use this command to stop it each time after a reboot: stop ril-daemon
Take a close look at that /init.rc file. You will see that /system/etc/install-recovery.sh is called there
like this:
#!/system/bin/sh
stop ril-daemon
Of course you can put into the install-recovery script what you want. Most setprop or sysctl
commands or even use it for a semi init.d mechanism.
Leave alone all other mtd's and only concentrate on /system. There are kernels that are in the
boot.img but there are also devices that have a small boot.img and the kernel.img is used. In the
kernel there is the low level driver for the hardware such as bluetooth, wifi and infrared remote
control.
But the Android drivers are loaded by modules or libraries in the /system partition.
Check with dmesg command which hardware you have before you change the system.img. For the
wifi chip you can also
cat /sys/class/rkwifi/chip (like MT5931)
For changing the Wifi you need to replace or add with that from your original ROM
6 of 9 16/01/2020, 21:19
RockChip device - tweakradje https://sites.google.com/site/tweakradje/android/rockchip-device
/system/bin/wpa_supplicant
For changing Bluetooth you need to replace or add with that of your original ROM
/system/lib/libbluedroid.so
/system/lib/libbluetooth_mtk.so (or other for specific hardware, this one it for MT6622 )
/system/etc/firmware/yyyyy (in this case /system/etc/firmware/MTK_MT6622_E2_Patch.nb0 )
/system/bin/hciattach
In /system/build.prop you sometimes find these lines to activate the options in the Android Settings
app:
ro.version.radiocontrols=1
ro.version.bluetooth=1
ro.version.ethernet=1
You find them by extracting the classes.dex from the Settings.apk file and do a: strings
classes.dex|find "ro." (strings is sysinternals windows util)
On some Rockchip tablets you can only use multitouch zoom, not rotate or tilt. There is an easy fix
on your rooted tablet.
<permissions>
<feature name="android.hardware.faketouch" />
<feature name="android.hardware.touchscreen" />
<feature name="android.hardware.touchscreen.multitouch" />
<feature name="android.hardware.touchscreen.multitouch.distinct" />
<feature name="android.hardware.touchscreen.multitouch.jazzhand" />
</permissions>
CrewRKTablets Tablet Roms
7 of 9 16/01/2020, 21:19
RockChip device - tweakradje https://sites.google.com/site/tweakradje/android/rockchip-device
CrewRKTablets is a german group that creates nice tablet roms for RockChip devices. You only need
to flash the system.img and keep kernel (must be 3.0.8 or higher). They have made CM and
JB/AOSP 4.x roms and can be found here. On XDA there are some threads too. Try AOSP 4.2.2
v3.3 first (fastest).
But not always your Wifi/Bluetooth/Rotation sensor (fix) is supported by default. But you can find
fixes there or on the xda thread.
The rotation sensor is /system/lib/hw/sensors/sensors.rk30board.so
Sometimes you internal SD card is not recognized. That can be fixed with reformatting it FAT32
directly again after flashing.
...
8 of 9 16/01/2020, 21:19
RockChip device - tweakradje https://sites.google.com/site/tweakradje/android/rockchip-device
Sign in | Recent Site Activity | Report Abuse | Print Page | Powered By Google Sites
9 of 9 16/01/2020, 21:19