FORUMS
Remove All Ads from XDA

how do you open and edit classes.dex?

630 posts
Thanks Meter: 1
 
By CarbonKang, Senior Member on 23rd June 2010, 09:29 PM
Post Reply Email Thread
I can not open classes.dex for the life of me. I have tried multiple ways with different commands and such and still can not get it to open.

I have found this method to get me the farthest but still no go on opening it. every time I enter the command

Quote:

java -jar baksmali.jar -o classout/ classes.dex

I get "Unable to access jarfile baksmaili.jar"

Thanks to anyone who is willing to help.
 
 
23rd June 2010, 09:45 PM |#2  
kyouko's Avatar
Senior Member
Thanks Meter: 263
 
More
Download AvaboxV2 and unzip the folder. Inside there are tools for editing and such, namely the "Smali" folder which is hopefully what you are looking for.
The Following 4 Users Say Thank You to kyouko For This Useful Post: [ View ] Gift kyouko Ad-Free
23rd June 2010, 09:51 PM |#3  
CarbonKang's Avatar
OP Senior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by kyouko

Download AvaboxV2 and unzip the folder. Inside there are tools for editing and such, namely the "Smali" folder which is hopefully what you are looking for.

I tried that. It will only do apks... I need to to do it to a .dex or a .jar

okay now I see the folder C:\Users\Devin\Documents\AvaboxV2\Smali\baksmali

but still I will need the command prompt and I will be in the same trouble i am in now.
23rd June 2010, 10:01 PM |#4  
kyouko's Avatar
Senior Member
Thanks Meter: 263
 
More
Put the classes.dex file in the \smali\baksmali folder. then navigate to that folder in command prompt:
Code:
cd\
cd C:\Users\Devin\Documents\AvaboxV2\Smali\baksmali
java -jar baksmali-1.1.jar -o classout/ classes.dex
*that should create a folder called "classout" in \baksmali with the smali files*
Then make your edits to the .smali files using notepad++ or w/e

To close up the classout folder and put it back into a classes.dex enter this in cmd:
Code:
java -jar smali-1.1.jar classout -o classes.dex
Edit: fixed file name mix-up
The Following 7 Users Say Thank You to kyouko For This Useful Post: [ View ] Gift kyouko Ad-Free
23rd June 2010, 10:14 PM |#5  
CarbonKang's Avatar
OP Senior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by kyouko

Put the classes.dex file in the \smali\baksmali folder. then navigate to that folder in command prompt:

Then make your edits to the .smali files using notepad++ or w/e

To close up the classout folder and put it back into a classes.dex enter this in cmd:

Code:
java -jar smali-1.2.1.jar classout -o classes.dex

dude no matter what I type cmd will NOT go to that folder. "Folder not found" or some ****.

I can NOT wait till iPhone 4 comes out android is total ****.

got it to go to teh folder in cmd but like I said i get the stupid ass unable to access jarfile baksmali.jar

When baksmali.jar is clearly in the freaking folder.

Is there not an easier way to do this?
23rd June 2010, 10:23 PM |#6  
kyouko's Avatar
Senior Member
Thanks Meter: 263
 
More
Ooohhh shii- lol I'm a dumbass
Haha it should be baksmali-1.1.jar and smali-1.1.jar

I just edited my previous post to fix that mixup
The Following 2 Users Say Thank You to kyouko For This Useful Post: [ View ] Gift kyouko Ad-Free
23rd June 2010, 10:23 PM |#7  
CarbonKang's Avatar
OP Senior Member
Thanks Meter: 1
 
More
I even pasted strait from yours.. it does not work man. I give up android is gay
23rd June 2010, 10:24 PM |#8  
CarbonKang's Avatar
OP Senior Member
Thanks Meter: 1
 
More
Never mind thank you so much man.. I was just getting pissed off because I have been trying this for so long. Thanks for the help.
24th June 2010, 03:51 AM |#9  
danaff37's Avatar
Senior Member
Flag Saint Petersburg, FL
Thanks Meter: 880
 
More
Funny thing is, you think you'll be able to mod I phone easier? Ha!

-------------------------------------
Sent via the XDA Tapatalk App
The Following 2 Users Say Thank You to danaff37 For This Useful Post: [ View ] Gift danaff37 Ad-Free
17th October 2010, 05:06 AM |#10  
in4nerd's Avatar
Junior Member
PHX
Thanks Meter: 0
 
More
Thumbs up roflcopter
Quote:
Originally Posted by danaff37

Funny thing is, you think you'll be able to mod I phone easier? Ha!

-------------------------------------
Sent via the XDA Tapatalk App

..Thumbs up

Srsly..its not difficult to mod android and its apps/framework(/resources)...at all. Only 2 real vars: setup and level of incompetence

not related->Getting a mac soon, mostly everything is windows compatible (80% of market/business/etc), mac not so much...parallel+windows 7 good idea?

kthxbai
Attached Thumbnails
Click image for larger version

Name:	d2.jpg
Views:	736
Size:	31.2 KB
ID:	420953  
17th October 2010, 06:25 AM |#11  
danaff37's Avatar
Senior Member
Flag Saint Petersburg, FL
Thanks Meter: 880
 
More
I run a dual boot between ubuntu and windows 7 for work

Sent from my HERO200 using XDA App
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes