Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
houmles
Old
#1  
houmles's Avatar
Member - OP
Thanks Meter 6
Posts: 96
Join Date: Jul 2008
Location: Prague
Default combine same jar files

hi guys,

i am looking for way to easily "combine" multiple same jar files.
one example: i want to use 2-3 mods which are in services.jar but when i overwrite this file with another services.jar in /system/framework i always have only one mod logically.
so i can't use "trackball notification", "battery percent" and "browser mod" together.
i found way how to do but it's not easy. i unpacked jar and got classes.dex which i dedexed with baksmali and got many smali files then i combine the changed files from all mods and combine them via smali back to dex file and pack them back in jar file.

is there easier way to do it?
 
wesbalmer
Old
#2  
Senior Member
Thanks Meter 29
Posts: 406
Join Date: Oct 2008
Location: Los Angeles, CA
Use the diff command, using logical attributes (otherwise as soon as you see some new code, the rest that follows may make you believe there is something new)

And write your own Jar file



then post it back up here for us all to use; including the mods you've installed...

Mostly, though, I would say this belongs in a different forum
HTC Dream 1year> Nexus One 6months> Motorola Droid I/O’10 Gift> HTC Evo4G I/O’10 Gift> Samsung Vibrant ~1month> Nexus One 4months> MyTouch4G ~1month> Nexus S ~1month> Nexus One ~1month> HTC HD2 ~1month> Nexus One -in use> LG G2x 4months> HTC-Sensation ~2months> LG G2x -in use

Logitech Revue 3 Months, didn’t really use it
GalaxyTab 10.1 Less than a month, waiting for next gen Tegra3
 
TheDudeOfLife
Old
#3  
TheDudeOfLife's Avatar
Senior Member
Thanks Meter 42
Posts: 888
Join Date: Jul 2008
Location: Chicago

 
DONATE TO ME
Quote:
Originally Posted by houmles View Post
hi guys,

i am looking for way to easily "combine" multiple same jar files.
one example: i want to use 2-3 mods which are in services.jar but when i overwrite this file with another services.jar in /system/framework i always have only one mod logically.
so i can't use "trackball notification", "battery percent" and "browser mod" together.
i found way how to do but it's not easy. i unpacked jar and got classes.dex which i dedexed with baksmali and got many smali files then i combine the changed files from all mods and combine them via smali back to dex file and pack them back in jar file.

is there easier way to do it?
Your only other option would be to download the aosp source and compile the changes in yourself. Most of these changes are already in cyanogen's latest github.

The browser one is the only one i'm not sure of
*thanks bro!*


Follow me on Twitter: http://twitter.com/thedudesandroid
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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...