How to make our own build - Desire HD Q&A, Help & Troubleshooting

Ok maybe it's not the good part of the forum to ask... anyway I searched but can't find any info (xda and google). I'm sure it exist... but to noob to find.
I would like to try making my own build.
I found some tuto, setup Ubuntu in VMware, setup everything...
So I made my first build... a pure CM7 RC2 and it's working after flash on my DHD.
Great... but spending one day to make something I can download...
So now I want to play with sources in order to "fine tune" my CM7.
Where I can find tuto to do this?
I would like to start easy: remove unneeded app, modify some config files (build.prop and gps.conf), themed a little...
Thanks in advance for your help.

all you need to know is in here: http://forum.xda-developers.com/showthread.php?t=837781

ok... my question has to go to Q&A... but this was not my initial question
So if some one can provide some usefull links.
Thanks in advance.

might be me, but i am failing to recognize the actual question here.
you want to remove apps, delete them. you want to edit [somefile], get your favorite text editor and edit [somefile]. you want to make themes, well i think you can work out the scheme here...

Yep I agree, it's maybe not very clear.
I manage to make a build from the CM7 repo. Honestly, I setup the system but don't understand how the ROM is made from all the files.
I would like to adapt the sources in order to build just what I really use in the ROM. I think that when an app is added from source additional things come with it (parts needed by the app only). If you remove the app from the ROM zip these things are not.
What I need is too understand the structure of the folders and files to leave only what I need + my setting, app...
I also need to understand how building a ROM from files from the repo dir but with "modified" parts from a local dir (to mix for example part of two ROM).
Of course I will not ask all my question here so I would like some links to guides or web sites where I can find some info.

Maybe an example:
Today, when a new build is available, I prefer to backup only my PIM data and wipe all reinstall fresh ROM.
Then I setup up the files (gps.conf & build.prop).
Install my apps (remove some)
restore my data.
I would like to have the ability to follow the updates via repo.
Have all the "tuning" on my HDD, apps, conf files...
update some config on my PC
Then build my own ROM directly.
So I flash, restore my data and voila.

Related

Newbie Questions: tons of them : mostly mkrom RomKitchen

Hello All,
Firstly, I would like to say how great this website is and tip my hat off to all the people involved in maintaining this site.
I am very new to the whole XDA modification scene and have a ton of newbie questions. I know some of these questions have been asked before; however I still have not grasped the concepts fully. I have tried to restate the questions asked before so that I (and hopefully other newbie’s ) can fully understand how to modify XDA’s.
Any help anyone can provide will be greatly appreciated.
So here goes the questions:
When creating a customized ROM (using MKRom) my understanding is that one has re-create the initobj.txt and the Default.reg. Is it possible just to install all the applications you want, and then download the initobj.txt and the Default.reg and place them in the cfg directory for the custom ROM?
If this does not work, how does one know what to edit in these files?
When MKROM request a Rom image, is it requesting the backup ROM IMAGE? Will any image do?
When backing up a ROM, what option does one have to select to backup the operating system, settings and programs inside the ROM? Does CE do all of this?
What is CE, Boot, GSM stand for in the boot menu?
If one wants to just create a new boot image, what is the simplest way? Does one have to create a whole new ROM?
If one wants to just have the unlocking software, what is the simplest way? Does one have to create a whole new ROM?
When creating a Rom using RomKitchen, it asks you add Add your own ROM files? Is this your backup rom?
In RomKitchen one of the readme files asks for:
bootimage.bmp,_initobj.txt,_initdb.ini,_default.reg,xipchain
Is the default.reg and the initobj.txt in this directory have to be pre altered for the new programs one wants in the Rom like the way the MKROM wants them? Does the setup program create them for you?
Is the bootloader.nb0 file specific to the boot loader you have?
Very confused what is exactly needed in the /CFG directory.
In the CFG directory do you place your backup Rom dump?
Hi ...
Do you call these as newbie questions ??!! :shock: ... I can hardly wait to see your advanced ones :wink:
If I got you right, you want to "create" your own ROM instead of doing like most of us by "cooking" a new ROM in one of the kitchens like www.yorch.net
I may advice you to move this thread to the "Hacking it" forum which I see it a better place than here.

Dev Questions

Hi all,
I'm currently working on a 2.1 Sense-UI 'Lite' Rom, which will use a customised, lightened version of the Espresso Rosie. I'll be no-doubt spending every second of my free time in Photoshop with the aim of making this rom look stunning.
As for the rom itself:
I've used highlights from several of the current 2.1 releases from this and other forums, and I'm pretty happy with it so far; it has a very small 'not working' list, and the filesize is reasonably low for a Sense UI rom. Of course, I'll credit people where credit is due.
Anyway, the questions. Some of this may seem incredibly dumb. Please assume that I have an understanding of Linux, but I am very new to Android Development. I've simply read the guide that Lox posted, then taken a 'learn whilst I work' approach. So...
1. How do I edit the 'Software Number'? (I can't seem to find it)
2. If I start again with a clean, AOSP 2.1 rom, how do I make it use Rosie? It can't just be a case of putting the Rosie.apk in the right place can it?
3. If I want to select which apps/widgets appear and where, do I edit the relevant XML which contains the Screen/X/Y locations?
If/when I have more questions, I'll post them here!
Thanks in advance
1. Sorry dont know,
2. No you need to add all the framework files, quite a few of them I think.
3. system/customize/mns/default.xml
Dan
Thanks Dan. I have the Framework files, so that's easy enough.
I suspected it was the default.xml, so thanks again.
Anyone know the answer to my first question?
I think that it is somwhere in build.prop but I can be wrong.
1. No idea what you mean by 'Software Number'
2. com.htc.framework.jar and friends need to be added to init.rc's BOOTCLASSPATH var ... so at the very least, you need to provide a custom boot.img ... that rules out adding it over other custom ROMs ... on top of that all the Rosie related /system files need to be present...
3. yes - that default.xml is the place ..
Good luck ...!
(Side note ... Why oh why would you want to add sense!)

[Q] building custom themes for dhd and downloadable apps howto ?

hey New to the xda fourms but looking for some information about skinning I got a few questions which I've trolled over xda very little and some other sites that never directly point me in the direction I'm looking to go. I have worked with linux is in the past. ex puppy linux which I was very fond of for user information about anything to do with puppy. but I have just learned from trial and error . anyways my questions are as follows.
1.I'm wanting to build a skin for rcmix 3d ver.4 creating sense 3.5 New look and feel while changing icons for a list of apps besides the skin and sense,how do I go about changing icons/skins in apps I download?
2. what programs do I need to take on this task?
3. I am currently not using linux,using windows7 to do this, is this going to matter? or should I switch to a linux based os?
in the end all I wanna do is change the bling appel of my phone with my own custom look not someone else's idea. a basic point in the right direction would be a big help. I my even post some skins to add to the dhd world.thanks in advance.
I want to ask the same questions:
1.I'm wanting to build a skin for rcmix 3d ver.4 creating sense 3.5 New look and feel while changing icons for a list of apps besides the skin and sense,how do I go about changing icons/skins in apps I download?
2. what programs do I need to take on this task?
3. I am currently not using linux,using windows7 to do this, is this going to matter? or should I switch to a linux based os?
mont2012 said:
I want to ask the same questions:
1.I'm wanting to build a skin for rcmix 3d ver.4 creating sense 3.5 New look and feel while changing icons for a list of apps besides the skin and sense,how do I go about changing icons/skins in apps I download?
2. what programs do I need to take on this task?
3. I am currently not using linux,using windows7 to do this, is this going to matter? or should I switch to a linux based os?
Click to expand...
Click to collapse
If you want to get away the easy way, then:
1. Download rom of your choice (.zip format)
2. Extract framework-res.apk and SystemUI.apk from that zip file (you'll have to look in the data folder).
3. Go to UOT kitchen and go to file upload tab and then select "upload system files" then upload the ones you've just extracted.
4. Once they are uploaded, you can browse through all the tabs and select things of your choice.
5. When you're finished selecting, go to Sumery tab and cook your files.
6. Wait for 5-10 minutes then go to pickup tab and you should have your .zip ready for that specific rom
7. Flash the .zip
8. Enjoy!
Note: For every rom, the framework and systemui.apk is different so for every different rom you'll have to extract those files from .zip file of that rom
hey thanks,I have been looking at that kitchen cooking but I'm looking for a more manual approach at doing things. can I do that same step guide but manually skin it myself?
how do I manually recompile after I'm done?
I have been creating icons for a little over a week with gimp on windows on free time with a theme in mind looking for more of a one of a kind idea and then maybe adding themes to the dhd network after I get a handle on it, so looking to create theme packs. I been trying to do it with a few apps but I can't get the icons out of the apps to show up when I pull it apart so I figure I'm missing something I would need to go about doing my work. am I missing extensions I need to complete this?
wait4me2burn said:
hey thanks,I have been looking at that kitchen cooking but I'm looking for a more manual approach at doing things. can I do that same step guide but manually skin it myself?
how do I manually recompile after I'm done?
I have been creating icons for a little over a week with gimp on windows on free time with a theme in mind looking for more of a one of a kind idea and then maybe adding themes to the dhd network after I get a handle on it, so looking to create theme packs. I been trying to do it with a few apps but I can't get the icons out of the apps to show up when I pull it apart so I figure I'm missing something I would need to go about doing my work. am I missing extensions I need to complete this?
Click to expand...
Click to collapse
To change the icons in downloaded apps you will need to decompile the apps apk then change out the icon in the app, them recompile. Mind you it will get replaced again when the app updates. A search would lead you to many themeing tuts on XDA

[Q][02/02/2012]How to edit apk files

Hello people,
I am basically php developer.
So, if you can give me a chance to learn Android, I really appreciate it.
The question is that I really want to edit HtcContact.apk and SoftBank mail apk.
[1st Q]
What I want to do with the first one , HtcContact.apk, is that I want to add some field into it when editing the contacts.
This is because there is additional field something called "the reading of Chinese characters" in Japan.
This field enables to order the contact list.
Most of the roms do not contains this additional fields.
[2nd Q]
I want to modify SoftBank mail apk because I want to try MIUI ROM.
The problem with it is that I cannot receive the message using that app as MIUI uses different protocol or something.
I really do not know what to modify.
My knowledge is something like below.
I already installed Android environment in my PC(Win7).
I know how to flash radio too.
Best regards.
ROM: ARHD 6.3.2
Device: Desire HD
Radio: ARHD recommended radio
Im not a expert but dont you have to decompile the apk to do that. I recommend finding a open source contact app and modify that (or pick on that already have support for that function) and then replace the htc contact app
Q2 I have heard that miui i releaseing many of theirs apps as open source.
mrxdst said:
Im not a expert but dont you have to decompile the apk to do that. I recommend finding a open source contact app and modify that (or pick on that already have support for that function) and then replace the htc contact app
Q2 I have heard that miui i releaseing many of theirs apps as open source.
Click to expand...
Click to collapse
Thank you very much for your post.
I just tried to reinstall HtcContacts.apk.
However, after installed it, lots of errors are occurring and can not open contacts.
Maybe, I did wrong way to install.
What I did is i just install it using root explore.
Then, about Q2, I will ask someone in MIUI developers.
Thanks, anyways.
Hum.. Try clearing cache? Might remove the errors.
Ok...after work, i will try it.
Hi
This thread might help you...
http://forum.xda-developers.com/showthread.php?t=695701

LG Theme Template (Android Studio Project)

I've seen a lot of people asking how to exactly theme the LG devices, a while ago i made a template in Android Studio.
This is based on another Template i found that was just for Settings.
Anyone familiar with Android Studio should know what to do with this.
Included in the template package is: "common", "settings" and "_app"
"common" is used for the package: com.lge (which is comparable with SystemUI/Framework-res)
"settings" is used for: com.android.settings (Settings App obviously)
"_app" is the app for the theme itself.
If you want to provide themeing to more apps, you will have to add them yourself.
Make a new folder for the app you want to theme, let's say: Phone.
In this folder you add the resources and manifests to make this work (you can copy/modify them basically from 'common' or 'settings')
Add this folder to 'settings.gradle' (main folder)
Code:
include ':_app', ':common', ':settings'[COLOR="Red"], ':phone'[/COLOR]
Build all the seperate files (common, settings and phone (and whatever else you might add))
Then build app, making sure the other files are built and inside "_app\src\main\assets"
I won't be explaining stuff, hope everyone will work together on this one.
Anyways, here's the ZIP file, show me some love for this, and please show the stuff you make using this :good:
[
Mod Edit, link removed.
Thread Closed and PM sent regarding this thread....
Mjuksel said:
I've seen a lot of people asking how to exactly theme the LG devices, a while ago i made a template in Android Studio.
This is based on another Template i found that was just for Settings.
Anyone familiar with Android Studio should know what to do with this.
Included in the template package is: "common", "settings" and "_app"
"common" is used for the package: com.lge (which is comparable with SystemUI/Framework-res)
"settings" is used for: com.android.settings (Settings App obviously)
"_app" is the app for the theme itself.
If you want to provide themeing to more apps, you will have to add them yourself.
Make a new folder for the app you want to theme, let's say: Phone.
In this folder you add the resources and manifests to make this work (you can copy/modify them basically from 'common' or 'settings')
Add this folder to 'settings.gradle' (main folder)
Code:
include ':_app', ':common', ':settings'[COLOR="Red"], ':phone'[/COLOR]
Build all the seperate files (common, settings and phone (and whatever else you might add))
Then build app, making sure the other files are built and inside "_app\src\main\assets"
I won't be explaining stuff, hope everyone will work together on this one.
Anyways, here's the ZIP file, show me some love for this, and please show the stuff you make using this :good:
[
Mod Edit, link removed.
Click to expand...
Click to collapse

Categories

Resources