yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] gredmy:
I get these errors:

WARNING: Cannot find 1 file

Cannot find D:\AtrixTool\Auto Odexer Script_v2-Alkhafaf\resources.arsc

Cannot find D:\AtrixTool\Auto Odexer Script_v2-Alkhafaf\preloaded-classes

Cannot find 1 file.

Cannot find D:\AtrixTool\Auto Odexer Script_v2-Alkhafaf\AndroidManifest.xml

sending dexopt-wrapper to the device

538 KB/s (5512 bytes in 0.010s)

sending the deodexed file to the device

2022 KB/s (144971 bytes in 0.070s)

Odexing the file:

/sbin/sh: dexopt-wrapper: not found

pushing the original files to the system

0 KB/s (313 bytes in 1.000s)

1988 KB/s (346096 bytes in 0.170s)

Setting permissions..

chmod: /system/framework/new_android.policy.odex: No such file or directory

copying signature from original file:

20+0 records in

20+0 records out

20 bytes (20B) copied, 0.000535 seconds, 36.5KB/s

replacing with the new odex file

settings permissions for the new odex file

deleting worked- on file

Finished

To odex a file again, press any key

To pull the jar file, press 1

To exit, press 0

I have device a Motorola Atris 4G. Got any ideas?
[Android Software/Hacking General [Developers Only]] alkhafaf:
do what this post says:

http://xdaforums.com/showthread.php?p=36064977

If it works with u, then tell me so I can update the tool.
[Android Software/Hacking General [Developers Only]] alkhafaf:
Well

your first edit with using $bootclasspath was probably right. But the problem is it fails if u choose unmatched (from another rom) jar or apk files.. u should use the files from the same rom, I mean the original and the modded.

U can easily test that by deodexing a file from your rom, then put it without modification in mod folder, and put the original file with its odex in original folder, and start odexing.do this after the first edit.
[Android Software/Hacking General [Developers Only]] gredmy:
I took the original file frimework.jar and odexing his:

sending dexopt-wrapper to the device
53 KB/s (5512 bytes in 0.100s)

sending the deodexed file to the device
1613 KB/s (66071 bytes in 0.040s)

Odexing the file:
--- BEGIN '/system/framework/framework.jar' (bootstrap=0) ---
--- waiting for verify+opt, pid=1304
--- would reduce privs here
--- END '/system/framework/framework.jar' --- status=0xff00, process failed

pushing the original files to the system
1613 KB/s (66071 bytes in 0.040s)
1786 KB/s (9621584 bytes in 5.260s)

Setting permissions..

copying signature from original file:
20+0 records in
20+0 records out
20 bytes (20B) copied, 0.000475 seconds, 41.1KB/s

replacing with the new odex file

settings permissions for the new odex file

deleting worked- on file

Finished

To odex a file again, press any key
To pull the jar file, press 1
To exit, press 0

all the same errors.
[Android Software/Hacking General [Developers Only]] alkhafaf:
OK, try to replace $bootclasspath with the bootclasspath u find in init.rc
[Android Software/Hacking General [Developers Only]] gredmy:
No still an error.

Odexing the file:
--- BEGIN '/system/framework/framework.jar' (bootstrap=0) ---
--- waiting for verify+opt, pid=1304
--- would reduce privs here
--- END '/system/framework/framework.jar' --- status=0xff00, process failed

pushing the original files to the system
1613 KB/s (66071 bytes in 0.040s)
1849 KB/s (9621584 bytes in 5.080s)

Setting permissions..

copying signature from original file:
20+0 records in
20+0 records out
20 bytes (20B) copied, 0.013829 seconds, 1.4KB/s

replacing with the new odex file

settings permissions for the new odex file

deleting worked- on file

Finished

To odex a file again, press any key
To pull the jar file, press 1
To exit, press 0

I replaced $bootclasspath to

/system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar:/system/framework/com.motorola.android.frameworks.jar:/system/framework/com.motorola.android.widget.jar:/system/framework/com.motorola.orange.simauth.jar

I do not know what else to do.
[Android Software/Hacking General [Developers Only]] alkhafaf:
Are you sure u r using your bootclasspath?

And r u sure that framework.jar is working? Did u take it from a working ROM?

Please start from the beginning and take the framework.jar with corresponding .odex file from the rom, and make sure it works before that

And ... btw, are u sure that u deodexed the file successfully? which tool did u use to deodex and did u choose the right API level and bootclasspath when deodexing ?
[Android Software/Hacking General [Developers Only]] gredmy:
1. This rom is on my device.

2. That's out of my init.rc

# setup the global environment
export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
export LD_LIBRARY_PATH /vendor/lib:/system/lib
export ANDROID_BOOTLOGO 1
export ANDROID_ROOT /system
export ANDROID_ASSETS /system/app
export ANDROID_DATA /data
export EXTERNAL_STORAGE /mnt/sdcard
export EXTERNAL_ALT_STORAGE /mnt/sdcard-ext # Feature 34534
export ASEC_MOUNTPOINT /mnt/asec
export LOOP_MOUNTPOINT /mnt/obb
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar:/system/framework/com.motorola.android.frameworks.jar:/system/framework/com.motorola.android.widget.jar:/system/framework/com.motorola.orange.simauth.jar

3. I did deodexed rom & this rom worked.

4. The last time I used framework.jar from the running rom.
[Android Software/Hacking General [Developers Only]] alkhafaf:
OK

Cuz maybe the framework.jar file u r using has changed because u were doing the manual method before u came to this thread. Thats why I told u to deodex the file... by if u r sure it is working, nevermind

Anyway

Try any other jar file like android.policy.jar
[Android Software/Hacking General [Developers Only]] gredmy:
I've tried several files(services.jar, android.policy.jar), the same problem.
[Android Software/Hacking General [Developers Only]] alkhafaf:
OK

Can u tell me which device is yours? And what rom are u running? And what kind of kernel and root u have?
[Android Software/Hacking General [Developers Only]] gredmy:
I have Motorola Atrix 4G, ROM O2 DE 2.3.4(91) with Stock Kernel(not patched) but with root & busibox & unlocked & CWM.
[Android Software/Hacking General [Developers Only]] alkhafaf:
Send me the Android.policy.jar with its odex. And send me the doedexed file. I will try it with me.

Btw, which tool did u use to deodex?
[Android Software/Hacking General [Developers Only]] alkhafaf:
And make sure that when u run the script, u should run it on your device running the odex version of the ROM
[Android Software/Hacking General [Developers Only]] gredmy:
I use odex rom. I do not remember what I deodexing, but this worked.

Many people have tried to put it and all worked.
[Android Software/Hacking General [Developers Only]] gredmy:
I did, but manuel and in two parts.

1. Put the phone in PC mode

2. Open a command prompt, and do the following:

adb shell
su
stop
mount -o rw,remount /system/ /system/
cp -f /sdcard/download/android.policy.jar /system/framework/
dexopt-wrapper /system/framework/android.policy.jar /system/framework/patched_android.policy.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar:/system/framework/com.motorola.android.frameworks.jar:/system/framework/com.motorola.android.widget.jar:/system/framework/com.motorola.orange.simauth.jar
cp -f /sdcard/download/framework/android.policy.jar /system/framework/
cp -f /sdcard/download/framework/android.policy.odex /system/framework/
reboot

3. Start in Recovery->mount&storage->mount system

adb shell
busybox dd if=/system/framework/android.policy.odex of=/system/framework/patched_android.policy.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
mv -f /system/framework/patched_android.policy.odex /system/framework/android.policy.odex

4. Unmount system & reboot
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

I don't understand

Did it work with u using the manual method?

If yes, do it again and check if it works with u again.
[Android Software/Hacking General [Developers Only]] gredmy:
Yes it works, but with two steps.

1. step.When running the device.

adb shell
su
stop
mount -o rw,remount /system/ /system/
cp -f /sdcard/download/android.policy.jar /system/framework/
dexopt-wrapper /system/framework/android.policy.jar /system/framework/patched_android.policy.odex /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar:/system/framework/com.motorola.android.frameworks.jar:/system/framework/com.motorola.android.widget.jar:/system/framework/com.motorola.orange.simauth.jar
cp -f /sdcard/download/framework/android.policy.jar /system/framework/
cp -f /sdcard/download/framework/android.policy.odex /system/framework/
reboot

2. step.Reboot in Recovery

adb shell
busybox dd if=/system/framework/android.policy.odex of=/system/framework/patched_android.policy.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
mv -f /system/framework/patched_android.policy.odex /system/framework/android.policy.odex
[Android Software/Hacking General [Developers Only]] alkhafaf:
ok

edit the bootclasspath, and delete the (:/system/framework/android.policy.jar) if u r odexing the android.policy. If you are odexing framework.jar , then delete (:/system/framework/framework.jar), same for others.

then tell me if it works
[Android Software/Hacking General [Developers Only]] Perka:
Hi, great script :)

Possible to make the script use sdcard for odexing then pull the new odex to pc? And not push to /system?
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

Thanks Perka :)

Yes it can be done, but y?

U can pull it, there is an option for this after odexing.

Pushing to system let u test it.

Maybe i can add an option to restore the original apk or jar to system after testing. Agree?
[Android Software/Hacking General [Developers Only]] Perka:
Thx for your reply.

I would like this because of that I can odex apks and not pushing to /system.

Also 99% of the time I am on deodexed ROM

Just an idea and it would be useful for me :)

adb push dexopt-wrapper system/bin
adb shell
chmod 755 /system/bin/dexopt-wrapper

dexopt-wrapper data/media/android.policy.jar data/media/new.odex /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar

busybox dd if=/system/framework/android.policy.odex of=new.odex bs=1 count=20 skip=52 seek=52 conv=notrunc

busybox chmod 644 new.odex

Change original odex file with new.odex
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

Aha

But this script won't work only if u use the odex rom that is related to the apk or jar u want to reodex after deodexing and molding

I tried to make it as u mentioned... but it doesn't work. Cuz when I change the bootclasspath and make it in SD card or a temporary place, it just fails to work.
[Android Software/Hacking General [Developers Only]] Perka:
Ok thx :)
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

Anyway, maybe i will try again to do it. :)
[Android Software/Hacking General [Developers Only]] jorsolano:
Hi,

Thanks for your work. I am trying to use the script, but i get a windows error:

7z.exe is not a valid win32 application. I bypass the error and get this:

What is the problem?

Thanks.
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

Hello bro

Which windows version r u using?

And how did u bypass the error?

First, try to download the file again and try, maybe it was corrupted.
[Android Software/Hacking General [Developers Only]] jorsolano:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

Hi,

Bypass meaning that I press Ok button till error window disappear. I am on WinXP :eek:, and no, the problem still there.

Thanks.
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

OK, for these permission denied errors, try to run the script as administrator.

For the error related to odexing,make sure to follow the instructions carefully in the first page.
[Android Software/Hacking General [Developers Only]] tdunham:
I referred some users to this thread that were interested in converting some of the deodexed apps and framework files.

To prevent any confusion, would you mind posting any prerequisites for using your script on the OP please? Nothing fancy.

Ie. Java suite, Android SDK, 7zip etc (along with links if it's not too difficult). It would save time for those users that do not understand what needs to be installed beforehand and even help those of us that think we know what we're doing too. ;)

Thanks for all you do - TD
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

Actually the script is made to work independently. It has 7zip in it and got the adb with it... so it will work just fine if the instructions are followed carefully from the op... any other problems that someone have can be posted here... cuz it seems some have problems and I will try to solve.
[Android Software/Hacking General [Developers Only]] kondronaute:
i have a strange thing

auto odexer scrip was working nice on my laptop (seven 64bits) and now stop working i have bootloop.

i use an external disk( usb )and i try it with the same files on my PC (seven 32 bits) and it work ?

an idea what can make it stop working :crying:
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

Show me what errors appear.
[Android Software/Hacking General [Developers Only]] kondronaute:
I have no error :( i just see that the apk is smaller in my laptop ! A problème with zip ? With java ?

The framework seem similars.

Thank for your help ;)
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

Thanks for reporting about this

I think I used 7zip 64 bit version for the tool

I will update it with 32 bit.
[Android Software/Hacking General [Developers Only]] kid1519:
I used WinXP-32 and when i run Auto Odexer script-apk-Alkhafaf:

1.

2. type: mms

--->>> I think Auto Odexer script-apk-Alkhafaf only run with win64

I hope you come back soon. :X

p,s. i do not know:

I download a app from CH Market, then i want odex it. Can you show me???
[Android Software/Hacking General [Developers Only]] kondronaute:
yes i think it's 7zip but your auto oxeder is not faulty :)

it is when i incorporate the classes.dex in the .jar or the .apk, i do it with a script exemple

7z a -tzip %cd%\classedex_services\services.jar %cd%\classedex_services\classes.dex

but i am not sure :( the only thing sure that is i am bad doing something !!!
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

Yes bro

But the problem is, i am using a version of 7zip which comes with the script, not the one in your device. I will fix that very soon, hopefully today.
[Android Software/Hacking General [Developers Only]] kondronaute:
I can not wait to try it and I hope it will settle my problem. I do not know which side look ;)
[Android Software/Hacking General [Developers Only]] kondronaute:
thank u for your kindness bro

i find the error

i change the 7z and modify the script to accord with my objective

now all working like a charm :D
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

Great

There is also a little mistake in extracting and archiving the files.. I fixed that and will upload after some tests
[Android Software/Hacking General [Developers Only]] kondronaute:
:D yes that why modify the script to accord with my objective. (verify good the apk section and test it please ;) )

but sincerelly great job ;)
[Android Software/Hacking General [Developers Only]] alkhafaf:
Re: [UTIL][4/1/13] Auto Odexer Script- Now much easier to mod or theme your odex file

I dont know how I made this mistake I tested it at that time and it worked... but it wasnt doing the job of importing the modified files from the moded deodexed file.

Anyway.. I fixed that.. with many new things.

I will upload in about half hour..mayble less, maybe more :)
[Android Software/Hacking General [Developers Only]] alkhafaf:
New Version uploaded, many problems fixed, and instructions updated in first page.

Update (2/22/13) v2.1:

1. bootclasspath should be put manually from now, because $BOOTCLASSPATH doesn't work when no root in recovery.

2. Fixed a mistake in extracting and archiving files, now it's ok.

3. Now you can restore the original files if you like after odexing.

4. 7zip 32 bit is used instead of 64 bit, sorry for this, now it should work with 32 bit windows too.

5. Script re-arranged, and 7zip log operations saved in 7z_log.txt. you can check this one if you suspect in 7zip operation.

6. Backup of the original files before odexing and restore them after odexing.
[Android Software/Hacking General [Developers Only]] tzpm:
收件人： [UTIL][22/2/13]Auto Odexer Script V2.1-Mod your odex files with a breeze

thx man.
[Android Software/Hacking General [Developers Only]] kid1519:
You come back and you are good man.

thanks. :X
[Android Software/Hacking General [Developers Only]] alkhafaf:
anytime :)
[Android Software/Hacking General [Developers Only]] nbnion:
hi alkhafaf!

is it possible to mod systemui with your utility on pc without the phone?

I'm trying to mod systemui from stock Rom and flash it through recovery.

is it possible with your utility?

thank you!
[Android Software/Hacking General [Developers Only]] alkhafaf:
U have to connect the phone and flash that stock ROM with it (u need to root it after that). Then it will run just fine :)

Sent from my Nexus 4
[Android Software/Hacking General [Developers Only]] deck91:
Please help :(
[Android Software/Hacking General [Developers Only]] tdunham:
You have to fix first several errors first

This will not work unless you update android SDK so ADB will run properly.

This will also not work if the filesystem cannot not mount & remount. This could be a kernel problem. Try different kernels to see if the system will mount & remount properly. I ended up using an old GB kernel for mine to mount as the JB kernel did not work for me.

And system must be rooted of course.
[Android Software/Hacking General [Developers Only]] alkhafaf:
For the adb, no need to update The adk, Cuz the adb is already included with the script.
[Android Software/Hacking General [Developers Only]] chris151722:
thanks alkhafaf

for this amazing util and guide i successfully ported inkeffect and lockscreen shortcut mod from my previous odex firmware to my phone newest odex firmware.:good:
[Android Software/Hacking General [Developers Only]] alkhafaf:
Glad to help.
[Android Software/Hacking General [Developers Only]] deck91:
Please help everybody :(
[Android Software/Hacking General [Developers Only]] bgcngm:
You have you answer right at the beginning of the output: permission denied (are you root?).

Root your phone first and then use the script.
[Android Software/Hacking General [Developers Only]] deck91:
My phone is rooted. I installed supersu and busybox,cwm.
[Android Software/Hacking General [Developers Only]] davidwilson83:
Have a look at the first post. It says something about having a stock kernel which does not support adb and requiring an app made by Chainfire called ADB Insecure. You need to download it and turn it on to be able to get the Auto Odexer script to work properly.

Sent from my AOSP SGS4
[Android Software/Hacking General [Developers Only]] wmiki75:
If i have only an jar file (android.policy.jar) How can i make odexed version?

with odex, and .jar file?

ahhh...

button 2: Pull files **

Thank You!
[Android Software/Hacking General [Developers Only]] eric-filth:
Hello guys.

I always used this utility and always worked.

But today i tried create one odex file and always generate 1kb files. Im on Galaxy S4 i9500 with Android 4.4.2 with correct bootclass.
[Android Software/Hacking General [Developers Only]] kaushikb.1996:
Help req asap !!!

I have two questions

1) do I ned SDK for the adb or is it present in the program

2) I have all the files and I deodexed framework.jar and modified it successfully but is there any way that I can only use the pc to odex it back agian ???
[Android Software/Hacking General [Developers Only]] DiveNNN:
Wow man great tool, appriciate your work :good:
[Desire HD General] ATeal:
I have searched. I use Linux so any solutions, please no windows crap (if needed).

I've been using JellyTime and (obviously) I want the google apps. So I put the zip into the memory card (saying this so no one can ask if I did), reboot into recovery, install zip from SD card, install the google apps, says it's installed.

Permutations (not in order of attempt):

Jellytime -> reboot -> (explore JellyTime) -> recovery -> Install google apps -> reboot

Jellytime -> reboot -> (explore JellyTime) -> recovery -> install google apps -> clear cache -> reboot

Jellytime -> reboot -> (explore JellyTime) -> recovery -> install google apps -> clear cache + dalvik cache -> reboot

Jellytime -> install google apps -> reboot

clear all (+dalvik cache) -> install google apps -> JellyTime -> reboot

so forth....

Interesting fact:

I cannot mount the /system partiton (it just says it failed to mount ERROR:!) after flashing JellyTime. but I can mount after formatting it (obviously then I can't reboot because /system is gone, it seems JellyTime's installer formats this mount point to, so I can't put the google apps on first (that would also assume it's a straight forward merge, that the google apps replace nothing))

More interesting:

alec@AtLaptop ~/android-sdks/platform-tools $ sudo ./fastboot -w

erasing 'userdata'...

FAILED (remote: not allowed)

finished. total time: 0.001s

It's been rooted, S-OFF too. A long time ago though (when the device was brand new) - probaly back when I used windows.

Sorry I can't give more details, I've never had a problem with doing "this" stuff before. and I'm not sure what I can do.

Alec
[Desire HD General] sashank:
You checked the md5sums of the JellyTime ROM zip and the Gapps zip before flashing? Could be a corrupted download.
[Desire HD General] dacow1234:
I'm having the same problem, I'd post in the Jellybean thread but don't have enough posts to do so!

I even tried to extract all the APK's and use the ES File Explorer to install for example Gmail and it just returns "App not installed"

Checked all the md5 checksums and they are all correct.

Tried booting into Jellytime and installing via Rom Manager which does the same thing and reports it installed successfully but after the reboot there are no Google apps :(

The ROM looks really awesome but can't do anything useful with it without a playstore!