I've recently gotten into Android Development and I am thinking of getting into (or attempting to) ROM development. For starters, my main question here is:
What is the difference between the two in the modding sense? I understand Odex is harder to theme, but does this also cause problems in mods like the 5-reboot options mod or the surround sound mod?
If so, is this limited to all mods of any kind and why do these errors occur?
I am not asking for flamers or sarcastic responses. I need a serious answer as I am seriously hoping to start spending my free time with development wherever possible.
Thanks for your time!
I'm just a user and not a developer, but as far as the surround sound mod, I don't think those files are odexed even in the OEM stock ROM, so I don't think it matters. I believe odexed files are only in /system/app and /system/framework, so perhaps any mods to files in other places don't care if you're odexed or deodexed..
YrrchSebor said:
I'm just a user and not a developer, but as far as the surround sound mod, I don't think those files are odexed even in the OEM stock ROM, so I don't think it matters. I believe odexed files are only in /system/app and /system/framework, so perhaps any mods to files in other places don't care if you're odexed or deodexed..
Click to expand...
Click to collapse
Thanks for the response! I'm pretty sure you're right about that.
Numzi said:
Thanks for the response! I'm pretty sure you're right about that.
Click to expand...
Click to collapse
Also, it seems like sometimes you can use a deodexed file even if the rest are odexed...... as long as you remove all the pieces of the odex file and replace it with the deodexed one. I've done it in the past anyway, pre-lollipop.
Well for you and everyone else the roms are de odexed this way u can use tools to decompile the dex files. Anything java related is inside the dex files the rest for the most part is xml configuration and image . For themes you might get away with xml modifications but some tweaks even some colors are in Java.
Related
Honestly, I do not know how much interest there will be in this, but throughout my own exploration and experimentation with Android and the Epic 4G I feel like sharing my finds with the community.
I kanged this tool from HERE so thanks to Daneshm90 among other people who are thanked in the tool itself. All I really did was add a few BOOTCLASSPATHS to the *APK.bat files to get it to deodex all the apks, and update smali/baksmali to version 1.2.6 (newest as of 3/25/11).
Basically this is a one click tool to deodex stock, odexed system/framework and system/app folders on a windows machine. I tested on the ACS Untouched Stock EC05 ROM and got clean runs where everything became deodexed.
Tips: I found it best to do system/framework first in one run, then leave the output in deodexed_JAR, and THEN process system/app as many of the files in the app folder have dependencies on the jars.
After processing system/framework you will have framework-res.apk and twframework-res.apk which do not need deodexing.
In early testing, I found certain files leftover after a run processed on the next run. This stopped after updating smali/baksmali. I doubt I'll be of much help if you run into problems, you are doing EVERYTHING at your own risk. I barely understand the details here, I just ported it to work on our phone, so good luck!
Deodexed 2.3a Download
Thanks for this!
Good tool for those that want stock with.a theme.
Sent From My Evo Killer!
Mind if I throw this in the EPIC 4G cookbook?
amosher13 said:
Honestly, I do not know how much interest there will be in this, but throughout my own exploration and experimentation with Android and the Epic 4G I feel like sharing my finds with the community.
I kanged this tool from HERE so thanks to Daneshm90 among other people who are thanked in the tool itself. All I really did was add a few BOOTCLASSPATHS to the *APK.bat files to get it to deodex all the apks, and update smali/baksmali to version 1.2.6 (newest as of 3/25/11).
Basically this is a one click tool to deodex stock, odexed system/framework and system/app folders on a windows machine. I tested on the ACS Untouched Stock EC05 ROM and got clean runs where everything became deodexed.
Tips: I found it best to do system/framework first in one run, then leave the output in deodexed_JAR, and THEN process system/app as many of the files in the app folder have dependencies on the jars.
After processing system/framework you will have framework-res.apk and twframework-res.apk which do not need deodexing.
In early testing, I found certain files leftover after a run processed on the next run. This stopped after updating smali/baksmali. I doubt I'll be of much help if you run into problems, you are doing EVERYTHING at your own risk. I barely understand the details here, I just ported it to work on our phone, so good luck!
Deodexed 2.3a Download
Click to expand...
Click to collapse
This is awesome...... GREAT WORK.....
Okay so this sounds interesting and all...But how does one use it??
tphillips said:
Mind if I throw this in the EPIC 4G cookbook?
Click to expand...
Click to collapse
Go right ahead!
sent from my mind to yours
youngpro83 said:
Okay so this sounds interesting and all...But how does one use it??
Click to expand...
Click to collapse
Just take an odexed frame work, put it in the folder and run deoall.bat, then repeat for app. Pretty much it, if you don't know the point then you probably don't need it, lol
sent from my mind to yours
Thanks dude
Thanks bro good work
Anyone give this a shot yet?
blazinazn said:
Anyone give this a shot yet?
Click to expand...
Click to collapse
Yea I tried using it to deodex my eco5 stock rom, and it ran clean and gave output, but the output wouldn't boot.. I ended up going a diff route which included using a tool made for another phone and doing some by hand...
Sent from my SPH-D700 using XDA App
Hello everybody
Im wondering how is a deodexed rom different from the stock room, I do know that deodexed Roms make the hacking part easier but i would like to know why; I'm curious and how is the process made?
thanks in advance
Zixx.
Google is your friend.
http://forum.xda-developers.com/showpost.php?p=6782283&postcount=2
====================
Odex vs Deodex
====================
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!!
thanks for the Info man
deodexed basically just makes adding modifications to your phone easier then odexed
So I love my tweaked and modded ICS 4.0.4 rom. It's blazing fast, killer battery life and I couldn't be happier.. okay I lied. there's some framework-res.apk mods I would realllllly love to flash but I have not idea how to bundle/bake a flash package that includes the ones I want.
I would like to have;
1. Extended reboot menu
2. Either the WP7 or Sense 4.0 multitasking switcher
3. The full album art lockscreen mod
4. any others I don't know about?
But they are all separate framework-res.apk 's and flashing them over eachother either removes the previous mod all together or borks the system.
Any help would be greatly appreciated
delete
alexdemonumber3 said:
I remember when people on XDA were were helpful and nice..
Click to expand...
Click to collapse
It hasn't even been a day yet lol.
You'll need to find out how each tweak was implemented (you can do this by browsing individual decompiled frameworks), then use one of them as a base and implement the other tweaks. Decompile, tweak, recompile and sign/zipalign. For Odexed rooms like stock you'll also need to create a .odex file. Unsure how to do that myself.
Harbb said:
It hasn't even been a day yet lol.
You'll need to find out how each tweak was implemented (you can do this by browsing individual decompiled frameworks), then use one of them as a base and implement the other tweaks. Decompile, tweak, recompile and sign/zipalign. For Odexed rooms like stock you'll also need to create a .odex file. Unsure how to do that myself.
Click to expand...
Click to collapse
thanks for the reply! its the deodexed stock and that's why its so snappy. but I will see what I can do with it in the morning wth the info you gave me. muchos gracias!
Sent from my Nexus S using xda premium
hello guys,
I am in the learning process making custom ROM from DXKT7 stock rom with dsixda kitchen, with my little knowledge about linux stuff (really little), it's still a long way for me becoming great dev like tj_style or squadzone, but still I wanna learn little by little.. I believe everyone start from n00b, but not all ended up a pro
so allow me asking a few silly n00b question,
1. I've seen many custom rom that have smaller size compare than stock rom, and thus make the performance increases.. so which app/file are safe to remove (bloatware) ? I have search the forum but didn't find the thread explaining about this..
I hope there are devs who humbly answer this question, even provide the list, I really appreciate that
2. does any app in /system/app folder has any dependency/correspondency with another file from another folder (e.g. /system/app/SamsungApp.apk with /system/framework/com.samsung.android.sec_platform_library.jar) ? does it mean if we gonna remove/replace the apk in app folder then we must also remove the file in that other folder?
3. if we gonna replace some apps (apk), does it just drag and drop or there is other thing needed to do?
pardon my silly n00b question guys, and my bad english too..I really hope there are devs who can answer my question,thanks in advance
Prodai said:
hello guys,
I am in the learning process making custom ROM from DXKT7 stock rom with dsixda kitchen, with my little knowledge about linux stuff (really little), it's still a long way for me becoming great dev like tj_style or squadzone, but still I wanna learn little by little.. I believe everyone start from n00b, but not all ended up a pro
so allow me asking a few silly n00b question,
1. I've seen many custom rom that have smaller size compare than stock rom, and thus make the performance increases.. so which app/file are safe to remove (bloatware) ? I have search the forum but didn't find the thread explaining about this..
I hope there are devs who humbly answer this question, even provide the list, I really appreciate that
2. does any app in /system/app folder has any dependency/correspondency with another file from another folder (e.g. /system/app/SamsungApp.apk with /system/framework/com.samsung.android.sec_platform_library.jar) ? does it mean if we gonna remove/replace the apk in app folder then we must also remove the file in that other folder?
3. if we gonna replace some apps (apk), does it just drag and drop or there is other thing needed to do?
pardon my silly n00b question guys, and my bad english too..I really hope there are devs who can answer my question,thanks in advance
Click to expand...
Click to collapse
First of all you are not a noob you are a learner and newbie..dats good u have started on your own..
Answers..
1.if you dont want odexed rom then delete odex files from system/app and they are duplicates..so delete their duplicates..
2.yes some apks are depended on frameworkres.apk for example touchwizz.apk...do delete other apps like youtube,email etc
3.if you are doin on pc copy/paste method is efficient..
I m also doin the same..m getting bootloop on my 1st testbuilt..
Raj joshi said:
First of all you are not a noob you are a learner and newbie..dats good u have started on your own..
Answers..
1.if you dont want odexed rom then delete odex files from system/app and they are duplicates..so delete their duplicates..
2.yes some apks are depended on frameworkres.apk for example touchwizz.apk...do delete other apps like youtube,email etc
3.if you are doin on pc copy/paste method is efficient..
I m also doin the same..m getting bootloop on my 1st testbuilt..
Click to expand...
Click to collapse
thank u for the answer raj
1. did u mean deodexing the rom? yes I have deodexed the rom using dsixda kitchen, so the odex files no longer exist. but I want to remove other app/file that are safe to remove, so I can increase the performance of the rom and make a free space/ smaller rom size. or so to say, I want to slim down the rom. can u tell me what app u have been removed from the stock raj?
2. that's what I think, thank u for confirming raj
so now I'm gonna have to take a look at each folder
3. ok, thank u raj. +1 for u.
Prodai said:
thank u for the answer raj
1. did u mean deodexing the rom? yes I have deodexed the rom using dsixda kitchen, so the odex files no longer exist. but I want to remove other app/file that are safe to remove, so I can increase the performance of the rom and make a free space/ smaller rom size. or so to say, I want to slim down the rom. can u tell me what app u have been removed from the stock raj?
2. that's what I think, thank u for confirming raj
so now I'm gonna have to take a look at each folder
3. ok, thank u raj. +1 for u.
Click to expand...
Click to collapse
Making slimmer rom means deleting extra large stuffs and unwanted junk..see u can make slim stock by deleting some apps in system/app lyk i said before youtube,email,samsung app & new twlauncher by replacing stock..then delete unwanted ringtones etc.. u r done mine rom is jsr 110mb..dats slim at initial basis..i will improve it..
Ok let me get into this straight deleting a couple of apps and slimming it down won't increase the performance..if you still want some Samsung apps and Google apps... And for performance its all about a good kernel.... Ya some apps have dependencies.. Like gtalk needs few location and network based libs and jar files to work any doubts.?? I post a reply I will be happy to help you out...
sent from cyanmobile powered Beni
speed_bot said:
Ok let me get into this straight deleting a couple of apps and slimming it down won't increase the performance..if you still want some Samsung apps and Google apps... And for performance its all about a good kernel.... Ya some apps have dependencies.. Like gtalk needs few location and network based libs and jar files to work any doubts.?? I post a reply I will be happy to help you out...
sent from cyanmobile powered Beni
Click to expand...
Click to collapse
so it means to improve the performance of stock-rom based, we gotta improve the kernel, not deleting the file (and here I thought it will increase available memory/ram because some services is not there anymore :silly: ). but it nice to have cyanmobile maintainer answered this n00b question, thank u, +1 for u
I'm learning how to compile the kernel and add some features, but still it's a looong way for me to go. not kernel yet. I think I shall try with wilfred007. just replace the boot.img right? or should I extract it with dsixda's kitchen and just take the zimage?
edit : I tried replacing boot.img and flashed it.. bootlooooppp.. is it update script? but when I repacked it with dsixda it says no error found.. am I missing something here?
Prodai said:
so it means to improve the performance of stock-rom based, we gotta improve the kernel, not deleting the file (and here I thought it will increase available memory/ram because some services is not there anymore :silly: ). but it nice to have cyanmobile maintainer answered this n00b question, thank u, +1 for u
I'm learning how to compile the kernel and add some features, but still it's a looong way for me to go. not kernel yet. I think I shall try with wilfred007. just replace the boot.img right? or should I extract it with dsixda's kitchen and just take the zimage?
edit : I tried replacing boot.img and flashed it.. bootlooooppp.. is it update script? but when I repacked it with dsixda it says no error found.. am I missing something here?
Click to expand...
Click to collapse
no need to repack unpack... just change the boot.img... as far as the kernel goes.. the less is the size of zimage the more is its performance...
in order to get a good kernel strip unncessary stuff from it.... i could provide a nice way to go about learning kernels..start with a bit of c..then read the zcop thread atleast twice(no copy pasting) understand what each code does...then look through github commits of higher devs...
and dont call yourself a noob a newbie would be better...
hi
i'd like to know how i can deodex my stock rom
i have a razr hd xt925
thanks
inb4: Sorry for posting in old Thread.
Same Question here, would be great to have stock deodexed.
Hope you can help me
If you don't plan on doing any themeing, there is absolutely no reason to deodex. There is no battery saving, or speed increase by doing it. Most of the time you only need system ui and framework res deodexed to do any simple themeing and mods.
Anyway, when I get back to a computer I'll post a link to the tool I use.
Sent from my DROID RAZR HD using Tapatalk 4
mentose457 said:
If you don't plan on doing any themeing, there is absolutely no reason to deodex. There is no battery saving, or speed increase by doing it. Most of the time you only need system ui and framework res deodexed to do any simple themeing and mods.
Anyway, when I get back to a computer I'll post a link to the tool I use.
Sent from my DROID RAZR HD using Tapatalk 4
Click to expand...
Click to collapse
I was planing to Theme a little, with the Help of XPosed framework, which don't seem to work on odexed roms.
Next thing is, that it's really annoying, to rename twice as much files, if you wnat to change some system apps
Thanks for your help in advance
esok44 said:
I was planing to Theme a little, with the Help of XPosed framework, which don't seem to work on odexed roms.
Next thing is, that it's really annoying, to rename twice as much files, if you wnat to change some system apps
Thanks for your help in advance
Click to expand...
Click to collapse
This is what I use: http://forum.xda-developers.com/showthread.php?t=2213235
Seems to be a nice tool.
I got one Question.
Am i getting this right, i pull the apk's from my phone, use the Tool and afterwards i push them back to /system/app?