Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
NunHugger
Old
#51  
NunHugger's Avatar
Recognized Developer - OP
Thanks Meter 7864
Posts: 3,567
Join Date: Dec 2009
Location: Des Moines, IA

 
DONATE TO ME
Quote:
Originally Posted by ndhanta View Post
Hi

This tutorial is the only reason by which i can start my coding experience. Thank you Nun and the Collectives.

In future i hope to see similar kind tutorial on baksmali, jar editing etc. for the beginers.
I can add a tutorial. Anything in particular you want to know?

Koff them with Kindness
The Following 3 Users Say Thank You to NunHugger For This Useful Post: [ Click to Expand ]
 
Aeonit
Old
#52  
Aeonit's Avatar
Senior Member
Thanks Meter 783
Posts: 553
Join Date: Feb 2012
Location: Planet Earth
Thank you very much NunH. tutorial regarding decompiling the framework.jar with edits etc. through baksmali manager or any good tool would be good for time being i think. :thumbup:

Sent from my SAMSUNG-SGH-I997 using XDA
My Phone: Samsung Infuse 4G.
ROM: Aeon 1.4SL (GB 2.3.6), ICS Themed.
Kernel: Infusion GB Z Core.
Clicking Thanks is best way to express Gratitude


 
Aeonit
Old
(Last edited by Aeonit; 1st May 2012 at 02:26 PM.)
#53  
Aeonit's Avatar
Senior Member
Thanks Meter 783
Posts: 553
Join Date: Feb 2012
Location: Planet Earth
Question Smali/baksmali

Hi

I was trying to implement a mod which requires smali/baksmali commands.

i have decompiled the classes.dex (pulled from framework.jar) with the following command

java -jar baksmali.jar classes.dex

It have created the folder "Out" in the same directory.

I have edited the codes in various smali files

while decompling using command (java -Xmx512M –jar smali.jar classes.dex) i have also applied several combos of commands and facing attached error log.

It is due to wrong recompiling command or bad edits in codes.

Thanks

Nits
Attached Thumbnails
Click image for larger version

Name:	error log.JPG
Views:	113
Size:	174.8 KB
ID:	1034558  
 
NunHugger
Old
#54  
NunHugger's Avatar
Recognized Developer - OP
Thanks Meter 7864
Posts: 3,567
Join Date: Dec 2009
Location: Des Moines, IA

 
DONATE TO ME
Just decompile the framework.jar the same way you would an APK file. It still create a folder with the smali folder decompiled the same.way it does for the APK. Do your edits...then if it does not recompile, it would be your edits.

Sent from my SGH-I997 using xda premium

Koff them with Kindness
The Following 2 Users Say Thank You to NunHugger For This Useful Post: [ Click to Expand ]
 
deathblade
Old
#55  
deathblade's Avatar
Senior Member
Thanks Meter 239
Posts: 859
Join Date: Dec 2011
Quote:
Originally Posted by NunHugger View Post
I can add a tutorial. Anything in particular you want to know?
nun could you please do another tut but for the ics files?, im trying to figure out how to do it and am making no progress, is it different commands for ics?
Samsung SGH-i977 Infuse 4G

Samsung SGH-I977 Infuse 4g
ROM: Empowered By CM10!!!

Motorola XOOM
ROM: Team EOS 4 JB!!

Samsung Galaxy Note SGH-i717
ROM: SLIMBEAN

Samsung Galaxy S Captivate i897
ROM: XYLON
KERNEL: Devil Kernel

LINKS:
 
ppalbicke
Old
#56  
ppalbicke's Avatar
Recognized Themer
Thanks Meter 2976
Posts: 2,151
Join Date: Dec 2010
Location: Chicago

 
DONATE TO ME
It is definitley more complicated with ICS and takes more time. So I heard and am trying to slowly learn....
My AOKP Infuse tastes like JellyBeans
New Theme Chooser themes and Jelly Bean Stuff HERE Try them, tastes like chicken!
Theme Chooser Themes made Specifically for the Note and Paranoid Android: Go Here and Get Them
Emancipation Themes in the OTA: Deep Blue, Evergreen, Aztec, Eternus Veris, Blood Orange, Purps, Communion, Tame Blue, SuperNova, Pink something or other
Get your Dropbox Here


 
deathblade
Old
#57  
deathblade's Avatar
Senior Member
Thanks Meter 239
Posts: 859
Join Date: Dec 2011
Quote:
Originally Posted by ppalbicke View Post
It is definitley more complicated with ICS and takes more time. So I heard and am trying to slowly learn....
yeah thats my understanding as well, but im just trying to apply a mod at the moment and i need to find out how to decompile ics framework.jar to do so
Samsung SGH-i977 Infuse 4G

Samsung SGH-I977 Infuse 4g
ROM: Empowered By CM10!!!

Motorola XOOM
ROM: Team EOS 4 JB!!

Samsung Galaxy Note SGH-i717
ROM: SLIMBEAN

Samsung Galaxy S Captivate i897
ROM: XYLON
KERNEL: Devil Kernel

LINKS:
 
~wolverine~
Old
#58  
~wolverine~'s Avatar
Senior Member
Thanks Meter 51
Posts: 124
Join Date: Sep 2011
Location: Kentucky
Quote:
Originally Posted by deathblade View Post
yeah thats my understanding as well, but im just trying to apply a mod at the moment and i need to find out how to decompile ics framework.jar to do so
Maybe this can help.

http://forum.xda-developers.com/show....php?t=1619473
The Following User Says Thank You to ~wolverine~ For This Useful Post: [ Click to Expand ]
 
deathblade
Old
(Last edited by deathblade; 4th May 2012 at 10:33 AM.)
#59  
deathblade's Avatar
Senior Member
Thanks Meter 239
Posts: 859
Join Date: Dec 2011
Quote:
Originally Posted by ~wolverine~ View Post
Thx will try it out when I get home


Edit: thx great tool, sorry i figured it out, thx again for the great tool


Sent from my SGH-I997 using xda premium
Samsung SGH-i977 Infuse 4G

Samsung SGH-I977 Infuse 4g
ROM: Empowered By CM10!!!

Motorola XOOM
ROM: Team EOS 4 JB!!

Samsung Galaxy Note SGH-i717
ROM: SLIMBEAN

Samsung Galaxy S Captivate i897
ROM: XYLON
KERNEL: Devil Kernel

LINKS:
 
qkster
Old
(Last edited by qkster; 4th May 2012 at 07:23 PM.)
#60  
qkster's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 4169
Posts: 3,008
Join Date: Apr 2011
Location: USA
Master Themers,
I require some assistant.
I was playing around with some mods.
Systemui to be exact. Decomp. Smali. Clock. Line 299.
color changed. Recompiled.
Moved status bar xml and classes.dex to original apk.
Got some ghosting hazy effects aroung the time. There is also ghosting/hazy effects noted at the date when you pull down the curtain and slide it back.
What did i do wrong?
Thanks.

edit: I had asked a local priest, but he said holy water would only do harm to the phone as it is not possessed - ie -lacking a soul.
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1336154165525.jpg
Views:	62
Size:	28.3 KB
ID:	1040839   Click image for larger version

Name:	uploadfromtaptalk1336154179909.jpg
Views:	60
Size:	28.5 KB
ID:	1040841  
Do you need THIS for your Infuse?

You should not do THIS without one of THESE.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...