How much can I tweak odex? - HTC EVO 3D

Is we get closer to being able to flash roms onto the E3D, I am starting to think that I might want to go with an odexed ROM. But, I am wondering... if I do that, am I able to remove system apps? Also, how does this affect a zip alignment? If I CAN remove system apps from an odexed ROM, is the memory recovered as once again usable?
Thanks in advance.

I think I am starting to realize why people would rather post in the wrong forum... it seems I might have to do that just to get an answer.
:-(

edufur said:
Is we get closer to being able to flash roms onto the E3D, I am starting to think that I might want to go with an odexed ROM. But, I am wondering... if I do that, am I able to remove system apps? Also, how does this affect a zip alignment? If I CAN remove system apps from an odexed ROM, is the memory recovered as once again usable?
Thanks in advance.
Click to expand...
Click to collapse
I don't think that either of them really affect being able to remove system apps. To my understanding the only big difference is odex can not be themed while deodexed can be.

There is this developer called aamikam in the evo 4g section or you can go to his site http://themikmik.com/forums/ and all his roms now are odex and they can be themed, system apps removed he is a pro at cooking up odex roms he may be of help , and many have said that you can't theme odex rom but aamikam proved them wrong.

Here is an explanation from Damage from the DamageControl rom:
http://forum.xda-developers.com/showpost.php?p=6782283&postcount=2
Theres plenty of debate over what is faster/better to use, im not going to take sides in this one. This is just information about what the differences in the two are, try for yourself.
Deodex basically takes the odex file and stuffs it into the apk as a classes.dex. First boot it dissembles the file into /dalvik-cache (i believe). Now there is basically 2 copies of the odex, one in the apk one in cache. This makes it "portable". This allows modders to work on the apks & easily change stuff. If you want themes or stuff like lockscreen fixes you MUST use Deodex.
Odex is how things come stock. It takes up less room but making modifications or taking apks from other roms is hard. You cannot use themes with this version!! To see odex in dcupdater you must go to menu -> configuration -> rom update settings -> display all roms & display experimental roms. Its marked experimental to avoid confusion because themes in dcupdater will not work with it.
Click to expand...
Click to collapse
Seems that yes, they can both technically be modded theme wise. But Deodex is just easier to work with.

edufur said:
Is we get closer to being able to flash roms onto the E3D, I am starting to think that I might want to go with an odexed ROM. But, I am wondering... if I do that, am I able to remove system apps? Also, how does this affect a zip alignment? If I CAN remove system apps from an odexed ROM, is the memory recovered as once again usable?
Thanks in advance.
Click to expand...
Click to collapse
Yes you could delete system apps, but you would also want to delete the corresponding odex file. No harm.
All the ROMs you see for the shooter will be zip aligned, so no worries.
Yes the memory would be useable, if a tweak like custom MTD is used, otherwise it would just shrink the /system usage. Hope this helps.
BANG! from my shooter...

Related

ROM Development! Your own ROM

What you need:
1.Root
2.Custom Recovery
3.Any ROM like LOL, MEGATRON, VOID, ETC ETC.
Tools
1.Root Explorer
2.Set CPU
3.Titanium Back Up
4.Absolute System root
5.Kernel zips (mik/cave/sippolo)
6.Metamorph app
Now many people say they do not like this rom, they don't like those system apps, I want to over clock, I like soppolo's kernel, I want new boot animation blah blah blah.
So here you go:
1. Flash any rom.
2. Want different kernel, flash it.
3. Want to remove those nagging/unwanted system apps: use root explorer /titanium backup
4. Want to add system apps : paste in system/app folder and set permissions as rw, r,r.
5. Want to overclock/underclock:use SETCPU
6. Want to change boot animation/fonts: use Absolute system root.
7. For themes use the themes section. Or use Metamorph.
8. Want apps2sd: order Titanium Backup to move all your apps to SD. In one click your all /data/ apps are moved to a folder called mnt/secure/asec. You don't need to create ext partition.
Or
Flash darktremor
Guys this is not actually rom development, but customization/modification only.
But don't you think so many roms are actually modified versions of one rom? (Though I myself get excited to see new roms)
Actual rom development is like porting gb / cm / miui.
Just a teaser, but it might be practical for some.
Sent from my LG-P500 using Tapatalk
Guys this is just a teaser only. Sorry if I offended anyone.
Actually I myself always look forward to new ROMS.
MOD can move it to general category.
Sent from my LG-P500 using Tapatalk
this is actually good, but i think a different title would fit better. maybe "rom customization", just an idea. btw, some roms wont wosk with those methods, for example.
boot-animation changer wont work if the rom doesnt support boot-animation customizations, although this is rare.
metamorph wont work with non deodexed roms. very rare but do exist
so i'm just suggesting some few notes about it

Need important advice on Themeing.

Hi guys. I was wondering a few things. When you theme your phone successfuly, Im under the asumption that if you re-theme it with another them it goes right on top of it correct? How do you remove a theme and is it possible to do that? Or if there are different thems out there you like, how do you go about switching them out? Just keep putting them on top of eachother? Any advice would be great. Thanks guys.
--> [GUIDE] Want to learn how to theme? <--
tonecreationz said:
--> [GUIDE] Want to learn how to theme? <--
Click to expand...
Click to collapse
I appreciate the link. But all its showing me is how to actually create a theme. I cant find where the answers to my questions are for the person that just installs the themes but doesnt make them?
Depending on what version of software you are running (1.26, 1.57, 1.83 ATT) I think the best method to completely re-theme is to use a program like Titanium Backup * Root, free version from the market, to back up your apps and data. SBF flash the proper version of deodexed files for your current software version to completely eradicate the current theme. After that apply your new theme and then re-install Titanium Backup to restore your apps and data.
You will most likely need to use gingerbreak to regain root after flashing the SBF. Since this will, most often, result in a clean wipe of your internal and external SD card, make sure to back them both up to your computer before flashing the SBF and proceeding. That way you can just put anything back onto the internal or external memory that isn't put back by titanium.
Putting one theme on top of another really won't hurt anything most of the time, but if the new theme doesn't use all of the same files as the previous theme did then you will end up with items from the old version that weren't replaced.
Terrigno said:
Hi guys. I was wondering a few things. When you theme your phone successfuly, Im under the asumption that if you re-theme it with another them it goes right on top of it correct? How do you remove a theme and is it possible to do that? Or if there are different thems out there you like, how do you go about switching them out? Just keep putting them on top of eachother? Any advice would be great. Thanks guys.
Click to expand...
Click to collapse
You can pull fresh copies of everything that the themes change (framework-res.apk, services.jar, blur-res.apk, are the main ones) and make a CWM update with those in it. Then you can install a theme, and in order to uninstall it all you need to do is go into CWM and use the backup update.zip.
To switch themes, I just keep all themes I have downloaded in a folder called THEMES on my phone. I just boot into CWM and use the backup .zip I made, then I install the new theme .zip and reboot.
If your talking about Gingerblur/Grey blur I think a SBF flash would be your best way to uninstall.
Thanks for the tip guys. I actually had GingerBlur installed before but wasnt all that fond of it. I went ahead and flashed the sbf of 1.8.3 back. Now I have the HoneyGlow theme installed and actually I like it a lot. I was just wondering what its like re-flashing themes over top of themes. I have Tansfers (I think thats the name) Recovery already installed with root access. I got the files already saved on the computer, but thats good advice to put the updates in folders on the phone and do it that way.
Yes, now On im gonna take that external SD card out when I flash. I also tried using Titanium and having a hard time with understanding how it works fully lol.
Terrigno said:
Thanks for the tip guys. I actually had GingerBlur installed before but wasnt all that fond of it. I went ahead and flashed the sbf of 1.8.3 back. Now I have the HoneyGlow theme installed and actually I like it a lot. I was just wondering what its like re-flashing themes over top of themes. I have Tansfers (I think thats the name) Recovery already installed with root access. I got the files already saved on the computer, but thats good advice to put the updates in folders on the phone and do it that way.
Yes, now On im gonna take that external SD card out when I flash. I also tried using Titanium and having a hard time with understanding how it works fully lol.
Click to expand...
Click to collapse
yes you can flash new themes on top of old ones. They just replace various framework files. all themes modifies the same set of framework files pretty much. so when you flash on top, it overwrites the current one with the new one, that's it. the important thing to remember is to flash a theme meant for your rom because framework files can change from rom to rom, so you may get bootloops (soft bricks) if you flash incompatible frameworks.

[Q] Not your normal tether question

OK so this probably sounds backwards from what everyone would expect. I've been using attn1's Liberated 2.2.2 FR008 rom and adding/removing apps to suite my needs. But now I want to REMOVE usb & wifi tethering! Sounds crazy but this phone is for a kid. I don't know much about developing. I'm guessing these features are built in to the OS, if so do I need to just get a custom settings.apk that doesn't give the tether options OR is there an apk i can remove (many of the apks in that rom have name that I'm not sure what they do so I left them in)? Any help would be really appreciated!
smokinbanger said:
OK so this probably sounds backwards from what everyone would expect. I've been using attn1's Liberated 2.2.2 FR008 rom and adding/removing apps to suite my needs. But now I want to REMOVE usb & wifi tethering! Sounds crazy but this phone is for a kid. I don't know much about developing. I'm guessing these features are built in to the OS, if so do I need to just get a custom settings.apk that doesn't give the tether options OR is there an apk i can remove (many of the apks in that rom have name that I'm not sure what they do so I left them in)? Any help would be really appreciated!
Click to expand...
Click to collapse
I guess you'd just have to get a new rom which does not have those options (none that I know of), but I still don't see why you need those options removed. Even if it is for a child, it doesn't really make a difference. The options can still be there and just not be used.
didnt the stock 2.1 NOT come with tethering? Its been a while, but I think thats how I remember it. So couldnt you just revert to a 2.1 rom?
CallMeAria said:
didnt the stock 2.1 NOT come with tethering? Its been a while, but I think thats how I remember it. So couldnt you just revert to a 2.1 rom?
Click to expand...
Click to collapse
Yes, the original AT&T 2.1 ROM did not have a tethering app.
tpbklake said:
Yes, the original AT&T 2.1 ROM did not have a tethering app.
Click to expand...
Click to collapse
Right, but I can't figure out how to remove the junk apps ect. from the RUU before flashing it like I can with a custom just by deleting apk's from the .zip file. Any ideas?
theonew said:
I guess you'd just have to get a new rom which does not have those options (none that I know of), but I still don't see why you need those options removed. Even if it is for a child, it doesn't really make a difference. The options can still be there and just not be used.
Click to expand...
Click to collapse
And just how do you leave the options there and be sure they will not be used??
I'm no dev but i think if you flash back to ATT 2.1 Rom and re-root to get super user i think you'll be abel to delete your ATT softwear with titanium backup... but I'm not sure. I hope this works for you
smokinbanger said:
Right, but I can't figure out how to remove the junk apps ect. from the RUU before flashing it like I can with a custom just by deleting apk's from the .zip file. Any ideas?
Click to expand...
Click to collapse
you can use adb to remove the apk's from the /system partition while the phone is in recovery after you flash the stock 2.1 RUU. You may have to reflash clockwork recovery after this, not sure if it will revert to stock recovery or not. Also, not sure on this one but you can check out the 2.1 Liberated Rom in the dev section and see if it has tethering enabled or not. Trying to remember this off the top of my head but its been so long since Ive done anything 2.1...
Yes, running the 2.1 RUU will remove Clockwork. So the full process would be to run the 2.1 RUU on the phone, then once done, run Unrevoked again on the phone. At this point I would recommend taking a Nandroid backup so you can revert any changes you make (i.e., if you have problems after deleting one of the apps).
Then you need to use adb to remove apps while the phone is in Recovery mode.
The downside of this (compared to just leaving the phone with stock 2.1 after using the RUU) is that Unrevoked automatically gives you root access in the ROM, which may or may not be what you want.
drumist said:
Yes, running the 2.1 RUU will remove Clockwork. So the full process would be to run the 2.1 RUU on the phone, then once done, run Unrevoked again on the phone. At this point I would recommend taking a Nandroid backup so you can revert any changes you make (i.e., if you have problems after deleting one of the apps).
Then you need to use adb to remove apps while the phone is in Recovery mode.
The downside of this (compared to just leaving the phone with stock 2.1 after using the RUU) is that Unrevoked automatically gives you root access in the ROM, which may or may not be what you want.
Click to expand...
Click to collapse
Root access to the rom is fine. But if I remove apks using adb aren't they still in the boot.img making it possible to simple do a system wipe/ hard reset and thus bring back all the junk apps in the stock 2.1 rom??
With all the DEVS on here it seems like there is a cleaner way to do all this...
smokinbanger said:
Root access to the rom is fine. But if I remove apks using adb aren't they still in the boot.img making it possible to simple do a system wipe/ hard reset and thus bring back all the junk apps in the stock 2.1 rom??
With all the DEVS on here it seems like there is a cleaner way to do all this...
Click to expand...
Click to collapse
No. System wipe would not revert the apps.

[Q] Customizing CyanogenMod 10.2 prior to installing

As the topic states, there are a bunch of prebundled apps that come with cyanogen I'd like to remove & replace (listed below); is it as simple as removing them from the .zip and adding the ones I want? Or is there more to it?
Also the apps I want to add, can I also include their backup data from the /data folder or does that have to be done after?
I think its just as simple as, extracting the zip files, removing the apks, and adding the ones I want, then repacking the zip?
Replace:
- Apollo with Poweramp
- Trebeck (or w/e it is) with Nova Prime
- AOSP Keyboard with SwiftKeyboard
- a custom kernel (just copy/replace the kernel zips files with whatever comes in cyanogens zip?)
- some others, but you get the gist
Remove:
- DSP Manager
- Exchange Services
- Email
- News & Weather
- some others (I know about the list(s) of safe apps to delete [1][2])
Add:
- Fonts
- Apps that I always install on a fresh install (Titanium Backup, Busybox, ROM Toolbox, etc)
I know about This Thread explaining how to build your own ROM, but I feel like that is more complicated process for (what seems simple) what I want to do.
BUMP
Bumping this question
I have done this with mr-cook's cooked ROM but have never tried it on a cm one. Sammy roms you just cut and paste the apk into the preload folder. I don't see why couldn't do that with the gapps zip. If it doesn't work you can just wipe and start over.
Also you can use titanium back up pro to do the same thing within the ROM
razen_kain said:
I have done this with mr-cook's cooked ROM but have never tried it on a cm one. Sammy roms you just cut and paste the apk into the preload folder. I don't see why couldn't do that with the gapps zip. If it doesn't work you can just wipe and start over.
Also you can use titanium back up pro to do the same thing within the ROM
Click to expand...
Click to collapse
i would put them in the /preload folder? i thought i would put them with the other .apks (/system/app/)?
ksaul said:
i would put them in the /preload folder? i thought i would put them with the other .apks (/system/app/)?
Click to expand...
Click to collapse
That is if you were using a Samsung based ROM. I don't think cm will be the same but like i said you can try it.
On a Samsung ROM it would need to be placed in preload/symlink/system/app in the zip file before you flash it. I don't think cm has this file.
You could try putting it in the system app file But like i said if it doesn't work, the worst thing that could happen is the ROM doesn't flash, doesn't boot, or it boots and you get a bunch of fc of apps. All you have to do is wipe and start over.
ksaul said:
is it as simple as removing them from the .zip and adding the ones I want?
Click to expand...
Click to collapse
Yes.
ksaul said:
Also the apps I want to add, can I also include their backup data from the /data folder or does that have to be done after?
Click to expand...
Click to collapse
Not as easy as the apps as it would require changes to the updater script. Plus it could cause issues.
ksaul said:
I think its just as simple as, extracting the zip files, removing the apks, and adding the ones I want, then repacking the zip?
Click to expand...
Click to collapse
Actually your better off if you just use 7zip or WinRAR and open the zip instead of extract it. Navigate to the system apps folder and delete or add what your need to. It's as simple as drag and drop.
ksaul said:
Add:
- Fonts
- Apps that I always install on a fresh install (Titanium Backup, Busybox, ROM Toolbox, etc)
Click to expand...
Click to collapse
The fonts I have no clue. These apps would require changes to the updater script to put them in data where they belong.
Sent from my SGH-S959G
mr-cook said:
Yes.
Not as easy as the apps as it would require changes to the updater script. Plus it could cause issues.
Actually your better off if you just use 7zip or WinRAR and open the zip instead of extract it. Navigate to the system apps folder and delete or add what your need to. It's as simple as drag and drop.
The fonts I have no clue. These apps would require changes to the updater script to put them in data where they belong.
Sent from my SGH-S959G
Click to expand...
Click to collapse
great thank you mr-cook!
and the .apks that i put in the system/app folder, (specifically Nova launcher), i put the install .apk correct, as thats the only .apk i have for it.
And I also want to replace Browser.apk with Chrome; same procedure as the rest?
I guess its really just a trial-and-run scenario instead of asking questions... best way to learn
for those curious, or come across the same question: it worked out perfectly.
As far as the fonts go, I just added them to the system/fonts folder- worked as planned!

[D6603] 23.0.1.A.5.77 Telenor + debloated version

So, this is just a pristine (as "untouched" as possible) image of the Norwegian telenor one.
What I have done:
I've extracted everything, deodexed it, and put everything, excluding all useless junk, in here. Nothing is edited or removed.
All I've added is SuperSU, busybox and ES File explorer. And changed /system/etc/customization/settings/config.prop so the phone is in US English on first boot. (Well, that's the only thing I've edited)
Only files that aren't deodexed are playstationcertified.odex and com.android.nfc_extras.odex. There's no .jar-files for them so...
I copied playstationcertified.odex to com.playstation.playstationcertified.odex since AndroPlus mentioned something about it somewhere. Don't know how important this is.
What kernel should I use with this?
I'd recommend AndroPlus' work any day. It's awesome! So head over and hit that thanks-button for him to show how awesome you think it is!
http://forum.xda-developers.com/showpost.php?p=56439759&postcount=1
If you do use one of his 27-and-on-kernels you can format /system and /cache as F2FS.
Do not format /data as F2FS though. Do not do it. The phone won't boot if /data is formatted as F2FS.
Don't know why not.
If this bricks your phone or whatever else problem arises, I'm not responsible or of much help.
All I can vouch for is it runs fine on my D6603 Z3 phone. With /cache and /system formatted as F2FS.
(Also runs fine with /cache and /system as ext4, if you're wondering)
Does it work with a locked or unlocked bootloader?
It works with an unlocked bootloader. Don't know if it works with a locked one, mine is unlocked.
Here you go:
shrunk-D6603_23.0.1.A.5.77_R12B_Telenor.zip
Here are the files that have been removed:
http://www.mediafire.com/download/vybrb0k5l0s5coy/removed.zip
They're just collected in a zip-file with various folders that tells you where they belong. So you can just take what ever you feel is missing and put it "back" in place in the shrink-zip above.
Here is the original (but still deodexed) thing in one big chunk:
http://www.mediafire.com/download/85evwwlu7fn7vul/23.0.1.A.5.77_Telenor.zip
Just for the sake of the challenge, here is as small as I manage to squeeze it. Just about 1GB on the phone after first installation (420MB as a download).
1. The background is "black" on boot. You need to touch and hold the screen, choose "themes", and select the one theme there is. There is no longer any automation-process that does this on first boot.
2. You need to set language yourself. Go to "settings", "language and keyboard", and change it to the language of your preference.
3. You now have a small ROM on your phone!
http://www.mediafire.com/download/0ei9bjbb8dfn99c/small-D6603_23.0.1.A.5.77_R12B_Telenor.zip
"But I need this and that program, can't you add..."
You do it! Just put what ever program you have or want in to /system/app on the phone (that is, in the zip-file). Some programs needs to be in /system/priv-app (they will force close on you until you put them in /system/priv-app - to really confuse you, playstation app has to be in /system/etc/product/applications, or it won't work. Why I have no idea...).
"But nothing happens when I hit the search bar on top..."
I removed Google Search. If you want it you can put it in /system/priv-app.
"I want to add wallpapers and ringtones"
Here you go. Just add ringtones and wallpapers to their respective folders and zip up, then install just like you'd install a ROM.
http://www.mediafire.com/download/5f5745fo5jlu4qb/add-ringtones-wallpapers.zip
Gonna give this a go later..
Just wondering, if you have already done the drm restore method listed in androkernel thread do you lose it when you flash a rom via zip? Is there anyway to get the drm fix to work on this rom?
Thanks!
Guitarfreak26 said:
Gonna give this a go later..
Just wondering, if you have already done the drm restore method listed in androkernel thread do you lose it when you flash a rom via zip? Is there anyway to get the drm fix to work on this rom?
Thanks!
Click to expand...
Click to collapse
No, I haven't. My point is generally just to make a "pristine" ROM. That is, I've removed what I don't think is needed (I'll upload the "leftovers" in a zip, after doing some more work), but other than that, this is just the way the original ROM was.
With added root and a file explorer.
But it's not that hard to add the stuff from that zip-file. They're just a few files that are extracted to overwrite some files in /system. Just open up the drm-zip and you'll see. The script for DRM doesn't do anything other than just extract (and overwrite) the files inside the zip. So if you want, you could just try to add those files to this and make that happen yourself.
What's the process for getting it as f2fs? Total novice with file systems but saw you guys talking about it in the kernel thread? Is it a case of installing it then converting in twrp?
Sent from my iPhone using Tapatalk
Has anybody tried this on locked bootloader?
The OP says they don't know since they have unlocked bootloader.
Thanks
@Verbato, please for next build i request 2 things, 1. Please remove the wipe internal storage upon flashing, 2. Please add the clock and calendar back, i think many users feel the way i do saying the clock and calendar are vital system apps that were removed, thanks for your work, the rom is smooth and fast with f2fs
corpsegrinder62 said:
@Verbato, please for next build i request 2 things, 1. Please remove the wipe internal storage upon flashing, 2. Please add the clock and calendar back, i think many users feel the way i do saying the clock and calendar are vital system apps that were removed, thanks for your work, the rom is smooth and fast with f2fs
Click to expand...
Click to collapse
Whats the best way to set it up with f2fs? Op said he will release a zip soon with missing apps etc
Guitarfreak26 said:
Whats the best way to set it up with f2fs? Op said he will release a zip soon with missing apps etc
Click to expand...
Click to collapse
The easiest way i done it is i used androplus kernel v27 with multirom twrp 2.8.5, flash with fota if u need to. Go to wipe, advanced wipe, tick which partition you want, eg. System, click change/repair file system - F2FS, do it with system and cache, just be warned - it will wipe both /data and /data/media so backup first. Last step is flash rom zip, sit back, relax, and enjoy f2fs partition, you should notice apps launch tons faster after doing it. Cannot format /data to f2fs though as op mentioned, system and cache only.
@Corpsegrinder Sure, no problem. If it's annoying you, the wiping of /data, I can just send you a new updater-script. It's inside of META-INF. If you download the first file over you'll find calendar and clock in /system/app. They're called "SemcClock.apk" and "SemcCalendar.apk".
I'll remark out the /data-wipe and add clock+cal in the next update.
Updated. No deletion of any data in... data. Added calc and calender. Will put in some work to make it even smaller. Means quicker, means less CPU-usage, and so less battery usage.
corpsegrinder62 said:
just be warned - it will wipe both /data and /data/media so backup first
Click to expand...
Click to collapse
Not any more.
Working on making it a slight bit smaller/quicker/etc.
Root and recovery
Hi. I really appreciate your work putting a debloated rom together for us.
I'm quite new to Z3 roms and feel quite overwhelmed by all the technical info in the various threads. Do you know if/how I can flash this with TWRP and keep the phone rooted?
I did the downgrade/giefroot/recovery process that doesn't need to unlock bootloader, so I'm sitting on the .93 build for now.
KnuckleSnackwich said:
Hi. I really appreciate your work putting a debloated rom together for us.
I'm quite new to Z3 roms and feel quite overwhelmed by all the technical info in the various threads. Do you know if/how I can flash this with TWRP and keep the phone rooted?
I did the downgrade/giefroot/recovery process that doesn't need to unlock bootloader, so I'm sitting on the .93 build for now.
Click to expand...
Click to collapse
Download and pre-root .77 with PRFCreator, flash it through recovery, re-flash recovery itself, switch off and then on again (dnt reboot)
I really like this since i hate bloatware. Is there any chance to get a lollipop version with minimal to no bloatware?
Will this work on the D6616?
any link for AndroPlus kernel? link in OP not working. thank you.

Categories

Resources