How to make custom roms for Android
It’s time for the modding to begin!
Get apktool and use the guide on the link from: http://forum.xda-developers.com/show….php?t=1755243 to set it up.
Now, first copy your framework-res from the /system/framework directory to where you extracted apktool files. Let’s call this folder “apktool”
Open the folder apktool, press shift and right click. Click on “Open command window here”. Type:
apktool if framework-res.apk
Now you are ready to decompile apk’s.
I’m going to show you how to mod the framework-res for small tweaks for now.
Using the command window type
You will see some commands in the command prompt stating that the file is being decompiled. Once it’s done, there will be a new folder called framework-res. Open it and navigate to res/values and open bools.xml.
Here are some mods you can do in the bools.xml:
- 4 Way Rotation:
- Lock Screen Rotation:
- Disable Keyboard Switch In StatusBar When Typing
- Unplugging From USB doesn’t Turn Screen On
Now recompile using:
Ta-Da! You modified your first framework!
Once you’ve added everything, your modified apks, A custom kernel (just replace boot.img) it’s time to compile. Now this is really easy. Just highlight all the folders/files like system, meta-inf and boot.img. Right click. Hover over 7-zip and click Add to Rom.zip. Wait for it to be done, and copy Rom.zip to your sd card and flash. Voila! You’ve made your rom!!