[Q] How to trouble shoot BOOT CLASS PATH Error during Deodexing? - Xperia SP Q&A, Help & Troubleshooting

I tried to deodex my Xperia SP .284 Stock ROM using xUltimate 2.4
First of all Norton Antivirus wont let me do it. It deleted the file opt_apk.exe saying it is Malware. Is it safe? any one with problem with this file?
However with Norton disabled, i pulled apps and framework but xUltimate shows BOOTCLASS PATH Error
Starting ApplicationsProvider.odex
*****************************************
* Deodexing... *
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find int
erface Lcom/android/internal/widget/multiwaveview/GlowPadView$OnTriggerListener;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadAllImplementedInterfaces(ClassPath.java:865)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:690)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPath(ClassPath.java:131)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:111)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/android/internal/policy/impl/LockScreen$GlowPadViewMethods; from file .\origi_frame\android.policy.zip
Error while loading ClassPath class Lcom/android/internal/policy/impl/LockScreen$GlowPadViewMethods;
Press any key to continue . . .
Please help

shubham.12 said:
I tried to deodex my Xperia SP .284 Stock ROM using xUltimate 2.4
First of all Norton Antivirus wont let me do it. It deleted the file opt_apk.exe saying it is Malware. Is it safe? any one with problem with this file?
However with Norton disabled, i pulled apps and framework but xUltimate shows BOOTCLASS PATH Error
Starting ApplicationsProvider.odex
*****************************************
* Deodexing... *
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find int
erface Lcom/android/internal/widget/multiwaveview/GlowPadView$OnTriggerListener;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadAllImplementedInterfaces(ClassPath.java:865)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:690)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPath(ClassPath.java:131)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:111)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/android/internal/policy/impl/LockScreen$GlowPadViewMethods; from file .\origi_frame\android.policy.zip
Error while loading ClassPath class Lcom/android/internal/policy/impl/LockScreen$GlowPadViewMethods;
Press any key to continue . . .
Please help
Click to expand...
Click to collapse
Download or install xUltimate again and disable the anti virus before you run it. Don't worry about viruses from Android relates tools.
The reason you get that error is because of the file you deleted. That file is the one which packs the .dex file into the apk file. Hence why the process is called deodexing.
Good luck. :good:

gadgetroid said:
Download or install xUltimate again and disable the anti virus before you run it. Don't worry about viruses from Android relates tools.
The reason you get that error is because of the file you deleted. That file is the one which packs the .dex file into the apk file. Hence why the process is called deodexing.
Good luck. :good:
Click to expand...
Click to collapse
already done bro!
i disbled antivirus re extracted xUltimate still no luck.

shubham.12 said:
already done bro!
i disbled antivirus re extracted xUltimate still no luck.
Click to expand...
Click to collapse
Hi,
If you still haven't managed to sort out that problem, then please give my tool a try - http://forum.xda-developers.com/showthread.php?t=2213235
This error occurs when the framework files are not present and baksmali.jar tries to deodex the apk.

abcdjdj said:
Hi,
If you still haven't managed to sort out that problem, then please give my tool a try - http://forum.xda-developers.com/showthread.php?t=2213235
This error occurs when the framework files are not present and baksmali.jar tries to deodex the apk.
Click to expand...
Click to collapse
ok well i might give your tool a try sometime. thanks already for it
Will you be able to tell me how to include framework files?

shubham.12 said:
ok well i might give your tool a try sometime. thanks already for it
Will you be able to tell me how to include framework files?
Click to expand...
Click to collapse
Well I tried deodexing with xUltimate but I couldn't get it to work. Sorry
I tried copying all framework files to the jar folder, ori_framework too but no luck.

Related

[solved]Editing and installing apk's

To install an edited apk-
-If you open up the apk with
Ninjamorph free as a new project, and make your changes.
-Use a file explorer and goto android themes>workspace>"edited apk" and delete meta-inf.
-Then back to ninjamorph, select finish project to zip it back up but DON'T INSTALL !!
-Use
Signapktic free with platform key to sign it. Uninstall the original apk and install your new edited apk.
Hope this helps
You cannot use that method on market apps. It only works with system apps.
tristan202 said:
You cannot use that method on market apps. It only works with system apps.
Click to expand...
Click to collapse
Use which method? What do you suggest to do?
dully79 said:
Use which method? What do you suggest to do?
Click to expand...
Click to collapse
You can't just edit the apk or use metamorph on market apps. If edited, they need to be resigned. Not sure if signing with a testkey is sufficient.
Just tried editing then resigning market apps works with non-protected apps
tristan202 said:
You can't just edit the apk or use metamorph on market apps. If edited, they need to be resigned. Not sure if signing with a testkey is sufficient.
Click to expand...
Click to collapse
I'm not trying to use metamorph, that's for themes not icons.
I've tried deleting the meta inf and resigning the apk's with my own key but it still doesn't work.
I've managed to edit them like I described above by installing them as system apps, but I don't want in the system.
Surely there must be a way? Where's the apps2sd directory?
you can edit market apps, then resign them. you must uninstall the app on your phone before installing the modified one, because it is signed with a different key. once the old one is uninstalled every method of installation should work fine for the modified one.
you can edit system apps, just don't unzip or resign them. but you figured that out already.
kendong2 said:
you can edit market apps, then resign them. you must uninstall the app on your phone before installing the modified one, because it is signed with a different key. once the old one is uninstalled every method of installation should work fine for the modified one.
you can edit system apps, just don't unzip or resign them. but you figured that out already.
Click to expand...
Click to collapse
Can I use one of the many autosign keys, or do I need to generate my own?
If so do I need to generate different keys for different apks or can I use the same key?
Problem solved!!
I deleted the meta-info and signed the apk manually using stericsons auto sign tool, I did try auto signing but the apk wouldnt install.
Thanks people for your help!
Hi all...not sure what I'm doing wrong...if someone could point out my mistake(s) I would greatly appreciate it!
01) Right click on original.apk and open with 7zip
02) Navigate to res/drawable-hdpi
03) Right click the .png files and select 'edit' (the edit option points them to Paint.net)
04) Edit the .png files and save (not sure if this matters, but when I close Paint.net I get a msg saying that the *.png has been changed, would you like to update the archive...if I click yes, it puts an 'a' in the attributes column...if I click cancel it does not save the changes I made)
05) Close the archive and open autosign.bat
06) Choose 'manually sign'
07) type in c;\AndroidSDK\tools\original.apk and I get the following:
**************
Signing File!
**************
Exception in thread "main" java.lang.NoClassDefFoundError: testsign
Caused by: java.lang.ClassNotFoundException: testsign
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: testsign. Program will exit.
File signed successfully if no Errors above.
I copied the apk to my sdcard and tried to install anyways and I get the application not installed message...
The apk I am editing is someone elses edit of a theme...I just changed the colors of 6 of the png files...if I try to install the one that I have before I edit, it works fine...but once I make my changes it doesn't like something I am doing...
Any help would be appreciated!
Thank you,
SixTen
gszeman said:
Hi all...not sure what I'm doing wrong...if someone could point out my mistake(s) I would greatly appreciate it!.....
Click to expand...
Click to collapse
First let me say I have no experiance with what your trying to do,... Just trying to learn the theory 1st.
Have you made a note of these points,...
kendong2 said:
you must uninstall the app on your phone before installing the modified one, because it is signed with a different key
Click to expand...
Click to collapse
kendong2 said:
you can edit system apps, just don't unzip or resign them. but you figured that out already.
Click to expand...
Click to collapse
I'm assuming a theme would be a system app, not a market app.
So try uninstalling the theme, then reinstalling again.
If that fails,...
dully79 said:
Problem solved!!
I deleted the meta-info and signed the apk manually using stericsons auto sign tool, I did try auto signing but the apk wouldnt install.
Click to expand...
Click to collapse
Any luck with that???
Actually,... If your not resigning your theme then It would still be the same key wouldn't it. So the Kendong quote I used isn't applicable to you is it. Sorry.
kendong2 said:
you can edit market apps, then resign them. you must uninstall the app on your phone before installing the modified one, because it is signed with a different key.
Click to expand...
Click to collapse
So really you need to figure out how to do this properly dont you,... and have the changes you made keep saved.
kendong2 said:
you can edit system apps, just don't unzip or resign them. but you figured that out already.
Click to expand...
Click to collapse
So,.... I'v just wasted my time as I've been no use to you at all. Good luck though.
gszeman,
Have you got JDK installed and the correct classpath set?
dully79 said:
gszeman,
Have you got JDK installed and the correct classpath set?
Click to expand...
Click to collapse
Doh,... I forgot to put the path stuff, good call Dully.
phaelox said:
Setting up SignAPK
First, make sure you have Java installed. If not go to www.java.com to install it.
Second, I recommend to unzip the SignAPK_xda.zip file to C:\SignAPK.
Lastly, add the signapk folder to your PATH environment variable:
[*]Go to Control Panel, System
[*]Click on "Advanced" (or "Advanced System Settings")
[*]Click the button "Environment Variables..."
[*]Locate the PATH variable under "User Variables" (or "System variables" if you want to use SignAPK under other user accounts) and double-click it to edit
[*]In the "Variable Value" field, at the end of the line, type a semi-colon and the path to the signapk files ;C:\SignAPK
[*]You could also add the path to your java.exe file here if you have troubles with running signapk.​
Click to expand...
Click to collapse
moved to first post
Thanks.
(Bookmarked for future ref)
you might wanna mark the thread title with [SOLVED] or something...
hi all want to ask if i can do the same with doom for android apk. ?
also wanted to HEX change the urls where it loooks for libdoom_jni.so . and it cant find it because google toke down the site, so i uploaded my own libdoom_jni.so so wantet to change url in apk and resign. but it says !cant install on this phone!
i did try other sites with same subject, open apk archive (no extract) change png icons, and resign again.
deluxive said:
hi all want to ask if i can do the same with doom for android apk. ?
also wanted to HEX change the urls where it loooks for libdoom_jni.so . and it cant find it because google toke down the site, so i uploaded my own libdoom_jni.so so wantet to change url in apk and resign. but it says !cant install on this phone!
i did try other sites with same subject, open apk archive (no extract) change png icons, and resign again.
Click to expand...
Click to collapse
it'll be perfect if possible. I would love to play that game. Have you succeeded in finding the url and replacing it with yours?
Okay...so I have followed the instructions and the apk will not load. I changed some png files in my settings.apk and when I load it...it vanishes completely.
Any ideas what am missing?

[Q] How to edit framework-res.apk?

I'm trying to edit framework-res.apk so I can theme my rom. Are these the correct steps?
pull framework-res.apk from my phone
decompile the apk
make the changes
rebuild the apk
sign
zipalign
push apk back to device
I'm not too sure on this method as after I pushed back my modified apk, I get a load of force close errors
Any advice would be welcome
don't sign and don't zipalign and all are fine
I tried without sign and zipalign but the rom wouldnt boot. If I sign, I get force close errors
Does the rom need to be deoxed?
How is your process to decompile and recompile what tools do you use
vibez said:
I tried without sign and zipalign but the rom wouldnt boot. If I sign, I get force close errors
Does the rom need to be deoxed?
Click to expand...
Click to collapse
Sent from my GT-I9000 using XDA App
Is this an ODEXed ROM or a deOXEDed ROM? You can't mix and match. If you're not ODEXing any APKs after you've modified them then you need to make sure all APKs are deOXEDed.
setenza01 said:
How is your process to decompile and recompile what tools do you use
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
I use apk manager to decompile and rebuild
Benjamin Dobell said:
Is this an ODEXed ROM or a deOXEDed ROM? You can't mix and match. If you're not ODEXing any APKs after you've modified them then you need to make sure all APKs are deOXEDed.
Click to expand...
Click to collapse
It is a stock rom but there is no framework-res.odex does that mean it doesn't need deodexing even though there are odex files for every other apk in my system folder?
maybe this little monster is some help to you:
http://forum.xda-developers.com/showthread.php?p=7377678#post7377678
FadeFx said:
maybe this little monster is some help to you:
http://forum.xda-developers.com/showthread.php?p=7377678#post7377678
Click to expand...
Click to collapse
Nice app but this theme also needs .xml changes which this app doesnt support
ok, i put him a note in his thread about the xml changing issue, we will see what hes answer will be...
edit:
also this software could do the trick: http://android.modaco.com/content/t-mobile-pulse-pulse-modaco-com/302404/ande-android-design-editor/
I've been playing around a little more today and it seems the issue is that no tool can rebuild the xml files correctly, they seem to be compressed/encoded.
Has anyone been able to edit an xml file in framework-res.apk and have the phone read it properly?
vibez said:
I've been playing around a little more today and it seems the issue is that no tool can rebuild the xml files correctly, they seem to be compressed/encoded.
Has anyone been able to edit an xml file in framework-res.apk and have the phone read it properly?
Click to expand...
Click to collapse
Refer to my signature. Apk manager.
Edit : just read ur op.
Never sign the system apk's. Simply keep the original signatures intact and after recompiling them, re-include them.
So here are the rules u must follow :
If u've modified the manifest.xml, u must stop core, push the apk, start core or push the apk while in recovery.
If u've modified anything else, a simple push / reboot will do the trick.
Note, u cannot flash a modified system apk the first time (as in on a clean boot), u must flash the original rom, let it build the dex's and then flash ur modified apk.
Daneshm90 said:
Refer to my signature. Apk manager.
Edit : just read ur op.
Never sign the system apk's. Simply keep the original signatures intact and after recompiling them, re-include them.
Click to expand...
Click to collapse
Hi, I am already using apk manager but the xml files it creates do not seem to work.
To prove this, I have done a test. See the attached xml files,
original_stat_sys_battery.xml was extracted from the original framework-res.apk
I then used apk manager to decompile and then recompile the same apk without making any changes.
recompiled_stat_sys_battery.xml is this recompiled file
I then opened up both files and they look different to me
vibez said:
Hi, I am already using apk manager but the xml files it creates do not seem to work.
To prove this, I have done a test. See the attached xml files,
original_stat_sys_battery.xml was extracted from the original framework-res.apk
I then used apk manager to decompile and then recompile the same apk without making any changes.
recompiled_stat_sys_battery.xml is this recompiled file
I then opened up both files and they look different to me
Click to expand...
Click to collapse
That shouldn't concern u. Apktool's method of rebuilding the apk/arsc file is slightly different than how android originally builds an apk. What should concern u is if the apk simply works. Now when u decompile the apk, can u check the log to see if it reports of any missing resources, if it doesn't ur fine. So decompile the apk, make ur changes, recompile the apk, move the original meta-inf folder into ur new apk and push it to ur phone following the guidelines in my previous post. if it causes problems, post ur log and i'll take a look.
Ok this time I have added meta-inf to the new apk, pushed it to my phone and the phone hangs on boot.
Here is my log
--------------------------------------------------------------------------
|08/08/2010 -- 18:36:30.87|
--------------------------------------------------------------------------
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the path specified.
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Documents and Settings\Lee\Desktop\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged.apk
Could Not Find C:\Documents and Settings\Lee\Desktop\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-signed.apk
Could Not Find C:\Documents and Settings\Lee\Desktop\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-unsigned.apk
The system cannot find the file specified.
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'keyguard_password_attempts_count_pin_code' has no default translation in C:\Documents and Settings\Lee\Desktop\Apk_Manager_4.8\other\..\out\res; found: fr ko
I: Building apk file...
Click to expand...
Click to collapse
Oh lol i meant the log of ur phone.
Use adb logcat
lol ok, at which point should I run logcat - after the hang or as soon as I switch the phone on?
vibez said:
lol ok, at which point should I run logcat - after the hang or as soon as I switch the phone on?
Click to expand...
Click to collapse
When u switch phone On.
Ok here you are
vibez said:
Ok here you are
Click to expand...
Click to collapse
Heres ur culprit
Code:
java.lang.SecurityException: META-INF/MANIFEST.MF has invalid digest for AndroidManifest.xml
Now seems u modified the androidmanifest.xml ? If u didn't then heres my recommendation, copy over the original androidmanifest.xml from the original apk.

[Guide] How to deodex SMemo.apk

SMemo.apk is making problem when trying to deodex it.
I found the dependencies files and it works great!
Download the 2 attached files: servlet.jar and memo.jar
put these files in your framework folder
Use these files to deodex SMemo.apk -
twframework.jar
com.google.android.maps.jar
secmediarecorder.jar
memo.jar
servlet.jar
deodex your SMemo.apk
Good luck! Don't forget to hit the "Thanks" button :good:
Nice work dude!
You also need twframework.jar and com.google.android.maps.jar but those are to find in /framework.
But anyway there are still some errors:
Code:
Error while disassembling method Lcom/diotek/gdocs/util/GDocsSync$1;->run()V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: Could not resolve the field in class Lcom/diotek/gdocs/util/GDocsSync; at offset 120
added full list of jar needed to deodex SMemo
firefds said:
added full list of jar needed to deodex SMemo
Click to expand...
Click to collapse
hm still the same
Code:
Error while disassembling method Lcom/diotek/gdocs/util/GDocsSync$1;->run()V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: Could not resolve the field in class Lcom/diotek/gdocs/util/GDocsSync; at offset 120
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1084)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:213)
at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:379)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:132)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:338)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:117)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
at org.jf.baksmali.main.main(main.java:297)
opcode: iput-quick
CodeAddress: 3
Method: Lcom/diotek/gdocs/util/GDocsSync$1;->run()V
What version of smali/baksmali are u using?
Bak/smali 1.3.2
Dont forget to add the -a 15 tag
Sent from my GT-I9300 using xda premium
Hi~
Thanks for your method, I can deodex SMemo.apk, now.
Do you know how to deodex SlideShow.apk?
I got this error message as below
Code:
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Lcom/sec/android/gallery3d/app/AbstractGalleryActivity;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:830)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:683)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/sec/android/gallery3d/util/KeyBoardManager; from file ./system/app/SlideShow.odex
Error while loading ClassPath class Lcom/sec/android/gallery3d/util/KeyBoardManager;
Yes.. take the secGallery2.apk from the app folder and change it to .jar
Then stick it in the framework folder snd use it to deodex slideShow.apk
Dont forget to delete it before flashing!
Sent from my GT-I9300 using xda premium
mike1986. said:
hm still the same
Code:
Error while disassembling method Lcom/diotek/gdocs/util/GDocsSync$1;->run()V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: Could not resolve the field in class Lcom/diotek/gdocs/util/GDocsSync; at offset 120
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1084)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:213)
at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:379)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:132)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:338)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:117)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
at org.jf.baksmali.main.main(main.java:297)
opcode: iput-quick
CodeAddress: 3
Method: Lcom/diotek/gdocs/util/GDocsSync$1;->run()V
What version of smali/baksmali are u using?
Click to expand...
Click to collapse
It's working here with the kitchen 1.9.6, thanks firefds.
firefds said:
Bak/smali 1.3.2
Dont forget to add the -a 15 tag
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
1.3.3 >^^<
http://forum.xda-developers.com/showpost.php?p=26007283&postcount=1
I have a problem... how to solve?
Code:
All ODEX files:
(1) ./system/app/SlideShow.odex
(2) ./system/app/SMemo.odex
Enter file number (0 = cancel): 2
Enter any JAR file dependencies separated by colon (Enter=none).
NOTE: To ignore errors, type 'ignore' by itself or after dependencies
./system/app/SMemo.odex > smemo.jar servlet.jar
Disassembling ./system/app/SMemo.odex ...
java -Xmx512m -jar baksmali.jar -a 15 -d system/framework -x ./system/app/SMemo.odex
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Lcom/sec/android/framework/draw/Stage;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:830)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:683)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/diotek/diodraw/Stage; from file ./system/app/SMemo.odex
Error while loading ClassPath class Lcom/diotek/diodraw/Stage;
Try ./system/app/SMemo.odex again (y/n)? (default: y):
roxdragon said:
I have a problem... how to solve?
Code:
All ODEX files:
(1) ./system/app/SlideShow.odex
(2) ./system/app/SMemo.odex
Enter file number (0 = cancel): 2
Enter any JAR file dependencies separated by colon (Enter=none).
NOTE: To ignore errors, type 'ignore' by itself or after dependencies
./system/app/SMemo.odex > smemo.jar servlet.jar
Disassembling ./system/app/SMemo.odex ...
java -Xmx512m -jar baksmali.jar -a 15 -d system/framework -x ./system/app/SMemo.odex
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Lcom/sec/android/framework/draw/Stage;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:830)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:683)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/diotek/diodraw/Stage; from file ./system/app/SMemo.odex
Error while loading ClassPath class Lcom/diotek/diodraw/Stage;
Try ./system/app/SMemo.odex again (y/n)? (default: y):
Click to expand...
Click to collapse
Put your 2 jar files on /framework and try with option "a" (deodex app folder).
Solved thank youuuuu!
I must remove files / dependences?
firefds said:
Dont forget to delete it before flashing!
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
1. Into /system/app i have SecGallery2.jar ...rename it SecGallery2.apk?
2. I need delete "servlet" and "SecGallery2.jar" into /system/framework before flashing?
Thank you!
Anyone have a working deodexed SMemo they can put up a download for? I removed my originals from the phone and the odexed ones aren't working as it just FCs every time. All other apps are working great when I restore in system/apps
ok,solve problems,thanks
all framework add,it‘s do it,thanks!
I would also like a download link if possible? this is all to much for me to do myself, im ok rooting, modding framework & system apps but i cant get my head round things like this? If anyone gets this working please send me a Private Message with the link please? Would really like this too
I pulled SMemo app & SMemo Provider apks from the DragonICS Rebirth rom & added it to my rom & I now have SMemo, also pulled Voice Recorder too :0)
Sent via my pimped out Samsung Galaxy S III using Tapatalk
I am tired and I need help...what am I doing wrong>??
the command where I need to deodex the .odex file, it NEVER makes the damn 'out' folder...
it spits out some weird help menu..
-a, --api level
-b,-- no-debug-info
this sort of ****...plz someone help me..
this is neither an error, nor is it a solution...i dont know what to Google also?
This would be amazing if it got done. Keep up the great work guys
This method is not needrd anymore.. just use baksmali/smali 1.3.3. No need for extra files
Sent from my GT-I9300 using xda premium

[HELP] 'Java' is not recognized...

Hi everyone, I was trying to edit an apk file (it's the first time I try) and when I try to decompile classes.dex with dex2jar the console says "java is not recognized as an internal or external command"... I tried to set new PATH and CLASSPATH with the value as the address where's located java.exe and it still doesn't work..
Anyone can help me?
EDIT: New issue when I try do decompile a classes.dex file: "Error: Could not find or load main class com.googlecode.dex2jar.v3.Main"... I'm being mad with these errors...
Anyone can help me with this?
smoza said:
Hi everyone, I was trying to edit an apk file (it's the first time I try) and when I try to decompile classes.dex with dex2jar the console says "java is not recognized as an internal or external command"... I tried to set new PATH and CLASSPATH with the value as the address where's located java.exe and it still doesn't work..
Anyone can help me?
EDIT: New issue when I try do decompile a classes.dex file: "Error: Could not find or load main class com.googlecode.dex2jar.v3.Main"... I'm being mad with these errors...
Anyone can help me with this?
Click to expand...
Click to collapse
This is likely obvious, but do you have Java installed?
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Fixed: I set the enviroment paths in the wrong way :laugh:

the package appears to be corrupt after Recompile

I Decompile apk app and recompile it without any edit but the app is didn't install the error message : the package appears to be corrupt after Recompile
I tried
apktool + dex-tools + signapk
apk easy tool
apk editor studio
what is a problem?
i want edit mediabox launcher
how can i do it?
please help me.
this error
Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE: Package couldn't be installed in /data/app/com.droidlogic.mboxlauncher-1: Package com.droidlogic.mboxlauncher has no signatures that match those in shared user android.uid.system; ignoring!]
Any luck in similar situations? Anybody?
Abo Battal said:
I Decompile apk app and recompile it without any edit but the app is didn't install the error message : the package appears to be corrupt after Recompile
I tried
apktool + dex-tools + signapk
apk easy tool
apk editor studio
what is a problem?
Click to expand...
Click to collapse
The error message "the package appears to be corrupt" usually indicates that there is an issue with the APK file itself, such as missing or corrupted files, incorrect file permissions, or a problem with the signing process.
It's possible that the decompilation process may have introduced some errors or corrupted files in the APK, even if you did not make any edits to the code. When you recompiled the APK, these errors may have been carried over, resulting in the "corrupt" package.
To troubleshoot this issue, you could try the following steps:
Make sure you are using the latest version of the APK tools (apktool, dex-tools, signapk, etc.), as older versions may have bugs or limitations that could cause issues.
Check the log files generated during the decompilation and recompilation process to see if there were any errors or warnings that may have contributed to the issue.
Try recompiling the APK using a different tool or method, to see if that resolves the issue.
If none of the above steps work, you may need to examine the APK file more closely to determine the root cause of the problem. This could involve examining the file structure, checking file permissions and signatures, or even using a more advanced debugging tool such as Android Studio.

Categories

Resources