[Q] So I want to port a rom...... - Hero CDMA Q&A, Help & Troubleshooting

What is porting a rom? I think it is just taking a rom from different phone and making it work on another device....is that right?
If that is right I want to port a rom or roms from the Nexus One to the HTC Hero CDMA.
But can anyone list what tools and knowledge I will need? I'm running windows 7. So any programs or books I need to read can someone give links to information about the book, or links to download/buy the program that I'll need to get started on porting roms to our HTC Hero CDMA.
Also can someone tell me the pros and cons of porting roms as well?
Thanks, I can't wait to get started on this

Try using the ultimate theme injector is what I've been using
Sent from my DROIDX using XDA App

If you really want to get into it I suggest running a Linux distro. I run ubuntu 10.04. Haven't had windows on my computer since August of last year. Took a little while to get use to, but I now like it better. Also gives you the ability to get repos, compile Android and kernels, and much more.
Depending on what you are porting it might require new drivers, xml edits and resizing, the theme injector will only do so much. I think it will only replace and resize images.
Sent from my dual-booted liquidsense 2.1

spleef said:
Try using the ultimate theme injector is what I've been using
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
so i use this for resizing/replacing images.....
unCoRrUpTeD said:
If you really want to get into it I suggest running a Linux distro. I run ubuntu 10.04. Haven't had windows on my computer since August of last year. Took a little while to get use to, but I now like it better. Also gives you the ability to get repos, compile Android and kernels, and much more.
Depending on what you are porting it might require new drivers, xml edits and resizing, the theme injector will only do so much. I think it will only replace and resize images.
Sent from my dual-booted liquidsense 2.1
Click to expand...
Click to collapse
and then you say use my linux distro for everything else.....but where are the links tutorials/books i need to read/tools i'll need to get started on the rest of the stuff for porting roms?
thanks for helping btw

Have you built any roms yet? I'd suggest getting a kitchen and playing around with a known good rom - get used to what's there, what you can change, things like that. I've been playing around with dsixda's HTC Android Kitchen (on WinXP using Cygwin) lately with a few ROMs (my stock rom, liquid sense, aosp, and CM6). That's the best way to learn IMO.

TJinWV said:
Have you built any roms yet? I'd suggest getting a kitchen and playing around with a known good rom - get used to what's there, what you can change, things like that. I've been playing around with dsixda's HTC Android Kitchen (on WinXP using Cygwin) lately with a few ROMs (my stock rom, liquid sense, aosp, and CM6). That's the best way to learn IMO.
Click to expand...
Click to collapse
OOOOOOOOOH!!!!!11
that sounds like that might actually work....once i get a kitchen set up on linux mint. play around with a few different roms and see what i'm able to change, find out what it is that i'm changing and what changing it does.....AAAAHHH YOU'RE A GENIUS!
That sounds like that will work for learning to begin to develope beginner roms, and improve roms.
But now that you've got me set for like the first few months of learning. I don't want to post another thread about porting roms, so anyone know any information on porting roms? I know the user above said use a theme injector but that is for resizing and editing the images of the rom im porting. There has to be more to porting a rom than just resizing images. I'm trying to get all my information ahead of time so that i can just jump into developing with little to no questions for our device

kifno, that kitchen also has "experimental" porting tools in the Advanced Menu. I meant to say that in my original post.

TJinWV said:
kifno, that kitchen also has "experimental" porting tools in the Advanced Menu. I meant to say that in my original post.
Click to expand...
Click to collapse
Thanks for letting me know. Now once I begin porting roms I'll have at least a start. Thanks everyone
Sent from my DROIDX using XDA App

kifno said:
Thanks for letting me know. Now once I begin porting roms I'll have at least a start. Thanks everyone
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
If your open to Suggestions... Try going to theunlockr.com, and Select the "How to's" Then Look for the Rom Development section... Know what, I'll do it for you!
Hold on!!
Ok here you go:
Watch these videos, see if they Help you out a bit!
http://theunlockr.com/category/howt...-development-how-tos/rom-development-how-tos/
Sent from my Hero using XDA App

Related

New developer needs your input!

I've decided to move from windows developing ROM's to android. I have the base rom's and radio's but I'm looking for anything you guys want?
I have a legend and will be souly developing for it so I need to know what your looking for.
Any feedback would be great and I hope to have first build online in the next few weeks!
Thanks.
For example: it´s would be nice to have another froyo based rom with some of the next features:
- jit activated
- perflock disabled
- one with sense, another without it
- ¿overclocked kernel?
- latest drivers from official htc roms
Maybe you can take ali ba or kyosa roms for using like base rom. Or you cant take the official rom that HTC says is going to be available this month.
You could try to make your froyo rom based on Cyanogen mod 6. Or perhapes you could make sensless(without htc sens, and other usless crap) rom based on latest 2.10.xxx rom. Wich would include ADW launcher and some other cupcakes
I would REALLY love an andoird 2.2 rom with FM radio (and JIT enabled)
grlayouts - welcome! Its great to have another developer on board for the Legend
Personally I think the real demand will probably arrive when the Legend officially gets 2.2, I'm sure many people will want a non-sense/vanilla ROM (I'm not sure how much CM6 differs from pure vanilla).
For inspiration it may be worth looking at some of the more popular ROMs in the Desire subforum, too.
Also one big thing we're missing on the Legend thus far is the ability to apply themes.. am aware that's largely down to not having the required level of root access but I believe there has been recent progress on that front...
Enough from me...! I'm sure the Legend community will be grateful for any of your releases...look forward to seeing your work!
Good luck!
Sent from my Legend using XDA App
I would love a themeable rom, or completely blank froyo and yes it really is good to see a new developer, the more the merrier
Sent from my Legend using XDA App
Imagine a dog with its salivating tongue hanging out.
We are all waiting for THE FROYO. So, anything based on 2.2 please, thanks.
A rom compatible with oc kernels released or maybe you could release a few of your own.
I dont mind HTC Sense. A few bug changes
Welcome to the community. We have many children here
grlayouts said:
I've decided to move from windows developing ROM's to android. I have the base rom's and radio's but I'm looking for anything you guys want?
I have a legend and will be souly developing for it so I need to know what your looking for.
Any feedback would be great and I hope to have first build online in the next few weeks!
Thanks.
Click to expand...
Click to collapse
great welcome
not a rom but a nice start is
http://forum.xda-developers.com/showthread.php?t=772795&page=32
there are many people that are looking for this on legend.
For a rom a nice 2.2 without fancy stuff,very fast and stable oc kernel etc.
Why not try and join the villainrom guys and create a legend version of villainrom. Looking forward to a 2.2 Rom with working radio.
Sent from my HTC Legend using XDA App
remeez said:
Why not try and join the villainrom guys and create a legend version of villainrom. Looking forward to a 2.2 Rom with working radio.
Sent from my HTC Legend using XDA App
Click to expand...
Click to collapse
This would be perfect!
Wifi tether?
remeez said:
Why not try and join the villainrom guys and create a legend version of villainrom. Looking forward to a 2.2 Rom with working radio.
Sent from my HTC Legend using XDA App
Click to expand...
Click to collapse
I second this.
A Froyo with Sense!!!
warriorofice said:
A Froyo with Sense!!!
Click to expand...
Click to collapse
No one excpet htc will provide you this...
The Desire device had it before htc released.
Why Legend not?
Thanks to Ali baba for his source on irc I will probably be using that! I have a second build installed with the nexus dialer and contacts and I'll be working on the look now. Keep the input coming.
I will also be looking into villain ROM and seeing what they offer.
grlayouts said:
I've decided to move from windows developing ROM's to android. I have the base rom's and radio's but I'm looking for anything you guys want?
I have a legend and will be souly developing for it so I need to know what your looking for.
Any feedback would be great and I hope to have first build online in the next few weeks!
Thanks.
Click to expand...
Click to collapse
It would be great to have an opengl accelerated internet browser
Sent from my HTC Legend using Tapatalk
l2obban said:
I second this.
Click to expand...
Click to collapse
Yeah, considering the guys at villainrom have used a lot of legend ports I'm surprised there hasn't been anything for us
Surely if we start with a hero froyo ROM we could work backwards. Not sure if they have a sense ROM though?
Had a quick go at trying to port back to legend, but keep always get errors on the install. Taking ages atm cus I'm just changing what the install error complains about & then trying again.
Anyone no any specifics on what needs changing to port?
warriorofice said:
The Desire device had it before htc released.
Why Legend not?
Click to expand...
Click to collapse
Because the Desire developers figured out how to configure and build a device target to travel forward in spacetime.
The other explanation would be that there was a test build that leaked and spread really fast.
I'm starting to believe that HTC will not release an official 2.2 ROM for the Legend. It did not sell that well and there's no money to be made of that upgrade.
I think Froyo ROM development would be most appriciated by many enthusiasts.
But great builds of htcs official and enclair builds are always liked and used by many users ;-)
Also welcome to the legendary boards. Good pick. I came from wm on the Elf myself.

[Question] Gingerbread on Tattoo?

Hey guys,
Now that Gingerbread is out, I think most questions on people's minds are: Can it happen? What's needed?
Sent from my Tattoo using XDA App
I'm trying to do something about it stay tuned...
i just saw a youtube video about a wildfire running an early built,
so i thinks its not a matter of resolution.
I just hope the CM can be work on ROM.
We need AOSP sources before it can be built properly. The ones on Wildfire etc are just hacked together from an emulator image, and they run quite slowly. For the Tattoo, I'm a bit uncertain if it can be used with kernel 2.6.29, or if 2.6.32 or higher is required.
It will eventually - Froyo took a while but is here. But I can't wait for the new UI and it will be speedy if Google are telling the truth
I was WAITING for someone to ask this question
Anyway, fingers crossed
It has to be possible: http://androinica.com/2010/12/07/go...droinica+(Androinica+-++A+Google+Android+Blog)
I guess gingerbread will take some time to come on tattoo, but there is a full gingerbread theme for tattoo available here.
aliwaqas said:
I guess gingerbread will take some time to come on tattoo, but there is a full gingerbread theme for tattoo available here.
Click to expand...
Click to collapse
I guess it will be pretty soon, because Gingerbread AOSP is already available to create ROMs like fyodor's or spartm's, and Cyanogen is working on modded Gingerbread too already
gingerbread on tattoo would be GREAT
Sent from my HTC Tattoo using XDA App
@those who try to port 2.3 for tattoo: If you're successfull, plz change the icon for mobile data... it's just too tiny for our small screen!
the source code for the nexus one is out, i dont know how difficult it is to port it to another device but i hope someone tries it already
I'm trying to compile gingerbread, if somebody(or more) wants to collaborate making vendor files, we can put up a github start a collaborate rom for our tattoo
I've triend changed fyodor files, but for now i'm stuck (something wrong with libstagefright)
Somebody?
Aaroneke said:
I'm trying to compile gingerbread, if somebody(or more) wants to collaborate making vendor files, we can put up a github start a collaborate rom for our tattoo
I've triend changed fyodor files, but for now i'm stuck (something wrong with libstagefright)
Somebody?
Click to expand...
Click to collapse
Stuck when compiling or when booting?
Compiling i've managed this problem, but i changed some stuff and now i got it again, i'm trying to make new vendor files step by step using fyodor,..etc (and google ref) files just for reference, but it can take a while(if i'll get it working..)

What should I do?

I want to develope my own kernels and roms but I don't know the road to take to get there. I'm working in some new things (editing and creating system files to boost performance, etc) but What and where should I start learning to be able to make my own roms and kernels for the hero community?
Also which is better liquids 2.1sense rom or nfinites stock 2.2 rom? Pros and cons thank you
Sent from my DROIDX using XDA App
Well thats gonna be a matter of opinion.Liquids are optimized and most of the bloat and google stuff removed. Nfinite's not optimized,has senseand sprint apps.Both have odex and deodex versions. I prefer both odex versions of the .2 roms not big on theming ,also the odex ver. boot faster.Deca's kernels are compatable with all.If anyone can add anything that I missed,jump in get your feet wet and add to my observations based
kifno said:
I want to develope my own kernels and roms but I don't know the road to take to get there. I'm working in some new things (editing and creating system files to boost performance, etc) but What and where should I start learning to be able to make my own roms and kernels for the hero community?
Also which is better liquids 2.1sense tom or nfinites stock 2.2 rom? Pros and cons thank you
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
Sent FromMy Pedal-to-the Metal Hero
I think what a lot of guys do is take a rom that's already made, strip it down, and then reassemble it according to how they want
That's essentially what liquid did. So I would suggest to learn the layout and how stuff is put together you do that for your first time.
I'm no dev tho, and really have no idea how to do that kind of detailed stuff. Its just what I've seen others here do and be successful and its what I would do if I could. Good luck.
Sent from my 2.2 Hero
MrDowntown12 said:
I think what a lot of guys do is take a rom that's already made, strip it down, and then reassemble it according to how they want
That's essentially what liquid did. So I would suggest to learn the layout and how stuff is put together you do that for your first time.
I'm no dev tho, and really have no idea how to do that kind of detailed stuff. Its just what I've seen others here do and be successful and its what I would do if I could. Good luck.
Sent from my 2.2 Hero
Click to expand...
Click to collapse
I really needed a starting point thanks a lot. Now I get to doing my research and hopefully and soon release my own rom
Check this post out by Decad3nce -> [RESOURCE] ROM Cooking
That's where I started for reading on development, editing, etc.
Currently MIA for a few weeks - Sent from my HERO200 using XDA App
kyouko said:
Check this post out by Decad3nce -> [RESOURCE] ROM Cooking
That's where I started for reading on development, editing, etc.
Currently MIA for a few weeks - Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Developing Sense ROM

Hi guys!
Since two days I'm trying to create a ROM based on HTC Sense, porting from HTC Desire to our Nexus One using, as a base, the RCADSmixHD ROM.
I've been able to complete the entire package .zip and installing succesfully, BUT at reboot I'm stuck at the Nexus logo...
Do you think it's a kernel-related issue?
I really don't have any other ideas...
EDIT: I'd also like to know how to develop/modify a kernel for our Nexus One, but based on HTC roms... Someone has guides/links?
Try to Flash this Kernel: 2.6.35.6-eViL--10-7--1-wmcfg by eViL D:
You can find dl link here : http://forum.xda-developers.com/showpost.php?p=16995049&postcount=2
I had problems with the kernel include in RCADS on my N1
Thanks but no changes here... BTW the kernel included in RCADS rom works with my Nexus.. But here in this new ROM that I'm trying to develop I don't know what's wrong...
My guess there's something wrong with the ROM itself you probably have a few lines of code somewhere that are not working right. Were you able to compile the code on your computer?
Well, actually I'm trying to port a Sense ROM from HTC Desire with 250mb fit into /system/... I think that's the problem because my Nexus One could have bad blocks and/or less space into /system/, so this ROM wouldn't fit. I think so.
Regarding the code, I haven't written any kind of code, apart from looking at updater-script to be ok... Other suggestions? Thanks anyway, much appreciated
Now I'm trying to port a different ROM, the Desire S Gingerbread 2.3.5 with Sense 3.0!
But after replacing many folders and files from a Sense Rom of the Nexus One and the target Sense Rom that I'm developing, I have replaced boot.img and edited the updater-script properly (I think).
After installation, it's stuck at the Nexus logo... always!
What's wrong????????
Look at your logcat.
And at your /proc/kmsg.
If you don't know what these 2 mean - read up on those, use some googling.
If you can't - I believe you won't be able to develop anything worthy, or anything at all.
Moreover, Nexus has 145MB on /system partition. You need to utilize SD-EXT partition and symlink parts of the ROM to make it fit.
If I'm speaking Chinese and you can't figure it out - read the previous paragraph
From your posts I can't detrmine if you are developing or just trying to flash the rom to your phone, since you haven't done any coding. Am I misunderstanding?
rugmankc said:
From your posts I can't detrmine if you are developing or just trying to flash the rom to your phone, since you haven't done any coding. Am I misunderstanding?
Click to expand...
Click to collapse
You're right, because I'm not coding for a completely new ROM..
I'm just trying to "assemble" different pieces of ROMs together, a porting!
The only thing to "code" is the updater-script (or update-script)...
I have some errors there and I can't really determine why certain things goes wrong.. for now I don't have full knowledge of system partitions of Android.
And now I don't have enough time to fully explore this complex world
I have just tried for a couple of days...
Iperzampem0 said:
You're right, because I'm not coding for a completely new ROM..
I'm just trying to "assemble" different pieces of ROMs together, a porting!
The only thing to "code" is the updater-script (or update-script)...
I have some errors there and I can't really determine why certain things goes wrong.. for now I don't have full knowledge of system partitions of Android.
And now I don't have enough time to fully explore this complex world
I have just tried for a couple of days...
Click to expand...
Click to collapse
What did you add to the updater-script? And which folders specifically did you replace and change? And did you use a rooted ROM or the OTA one for the desire?
@Ace42:
Hi, I had used a rooted ROM from the Desire thread and I have followed this pretty useful guide which illustrates how to port Sense Roms:
http://forum.xda-developers.com/showthread.php?t=1222746
I have also had a look at almost all the files into each folders to see if there was differences in the code between the 2 roms..!
BTW the problem is in the updater-script...
For example I'm not able to mount "sd-ext", which is one of the most important steps to do for the Rom to being able to run into the device.
Look at that link properly, porting sense to OTHER SENSE DEVICES.
N1 isn't a sense device.
First, porting is more than replacing your boot.img and changing your update-script.
Like the other user said, you need to symlink files to your SD card cause N1 just isn't big enough.
Second, you're taking roms from other devices, most probably you'd have to re-write or mod the drivers.
Third, Porting just isn't that easy.
@illuminarias:
-> I know that, and in fact N1 becomes a Sense device when it has a Sense rom already installed... so it can be compared with other Sense devices.
-> I also know that we must symlink files, and you do that by adding lines of code into the updater-script (or update-script)!
-> If no one starts from something, how do you think that development for N1 can continue??
Iperzampem0 said:
@illuminarias:
-> I know that, and in fact N1 becomes a Sense device when it has a Sense rom already installed... so it can be compared with other Sense devices.
-> I also know that we must symlink files, and you do that by adding lines of code into the updater-script (or update-script)!
-> If no one starts from something, how do you think that development for N1 can continue??
Click to expand...
Click to collapse
The n1 also runs miui, is comparable to the m1? No.
Sent from my HTC Sensation Z710e using xda premium
illuminarias said:
The n1 also runs miui, is comparable to the m1? No.
Sent from my HTC Sensation Z710e using xda premium
Click to expand...
Click to collapse
I'm sorry but personally I love HTC Sense, not a-bad-copy-of-iPhone such as MIUI.
And since now I don't have money to change the device, I'll stick with this for other time.
Cheers
Iperzampem0 said:
I'm sorry but personally I love HTC Sense, not a-bad-copy-of-iPhone such as MIUI.
And since now I don't have money to change the device, I'll stick with this for other time.
Cheers
Click to expand...
Click to collapse
Yes, the same for me. I Love my nexus one with sense. Currently i also working on a gb sense rom for my nexus. Update Script is done and system should fit now with 151mb into the nexus rom. I ll will try to install & boot it at the weekend. Base was the currrent 2.3.3 Desire Release... Hopefully it fits into the small system and boots , to get logcats to work with...
If someone want to help & try, please contact me. I can upload the rom then to test. Currently i don´t have a lot of time , maybe together we get a working release...
@Deep-Knight:
Yep, I was working yesterday evening with the official Desire gingerbread update from HTC, but, as always, I'm stuck at the Nexus logo, after the installation is done... :/
I think I'm doing something wrong with system partition.. I know that our N1 can handle only 150mb for /system...
But I must admit that I'm using almost the same updater-script and boot.img as the N1Sensation v0.5 rom or RCADSmixHD rom..
Deep-Knight said:
Yes, the same for me. I Love my nexus one with sense. Currently i also working on a gb sense rom for my nexus. Update Script is done and system should fit now with 151mb into the nexus rom. I ll will try to install & boot it at the weekend. Base was the currrent 2.3.3 Desire Release... Hopefully it fits into the small system and boots , to get logcats to work with...
If someone want to help & try, please contact me. I can upload the rom then to test. Currently i don´t have a lot of time , maybe together we get a working release...
Click to expand...
Click to collapse
Just make a thread and upload your beta version, theres a plenty of people here able to test and help.
Thank you Menelkir for your interest!
But first I'll have to create something useful.. Maybe later on I'll create a new thread..
Till now I'm using some HTC Desire's ROM from the dedicated section here at XDA.
Stay tuned guys
As always graphical glithces will not be solved, until HTC releases Desire's Source Code..
The code is released already.
Unfortunately, the real trouble with porting ROMs is fixing the things that don't work - which will include trackball, hotspot etc - and this is the part where most of ROMs fail, because very few developers are skilled enough for that.

Anybody willing to guide a newbie?

Hi everyone!
I'm looking to become a future dev of the Samsung Captivate Glide, but as we're awaiting the official ICS from AT&T the forum right now is pretty dead. We have a project going but nobody to guide us, and we wish to compile CM9 or AOSP ICS. Would anyone take me in and teach me the basics of ROMing? I would greatly appreciate it! I have a Mac and Windows, I'm not sure if Linux is required :|
~Aquethys
the rom is the least of the worries to get dev going on your phone, getting the kernel going is the hard part. does your phone have the source code released?
I don't believe so, people in our ics port thread are saying we don't have a working ics kernel. We do have a gingerbread kernel though... :/
How would I start?
Sent from my SAMSUNG-SGH-I927R using xda premium
well you take parts from the GB kernel and apply it to parts from the AOSP kernel, and troubleshoot until it boots. then you troubleshoot all the other issues, there will be issues, then you can start doing fancy things like add cwm. then tweak the kernel....
start reading on kernels, ramdisk, rils, libs, and drivers, linux, compiling, AOSP, github repositories.
you might be ready to take on this task in 6 months.... minimum
dont take that as snooty, ive been on here over a year, and know jack squat about half the things i just told you to study. though i have no desire to build kernels myself. there is lots of great info scattered all over xda. but you will need an experienced dev, to port ICS. you need to know basic kernel modification stuff before trying to do something as big as porting a new android version from out your but.
automated compiling isnt as automated as it sounds.
Alright. What programs will I need to begin with? Hopefully an experienced dev can guide me, I'm not too good @ following guides/tutorials but I'll try my best!
Sent from my SAMSUNG-SGH-I927R using xda premium
EDIT: Made a dropbox account, hopefully you could guide me through the basics?
So, is this the source code for SGH-I927 you were talking about? I downloaded it, what do I do with it? Is it different for ICS and GB?

Categories

Resources