Android Tablets Forum banner
1 - 20 of 28 Posts

·
Registered
Joined
·
141 Posts
Hello all,

Here it is!

I have finished translating the kitchen for windows, but there is a new spanish version, made by Jostey at Foro Tablets.

All the credits go to Jostey for make the script and publish it in Foro Tablets.

I have translated the bat script to english and newtuxflashtools exe file from german.

RKcooking.zip (2.99MB)



Requirements

Java JDK is necessary, download here

Android SDK is necessary, download here

Driver ADB is necessary if you need to dump the rom from tablet, download here. Debug mode in tablet must be activated.

Test ADB with PC.

Only tested in x86 windows, 64 bits users be careful!!

A temporary root tool (SuperOneClick is recommended), Z4root, or Universal Application Androot (v1.6.2 Beta 5) required to make temporary root and dump your rom from tablet.

A SD card is used to make temporary ROM dump files... (I have trouble with free space in /temp in my tablet).


Features:

Quick and dirty batch script kitchen for Windows, is just a batch file and the tools recopiled.

You can make it better! if something is mistranslated, correct it!

Allow you to dump almost any rom, unpack rom files, edit and modify image files (system and boot) if image file is not encrypted, sign image files, repack and flash, all in one tool

You can also make a ROM backup from your tablet (temporary root is required).

The image editor, newtuxflashtools, is totally translated to english.

Signs the modified images.

The utility repacks the ROM.

You can flash the tablet from the script.


Installation:

To install the script, just unpack RAR file in C:\. The folder has to be C:\RKCooking, because there are a lot of script dependencies.

Execute the script calling the RKCooking.bat file. I recommend to change the direct access propertys of DOS console to show 80X50 characters.

The script self describes each menu option.

How to dump the working ROM from your tablet with RKcooking utility.

1.- Be sure you have installed the ADB driver, the RKcooking utility and temporary root utility in tablet (SuperOneClick must be installed in PC).

2.- Put a working microSD in socket, will be used to copy temporary files.

3.- Verify Settings -->Applications-->Development-->Enable USB Debugging and Plug USB cable.

4.- Execute the temporary root tool.

5.- Execute the Rkcooking utility and select: 2) Create a ROM from the ROM installed on your tablet.

6.- Follow the screen progress... the screen will show someting like this:

Code:
The dump will be copied to the SDCard temporaly<br />
 			The temporary area of tablet will not be used!<br />
 			* Dump in progress ... <br />
 			Please wait ...<br />
 			update.img found (130594816 bytes)<br />
 			dumping...<br />
 			crc found (4 bytes, 0xeaa1f600)<br />
 			done<br />
 			cramfs found (124309504 bytes)<br />
 			dumping...<br />
 			crc found (4 bytes, 0x966b6c33)<br />
 			done<br />
              * Copying update.img to PC ...<br />
          	2100 KB/s (130594820 bytes in 60.718s)<br />
              * Unpacking Image...<br />
          	Check file... OK<br />
   			------- UNPACK ------<br />
          	HWDEF   0x00000800  	0x0000032D<br />
          	package-file	0x00001000  	0x00000216<br />
          	RK28xxLoader(L).bin 	0x00001800  	0x00020314<br />
          	parameter   	0x00022000  	0x00000209<br />
          	Image/misc.img  0x00022800  	0x0000C000<br />
          	Image/kernel.img    	0x0002E800  	0x0054759D<br />
          	Image/boot.img  0x00576000  	0x0002B004<br />
          	Image/recovery.img  	0x005A1800  	0x0024F004<br />
          	Image/system.img    	0x007F1000  	0x07499004<br />
          	SELF	0x00000000  	0x07C8B804<br />
          	Skip SELF file.<br />
          	update-script   0x07C8A800  	0x000004B5<br />
          	recover-script  0x07C8B000  	0x0000010A<br />
          	Unpack OK!<br />
<br />
          	* Copying system.img (decrypted) to PC ...<br />
<br />
 			2125 KB/s (124309508 bytes in 57.125s)<br />
<br />
 			* Erasing temporary files from tablet ...<br />
 			* erasing temporary files ...<br />
 			Archivo eliminado: C:\RKCooking\tempadb\update.img<br />
        	Correcto: se terminó el proceso "adb.exe" con PID 800.<br />
        	* Ready! If there is an error try it again!<br />
        	Do you want to try the ROM Dump? (Y/N):
7.- Answer no, now your rom is dumped in c:\rkcooking\temp folder, but divided in partitions in the image folder.

8.- Press: 3) Continue with ROM (or dump unpacked from the tablet):
Code:
 *** Already a decompressed image in the folder \temp\Image ***<br />
    	*** If you choose NO, the script wil delete the folder \temp\<br />
        Continue with this image? (Y/N/Exit):
9.- Press "y" to continue
10.- Press 4) Pack images availables in temp folder
Pack the images to build the ROM file to flash.
You can put the name you want.

Just write a name for your rom without spaces or special characters like "Myoriginalromdumped" and don't write filename extension.
Continue-- press "y" and you'll see the progress...
Code:
 * Packing originalromdumped.img ...<br />
 	------ PACKAGE ------<br />
 	Add file: C:/RKCooking/temp/HWDEF<br />
 	Add file: C:/RKCooking/temp/package-file<br />
 	Add file: [URL=C:/RKCooking/temp/RK28xxLoader(L)]C:/RKCooking/temp/RK28xxLoader(L)[/URL].bin<br />
 	Add file: C:/RKCooking/temp/parameter<br />
 	Add file: [URL=C:/RKCooking/temp/Image/misc]C:/RKCooking/temp/Image/misc[/URL].img<br />
 	Add file: [URL=C:/RKCooking/temp/Image/kernel]C:/RKCooking/temp/Image/kernel[/URL].img<br />
 	Add file: [URL=C:/RKCooking/temp/Image/boot]C:/RKCooking/temp/Image/boot[/URL].img<br />
 	Add file: [URL=C:/RKCooking/temp/Image/recovery]C:/RKCooking/temp/Image/recovery[/URL].img<br />
 	Add file: [URL=C:/RKCooking/temp/Image/system]C:/RKCooking/temp/Image/system[/URL].img<br />
 	SELF file<br />
 	Add file: C:/RKCooking/temp/update-script<br />
 	Add file: C:/RKCooking/temp/recover-script<br />
 	Add CRC...<br />
 	Add CRC32<br />
 	Pack OK!<br />
      * Ready!<br />
      * Press ENTER to continue.
Press enter and utility back to previous menu, you can press 6 to exit. answer No to erase files in temporary folder.

Now you have your Rom dumped in c:\cookingrom\cookedrom, with the .img extension.

Modify a ROM with RKCooking utility

1.- Copy Update.img or img file to c:\rkcooking\Rombase

2.- Run RKCooking utility and Press: 1 to create a ROM from a modified ROM.
The utility shows all images in folder.
Write the name of image file without .img filename extension
3.- Press in the submenu: 1) Unpack the image previously assigned.
Example:
Code:
* Unpacking Image...<br />
Check file... OK<br />
------- UNPACK ------<br />
HWDEF   0x00000800  	0x0000032D<br />
package-file	0x00001000  	0x00000216<br />
RK28xxLoader(L).bin 	0x00001800  	0x00020314<br />
parameter   	0x00022000  	0x00000209<br />
Image/misc.img  0x00022800  	0x0000C000<br />
Image/kernel.img    	0x0002E800  	0x0054759D<br />
Image/boot.img  0x00576000  	0x0002B004<br />
Image/recovery.img  	0x005A1800  	0x0024F004<br />
Image/system.img    	0x007F1000  	0x07667004<br />
SELF	0x00000000  	0x07E59804<br />
Skip SELF file.<br />
update-script   0x07E58800  	0x000004B5<br />
recover-script  0x07E59000  	0x0000010A<br />
Unpack OK!<br />
 * Ready!<br />
 * Press ENTER to continue.
4.- Now you have the following files in c:\rkcooking\temp:
  • HWDEF
  • package-file
  • parameter
  • recover-script
  • RK28xxLoader(L).bin
  • update-script
In folder c:\rkcooking\temp\image you have the partitions:
  • boot.img Boot: parttion with scripts and files to boot
  • kernel.img: The linux kernel
  • misc.img: miscellaneous partition
  • recovery.img: Recovery partition with scripts to recover and flash update.img etc.
  • system.img: The main Android partition, where aplics are...
5.- Press 2 to Change(s) image(s) with NewTuxFlash.exe
Invoke NewTuxFlash and open c:\rkcooking\temp\image\system.img or c:\rkcooking\temp\image\boot.img
The 2 partitions NewTuxFlash can open are system.img or boot.img.
You can remove applicationss in /system/app folder or paste new apps too.
If you press right button on file you can edit file permissions.

To copy standard apps to /system/app, just select in windows explorer and copy it, and paste it (or them) in /system/app.

The filename permissions for standard apps are very important and should be the same it have in /data/app. In My tablet I put:
User: 1000, Group:1000 (it will be trunked to 8 bits and will be 232), User:RW, Group R, Other:R

You can edit script OR text files as buid.prop and save it modified.

6.- When you save a modified partition add "_new" to the end of name, example: system.img save it as system_new.img and boot.img save it as boot_new.img.

7 When you have modified a system or boot partition, YOU MUST SIGN THE IMAGE FILE.

Press 3 to Sign image(s) that have been saved with NewTuxFlash.exe
8.- When you have signed the modified partitions, you can repack the rom file:

Press 4 Pack images in \temp\ folder, and write the filename you want but do not use spaces. don't put .img filename extension.
The rom image file you have cooked is in c:\RkCooking\Cookedrom
9.- Press 5 to Flash the ROM. You can Upload any rom to the tablet with this menu option.
Invokes RK2818BatchUpgrade 1.23. You must select one image file, don't use Boot and don't tick Demo, and press Upgrade.
I ever make a simple test to be sure the rom is OK before to flashing, I move the new packed rom image file from cookedrom to rombase folder,
and rename the c:\rkcooking\temp folder to other name esxample:temp1, and select 7 to go to main menu and then select 1 to unpack rom...
If the rom is unpacked OK, it can be flashed. If you have any error... review the steps...

Make root the tablet

You must copy the following files and modifications in system partition:
You must make the following modifications to boot partition:

  • Modify these parameters from buid.prop in root folder to:
    • ro.debuggable=1
    • persist.service.adb.enable=1
  • Add the filename "sh" from folder /bin in system partition to folder /sbin and put the following permissions: User: 1000(System), Group:1000(System), User:RWX, Group:RWX, Other:RWX

Modify Locales to boot in your own language and time zone

Modify the filename build.prop in root of system partition to add/modify the following parameters:

  • ro.product.locale.region=ES (ES= Spanish EN=English.....)
  • ro.product.locale.language=ES (same previus parameter)
  • persist.sys.timezone=Europe/Madrid (Europe/London, or GMT+1:00...)
 

Attachments

·
Registered
Joined
·
141 Posts
Discussion Starter · #3 ·

·
Registered
Joined
·
10 Posts
I tried to change the logo but it didnt work completely.

Apparently there are 3 resources when you boot your tablet:
Initial boot image
Second boot image
Boot Animation

After cooking my own rom, adding initboot.rle and bootanimation.zip. I saddly reach the following conclusions:

* The "Boot Animation" can be changed putting the bootanimation.zip in /media/ folder (inside system.img)
* The "Second Boot image" can be changed making the infamous initlogo.rle and placing it in the root folder of boot.img
* The "Initial Boot Image" i supposed can be changed replacing the boot.rle file. The problem is i've never found out in my imgs files from the custom rom i used any boot.rle file.

When I reboot the tablet i get The default boot image that came with the rom, then after 2 seconds, my custom boot image, and then after some time my custom animation...

Perichel... Did you found out any way to change this initial boot image?

Regards
 

·
Registered
Joined
·
525 Posts
* The "Initial Boot Image" i supposed can be changed replacing the boot.rle file. The problem is i've never found out in my imgs files from the custom rom i used any boot.rle file.
initial boot image on most rk2818 tablet is in kernel. do you know tux/tuz logo on Linux? initial boot image is same as tux/tuz logo in Linux.
 

·
Registered
Joined
·
141 Posts
Discussion Starter · #6 ·
you are right.

initial boot image on most rk2818 tablet is in kernel. do you know tux/tuz logo on Linux? initial boot image is same as tux/tuz logo in Linux.
You are right. We have to live with initial kernel image if we want to use accelerated video, etc.
 

·
Registered
Joined
·
141 Posts
Discussion Starter · #8 ·

·
Registered
Joined
·
141 Posts
Hi all,

Relaunching this topic because of people asking how to make basic things.

Instructions were added to dump original ROM from tablet and how to modify and root your ROM.

Just read the first post in topic

Please, post comments to make this a better reference for newbees and all users.
 

·
Registered
Joined
·
4 Posts
Hello all,

Here it is!

I have finished translating the kitchen for windows, but there is a new spanish version, made by Jostey at Foro Tablets.

All the credits go to Jostey for make the script and publish it in Foro Tablets.

I have translated the bat script to english and newtuxflashtools exe file from german.
Hi!
Is to you three of my plain questions.

1- "If the image file an original file from manufacturer it can't in edited by newtuxflashtool"
Why? How can I modify factory rom?
How I know it root the factory rom?

2- You must copy the following files and modifications in system partition:
SuperUser.apk (download it from market) to system/app and put the following file permissions: User: 0, group:0, User:RWX, Group R, Other:R
su to /bin and put the following file permissions: User: 0, group:0, User:RWX, group:RWX, Other:RWX
su = Superuser.apk ?

3- I am Hungarian.
ro.product.locale.region=HUN , HU , hu , Hun Which one the correct one?
ro.product.locale.language= Hun , HU , hu , Hun Which one the correct one?

Thank you for the answers ahead and do not be angry because of my English.
 

·
Registered
Joined
·
141 Posts
Discussion Starter · #13 ·
Hi!
Is to you three of my plain questions.

1- "If the image file an original file from manufacturer it can't in edited by newtuxflashtool"
Why? How can I modify factory rom?
How I know it root the factory rom?

2- You must copy the following files and modifications in system partition:
SuperUser.apk (download it from market) to system/app and put the following file permissions: User: 0, group:0, User:RWX, Group R, Other:R
su to /bin and put the following file permissions: User: 0, group:0, User:RWX, group:RWX, Other:RWX
su = Superuser.apk ?

3- I am Hungarian.
ro.product.locale.region=HUN , HU , hu , Hun Which one the correct one?
ro.product.locale.language= Hun , HU , hu , Hun Which one the correct one?

Thank you for the answers ahead and do not be angry because of my English.
Hi muchacoado,

I'm spaniard and my english is very bad too!

>>1- "If the image file an original file from manufacturer it can't in edited by newtuxflashtool"
Why? How can I modify factory rom?

If you have a image rom from manufacturer you can:

  • 1. Try Jostey's Cooking Utility, because is newer than mine and can decrypt some original roms. The bad news is Jostey's Utility is spanish, and I have pending the translation to english. (copy and paste to google translator... ;-)
  • 2.- If you have this rom installed, just try to dump the rom with RKCooking Utility.
When you have the image file dumped, or can be opened by the utility just follow the menu option 3 to continue editing the rom and then press 2 to open image files with Newtuxflash utilty, all of this is in first post.

>>2 su = Superuser.apk ?

su is an arm linux elf binary executable file used to make root a shell session. you can find "su" in a lot of already rooted roms. You can download su here.

>>3- I am Hungarian...
I'm not sure 100% but test this:

ro.product.locale.region=HU
ro.product.locale.language= HU

How I know it root the factory rom?
Just follow the steps in first post.
 

·
Registered
Joined
·
4 Posts
Hi muchacoado,

I'm spaniard and my english is very bad too!

>>1- "If the image file an original file from manufacturer it can't in edited by newtuxflashtool"
Why? How can I modify factory rom?

If you have a image rom from manufacturer you can:

  • 1. Try Jostey's Cooking Utility, because is newer than mine and can decrypt some original roms. The bad news is Jostey's Utility is spanish, and I have pending the translation to english. (copy and paste to google translator... ;-)
  • 2.- If you have this rom installed, just try to dump the rom with RKCooking Utility.
When you have the image file dumped, or can be opened by the utility just follow the menu option 3 to continue editing the rom and then press 2 to open image files with Newtuxflash utilty, all of this is in first post.

>>2 su = Superuser.apk ?

su is an arm linux elf binary executable file used to make root a shell session. you can find "su" in a lot of already rooted roms. You can download su here.

>>3- I am Hungarian...
I'm not sure 100% but test this:

ro.product.locale.region=HU
ro.product.locale.language= HU

How I know it root the factory rom?
Just follow the steps in first post.
You plan it how you prepare translation for new Jostey's Cooking Utility?
 

·
Registered
Joined
·
141 Posts
Discussion Starter · #15 ·
Hi muchacoado,
I want to translate the new jostey's kitchen but I don't have enough spare time.

Maybe in chrismas holydays...
 

·
Registered
Joined
·
141 Posts
Discussion Starter · #17 ·

·
Registered
Joined
·
4 Posts
When i try to unzip RKCooking.zip i get a "corrupt\damaged zip file" msg. I've downloaded it with three different computers on different networks and it always the same! Can anyone help? PLEASE?? ;-) Thanks in advance!
 

·
Registered
Joined
·
141 Posts
Discussion Starter · #20 ·
When i try to unzip RKCooking.zip i get a "corrupt\damaged zip file" msg. I've downloaded it with three different computers on different networks and it always the same! Can anyone help? PLEASE?? ;-) Thanks in advance!
Hi,

I tested downloading it today and the zip file is still OK.
 
1 - 20 of 28 Posts
Top