Post on 06-Jul-2018
transcript
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
1/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008
View First Unread Reply Subscribe Email
1 2 3 11 51 101 Last
Search Thread
Discussion Q&A
FORUM
Android Software Developmen
Android Genera
Android Q&A, Help & Troubleshooting
Android Software and Hacking Genera
[Developers Only
Miscellaneous Android Developmen
[Mor
Remove All Ads from XDA
xda-developers Android Development and Hacking Android Software Development [GUIDE]How To Port Different
ROMS to Your Device (Simplest and Fastest) by rishabh.raj37
[GUIDE]How To Port DifferentROMS to Your Device (Simplest
and Fastest)By , Senior Member on 27th September 2012, 11:29 AM
Tweet Like +1851 posts
rishabh.raj37
Quote:
The ROM which is Developed For your Mobile..
Quote:
What is base Rom:
Many people have requested me to share the method which I
am using to port roms..
THIS IS THE SIMPLEST AND FASTEST WAY TO PORT ROMS!!!
This is the method which I use in porting Roms-
Things Needed- Winrar, Notepad++
You can use this Method to port roms From armv6 to armv7
devices but I dont know about the method used to port roms
from armv7 to armv6 devices..
Thanks: 4,155
http://forum.xda-developers.com/showthread.php?t=1908008&page=2http://forum.xda-developers.com/showthread.php?t=1908008&page=11http://forum.xda-developers.com/showthread.php?t=1908008&goto=newposthttp://forum.xda-developers.com/newreply.php?do=newreply&noquote=1&p=32080012http://forum.xda-developers.com/subscription.php?do=addsubscription&t=1908008mailto:?subject=XDA-Developers%20Emailed%20Thread:%20[GUIDE]How%20To%20Port%20Different%20ROMS%20to%20Your%20Device%20(Simplest%20and%20Fastest)&body=Here%27s%20the%20link%20you%20emailed%20to%20yourself:%20http://forum.xda-developers.com/showthread.php?t=1908008http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/member.php?u=4766501https://plus.google.com/share?url=http://forum.xda-developers.com/showthread.php?t=1908008https://www.facebook.com/sharer/sharer.php?u=http://forum.xda-developers.com/showthread.php?t=1908008http://forum.xda-developers.com/retweet.php?t=1908008http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/showthread.php?t=1908008http://forum.xda-developers.com/android/softwarehttp://forum.xda-developers.com/androidhttp://forum.xda-developers.com/index.phphttp://forum.xda-developers.com/index.phphttp://forum.xda-developers.com/ad-freehttp://forum.xda-developers.com/android/developmenthttp://forum.xda-developers.com/android/software-hackinghttp://forum.xda-developers.com/android/helphttp://forum.xda-developers.com/android/generalhttp://forum.xda-developers.com/android/softwarehttp://forum.xda-developers.com/showthread.php?t=2903722http://forum.xda-developers.com/showthread.php?t=1908008http://forum.xda-developers.com/showthread.php?t=1908008&page=294http://forum.xda-developers.com/showthread.php?t=1908008&page=2http://forum.xda-developers.com/showthread.php?t=1908008&page=101http://forum.xda-developers.com/showthread.php?t=1908008&page=51http://forum.xda-developers.com/showthread.php?t=1908008&page=11http://forum.xda-developers.com/showthread.php?t=1908008&page=3http://forum.xda-developers.com/showthread.php?t=1908008&page=2mailto:?subject=XDA-Developers%20Emailed%20Thread:%20[GUIDE]How%20To%20Port%20Different%20ROMS%20to%20Your%20Device%20(Simplest%20and%20Fastest)&body=Here%27s%20the%20link%20you%20emailed%20to%20yourself:%20http://forum.xda-developers.com/showthread.php?t=1908008http://forum.xda-developers.com/subscription.php?do=addsubscription&t=1908008http://forum.xda-developers.com/newreply.php?do=newreply&noquote=1&p=32080012http://forum.xda-developers.com/showthread.php?t=1908008&goto=newpost
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
2/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 2
Quote:
The Rom Which you want to port to your Device.
Quote:
What is Port Rom:
Quote:
Take any clean CM9, AOSP, CM7, CM10, CM11
ROM which is running on your device as Base
ROM.
Quote:
STEP1;
Quote:
Extract it Using Winrar.
Quote:
STEP2:
Quote:
Take the ROM you want to port. This Port ROM.
Extract it also using Winrar.
Quote:
STEP3:
Quote:
LOGIN REGISTER searchplus
http://forum.xda-developers.com/searchhttp://forum.xda-developers.com/register.phphttp://forum.xda-developers.com/index.php
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
3/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 3
Quote:
Delete app, Framework, Fonts and Media folder
in System Folder of Base ROM.
Note: To Port Kitkat base ROM, you also have to
copy the priv-app folder from port to base. ThatsIt.. (Credits to @thelegend10 for informing me
that this guide works with KK)
STEP4:
Quote:
Now copy app, Framework, Fonts and Media
folder in System Folder from Port rom to base
rom system folder.
Quote:
STEP5:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
4/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 4
Quote:
Now open etc folder in both the ROMs folder.
Quote:
STEP6:
Quote:
In etc folder of base ROM open permissions
folder and copy all the permissions files in Port
rom to your base ROM folder except platform
and handheld_hardware .And Then open init.d
Folder in Base ROM and Delete Every thing
except banner and then copy all the files inside
init.d folder of port ROM to Base ROM.
Quote:
STEP7:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
5/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 5
Quote:
ro.build.id=
ro.build.display.id=
ro.build.date=
ro.modversion=
Quote:
Now open buid.prop file using Notepad++ and
make changes to these of Base Rom as you wish.
Quote:
STEP8:
Quote:
STEP9:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
6/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 6
Quote:
ro.config.ringtone=
ro.config.notification_sound=ro.config.alarm_alert=
Quote:
In build.prop file change these to same as Port
Rom build.prop values.
Also Copy anything you Find Extra in
ADDITIONAL BUILD PROPERTIES related to theme..
Quote:
COPY THE set_perm Lines in META-
INF/com/google/android/updater-script From
Port to Base ROM After Deleting set_perm lines
in Base ROM's Updater-Script.
Quote:
STEP10:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
7/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 7
Quote:
If You find any extra file or folder in system folder
of PORT rom than copy them to your base rom
system folder.
Quote:
STEP11:
Quote:
Last Step to ZIP THE FOLDERS IN ONE..
SELECT META-INF, system, boot.img(if it is
having), data(if it is having).
Right Click and Select Add to Archive..
Select Zip..
Type the Name.
Click OK..
Quote:
STEP12:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
8/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 8
Quote:
Copy telocation.db and yellowpage.db From
/system/etc folder to yours..
Copy content-types.properties file From /system/lib to
yours..
Copy invoke-as from miui4 rom to /system/xbin and
give it permissions on updater-script
set_perm(0, 0, 06755, "/system/xbin/invoke-as");
Note:It is needed for backup & themes app to work
Quote:
Copy liblbesec.so from miui 4 to /system/lib and give
permission on updater-script
set_perm(0, 0, 0755, "/system/lib/liblbesec.so");It is needed for superuser app from miui to work
Quote:
Change values Some of the Values in build.prop of
your ROM:
ro.build.id=MIUI
ro.build.display.id=MIUI
Quote:FOR MIUI:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
9/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 9
ro.build.version.incremental=2.x.x (version number)
ro.config.ringtone=MI.ogg
ro.config.notification_sound=FadeIn.ogg
ro.config.alarm_alert=GoodMorning.ogg
ro.config.sms_received_sound=FadeIn.ogg
ro.config.sms_delivered_sound=MessageComplete.ogg
Quote:
Copy paranoid folder inside system/etc to yours..
Go to META-INF/com/google/android/Updater-Script of
open it with Notepad++
Copy this line:
Code:
set_perm(1000, 1000, 0644, "/system/etc/
Quote:
Now Open Build.prop in /system with Notepad++
Copy these lines in Additional Properties of Build.prop:
Code:
Quote:
Specially For PA:
Quote:
FOR ParanoidAndroid And
PAC:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
10/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 10
#Depends on Resolution Of your device
ro.pa.family=pa_mdpi
#Depend on pa version. Replace x.xx wi
ro. a.version=x.xx
Quote:
Now Open Build.prop in /system with Notepad++
Copy these lines in Additional Properties of Build.prop:
Code:
#Replace the x.x.x with your PAC Rom
ro.pac.version=x.x.x#Customize these lines according to y
ro.pacrom.version=mesona_PAC_jb-alpha-
ro.modversion=mesona_PAC_jb-alpha-v19.
#Depends on Resolution Of your device
ro.pa.family=pa_mdpi
#Depend on pa version. Replace x.xx wi
ro.pa.version=x.xx
#Modify this line according to your A
ro.aokp.version=mesona_jb-Milestone-1
Replace any line in Your build.prop which appear twice
ro.cm.version and ro.modversion
Quote:
Specially For PAC Rom:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
11/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 1
Quote:
1. Decompile framework-res.apk
2. Go to \framework-res\res\values\bools.xml and
change trto false
Quote:
To fix network auto select-
Quote:
1. Decompile framework.jar
2. Change these files with your base
smali\smali\android\os
Environment
SystemProperties
smali\smali\android\view
HardwareCanvas
HardwareRenderer$Gl20Renderer
Quote:
To Fix Graphichal issues:
Quote:
For HTC Devices:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
12/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 12
[ View ]
HardwareRenderer$GlRenderer
HardwareRenderer
Quote:
libandroid_runtime.so
libandroid_servers.so
libmedia_jni.so
IF YOU ARE HAVING BOOTLOOP THEN COPY THESE LIB FILESTO BASE ROM FROM PORT ROM:
IF YOUR BASE ROM HAS ISSUES LIKE CAMERA ISSUE THAN
YOUR PORTED ROM TOO WILL HAVE ISSUES.
NOW ZIP YOUR ROM AND POST IT BUT DON'T FORGET TO
GIVE CREDITS TO THE DEVELOPER OF PORT ROM..
IF YOU WANT TO PORT ROM WITH ONE OR TWO CLICKS, THEN
GO TO THIS THREAD-- [TOOL] Rom Porter or [Tool] ROM Porter
IF IT HELPED YOU THAN PRESS THANKS AND RATE THIS POST 5
STARS...
Last edited by rishabh.raj37; 29th July 2014 at 11:43 AM.
The Following 1,291 Users Say Thank You to rishabh.raj37 For This Useful Post:
How to logcat?
I know that many of you are having problems while porting
and I know that those problems cannot be solved simply by
guesswork..
There is a solution to find the problems which are causing
rishabh.raj37
27th September 2012, 11:30 AM | #2
Senior MemberOP
Thanks: 4,155
http://forum.xda-developers.com/showpost.php?p=36962143&postcount=2http://forum.xda-developers.com/retweet_forums.php?p=36962143http://forum.xda-developers.com/showthread.php?p=36962143https://plus.google.com/share?url=http://forum.xda-developers.com//showthread.php?p=36962143http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/showthread.php?t=2276871http://forum.xda-developers.com/showthread.php?t=2196491http://forum.xda-developers.com/newreply.php?do=newreply&p=32080012http://forum.xda-developers.com/newreply.php?do=newreply&p=32080012
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
13/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 13
Quote:
In your Phone(if the ROM is booting)
Through adb(if you are stuck in bootloop)
Quote:
LOGCAT ARE OF TWO TYPES:
Quote:
There are two apps which you can
use to take a LOGCAT..
They are aLogcat or Catlog.
Taking logcat through apps is very
easy.
Quote:
FIRST WAY--THROUGH APPS WHICH ARE
MADE TO TAKE LOGCAT:
Quote:
SEE THE INSTRUCTIONS BELOW TO
TAKE A LOGCAT THROUGH adb
Quote:
SECOND WAY--THROUGH TERMINAL
EMULATOR
Quote:
There are two ways to take LOGCAT in mobile:
Quote:
In your Phone:
BOOTLOOPS OR OTHER PROBLEMS IN YOUR PORT ROM..
The SOLUTION IS TO TAKE A LOGCAT..
http://viglink.pgpartner.com/rd.php?r=30493&m=1978537486&q=r&rdgt=1458130118&it=1458562118&et=1458734918&priceret=579.00&pg=~~3&k=2851d9f66a61c5becc688326da931fb4&source=feed&url=http%3A%2F%2Frd%2Ebizrate%2Ecom%2Frd%3Ft%3Dhttp%253A%252F%252Fbuy%2Egazelle%2Ecom%252Fbuy%252Fused%252Fiphone%2D6%2Dplus%2D128gb%2Dverizon%253Futm%5Fsource%253Dshopzilla%2526utm%5Fmedium%253Dcse%2526utm%5Fcontent%253DiPhones%26mid%3D294380%26cat%5Fid%3D11580100%26atom%3D10400%26prod%5Fid%3D6032247862%26oid%3D6218227949%26pos%3D1%26b%5Fid%3D18%26bid%5Ftype%3D10%26bamt%3Dce55c495f0f85261%26cobrand%3D106%26ppr%3D825b244794db0969%26mpid%3DGSB00000055906%26brandId%3D33373%26rf%3Dafp%26af%5Fassettype%5Fid%3D12%26af%5Fcreative%5Fid%3D2932%26af%5Fid%3D613705%26af%5Fplacement%5Fid%3D1&st=feed&mt=~~~~~~~~n~~~https://play.google.com/store/apps/details?id=com.nolanlawson.logcat&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5ub2xhbmxhd3Nvbi5sb2djYXQiXQ..https://play.google.com/store/apps/details?id=org.jtb.alogcat&feature=search_result#?t=W251bGwsMSwxLDEsIm9yZy5qdGIuYWxvZ2NhdCJd
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
14/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 14
Quote:
IN WINDOWS:Download Android SDK From Here
Install or Extract it to your desired Directory..
You also need to install Java JDK.
Download it here
In the Guide, we are taking C: as the Root Directory and an
Folder
Navigate to Android SDK folder and open 'SDK Man
Only check 'Android SDK Tools' and 'Android SDK
First connect the device via USB to your computer
Be sure to have USB debugging enabled
Now Navigate to C:/Android/android-sdk/platformNow Open a Command Prompt there By holding Shi
Button
Quote:
IN LINUX:IMPORTANT: If someone has a 64bit linux then they need t
bit libsfor this, before all these steps run this:
Code:
sudo apt-get install ia32-libs
Make sure that you have Android-SDK and JDK download
If you have not installed them, Android SDK from here and
way:
Code:
Quote:
HOW TO MAKE PC READY
LOGCAT?
http://viglink.pgpartner.com/rd.php?r=31360&m=1374367622&q=r&rdgt=1458130103&it=1458562103&et=1458734903&priceret=29.00&pg=~~3&k=c02a245dfc0166cd47c57a3004970421&source=feed&url=http%3A%2F%2Frd%2Ebizrate%2Ecom%2Frd%3Ft%3Dhttp%253A%252F%252Fwww%2Eserversupply%2Ecom%252Fproducts%252Fpart%5Fsearch%252Fpid%5Fquery%2Easp%253Fpid%253D142017%26mid%3D77288%26cat%5Fid%3D46010%26atom%3D9046%26prod%5Fid%3D%26oid%3D6618700067%26pos%3D1%26b%5Fid%3D18%26bid%5Ftype%3D8%26bamt%3D431b768070e1c697%26cobrand%3D106%26ppr%3D19d96bd368175eef%26mpid%3D142017%26rf%3Dafp%26af%5Fassettype%5Fid%3D12%26af%5Fcreative%5Fid%3D2932%26af%5Fid%3D613705%26af%5Fplacement%5Fid%3D1&st=feed&mt=~~~~~~~~n~~~http://developer.android.com/sdk/index.htmlhttp://www.oracle.com/technetwork/java/javase/downloads/index.htmlhttp://developer.android.com/sdk/index.html
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
15/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 15
sudo add-apt-repository ppa:ferramrobert
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-j
OR
$ sudo add-apt-repository ppa:sun-java-c
$ sudo apt-get update
OR You Can Simply Do This: (Credits to @Androguide.fr)
This process saves a lot of storage. It uses the Ubuntu Tou
Code:
sudo add-apt-repository ppa:phablet-team
sudo apt-get install android-tools-adb
You can also install fastboot in the same fashion:Code:
sudo apt-get install android-tools-fastb
Then follow the Below Instructions Carefully:
Make a new directory by this command in terminal:
Code:
mkdir android
Then extract the downloaded SDK by
Code:
tar -zxvf ~/Downloads/android-sdk_r21.0.
Then move it to the directory we just made
Code:
mv android-sdk-linux ~/android/sdk
Then open android sdk manager by
Code:
android/sdk/tools/android
This will open Android sdk manager. Just select android sd
android sdk platform tools for adb and then select install p
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
16/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 16
Go into your Home folder and Press CTRL+H (This is done t
folders and files)
Look for the file '.bashrc'
Open it and put the following or similar:
Code:
export PATH=$PATH:~/android/sdk
export PATH=$PATH:~/android/sdk/platform
export PATH=$PATH:~/android/sdk/tools
You will need to add something for any devices to be reco
Open terminal(Ctrl+alt+T) and enter:
Code:
sudo gedit /etc/udev/rules.d/51-android.
Enter the following in the file:
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="0502"
SUBSYSTEM=="usb", ATTR{idVendor}=="413c"
SUBSYSTEM=="usb", ATTR{idVendor}=="0489"
SUBSYSTEM=="usb", ATTR{idVendor}=="091E"
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4"
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1"
SUBSYSTEM=="usb", ATTR{idVendor}=="0482"
SUBSYSTEM=="usb", ATTR{idVendor}=="1004"
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8"
SUBSYSTEM=="usb", ATTR{idVendor}=="0955"SUBSYSTEM=="usb", ATTR{idVendor}=="10A9"
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8"
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd"
Now save and close the file, and in terminal enter:
Code:
sudo chmod +x /etc/udev/rules.d/51-andro
Now Type:
Code:
sudo gedit /etc/rc.local
This will open a file
now add the line mentioned below just above where it is
Code:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
17/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 17
/home/user/android/sdk/platform-tools/ad
"Enter your username in place of user"
After this we don't need to cd to adb directory..We just ha
devices and the phone will surely show up.
Now that everything is installed
Open terminal and type:
Code:
android
OR, if that doesn't work
Code:
cd ~/android/sdk/tools
./android
Quote:
To verify that the device is connected Type:
Code:
adb devices
Now type:
Code:
adb logcat > logcat.txt
The LOGCAT will be Saved in the logcat.txt File
You can also type:
Code:
adb logcat -f logcat.txt
Quote:
HOW TO TAKE
LOGCAT?
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
18/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 18
Or
Code:
adb logcat -v long > logcat.txt
With the -v flag & the long argument, it changes
output to long style, which means every line of
logcat will be on its own line (makes it a little
neater, imo)
Note: When outputting to a file, you will see a
newline, but nothing printed, this is normal. To
stop logcat from writting to a file, you need to
press ctrl+c.
Quote:
You usually see this at the start of a sentence in
logcat .
I/> ===> Information
S/> ===> Silent
D/> ===> Debug
W/> ===> Warning
E/> ===> Error
F/> ===> Fatal
Quote:
Meanings of symbols in a logcat !
Quote:
blahbl4hblah
paxChristos
Quote:
CREDITS:
Last edited by rishabh.raj37; 16th February 2014 at 03:24 AM.Reason: Update
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
19/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 19
[ View ]
The Following 179 Users Say Thank You to rishabh.raj37 For This Useful Post:
Quote:
This mentions that the build prop is built by build info sh
the compilation of the ROM.
Code:
Quote:
Standard build.prop prop
Please read the hashed out lines : It is selfexplanatory.
So the normal build properties start with:
Code:
# begin build properties
# autogenerated by buildinfo.sh
Build.prop and Updater-Script Terminology and Guide to Editit
rishabh.raj37
27th September 2012, 11:30 AM | #3
Senior MemberOP
Thanks: 4,155
http://forum.xda-developers.com/showpost.php?p=32080019&postcount=3http://forum.xda-developers.com/retweet_forums.php?p=32080019http://forum.xda-developers.com/showthread.php?p=32080019https://plus.google.com/share?url=http://forum.xda-developers.com//showthread.php?p=32080019http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/newreply.php?do=newreply&p=36962143http://forum.xda-developers.com/newreply.php?do=newreply&p=36962143
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
20/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 20
#First up the build id (Here JZO54K) is
ro.build.id=JZO54K
#It is the version of the ROM which appe
ro.build.display.id=cm_pico-userdebug 4.
#This is the software development kit ve
ro.build.version.incremental=eng.sakindi
ro.build.version.sdk=16
#3's codename.
ro.build.version.codename=REL
#This is the android version of the ROM.
ro.build.version.release=4.1.2
#This is the time and date of when the R
ro.build.date=Sat Nov 17 16:10:21 GMT 20
#More details in the kernel.
ro.build.date.utc=1353168621
#Userdebug ROMs has usb debugging set to
ro.build.type=userdebug
#Name of the person building the ROM & k
ro.build.user=sakindia123
Quote:
This part of the build prop shows the information about
not the build of the ROM of our phone.
Code:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
21/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 2
#Model of our device
ro.product.model=HTC Explorer A310e
#Brand of device. ( In some case carrier
ro.product.brand=htc_europe
#Name is an alternative ( codename ) of
ro.product.name=pico
ro.product.device=pico
ro.product.board=pico
#It is the first instruction set (CPU +
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
#Name of manufacturer.
ro.product.manufacturer=HTC
#Language of the software ( read ROM)
ro.product.locale.language=en
#Region of operation of software.
ro.product.locale.region=US
ro.wifi.channels=
#Name of board on which software has beero.board.platform=msm7x27a
# ro.build.product is obsolete; use ro.p
ro.build.product=pico
# Do not try to parse ro.build.descripti
ro.build.description=cm_pico-userdebug 4
Quote:
What is RIL?
A Radio Interface Layer (RIL) is a layer in an operating sys
provides an interface to the hardware's radio and modem
phone.
RIL Properties:
Code:
System properties::
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
22/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 22
#These are basically the links between y
rild.libpath=/system/lib/libhtc_ril.so
rild.libargs=-d /dev/smd0
rilswitch.vendorlibpath=/system/lib/libh
#
ril.subscription.types=NV,RUIM
#Architecture of baseband radio.
ro.baseband.arch = msm
#ro.ril.ecc.HTC-xxx=nnn,nnn,nnn
#These are basically the emergency call
ro.ril.ecc.HTC-GCC=999,112,997
ro.ril.ecc.HTC-WWE=999
ro.ril.ecc.HTC-Dutch=112
ro.ril.ecc.HTC-SPA=112, 911,112, 911
ro.ril.ecc.HTC-FRA=112,911
ro.ril.ecc.HTC-ITA=112,911
ro.ril.ecc.HTC-EastEurope=112
#Something to do with GPRS, AFAIK.
ro.ril.enable.a52.HTC-ITA=1ro.ril.enable.a53.HTC-ITA=1
ro.ril.enable.a52=0
ro.ril.enable.a53=1
#HSDPA category : High speed downlink pa
ro.ril.hsdpa.category=8
#HSXPA : High speed ( type ) packet . (
Quote:
Wi-Fi Related:
Code:
# Time between scans in seconds. Keep it
# This only affects the case in which th
# but none are in range.
wifi.supplicant_scan_interval=180
wifi.interface=eth0
Density(DPI) Related:
Code:
# density in DPI of the LCD of this boar
# appropriately. If this property is not
ro.sf.lcd densit = 160
Display and OpenGLrelated
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
23/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 23
Code:
# View configuration for QVGA
view.fading_edge_length = 8
view.touch_slop = 15
view.minimum_fling_velocity = 25
view.scroll_friction = 0.008
Code:
# The OpenGL ES API level that is native
# This is a 16.16 fixed point number
ro.o en les.version = 131072
Code:
# For no auto focus devices
ro.workaround.noautofocus = 1
# Increase SKIA decode memory capability
ro.media.dec.jpeg.memcap = 20000000
# For QC perf binary hooks
# src:vendor/qcom/proprietary/android-pe
Quote:
Additional Build Properties:
Code:
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
24/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 24
# Misc.
#There is a provision.apk in system/app
DEVICE_PROVISIONED=1
#Enabling certain audio libs.
htc.audio.alc.enable = 1
htc.audio.swalt.enable = 1
#Least amount of RAM that can be given t
dalvik.vm.heapsize=48m
#OpenGL 2.x.x
ro.opengles.version = 131072
#this is actually the software compositi
debug.composition.7x27A.type=mdp
#media.stagefright is nothing but the ty
media.stagefright.enable-player=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-fma2dp=true
media.stagefright.enable-aac=true
media.stagefright.enable-qcp=truero.use_data_netmgrd=true
persist.data.ds_fmc_app.mode=0
#It is the pixel format of RGB 565 with
ro.staticwallpaper.pixelformat=RGB_565
#Something to do with app + data cache.
ro.max.fling_velocity=4000
Quote:
[REF] Build prop terminology [INFO]
Quote:
Original thread-
Quote:
CREDITS:akshat.shenoy for his hard work
Enjoy
Last edited by rishabh.raj37; 13th April 2013 at 01:31 PM.
http://forum.xda-developers.com/showthread.php?t=2212162
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
25/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 25
[ View ]The Following 178 Users Say Thank You to rishabh.raj37 For This Useful Post:
[ View ]
reserved for op
reserved for op
Last edited by poyensa; 13th April 2013 at 05:27 PM.
The Following 36 Users Say Thank You to rishabh.raj37 For This Useful Post:
rishabh.raj37
27th September 2012, 11:30 AM | #4
Senior MemberOP
[ View ]
reserved for op
reserved for op
The Following 34 Users Say Thank You to rishabh.raj37 For This Useful Post:
rishabh.raj37
27th September 2012, 11:30 AM | #5
Senior MemberOP
[ View ]
Just curious.. currently im using O2X gb2.3.4 (stock).. can it be
done if i ported to latest cm7 (2.3.7). Will the "about phone" stats
change?
Sent from my LG-P990 using xda app-developers app
The Following 2 Users Say Thank You to ghadap For This Useful Post:
ghadap
27th September 2012, 01:10 PM | #6
Senior Member
Thanks: 4,155
Thanks: 4,155
Thanks: 15
http://forum.xda-developers.com/showpost.php?p=32082698&postcount=6http://forum.xda-developers.com/retweet_forums.php?p=32082698http://forum.xda-developers.com/showthread.php?p=32082698https://plus.google.com/share?url=http://forum.xda-developers.com//showthread.php?p=32082698http://forum.xda-developers.com/member.php?u=4178056http://forum.xda-developers.com/newreply.php?do=newreply&p=32082698http://forum.xda-developers.com/newreply.php?do=newreply&p=32082698http://forum.xda-developers.com/showpost.php?p=40255193&postcount=5http://forum.xda-developers.com/retweet_forums.php?p=40255193http://forum.xda-developers.com/showthread.php?p=40255193https://plus.google.com/share?url=http://forum.xda-developers.com//showthread.php?p=40255193http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/newreply.php?do=newreply&p=40255193http://forum.xda-developers.com/newreply.php?do=newreply&p=40255193http://forum.xda-developers.com/showpost.php?p=40255132&postcount=4http://forum.xda-developers.com/retweet_forums.php?p=40255132http://forum.xda-developers.com/showthread.php?p=40255132https://plus.google.com/share?url=http://forum.xda-developers.com//showthread.php?p=40255132http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/newreply.php?do=newreply&p=40255132http://forum.xda-developers.com/newreply.php?do=newreply&p=40255132http://forum.xda-developers.com/newreply.php?do=newreply&p=32080019http://forum.xda-developers.com/newreply.php?do=newreply&p=32080019
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
26/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 26
[ View ]
gonna give it a try...
The Following 3 Users Say Thank You to baliriot For This Useful Post:
baliriot
27th September 2012, 04:33 PM | #7
Senior Member
[ View ]
Great guide actually. Will give a try this weekend!!
Sent from my Incredible S using xda app-developers app
The Following 4 Users Say Thank You to Cyb0rgz For This Useful Post:
Cyb0rgz
27th September 2012, 06:31 PM | #8
Senior Member
[ View ]
So this won't work if I take a stock image file released by the
manufacturer and try to port a rom like cm10 on it even if the
original image is jelly bean?
Sent from my N90 DUAL CORE2 CZ using xda premium
The Following 2 Users Say Thank You to psychoace For This Useful Post:
psychoace
27th September 2012, 07:08 PM | #9
Senior Member
Both the base and port rom shohld be of thr same type.
rishabh.raj37
28th September 2012, 07:29 PM | #10
Senior MemberOP
Thanks: 273
Thanks: 176
Thanks: 95
Thanks: 4,155
http://forum.xda-developers.com/showpost.php?p=32137998&postcount=10http://forum.xda-developers.com/retweet_forums.php?p=32137998http://forum.xda-developers.com/showthread.php?p=32137998https://plus.google.com/share?url=http://forum.xda-developers.com//showthread.php?p=32137998http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/showpost.php?p=32096261&postcount=9http://forum.xda-developers.com/retweet_forums.php?p=32096261http://forum.xda-developers.com/showthread.php?p=32096261https://plus.google.com/share?url=http://forum.xda-developers.com//showthread.php?p=32096261http://forum.xda-developers.com/member.php?u=1721109http://forum.xda-developers.com/newreply.php?do=newreply&p=32096261http://forum.xda-developers.com/newreply.php?do=newreply&p=32096261http://forum.xda-developers.com/showpost.php?p=32094813&postcount=8http://forum.xda-developers.com/retweet_forums.php?p=32094813http://forum.xda-developers.com/showthread.php?p=32094813https://plus.google.com/share?url=http://forum.xda-developers.com//showthread.php?p=32094813http://forum.xda-developers.com/member.php?u=4414780http://forum.xda-developers.com/newreply.php?do=newreply&p=32094813http://forum.xda-developers.com/newreply.php?do=newreply&p=32094813http://forum.xda-developers.com/showpost.php?p=32090095&postcount=7http://forum.xda-developers.com/retweet_forums.php?p=32090095http://forum.xda-developers.com/showthread.php?p=32090095https://plus.google.com/share?url=http://forum.xda-developers.com//showthread.php?p=32090095http://forum.xda-developers.com/member.php?u=3217109http://forum.xda-developers.com/newreply.php?do=newreply&p=32090095http://forum.xda-developers.com/newreply.php?do=newreply&p=32090095
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
27/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
http://forum.xda-developers.com/showthread.php?t=1908008 27
[MODs] {All Devices} [KK-L] UTOPIA mods {release 2} (2015/12/25)
25th September 2015 Android Software Development
[Letv x800] RuschROM (Stock debloated) 13th October 2015
Previous Thread Next Thread
Tags
easiest , how to port roms , port roms , resize , simplest
Message:
Post Quick Reply Go Advanced
[ View ]
The Following 39 Users Say Thank You to rishabh.raj37 For This Useful Post:
Thanks for this guide :thumbup:
milestar1
28th September 2012, 09:53 PM | #11
Senior Member
Reply Subscribe to Thread
Page 1 of 294 1 2 3 11 51 101
Last
Guest Quick Reply (no urls or BBcode)
Top Threads in Android Software Developmentby ThreadRank
Thanks: 28
http://forum.xda-developers.com/showthread.php?t=1908008&page=2http://forum.xda-developers.com/showthread.php?t=1908008&page=294http://forum.xda-developers.com/showthread.php?t=1908008&page=2http://forum.xda-developers.com/showthread.php?t=1908008&page=101http://forum.xda-developers.com/showthread.php?t=1908008&page=51http://forum.xda-developers.com/showthread.php?t=1908008&page=11http://forum.xda-developers.com/showthread.php?t=1908008&page=3http://forum.xda-developers.com/showthread.php?t=1908008&page=2http://forum.xda-developers.com/subscription.php?do=addsubscription&t=1908008http://forum.xda-developers.com/newreply.php?do=newreply&noquote=1&p=32080012http://forum.xda-developers.com/showpost.php?p=32143245&postcount=11http://forum.xda-developers.com/retweet_forums.php?p=32143245http://forum.xda-developers.com/showthread.php?p=32143245https://plus.google.com/share?url=http://forum.xda-developers.com//showthread.php?p=32143245http://forum.xda-developers.com/member.php?u=4657768http://forum.xda-developers.com/newreply.php?do=newreply&p=32137998http://forum.xda-developers.com/newreply.php?do=newreply&p=32137998http://forum.xda-developers.com/tags.php?tag=simplesthttp://forum.xda-developers.com/tags.php?tag=resizehttp://forum.xda-developers.com/tags.php?tag=port+romshttp://forum.xda-developers.com/tags.php?tag=how+to+port+romshttp://forum.xda-developers.com/tags.php?tag=easiesthttp://forum.xda-developers.com/tags.phphttp://forum.xda-developers.com/showthread.php?t=1908008&goto=nextnewesthttp://forum.xda-developers.com/showthread.php?t=1908008&goto=nextoldesthttp://forum.xda-developers.com/android/development/letv-x800-ruschrom-1-0-25e-t3224702http://forum.xda-developers.com/android/softwarehttp://forum.xda-developers.com/android/software/mods-devices-utopia-mods-release-1-2015-t3211000
8/16/2019 [GUIDE]How to Port Different ROMS to Your de… _ Android Development and Hacking
28/28
3/17/2016 [GUIDE]How To Port Different ROMS to Your De… | Android Development and Hacking
Miscellaneous Android Development
[MOD][TWEAK][SCRIPT] XBatteryControl+ The first intelligent bat...
2nd November 2015 Android Software Development
[MOD][PORT][4.4+/6.0] HTC Beats Audioâ„¢ | The very Latest Bea...
29th December 2015 Android Software Development
[WatchFace] Fluid Watch Face, FREE! 2nd January 2016
Android Wear Software and Hacking General
[GUIDE] [MEDIATEK] How To Port 5.x.x Lollipop Based ROMs for ...
12th October 2015 Miscellaneous Android Development
Stay OS 10th September 2015
Android Software Development
[Root] Doze Settings Editor (Android Marshmallow Only)
28th October 2015 Android Apps and Games
xda-developers Android Development and Hacking Android Software Development [GUIDE]How To Port
Different ROMS to Your Device (Simplest and Fastest) by rishabh.raj37
Contact Rules Android Guides Suggest Content Privacy Policy XDA App Root Any Device
More info
Copyright © xda-developers. Hosted by Leaseweb
XDA Developers was founded by developers, for developers. It is now a
valuable resource for people who want to make the most of their mobile
devices, from customizing the look and feel to adding new functionality.
Are you a developer?
We're Social
http://www.youtube.com/user/xdadevelopershttp://plus.google.com/+xdahttp://www.facebook.com/xda.developershttp://twitter.com/xdadevelopershttps://www.leaseweb.com/?utm_source=XDA-developers.com&utm_medium=linkback&utm_content=hostedby&utm_campaign=*Linkbackhttp://www.xda-developers.com/recognized-developer-program/https://www.leaseweb.com/?utm_source=XDA-developers.com&utm_medium=linkback&utm_content=hostedby&utm_campaign=*Linkbackhttp://www.xda-developers.com/root/https://play.google.com/store/apps/developer?id=xda-developershttp://www.xda-developers.com/xda-developers-privacy-policy/http://www.xda-developers.com/suggest-content/http://www.xda-developers.com/android-guides/http://forum.xda-developers.com/announcement.php?a=81http://www.xda-developers.com/contact/http://forum.xda-developers.com/member.php?u=4766501http://forum.xda-developers.com/showthread.php?t=1908008http://forum.xda-developers.com/android/softwarehttp://forum.xda-developers.com/androidhttp://forum.xda-developers.com/index.phphttp://forum.xda-developers.com/index.phphttp://forum.xda-developers.com/android/apps-gameshttp://forum.xda-developers.com/android/apps-games/root-doze-settings-editor-android-t3235130http://forum.xda-developers.com/android/softwarehttp://forum.xda-developers.com/android/software/stay-os-t3197770http://forum.xda-developers.com/android/developmenthttp://forum.xda-developers.com/android/development/guide-how-to-port-lollipop-based-roms-t3223938http://forum.xda-developers.com/android-wear/developmenthttp://forum.xda-developers.com/android-wear/development/watchface-fluid-watch-free-t3284118http://forum.xda-developers.com/android/softwarehttp://forum.xda-developers.com/android/software/mod-htc-beats-audio-beats-xperience-t3281603http://forum.xda-developers.com/android/softwarehttp://forum.xda-developers.com/android/software/mod-xbatterycontrol-intelligent-battery-t3238960http://forum.xda-developers.com/android/development