Jump to content


Photo

Deodexing Questions


  • Please log in to reply
6 replies to this topic

#1 cynnar

cynnar

    Member

  • Members
  • PipPip
  • 92 posts

Posted 14 February 2012 - 04:07 AM

Decided to jump in and start learning how to deodex a rom. What a learning experience this has been, but lots of fun :). Between the Deodex Instructions over at the

Please Login or Register to see this Hidden Content

and a guide over at

Please Login or Register to see this Hidden Content

I figured out what I needed to do. I just have a few questions that I hope someone can answer for me.

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

Please Login or Register to see this Hidden Content

. 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 :D
I tend to question things I disbelieve are true. Some people cannot handle that. Sorry if you are one of those people.

#2 Kirbnite

Kirbnite

    Member

  • Members
  • PipPip
  • 37 posts

Posted 14 February 2012 - 06:12 AM

I read on another site somewhere "How to deodex and odex", honestly cant find the page again, but they shown hown to do it on a samsung device and I used that and replaced it with resources similar to it but from our framework.

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 cynnar

cynnar

    Member

  • Members
  • PipPip
  • 92 posts

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
I tend to question things I disbelieve are true. Some people cannot handle that. Sorry if you are one of those people.

#4 Kirbnite

Kirbnite

    Member

  • Members
  • PipPip
  • 37 posts

Posted 14 February 2012 - 11:08 AM

Glad I could help. I'm doing it 1 file at a time when my child is sleeping. Would it be out of the question to possible get a link to a deodexed system from you? If not, I will eventually get it done, just will take a while.

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 cynnar

cynnar

    Member

  • Members
  • PipPip
  • 92 posts

Posted 14 February 2012 - 10:27 PM

I only have the framework done. Since this is my first crack at deodexing, and I haven't tested anything yet, I am not sure if it works so use at your own risk.



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

Please Login or Register to see this Hidden Content


I tend to question things I disbelieve are true. Some people cannot handle that. Sorry if you are one of those people.

#6 cynnar

cynnar

    Member

  • Members
  • PipPip
  • 92 posts

Posted 18 February 2012 - 10:56 PM

The first attempt was a flop. Will try it again
I tend to question things I disbelieve are true. Some people cannot handle that. Sorry if you are one of those people.

#7 redls1

redls1

    Member

  • Members
  • PipPip
  • 98 posts

Posted 28 February 2012 - 05:35 AM

Do you have the stock files you could upload so I could add back in the files I want




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users