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, 08:29 PM
Post Reply Email Thread
17th October 2010, 05:25 AM |#11  
danaff37's Avatar
Senior Member
Flag Saint Petersburg, FL
Thanks Meter: 902
 
More
I run a dual boot between ubuntu and windows 7 for work

Sent from my HERO200 using XDA App
 
 
7th July 2011, 03:36 AM |#12  
hellmonger's Avatar
Senior Member
Flag Laval
Thanks Meter: 273
 
Donate to Me
More
Question
Anyone have a clue why i get this error?

Smali\baksmali>java -jar framework.jar
-o classout/ classes.dex

Failed to load Main-Class manifest attribute from
framework.jar

This prog hero specific?

Thanks'
7th July 2011, 05:33 AM |#13  
kyouko's Avatar
Senior Member
Thanks Meter: 265
 
More
Quote:
Originally Posted by hellmonger

Anyone have a clue why i get this error?

Smali\baksmali>java -jar framework.jar
-o classout/ classes.dex

Failed to load Main-Class manifest attribute from
framework.jar

This prog hero specific?

it not hero specific > link

framework.jar doesn't have the "Main-class" header which is why you're getting that error.

it should be
Code:
java -jar baksmali.jar -o classout/ classes.dex
NOT
Code:
java -jar framwork.jar -o classout/ classes.dex
java -jar is used to run the baksmali and smali.jar "applications"
The Following 4 Users Say Thank You to kyouko For This Useful Post: [ View ] Gift kyouko Ad-Free
15th January 2012, 02:23 PM |#14  
Ebaum1's Avatar
Senior Member
Flag Columbus, Oh
Thanks Meter: 49
 
More
can this be done in window? cygwin? I have tried to call baksmali for a classes.dex also and having no luck. any insight?
5th June 2012, 01:08 AM |#15  
Junior Member
Thanks Meter: 1
 
More
thank
thanksssssss
26th November 2012, 10:36 AM |#16  
Junior Member
Flag Ho Chi Minh
Thanks Meter: 3
 
More
Cloud Search
this app, everytime i start it, i have to press OK button (that annoying) but it work. see what can we do with it:
- i try to extract the classes.dex file, (using winrar)
- edit some code (to remove the dialog appear when it start),
- compress the code back .dex file
- put the .dex into .apk file
- install on the phone fail
can anyone give me suggestion or please do something..
Attached Files
File Type: apk SVRP-v1.7.5.apk - [Click for QR Code] (33.9 KB, 71 views)
18th December 2012, 08:26 PM |#17  
GEKTHEBOSS's Avatar
Senior Member
Thanks Meter: 2,974
 
More
Quote:
Originally Posted by khanhj

this app, everytime i start it, i have to press OK button (that annoying) but it work. see what can we do with it:
- i try to extract the classes.dex file, (using winrar)
- edit some code (to remove the dialog appear when it start),
- compress the code back .dex file
- put the .dex into .apk file
- install on the phone fail
can anyone give me suggestion or please do something..

Why you have attached a warez spy app?
12th September 2013, 11:50 AM |#18  
Senior Member
Thanks Meter: 34
 
More
Can anyone tell why I get this error?


UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: bad magic value: 64 65 79 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:359)
at org.jf.baksmali.main.main(main.java:176)
13th November 2014, 06:24 PM |#19  
Junior Member
Thanks Meter: 5
 
More
Using Win7. I've always just thrown all editing files in Android/SMALI folder.
Hold Shift, Right Click "Open Command Window Here".
Then for compressing/decompressing the commands I use are.

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

java -Xmx512M -jar smali.jar classout -o classes.dex

Haven't run into any issues yet. I noticed no one has put the "-Xmx512M" in their code.
I hope this helps.
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