How to build a new ROM for Nexus One - Nexus One Q&A, Help & Troubleshooting

Hi all,
I am a newbie here and looking for good references on how to build a customized ROM for Nexus One.
From this forum and related sites, I've already known the following things:
- How to flash ROM using fastboot and bootloader.
- How to download and compile Android source code from source.android.com . By "compile", I meant successfully run "make" from downloaded source code.
My questions are:
- Where are the image files I can flash to my N1?
- How can I customize a built-in application, say Contacts, and include the modification into compiled images?
- What are the difference between system image and userdata image? What packages is included on which image?
I am sorry if these questions are already posted elsewhere. I tried to search around the forum but didn't find answers to my questions.
Thanks in advance!

reddevil00 said:
Hi all,
I am a newbie here and looking for good references on how to build a customized ROM for Nexus One.
From this forum and related sites, I've already known the following things:
- How to flash ROM using fastboot and bootloader.
- How to download and compile Android source code from source.android.com . By "compile", I meant successfully run "make" from downloaded source code.
My questions are:
- Where are the image files I can flash to my N1?
- How can I customize a built-in application, say Contacts, and include the modification into compiled images?
- What are the difference between system image and userdata image? What packages is included on which image?
I am sorry if these questions are already posted elsewhere. I tried to search around the forum but didn't find answers to my questions.
Thanks in advance!
Click to expand...
Click to collapse
I'm no expert but this might help you http://developer.android.com/guide/basics/what-is-android.html

yes, I know that link. But it doesn't have answers to my questions.

Related

New to Android and need some help please...

Hi there, am a newbie to android for months, and I was thinking to start to mod things in the android rom, I've downloaded some sources from the Github, which those sources are in .java format, can anyone guide me on how to put those edited .java into my android device in order for my mod to work?
Thanks a million...
Kiay
Are you real?
You want to mod things, but you don't know what is done with source code?
I think compiling is one of the first things people learn when programming...
Download Android SDK from the net and suit yourself.
kiay said:
Hi there, am a newbie to android for months, and I was thinking to start to mod things in the android rom, I've downloaded some sources from the Github, which those sources are in .java format, can anyone guide me on how to put those edited .java into my android device in order for my mod to work?
Thanks a million...
Kiay
Click to expand...
Click to collapse
get Eclipse, and the Android SDK, then put your code in eclipse and compile it.
Jack_R1 said:
Are you real?
You want to mod things, but you don't know what is done with source code?
I think compiling is one of the first things people learn when programming...
Download Android SDK from the net and suit yourself.
Click to expand...
Click to collapse
nmesisca said:
get Eclipse, and the Android SDK, then put your code in eclipse and compile it.
Click to expand...
Click to collapse
yes i've downloaded all those needed software, and gone through the Hello Android tutorial on the net, but as i stated above, i've no idea how to put those sources that i edited back into my device, and the sources that i m saying is those where i downloaded from the github, edited, but no idea how to put back in...
You don't put sources back, you compile them to applications and change the ones in your system for the updated ones.
Look up some more tutorials on the net, or go to "generic android development" section in the forum and look there, there are some posts by people that started to learn how to develop on Android.

Why no Sticky? Need help rooting my phone

Hi There!
I believe that in order to load these ROMs in this thread, you need to "root" the phone, but I don't see a sticky that explains how to do it?
Also is it like with Windows Mobile phones that you need a separate radio rom to the OS ROM?
Thanks in advance for any advice?
I take it the official update for Froyo for the i9000 isn't released yet? Is this something that happens automatically over the air or you need to initiate it?
Why so sucky thread title?
What do you mean? No roms in this thread ;p
Btw most ROMs in this subforum are already rooted and while ur current ROM is overwritten (being either rooted or not) in the flashing process... Ur device becomes rooted after flashing most of them. For more detailed information go to ROM's threads.
Root is kernel-related thing, so I dont get ur point.
xan said:
Why so sucky thread title?
What do you mean? No roms in this thread ;p
Btw most ROMs in this subforum are already rooted and while ur current ROM is overwritten (being either rooted or not) in the flashing process... Ur device becomes rooted after flashing most of them. For more detailed information go to ROM's threads.
Root is kernel-related thing, so I dont get ur point.
Click to expand...
Click to collapse
Hi There!
I may be using the wrong terminology, I am looking for flash proedures for the ROM's in this forum. I thought the process of applying those roms required you to root the phone before use (like hardspl for winmo roms).
I am looking for the step by step guide to applying the ROMS's listed here?
Refer to each rom's thread.
Full stock leaked firmwares come in .tar packages, flashed by Odin.
Mods and custom roms might be flashed by Odin, or update.zip method.
I believe there was some BIG FAT FAQ in this subforum?
// oh its in general : http://forum.xda-developers.com/showthread.php?t=723596
You forgot to read the stickies... There's this one: STOP!! Before You Post, Read This NOW!! and in that you see this:
General - general technical discussion items, news, anything else that does not fit into the other fora categories.
Q&A (Questions and Answers) - all questions, irrespective of type, get posted in here whether they be theme related, accessory related, technical, etc.
Accessories - any items to do with components and/or accessories relating to your device.
Rom Development - only meant for very advanced technical discussion directly related to ROM development activity and the delivery of actual ROMs and ROM components ONLY. Nothing else goes in here.
Themes & Apps - anything to do directly with the development of themes and/or applications. Nothing else goes in here.
Click to expand...
Click to collapse
Now you see the general section? If you go there you'll find this sticky: [REF] BIG FAQ! {Flash/Root HOWTO} {ADB&Tutorials} {T&T} {FW-Guide} [MUST READ!] Which has everything you need.
Thanks. To be honest it makes no sense to me to have something about flashing ROMS in the general forum, at a minimum I think it should be in both places.

Can any one give a ROM cookiing tute pls

hi
i had a Samsung galaxy 3 which is used by my wife now that i got the Mi 410
i have also been a very active member of the forum
u see in this forum their are a few rom cooking tutorials which has created many rom cooks and thus many roms for us to use
I humbly request on the guys with knowledge on the same to provide a tutorial on how to cook Roms for our great phone so we could have much more development for our phone for example see below SG3 development forum and ud see what i mean
see this link : http://forum.xda-developers.com/forumdisplay.php?f=868
link 2 : http://forum.xda-developers.com/showthread.php?t=1046306
link 3 : http://forum.xda-developers.com/showthread.php?t=1049846
link 4 : http://forum.xda-developers.com/showthread.php?t=1058699
because of the above threads their are so many new cooks roms in the SG3 forum
you might ask : why not me
because i dont have the knowledge on the same and cooking seems to be too confusing for my limited tech knowledge
haree said:
hi
i had a Samsung galaxy 3 which is used by my wife now that i got the Mi 410
i have also been a very active member of the forum
u see in this forum their are a few rom cooking tutorials which has created many rom cooks and thus many roms for us to use
I humbly request on the guys with knowledge on the same to provide a tutorial on how to cook Roms for our great phone so we could have much more development for our phone for example see below SG3 development forum and ud see what i mean
see this link : http://forum.xda-developers.com/forumdisplay.php?f=868
link 2 : http://forum.xda-developers.com/showthread.php?t=1046306
link 3 : http://forum.xda-developers.com/showthread.php?t=1049846
link 4 : http://forum.xda-developers.com/showthread.php?t=1058699
because of the above threads their are so many new cooks roms in the SG3 forum
you might ask : why not me
because i dont have the knowledge on the same and cooking seems to be too confusing for my limited tech knowledge
Click to expand...
Click to collapse
[dsixda's kitchen]
This is the best kitchen I have found out. (To have rooted ROM, w/o any bloatwares, bash, de-odexing, and many more options)
You need to modify the updater-script file to a greater extent before using custom ROM developed by this kitchen, otherwise there is a possibility to brick your phone.
Though I have found out the correct parameters or changes to this and could build a custom ROM of my own. (fully functional ), but please allow me some time because creating a new thread takes a lot of time. Such that there are no loopholes and nobody should suffer any losses from the tutorial.
Since currently I have a huge office work load, I will post a tutorial soon as I had mentioned before in some other thread.
Napstar said:
[dsixda's kitchen]
This is the best kitchen I have found out. (To have rooted ROM, w/o any bloatwares, bash, de-odexing, and many more options)
You need to modify the updater-script file to a greater extent before using custom ROM developed by this kitchen, otherwise there is a possibility to brick your phone.
Though I have found out the correct parameters or changes to this and could build a custom ROM of my own. (fully functional ), but please allow me some time because creating a new thread takes a lot of time. Such that there are no loopholes and nobody should suffer any losses from the tutorial.
Since currently I have a huge office work load, I will post a tutorial soon as I had mentioned before in some other thread.
Click to expand...
Click to collapse
hi
thanks again for ur kind reply.As said by u we will wait for ur work load to come down and help us on the same
didnt understod a single word written above... what u guys are actually up to
kshitij_bhatt said:
didnt understod a single word written above... what u guys are actually up to
Click to expand...
Click to collapse
Just go through the this thread:
[dsixda's kitchen]
for brief details:
dsixda's Android Kitchen
Compatible with Windows (Cygwin) / Linux / Mac OS X
Who is this kitchen for?
Those who are brand new to creating custom ROMs and want an easy place to start learning
Those who just want to modify shipped ROMs or someone else's custom ROMs to their liking
Those who are confused by all those scripts and complex commands required for building and extracting
Napstar said:
Just go through the this thread:
[dsixda's kitchen]
for brief details:
dsixda's Android Kitchen
Compatible with Windows (Cygwin) / Linux / Mac OS X
Who is this kitchen for?
Those who are brand new to creating custom ROMs and want an easy place to start learning
Those who just want to modify shipped ROMs or someone else's custom ROMs to their liking
Those who are confused by all those scripts and complex commands required for building and extracting
Click to expand...
Click to collapse
Guide added in our development section.
Please check: [GUIDE]dsixda's Android Kitchen - Now with Huawei Ideos X6 support(Windows/Linux/Mac)
Supports for cooking stock ROM or custom ROM built on Stock. Not supported for Cyanogenmod or MIUI releases.
Hey Napstar! I have ported Galaxy Mini CM ROM to my Galaxy Y. I have zipped the folder after replacing Kernel and editing several files but when i try to flash it from my stock recovery I get errors like:
assert failed: write_rawimage("/temp/boot.img" ,"boot")
E:Error in /temp/sideload/package.zip
(Status7)
I think something is wrong with the MANIFEST-INF folder in zipped rom.
Can you tell me how to make a new MANIFEST-INF folder for my ROM.
Waiting for reply...................................................

[FAQ] Frequently Asked Questions For X8/W8 and X10mini/pro 24-02-2013

[SIZE=+3]Frequently Asked Questions[/SIZE]
[SIZE=+2]For X8/W8 and X10mini/pro[/SIZE]​
WORK in PROGRESS, be patient
i need the help of everybody to set it up !
please, submit the entries you would like to see in, providing updated link, and some explanation
for a start i need some info about BL, kernels, baseband and so ...
question template :
[SIZE=+1]Q1: [COLOR=RED][B]How do I .................................................. .................................................. ....?[/B][/COLOR][/SIZE][INDENT]Replace this block of text with a short answer for the above question. If the answer is complicated or otherwise lengthy, avoid the temptation to provide a full answer here. If the answer is truly that involved, this should be answered in another thread outside of this document. The answer then should provide a brief summary or overview and direct the reader to the document providing a full coverage of the topic.[/INDENT]​
post 2
[SIZE=+3]Frequently Asked Questions[/SIZE]​
Here is global FAQ, when needed, for device specific things, i'll redirect to the right place, same for MiniCM's specific questions.
[SIZE=+1]This a short list of frequently asked questions in this device forum and the answers often given as a response. It should serve as a starting point for gathering knowledge and finding solutions to many common problems. Please only post in this thread with feedback on how to improve this document. Do not post "Thank you" type responses. If you have additional questions or require more help, try to find an existing thread or create your own. Do not use this as a general help thread.[/SIZE]
You will find more precise infos in http://forum.xda-developers.com/showthread.php?t=1425240Lucastan96's/sgt. meow FAQ/list (only dedicated to X8/W8!)
[SIZE=+1]Q1: Why ONE only FAQ for theses 3 (4) devices ?[/SIZE]Because theses devices have really similar hardware, and work in the same way.
x8/w8 are one device (only renamed) and is MDPI.
x10mini and minipro are LDPI the PRO has an hardware keyboard that the x10mini doesn't have.​ [SIZE=+1]Q2: Why is there many names for theses devices?[/SIZE]There are 3 names for each devices :
The commercial, the number, and the name used by cyanogenmod:
X8/W8 is known as e15 or Shakira
X10mini is known as e10 or Robyn
X10miniPRO is known as u20 or Mimmi​ [SIZE=+1]Q3: Where can i find my device specific help and informations?[/SIZE]For X8/W8 : here
There is currently no similar up-to-date thread for x10mini/pro​
[SIZE=+1]Q4: How to root?[/SIZE]There are many ways, one of them for X8 are using x8toolbox, or by flashtool and with superoneclick.​ [SIZE=+1]Q5: What is a recovery?[/SIZE]A recovery is a small system that allows you to install roms, backup, restore, and many other things.
In order to install your first rom you will need cwm.
If you unlock your bootloader and flash a custom kernel cwm recovery is included so you don't need to do anything,
if you can't unlock your bootloader (or don't want) that means you are on stock kernel and you have to install it. Some ways to do it is by x8toolbox (for X8) or manually.
You may have seen the name xrecovery, this is an old and outdated recovery. Most roms need cwm and not xrecovery, you can always check the installation instructions of the rom that you want to install.​ [SIZE=+1]Q6: How to unlock bootloader?[/SIZE]http://forum.xda-developers.com/showthread.php?t=1254225​ [SIZE=+1]Q7: How to flash a rom?[/SIZE]Always read the installation instructions of the rom you want to flash. They might be different from a rom to another, refer to "fresh install" if want to know more.​ [SIZE=+1]Q8: How to revive my (soft)bricked device?[/SIZE]For X8.
For X10mini and X10miniPRO (link pending)​ [SIZE=+1]Q9: What is the best rom/kernel/theme/etc?[/SIZE]This is not questio should ask, backup, try and roll back ​ [SIZE=+1]Q10: Backups, what are they?[/SIZE]Backups are something like a picture of your current state, to which you could roll back in case of install/flash/testing failure
they helps you not to lose your settings, apps,data... but may create bug if you restore /data you used with one rom after the install of one other.
More info by stamatis.​ [SIZE=+1]Q11: What is a "fresh install" [/SIZE]This is when you install a new rom, after having all your data/apps deleted, that means :
in ClockWorkMod (CWM) recovery you did the following before installing :
formatting /cache, /data and /system
for a non-fresh install but to void some issue, you should
format /cache, /system and wipe dalvi-cache before installing a rom update (don't forget to install gapps too)​ [SIZE=+1]Q12: What is a baseband and its number?[/SIZE]Baseband is part of pre-software of your device, it allows you to connect to network and some other things
You can check your baseband number in settings>about phone.
In order to install a custom rom you MUST have the baseband ending with 015. If you don't have it then you can update with pccompanion, SEUS or flashtool by flashing the generic stock .ftf for 2.1 eclair. (take care you flash the correct stock rom specific to your device )​ [SIZE=+1]QXXX: Where can i find MiniCM range specific FAQ threads ?[/SIZE]
Theses threads are for all the supported devices :
MiniCM7
MiniCM9
MiniCM10​This FAQ will be filled up more later
*​ Forum Rules | New Users Guide | XDA Tour | Report Posts​ This FAQ is part of a Recognized Contributor Group Initiative. Please look for a similar FAQ thread when visiting another device forum.​
post 3
reserved, should be enough
R: ?
Take my 3 thanks :beer::beer::thumbup:
Sent from my X8 using xda app-developers app
Really good work all things in one place.
Thread reopened.
eagleeyetom said:
Thread reopened.
Click to expand...
Click to collapse
thank you for the sticky
Hi, i can help you with this
I will give you some suggestions, of course my post is not a guide, i leave the writing part to you, if you want me to write full answers though im willing to do it, but i guess you want the faq to have your personal touch.
How to root?
There are many ways, some i prefer are by x8toolbox, by flashtool and with superoneclick.
How to unlock bootloader?
http://forum.xda-developers.com/showthread.php?t=1254225
How to flash a rom?
Always read the installation instructions of the rom you want to flash.
How to revive my (soft)bricked device?
http://forum.xda-developers.com/showpost.php?p=35338935&postcount=2
What is the best rom/kernel/theme/etc?
You know what to write here
Backups, what are they?
Backups are really important especially when you dont want to lose your settings, apps,data...
Battery drain
...
Tell me if you want more help with the answers.
I will be back with more suggestions...
thank you
i'll add these later,
(i'm absolutely not up to date for rooting/unlocking bootloader ... i did these at the very beginning and never did again)
R: [FAQ] Frequently Asked Questions For X8/W8 and X10mini/pro 21-02-2013
Why camera pics are better on minicm10 than minicm7?
Sent from my E15i using xda app-developers app
@up
Probably because of the extra PMEM given to camera in CM10 (I can't tell for sure though).
And @mat
Wouldn't it be better to just merge this thread and lucastan96's other thread together and include new info? I could help with that and it would be far better than having two threads to server the same purpose. Lemme know what you think about it.
sgt. meow said:
Wouldn't it be better to just merge this thread and lucastan96's other thread together and include new info? I could help with that and it would be far better than having two threads to server the same purpose. Lemme know what you think about it.
Click to expand...
Click to collapse
i would agree with you, but in fact his thread (and my MiniCM miniFAQs too) is extremely detailed, and hard to read for people that don't know the device or is new to the forum,
the aim of this (and all others) RC-FAQ is to be short, redirecting to where further infos are, and to be standard and looking like any other RC-FAQ for easy reading:
PG101 said:
The whole idea of consistency is that we are giving out the information in a similar way and users can expect same standards across.
Many of us keep changing phones, and users will know where to find answers if they know that the FAQs follow the same format..
Its like me when I travel overseas, when in doubt, I eat McDonalds, as good or bad the burgers maybe, I know I am getting the same thing at least
Click to expand...
Click to collapse
editing an existing FAQ to get it in the "new recommended way" is really hard, and setting up a new one is easier
this new FAQ should look like these :
galaxy mini
Xperia play
...
Cool. So let's try this.
You keep the FAQ short, while I keep mine a bit more detailed.
Users can ask questions in my thread or yours.
Your opinion on this will be appreciated.
My thread = Lucastan96's thread because he won't be around as frequently as before.
sgt. meow
sgt. meow said:
Cool. So let's try this.
You keep the FAQ short, while I keep mine a bit more detailed.
Users can ask questions in my thread or yours.
Your opinion on this will be appreciated.
My thread = Lucastan96's thread because he won't be around as frequently as before.
sgt. meow
Click to expand...
Click to collapse
right,
i'll write at top of the post to refer to your FAQ for more precises info, this one is not meant to be precise, just to guide users
users should better ask in your FAQ for general Q, or in the MiniCM dedicated FAQs (for Q related to theses roms)
this FAQ is not a place for people to ask (in the way the RC-FAQs have been imagined)
the aim was to create a short RC-FAQ, and that each dev make one dedicated to their own roms
I will give you some suggestions, of course my post is not a guide, i leave the writing part to you, if you want me to write full answers though im willing to do it, but i guess you want the faq to have your personal touch.
Click to expand...
Click to collapse
Why did you add the answers exactly from my post?
You can add this as well.I think a good place is below the "How to root".
What about recovery?
In order to install your first rom you will need cwm. If you unlock your bootloader and flash a custom kernel cwm recovery is included so you dont need to do anything, if you can't unlock your bootloader that means you are on stock kernel and you have to install it. Some ways to do it is by x8toolbox, manualy, by flashtool(?), by the app(?) (im not 100% sure about the last two as i have never used them but i think some users have reffered that they work)
You may have seen the the name xrecovery, this is an old and outdated recovery. Most roms need cwm and not xrecovery, you can always check the installation instructions of the rom that you want to install.
stamatis said:
Why did you add the answers exactly from my post?
You can add this as well.I think a good place is below the "How to root".
What about recovery?
In order to install your first rom you will need cwm. If you unlock your bootloader and flash a custom kernel cwm recovery is included so you dont need to do anything, if you can't unlock your bootloader that means you are on stock kernel and you have to install it. Some ways to do it is by x8toolbox, manualy, by flashtool(?), by the app(?) (im not 100% sure about the last two as i have never used them but i think some users have reffered that they work)
You may have seen the the name xrecovery, this is an old and outdated recovery. Most roms need cwm and not xrecovery, you can always check the installation instructions of the rom that you want to install.
Click to expand...
Click to collapse
because i was too lazy to complete them
and the answers need to be shorter as possible, and if needed redirecting to sgt. meow's FAQ/guide or MiniCM miniFAQ
Just thought of another one
What is the right baseband number?
You can check your baseband number at settings>about phone.
In order to install a custom rom you MUST have the baseband ending with 015. If you don't have it then you can update with pccompanion or flashtool by flashing the generic stock ftf for 2.1 eclair.
I dont know about x10mini.....
I just made a guide about backups, if you like it add the link at the Q10
http://forum.xda-developers.com/showthread.php?p=38495765#post38495765
Thanks
stamatis said:
I just made a guide about backups, if you like it add the link at the Q10
http://forum.xda-developers.com/showthread.php?p=38495765#post38495765
Thanks
Click to expand...
Click to collapse
done
Apps running in background! how to stop them?
Block the "Auto-run" with this app http://goo.gl/D3OFX

Help with extracting proprietary blobs - Marshmallow ROM dev

Hey folks,
I wanted to see if I could port a vanilla version of Android Marshmallow to the 626, but I first need to extract the proprietary blobs from the current ROM to produce a new version of vendor.img that will work with the vanilla source code.
I found a guide on how to do this that is specific to the HTC M8, and I was wondering if any of you more seasoned developers could tell me whether or not the procedure was the same for our phones.
I would have posted this in the developers forum, but thanks to forum rules, I can't because my post count has not exceeded some arbitrary, secret amount. (Great rule! /s)
If someone could point me in the right direction for extracting the blobs, I'll get to work on producing a Marshmallow-based ROM for our phones. (This would be my first ROM development, so any help is greatly appreciated! )
http://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763
http://www.netmite.com/android/mydroid/development/pdk/docs/
Hope this helps

Categories

Resources