While i was deodexing browser.apk i just looked at the dipendencies with the bootclasspath and i discovered that it has no dependencies with other odexed apps. Keep in mind that if you change a single odex jar file you will fucx up the checksum stored in the dalvik virtual machine.
That said i asked to myself if we really need to change jar file inside framework. The answer is yes because we need overscroll gliw effect and the extended power menu which means that we need to hack android.policy.jar and framework.jar. Ok we can still survive whithout overscroll glow but i wanted the extended power menu. So thanks to jkay i managed to use by modding his app (the original one needs a odexed Rom) and theme, theme settings app in this way it was possible to have a fully customizable power menu.
Hum, it is not possible for now... As i aready explained, this is an "hybrid" ROM with odexed and deodexed file togheter! If i touch android.policy.jar and framework.jar in order to add code for the overscroll glow effect, the browser doesn't works anymore, to be more precised the rom won't boot! This is because there are dependencies among browser.odex and odex jar file inside framework.
An odex file has dependencies on every "BOOTCLASSPATH" file that is loaded when it is generated. The odex file is only valid when used with these exact BOOTCLASSPATH files. 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.
When you try to deodexing an apk if you don't set the bootclasspath (because you don't get any worning or error msg) by default it has these 5 file: core.jar, ext.jar, framework.jar, android.policy.jar and services.jar
However, some apks have dependencies on additional jar or apks files beyond that of the base 5 jars.
While i was deodexing browser.apk i discovered that it has no other dependencies beyond the jar file inside framework!
To sum up browser.odex and the other odex file inside frameworks live togheter and i can't figure out if it will be possible to hack some of them!