Related
I've been seeing those words a LOT in recent threads.
Any detailed explanation on them please?
[search] deodex [/search]
Berzerker said:
De-odex: Apk files have respective odexes that devs use to supposedly save space. Deodexing means you convert it back to a .dex file and put it back inside the apk. This allows you to easily replace files (not having to worry about odexes), but the main point was to deodex services.jar so that you can change all text to different colors (such as the clock color to white) and to deodex services.jar, you need to deodex everything.
Click to expand...
Click to collapse
danknee said:
[search] deodex [/search]
[/I]
Click to expand...
Click to collapse
How does it matter to regular user?
donniezazen said:
How does it matter to regular user?
Click to expand...
Click to collapse
Themes mostly.
sk63 said:
Themes mostly.
Click to expand...
Click to collapse
Thanks. Are themes available in Deodex or Odex? Sorry for noob questions.
Related question also....
- Which can live with which? (Deodexed ROM + Odexed Theme? or Odexed ROM + Deodexed Theme?)
You know, like type O is universal donor and type AB is universal recipient...do these work similar or only deodexed with deodexed...?
(where is that darn wiki??)
sablesurfer said:
Related question also....
- Which can live with which? (Deodexed ROM + Odexed Theme? or Odexed ROM + Deodexed Theme?)
You know, like type O is universal donor and type AB is universal recipient...do these work similar or only deodexed with deodexed...?
(where is that darn wiki??)
Click to expand...
Click to collapse
Dear GOD,
Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?
Thank you,
A non-believer.
donniezazen said:
Dear GOD,
Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?
Thank you,
A non-believer.
Click to expand...
Click to collapse
Deodexed ROMs have their .apk's (which are basically the application packages) repackaged in a certain way. An "odex" can be thought of as a collection of parts of applications that have been pulled out and optimized before booting. This speeds up the boot process - in a way, it preloads part of the applications - but it also makes hacking those apps difficult because part of the original code is already extracted somewhere else.
Deodexing is just a process of putting those pieces back into the original applications. It takes a while to extract those parts and build the .dex cache (aka Dalvik cache), but only because the relevant parts aren't in an easy-to-access place for the system. The advantage of this is that an app can be modified effectively and the developer doesn't have to worry about conflicts from the separate odex part of the code.
So, short version: "Deodexed" ROMs have all their apps put back together. If an app can be themed, for example, a deodexed version of that app will not get messed up when the modified .apk tries to mesh with the odex of the original un-modified .apk. Because it's not there.
If you want an aftermarket theme, you need a deodexed ROM. I'm not sure if deodexing can be done to individual apps within a non-deodexed ROM.
I think that's the general idea, anyway.
sablesurfer said:
Related question also....
- Which can live with which? (Deodexed ROM + Odexed Theme? or Odexed ROM + Deodexed Theme?)
You know, like type O is universal donor and type AB is universal recipient...do these work similar or only deodexed with deodexed...?
(where is that darn wiki??)
Click to expand...
Click to collapse
You will never find an odexed theme since the odex file would contain things that needed to be changed, thus themes are deodexed. Themes basically just replace the .apk or .jar with their version, which wouldn't work on an odexed rom.
donniezazen said:
Dear GOD,
Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?
Thank you,
A non-believer.
Click to expand...
Click to collapse
Basically, Android uses a a java based virtual machine as the bases for running programs. This virtual machine is called Dalvik. A .dex file contains the cache used by the Dalvik VM (called Dalvik-cache) for a program and is stored inside the .apk. A .odex file is an optimized version of the .dex file which gets stored next to the .apk as opposed to inside the .apk. This process is done by default to system apps. Deodexing is the process of converting the .odex files back into .dex to be stored inside the .apk so that things can be more easily modified. So a deodexed rom is one that has been through the deodexing process. Deodex can just as easily be called Unodex or any other pre-fix you wish to use.
Hopefully that cleared that up.
EDIT: Darn, beaten.
Thank you all. So...themes are deodexed. And only run on deodexed rom...got it. Meaning...I need a deodexed version of the new Froyo to keep my white Rosie. Cool.
faster3200 said:
EDIT: Darn, beaten.
Click to expand...
Click to collapse
Yeah, but you clearly know it better than I do.
if you install a de-odexed rom, will the system automatically rebuild the Dalvik cache and appropriately odex the apk's, or is this something that a dev needs to do manually beforehand? In other words, are there any disadvantages to a de-odexed rom other than an initially slower phone? will the phone eventually rebuild the cache and perform as an odexed system would?
^bump^
Same question as vinconti - will a deodexed ROM run slower than an odexed one?
Thanks
<InigoMontoya>You keep using that word. I do not think it means what you think it means.</InigoMontoya>
Thanks for the explanations, all. I just rooted my D2 but haven't done any themes yet. This helps, but only from the standpoint of I'll have to get back into flashing. I thought I left that behind when I trashed my Omnia.
I have a regular odexed ROM. I replace some of the apk+odex files by deodexed APK's, so that seems to be no problem. But I was wondering whether this would also work for jar+odex files (e.g. android.policy.jar)....
kasper_h said:
I have a regular odexed ROM. I replace some of the apk+odex files by deodexed APK's, so that seems to be no problem. But I was wondering whether this would also work for jar+odex files (e.g. android.policy.jar)....
Click to expand...
Click to collapse
If this does actually work without problems does that mean we'd only have to de-odex certain .apks rather than the whole ROM?
KrushR said:
<InigoMontoya>You keep using that word. I do not think it means what you think it means.</InigoMontoya>
Thanks for the explanations, all. I just rooted my D2 but haven't done any themes yet. This helps, but only from the standpoint of I'll have to get back into flashing. I thought I left that behind when I trashed my Omnia.
Click to expand...
Click to collapse
Thanks for the Inigo moment. You made my night.
Question to the room: Do I need this deodexing thing just to install apps and run the wifi tether (the whole reason I'm venturing into root territory to begin with)? I don't care what it looks like, I just want it to provide wifi to my soon-to-be-rooted Nook Color. Thanks in advance.
But... All I want is WiFi tethering!
lngwstx said:
Question to the room: Do I need this deodexing thing just to install apps and run the wifi tether (the whole reason I'm venturing into root territory to begin with)? I don't care what it looks like, I just want it to provide wifi to my soon-to-be-rooted Nook Color. Thanks in advance.
Click to expand...
Click to collapse
This is pretty much my question as well. This whole Odex/Deodex thing is totally frying my brain.
I'm not trying to do anything fancy, I just want to use the WiFi tether feature. Which one is good enough for just doing THAT?
keep your advice for yourself
donniezazen said:
Dear GOD,
Please come down from heaven and explain by some magic show what the hell these deodexed and odexed means?
Thank you,
A non-believer.
Click to expand...
Click to collapse
keep your advice for yourself
How to Deodex?
Background
Samsung has released a few 2.2.1 for the europe region, while those in the Asia / Middle East regions are still having 2.2 roms, and no sign of whether Samsung is going to release it, if any at all.
I took the liberty to try having additional locale in the rom (not the MoreLocale or others available in the market) and manage to get it done.
I have tried it with the South East Asia rom, with languages available in thai, viet, simplified chinese, malay and indonesian.
Disclaimer
I'm not sure if it will work with other regions such as China and Hong Kong (ZS series), or Middle East (JP series), but those who have time to spare, and want to have an authentic 2.2.1 rom, can always try.
Also, even when it can be done, I'm pretty certain it is not a 100% fit, but would dare say in the region of about 95%.
Also, it would be a long and tedious process as each system app will be needed to decompile.
Tools Needed
Apk Manager 4.9 (courtesy of Daneshm90)
7zip compression utility
2.2.1 Rom (latest is WXJS5) which I have used
2.2 Rom (other regional rom) which in this case is DXJPE for my case
Instructions
1. Create separate directories for both roms and install / unzip the apk manager in each respective directories.
2. Copy the system apps (including framework-res.apk and twframework-res.apk) for each rom to the respective folders (place-apk-here-for-modding).
3. Decompile all the system apps for each rom.
4. Navigate to the projects folder and select the apps you want to start with (probably a good idea to start with framework-res.apk)
5. Go to the res folders and in it you will find all the values folders as well. Example:
- values-en-rGB folder
- values-en-rUS folder
- values-ko folder
- values-ko-rKR folder
6. Go to your 2.2 rom folder and do the same and you will notice that these are different from the 2.2.1 folder.
7. Copy those different values-xxxxxx folders to the 2.2.1 rom res directory.
8. Recompile the apk and in the process, select yes to keep all the info intact, and apk manager will generate a keep folder.
9. Delete the resources.arsc from this keep folder and proceed to complete the compilation.
10. You will now have the unsignedframework-res.apk in your place-your-apk-here-for-modding folder.
11. Open up this apk with 7zip and you will see the resources.arsc file which is compressed.
12. Drag this file out and close the 7zip program
13. Next, right click the resources.arsc and select Add to archive from the 7zip option.
14. Make sure your option is to store (not compressed) and click on the ... icon to select the file, in this case is the unsignedframework-res.apk. This method of doing is to ensure that your resources.arsc is changed from compressed format to store format (no compression).
15. That is your first change in adding locale.
16. Repeat the above steps for the rest of the apps (I know it is tedious but the experience is well worth it).
17. Create an update zip to store these modded files (make sure you delete the prefix unsigned from the apps).
18. Like everyone says, ALWAYS do a backup of your current rom.
Disadvantages
Your apps will definitely be bigger in size and hence occupy more space.
Advantages
This is as near as you get with your region on a 2.2.1
This can be done with any stock or customized rom.
I hope the above guide will be useful for those who has time to spare, and who is willing to try it.
Please let me know if this works for other regions as well.
Any questions, please ask.
Edit:
Download is available here for those who wants locale of the SEA region. Consist of some apps that were modded.
The attached image showed the comparison of the 2 framework-res.apk.
On the left is the 2.2 rom (DXJPE), with the values-in, values-id-rID (Malay and Indonesian), and the values-mcc204-zh-rCN as the chinese as well.
On the right is the 2.2.1 rom (WXJS5), with the values having the European languages as well.
What you need to do is find those files unique in the left side and copy these to the right side.
Recompile and that's it.
The second image showed the language (in this case simplified chinese) after i selected chinese as the locale after modding the Settings.apk as described above.
thanks its quiet useful, many of friends were looking for such a thing,
I'm also running middle east rom (jpg) which I like to try 2.2.1 with support of persian language. it should be possible by your tutorial.
I have one question:
17. Create an update zip to store these modded files (make sure you delete the prefix unsigned from the apps).
Click to expand...
Click to collapse
so you mean it is not necessary to sign the apk? just rename back to original?
taha_e said:
thanks its quiet useful, many of friends were looking for such a thing,
I'm also running middle east rom (jpg) which I like to try 2.2.1 with support of persian language. it should be possible by your tutorial.
I have one question:
so you mean it is not necessary to sign the apk? just rename back to original?
Click to expand...
Click to collapse
There is no need to sign system app. Just rename will suffice.
Sent from my GT-I9000 using XDA App
Useful guide. I've been meaning to do this for a while but I didnt know how.
For step11, what .apk do we open? unsignedframework-res.apk? When I open this file, theres no resources.arsc...
and step12, what do you mean by "drag this file out"?
apparition said:
Useful guide. I've been meaning to do this for a while but I didnt know how.
For step11, what .apk do we open? unsignedframework-res.apk? When I open this file, theres no resources.arsc...
and step12, what do you mean by "drag this file out"?
Click to expand...
Click to collapse
Step 11, yes the unsignedframework-res.apk. It can't be that there is no resources.arsc. Did you encounter errors during decompiling? Use 7zip to open the framework-res.apk and see if you have resources.arsc.
I meant extract the resources.arsc.
Sent from my GT-I9000 using XDA App
Also, I recommend to decompile Settings.apk as the 3rd one. This is where the ui is.
Sent from my GT-I9000 using XDA App
g00ndu said:
Step 11, yes the unsignedframework-res.apk. It can't be that there is no resources.arsc. Did you encounter errors during decompiling? Use 7zip to open the framework-res.apk and see if you have resources.arsc.
I meant extract the resources.arsc.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Oh, maybe that's it; I'm getting errors. Do I have to (10) decompile with dependencies? then use the twframework from my ROM?
apparition said:
Oh, maybe that's it; I'm getting errors. Do I have to (10) decompile with dependencies? then use the twframework from my ROM?
Click to expand...
Click to collapse
Your framework-res.apk must be a modded one. There is no dependencies for the framework-res.apk. Settings.apk need the twframework-res.apk as the dependency. Let me guess, you are on Darkyy's rom?
Sent from my GT-I9000 using XDA App
Yeah definitely modded. FireFly ROM (for SGS Captivate i896).
But thanks. Excellent guide.
apparition said:
Yeah definitely modded. FireFly ROM (for SGS Captivate i896).
But thanks. Excellent guide.
Click to expand...
Click to collapse
The rom chef may have not done the moding cleanly, and hence decompiling will always end up with the errors. Perhaps you can try to see what the log of apk manager says, and solve it from there.
Thanks, I will now add chinese, arabic and hebrew to ultimate rom.
Sent from my GT-I9000 using XDA App
webstar1 said:
Thanks, I will now add chinese, arabic and hebrew to ultimate rom.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Hope that it will work with hebrew and, especially the right to left sentences. Let me know if it works.
Sent from my GT-I9000 using XDA App
I have tried some files for jpg rom which is persian/arabic these languages are right to left. unfortunately this method did not work. I mod browser.apk but the characters are shown seperate and also left to right. anyone knows how to mod for RTL or which apk is related to rtl?
I think RTL should be mod in .so files as i know
taha_e said:
I have tried some files for jpg rom which is persian/arabic these languages are right to left. unfortunately this method did not work. I mod browser.apk but the characters are shown seperate and also left to right. anyone knows how to mod for RTL or which apk is related to rtl?
I think RTL should be mod in .so files as i know
Click to expand...
Click to collapse
Did you try Darkyy's patch on hebrew / arabic? It's on the first post of his "Incredible" rom. Download those files and installed them and check again?
Hope this helps.
Edit: I guess maybe not, there must be something in the framework.jar that supports rtl language support for jp series. if you have the time, maybe do a baksmali for framework.jar for these 2 roms?
g00ndu said:
Did you try Darkyy's patch on hebrew / arabic? It's on the first post of his "Incredible" rom. Download those files and installed them and check again?
Hope this helps.
Click to expand...
Click to collapse
Im on stock rom js5 I think that patch will not work for it. can i use it for stock?
This is an awesome guide! I've always wanted chinese locale on Darkys rom. Gonna try this when I get home. Thanks for your hard work goondu.
taha_e said:
Im on stock rom js5 I think that patch will not work for it. can i use it for stock?
Click to expand...
Click to collapse
Darkyy's rom is also based on js5, and in that case you can always try. But always do a backup first before any attempts to try.
I wish you luck!
Edit: I downloaded it once, and found the following:
/system/app - AxT9IME.apk and Swype.apk (presumably arabic based)
/system/fonts - 11 fonts with names of hebrew and arabic on them
/system/framework - framework.jar (this one not sure what is modded, maybe ask Darkyy?)
/system/lib - 5 .so files
/system/etc - apns-conf.xml (which is not related to this)
Go try it.
psychedelic'd said:
This is an awesome guide! I've always wanted chinese locale on Darkys rom. Gonna try this when I get home. Thanks for your hard work goondu.
Click to expand...
Click to collapse
You are most welcome.
Point to note: there are some apps that do not have any other region locale, for example, SecDownloadProvider.apk and DownloadProvider.apk. You need to go through one app at a time. I made a mistake.
Having said that, if you are adventurous, you can even create your own for these 2 apks in chinese.
:O
Any ways to just replace files using root explorer to add chinese language to my rom?
All these steps are beyond my skills and knowledge.
Hi.
Just wondering if it's possible for me to remove the Power Off popup which appears just before the phone restarts, goes into recovery etc.
I'm not shy with having to alter files either, so whatever it takes I'd like to know...
This is for a Deodexed JVT 2.3.5.
Thanks in advance.
are you using an app to get to recovery,download,etc...?
You can get it from my Mod, get stock files and comare the files to see what is changed.
Have fun.
playerzking said:
are you using an app to get to recovery,download,etc...?
Click to expand...
Click to collapse
No, I'm actually using the mod by Perka, but it might be an old version.
Perka said:
You can get it from my Mod, get stock files and comare the files to see what is changed.
Have fun.
Click to expand...
Click to collapse
Cool I'll take a look. If you could tell me the files that are changed that would narrow it down a little for me.
OK I did a file compare and there are WAY too many files which are different (including the framework-res.apk file).
Can you please narrow it down for me.
Worked it out finally.
Can you please explain how did you do it?
Thanks!
I just took Perka's advice and it worked out.
The files that needed editing are in the android.policy.jar file located in /system/framework/
I compared Perka's android.policy.jar file against mine and updated GlobalActions files that are associated with the Reboot, Shutdown etc.
It's not too hard especially if you have some kind of programming background.
My next project is to work on the 10 lockscreen mod.
Hi people, this is my very first contribution to this forum. Basically, after switching to CM9 then back to stock, I felt that I was really missing out the ICS spell checking feature (which I don't know why Samsung disabled it).
While searching this forum, I stumbled upon this thread here, which enables the spell checking feature on S2 ICS. The guy posted the changes he made to the files, and I simply applied the same changes to the S3 files (with some improvisation, as they are a bit different).
I tested the mod with a deodexed XXBLG9 ROM here. However, theoretically, it should work on other deodexed stock-based ROMs.
-----------------------
Instruction:
1. Install AOSP Jelly Bean Keyboard from Play Store (link)
2. Reboot to recovery and create NANDroid backup (IMPORTANT!)
3. Use any root explorer to replace \system\app\SecSettings.apk and \system\framework\framework.jar with the files provided below.
4. Make sure that the permission and owner of the files are the same as original (0644)
5. Reboot
Voila!
I was thinking to create a CWM-flashable zip file, but since I am still n00b here, I couldn't. Can somebody teach me how? Better yet, just post a reply here, and I will add it to this post. :laugh:
EDIT: Taught myself how to create the zip (I was doing it wrong the first time round). The CWM-compatible zip is now added, including uninstaller.
EDIT2: Uploaded the wrong zip files. Please redownload if you downloaded before.
Just SecSettings.apk and framework.jar:
Code:
http://www.mediafire.com/?9aau7f14ba1uw5w
Installer (CWM):
Code:
http://www.mediafire.com/?pe4gnhibdourc36
Uninstaller (CWM):
Code:
http://www.mediafire.com/?xsc2u4zi49ekd7m
inscythe said:
Hi people, this is my very first contribution to this forum. Basically, after switching to CM9 then back to stock, I felt that I was really missing out the ICS spell checking feature (which I don't know why Samsung disabled it).
While searching this forum, I stumbled upon this thread here, which enables the spell checking feature on S2 ICS. The guy posted the changes he made to the files, and I simply applied the same changes to the S3 files (with some improvisation, as they are a bit different).
I tested the mod with a deodexed XXBLG9 ROM here. However, theoretically, it should work on other deodexed stock-based ROMs.
-----------------------
Instruction:
1. Install AOSP Jelly Bean Keyboard from Play Store (link)
2. Reboot to recovery and create NANDroid backup (IMPORTANT!)
3. Use any root explorer to replace \system\app\SecSettings.apk and \system\framework\framework.jar with the files provided below.
4. Make sure that the permission and owner of the files are the same as original (0644)
5. Reboot
Voila!
I was thinking to create a CWM-flashable zip file, but since I am still n00b here, I couldn't. Can somebody teach me how? Better yet, just post a reply here, and I will add it to this post. :laugh:
EDIT: Taught myself how to create the zip (I was doing it wrong the first time round). The CWM-compatible zip is now added, including uninstaller.
Just SecSettings.apk and framework.jar:
Code:
http://www.mediafire.com/?9aau7f14ba1uw5w
CWM-compatible Installer:
Code:
http://www.mediafire.com/?9f2i4pb67tdfe6d
CWM-compatible Uninstaller:
Code:
http://www.mediafire.com/?blqhqivcw1acumh
Click to expand...
Click to collapse
Thanks, but I makes special clear stock deodex without changes, because many people are looking for just the firmware deodeks with root access, without derogation from the flow to change by themselves ...
Sorry not here post...
By the way, I uploaded the wrong files just now, please redownload if you downloaded earlier.
Theme section...
Sent from my GT-I9300 using xda premium
inscythe said:
By the way, I uploaded the wrong files just now, please redownload if you downloaded earlier.
Click to expand...
Click to collapse
Is it possible to do this for the JB updates DLI 8
Sent from my GT-I9300 using Tapatalk 2
Finally!!
Thank you! Its crazy that Samsung disabled this feature on touchwiz. Such a bad company
Im on CM10 because I need the spell checker.
Will this work with the stock rom that came with the phone? I'm rooted and unlocked.
Thank you,
Sent from my SCH-I535 using Tapatalk 2
None of both methods work. I tried them on ICS LHI8 and JB LIB
Moving to Themes and Apps
Sent from my GT-I9300 using xda premium
Sensamic said:
None of both methods work. I tried them on ICS LHI8 and JB LIB
Click to expand...
Click to collapse
not working for me with stock rooted rom
Stock JB
Any chance yo can modify XXDLIB files ?
wen placing your files settings FC after boot and cant enter settings.
ronenzak said:
Any chance yo can modify XXDLIB files ?
wen placing your files settings FC after boot and cant enter settings.
Click to expand...
Click to collapse
+1 to this
Sent from my GT-I9300 using Tapatalk 2
Does this work with AT&T I747
inscythe said:
Hi people, this is my very first contribution to this forum. Basically, after switching to CM9 then back to stock, I felt that I was really missing out the ICS spell checking feature (which I don't know why Samsung disabled it).
While searching this forum, I stumbled upon this thread here, which enables the spell checking feature on S2 ICS. The guy posted the changes he made to the files, and I simply applied the same changes to the S3 files (with some improvisation, as they are a bit different).
I tested the mod with a deodexed XXBLG9 ROM here. However, theoretically, it should work on other deodexed stock-based ROMs.
-----------------------
Instruction:
1. Install AOSP Jelly Bean Keyboard from Play Store (link)
2. Reboot to recovery and create NANDroid backup (IMPORTANT!)
3. Use any root explorer to replace \system\app\SecSettings.apk and \system\framework\framework.jar with the files provided below.
4. Make sure that the permission and owner of the files are the same as original (0644)
5. Reboot
Voila!
I was thinking to create a CWM-flashable zip file, but since I am still n00b here, I couldn't. Can somebody teach me how? Better yet, just post a reply here, and I will add it to this post. :laugh:
EDIT: Taught myself how to create the zip (I was doing it wrong the first time round). The CWM-compatible zip is now added, including uninstaller.
EDIT2: Uploaded the wrong zip files. Please redownload if you downloaded before.
Just SecSettings.apk and framework.jar:
Code:
http://www.mediafire.com/?9aau7f14ba1uw5w
Installer (CWM):
Code:
http://www.mediafire.com/?pe4gnhibdourc36
Uninstaller (CWM):
Code:
http://www.mediafire.com/?xsc2u4zi49ekd7m
Click to expand...
Click to collapse
Will this work with the Galaxy S3 for AT&T?
Can anyone help me implement this on the stock Galaxy ROM?
Starting from the jelly bean update, the language files are completely removed from the system's apk and jar files. It would probably require more than just a simple mod to enable it. I will try when i have time.
Sent from my Nexus 7 using XDA Premium HD app
inscythe said:
Starting from the jelly bean update, the language files are completely removed from the system's apk and jar files. It would probably require more than just a simple mod to enable it. I will try when i have time.
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
i tried this. on galaxy note 1. n7000. with stock JB rom (touchwiz) it didnt work i will donate if anyone can help me
inscythe said:
Hi people, this is my very first contribution to this forum. Basically, after switching to CM9 then back to stock, I felt that I was really missing out the ICS spell checking feature (which I don't know why Samsung disabled it).
While searching this forum, I stumbled upon this thread here, which enables the spell checking feature on S2 ICS. The guy posted the changes he made to the files, and I simply applied the same changes to the S3 files (with some improvisation, as they are a bit different).
I tested the mod with a deodexed XXBLG9 ROM here. However, theoretically, it should work on other deodexed stock-based ROMs.
-----------------------
Instruction:
1. Install AOSP Jelly Bean Keyboard from Play Store (link)
2. Reboot to recovery and create NANDroid backup (IMPORTANT!)
3. Use any root explorer to replace \system\app\SecSettings.apk and \system\framework\framework.jar with the files provided below.
4. Make sure that the permission and owner of the files are the same as original (0644)
5. Reboot
Voila!
I was thinking to create a CWM-flashable zip file, but since I am still n00b here, I couldn't. Can somebody teach me how? Better yet, just post a reply here, and I will add it to this post. :laugh:
EDIT: Taught myself how to create the zip (I was doing it wrong the first time round). The CWM-compatible zip is now added, including uninstaller.
EDIT2: Uploaded the wrong zip files. Please redownload if you downloaded before.
Just SecSettings.apk and framework.jar:
Code:
http://www.mediafire.com/?9aau7f14ba1uw5w
Installer (CWM):
Code:
http://www.mediafire.com/?pe4gnhibdourc36
Uninstaller (CWM):
Code:
http://www.mediafire.com/?xsc2u4zi49ekd7m
Click to expand...
Click to collapse
Do you know if these files work on the S4?
They won't. They're specifically for the S3...
Sent from my GT-I9300 using XDA Premium 4 mobile app
So after desperatley wanting this mod to work on my captivate glide at any cost, i went after it myself. It looked easy at first but turned out to consume a lot of hours figuring out how to compile decompile and understand basics of smali.
What it does ?
As in the title, pressing the volume buttons a little longer (400 ms) will make the stock music player skip to next track (up vol) or previous track (down vol). This only works while the screen is off and phone locked which is basically the purpose . Right now will work on deodexed ROMs only, meaning pepole having "android.policy.odex" file in the system/framewrok folder would not be able to use this mod.
Caution : The mod if goes wrong can/will make your phone stuck at the boot animation unless the mod is removed. Copy both the files so you can restore your original file back in case it doesn't work for you.
How to Install
1) Make sure you are rooted. and boot into CWMR.
2) Flash LongPressVol.zip - Installs the mod and takes backup
3) Wipe Dalvik and Cache partition
4) Reboot and "Upgrading android" screen should show up.
You are done and now test it and let me know if it works for you. Enjoy!!!
Restore original/Remove Mod :
1) Boot into CWMR.
2) Flash LongPressVolRemove.zip - Restores your original android.policy.jar file
3) Wipe Dalvik and Cache partition
4) Reboot
Tested to be working fine on following ROMs
Nardholio's NardROM 0.4
Thegreatergood's LiteROM .4
Credits : Ported with help from the guide posted by jakubklos -> http://forum.xda-developers.com/showthread.php?t=1770564
Next update :
CWM flashable zip (will need some time to learn how to do that - Done
Post the Diff and the code to make it easier for other roms to include it if the android.policy.jar changes. - In progress
Awesome, been missing this mod since leaving my DHD
CWM Flashables worked great..... But since I'm using the stock rom which has not been deoxed it did not work.
It booted though didn't notice any adverse affects
Not to put you on the spot but do you think you could use the UCLH2 .jar and make a version that will use odex. not sure if anything would have to be done to the odex file but I have included the non odexed android.policy.jar files if you wouldn't mind taking a stab at it. If you could just modify the .jar file I'll test it. I would be forever in your debt!
Sent from my SGH-I927 using xda premium
Force closes PowerAMP and Nova Launcher.
Tested on ICS Leak.
Just delete the odex file and clear cache and you should be fine. You don't have to deodex the whole ROM.
or for extra points you can reodex, which theoretically will boost speeds a bit (although I'm experiencing wonderful speeds on my ROM). Redodexing is pretty easy (just Google it) and doesn't require him to do his mod again.
Cool thanks for the tip!
Sent from my SGH-I927 using xda premium
ludacris1 said:
Force closes PowerAMP and Nova Launcher.
Tested on ICS Leak.
Click to expand...
Click to collapse
Strange works for me. Nova didn't quit at all throughout my testing. I tried Poweramp trial and works fine as well. Did you clear dalvik and cache after flashing in the Mod ?
Nardholio said:
Just delete the odex file and clear cache and you should be fine. You don't have to deodex the whole ROM.
or for extra points you can reodex, which theoretically will boost speeds a bit (although I'm experiencing wonderful speeds on my ROM). Redodexing is pretty easy (just Google it) and doesn't require him to do his mod again.
Click to expand...
Click to collapse
Tried with no success stuck at boot screen. Thanks for the hint I'll try re odexing it and see if that will work next.
I like all the bloat that the stock has except the att apps, I would love to try your ROM but I would prefer a completely stock version of it with little modification and fixes. I have tried to do it myself with no success and simple don't have the patience for it. As my computer would end up at the muzzle end of a AR15. I really don't want to waste ammo or buy a new computer just yet. LOL ^o^
I'm very happy with the stock rom after applying the keyboard, tethering fix, and sdcard swap. It will be perfect when I get this working on it. And if its true that having it odexed is faster, I don't know but it is very smooth and battery is awesome.
Sent from my SGH-I927 using xda premium
enewman17 said:
Awesome, been missing this mod since leaving my DHD
CWM Flashables worked great..... But since I'm using the stock rom which has not been deoxed it did not work.
It booted though didn't notice any adverse affects
Not to put you on the spot but do you think you could use the UCLH2 .jar and make a version that will use odex. not sure if anything would have to be done to the odex file but I have included the non odexed android.policy.jar files if you wouldn't mind taking a stab at it. If you could just modify the .jar file I'll test it. I would be forever in your debt!
Sent from my SGH-I927 using xda premium
Click to expand...
Click to collapse
As evident from your last post, it does not work for you on UCLH2. As i said in my OP that i've not tested it on LH2 and it might not work as the android.policy.jar may be different. It should work on the UCLG9 and the ROM's based on it for sure.
I'll see later what i can do for the LH2. Can you post me a link of your whole system/framework folder, so i can download the same ? I'll maybe try later in the day to see the difference.
Thanks you, much appreciated! http://db.tt/0PnPOv4p
Sent from my Transformer TF101 using XDA Premium HD app
enewman17 said:
Thanks you, much appreciated! http://db.tt/0PnPOv4p
Sent from my Transformer TF101 using XDA Premium HD app
Click to expand...
Click to collapse
Deodexed your files and compared the PhoneWindowManager.smali file with mine, they are binary equals. So technically this mod should work for you. As your ROM is odexed, you need to manually delete the android.policy.odex and android.policy.jar file and then copy the android.policy.jar file from the zip attached to the OP. Remember to clear dalvik and cache partition as the last step before rebooting your phone. As Nardholio suggested this should work and you don't need to deodex the whole ROM.
Updated OP with the name of the ROM's tested to be working fine with this mod. Will try some more and keep adding.
Sent from my SGH-I927
Nardholio said:
Just delete the odex file and clear cache and you should be fine. You don't have to deodex the whole ROM.
or for extra points you can reodex, which theoretically will boost speeds a bit (although I'm experiencing wonderful speeds on my ROM). Redodexing is pretty easy (just Google it) and doesn't require him to do his mod again.
Click to expand...
Click to collapse
Do not delete the odex file... in an odex ROM all the code, java and smali are located in the odex class until you deodex which pulls the classes out and compresses them into a classes.dex into the particular apk and/ or jar file. So, if you delete the odex file the jar or apk is useless as you just deleted all the java and smali code it uses to communicate with the DVM..
Sent from my SGH-I897 using xda premium
dman3285 said:
Do not delete the odex file... in an odex ROM all the code, java and smali are located in the odex class until you deodex which pulls the classes out and compresses them into a classes.dex into the particular apk and/ or jar file. So, if you delete the odex file the jar or apk is useless as you just deleted all the java and email code it uses to communicate with the DVM..
Sent from my SGH-I897 using xda premium
Click to expand...
Click to collapse
Deodexing is all clear and i know the procedure, but can you let me know some link or tutorial to follow to odex it back again ? I think it needs the whole rom and needs some more files like framework etc. to be odexed again ?
Note: still learning and long way to go
In my trying to learn all of this too, seems you can re-odex a rom. But everything I found has to be done on the phone it self with terminal and a odex wrapper script. Haven't found a way of doing it on a computer yet.
Sent from my SGH-I927 using xda premium
enewman17 said:
In my trying to learn all of this too, seems you can re-odex a rom. But everything I found has to be done on the phone it self with terminal and a odex wrapper script. Haven't found a way of doing it on a computer yet.
Sent from my SGH-I927 using xda premium
Click to expand...
Click to collapse
I've read some tutorials as well, but lemme know if you find a easier way to do this. I'm almost certain that the odex files are specific to a specific rom, but i can be wrong as well. That's the reason i believe that the generic mods are only for the deodexed ROMs.
enewman17 said:
Awesome, been missing this mod since leaving my DHD
CWM Flashables worked great..... But since I'm using the stock rom which has not been deoxed it did not work.
It booted though didn't notice any adverse affects
Not to put you on the spot but do you think you could use the UCLH2 .jar and make a version that will use odex. not sure if anything would have to be done to the odex file but I have included the non odexed android.policy.jar files if you wouldn't mind taking a stab at it. If you could just modify the .jar file I'll test it. I would be forever in your debt!
Sent from my SGH-I927 using xda premium
Click to expand...
Click to collapse
I don't realize there was a Dial Home Device on earth, I though it was never found
*stargatefan*
TheHow7zer said:
I don't realize there was a Dial Home Device on earth, I though it was never found
*stargatefan*
Click to expand...
Click to collapse
Lol love stargate
Sent from my Desire HD using xda premium
---------- Post added at 07:13 PM ---------- Previous post was at 06:47 PM ----------
ninthsense said:
I've read some tutorials as well, but lemme know if you find a easier way to do this. I'm almost certain that the odex files are specific to a specific rom, but i can be wrong as well. That's the reason i believe that the generic mods are only for the deodexed ROMs.
Click to expand...
Click to collapse
Yes the odex file is specific per app so if any changes were made, the odex file which contains most of the data for each app would also have to reflect those changes. As the changes you made were part of .smali which is part of the dex file. So on a stock rom the odex file is loaded into the Dalvik machine during boot. This is why when flashed on a odexed rom the mod does not take, because the non modded odex file was already loaded. I gave up as I'm happy using literom4 with your mod.
Edit: Ok here is why it has to be done using the phone, all has to do with BOOTCLASSPATH http://classictomatoe.net/dexo-universal-odex-tool/
If you wanted to make this mod for folks still using the stock rom. All that needs to be done is decompile the .odex file using baksmali make the changes to the necessary files and then smali ?I think? don't quote me on that.
Can you share the how to four this? I'm setting up a rom and would like to add this
Sent from my SGH-I927 using xda app-developers app
kick buttowski said:
Can you share the how to four this? I'm setting up a rom and would like to add this
Sent from my SGH-I927 using xda app-developers app
Click to expand...
Click to collapse
Would you use the new uclj3 ? Send me the androidpolicy jar from your rom and hopefully it should be the same. I've not upgraded to .8 literom yet so not sure if it will work as .8 is based on the newer uclj3 released by samsung.
Sent from my SGH-I927
ninthsense said:
Would you use the new uclj3 ? Send me the androidpolicy jar from your rom and hopefully it should be the same. I've not upgraded to .8 literom yet so not sure if it will work as .8 is based on the newer uclj3 released by samsung.
Sent from my SGH-I927
Click to expand...
Click to collapse
Here ya go