[Q] [MOD] I9000B Deodex Mobile TV with baksmali - Galaxy S I9000 Themes and Apps

Hi All,
This is my first post, so sorry if is in wrong place.
I am trying to deodex the Mobile TV apk, that's come with brazilian SGS. But I get an error and I can't find in what apk/jar contains class.
I am using BAKSMALI in windows, if I try this:
java -jar baksmali-1.2.6.jar -c core.jar:framework.jar -x MobileTV.odex
Click to expand...
Click to collapse
I get this error:
Error occured while loading boot class path files. ... Could not find interface Lorg/apache/http/HttpRequestInterceptor;
Click to expand...
Click to collapse
If I change the order in -C argument to:
"java -jar baksmali-1.2.6.jar -c framework.jar:core.jar -x MobileTV.odex"
Click to expand...
Click to collapse
The error change:
Error occured while loading boot class path files. ... Interface Landroid/os/IBinder;
has the non-interface class Ljava/lang/Object; as its superclass
Click to expand...
Click to collapse
I have in da same directory all files off /system/framework/ and /system/app/
Can anyone help me?
Thanks.
Sorry for my english

nobody cam help me?

Related

WM7Full.bin taken apart..

If anybody is interested in grabbing the ringtones/wallpaper/strange sample icons from WM7, it's possible to reverse engineer the BIN file to get at the raw files that make up WM7.
Happy to post steps if anybody wants to get at this stuff, if not please see wallpapers and ringtones attached to this post. Hopefully helpful to somebody out there.
thanks... please post how to extract the bin for noobs!
Of course... you need:
- The BIN file. In this case I used WM7Full.bin available from several sites
- viewbin.exe from Microsoft Platform SDK
- cvrtbin.exe from Microsoft Platform SDK
- dumprom.exe from Microsoft Platform SDK
You may also be able to find these utilities using Google.
Use viewbin.exe to analyse the file:
viewbin.exe -t wm7full.bin
You'll see an image start and length. Start was 0x81000000 with length 0x0496A294 for the specific file I used. Plug these values into cvrtbin.exe:
cvrtbin.exe -r -a 0x81000000 -l 0x0496A294 -w 32 wm7full.bin
(obviously substituting the -a and -l value for those obtained from viewbin. Leave -w as 32)
This will produce wm7full.nb0. Plug this file into dumprom.exe:
dumprom.exe -d c:\output wm7full.nb0.
And there you have it, the files will be chucked into c:\output in their entirety.
Thanks for this one, some good sounds inside
I can't find viewbin.exe, cvrtbin.exe, and dumprom.exe anywhere, can someone post a link?
EDIT: Or, better yet, could someone just upload the dump?
EDIT 2: Okay, I found the tools, but the dump didn't work. Any suggestions?
Could you provide details of the error that you're seeing please?
To answer your other questions, I'm not planning to upload the whole dump as it's copyright and against the forum rules. Same goes for the tools, they're part of the Platform Builder SDK.
akersj said:
Happy to post steps if anybody wants to get at this stuff, if not please see wallpapers and ringtones attached to this post. Hopefully helpful to somebody out there.
Click to expand...
Click to collapse
Thank you very much
Not to be a buzzkill, but these are the same ringtones and sounds from 6.1/6.5
Though I missed flamenco fire, thanks for bringing it back
mazzarin said:
Not to be a buzzkill, but these are the same ringtones and sounds from 6.1/6.5
Though I missed flamenco fire, thanks for bringing it back
Click to expand...
Click to collapse
LOL.. I didn't try 6.1/6.5, just saw the BIN file screaming to be taken apart! Flamenco Fire ... hmm interesting
akersj said:
Could you provide details of the error that you're seeing please?
To answer your other questions, I'm not planning to upload the whole dump as it's copyright and against the forum rules. Same goes for the tools, they're part of the Platform Builder SDK.
Click to expand...
Click to collapse
There is no error message; I run the tools exactly as described, which works, but when I look for "C:\output", I can't find it. Otherwise everything is fine.
Fdo35 said:
There is no error message; I run the tools exactly as described, which works, but when I look for "C:\output", I can't find it. Otherwise everything is fine.
Click to expand...
Click to collapse
You will need to substitute c:\output for a directory of your choice that exists on your system. Please also ensure that you are using the offset and length appropriate to the bin file you are using.
Fdo35 said:
There is no error message; I run the tools exactly as described, which works, but when I look for "C:\output", I can't find it. Otherwise everything is fine.
Click to expand...
Click to collapse
as akersj says above... you need to create the folder c:\output first or use another folder that already exists. The tools will not create a new directory for you.
Oh, I see now! I can't believe I didn't try that!
Well, anyway, this is pretty interesting. Especialy files like 'FileBrowser.exe,' FileBrowserCM.dll,'and 'NativeInstallerHost.exe' could be of some great use to us.

Odexing problem - need technical help!!!

Hi all
Just need a little technical help here
I am making a script to odex a ROM
Currently the only way of odexing a ROM is by doing it on the phone (pushing the files to the phone and executing them there)
I have made a script which will extract a ROM to a folder, odex it, and let you compress/sign/flash it.
The problem :
It seems that deoxpt-wrapper (the module which odexes the files) is a binary file and therefore can not be executed. I assume only the Android OS can use this module which is why it can not be done on computer? Does this mean that odexing can only be done on a phone?
This is the code I am having trouble with:
Code:
~/resources/dexopt-wrapper $filename `echo $filename | sed 's/\(.*\.\)apk/\1odex/'`
Any advice would be greatly appreciated.
Regards
polite bump
no-one can help?

[Q] Problem Deodexing 2.51.1 xUltimate

hey guys,
i tried to deodex my 2.51.1 but i always get this error when trying to deodex
BlurServices files...
Code:
*****************************************
* Deodexing... *
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find sup
erclass Ljavax/servlet/http/HttpServlet;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPa
th.java:784)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:
668)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280
)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:16
3)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPath(ClassPath.j
ava:131)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:103)
at org.jf.baksmali.main.main(main.java:278)
Error while loading class Lnet/oauth/signature/Echo; from file .\origi_app\blur-
services.odex
Error while loading ClassPath class Lnet/oauth/signature/Echo;
Drücken Sie eine beliebige Taste . . .
maybe someone can give me a hint :=)
thanks in advance,
cV
Yes the hint is "bootclasspath"
Higgsy said:
Yes the hint is "bootclasspath"
Click to expand...
Click to collapse
thanks for the tip, i searched for it in google, but only found errors with other combinations..
do i need to manually deodex each file, setting different bootclasspaths for every file manually?
or is there some workaround which lets me set the right files for all deodexing files..
would be very thankful for any more advices.. (also want to share the deodexed files after finishing)
greets,cV
crazyVII said:
thanks for the tip, i searched for it in google, but only found errors with other combinations..
do i need to manually deodex each file, setting different bootclasspaths for every file manually?
or is there some workaround which lets me set the right files for all deodexing files..
would be very thankful for any more advices.. (also want to share the deodexed files after finishing)
greets,cV
Click to expand...
Click to collapse
same here, get the same error message and don't know how to solve this issue..
Having the same issue as well when running text.exe from xUltimate. Hope someone could point us the right direction.
org.jf.dexlib.Util.ExceptionWithContext: Cannot locate boot class path file core
.odex
at org.jf.dexlib.Code.Analysis.ClassPath.loadBootClas sPath(ClassPath.jav
a:237)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPat h(ClassPath.java:14
5)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeCl assPathFromOdex(Cla
ssPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksma li.java:96)
at org.jf.baksmali.main.main(main.java:278)
Press any key to continue . . .

Kitchen help batch file

Hi would love some help! my problem is that I am having trouble getting kitchen to work in windows 7 64 bit, I need to edit the batch_file to get java to Work ( have used notepad++ to edit ) . I am using this command "PATH=/cygdrive/c/Program\ Files/Java/jre7/bin:\${PATH}" but am having no luck, my question is am I using the correct command / and where do I add this command in the .batch file . Would it be possible if some one could upload their batch file? Many thanks Michael:good:
batch file java
MRobbo80 said:
Hi would love some help! my problem is that I am having trouble getting kitchen to work in windows 7 64 bit, I need to edit the batch_file to get java to Work ( have used notepad++ to edit ) . I am using this command "PATH=/cygdrive/c/Program\ Files/Java/jre7/bin:\${PATH}" but am having no luck, my question is am I using the correct command / and where do I add this command in the .batch file . Would it be possible if some one could upload their batch file? Many thanks Michael.
Not sure if this posted in the right section.
Click to expand...
Click to collapse

Apktool error when compiling

I issue the following command to decompile the apk:
Code:
apktool d framework-res.apk
I make a the following edits in the file res/values/dimens.xml:
Code:
<dimen name="thumbnail_height">[COLOR="Red"]240.0dip[/COLOR]</dimen>
<dimen name="thumbnail_width">[COLOR="Red"]151.0dip[/COLOR]</dimen>
I issue the following command to recompile the apk:
Code:
apktool b framework-res.apk
Then I get the following error:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Other information:
Java version: Version 7 Update 25
Apktool version: 1.5.2
OS: Windows
Tool used: Command Prompt (cmd.exe)
Someone please help. This is really getting on my nerves. Thanks.
EDIT: Sorry guys!
I just fixed it.
Instead of issuing the command:
Code:
apktool b framework-res.apk
I issued:
Code:
apktool b framework-res
All I had to do do was remove apk from the command.
It ended up in the folder named dist.
I'll leave this thread so it can help others.
I'm having the exact same problem at the moment while trying to edit the Androidmanifest.xml file.
I'll try this solution now and edit this post saying whether it works for me or not :thumbup:
Edit: This did work for me :thumbup: However I then came across another error (which I think was due to how I modified the APK)
Sent from my R800i using xda app-developers app
In fact, if you read the error carefully, you see that a file is missing : apktool.yml. This file is created by apktool each time you decompile an apk. It contains the Android version, the framework path, etc... But if you have a wrong framework installed, apktool will stop and won't create this file, so it won't be able to read the correct informations to recompile
Most of the errors with apktool come with a wrong use, a wrong version or something of that type, very few of them come from a problem of compilator (unless you mod a lot the smali files and all).
izi501 said:
In fact, if you read the error carefully, you see that a file is missing : apktool.yml. This file is created by apktool each time you decompile an apk. It contains the Android version, the framework path, etc... But if you have a wrong framework installed, apktool will stop and won't create this file, so it won't be able to read the correct informations to recompile
Most of the errors with apktool come with a wrong use, a wrong version or something of that type, very few of them come from a problem of compilator (unless you mod a lot the smali files and all).
Click to expand...
Click to collapse
No. The apktool file was missing because I tried to compile the apk within itself. The apktool file wasn't originally in the apk. Instead of compiling from the original apk you need to compile from the folder which contains apktool.yml. That's why I took the .apk extension out of the command.
thehacka1 said:
No. The apktool file was missing because I tried to compile the apk within itself. The apktool file wasn't originally in the apk. Instead of compiling from the original apk you need to compile from the folder which contains apktool.yml. That's why I took the .apk extension out of the command.
Click to expand...
Click to collapse
Hmm yes of course ! Sorry I didn't read your post carefully enough

Categories

Resources