[Q] How To Deodex My System - Motorola Photon 4G

I'm running Stock Unlocked 198_7 w/ jokersax 1.4Ghz kernel (not sure of that matters) but could someone tell me the easiest way to Deodex my system....and also I'm for the most part aware of the benefits of doing this but if someone could explain it again it would help. Thank you in advance!

Isn't that for theming???
I think that's done when ur building a rom...im not a dev
Sry
Sent from my MB855 using XDA App

lucidvtec said:
Isn't that for theming???
Click to expand...
Click to collapse
And also if you want to swap out some stock apps came with the phone.
Here's the link:http://www.droidxforums.com/forum/droid-x-themes/4620-how-manually-deodex-your-phone.html
Credit goes to ballerx43: [APP] Droid 3 Camera App

duncanbyy said:
And also if you want to swap out some stock apps came with the phone.
Here's the link:http://www.droidxforums.com/forum/droid-x-themes/4620-how-manually-deodex-your-phone.html
Credit goes to ballerx43: [APP] Droid 3 Camera App
Click to expand...
Click to collapse
Anyone try this?
Sent from my balls using XDA App

themeing is done by deodexing framework...
deodexing system allows for it to be faster (despite the fact that odex = Optimized Dalvik EXectuable)

Not to go all super nerd on you but odexing is separating dalvik code to prevent multiple dalvik-code location. Older phones benefited from odexing because it used less memory(no cache-build). A deodexed rom must make dalvik cache from dalvik code and verify dalvik code in the apk with the dalvik cache every boot. Odexing precaches the dalvik code outside the apk in system for the device instead of in cache/data and in the apk. We have a ton of space and put dalvik cache on data instead of cache(preferred when nand and data were separate) now we use inand which doesn't matter where. You can speed up boot by disabling the verify and make the system look at dalvik cache as odex. By doing this
dalvik.vm.verify-bytecode=false
dalvik.vm.dexopt-flags=v=n,o=v
That will give you the speed of odex but for all apks.
shabbypenguin said:
themeing is done by deodexing framework...
deodexing system allows for it to be faster (despite the fact that odex = Optimized Dalvik EXectuable)
Click to expand...
Click to collapse
Sent from my MB855 using XDA App

Related

What is dalvik?

Devs are always sayin to wipe dalvik when flashing a new ROM. I always wipe but idk wat I'm wiping...what is dalvik cache??
Sent from my SCH-I500 using XDA App
DroiDAddicT14 said:
Devs are always sayin to wipe dalvik when flashing a new ROM. I always wipe but idk wat I'm wiping...what is dalvik cache??
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
dalvik cache is a program cache area for the program dalvik. Dalvik is a java based virtual machine that is the bases for running your programs (the ones that have the .apk extension). In order to make access times faster (because there's not JIT (just in time) compiler installed by default), the dalvik-cache is the result of dalvik doing a optimization of the running program. Sounds confusing. It's similar to the prefetch files in Windows. -Andrizoid
And just FYI, you wipe the dalvik cache by booting into Clockworkmod and going to the advanced menu.
Sent from XDA Premium on my Super Clean Fascinate

Few Questions

Hello,
I would like to ask a couple of questions regarding x10 which has been tickling my mind for sometime.
1> Can anyone share their setcpu profiles for good battery and performance?
2> What exactly is Dalvik Cache? Why do we use it? and why does it have to be wiped for every rom installation. I'm personally interested to find an answer for this question.
Thanks for the help!
Neo said:
Hello,
I would like to ask a couple of questions regarding x10 which has been tickling my mind for sometime.
1> Can anyone share their setcpu profiles for good battery and performance?
2> What exactly is Dalvik Cache? Why do we use it? and why does it have to be wiped for every rom installation. I'm personally interested to find an answer for this question.
Thanks for the help!
Click to expand...
Click to collapse
1. What has helped me a lot with battery life was the Screen Off profile in SetCPU. Set it to 245-384, governor: powersave. If you have delay when turning on the screen, set the governor to on demand. See my signature for more details!
2. Dalvik cache is an application cache area for the program dalvik.
Dalvik is a java based virtual machine that is the base for running your apps (the ones that have .apk extension).
In order to make access times faster (in cases where there's no JIT (just-in-time) compiler installed by default),
the dalvik-cache is the result of dalvik doing a optimization of the running programs.
Sounds confusing, I know. Think of it as similar to the prefetch files in Windows.
It's not always necessary to wipe the Dalvik Cache when installing a new ROM,
because most ROM zips include an update-script that wipes the DATA partition, therefore including the dalvik-cache,
but it doesn't hurt to do it either, it's a precaution measure.
Hope I helped!
Thank you so much mate.Totally get it now although the word “cache“ made sense earlier I've seen users wiping it frequently and i thought of getting to know about it
Ps.a thank you will be sent when i get to my pc
Sent from my X10i using XDA App
Neo said:
Thank you so much mate.Totally get it now although the word “cache“ made sense earlier I've seen users wiping it frequently and i thought of getting to know about it
Ps.a thank you will be sent when i get to my pc
Sent from my X10i using XDA App
Click to expand...
Click to collapse
You're welcome!
Also, may I add, wiping the dalvik cache often is not wise, in general.
It kind of defeats its purpose!

Scripts and wipe

Hey, so I was wondering quite a long time now (and I haven't found an answer), when I am changing either Rom or just want to wipe data/cache/dalvik cache... will the scripts I installed disappear ? Do I have to reinstall them ?
Lukyno2639 said:
Hey, so I was wondering quite a long time now (and I haven't found an answer), when I am changing either Rom or just want to wipe data/cache/dalvik cache... will the scripts I installed disappear ? Do I have to reinstall them ?
Click to expand...
Click to collapse
If you install another ROM you'll have to reinstall them. If you are wiping,you don't have to, because you are wiping them user's data not the system data.
Sent from my GT-S5830 using XDA
Yes,becuase it gets wiped when flashing a new rom.
Sent from my fingers to your face,take it or leave it.
AndroidGadgetCyprus said:
If you install another ROM you'll have to reinstall them. If you are wiping,you don't have to, because you are wiping them user's data not the system data.
Sent from my GT-S5830 using XDA
Click to expand...
Click to collapse
Prawesome said:
Yes,becuase it gets wiped when flashing a new rom.
Sent from my fingers to your face,take it or leave it.
Click to expand...
Click to collapse
Thanks!

call recording for stock rom

Is it possible to install a call recorder for stock rom 4.1.1 ? not from an app, built in call recorder
there is a mod for that over at the Themes & Apps section i believe.. i can give you the link later on.. since i am on mobile now and it's sort of incovenient for me to copy and paste the link
Sent from my GT-I9300 using xda premium
http://forum.xda-developers.com/showthread.php?t=1871525
are you talking about this one?
because it says "Attached cwm patch works on Deodexed LI2 Roms only."
My rom is stock and DLJ2... So i dont think it will work
Assuming your phone is rooted:
-download any custom rom based on DLJ2 and including this mod
-extract secphone.apk from the zip of the rom
-put the apk on your sdcard
-with root explorer (or similar app) delete /system/app/secphone.odex
-put the modded apk in /system/app (say yes to replace the old one)
-restart in recovery
-wipe cache and dalvik
-restart your phone
Done!
You now have your mod on your stock odex rom!
what does wipe chace and dalvik do?
it wont remove any of my stuff?
also since i see we have the same rom and kernel , i also have s3 with stock dlj2 and siyah - how does your battery respond?
because my battery life is bad... 10% loss in short time and not much of use...
ohad156 said:
what does wipe chace and dalvik do?
it wont remove any of my stuff?
also since i see we have the same rom and kernel , i also have s3 with stock dlj2 and siyah - how does your battery respond?
because my battery life is bad... 10% loss in short time and not much of use...
Click to expand...
Click to collapse
Wiping cache and dalvik will not remove your stuff. It just wipe files from android caching (will be generate on reboot)
I am now on DLJ4 but it seems that JB has some issue with battery life compared to ICS
is there any way to fix battery problems? or should i go back to ICS?
saywhatt said:
there is a mod for that over at the Themes & Apps section i believe.. i can give you the link later on.. since i am on mobile now and it's sort of incovenient for me to copy and paste the link
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
just for your interest clipper + is a fantastic clipboard utility that is great for storing links,, snippets etc, thoroughly recommend it,
ohad156 said:
is there any way to fix battery problems? or should i go back to ICS?
Click to expand...
Click to collapse
use BetterBatteryStats to check what is consuming your battery
Sent from my GT-I9300 using xda premium

Insufficient storage available error

I often get this error when trying to update or install apps.
I have 129 MB free under Settings/Apps/Downloaded.
How to fix this??
I'm on Serenity v2.0.
Sent using Xperia Active and XDA app.
I dunno y that happens... Try clearing cache and rebooting... And pls report
Sent from my SK17i using xda app-developers app
I had the same error....cleared the dalvik cache and it worked!!
alokbina said:
I had the same error....cleared the dalvik cache and it worked!!
Click to expand...
Click to collapse
I had the same error and it has been around for a while....and there are many reported fixes and they all are reported to work at least some of the time...hopefully it will fix before you reach solution 5:
1. Clear the cache for google play and google services (didn't work for me)
2. Clear cache and dalvik cache from Recovery (didn't work for me).
3. Delete your google account, then clear cache and dalvik cache from Recovery (worked for me!)
4a. Reflash the ROM, reinstall gapps, clear cache and dalvik cache.
4b. Restore a nandroid back up from when Update and Install were working
5. Factory reset and reinstall everything.
6. Can I interest you in a shiny new device......
Almost forgot....If you are using something one of the app2sd apps that has it's own partition on your sdcard you need to make sure that there is still room in that partition.
hmmmm...un-installed Lucky Patcher from your phone....
Pusak Gaoq said:
hmmmm...un-installed Lucky Patcher from your phone....
Click to expand...
Click to collapse
No! Remove .odex files from data/app
Pusak Gaoq said:
hmmmm...un-installed Lucky Patcher from your phone....
Click to expand...
Click to collapse
I don't even have it installed.
justmpm said:
I had the same error and it has been around for a while....and there are many reported fixes and they all are reported to work at least some of the time...hopefully it will fix before you reach solution 5:
Click to expand...
Click to collapse
no. 3 works sometimes.
Also, my ROM is deodex-ed so there is no .odex under data/app.
zagi988 said:
my ROM is deodex-ed so there is no .odex under data/app.
Click to expand...
Click to collapse
Did you checked, I have deodexed but Lucky Patcher can create odex file in data/app, so some other ap maybe create it.
Thread moved. Please post all questions here in Q|&A in future where they belong. Remember asking for help is still asking a question.
Thanks.
AvRS
Kir3 said:
No! Remove .odex files from data/app
Click to expand...
Click to collapse
i cant find .odex file anywhere

Categories

Resources