Difference between revisions of "ROM Android: Tuning Custom ROM"

From OnnoWiki
Jump to navigation Jump to search
(New page: here's my problem : I've already done some research with Google, Stack Overflow and XDA Developers forums but I didn't even find a related question. I'm trying to customize this Cyanogen...)
 
Line 31: Line 31:
  
 
Hope this helps.
 
Hope this helps.
 +
 +
 +
 +
 +
 +
 +
 +
How to create your own Android ROM Part 2: Changing and Modifying ROM
 +
by Adeel Inam on March 28, 2013
 +
 +
20110627140705
 +
 +
You all should have created your Android Kitchen by following How to create your own Android ROM Part 1: Setting up Environment. This tutorial will cover the next part which deals with changing and modify an existing ROM according to your likings.
 +
 +
Remember, this will only change settings related to the Android ROM that you have chosen. You just cannot create a brand new ROM out of it. So just be clear that you are modifying an already made ROM from another user.
 +
How to Add or Remove Applications
 +
 +
If you have correctly followed the previous part of the tutorial, you will have a working folder buy now.
 +
 +
    Go to the working folder where you originally extracted Android ROM.
 +
    Go to system/app. You will see a list of all the .apk files that are in the Android ROM.
 +
    Change or delete any apk you want, just be careful not to delete any important apk. If you do not know what to do here, leave this step as it is.
 +
 +
Adding a Boot Animation
 +
 +
Boot animation refers to the flash screen that you see before your phone boots. Like in SONY phones, you see XPERIA flashing on the screen before the actual startup.
 +
 +
For this, replace the bootanimation.zip located in the workingfolder/system/media with any animation of your choice. You can choose the animations from this link
 +
 +
boot animation
 +
Fixing GPS location for your country
 +
 +
Since a ROM is free for all and anyone can install it, there is no certain position of the GPS to which the Android ROM should target. Therefore, if you ever try to customize a ROM, make sure you edit the GPS settings as well.
 +
 +
    Go to workingfolder/system/etc
 +
    Go to the file named “gps.conf”. Open it in notepad++(not in simple notepad). Notepad++ is a free utility and you can download it from anywhere.
 +
    Download the required gps script file of your country from this link. Extract it and replace with the above “gps.conf”
 +
 +
Changing the default wallpaper
 +
 +
Changing default wallpaper is easy but you have to be careful while editing or deleting it.
 +
 +
    Go to workingfolder/system/framework/
 +
    If you have installed 7zip on your computer, then its good, otherwise do it. Then from the same folder, open framework-res.apk
 +
    Go to res/drawable-hdpi/ and you will see default_wallpaper.jpg file. Just replace this file with any other you like. Make sure both are in the same format.
 +
 +
Changing the system interface
 +
 +
This part deals with the change in the overall menu appearance throughout the ROM. This is the most crucial step and if you are unsure about this, please do not try.
 +
 +
    Go to workingfolder/system/ and open the file named “build.prop” with notepad++.
 +
    Now you will see a lot of options that you can change. I cannot tell all of them as they are a lot but I will change the LCD density here.
 +
    Locate ro.sf.lcd_density=240 inside the “build.prop” file and change the value to anything you like. Just replace it with 240.
 +
 +
build.prop
 +
 +
Now you have changed your ROM according to your likings and are ready for the final step of the whole process which is repacking the Android ROM to install onto the mobile. I will discuss it in the next part of the tutorial.
 +
 +
  
  
Line 37: Line 96:
  
 
* http://stackoverflow.com/questions/24491799/how-to-modify-application-settings-in-a-custom-android-rom
 
* http://stackoverflow.com/questions/24491799/how-to-modify-application-settings-in-a-custom-android-rom
 +
* http://www.droidbeans.com/how-to-create-your-own-android-rom-part-2-changing-and-modifying-rom/

Revision as of 07:44, 10 November 2014

here's my problem :

I've already done some research with Google, Stack Overflow and XDA Developers forums but I didn't even find a related question.

I'm trying to customize this CyanogenMod ROM so the "Unknown sources" checkbox (in Settings > Applications) is checked by default after the installation of the ROM using ClockWorkMod, but I can't seem to find where to do it.

I searched into the following APK files using apktool :

   /system/framework/framework-res.apk
   /system/app/Settings.apk
   /system/app/SettingsProvider.apk
   /system/app/ApplicationsProvider.apk
   /system/app/PackageInstaller.apk
   /system/app/CertInstaller.apk



Ok, turns out I didn't search hard enough.

For those who are interested, the file to edit is located into SettingsProvider.apk. You have to decompile it (with apktool) and edit the file SettingsProvider/res/values/bools.xml, replacing this line :

<bool name="def_install_non_market_apps">false</bool>

by this one :

<bool name="def_install_non_market_apps">true</bool>

And then, recompile, etc.

Hope this helps.




How to create your own Android ROM Part 2: Changing and Modifying ROM by Adeel Inam on March 28, 2013

20110627140705

You all should have created your Android Kitchen by following How to create your own Android ROM Part 1: Setting up Environment. This tutorial will cover the next part which deals with changing and modify an existing ROM according to your likings.

Remember, this will only change settings related to the Android ROM that you have chosen. You just cannot create a brand new ROM out of it. So just be clear that you are modifying an already made ROM from another user. How to Add or Remove Applications

If you have correctly followed the previous part of the tutorial, you will have a working folder buy now.

   Go to the working folder where you originally extracted Android ROM.
   Go to system/app. You will see a list of all the .apk files that are in the Android ROM.
   Change or delete any apk you want, just be careful not to delete any important apk. If you do not know what to do here, leave this step as it is.

Adding a Boot Animation

Boot animation refers to the flash screen that you see before your phone boots. Like in SONY phones, you see XPERIA flashing on the screen before the actual startup.

For this, replace the bootanimation.zip located in the workingfolder/system/media with any animation of your choice. You can choose the animations from this link

boot animation Fixing GPS location for your country

Since a ROM is free for all and anyone can install it, there is no certain position of the GPS to which the Android ROM should target. Therefore, if you ever try to customize a ROM, make sure you edit the GPS settings as well.

   Go to workingfolder/system/etc
   Go to the file named “gps.conf”. Open it in notepad++(not in simple notepad). Notepad++ is a free utility and you can download it from anywhere.
   Download the required gps script file of your country from this link. Extract it and replace with the above “gps.conf”

Changing the default wallpaper

Changing default wallpaper is easy but you have to be careful while editing or deleting it.

   Go to workingfolder/system/framework/
   If you have installed 7zip on your computer, then its good, otherwise do it. Then from the same folder, open framework-res.apk
   Go to res/drawable-hdpi/ and you will see default_wallpaper.jpg file. Just replace this file with any other you like. Make sure both are in the same format.

Changing the system interface

This part deals with the change in the overall menu appearance throughout the ROM. This is the most crucial step and if you are unsure about this, please do not try.

   Go to workingfolder/system/ and open the file named “build.prop” with notepad++.
   Now you will see a lot of options that you can change. I cannot tell all of them as they are a lot but I will change the LCD density here.
   Locate ro.sf.lcd_density=240 inside the “build.prop” file and change the value to anything you like. Just replace it with 240.

build.prop

Now you have changed your ROM according to your likings and are ready for the final step of the whole process which is repacking the Android ROM to install onto the mobile. I will discuss it in the next part of the tutorial.



Referensi