Practices for creating a Samsung i9088 Flash ROM (5)

Source: Internet
Author: User

Let's continue today. The egg of the last two days is also lazy. You must finish this article today.

 

In the previous articles, we can open the csc.tar. MD5 file, get the cache. RFS, and mount it. The specific steps are not a problem after you understand the previous articles.

The directory structure is as follows:

 

The command is just text content. Let's see it:

 

Actually, the processing of this compressed package is equivalent to the recovery mode for many materials on the Internet.

 

Remove the sec_csc.zip file to a directory, and get the two subdirectories META-INF and system.

# Mkdir sec_csc <br/> # cd sec_csc <br/> # unzip ../sec_csc.zip <br/>

The signature-related files under the META-INF are deleted first.

# Cd META-INF <br/> # rm cert. RSA cert. SF manifest. MF <br/>

Then go to the/system directory, and now you can put what you want here. The media directory is the animation and shutdown sound customized by China Unicom. There is a boot sound under etc, the wallpaper is under wallpaper. It's not bad. I keep it. These items can be deleted. It doesn't matter.

 

The content in the CSC directory does not need to be moved, which determines your APN and network configuration. In any case, we are still connected users, so we need these things.

 

Now, add something you want. For example:

 

Create an app directory, corresponding to the/system/APP directory in the future mobile phone, and put the APK app we need to preset. If you want to root the phone, you must put it as a superuser.

Create a new bin directory, which corresponds to the/system/bin directory on the phone in the future. Put the two files required by root, Su and busybox.

 

Now, go back to the editing level and use the compiler editor to modify the cscfile.txt file. It is easy to open and check which CSC files are available.

 

Return to the META-INF directory, level-1 down to find Updater-script, pay attention to the name, there is a called Update-script !!! All we need to modify is the Updater-script with ER. Modify Updater-script as follows:

 

Assert (getprop ("Ro. product. device ") =" GT-I5800 "| <br/> getprop (" Ro. build. product ") =" GT-I5800 "| <br/> getprop (" Ro. product. device ") =" GT-I9088 "| <br/> getprop (" Ro. build. product ") =" GT-I9088 "<br/>); <br/> show_progress (0.100000, 0); <br/> show_progress (0.500000, 0 ); <br/> # format ("MTD", "system"); <br/> Mount ("MTD", "system", "/system "); <br/> package_extract_dir ("system", "/system"); </P> <p> set_perm_recursive (, "/system/xbin "); <br/> set_perm_recursive (04755, "/system/bin"); <br/> set_perm (, "/system/bin/su "); <br/> set_perm (04755, 0.900000, "/system/bin/busybox"); </P> <p> show_progress (, 0 ); </P> <p> unmount ("/system"); <br/>

The meaning of the script is clear. Instead, unbind the/system directory and copy it to your mobile phone. Set the properties of several sub-directories. Be sure to set the properties of Su and busybox to 04755, on the mobile phone, check that its attributes include "S. Only in this way can other applications get the root permission, that is, not only the root user can execute Su, but other applications can also execute su after being authorized, otherwise the root user cannot really succeed.

 

The preceding modification steps are complete. And then package it into a zip file.

 

# Zip-r sec_csc.zip ** <br/>

 

Click it. Use auto-signto sign the new sec_csc.zip. (For cross-platform users, you can use another signature tool to sign the signature. It doesn't matter, but it is convenient)

In general, we have another signed sec_csc.zipto replace the original sec_csc.zip.

 

The rest is simple. Put this sec_csc.zip back to the original cache. RFS, that is, using the same method described in the previous article, DD the virtual disk to the cache. RFS, tar, md5sum, and OK.

You have to go to a csc.tar. MD5 file again. You can also choose it when you brush the machine.

 

Okay, it's easy to close.

 

Master the method, you can do more than me, such as modifying the/system/framework/framework-res.apk file, you can modify, it also modifies the phone UI effect. For example, if you use your lanucher to replace the touchwizard of the system, there are many things to replace. In addition, you can modify i9000 and i909. I guess it is similar. I haven't seen it yet. If you are interested, try it.

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.