Inviato dal mio GT-I9100 usando Tapatalk
I disassembled (baksmali) the android.policy.odex file.
I studied the code and i was able to hack this code accordly
I smali the android.policy in order to have the Dalvik executable (dex) deodexed file!
At this point things become hard!
As my framework is odexed i spent a lot of time to manage it to work!
Basically after i wrote a wrapper script, i was able to re-odex back android.policy
Now few devs know that if we change a odex file we will break everything and our phone won't boot! Infact the signature of the new odex file is not compatible with the other framework files
That's because dalvik enforces this by storing a checksum of each file that the odex file is dependent on, and ensuring that the checksum for each file matches when the odex file is loaded.
In order to solve this problem i copied, by using an hex editor, signature bytes from the original android.policy.odex file!
Finally, after a while, i modded the lockscreen in order lo launch the following app:
Move up: MMS
Move left: Camera
Move down: Phone dialer
Move right: unlock
Installable on CWM, no wipe needed!
I will release docs for devs (advanced user) so if you want you can try to modify it by yourself!
As usual i'd like to share some devs stuff with you:
I know i am so boring when i try to explain technical stuff with my poor english
I was trying to refrain from posting until I saw this, deodexing the filesystem brings only 1 benefit and that is for themers.
There is more benefits for keeping the filesystem as odex and any developer should be aware of this.
Quicker initial bootups of custom ROMs
Less memory is consumed
Less storage used in /data due to the fact that pre-optimised dex files are stored on /system already
Yes you can accept a slightly smaller data partition due to the fact the SGS2 has 2GB and the initial boot is a 1 time thing, however de-odexed apps/framework will always consume slightly more memory.
De-odexing is not a method of optimizing an OEM image and that is just blaintant rubbish.
There is reasons as to why OEMs choose not to de-odex factory installed ROMs.
|йо ку, galaxy s2, leomar75, revolution, rom|
|Thread Tools||Search this Thread|