{guide}[how to] porting guide for aosp [how to]{guide}

cowsquad

Senior Member
Aug 31, 2009
1,345
320
83
Portland, Oregon
there's a joke behind it

If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader
I did everything you said last night over gtalk. Unfortunetely my rom stays on the M logo. What am I doing wrong?

To everyone:
I'm trying to port miuiandroid milestone to my droid one already running miui , but different version release. I know is possible, but the dev stopped porting this rom over. What any other files do I need to copy from my base rom to my port? I already copied: boot.img, sensor light, gps and sensor; also - system/lib/module/all files in there.
What am I missing? And thank you for any help :)
Sent from my Droid using Tapatalk
 
Last edited:

TheArc

Recognized Themer
Jan 1, 2012
2,511
2,121
0
23
Auckland City
www.ascendapps.tk
I would say I’m pretty good at porting AOSP roms, can do them before my cig is half way done.
Well this guide will help out with a good amount of it, ill try to cover much as I possibly can. Ill post links to the needed programs.

android kitchen: http://forum.xda-developers.com/showthread.php?t=633246

notepad++ http://notepad-plus-plus.org/download/v5.9.8.html

Step 1. Well find the rom you want to port over,duh.

Step 2. Make sure you have the android kitchen and notepad++, on your computer an setup correctly.

Step 3. Put the rom your porting in the original update folder(ya know the one for the kitchen….)

Step 4. Setup a working folder, itll ask you the change the updater-script DON’T DO ANYTHING DO IT, leave it how it is!

Step 5. Find another base rom for your phone, preferably cm7, do the same thing your did to your port. Fyi: hope you labeled each working folder. an dont delete the working folder you just created,select yes to move it

Step 6. Copy the boot.img from the cm7 rom over to your port.

Step 7. Find the build.prop in your port. Right click on it, select “edit with notepad++”

Here’s where you need to read everything as I put it, if you mess up, well that’s not my problem .

Step 8. Find the “ro.product.device” “ro.product.board” “ro.product.product”. change those to your device.
If you cant remember the exact name of your device,look at the cm7 build.prop for reference. When you done that save it.

Step 9. Navigate to “META-INF\com\google\android” find the updater-script. Right click on it, edit with notepad++. (btw always use that program when editing stuff with android,soo much easier)

Step 10. Edit the device, board an product to match your device. If one of them is missing, don’t worry bout it. Then save it when your done.

Step 11. Navigate to system/lib/hw. Do that on both your port an cm7 rom. Copy the sensor, lights an gps from cm7 over to your port. Optional: delete the ones from the original device. edit: another part i forgot to add take the modules file an switch them over also

Step 12. Open the android kitchen back up again. now you can delete the cm7 working folder
Type 1,find your port,hit enter,2.
Type 99
Then hit 1.
Hit enter again
Sign the rom
You can either name the rom or not. Id suggest you so you don’t get confused by any other files.

If you followed this correctly, your rom should boot with no problem. If you get error 7 or 6, look below.


If you get error 7 in recovery, you didn’t edit your build.prop correctly. Go back an check it, find your mistake then, re-run it in the kitchen

If you get error 6 in recovery,you need to check your updater-script, you probably didn’t edit that correctly. Go find your mistake in it an fix it, then re-run it in the kitchen.

Hopefully this guide will help you out with your porting need, if you have any other questions just pm me an Ill try to help you out. Or you could google your problem first too.


if you think i missed anything,let me an ill add it.

an if a mod thinks this should be moved or as a sticky,well who am i to stop him.

If you use this guide to port, give some credit, so other people will know also. :) thanks
So can I port ICS AOSP roms and use cm7 as a base port?
 

harry47

Senior Member
Feb 5, 2011
185
23
0
Chennai
I did wat all u posted.. And it booted too :) bt nothing after tat.. Any ideas?? I tried porting joyos from an ldpi device.. Mine is x10mini which is also an ldpi device..
 

harry47

Senior Member
Feb 5, 2011
185
23
0
Chennai
Ya it got booted and boot animation was on.. I waited for around 15-20 min.. It vibrated as it does when it is switching to homescreen.. But still didnt display anytng other than the boot animation..
 

The Archangel

Senior Member
Sep 2, 2010
6,192
3,716
0
Virginia beach
Ya it got booted and boot animation was on.. I waited for around 15-20 min.. It vibrated as it does when it is switching to homescreen.. But still didnt display anytng other than the boot animation..
Did you get any errors in recovery

If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader
 

harry47

Senior Member
Feb 5, 2011
185
23
0
Chennai
in recovery "write_raw image("/temp/boot.img","boot")
status 7

---------- Post added at 07:15 AM ---------- Previous post was at 07:13 AM ----------

My device x10 mini uses naA kernel 09 which is used for running cm7.1.. Its a custom kernel.. Bt the rom which im porting joyos runs on its stock.. How do i port from my custom kernel.. I replaced the boot.img from the custom kernel..

What should i do now??
 

harry47

Senior Member
Feb 5, 2011
185
23
0
Chennai
Can i replace the build.prop from my base rom?? Does it work tat way??

---------- Post added at 07:19 AM ---------- Previous post was at 07:18 AM ----------

Nope.. Status 7 shows build.prop problem right?? can i replace mine??

Or is it a kernel problem??
 

The Archangel

Senior Member
Sep 2, 2010
6,192
3,716
0
Virginia beach
Can i replace the build.prop from my base rom?? Does it work tat way??

---------- Post added at 07:19 AM ---------- Previous post was at 07:18 AM ----------

Nope.. Status 7 shows build.prop problem right?? can i replace mine??

Or is it a kernel problem??
normally it's build prop edit

If I helped, give thanks, if you please.
........Death before dishonor........
Team inferno
Leader
 

cowsquad

Senior Member
Aug 31, 2009
1,345
320
83
Portland, Oregon
Can i replace the build.prop from my base rom?? Does it work tat way??

---------- Post added at 07:19 AM ---------- Previous post was at 07:18 AM ----------

Nope.. Status 7 shows build.prop problem right?? can i replace mine??

Or is it a kernel problem??
Is your phone ldhp and ur base too?

Sent from my Droid using Tapatalk 2
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone