Deodexing Questions
#1
Posted 14 February 2012 - 04:07 AM
When I try to decompile the services, and the android policy I find myself stuck with basmali complaining about
Lcom/motorola/android/widget/SlideButton$OnSlideEndListener I thought that would be looking for the
com.motorola.android.widget.jar but I still run into the same problem when I add that to the boot class path. I'm sure that the answer is right in front of my face I just can't seem to find it. Can anyone point me into the right direction on this one maybe?
The other thing I have a question about is using . I modified the script so I could use the latest baksmali and smali files. Plus I added in the -a 10 for the api. this seem to work on most of the files. Is it ok to use a tool like this? Or is it better to manually deodex the files?
Boy did I pick the wrong phone to learn how to deodex
#2
Posted 14 February 2012 - 06:12 AM
I used the java command as listed below
java -Xmx1024m -jar baksmali.jar -c :am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.motorola.android.camera.jar:com.motorola.android.frameworks.jar:com.motorola.device.jar:core.jar:core-junit.jar:ext.jar:framework.jar:ime.jar:input.jar:javax.obex.jar:monkey.jar:pm.jar:services.jar:sqlite-jdbc.jar:svc.jar -x android.policy.odex
java -Xmx1024m -jar baksmali.jar -c :am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.motorola.android.camera.jar:com.motorola.android.frameworks.jar:com.motorola.device.jar:core.jar:core-junit.jar:ext.jar:framework.jar:ime.jar:input.jar:javax.obex.jar:monkey.jar:pm.jar:services.jar:sqlite-jdbc.jar:svc.jar -x services.jar
Hope this helps. I am moving slow as my children are keeping me from getting this done in a timely fashion.
I asked P3Droid if I needed to deodex in order to theme the stock rom for myself and he did state it is not needed.
- cynnar likes this
#3
Posted 14 February 2012 - 10:15 AM
java -Xmx1024m -jar baksmali.jar -c :am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.motorola.android.camera.jar:com.motorola.android.frameworks.jar:com.motorola.device.jar:core.jar:core-junit.jar:ext.jar:framework.jar:ime.jar:input.jar:javax.obex.jar:monkey.jar:pm.jar:services.jar:sqlite-jdbc.jar:svc.jar -x android.policy.odex
I had to add in -a 10 then it worked for me
java -Xmx1024m -jar baksmali.jar -c :am.jar:android.policy.jar:android.test.runner.jar:bmgr.jar:bouncycastle.jar:com.android.location.provider.jar:com.google.android.maps.jar:com.motorola.android.camera.jar:com.motorola.android.frameworks.jar:com.motorola.device.jar:core.jar:core-junit.jar:ext.jar:framework.jar:ime.jar:input.jar:javax.obex.jar:monkey.jar:pm.jar:services.jar:sqlite-jdbc.jar:svc.jar -x services.jar
and added -a 10 and changed the -x services.jar to services.odex (i figure was a typo )
Thanks you are a life saver
#4
Posted 14 February 2012 - 11:08 AM
I tried that auto deodexer and not sure what changes you made, but it did some of the APKs and not sure why, butt did not do any of the framework.
Sent from my DROID RAZR using Tapatalk
#5
Posted 14 February 2012 - 10:27 PM
What I done to the Auto Deodexer
1. updated the baksmali / smali files to v1.3.2
2. renamed baksmali-v1.2.3.jar to baksmali.jar in batch script for easier updating
3. added API using -a 10
#6
Posted 18 February 2012 - 10:56 PM
#7
Posted 28 February 2012 - 05:35 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users