Tuesday, April 26, 2011

How to make custom rom:


you will need: ADB, root explorer (maybe) and the files that are going to be in your rom!

the guide is based on The Dark Lestat's guide, i made it more easier and specific


code to delete unwanted apps: (if ADB)
Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
rm /system/app/nameofapk.apk
code to add apps and stuff: (if ADB)
Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
exit
exit

adb push nameofapk.apk /system/app/
1. flash the ROM that will be your ROMs base. example: my ROMs base is JPM so i flashed clean JPM

2. make a list of the features that are going to be in your ROM

3. then start adding those features. example: i added live wallpaper support so i did this --> http://forum.xda-developers.com/showthread.php?t=793823 i also added JIT so i ran the automatic batch file from the thread --> http://forum.xda-developers.com/show....php?t=1026870 . then you just add those features.

4. put your sd card on to your phone (if it isnt there already  )

5. when your done adding different features you go to ADB and type this:
Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
dd if=/dev/block/stl6 of=/sdcard/factoryfs.rfs
then you wait about 2 minutes and there will be some text and then you type this
Code:
exit
exit
and in your sd-card will be freshly created factoryfs.rfs, import your freshly created factoryfs.rfs to your desktop. now you choose your kernel.

5. kernel, download the kernel you want to your desktop.

6. download total commander to your pc

7. open total commander, open the base ROM.tar. example: my base ROM was JPM so i opened the JPM.tar and replaced the kernel and factoryfs.rfs with my factoryfs.rfs and my kernel (fugumod 2.2) using total commander.

delete everything else in the .tar but, Cache.rfs, factoryfs.rfs, zlmage and data.rfs and the logo!

then you test if you can flash your ROM... if it boots, you did it. if it doesnt, try again.

[HOWTO] edit BUILD.prop

HOW TO change firmware version, phone model, build version in "about phone"

1. open root explorer

2. go to /system, find build.prop, change to read/write mode. open the build.prop in text editor

* change build version: 4th line should say ro.build.display.id=(here you write your build version name), reboot and check build version in "about phone"

* change model number: 15th line should say ro.product.model=(here write your model number  ), reboot and check model number in "about phone"

* change firmware version: 8th line should say ro.build.version.release=(here write your firmware version, like 3.0 honeycomb  ), reboot and check firmware version in "about phone"

you can also change different things but ill write a guide of that later 

[HOWTO] get 5 lockscreen mod and extended power menu


your ROM must be deodexed!


-you can get extended power menu and 5 lockscreen mod by downloading this --> http://www.megaupload.com/?d=PKHVA57W

-extract it to root of your sd-card

-open root explorer and copy/paste the files to /system/framework

-reboot and done 

OR

use adb like this:

Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
exit
exit

adb push nameoffile.jar /system/framework/
-reboot and done 

***NOTE rebooting might take some time so dont panic 

[HOWTO] deodex ROM


you must be rooted


What you'll need:
A Windows based machine 
xUltimate v2.2
Patience 

Process:
-Unzip xUltimate v2.2, and launch "Main.exe"

-If everything goes well xUltimate should recognize the phone and make a connection. You now should see a list of options.

-Run option 1. After option 1 is done, run option 2.

-Now these well take a while. Run option 3.

-IMPORTANT: After you have run option 3, you MUST navigate to the xUltimate folder and find "origi_frame" folder, and delete "guava.odex" (if you even have it). It's a bad file, and interferes with deodexing process.

-Now run option 4, and wait.

-Exit xUltimate, and put the phone in USB mass storage.

-Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.

-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
and voila your phone is deodexed 

Access Point Names

If You get frustrated by entering the apns again and again i am having a solution for rooted galaxy 3 users.

just replace my apn-conf file with your native apn-conf file and reboot once .

file : http://www.multiupload.com/L9WXMGDNPN

After doing this open settings -->Wireless and networks -->Mobile Networks-->Access Points Names press menu and select restore default option and You are done.

Now insert any sim and your mobile will automatically retrieve apns

Thursday, April 21, 2011

Change the Network Provider name in the Lockscreen


Make a new file in windows with the name spn-conf.xml
open the file and add a following.
Code:
<?xml version="1.0" encoding="utf-8"?>
<spnOverrides>
<spnOverride numeric="40480" spn="BSNL MOBILE"/>
</spnOverrides>
In place of BSNL MOBILE you must write your own word. You can type anything but not more than 16 Characters.

Now save the file. Delete the old spn-conf.xml file from /system/etc and copy new spn-conf.xml file to system/etc.Reboot Your phone.After the reboot it show the old carrier but after 20 - 30 sec it shows the new name on the lockscreen.

spnOverride numeric="40480" is Mobile Network Code (MNC)+Mobile Country Code (MCC) code. Get codes for your operator and country from here.

Add actual code in spnOverride numeric and any name you want in spn.

Friday, April 15, 2011

Create a Custom ROM - Android


Things needed:
  • ADB
  • Root Explorer (If you have it)
  • Get all the files you want to have pre-installed in the ROM.
  • Start the command prompt
  • Use this code to put them in "/system/app" if you are using ADB.

Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
exit
exit

adb push nameofapk.apk /system/app/
  • Delete all the files you don't want to have pre-installed in the ROM.

Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
rm /system/app/nameofapk.apk
  • When you are done and satisfied with modifying the system, use this code in command prompt.

Code:
adb shell
su
mount -o remount,rw /dev/block/stl9 /system
dd if=/dev/block/stl6 of=/sdcard/factoryfs.rfs
exit
  • After you do that, use Total Commander to replace the freshly created factoryfs.rfs on the sdcard in an existing .tar file.
  • Flash your phone with the tar file to see if it boots.
  • If it boots, CongratulationsIf it does not boot, try again.
  • If it still doesn't work, ask me some questions.