Quantcast
Channel: xda-developers - Android Q&A, Help & Troubleshooting
Viewing all articles
Browse latest Browse all 18891

[Q] HELP: android.policy.jar and Smali on LGP880 @V10H

$
0
0
Hi,

I got myself the android.policy.jar (313bytes) and android.policy.odex (350.584bytes) from the /system/framework.

I then copied the whole /system/framework folder from my P880 for baksmali, also.

I then baksmalied the android.policy.odex with:

java -Xmx512m -jar baksmali.jar -x android.policy.odex -d framework -o output

and resmalied it (this is a test) with:

java -Xmx512m -jar smali.jar output/ -o classes.dex

This all works without an error message.

I end up with the classes.dex (314.716bytes).

Here my trouble begins. I put classes.dex with 7zip and normal compression into the original android.policy.jar (now 143.886bytes)

I removed the ORIGINAL android.policy.odex and android.policy.jar from my phone and copied the new android.policy.jar (143.886bytes) into the their place (/system/framework).

After reboot I am stuck with a bricked phone :confused:

To investigate, I then reodexed android.policy.jar with

dexopt-wrapper android.policy.jar new.android.policy.odex /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/filterfw.jar:/system/framework/com.lge.bluetooth.jar:/system/framework/com.lge.core.jar

which works fine, but my NEW android.policy.odex is not the original 350.584bytes, but 322.368bytes :(

I added the file signature from the old odex, but the size remains the same.

My questions:

Why did my android.policy.jar (143.886bytes) not work, although I changed none of the coding?
Why did my android.policy.odex (322.368bytes) not have the same size as the original odex in the rom?

I attach these two files for you. Please help me. :crying:

Thank you!

PS: I had to rename the odex to txt, because it cant be attached otherwise.


Viewing all articles
Browse latest Browse all 18891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>