Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Univos
Old
(Last edited by Univos; 13th August 2011 at 12:53 AM.)
#1  
Member - OP
Thanks Meter 23
Posts: 54
Join Date: Jul 2011
Location: surabaya
Cool [OUTDATED GUIDE]Make Custom Rom Easier Than Cycling

Things you need:
  • Base firmware (i'm use Gingerbread S5830SERKPH 2.3.4)
  • Windows (I'm use windows 7 X64 service pack 1)
  • Linux (Ubuntu recommended)
  • And the last thing is, You need enough experience in android world

step-step :
  1. Flash your phone with your desired base firmware.
  2. Make required modifications at your phone.
  3. After that, do hard reset to your phone.
  4. Next back up system.rfs .
  5. put system.rfs with boot.img, data.rfs, recovery.img from PDA base firmware in one folder.
  6. After that, repack your custom rom.

what should we do to modify it :
  • Remove useless widgets
  • Add more apps
  • Change theme


How to back up System.rfs :
  1. Download at market "terminal emulator"
  2. next run this code:
    Code:
    su
    
    dd if=/dev/stl12 of=/sdcard/system.rfs

How to hard reset your phone :
  1. Move by root explorer your modification apps to system/app then change permission like this :
    Code:
    User:Read, Write
    group:Read
    Others:Read
  2. Next change the owner to "root" by root explorer
  3. At least boot into recovery mode "HOME+POWER" and choose "wipe data/factory reset" be sure your contact data already backup

How to repack your custom rom :
  1. PDA by running this code via terminal at linux:
    Code:
     tar -H ustar -c boot.img recovery.img data.rfs system.rfs >> ROMNAME.tar
    
    md5sum -t ROMNAME.tar >> ROMNAME.tar
    
    mv ROMNAME.tar ROMNAME.tar.md5
    change ROMNAME to your desired, of course, ROM name.
  2. If you want to build One-Package ROM, just use 1st and 2nd command and don't forget to include all files on all *.tar.md5 (such as modem, csc, apboot) like this :

    Code:
    tar -H ustar -c *.* >> ROMNAME.tar
    
    md5sum -t ROMNAME.tar >> ROMNAME.tar

How to change your rom name :
  1. At root explorer you see at folder system "build.prop"
  2. Open it in text editor edit "ro.build.display.id=GINGERBREAD.XXKPH" with your rom name

Another Handy Modification Guide:

How to edit system.rfs on your Pc :
  • importan : if you want to edit system.rfs at windows, DON'T use Magic Iso, why? because i was use it, then my system.rfs corrupt.
  1. you must have linux (ubuntu recommended)
  2. run it from terminal :
    Code:
     sudo mount -o loop system.rfs /some_dir
  3. make required modification
  4. then Unmount it

How to Unpacking & repacking the image :

Note: below I give you the details for unpacking and repacking manually, but I have attached two perl scripts that do most of this for you

If you are good with a hex editor, you can open up any of these images and strip off the first 2k of data. Then, look for a bunch of zeroes followed by the hex 1F 8B (which is the magic number of a gzip file). Copy everything from the first line of the file, through the zeroes, and stopping at the 1F 8B. That is the kernel. Everything from the 1F 8B through the end is the ramdisk. You could save each of these files separately. In order to see the contents of the ramdisk, you need to un-gzip it and then un-cpio it. You could use a command like this (ideally after creating a new directory and cd'ing into it):


Code:
gunzip -c ../your-ramdisk-file | cpio -i
That will place all of the files from the ramdisk in your working directory. You can now edit them.

In order to re-create the ramdisk, you need to re-cpio them and re-gzip those files, with a command like the following (remember, cpio will include everything in the current working directory, so you probably want to remove any other cruft you might have in there):


Code:
find . | cpio -o -H newc | gzip > ../newramdisk.cpio.gz
The final step is to combine the kernel and your new ramdisk into the full image, using the mkbootimg program (which you should download and compile from the git repository):


Code:
mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel your-kernel-file --ramdisk newramdisk.cpio.gz -o mynewimage.img
Now, there's a lot of hassle in pulling apart files in hex editors and remembering all of these commands, so I wrote unpack and repack perl scripts for you (attached). Hooray.

How to Manually deodex your phone :
  • What you'll need:
    xUltimate v2.2
    1. Unzip xUltimate v2.2, and launch "Main.exe"
    2. If everything goes well xUlt should recognize the phone and make a connection. You now should see a list of options.
    3. Run option 1. After option 1 is done, run option 2.
    4. Now these well take a while. Run option 3.
    5. IMPORTANT: After you have run option 3, you MUST navigate to the xUltimate folder and find "origi_frame" folder, and delete "guava.odex". It's a bad file, and interferes with deodexing process.
    6. Now run option 4, and wait.
    7. Exit xUltimate, and put the phone in USB mass storage.
    8. Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.
    9. Put the phone in PC mode
    10. Open a command prompt, and do the following:


Code:
adb shell
su
stop
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
reboot
Your phone should now be deodexed!

You may notice an increase in speed, and you now have the ability to edit certain files with greater effects.

How to change bootanimation :
  • using a Root explorer goto the /system/media directory.
  • Copy bootanimation.zip to your SD Card.
  • Connect your droid to your computer with usb and mount the SD Card
  • Copy bootanimation.zip to your computer.
  • extract bootanimation.zip to a folder
  • Inside you will find 2 folders with all the individual PNG files in them.
  • With photoshop or paint modify the png files to add your custom graphics, OR make/download your own pictures. (Make sure they are match with your phone device)
  • Highlight the two folders and the desc file.
  • Right click the highlighted files.
  • Select add files to archive.
  • Select Zip check box
  • In the compression method drop down box select Store. (this is key if you dont do this it wont play the animation)
  • save the archive as bootanimation.zip
  • copy the new bootanimation.zip to your SD Card
  • Select the bootanimation.zip file from your SD Card and move it... system>media>paste




________________
i'm just 12 years old if i can do it, why you can't
Attached Files
File Type: zip mkbootimg-OS_X-10_5.zip - [Click for QR Code] (2.9 KB, 36 views)
File Type: zip repack-bootimg.pl.zip - [Click for QR Code] (491 Bytes, 39 views)
File Type: zip unpack-bootimg.pl.zip - [Click for QR Code] (968 Bytes, 42 views)
The Following 8 Users Say Thank You to Univos For This Useful Post: [ Click to Expand ]
 
Univos
Old
(Last edited by Univos; 12th August 2011 at 03:50 AM.)
#2  
Member - OP
Thanks Meter 23
Posts: 54
Join Date: Jul 2011
Location: surabaya
Advantages of this way is :
  1. More efficient
  2. Reduce your internet usage (dont need kitchen, apk manager, etc)
  3. Easy to modification (You can see the direct result)
  4. Reduce your time (only 2 hours i can do this way)
  5. More soon
The Following 2 Users Say Thank You to Univos For This Useful Post: [ Click to Expand ]
 
fla.sh
Old
#3  
fla.sh's Avatar
Senior Member
Thanks Meter 423
Posts: 500
Join Date: Jun 2011
Location: <b>Location:</b>
You steal my IDEAS Univos! No, just kidding, there are incorrect guide on "how to hard reset" lol. Anyway, try to build a ROM before creating this guide, my friend.
TeamCooper

Samsung Galaxy Ace S5830 | Sony Xperia ray
The Following User Says Thank You to fla.sh For This Useful Post: [ Click to Expand ]
 
GadgetCheck
Old
#4  
GadgetCheck's Avatar
Retired Forum Moderator / Recognized Developer
Thanks Meter 5205
Posts: 3,124
Join Date: Sep 2010
Location: India,Kerala,Trivandrum (God's own Country)
Wow Kids!
are doing development now a days

www.checkrom.com
Where support gets refined as social networking
Founder and Developer of CheckROM™ for Samsung Phone's
 
Univos
Old
(Last edited by Univos; 12th August 2011 at 05:49 AM.)
#5  
Member - OP
Thanks Meter 23
Posts: 54
Join Date: Jul 2011
Location: surabaya
Quote:
Originally Posted by fla.sh View Post
You steal my IDEAS Univos! No, just kidding, there are incorrect guide on "how to hard reset" lol. Anyway, try to build a ROM before creating this guide, my friend.
im not steal it.
Where is incorrect guide i'm try to fix it?


Sent from my GT-S5830 using XDA App
 
Univos
Old
#6  
Member - OP
Thanks Meter 23
Posts: 54
Join Date: Jul 2011
Location: surabaya
Quote:
Originally Posted by GadgetCheck View Post
Wow Kids!
are doing development now a days
Thanks



Sent from my GT-S5830 using XDA App
 
Univos
Old
#7  
Member - OP
Thanks Meter 23
Posts: 54
Join Date: Jul 2011
Location: surabaya
This guide tested by me, and i have get result from this.

Sent from my GT-S5830 using XDA App
 
Univos
Old
#8  
Member - OP
Thanks Meter 23
Posts: 54
Join Date: Jul 2011
Location: surabaya
If you have question just ask me!

Sent from my GT-S5830 using XDA App
 
devilsking
Old
(Last edited by devilsking; 12th August 2011 at 04:17 AM.)
#9  
devilsking's Avatar
Recognized Themer
Thanks Meter 873
Posts: 917
Join Date: Sep 2010
Location: Hanoi

 
DONATE TO ME
I think this guide is the same with fla.sh's guide.
 
Univos
Old
(Last edited by Univos; 12th August 2011 at 05:48 AM.)
#10  
Member - OP
Thanks Meter 23
Posts: 54
Join Date: Jul 2011
Location: surabaya
Quote:
Originally Posted by devilsking View Post
I think this guide is the same with fla.sh's guide.
Different, Fla.sh make guide for cooking his rom.
in this thread i tell you how to make your own custom rom.
with Phone device Samsung Galaxy Ace.

 
Post Reply+
Tags
boot, custom rom, hard reset, repack
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...