Saturday, March 4, 2017

Stock and MTK ROM in android

                                   please like & Subscribe our youtube channel

         https://www.youtube.com/playlist?list=PLQzJncZC8PUwCTcniu_akzp0N0oDx7l1n



android ROM 

Rom is an operating system run on your device. It is stored in read-only memory in hardware segment where your firmware and all application store and all device come with a ROM which installs by the manufacturer. Android ROM contains all flash files like system, boot, and recovery. It is stored in read-only memory part on hardware.





Stock Rom

It is a cd Image file which builds in Linux operating system. This ROM generally uses in Chinese device like all winner devices.
Supported firmware images:
1) Sochip SC8600/SC9800 
2) Boxchip F10/F15/F16/F20 
3)Teclast T7200/T8100 
4) Allwinner F10/F13/F18 
5) Allwinner F1C100/F1E200 
 6) Allwinner A10/A13/A10s 
7) Allwinner A20/A31/A31s 
 8) Allwinner A80 (Phoenix Suit)


You can see stock ROM in below picture.




Structure Stock Rom



Here there four are four main files 
1) Boot.fex- boot file contain all files which are necessary for the boot like all boot script, boot logo, boot animation.

Boot file contains ramdisk and kernel.This is the boot partition of your Android device. It includes the android kernel and the ramdisk. The device will not boot without this partition. Wiping this partition from recovery should only be done if absolutely required and once done, the device must NOT be rebooted before installing a new one, which can be done by installing a ROM that includes a /boot partition.

2) Recovery.fex- recovery file contains all back and restores files.

 It provides advanced recovery, installation, restoration, and maintenance operation for the device.
This is specially designed for backup. The recovery partition can be considered as an alternative boot partition.

3) System.fex- folder all system files contain in the system.

This partition contains the entire Android OS, other than the kernel and the ramdisk. This includes the Android GUI and all the system applications that come pre-installed on the device.


4) Bootloader.fex- this file contains the script for boot, battery images, and first boot logo file.



Extract Stock Rom



There lot of tools available in the market to extract stock ROM like imagerepacker tools. When we extract this image file with imagerepacker we will get many .fex files.







In above picture, it is the structure of imagerepacker tools.



There are following steps to extract the stock image.


1) change name of stock ROM as original and run runner.bat



2) provide the path of stock ROM.



3) press enter 


You can see it extracting all files in .fex format.




4) This all .fex files are store in stockrom.img.dump folder


You can see in below picture.




MTK ROM 

This ROM is called media tech ROM and its get in many versions like MT6577, MT6572, MT6575 and this is called MT65XX series.


This ROM is used currently in most of the android devices.





Structure of MTK ROM


    Here this is the structure of MT6582 version. 



There are lots of files in MTK ROM
1) Boot.img- boot file contain all files which are necessary for the boot like all boot script, boot logo, boot animation.

Boot file contains ramdisk and kernel.This is the boot partition of your Android device. It includes the android kernel and the ramdisk. The device will not boot without this partition. Wiping this partition from recovery should only be done if absolutely required and once done, the device must NOT be rebooted before installing a new one, which can be done by installing a ROM that includes a /boot partition.

2) Recovery.img- recovery file contains all back and restores files. It provides advanced recovery, installation, restoration, and maintenance operation for the device.

This is specially designed for backup. The recovery partition can be considered as an alternative boot partition.

3) System.img- folder all system files contain in the system.

This partition contains the entire Android OS, other than the kernel and the ramdisk. This includes the Android GUI and all the system applications that come pre-installed on the device.
System partition contains the entire Android OS, other than the kernel and the ramdisk. This includes the Android GUI and all the system applications that come pre-installed on the device.  you will still be able to put the phone into recovery or bootloader mode to install a new ROM.

4) Logo.bin- this file contains first boot logo.



5) userdata.img-The userdata.img file is a blank partition. It is used to reset the user data partition to its factory state. ramdisk.img is a small partition image that is mounted read-only by the kernel at boot time. It only contains /init and a few config files.

No comments:

Post a Comment