[GUIDE]How To Port ROMS to Your Device [AOSP] - Android Software Development

Code:
/*
* ~ DO READ THIS BEFORE ATTEMPTING~
* Iam not here to guarantee any successful PORTING. nor i am responsible
for bricked devices, dead SD cards, or a broken device. YOU are
choosing to make these modifications, and if you point the finger
at me for messing up your device, I will laugh at you. But I will try
my best to explain all the necessities, so you won't mess up your Device.
*
~END
*/
Hello XDA'S Today i'm back with a useful guide/tutorial for ANDROID ROM PORTING
may have tried porting roms to their phones and has been succefull but most of the case is that we being end up in bootloops or cwm errors
So i'm dedicating this post for all users how are having a craze of rom porting or for atleast those wgo wanted to try rom porting
SO LETS START
There are two phases or rom porting
1) Its finding the correct port and source roms for ROM PORTING copying the files which is explained here
2) After a succefull port also the rom may not work properly ,we have to sort out the bugs to for a rom to become perfectly working
So with no more blahh blahh blahh Lets start the PORTING procedure :fingers-crossed: :fingers-crossed:
Click to expand...
Click to collapse
And lastly Before you a port a ROM, make sure you asked permission from the Developer!
What you'll need:
WinRAR/7zip
Notepad++ (When developing, always use this)
Android SDK (For Logcatting & DDMS)
Some basic knowledge about Android
If you are on Linux/Unix/BSD use your favorite Archiving Tool & Text Editor.
Click to expand...
Click to collapse
What is base Rom:
The ROM which is Developed For your Mobile..
You can use either CM or any other AOSP roms as your Base ROM
Click to expand...
Click to collapse
What is Port Rom:
The Rom Which you want to port to your Device.
Make sure that the rom has most of the hardware specifications as of your base rom
Click to expand...
Click to collapse
STEP1;
Take any clean CM9, AOSP, CM7, CM10 ROM which is running on your device as Base ROM
Click to expand...
Click to collapse
STEP2:
Extract it Using Winrar.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
STEP3:
Take the ROM you want to port. This Port ROM. Extract it also using Winrar.
Click to expand...
Click to collapse
STEP4:
Delete app, Framework, Fonts and Media folder in System Folder of Base ROM.
Click to expand...
Click to collapse
STEP5:
Now copy app, Framework, Fonts and Media folder in System Folder from Port rom to base rom system folder.
Click to expand...
Click to collapse
STEP6:
Now open etc folder in both the ROMs folder.
Click to expand...
Click to collapse
STEP7:
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
Click to expand...
Click to collapse
STEP 8: .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.
Click to expand...
Click to collapse
STEP9:
Now open buid.prop file using Notepad++ and make changes to these of Base Rom as you wish.
ro.build.id=
ro.build.display.id=
ro.build.date=
ro.modversion=
Click to expand...
Click to collapse
STEP10:
In build.prop file change these to same as Port Rom build.prop values.
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
ro.cmversion=
ro.modversion=
Also Copy anything you Find Extra in ADDITIONAL BUILD PROPERTIES related to theme..
Click to expand...
Click to collapse
STEP11:
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.
Click to expand...
Click to collapse
STEP12:
If You find any extra file or folder in system folder of PORT rom than copy them to your base rom system folder.
Click to expand...
Click to collapse
STEP 13:
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..
Click to expand...
Click to collapse
HERE THE BASIC ROM PORTING IS OVER BUT FOR SOME SPECIFIC COSTUME ROMS WE NEED LITTLE MORE STUFFS TO WORK ON ,THEY ARE SHOWN BELOW
ONLY FOR MIUI ROMS :
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
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
Change values Some of the Values in build.prop of your ROM:
ro.build.id=MIUI
ro.build.display.id=MIUI
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
Click to expand...
Click to collapse
FOR ParanoidAndroid And PAC:
Copy paranoid folder inside system/etc to yours..
Go to META-INF/com/google/android/Updater-Script of your base ROM and open it with Notepad++
Copy this line:
set_perm(1000, 1000, 0644, "/system/etc/paranoid/properties.conf");
Specially For PA:
Now Open Build.prop in /system with Notepad++
Copy these lines in Additional Properties of Build.prop:
Depends on Resolution Of your device can be pa_hdpi/pa_mdpi/pa_xhdpi. Change it according to your device.
ro.pa.family=pa_mdpi
Depend on pa version. Replace x.xx with the version of PA you are porting.
ro.pa.version=x.xx
Click to expand...
Click to collapse
Specially For PAC Rom:
Now Open Build.prop in /system with Notepad++
Copy these lines in Additional Properties of Build.prop:
Replace the x.x.x with your PAC Rom version
ro.pac.version=x.x.x
Customize these lines according to your wish.
ro.pacrom.version=mesona_PAC_jb-alpha-v19.0.0
ro.modversion=mesona_PAC_jb-alpha-v19.0.0
Depends on Resolution Of your device can be pa_hdpi/pa_mdpi/pa_xhdpi. Change it according to your device.
ro.pa.family=pa_mdpi
Depend on pa version. Replace x.xx with the version of PA you are porting.
ro.pa.version=x.xx
Modify this line according to your AOKP version
ro.aokp.version=mesona_jb-Milestone-1
Modify it according to your base ROM's build.prop
ro.cm.version=xxxxxxxxxxxx
Replace any line in Your build.prop which appear twice mainly ro.cm.version and ro.modversion
Click to expand...
Click to collapse
FOR SPECIFIC MANUFACTURE DEVICE
For HTC Devices:
To fix network auto select-
Decompile framework-res.apk
Go to \framework-res\res\values\bools.xml and change change <bool name="skip_restoring_network_selection">true</bool> to false
To Fix Graphichal issues:
Code:
Decompile framework.jar
Change these files with your base
smali\smali\android\os
Environment
SystemProperties
smali\smali\android\view
HardwareCanvas
HardwareRenderer$Gl20Renderer
HardwareRenderer$GlRenderer
HardwareRenderer
Click to expand...
Click to collapse
IF YOU ARE HAVING BOOTLOOP THEN COPY THESE LIB FILES TO BASE ROM FROM PORT ROM:
libandroid_runtime.so
libandroid_servers.so
libmedia_jni.so
Click to expand...
Click to collapse
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..
TROUBLESHOOTING AFTER SUCCEFULL PORT
After a succefull port also there can be many bugs present which has to soved logically
here are somethings which can help in DEBUGGING
1) IF GALLERY FC :
open the system/framework and find framework-res.apk file[can use any extracting app]
in both the roms and go to res folder then to xml subfolder and copy and replace the storage_list.xml file from source to port rom
( framework-res.apk\res\xml\storage_list.xml)
Porting Wallpapers | Lockscreen Wallpapers | bootanimation
Usually you get a wallpaper/bootanimation that doesn't fit your device. Here's a quick tutorial on how to port it to your device.
Download & Install FreeImageConverter then launch it.
For Wallpapers & Lockscreen Wallpapers:
Click Add Folder... and add the folder were the wallpapers are
Then click Advanced Convert...
Select Exact Size and set the image quality to 100
Set your Width and Height resolutions for your device.
Uncheck Add "Converted by www.freeimageconverter.com"
Select Leave the same file name and leave the Postfix & Prefix empty. Then set your output in a folder.
For bootanimation:
Extract /system/media/bootanimation.zip OR /data/local/bootanimation.zip OR /system/customize/resource/bootanimation.zip (For Oxygen ROM, the bootanimation is built into the framework-res)
Do the steps above
Move the new resized folder(s) into your bootanimation workspace
Edit the desc.txt to match your device resolutions
Zip the contents ( folder_name desc.txt )
Set compression method to Store
Delete the extracted bootanimation files
Make sure this new bootanimation.zip is in PORTED
Click to expand...
Click to collapse
Sources
http://cleanimport.xda/index.php?threads/1598713/
http://cleanimport.xda/index.php?threads/1908008/
Click to expand...
Click to collapse
Credits & Thanks to
# rishabh.raj37
# Peteragent5
Happy porting!
:laugh:
Click to expand...
Click to collapse

reserved
for clarification

This method gives bootloop too often. It works only for very similar devices like Xperia J & Arc or Huawei u8818

Yes. This method gives a lot of bootloops. It only can be used on devices with hairline differences between specs.
Sent from my GT-N7000 using XDA Premium 4 mobile app

lozohcum said:
This method gives bootloop too often. It works only for very similar devices like Xperia J & Arc or Huawei u8818
Click to expand...
Click to collapse
not really ,,i have tried porting with this and it worked succefullyy
:laugh:
may be you have to try it perfectly

1c3_5n0w said:
Yes. This method gives a lot of bootloops. It only can be used on devices with hairline differences between specs.
Sent from my GT-N7000 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
have you tried this methode,,iam sure it will work,,:laugh::laugh:

ArjunrambZ said:
have you tried this methode,,iam sure it will work,,:laugh::laugh:
Click to expand...
Click to collapse
I started porting roms about year ago so... yes I did, I tried many "methods". This works mostly for similar devices.
Now I'm trying to use source code

lozohcum said:
I started porting roms about year ago so... yes I did, I tried many "methods". This works mostly for similar devices.
Now I'm trying to use source code
Click to expand...
Click to collapse
yah trying with source code is the best way ,but this tut is for users who really cant get it using source :good:

Arjunramb456651 said:
Code:
/*
* ~ DO READ THIS BEFORE ATTEMPTING~
* Iam not here to guarantee any successful PORTING. nor i am responsible
for bricked devices, dead SD cards, or a broken device. YOU are
choosing to make these modifications, and if you point the finger
at me for messing up your device, I will laugh at you. But I will try
my best to explain all the necessities, so you won't mess up your Device.
*
~END
*/
Hello XDA'S Today i'm back with a useful guide/tutorial for ANDROID ROM PORTING
may have tried porting roms to their phones and has been succefull but most of the case is that we being end up in bootloops or cwm errors
So i'm dedicating this post for all users how are having a craze of rom porting or for atleast those wgo wanted to try rom porting
SO LETS START
And lastly Before you a port a ROM, make sure you asked permission from the Developer!
HERE THE BASIC ROM PORTING IS OVER BUT FOR SOME SPECIFIC COSTUME ROMS WE NEED LITTLE MORE STUFFS TO WORK ON ,THEY ARE SHOWN BELOW
ONLY FOR MIUI ROMS :
FOR ParanoidAndroid And PAC:
Specially For PAC Rom:
FOR SPECIFIC MANUFACTURE DEVICE
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..
TROUBLESHOOTING AFTER SUCCEFULL PORT
After a succefull port also there can be many bugs present which has to soved logically
here are somethings which can help in DEBUGGING
1) IF GALLERY FC :
open the system/framework and find framework-res.apk file[can use any extracting app]
in both the roms and go to res folder then to xml subfolder and copy and replace the storage_list.xml file from source to port rom
( framework-res.apk\res\xml\storage_list.xml)
Credits & Thanks to
# rishabh.raj37
# Peteragent5
Happy porting!
:laugh:
Click to expand...
Click to collapse
Can you port an AOSP/CM based rom using a Manufacturer/maufacturer based ROM as the base (i.e. touchwiz rom)?
Click to expand...
Click to collapse

So i own a Galaxy Tab 2 10.1 from AT&T... If i wanted to port a 4.2.2 Touchwiz rom to my tablet, would the steps vary much from those you've listed?
Sent from my SGH-I337 using XDA Premium 4 mobile app
---------- Post added 16th November 2013 at 12:02 AM ---------- Previous post was 15th November 2013 at 11:59 PM ----------
Neozx25 said:
So i own a Galaxy Tab 2 10.1 from AT&T... If i wanted to port a 4.2.2 Touchwiz rom to my tablet, would the steps vary much from those you've listed? I would be using a rom that runs on another tab 2 10.1 but not for AT&T. Or even if i wanted an AOSP rom, would be that difficult?
Sent from my SGH-I337 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sent from my SGH-I337 using XDA Premium 4 mobile app

HitBobLer said:
Arjunramb456651 said:
Code:
/*
* ~ DO READ THIS BEFORE ATTEMPTING~
* Iam not here to guarantee any successful PORTING. nor i am responsible
for bricked devices, dead SD cards, or a broken device. YOU are
choosing to make these modifications, and if you point the finger
at me for messing up your device, I will laugh at you. But I will try
my best to explain all the necessities, so you won't mess up your Device.
*
~END
*/
Hello XDA'S Today i'm back with a useful guide/tutorial for ANDROID ROM PORTING
may have tried porting roms to their phones and has been succefull but most of the case is that we being end up in bootloops or cwm errors
So i'm dedicating this post for all users how are having a craze of rom porting or for atleast those wgo wanted to try rom porting
SO LETS START
And lastly Before you a port a ROM, make sure you asked permission from the Developer!
HERE THE BASIC ROM PORTING IS OVER BUT FOR SOME SPECIFIC COSTUME ROMS WE NEED LITTLE MORE STUFFS TO WORK ON ,THEY ARE SHOWN BELOW
ONLY FOR MIUI ROMS :
FOR ParanoidAndroid And PAC:
Specially For PAC Rom:
FOR SPECIFIC MANUFACTURE DEVICE
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..
TROUBLESHOOTING AFTER SUCCEFULL PORT
Can you port an AOSP/CM based rom using a Manufacturer/maufacturer based ROM as the base (i.e. touchwiz rom)?
Click to expand...
Click to collapse
no i dont think so,because cm /pa have modified source code ,which differ from manufacture rom hence ,,not possible ,u will possibly end in boot loop
Click to expand...
Click to collapse

Neozx25 said:
So i own a Galaxy Tab 2 10.1 from AT&T... If i wanted to port a 4.2.2 Touchwiz rom to my tablet, would the steps vary much from those you've listed?
Sent from my SGH-I337 using XDA Premium 4 mobile app
---------- Post added 16th November 2013 at 12:02 AM ---------- Previous post was 15th November 2013 at 11:59 PM ----------
Sent from my SGH-I337 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Neozx25 said:
So i own a Galaxy Tab 2 10.1 from AT&T... If i wanted to port a 4.2.2 Touchwiz rom to my tablet, would the steps vary much from those you've listed?
Sent from my SGH-I337 using XDA Premium 4 mobile app
---------- Post added 16th November 2013 at 12:02 AM ---------- Previous post was 15th November 2013 at 11:59 PM ----------
Sent from my SGH-I337 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
yes of course ,this methode is for aosp or for cm roms and not for manufacture roms,,there are other guids for porting manufacture roms ,go search the forum

only boot loop no progress!!!
i had tried this method more then 4 times but it didnt worked....
rom is not booting up and its stucked on boot animation and shows no progress although i left it for an hour but still stucked....
any idea??
and for details...
i am porting chameleon OS built for htc one s just see this....-
android v is 4.2.2
so i used aokp 4.2.2(stable) first as base rom but i failed more then 2-4 times then i tried cm10.1 as base rom but still i am at bootanimation.
i had also used the three libs from the port rom and base rom as mentioned in the guide but still nothing is going good......:crying:
can you tell me that am i missing something or i should try other guides?
if your answer is that i should try other guides so please lead me to a guide.....
thanks.
regardslayboydroid

playboydroid said:
i had tried this method more then 4 times but it didnt worked....
rom is not booting up and its stucked on boot animation and shows no progress although i left it for an hour but still stucked....
any idea??
and for details...
i am porting chameleon OS built for htc one s just see this....-
android v is 4.2.2
so i used aokp 4.2.2(stable) first as base rom but i failed more then 2-4 times then i tried cm10.1 as base rom but still i am at bootanimation.
i had also used the three libs from the port rom and base rom as mentioned in the guide but still nothing is going good......:crying:
can you tell me that am i missing something or i should try other guides?
if your answer is that i should try other guides so please lead me to a guide.....
thanks.
regardslayboydroid
Click to expand...
Click to collapse
bro firstof all,, porting is not that easy as to read,,, here logcat is your only friends,,, get me the logcat

hmm
ArjunrambZ said:
bro firstof all,, porting is not that easy as to read,,, here logcat is your only friends,,, get me the logcat
Click to expand...
Click to collapse
okay just wait for a day...
and thanks for your quick reply..

playboydroid said:
okay just wait for a day...
and thanks for your quick reply..
Click to expand...
Click to collapse
okay

Good evening to all, first of all thanks for the guide.
The rom part, it works most of the things, porting is a rom for nexus 5 to take on g2.
I have problems with wifi, vpn and security in the setting menu.
Practically the vpn and security go on crash, while the wifi is active but can not find anything.
Do you have suggestions?
thanks
Sorry for my bad english

jokerpoker1 said:
Good evening to all, first of all thanks for the guide.
The rom part, it works most of the things, porting is a rom for nexus 5 to take on g2.
I have problems with wifi, vpn and security in the setting menu.
Practically the vpn and security go on crash, while the wifi is active but can not find anything.
Do you have suggestions?
thanks
Sorry for my bad english
Click to expand...
Click to collapse
it would only b possible if you could get a logcat about the problem,, and if the problem persist in the base rom,then its sure to be in ur port too,

ArjunrambZ said:
it would only b possible if you could get a logcat about the problem,, and if the problem persist in the base rom,then its sure to be in ur port too,
Click to expand...
Click to collapse
thanks for the reply, it is the first time I use logcat, this is what I said when I port ROM.un my friend was telling me That might be the update script.
Thanks
Inviato dal mio LG-D802 utilizzando Tapatalk

jokerpoker1 said:
thanks for the reply, it is the first time I use logcat, this is what I said when I port ROM.un my friend was telling me That might be the update script.
Thanks
Inviato dal mio LG-D802 utilizzando Tapatalk
Click to expand...
Click to collapse
yes when it coms to porting logcat is ur only friend,, well updater script doesn't have any relations with the rom actually its like a process to installing the rom as said, and fixing permision,,,
and please tell me when was this logcat obtained and this time get me a full logcat

Related

[GUIDE] How to port AOSP ICS roms to your Device

How to port any ICS AOSP based roms to your Device (AOKP, CM9 & many other)
- for best compatibilty
--> use same android versions. (4.0.4 -> 4.0.4 example)
--> use latest base from CM9 (is best choose for port) or any AOSPbased ICS ROM
--> use each brand for port (mean Desire HD -> Desire S or other HTC devices). you also can port other roms, but you will have issues.
PORT:
-> download latest cm9 base and extract it
-> download target rom and extract it
for Camera
use Camera.apk from base rom for camera issues fix.
Click to expand...
Click to collapse
copy
/app
/framework
/media
/fonts folders and replace in cm9 folder.
repack your zip and let it boot.
if it doesn't boot then copy /system/lib/libandroid_runtime.so from target rom and repack your rom.zip and install again.. if you get bootloop anyway, then just type in adb "adb logcat" and share it with us in this thread..
if you dont get success dont cry, just try to port another rom you can not port all roms
for HTC Devices
to fix network auto select,
decompile framework-res.apk
go to \framework-res\res\values\bools.xml change
<bool name="skip_restoring_network_selection">true</bool>
to false.
Click to expand...
Click to collapse
to fix graphichal issues,
decompile framework.jar
change these files with cm9 base
smali\smali\android\os
Environment
SystemProperties
smali\smali\android\view
HardwareCanvas
HardwareRenderer$Gl20Renderer
HardwareRenderer$GlRenderer
HardwareRenderer
Click to expand...
Click to collapse
Click to expand...
Click to collapse
enjoy!
if you like this guide, just give 5 stars to thread and click thanks button
hi, there, and i own a huawei u8800, we allready have a aosp ics 4.0.4 aurora room but i would like to have cm9 or aokp into our phone. in this case based is aosp ics aurora and ported will be cm9 or aokp for example? i´m right?
maybe is better port cm9 from desire z to my huawei u8800, since they have the same cpu and gpu.
dont want tou build a rom, just port.
please i need help. thanks anyway.
lol be thankful you have an ICS rom.. Huawei X6 users like me are trying our best to port from u8860's ICS.
I'd like to ask if the method works for a device that does not have official ICS? i.e. porting an ICS rom to official GB?
Kindly advise sir, and thanks again!
I get the same that in miui v4... boot loop and adb says no device
I get AtCmdFwd error.
Could you post the link of latest cm9 base?
im getting stuck in a bootloop...
INFO:
Device-Samsung Infuse
CM9 Base being used to port- http://forum.xda-developers.com/showthread.php?t=1601844
Rom trying to port- http://www.slimroms.com/ (the i9000 version aka galaxy s)
What i did:
1) opened cm9 base with 7zip, deleted app, framework, fonts, media folders
2) replaced deleted folders with app, framework, fonts and media folders from slim ics base 3.6
3) opened up slim ics 3.6 i9000 essentials with 7zip
4)navigated to app folder and moved apks files from ther to the cm9 base - did the same with framework, fonts, and media folders (I did not just copy the folders this time! i only copied the files inside the folders)
5) put zip on sdcard
6) rebooted and started log cat
any help would be apreciated if i dont answer back right away its because i have to pick my sister up from school
Here are the logcats: (All are the same logcat...but two of them are filtered)
I think I kniw what the problem is...gonna attemot a fix after dinner
EDIT i got out of the boot loops and booted into my portes slimics...now to fix the bugs...there is ALOT
thanks for the guide will def give you some credit once i get this stable...may be getting some help from another dev
So as long as the base and ported roms are from the same manufacturer, this will work?
Sent from my LG-E739 using Tapatalk 2
how to port aosp ics to cm9?
good guide
You can add
Copy etc\cron
And etc\init.d files to run RomControl fix
Am stuck at logo screen.
Can't get logcat because ADB can't find my device.
What to do?
Sent from my LG-E739 using Tapatalk 2
mg2195 said:
I think I kniw what the problem is...gonna attemot a fix after dinner
EDIT i got out of the boot loops and booted into my portes slimics...now to fix the bugs...there is ALOT
thanks for the guide will def give you some credit once i get this stable...may be getting some help from another dev
Click to expand...
Click to collapse
Can you please tell what was the problem and how did you fixed? Thanks.
medicjunKie said:
So as long as the base and ported roms are from the same manufacturer, this will work?
Sent from my LG-E739 using Tapatalk 2
Click to expand...
Click to collapse
It would be sane screen res e.g HDPI to HDPI
And also the same processor type too helps
Sent from my LT15i using xda premium
see i hve a question...., what does base mean? does it mean the ics rom which i hve for my device already ported or any ics rom available for my device's manufacturer?
like my phone is samsung galaxy 3....so shud the base be the rom which is available for my g3 or it can be any ics rom like say ics rom for samsung galax s?
---------- Post added at 09:37 AM ---------- Previous post was at 09:36 AM ----------
i m seriously cponfused with that part..... m not gettin g what the base and the rom to be ported shud be?
My logcat ...?? what can i do? http://www.embedupload.com/?d=4HKCKXGIK2
I'm trying to port slimICS and it gets stuck at boot. Here's my logcat if it helps.
http://logcat.miui.us/893012
Zorua said:
I'm trying to port slimICS and it gets stuck at boot. Here's my logcat if it helps.
http://logcat.miui.us/893012
Click to expand...
Click to collapse
see here
Code:
169: E/dalvikvm( 1190): ERROR: couldn't find native method
170:
171: E/dalvikvm( 1190): Requested: Lcom/android/server/PowerManagerService;.nativeStartSurfaceFlingerOffAnimation:(I)V
172:
173: E/JNIHelp ( 1190): RegisterNatives failed for 'com/android/server/PowerManagerService', aborting
baksmali classes.dex of services.jar
find PowerManagerService.smali file in the path com/android/server
add line
Code:
.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method
tathanhlam66 said:
see here
Code:
169: E/dalvikvm( 1190): ERROR: couldn't find native method
170:
171: E/dalvikvm( 1190): Requested: Lcom/android/server/PowerManagerService;.nativeStartSurfaceFlingerOffAnimation:(I)V
172:
173: E/JNIHelp ( 1190): RegisterNatives failed for 'com/android/server/PowerManagerService', aborting
baksmali classes.dex of services.jar
find PowerManagerService.smali file in the path com/android/server
add line
Code:
.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method
Click to expand...
Click to collapse
I don't have the folder com/android/server/. What am I doing wrong?
EDIT: Wow, I sound so stupid. Nvm, I did that edit. I had to look up smali and baksmali guides. I'll flash it and see if it boots.
Okay, still refusing to boot.
New logcat: http://logcat.miui.us/894002
EDIT 2: Booted but storage isn't working.
Logcat: http://logcat.miui.us/889025
Zorua said:
EDIT 2: Booted but storage isn't working.
Logcat: http://logcat.miui.us/889025
Click to expand...
Click to collapse
Try decompiling the framework-res.apk and change the storage-list.xml in the xml folder.

[GUIDE] How to port ROMs from u8800pro to u8800

How to port ROM
Overview
So this is guide "how to port roms from huawei u8800pro to u8800 or from u8800 to u8800pro". Both ROMs (base, port) must have same android version. And if you try this guide you'll port ROM for your device with same features! If you have some question or problem please PM me.
Click to expand...
Click to collapse
Tools
Winrar
Notepad++
Click to expand...
Click to collapse
Guide
What is base Rom:
The ROM which is Developed For your Mobile.. (like Aurora, CM7,...)
What is Port Rom:
The Rom Which you want to port to your Device... (like frozenpika,...)
1. So take any clean ROM which is running on your device as Base ROM.
2. Extract it Using Winrar.
3. Take the ROM you want to port. This Port ROM. Extract it also using Winrar.
4. Delete app, Framework, Fonts and Media folder in System Folder of Base ROM.
5. Now copy app, Framework, Fonts and Media folder in System Folder from Port rom to base rom system folder.
6. Now open etc folder in both the ROMs folder.
7. 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.
8. Now open buid.prop file using Notepad++ and make changes to these of Base Rom as you wish.
ro.build.id=
ro.build.display.id=
ro.build.date=
ro.modversion=
9. In build.prop file change these to same as Port Rom build.prop values.
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
10. 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.
11. Last Step to .zip folders to one
SELECT META-INF, system and boot.img in port folder
Right Click and Select Add to Archive..
Select Zip..
Type the Name.
Click OK..
12. You can simple flash via recovery!
Click to expand...
Click to collapse
Is it backwards compatible too? Regular to pro?
Sent from my u8800-51
Somcom3X said:
Is it backwards compatible too? Regular to pro?
Sent from my u8800-51
Click to expand...
Click to collapse
Yes, of course. From the U8800 U8800pro and vice versa.
Have you ported any Roms from u8800 pro yourself. If so, please share with us
Sent from my U8800 using xda premium
vercetti19 said:
Have you ported any Roms from u8800 pro yourself. If so, please share with us
Sent from my U8800 using xda premium
Click to expand...
Click to collapse
Sorry. I'm very busy now with my ROM Mlora...
Maybe someone can try it!
11. Last Step to .zip folders to one
SELECT META-INF, system and boot.img in port folder
Right Click and Select Add to Archive..
Select Zip..
Type the Name.
Click OK..
Click to expand...
Click to collapse
Is this correct?
We made all these changes to base rom, edit build.prop and updater_script of BASE ROM, and then we must zip and flash the PORT ROM folder?
dancer_69 said:
Is this correct?
We made all these changes to base rom, edit build.prop and updater_script of BASE ROM, and then we must zip and flash the PORT ROM folder?
Click to expand...
Click to collapse
Yes. Thanks for correct.
Sent from my U8800 running AOSP 4.0.4
Firstly, this a copy of this thread http://forum.xda-developers.com/showthread.php?t=1908008
Secondly, it's wrong and inaccurate.
ezet said:
Firstly, this a copy of this thread http://forum.xda-developers.com/showthread.php?t=1908008
Secondly, it's wrong and inaccurate.
Click to expand...
Click to collapse
Firstly, This guide is for beginners developers which want start with development.
Secondly, it isn't wrong. I tried it.
Mlopik said:
Firstly, This guide is for beginners developers which want start with development.
Secondly, it isn't wrong. I tried it.
Click to expand...
Click to collapse
Which ROM did you port?
forumber2 said:
Which ROM did you port?
Click to expand...
Click to collapse
I tried port CM9 for u8800 but now I'm waiting for Blefish's CM10.1. He said (on his twitter) that he'll release first preview next week.
Mlopik said:
I tried port CM9 for u8800 but now I'm waiting for Blefish's CM10.1. He said (on his twitter) that he'll release first preview next week.
Click to expand...
Click to collapse
And It worked?
forumber2 said:
And It worked?
Click to expand...
Click to collapse
Yes. It worked but I formatted disk and I go back to Windows8. So ROM is removed.
Lets see if this works :fingers-crossed:
Somcom3X said:
Lets see if this works :fingers-crossed:
Click to expand...
Click to collapse
So? Did you try it?
TUPAC_RIP said:
So? Did you try it?
Click to expand...
Click to collapse
Cyan mobile has issues... Trying to fix.
Sent from my U8800-51 using xda premium
Somcom3X said:
Cyan mobile has issues... Trying to fix.
Sent from my U8800-51 using xda premium
Click to expand...
Click to collapse
Will you post it?
Mlopik said:
Will you post it?
Click to expand...
Click to collapse
Gotta fix the updater script
Sent from my U8800-51 using xda premium
Mlopik said:
Will you post it?
Click to expand...
Click to collapse
Mistake in script formatted SD card... Gotta start over...
Sent from my U8800-51 using xda premium
Mlopik said:
How to port ROM
Overview
Tools
Guide
What is base Rom:
The ROM which is Developed For your Mobile.. (like Aurora, CM7,...)
What is Port Rom:
The Rom Which you want to port to your Device... (like frozenpika,...)
Click to expand...
Click to collapse
tried to port paranoid android from galaxy s2 to u8800 but it is stuck in bootloop

[GUIDE]Port Any ROM - Revised - Now Easier!

PoRT AnY
CM10/CM10.1
CM9/CM7/AOKP/Stock Based/MiUi ROM
Click to expand...
Click to collapse
Code:
#include
/*
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
* YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
*
*/
Prerequisite:
Click to expand...
Click to collapse
7zip
Notepad++
Knowledge about android
Most Important(Note) - Half an hour
Before Starting Port:
Click to expand...
Click to collapse
1.Select a similar device, with same display resolution, similar processor, and similar processor ie. architecture of cpu
2.Take a look what the ROM is based of, example: If it is based of ICS Rom download CM9/AOKP/Any ICS Rom except sense based ICS
3.Download Base ROM
4.Create a folder where you are going to work, name it "Android_porting"
5.Extract both the ROMs in the folder, name the ROM folder you are porting as " PORT" and youre base ROM folder as "BASE"
5.Open both ROM folder like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Starting the port:
STEP 1- In Base ROM
1.Open System Folder
2.Delete the Folders: "app", "framework", "fonts" and "media"
Click to expand...
Click to collapse
STEP 2- From Port to Base
1.Open System Folder
2.Copy the Folders: "app", "framework", "fonts" and "media"
3.Paste these folders in BASE/system
Click to expand...
Click to collapse
STEP 3- In Port ROM
1.Open system/etc/permissions
2.Copy all files except: "platform" and "handheld_core_hardware"
3.Paste these to BASE/system/etc/permissions
Click to expand...
Click to collapse
STEP 4- In Port ROM(skip if port ROM has no init.d scripts)
1.Open system/etc/init.d
2.Copy all scripts
3.Paste these to BASE/system/etc/init.d
Click to expand...
Click to collapse
STEP 5- Build.prop of Base Rom
1.Open system/build.prop
2.Now, you may edit these lines:
Code:
ro.build.id=
ro.build.display.id=
ro.build.date=
Click to expand...
Click to collapse
Step 6- Default Sounds
Now, Change copy these lines from port ROMs Build.prop to your Base Rom
Code:
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
Copy these from port build.prop to base
persist.sys.themeId=
persist.sys.themePackageName=
Also copy any other performance tweaks if you find any...
Click to expand...
Click to collapse
For MIUI v4 Only​
1.Copy lib/android_runtime.so from port to base(otherwise ROM won't boot)
2.copy invoke-as from miui rom to /system/xbin, add this to updater script:
Code:
set_perm(0, 0, 06755, "/system/xbin/invoke-as");
3.copy liblbesec.so from miui 4 to /system/lib, add this line to updater script
Code:
set_perm(0, 0, 0755, "/system/lib/liblbesec.so");
4.Change these in build.prop
Code:
ro.build.id=MIUI
ro.build.display.id=MIUI
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
Click to expand...
Click to collapse
STEP 7- Updater Script
1.Open port ROMs updater script
2.Copy all lines starting with
set_perm or set_perm_recursive
3.Delete all set_perm or set_perm_recursive lines from base updater script, and paste the port Rom ones
4. Save and close
Click to expand...
Click to collapse
Final Step:
1. Zip the ROM
2. Flash it on your phone
3.Voila !
Click to expand...
Click to collapse
If This Guide Helped You In Any Way Please Hit Thanks
In-Case Rom Does not boot, feel free to contact me
How to report
-Give me the logcat
-You need ADB(Android Debug Bridge), use command "adb logcat" while phone is connected
-Incase ROM boots and there is some other problem use the app alogcat to get logcats or you can also use ADB !
-Mention the ROM you are porting with thread link and also base ROM
If This Guide Helped You In Any Way Please Hit Thanks
If This Guide Helped You In Any Way Please Hit Thanks
FAQ!
Q) I Cant Boot the rom now what?
Sorry i'm not so creative to imagine things, just give me a logcat
Q) This guide is tough what to do I cant understand?
Read again, keep reading until you get it! This thing can't be anymore easy!
Q) I am geting "status x" error in recovery, how to fix?
There is an error in updater-script either find it yourself fix it otherwise seek help from me
If you are getting status 7 system ran outta memory, strip the ROM, barebone, delete apks or whatever any point you need help ask me!
Q) How to add more apps in ROM?
Copy apps in system/app for making it system app or in data/app for user app!
Q) I add an app in data/app but when I flash it but it doesnt boot!
You need to add mount points and package_extract to get it done, check out guide link below!
Q) I cant get the logcat mobile isnt detected by ADB!
Confirm if you replaced boot.img, else post here!
...updating
Re: [GUIDE]Port CM9/CM7/AOKP/Stock Based/MiUi ROM
Learn More!-
-About Updater Scripts:
http://forum.xda-developers.com/showthread.php?t=2187804
-Build.prop Wiki:
http://forum.xda-developers.com/showthread.php?t=2056266
If This Guide Helped You In Any Way Please Hit Thanks
i want porting miui for my phone its dual cdma evdo gsm phone. can we porting miui with keep the dual sim feature??
Re: [GUIDE]Port CM9/CM7/AOKP/Stock Based/MiUi ROM
virganda said:
i want porting miui for my phone its dual cdma evdo gsm phone. can we porting miui with keep the dual sim feature??
Click to expand...
Click to collapse
You can try porting lewa os it is very similar to miui nearly same
Lewa os supports supports dual sim but I don't know about miui.
But porting miui is also worth a try
Sent from my HTC Explorer using xda app-developers app
I tried porting according to your guide but my rom is stuck at miui boot logo..unable to boot..also if you can explain what all changes are to be done in framework.jar services.jar and other files to boot a rom successfully and for a comp-lete port..
xperiavish said:
I tried porting according to your guide but my rom is stuck at miui boot logo..unable to boot..also if you can explain what all changes are to be done in framework.jar services.jar and other files to boot a rom successfully and for a comp-lete port..
Click to expand...
Click to collapse
Copy lib/android_runtime.so from port to base(otherwise ROM won't boot)
Check this ^
Dont forget to hit thanks
Already done that but still am unable to get past the boot animation..also can you please explain me about those jar edits and smalli modifications or at least point me to a guide/tutorial on that..and can you please tell me a few devices i can take as port for my sony xperia u st 25i..thanx..
Re: [GUIDE]Port CM9/CM7/AOKP/Stock Based/MiUi ROM
xperiavish said:
Already done that but still am unable to get past the boot animation..also can you please explain me about those jar edits and smalli modifications or at least point me to a guide/tutorial on that..and can you please tell me a few devices i can take as port for my sony xperia u st 25i..thanx..
Click to expand...
Click to collapse
Can you tell you ported the Rom from which phone to which phone ?
Please give logcat also
Sent from my HTC Explorer using xda app-developers app
Re: [GUIDE]Port CM10/CM9/CM7/AOKP/Stock Based/MiUi ROM
I ported it from xperia s to u..and tried to do as much as I could but I was unable to boot..so I thought of choosing another rom for porting..so I went for porting htc one v rom miui version 2.11.9 to my xperia u with cm9 base..I did edits in framework.jar,services.jar and framework-res.apk with the help of tutorials available here over xda..now m able to boot the rom and everything works except for two problems..first is when I call anyone,my phone boots while on the dialer screen and doesn't comes up again,stuck at boot logo..I have to take out battery and then restart it..another thing is that my rom boots only when flashed over cm9base without wiping data..if data wiped or if installed over stock rom it doesn't boots and is stuck on miui boot logo..any ideas..??
Sent from my Xperia U using xda premium
Re: [GUIDE]Port CM10/CM9/CM7/AOKP/Stock Based/MiUi ROM
xperiavish said:
I ported it from xperia s to u..and tried to do as much as I could but I was unable to boot..so I thought of choosing another rom for porting..so I went for porting htc one v rom miui version 2.11.9 to my xperia u with cm9 base..I did edits in framework.jar,services.jar and framework-res.apk with the help of tutorials available here over xda..now m able to boot the rom and everything works except for two problems..first is when I call anyone,my phone boots while on the dialer screen and doesn't comes up again,stuck at boot logo..I have to take out battery and then restart it..another thing is that my rom boots only when flashed over cm9base without wiping data..if data wiped or if installed over stock rom it doesn't boots and is stuck on miui boot logo..any ideas..??
Sent from my Xperia U using xda premium
Click to expand...
Click to collapse
It obviously won't boot, please read instructions choose a similar device ie. With same display resolution to port upon, xperia U is FWVGA so other device must be FWVGA !
Hit thanks if I've helped
Sent from my space ship DX-164B
Re: [GUIDE]Port CM10/CM9/CM7/AOKP/Stock Based/MiUi ROM
@xperiavish
Logcats please !
Sent from my space ship DX-164B
hey danceoff first off i like to thank you for doing this for us noobs! just one problem and sorry dont have a logcat untill i get time to try again. i'm trying to port AOKP milestone 6 for xperia play onto http://forum.xda-developers.com/showthread.php?t=2123085 also based off cm9(latest). i'm just stuck on aokp boot logo. I followed your guide letter for letter so i was wondering is there anything i may not be aware of that is not in the guide or something. anyways i will try again and will have a logcat for ya. once again thankyou sooooo much for this.
Re: [GUIDE]Port CM10/CM9/CM7/AOKP/Stock Based/MiUi ROM
solomon4400 said:
hey danceoff first off i like to thank you for doing this for us noobs! just one problem and sorry dont have a logcat untill i get time to try again. i'm trying to port AOKP milestone 6 for xperia play onto http://forum.xda-developers.com/showthread.php?t=2123085 also based off cm9(latest). i'm just stuck on aokp boot logo. I followed your guide letter for letter so i was wondering is there anything i may not be aware of that is not in the guide or something. anyways i will try again and will have a logcat for ya. once again thankyou sooooo much for this.
Click to expand...
Click to collapse
From what device were you porting, and what's the resolution of xperia play display ?
Sent from my HTC Explorer using xda premium
Any MIUI port for Xperia U ? please give me the link for Port MIUI ROM for xperia u
Re: [GUIDE]Port CM10/CM9/CM7/AOKP/Stock Based/MiUi ROM
VocaloidBoy said:
Any MIUI port for Xperia U ? please give me the link for Port MIUI ROM for xperia u
Click to expand...
Click to collapse
I made this guide to help people port roms ! I don't own xperia u so don't know about it
Sent from my HTC Explorer using xda premium
Bro when I ported MIUI to my device Xperia U base on CM9.1 Fxp 205 it booted but only 1 thing dont work, I lose Root permission My device can't use app for root device like Titanium backup, etc... and this is my logcat
Re: [GUIDE]Port CM10/CM9/CM7/AOKP/Stock Based/MiUi ROM
VocaloidBoy said:
Bro when I ported MIUI to my device Xperia U base on CM9.1 Fxp 205 it booted but only 1 thing dont work, I lose Root permission My device can't use app for root device like Titanium backup, etc... and this is my logcat
Click to expand...
Click to collapse
Go to security and enable root !
Hope it helps ! Hit thanks
Sent from my HTC Explorer using xda premium
Re: [GUIDE]Port CM10/CM9/CM7/AOKP/Stock Based/MiUi ROM
Guys suggest me any rom to port for my device ! HTC explorer here
Sent from my HTC Explorer using xda app-developers app

[TUT] How to easily port CM7,CM9,CM10 Based ROMs to HTC Aria

Easiest and best way to port CM7,CM9,CM10 Based ROMs to HTC Aria/Intruder/Gratia
Code:
I do not guarantee any successful porting.
I am not responsible for [B]bricked devices, dead SD cards, or a broken device[/B].
[B]YOU[/B] are choosing to make these modifications,
and if you point the finger at me for messing up your device,
I will laugh at you.
->Copied from some xda thread.
*****
But a rom, no matter how bad should *not* do any physical non recoverable harm to your device,flashing a rom or restoring a nandroid backup via cwm *should* immediately fix any problems what so ever.
And I will try to help in any ways I can.​
I am NOT a developer, I can not code,compile,etc, I am only an android enthusiast with half a brain able to follow specific instructions.
This guide is actually somewhat a good combination of various "how to port roms"
guides found here on xda suited and very slightly modified for our beloved Aria.
Thanks to all of those threads and their writers.
Click to expand...
Click to collapse
Actual Tutorial starts here:
I will try to make this guide as straight forward as possible. ​
PORT ROM:
First you need to figure out what rom you are going to be porting.
For our Aria, The rom you want to port should belong to a device that has:
HTC brand (optional but recommended)
A ArmV6 CPU (VVVV important)
A HVGA Resolution (optional, any mdpi should do,if not just open the system apk files using 7zip and resize all the BIG images.)
The Rom needs to be:
CM7 BASED OR CM10 BASED OR CM9 BASED.
The full zip size less than 150MB(Recommended).
What Does Port Mean:
This simply refers to the rom you will be trying to port.
Recommended device to port from is the HTC Wildfire S a.k.a Marvel.
But any other device
BASE ROM:
What Does Based Mean:
It means that the rom should have similar sources and stuff,
Meaning you can only attempt to port a android 2.3 rom if you already have a 2.3 rom on the device.(In our case cm7).
So,
For porting 2.3 roms, chose cyanogenmod 7.2 as BASE.
For porting 4.0 roms, chose cyanogenmod 9 as BASE.
For porting 4.1 roms, chose cyanogenmod 10 as BASE.
ETC... I hope you get the point.
:fingers-crossed:
Thing you will need:
A good Zip extractor and compressor. (I use 7zip, its free. If you have winrar or something else,it will also do.)
Notepad++ (This thingy is awesome! And you need it for some stuff)
Android SDK(Not the whole thing, just adb zip from our sticky thread will do.)
Some Basic Android Knowledge, Root knowledge.
Mostly Common Sense.
Click to expand...
Click to collapse
Step 1:
Extract our device rom zip and name the folder AriaRom,
Extract our Port rom zip and name the folder PortRom.
Step 2:
Delete the following folders on the AriaRom/system folder:
App(You can keep some non conflicting indepent apps if you want)
Framework
Fonts
Media
Step 3:
Go to
Code:
PortRom folder/system
and copy:
App(You can keep some non conflicting indepent apps if you want)
Framework
Fonts
Media
and then paste them to AriaRom/system.
Step 4:
You need to open these two folders side by side(on windows, open both folders then right click on the task bar and click "Tile windows vertically").
The two Folders are:
Code:
[LIST]
[*]AriaRom/system/etc
[*]PortRom/system/etc
[/LIST]
In
Code:
etc/permission
folder copy all the permissions files in PortRom to your AriaROM folder except
Code:
platform
handheld_hardware
Then open init.d Folder in AriaRom and Delete Everything except
Code:
banner
and then copy all the files inside init.d folder of PortRom to init.d folder of AriaRom.
Step 5:
Now
Code:
AriaRom/system/buid.prop
and
PortRom/system/buid.prop
files using Notepad++
On AriaRom Build.prop make changes as you wish.
Code:
[LIST]
[*]ro.build.id=
[*]ro.build.display.id=
[*]ro.build.date=
[*]ro.modversion=
[/LIST]
Copy and replace these values from PortRom buildprop to Aria rom buildprop.
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
Also Copy anything you Find Extra and important-ish in ADDITIONAL BUILD PROPERTIES using common sense.(Not much major stuff, but if bootlooped, copy whole thingy.)
IMPORTANT Step of commons sense:
Open up both
Code:
META-INF/com/google/android/updater-script
using Notepad++.
Compare AriaRom AND PortRom line by line(on two tabs in notepad++ easily done).
Copy extra/additional lines from PortRom which are not present in AriaRom to aria roms updater script.
Step 6:
If You find any extra file or folder in system folder of PORTrom than copy them to your Ariarom system folder.
Finally, zip the
Code:
META-INF
system
boot.img
data(if exists).
folders/files togather and use "normal" compression if asked.
Name the zip to whatever you want, and walla you have successfully ported the rom!
:fingers-crossed:
Doing the above steps should land you a pretty solid rom, as solid as the base rom.
Still,Incase of problems:
If the ported rom does not boot:
Stuck at boot screen
Bootlooping
Then copy system/lib/
Code:
libandroid_runtime.so
libandroid_servers.so
libmedia_jni.so
files from PortRom to AriaRom system/lib.
It should boot, if it still doesnt, check the above steps and find out what you did wrong.
Common reasons could be:
Build.prop mess up
Updater Script mess up
Forgot to delete or copy file
After it boots,
Everything that worked on Base rom, should work on Ported.
Every problem on Base Rom will exist on Ported.
In case of root related problems(settings not being saved,system app FCs,etc), install a root app like titanium backup or something and check if it works,if it doesnt its surely root issue,just download and flash latest superuser zip.
If some FC,Port rom funciton not working,etc issues appear, you need to decompile framework-res.apk using apktool and change device specific xml files to ours.This is a part where I have the most trouble and suck at.
Just search xda for
How to Logcat,
Click to expand...
Click to collapse
this will help you to find the problems and search xda to solve them. Ask me if you want on this thread, & I will try to help, but I dont think I will be able to help much as I have very limited knowledge on compile De-compile stuff.
If someone is good at framework-res and framework decompile & recompile stuff, please help us.
Click to expand...
Click to collapse
Thanks for reading this,I hope you port over some awesome roms to our device.
:highfive:
I just tried to port the PACman ROM from Samsung Galaxy Ace to the Aria, but I am stuck at boot screen after following your tut, which is awesome by the way. Could you post a working build.prop and updater-script for this ROM? Maybe this will help me get it booting...
dansou901 said:
I just tried to port the PACman ROM from Samsung Galaxy Ace to the Aria, but I am stuck at boot screen after following your tut, which is awesome by the way. Could you post a working build.prop and updater-script for this ROM? Maybe this will help me get it booting...
Click to expand...
Click to collapse
That's an Armv7 device.
Still I'm gonna download it & try.
In the meantime take a look at bootclass path.
Why are SMARTphones soo... Freaking Dumb?
sifat3d said:
That's an Armv7 device.
Still I'm gonna download it & try.
In the meantime take a look at bootclass path.
Click to expand...
Click to collapse
I don't think so... the Samsung Galaxy Ace with device number S5830 should be Armv6, but in the Galaxy Ace Forums there is also a place for the Galaxy Ace II, which is Armv7. Maybe that's a bit confusing. But nims11 PAC-Man Rom is definitely for the Armv6 device.
hey man thnx for the tut but i tried porting the paranoid rom like you but i keep getting this error while flashing ( set_perm: some changes failed) i think it have something to do with the updater-script, could u upload the build.prop and the updater-script for me ? and btw why do we need the sdk ??
---------- Post added at 02:43 AM ---------- Previous post was at 02:03 AM ----------
actually now i tried not to change the updater-script and the rom flashed but stock at boot pleaaase help me i really want to try the paranoid rom (ive been trying to port the "pa_marvel-2.54-beta1-08NOV2012-164651" )
rami.ejle said:
hey man thnx for the tut but i tried porting the paranoid rom like you but i keep getting this error while flashing ( set_perm: some changes failed) i think it have something to do with the updater-script, could u upload the build.prop and the updater-script for me ? and btw why do we need the sdk ??
---------- Post added at 02:43 AM ---------- Previous post was at 02:03 AM ----------
actually now i tried not to change the updater-script and the rom flashed but stock at boot pleaaase help me i really want to try the paranoid rom (ive been trying to port the "pa_marvel-2.54-beta1-08NOV2012-164651" )
Click to expand...
Click to collapse
Here you go,
http://pastebin.com/62hbaQwL
on THAT ROM,
IF you follow the guide & use my posted script,
100% assurance rom will boot and work. except cm
The sdk is for getting the logcat when a problem occurs.
Why are SMARTphones soo... Freaking Dumb?
Nice tut very well done
XDA Moderator
dansou901 said:
I don't think so... the Samsung Galaxy Ace with device number S5830 should be Armv6, but in the Galaxy Ace Forums there is also a place for the Galaxy Ace II, which is Armv7. Maybe that's a bit confusing. But nims11 PAC-Man Rom is definitely for the Armv6 device.
Click to expand...
Click to collapse
In that case you'll need to unpack both boot.img aka the kernel , fix bootclass path in init.RC by replacing it with the value from port roms init.rc.
Ill try to port that rom soon and upload a fixed boot.img (if I can get it to boot),if you don't beat me to it. it looks cool.
Why are SMARTphones soo... Freaking Dumb?
Bootclasspath is the same on both roms. So there must be a mistake in updater-script and / or build.prop. I've just messed up my updater-script, I guess, so I'll make a new one and post it later together with the build.prop.
I got this pac rom booting & everything operational except per app dpi(exists in port rom).
This rom works with the guide.
http://forum.xda-developers.com/showthread.php?t=2118567
Why are SMARTphones soo... Freaking Dumb?
I'll try this and let you know if it worked.
Hi guys,
If you only want per app dpi,persistent apps,etc
Try this on winsuk bros cm10
http://forum.xda-developers.com/showthread.php?t=1574401
Its quite good.
...Devided by zero
dansou901 said:
I'll try this and let you know if it worked.
Click to expand...
Click to collapse
btw,
did it work?
...Devided by zero
Sadly, I didn't get any time to try so far. But on Sunday I lost my Gratia, so I won't continue this project; I've upgraded to the HTC Desire X.
dansou901 said:
Sadly, I didn't get any time to try so far. But on Sunday I lost my Gratia, so I won't continue this project; I've upgraded to the HTC Desire X.
Click to expand...
Click to collapse
That's a shame. Similar thing happened to me. I lost my Aria right before i had a chance to try this, and upgraded to the Nexus 4.
will this method work on cm10.1 and this http://forum.xda-developers.com/showthread.php?t=2297580 ??
Could work, just try... I would do it if I still had the phone...
dansou901 said:
Could work, just try... I would do it if I still had the phone...
Click to expand...
Click to collapse
rami.ejle said:
will this method work on cm10.1 and this http://forum.xda-developers.com/showthread.php?t=2297580 ??
Click to expand...
Click to collapse
It should pretty much work,
If it doesnt, just send me the
Updater script
Build.prop
files of BOTH roms, And I'll have a look.
I wouldve tried myself but my aria has no network and has random reboot issues due to falling hard.

[Tool] ROM Porter

Tool Aces Present
Rom-Porter
Disclaimer​
Code:
title disclaimer
echo.
Echo you and you alone are choosing to use this tool. So i am not responsible if anything happens to you or your phone due to it.
Echo.
Click to expand...
Click to collapse
Pre-Requisites​1. notepad++
2. Better if you know the manual steps.
Click to expand...
Click to collapse
Steps​1. Download the zip and extract it.
2. Read the help and pre requisites first.
3. Run the rom-porter.bat file
4. Start porting and follow instructions.
Click to expand...
Click to collapse
Features​• Pause and resume Porting.
• Manufacturer ROM Port.
• Lewa and Joy OS Porting.
• Fully automated.
• Build.prop and init.d tweaks.
• Update feature.
• Readable Log File.
• Many Fail safe's.
Click to expand...
Click to collapse
Faq​q. It gives x error
a. Give which step it is(No.), what error it gives. and most importantly attach a log using 'Pull Log File' Option.
q. it says findstr not recognized as an internal or external command
a. just close the tool and restart it.
q. it says xcopy not recognized as an internal or external command
a. just close the tool and restart it.
q. How can i add my own build.prop and init.d tweaks
a. for build.prop, copy the tweak in a txt file, give it a name without space and copy it to essentialsbtweak
for init.d, copy the header "#!/system/bin/sh" and then the tweak, give it a name without space, remove the file extension and copy it to essentialsitweak
Q. I want x feature.
A. Just reply here what you want, if its possible by me, I'll add it asap
Click to expand...
Click to collapse
Credits​Rishab.Raj37 for his amazing guide on Porting rom
GalaxyUser for his excellent guide on porting manufacturer ROMS
blindndumb for his great guide on Porting Lewa and Joy OS
po8pimp for new awesome theme and exe packing
Abhinav2 For new coding and testing
PluginSz For testing the tool
Click to expand...
Click to collapse
If you like this tool press the thanks button, and consider giving this thread a five star Rating
Oh and if you upload the rom on xda, do give me credits.​
XDA:DevDB Information
Rom Porter, Tool/Utility for the Android General
Contributors
mnishamk
Version Information
Status: Stable
Current Stable Version: 3.6
Stable Release Date: 2013-07-24
Current Beta Version: 3.7
Beta Release Date: 2014-09-18
Created 2014-10-23
Last Updated 2014-10-23
Downloads and Changelogs
Download
Head Over to the download section
changelog
Code:
[19.12.14]
v3.9
-> Created self-extraction tool
-> Added Custom theme options
-> Changed bootup animation
-> Thanks to po8pimp
[06.12.14]
v3.8
->Fixed find and findstr error
->Changed the update tool routine.
[18.09.14]
v3.7
->Now can port Kitkat roms. Added kitkat filesystem changes
[24.7.13]
v3.6
->fixed bug in manufacturer rom port
[2.7.13]
v3.5
-> Automated Changing EOL character.
-> finally FULLY Automated.
[17.6.13]
v3.3
-> Added Lewa and Joy OS Porting.
-> Changed the way the sequence is executed.
-> Extended help menu.
-> Changed the logic in some cases.
[6.4.13]
v3.1
-> HTC network auto select fix
[27.5.13]
v2.9
-> small changes in coding
[26.5.13]
v2.8
-> Supports Manufacturer Roms (Testing phase)
-> Squashed a few Bugs
[20.5.13]
v2.7
-> Hopefully, Patched Find and Findstr error for good.
-> Fixed a logical Error
-> Updated Logs.
[17.5.13]
v2.6
->added Log Feature.
[16.5.13]
v2.5
-> added update option
[16.5.13]
v2.4
-> added option to copy zip to sd card.
[15.5.13]
v2.3
-> added Init.d tweaks
[15.5.13]
v2.2
-> added build.prop tweaks.
[14.5.13]
V2.1
-> Modified coding to make version selection automated. Thanks to abhinav2
v2.0
-> supports 32 bit too.
[13.5..13]
v1.9
-> first release
"1. Download the zip and extract it. ..."
SO, where is the zip ???
Good work
Cheers,
AJ
Abhinav2 said:
Lol u again forgot the dl link
Well anyways awesome work as always.....
Cheers,
AJ
Click to expand...
Click to collapse
No I didn't. I was updating the post.
Regards
N
mnishamk said:
No I didn't. I was updating the post.
Regards
N
Click to expand...
Click to collapse
Sorry opened this page a bit earlier.....though commented late so at that time the link wasn't up Just refreshed the page and saw the link
Keep it up anyways :good:
Cheers,
AJ
version 2.2 released
now you can add build.prop tweaks too.
Your kidding!! Great idea, a porting utility tool..Hats off to you and everyone involved with development..
XT912 CDMA Pac Man 4.2.2
1droidmod said:
Your kidding!! Great idea, a porting utility tool..Hats off to you and everyone involved with development..
XT912 CDMA Pac Man 4.2.2
Click to expand...
Click to collapse
The idea was alread there. And the tool too
We only made it a lil more automated.
Regards
N
hey guys ,can i port a cm10 touchwiz rom to a cm10 rom for LG P700 ? ..
I don't think it can be used, coz when they are from different manufacturers, they'll need heavy framework modding etc which the tool does not do.
So its better to port from the sam manufacturer and a similar specs device.
Regards
N
i understand ,that was the real fun in all this porting thing ,i realy wanted a touchwiz inspired rom ! thanks a lot !
The tool won't help you with it coz each one would be different. There's a guide arounf here for porting manufacturer roms, try that
Regards
N
v2.3 released. supports init.d tweaks
Thanks ,maybe someone wil develope an automatic porter like this one for diferent manufactor devices..until then i'm going to search the manual way to port id! Cheers
Sent from my LG-P700 using xda app-developers app
keemo.rom said:
Thanks ,maybe someone wil develope an automatic porter like this one for diferent manufactor devices..until then i'm going to search the manual way to port id! Cheers
Sent from my LG-P700 using xda app-developers app
Click to expand...
Click to collapse
I'll try it, :thumbup:but if its too hard, I may abandon it.
Regards
N
mnishamk said:
I'll try it, :thumbup:but if its too hard, I may abandon it.
Regards
N
Click to expand...
Click to collapse
Thats great news ,i hope you will have great succes!!
Sent from my LG-P700 using xda app-developers app
keemo.rom said:
Thanks ,maybe someone wil develope an automatic porter like this one for diferent manufactor devices..until then i'm going to search the manual way to port id! Cheers
Sent from my LG-P700 using xda app-developers app
Click to expand...
Click to collapse
An automatic "porter" for different devices roms is kinda impossible as this software would be able to practise magic lol. This means it would download the related kernel sources, edit them and insert correct code, including proprietary device files, configure the kernel and compile it (besides of that it must grab the toolchain and set the PATHs, etc, etc..). Then it would decompile the roms framework (of course including full automatic smali magic ) detecting the correct requirements and edit that stuff before it compiles and signs it with system sign keys.. And last but not least it has to compile board related drivers (for kernel and rom) and bake them into the project. When finished all processes it builds a full working flashable rom zip for your device - and if you are nice it will also download the right Gapps and copy all of it to your SDcard
Sorry for sounding like an a**hole Just joking a bit.
The point is that a software like that would do all the work for devs and we all wouldn't have to work that much.. It would be nice, but it's just too much code, too complex for a software to do this. Porting a rom to another device cannot be done with prebuilt files usually. You need to work with the source and that's a lot of work. Except the devices are using almost the same board, chipset and CPU.
Besides of that: This is a nice tool! Thanks for your work, this will be helpful for beginners to perform some first steps! :good:
im trying to port axiom for the hd to the m im using dhackers pere aosp as the base for the m. everything extracts fine then starts the porting process then at the end it says THE SYSTEM CANNOT FIND THE FILE SPECIFIED THE FILENAME, DIRECTORY NAME, OR VOLUME LABEL SYNTAX IS INCORRECT. that is after desktop\romporter\temp\platform.xml 2 files moved any ideas?
By the end you mean which step? The end of extraction?
Regards
N

Categories

Resources