Rom building questions. - Motorola Droid X2

If we have a base rom even from a backup.
Couldn't we edit simple things in the rom. Like host files for blocking adds. Add the changes that the super charger script makes. Disable/remove alot of blur like we do now with titanium backup. Longer wifi scan times. ect.
How would you get the base rom and how do you edit the files contained in the rom. I'm used to linux I run it at the house. If its like editing cfg files and what not. I might be able to make my own rom for myself.
Figured out you can open apk files easily with winrar.
And if all else fails sbf here i come

infinity8x3 said:
If we have a base rom even from a backup.
Couldn't we edit simple things in the rom. Like host files for blocking adds. Add the changes that the super charger script makes. Disable/remove alot of blur like we do now with titanium backup. Longer wifi scan times. ect.
How would you get the base rom and how do you edit the files contained in the rom. I'm used to linux I run it at the house. If its like editing cfg files and what not. I might be able to make my own rom for myself.
And if all else fails sbf here i come
Click to expand...
Click to collapse
Can't wait to see what you come up with... I'll test it.

You don't need a custom rom in order to block ads. There its a hosts file floating around that does that in one of the X2's subforum.
Sent from my DROID X2 using XDA App

or get ad free from the market...and guess what? it's free! >.>

It's true that those small changes don't require a custom rom but I think tinkering with the idea and trying to put something together would be a great learning experience and could lead to the first "custom rom".

Questions should be posted in the general forum. I will recommend you visit the chef central forums where they have all the tools and possible many answers for rom building.
Cheers and thread moved.

Related

deodex for the streak?? Anybody.. anybody??

Does anyone know if someone has created a deodex .zip file to flash via customer recovery?
For those that don't know, many of the apk files installed by an official rom will have a .odex file associated with them which slows down your phone considerably. These odex files interact with delvik cache and java VM and from what I understand wreak havoc on data access times and are largely uneccessary. Other dev platforms such as the droid x and evo have a .zip file that you can simply flash via recovery that will "deodex" your apps in system\apps folder. Basicially this zip will take your odex file and associated apk file and take the important information out of the odex and input it into the apk making just one streamlined faster file.... with all of your odex files gone, your phone will spend less time executing programs both for end user and core google apps and your phone will be way faster. Any idea if someone has developed this yet for the streak? Thanks
For others who, like me, didn't understand the question - read this.
But what I gathered from that wasn't that de-odexing speeds anything up, more that it makes it easier to make modifications.
Why are you posting this in more than one forum? This is the same as what you posted in the dev forum, right?
Sent from my Dell Streak using XDA App
alperin1 said:
Why are you posting this in more than one forum? This is the same as what you posted in the dev forum, right?
Sent from my Dell Streak using XDA App
Click to expand...
Click to collapse
wasn't sure if anybody would follow what I am posting in the QA as most noobs are in here. Why do you care? I meant delete this one and go with the developer post anyway.
marvin02 said:
For others who, like me, didn't understand the question - read this.
But what I gathered from that wasn't that de-odexing speeds anything up, more that it makes it easier to make modifications.
Click to expand...
Click to collapse
Marvin my man.... deodexing more than doubles data access speeds for core google apps and makes the phone more snappy. Seen this performed on a droid x and an HTC evo... works wonders.
I just want to know if someone has developed a simple flashable .zip file that will deodex my system/app apk files so I can speed things up and modify my self. I don't care that dj steve's rom already has this done... I don't care for steves latest roms as they are very buggy on 3g, wifi, gps, notification bar hangs, drops data when wifi toggle is enacted, gmail won't sync... I got tired of messing with he streaddroid roms (for now) and went to stock 318 with just smokku's dj steve kernal mod which allows me to OC to 1.19ghz. I get 2000 quad out of that and I am happy, plus I get the added bonus of having a 99.9% stable rom. Can't wait to see what steve comes out with next. i always try his roms out first.
Thanks
You could probably copy you're system/app folder and write a simple batch script to use baksmali to deodex *.odex, use 7-zip command line to put the .dex file in the apk (I assume that is what has to happen), and then push that folder back to your phone with an adb push. I dont really want to try this because I'm on 319 and cant make a nandroid backup but since you can on 318 it never hurts to try.

deodex for the streak

Does anyone know if someone has created a deodex .zip file to flash via customer recovery?
For those that don't know, many of the apk files installed by an official rom will have a .odex file associated with them which slows down your phone considerably. These odex files interact with delvik cache and java VM and from what I understand wreak havoc on data access times and are largely uneccessary. Other dev platforms such as the droid x and evo have a .zip file that you can simply flash via recovery that will "deodex" your apps in system\apps folder. Basicially this zip will take your odex file and associated apk file and take the important information out of the odex and input it into the apk making just one streamlined faster file.... with all of your odex files gone, your phone will spend less time executing programs both for end user and core google apps and your phone will be way faster. Any idea if someone has developed this yet for the streak? Thanks
**EDIT**
I know this is a question but I thought it should go into development due to the potential of some of the dev's responding to this and posting useful developement info that we can try out and report back to the dev section. Plus, most of the trollers in Q&A probably don't know what this is or even care. Thanks
I am interested in this as well
Sent from my Dell Streak using Tapatalk
Steve's roms are pre-deodexed, just look under system/app, you can't find see any odex file, or simply perform a search on 'odex' in root explorer and the result should be none.
sharptv said:
Steve's roms are pre-deodexed, just look under system/app, you can't find see any odex file, or simply perform a search on 'odex' in root explorer and the result should be none.
Click to expand...
Click to collapse
good to know.
although if someone makes an app/file to do the job it will be handy in the future
Pleas do not post in Multiple forums about the same Topic

Atrix ROM ports!!

Ive Noticed that the DX2 Has number of atrix ports and a couple of roms.. Any how i would love some more support than CM7 for the photon. I know we only have a handful of wonderful devs for the photon and they can only concentrate on so much at once.
I am wanting really bad to contribute..Can some one show me where to brush up on my skills I am wanting to attempt to Dev. I know IT HAS BEEN ASKED i just want to go to the right places...Just seems like there is not enough interest in the photon in general.. I have all the free time in the world right now...
Id like to thank all the wonderful Devs in the photon forum and for making CM7 boot!! Some good ISH!! i cant wait!!
If you want to make a custom, stock-based ROM, it is fairly easy. A number of us on the forums just think that it is not very necessary to have so many ROMs when there is little-to-no changes between them.
Anyhow, the basic gist is like this:
Find some app/theme you want to include into a ROM. Extract the ROM (.zip), and then place those files into their respective folders. Generally, themes are in framework-res.apk files and go in /system/framework. Apps usually go into /system/app. Keep in mind if you want to port a theme, you will have to resize the images and rename them (usually), which involved extracting the .apk, modifying the necessary files, and then pushing them back into an unextracted copy of the .apk (to deal with signing issues). When you are done with your modifications to the ROM, highlight/select all of the folders and files (usually META-INF, system, boot.img), and compress them into a zip archive. Bam, new ROM made.
mrinehart93 said:
If you want to make a custom, stock-based ROM, it is fairly easy. A number of us on the forums just think that it is not very necessary to have so many ROMs when there is little-to-no changes between them.
Anyhow, the basic gist is like this:
Find some app/theme you want to include into a ROM. Extract the ROM (.zip), and then place those files into their respective folders. Generally, themes are in framework-res.apk files and go in /system/framework. Apps usually go into /system/app. Keep in mind if you want to port a theme, you will have to resize the images and rename them (usually), which involved extracting the .apk, modifying the necessary files, and then pushing them back into an unextracted copy of the .apk (to deal with signing issues). When you are done with your modifications to the ROM, highlight/select all of the folders and files (usually META-INF, system, boot.img), and compress them into a zip archive. Bam, new ROM made.
Click to expand...
Click to collapse
Thanks BRO!!!! And Thank you for all your hours and dedication you have put fourth with school and all!! I would not of held on to my Photon If it weren't for you!! Honestly!!!
If you guys want I could upload my recent creation.
Its yays deodexed rom with the alien theme embedded in. I can't seem to get the blur launcher to work though and I could slim it down. Remove ringtones notifications and apps if ya'll want...its nothing special just themed no special tweaks.
Don't think you can add tweeks without unlocking the BL...
AJC9000 said:
If you guys want I could upload my recent creation.
Its yays deodexed rom with the alien theme embedded in. I can't seem to get the blur launcher to work though and I could slim it down. Remove ringtones notifications and apps if ya'll want...its nothing special just themed no special tweaks.
Don't think you can add tweeks without unlocking the BL...
Click to expand...
Click to collapse
That would be awesome!!!! Im working on something NOw!! I would like to use what u created!!
Its pretty much yays rom + kenneths theme and a working settings apk lol
You want it stripped down as possible? I suck at making update zips for gapps and such but I can strip it and you can command mount the things you want.
and applications? not everything is shareable I try to make a build did not work well but gets stuck on the logo of motorola
what are you adding and taking away?

[Q] Android Kitchen - by dsixda, HTC Amaze 4G

I want to use the android kitchen to turn our recently leaked ICS update into a rom. On Dsixda's thread, he states that we need to create a file in the kitchen's /tools/edify_defs folder with the properties of our phone, in the templates file, it is kind of unclear for me how to do this.
Can anyone help me create a file for the HTC Amaze 4G? Thanks
HuskyHamburger said:
I want to use the android kitchen to turn our recently leaked ICS update into a rom. On Dsixda's thread, he states that we need to create a file in the kitchen's /tools/edify_defs folder with the properties of our phone, in the templates file, it is kind of unclear for me how to do this.
Can anyone help me create a file for the HTC Amaze 4G? Thanks
Click to expand...
Click to collapse
Sorry if I am reviving a not quite old thread, but it came up when I was searching for the kitchen to download on my new windows install..
If you want to create a rom you don't really need the kitchen, it can do certain things to a rom- deodex, zipalign, install superuser and busybox, etc.. but within a few days of the leak all of that is available. You can pm a developer as I did and get permission to use their files rather than recreate the wheel.
First, just run the zip file thru the kitchen, don't do anything special with it- we have a superuser zip file you can/should just unpack into the final setup.
Find the updater-script and the binaries(in the same folder), this is what tells it what to install and where, fix permissions, install the files needed for SU(look in the superuser zip files updater script for details) etc..
If you want a deodexed rom you can ask to borrow the system/app directory from a rom that already has deodexed theirs. Literally, this is the best way to do it.
What the kitchen IS better for is pulling apart the kernel, putting it back together, unpacking apks.. it has built in scripts which can be a real time saver than typing in backsmali this, smali that-- simply put a file in a folder, type a number, and magically it all happens for you.. but you won't need ANY of that until you get into the advanced stuff.
I don't know if you were still trying to figure it out or not, but at the very least this may give someone who happened across this thread SOME sort of answer-- I get sick of finding more unanswered posts or posts where people reply with "you should search".. I've searched so much I my fingers should be bleeding.

NMM type for Recoveries

Anyone think it's possible to implement the manager system from nexus mod manager or something similar to a recovery. For example, have it keep track of the mods you install and the files it changes and put an option to remove it where it removes the files that were editing and replaces them with the files that were there prior to installing the file? If it help nexus mod manager is open source allowing to view the source code and I believe all that is handled under the NexusClient under ModManagement. If someone can implement this it will make it a lot easier to manage the mods we install on top of the roms since the only way to remove mods currently is making a backup prior to flashing the mod or by dirt flashing the Rom on top and reinstalling other mods.
Here's a link to the sourcehttp://goo.gl/PFnqI0
Sent from my HTCONE using Tapatalk
luigi311 said:
Anyone think it's possible to implement the manager system from nexus mod manager or something similar to a recovery. For example, have it keep track of the mods you install and the files it changes and put an option to remove it where it removes the files that were editing and replaces them with the files that were there prior to installing the file? If it help nexus mod manager is open source allowing to view the source code and I believe all that is handled under the NexusClient under ModManagement. If someone can implement this it will make it a lot easier to manage the mods we install on top of the roms since the only way to remove mods currently is making a backup prior to flashing the mod or by dirt flashing the Rom on top and reinstalling other mods.
Sent from my HTCONE using Tapatalk
Click to expand...
Click to collapse
So you are simply stating having a program that automate a backup of the files yyou change? So instead of having to do it manually, as soon as you change something it makes a backup..
lacoursiere18 said:
So you are simply stating having a program that automate a backup of the files yyou change? So instead of having to do it manually, as soon as you change something it makes a backup..
Click to expand...
Click to collapse
Similar. The way I see this working is to create a class that adds this support and have it create a temp file of sorts with everything that was editing and a list of files that were created and allowing it to backup the files that were replace so it can put them back when u decide to remove the mod and delete the extra files that were created. Doing this would make it easier for developers to implement this into the scripts used to install the mods and possible having installations split between roms and mods, having the developers define it in the script and if undefined have it follow the default install which should be roms. Defining roms and mods could possibly be done through if-else statements such as adding InstallAsMod or InstallAsRom on the first line of a script and on the recovery have it check if it says InstallAsMod or InstallAsRom on the first line and if neither have it follow the InstallAsRom code which could be an exact copy of the way the recovery currently works. Though those are just my thoughts with my very basic java knowledge, maybe someone else with more insight can give a better method. Also having something like a extra menu in the recovery that displays the installed mods and having the uninstall/removal process there. The problem I see with this would be with rom updates, they will make changes to the files causing issues with the uninstall option if the files where changed through the rom update.
Sent from my HTCONE using Tapatalk

Categories

Resources