yashsingh1/xdaforums huggingface dataset:
[Sprint Galaxy S 5 General] elesbb:
If anyone gets the bootloop, fix permissions inside TWRP. The InstallerTemplate.zip doesn't have any coding for setting the proper permissions.

EDIT: I too am having the Google Play Services and pretty much everything Google related crash. I recall this being a problem before I forget how to fix it though. If I find the solution I'll post it.
[Sprint Galaxy S 5 General] nghia0423:
This is obvious but you could go to settings>application manager>google play services>uninstall updates and/or clear data? You could also go to the play store and see if there is an update for google play services. As for they keyboard you could clear data from settings>application manager>samsung keyboard>clear data. If that doesn't work you could always use another keyboard from the play store.
[Sprint Galaxy S 5 General] elesbb:
Anyone with a Sprint Galaxy S5 having issues, I could upload my TWRP backup for you to download and restore using TWRP. I have it working without any issues (thanks to [MENTION=1042140]tdunham[/MENTION] for the Google Play fix). I could even upload one with xposed already installed and ready to go as well. I couldn't use the InstallerTemplate.zip that was uploaded. I ended up doing everything manually to get the deodexed stuff onto the device.
[Sprint Galaxy S 5 General] nghia0423:
How did you fix the Google Play problems?
[Sprint Galaxy S 5 General] elesbb:
tdunham recommended I take the Google apps from the MOAR ROM I was previously using. I believe google stuff needs further modifications/doesn't deodex properly or something wonky like that.
[Sprint Galaxy S 5 General] mandriva91:
Hi, can anyone help me?

I have a Galaxy S4, and i used this tuturial but got a bootloop, how can i deodex my rom?

thanks in advance
[Sprint Galaxy S 5 General] elesbb:
Try manually pushing the files with adb. That's what I had to do, something about the installertemplate didn't work.
[Sprint Galaxy S 5 General] lasportsfan:
I keep getting the following errors:

Maps - FAILED - Oat2Dex Conversion Failed

WebManual - FAILED - Copy Error

GmsCore - FAILED - Oat2Dex Conversion Failed

Suggestions anyone?

I would like to try your backup. I have a galaxy s5 sm-g900m running lollipop 5.0 G900MUBU1BOC3. Will it work on my phone?
[Sprint Galaxy S 5 General] mandriva91:
How can i do that? adb push /system/(*deodexed files*) /system/(*android*) ?

I think i'll wait for a new installer.zip
[Sprint Galaxy S 5 General] elesbb:
Make separate folders on your computer called apps, priv-apps, and framework. Then:

adb shell rm -r /system/app

adb push <path to folder>/apps /system/apps

and its that same format for the other folders, just rename them.

I may make an installer zip i'm not sure yet.
[Sprint Galaxy S 5 General] Walter CT:
Hello!! This post is for any rom samsung lollipop or just for this device? Thank you!
[Sprint Galaxy S 5 General] mandriva91:
Every time i try it says "read-only file system",i tried changed permission with adb, file explorer even with a terminal on android, nothing happens, always same error, i cant change permissions. I tried with TWRP and pushed files, but once again got stuck on bootloop.

I will get back at 4.4.2 and waiting for a new installer or a newer version of xposed, my main reason to deodex lollipop.

Thanks for everything
[Sprint Galaxy S 5 General] zain rizvi:
Great well explaned tuto, thanks a million m8.
[Sprint Galaxy S 5 General] elesbb:
I used twrp as well. I did do it one at a time, like first I did system/app then rebooted, then did system/priv-app then rebooted then system/framework
[Sprint Galaxy S 5 General] parthiban137:
I dragged Deodexed folders into the template using 7zip as mentioned and then flashed thro twrp ..... still nothing
[Sprint Galaxy S 5 General] mayank22:
Did you wiped dalvik cache after each wipe?
[Sprint Galaxy S 5 General] elesbb:
Yes I always wipe both caches after changing the contents of the system directory.
[Sprint Galaxy S 5 General] mayank22:
And how did you replaced each folder?

Did u used a flashable zip?

Can u please share it?
[Sprint Galaxy S 5 General] elesbb:
I used adb while booted into TWRP recovery. I stated my method above somewhere.
[Sprint Galaxy S 5 General] Elenedeath:
i try to deodex my lollipop rom for SM-G360F.

It the polish lollipop G360FXXU1BOH4, all work fine expect one file.

GmsCore - FAILED - Oat2Dex Conversion Failed

I try to flash with this error and wait 15 min and it stuck to the samsung logo.

I try the method from the first post and the one by nghia0423 (found here > http://xdaforums.com/showpost.php?p=62795386&postcount=53)

the two method have the same result with JoelDroidLollipopBatchDeodexer 2.5

GmsCore - FAILED - Oat2Dex Conversion Failed
[Sprint Galaxy S 5 General] elesbb:
Use the original gmscore.apk. not the modified file.
[Sprint Galaxy S 5 General] Elenedeath:
i try with the original one extract from phone and from the rom. The phone bootloop
[Sprint Galaxy S 5 General] elesbb:
I know. That won't cause a bootloop. The bootloop is from the installer zip file. You need to adb push everything. I don't have time to fix the installer script.
[Sprint Galaxy S 5 General] Elenedeath:
thanks for the help, work now with the adb push from the recovery.
[Sprint Galaxy S 5 General] elesbb:
So you got it to boot? Awesomesauce.
[Sprint Galaxy S 5 General] Elenedeath:
I adb pull the app from phone, save gmscore before deodex.

I deodex all folder with Joe tools and after put original gmscore in the folder.

And push all via recovery because when the phone running can't, it say permission denied.

Now I need to try if I can delete all odex file for confirm my rom is deodexed but for the moment my phone work like before.

I dont know why but if i delete all odex file from priv-app. the rom doesnt boot but if i check the log from joetools all the file that crash are deodexed.

29-09-2015:19-07-32 => 17 of 67 - Hs20Settings - SUCCESS

29-09-2015:19-07-56 => 33 of 67 - Samsungservice2_hdpi_v21 - SUCCESS

29-09-2015:19-08-32 => 44 of 67 - SecSettingsProvider - SUCCESS

29-09-2015:19-08-36 => 45 of 67 - SecSettings_ESS - SUCCESS

29-09-2015:19-08-49 => 55 of 67 - SmartManager_WVGA_OSUP - SUCCESS

29-09-2015:19-08-50 => 57 of 67 - SoundAlive_20_L - SUCCESS

29-09-2015:19-08-52 => 58 of 67 - SPDClient - SUCCESS

all this app continuly crash and cant use if odex file are deleted.

and other apps random crash, i think i reverse to stock and wait for xposed
[Sprint Galaxy S 5 General] ROBERT CM:
Good Job..!! :)

Someone knows how to have mod 5 way reboot in this stock deodexed? I tried some guides (daxgirl and kmokhtar79) but this mod does not work with this form of the stock deodexed

Any ideas?

Thanks
[Sprint Galaxy S 5 General] Mezabaru:
Testing currently with SM-G900W8, originally it didn't work with files posted I took some files from this tool http://xdaforums.com/galaxy-s5/general/tool-deodex-tool-android-l-t2972025 and put them in the tools folder, I wiped cache and dalvik before and after for safe measures and it is working!! my phone didn't die! just thought I'd share this cause first time was a failure with 5.1.1 using this. Anyone who can provide insight let me know! Regardless my phone is Deodex'd
[Sprint Galaxy S 5 General] wowonder:
my SG S5 G900H bootloop after flashing on TWRP recovery and wipe cache/dalvik.

I not using adb, copy my system folder via root explorer to my PC an then deodexed.
[Sprint Galaxy S 5 General] meduza:
I would recommended the app reboot utility from play store.

m.
[Sprint Galaxy S 5 General] ROBERT CM:
I recommend it for lollipop deodexed this tool has worked very well

you also create a zip of all deodexed stock, so it is not necessary to replace any files, only flash for recovery and ready...

I tried it in stock Galaxy S5 TW 5.0 and Galaxy S6 / EDGE / EDGE + TW5.1.1

http://xdaforums.com/chef-central/android/kitchen-superrs-kitchen-t3202296

---------- Post added at 09:50 AM ---------- Previous post was at 09:37 AM ----------

I know that bro, but the idea is to have it natively 5 way reboot in stock deodexed

but if the dev in his rom what they can do,

because I do not?

certainly implement something missing to make it work, but the dev helped Repulsa me 5 way reboot doing my android.policy.jar and even if it did not work did not appear the reboot advanced menu and after a few seconds restarted

I insist that in order to implement something missing in deodexed stock for this mod work on Galaxy S5 G900M
[Sprint Galaxy S 5 General] elesbb:
You can easily add it if you know smali. Nobody is going to hold your hand through the entire process. There are tutorials all over the interwebs plus numerous xposed modules to reference in regular Java code to help understand the smali. You just gotta use Google and figure it out. You will definitely get it solved by doing it yourself much quicker than waiting for someone to tell you how to do it. You got this bro :)
[Sprint Galaxy S 5 General] MrBigWaffles:
when pulling the system folders with adb, did you get messages saying skipping file so and so?
[Sprint Galaxy S 5 General] Mezabaru:
No I didn't I think my issue was using windows instead of linux.
[Sprint Galaxy S 5 General] LeSnakk:
Can anyone give me a quick answer? Can I deodex my s4 android lollipop 5.0.1 stock touchwiz rom without losing any data? Cause I just wanna get Xposed Framework on my s4 and nowhere there is a full explanation how to do that...
[Sprint Galaxy S 5 General] Bogeyof:
Yes you can! You don't loose your data if you reflash your "modded" system apps and framework with an recovery script. Other files stay untouched...
[Sprint Galaxy S 5 General] LeSnakk:
Thanks for the answer! But what do you mean with a recovery script? You have to excuse me, I'm not a big expert...

---------- Post added at 10:26 PM ---------- Previous post was at 09:44 PM ----------

Have you done it with the stock touchwiz rom and lollipop 5.0.1 and with the very first instructions of townsenk?
[Sprint Galaxy S 5 General] Bogeyof:
Look into the OP. There is an installer script for download, which you fill with your modded files and flash it via recovery.
[Sprint Galaxy S 5 General] LeSnakk:
okay
[Sprint Galaxy S 5 General] Rohi09:
Please Help!

A weird problem here, galaxy s4 i9500, everything worked, even the flashing, and i can see the three folders in my system folder through TWRP, but my phone wont boot, it simply turns itself off after the galaxy S4 i9500 screen, not even going to the boot screen.
[Sprint Galaxy S 5 General] jdmillard:
I'm about to attempt this process on my Tab S. I have a few questions though.

I don't have a custom recovery like TWRP and I can't get one or it will trip Knox (Samsung Device). However, the standard stock recovery does have options like:

"apply update from ADB"

"apply update from external storage"

"wipe cache"

Will this stock functionality be enough to flash the newly deodexed system .zip? Does "apply" mean flash a zip?

Does anybody know if you can simply Odin the newly deodexed system .zip while in "download mode"? (I've done that plenty of times for entire roms, but not for a situation like this)

Does anybody know if Flashfire can take care of this appropriately? (I've done that plenty of times, but not for a situation like this)

Even if you don't know all these answers, any insight from experience is greatly appreciated.
[Sprint Galaxy S 5 General] jdmillard:
I figured it out. Some credit goes to [MENTION=6191771]nghia0423[/MENTION] whose post talked about pulling from the official stock rom, but I implemented it a bit differently. I was getting a single oat2dex error during the batch execute. I reverting back to java 7.0.75 (java build at the time LBD2.5 was published) and that solved my oat2dex error. It also turns out you CAN use FlashFire just fine. Here were my steps:

Use 7 Zip to extract the contents of the large official ROM MD5 file

Find the system.img (my Samsung Tab S rom only has .img files)

SIMG2IMG package has a batch file (convert.bat) that converts the .img to .ext4.img. Use it to convert to system.ext4.img.

The resulting .ext4.img file can be explored with EXT2EXPLORE.EXE (also in SIMG2IMG package)

While exploring, select folders that you wish to "save" which will export them in standard file-browsing format (similar to what you would pull off using the adb method described here)

"Save" the app, priv-app, and framework folders in a temporary "system" folder.

Now run the batch deodex tool on the entire directory. Make sure you have no errors. I had to revert back to Java 7.0.75 and add Java to environment Path variables... and I still used LBD2.5 though.

Use 7-zip to put the 3 deodexed folders into the installer template.zip

In Flashfire (with root permissions), Set up a queue to do this: Flash Official Lollipop Rom, Flash special Deodexed .zip, Clear Cache, Everroot ("inserts" root and SuperSU for you), Reboot.

What's nice about this method is the initial flash install of the rom and the install of the deodexed folders occur together without booting up yet, so everything is clean and without opportunity for apps to update or anything.

After starts up, test restarts, shutdowns, Knox=0x0 (if you care). Normal use for a bit to make sure there are no critical errors.

I came up with this little tip to confirm that your ROM is completely deodexed:

With device connected to PC, start adb.

Type "adb shell" (Creates putty-esce environment)

Type "cd system"

Type and execute each of the following commands individually (I know there are better ways to do it such as "find", but this is really basic):

ls *odex*

ls */*odex*

ls */*/*odex*

ls */*/*/*odex*

Each of the above commands should return nothing. If it successfully returns nothing each time, your ROM has no odex files. I actually executed them from root and carried out the */*/ a few more times to show that there isn't a single mention of odex in any file name on my device. Overkill, but worth the piece of mind to me.
[Sprint Galaxy S 5 General] TerminatorMCM:
If you can't deodex some apps, such as Maps, Drivelink, GmsCore, try to use Joeldroid 2.4. It worked for my S5 900M.

:fingers-crossed:
[Sprint Galaxy S 5 General] erniesan82:
Joel Droid 2.4 note 3 SPRINT...

So just sharing my two cents. I used this method from the OP although not exactly, since I'm a nooby, that stuff with the adb is to much for me, so digging out I followed instructions and used the zip template from OP.

1.- Used root explorer to copy the app, privapp and framework folders from system to my extsd.

2.-Using Windows 7 file Explorer copied the three folders to a previously new folder created on my desktop.

3.- Downloaded the Joel deodexer and zip template to my desktop.

4.- Now this part was tricky to me, since I was at my job, the PC there didn't had the Java sdk installed, did so, but there was no path variable set, had to do so as well( created path and under variable set the path to Java Jre bin folder), I mention this ahead because of next point.

5.-Another tricky part, I know the OP says to use 2.4 version but I used the 2.5 instead (no java variable set needed) up to date preferred, but the process failed in a couple of apps, like gmscore, secemail...), and then read about using 2.4 (thanks [MENTION=7065563]TerminatorMCM[/MENTION]) and the process went 100% success.

6.-Open zip template and inside the empty system folder copied the three deodexed system folders, not the system folder containing the three subfolders but just the subfolders.

7.-Copied via windows Explorer the installer template back to my extsd, and used TWRP to flash the template successfully, immediately wiped cache and dalvik cache before booting the system back.

8.- It took no more than 10 min to get past the Samsung splash logo and started the optimizing apps process.

Booted up correctly but something weird happened, while running antutu bm, opened whatsapp and the system froze to suddenly reboot, after that Booted back again normally and so far I've been at least 10 hours with no issues, apparently everything is working fine even installed an app from playstore already.

So now I'm running sprint stock OC5 firmware fully deodexed, even my antutu score went up about 3000. Next will be xposed. Thanks to this thread and devs involved!!!
[Sprint Galaxy S 5 General] Ayan609:
Well, It's my 1st post on XDA, for forgive me for anything wrongly written,

Anyhow, just to add up some Tips,

1. Use Java 7 if you want to use JDB2.4, because using JDB2.5 will cause most of the App to be get failed while DeOdexing.

2.If you're unable to use ADB, then use ES File Explorer/Root Explorer to copy the file from your system folder and then manually copy them on to your laptop/desktop and then use JDB2.4 (P.S. Uncheck Show Hidden File from Menu to copy all files from your phone )

3.After DeOdexing done, add the system folder into the installer zip, and copy the zip file into your Phone Memory(Not Ext SD Card).

4.Run recovery ,Give Permission to the Flashable Zip, Flash the Zip, Clean Dalvik and system Cashe , and Reboot.

5. Just wait for not more than 1 minute on SAMSUNG LOGO windows ad another 4/5 Min on Android is Upgrading Windows, and there you Go, a DeOdexed Stock Rom.

Regards
[Sprint Galaxy S 5 General] Chief_Nodnarb:
I'm constantly getting the same error "boot oat extraction failed" whenever I try to deodex. I'm using 2.4 and get message "setup correctly" but it fails every time. Any help or tips would be appreciated.
[Sprint Galaxy S 5 General] erniesan82:
[MENTION=6157086]Chief_Nodnarb[/MENTION] have you checked if the folders are being copied correctly before you deodex, it happened to me once. When copying to desktop system folder from root system folder I double checked the sizes and didn't matched. This only time is when it failed with the boot oat, after making sure the copies where exactly as originals the process went 100% success.
[Sprint Galaxy S 5 General] Chief_Nodnarb:
Sorry its taken so long to respond. My pc crashed and somehow the hdd got wiped. Not that big of a deal but it still sucks. Now I'm running Xubuntu on my pc and its my first time with this os. Will any of this work on here?
[Sprint Galaxy S 5 General] erniesan82:
Well as far as I know the Joel Droid app runs over windows environment, don't really know if it will work on a different OS.
[Sprint Galaxy S 5 General] KevYoshi:
framework folder and boot.oat not found

help!!!!
[Sprint Galaxy S 5 General] erniesan82:
Double check you have all the files when copying to temp system folder to be deodexed, try using Jbd 2.4.
[Sprint Galaxy S 5 General] nyinyinaylinn:
Can not odexed

I can not odexed in windows 10, i already do path for java but not detect java path in deodexer , please help me
[Sprint Galaxy S 5 General] erniesan82:
Are you creating a new path?
[Sprint Galaxy S 5 General] nyinyinaylinn:
Java home path ready and javac -version. cmd working well
[Sprint Galaxy S 5 General] null_buffer:
SuperSU Fix

Thank you! Tried this method on Note 3 LTE (SM-N9005) on BOG4 firmware and worked perfectly. The only part where I deviated from this method was using the folders from my stock factory image rather than adb pull. Xposed is working great too.

Only problem I faced was that the SuperSU prompt would not appear. I'll include how I fixed this in reply to the following posts.

Instead of flashing the InstallerTemplate.zip from recovery, I downloaded FlashFire (by Chainfire) and set it up to:

Flash ZIP or OTA --> choose InstallerTemplate.zip

Press the + button, choose Wipe and select Dalvik cache and Cache partition

Click EverRoot and select Inject SuperSU

Finally, hit the Lighting Bolt icon to begin flashing.

Here is a screenshot of the FlashFire setup:

[IMG="SuperSU Fix for Deodexing"]http://i.imgur.com/g678hQM.png[/IMG]

Hope this helps!

Credit: Post #110
[Sprint Galaxy S 5 General] erniesan82:
You mean you did created a new path???
[Sprint Galaxy S 5 General] Maurizio1953:
If I download the rom with samfirm I get a file with enc4 final extension, not recognised by 7zip. How to get the content extracted?

---------- Post added at 07:17 PM ---------- Previous post was at 06:30 PM ----------

If I get the folders to deodex from a stock rom with the same CSC of mine, then I'll have problems if I put the deodexed files into my device? I mean I want to deodex files not from my device but from a rom identical to mine.

---------- Post added at 07:48 PM ---------- Previous post was at 07:17 PM ----------

Did you solved your problems? I am in the same condition and can't get a solution to the stuck on Samsung splash.
[Sprint Galaxy S 5 General] chewybar:
Thanks jdmillard for suggesting FlashFire.

Works like a charm for my T705!
[Sprint Galaxy S 5 General] Maurizio1953:
Anybody knows if there are problems related between custom kernel and deodex process?

Inviato dal mio Nexus 7 utilizzando Tapatalk
[Sprint Galaxy S 5 General] hsmmm:
i getting error

something like

updater process ended with error=7

on my galaxy e7 running on 5.1.1
[Sprint Galaxy S 5 General] eliotargy:
Samsung sm-n900 stock rom Lollipop 5.0 TGY

At the first command I get: error...device not found

Device is present in Explorer

USB debugging enabled. Device rooted and all that.

Any solution here?
[Sprint Galaxy S 5 General] erniesan82:
What about drivers???
[Sprint Galaxy S 5 General] eliotargy:
Yes, drivers are present also. I have just finished installing stock ROM with Odin.
[Sprint Galaxy S 5 General] ali319:
If I'm already on lollipop do I need the tar file ?
[Sprint Galaxy S 5 General] almujtaba:
I've tried this on my note 3 sm-n9005 android 5.0.2 and always ended up with a bootloop I use JoelDroid DeoDexer 2.5

EDIT

I tried the Deodexer 2.4 and ended up with an error while flashing
[Sprint Galaxy S 5 General] almujtaba:
I tried it on the same device but had no luck :confused:
[Sprint Galaxy S 5 General] gelarman:
thank you very much,after a couple of trying different combination of step i finnaly able to deodex my lollipop G900H,now i can choose whatever version of stock rom and deodexing it
[Sprint Galaxy S 5 General] Abhisheksth:
S4 I9500 Android 5.0.1 stuck on bootloop

Did everything as mentioned, but now even after cache and dalvik removal mobile seems to be in bootloop, the splash screen appears only for seconds, and only blanks! It's almost 30 minutes and mobile is already heated and will drain out soon. Should I use odin to flash stock rom again in download mode?
[Sprint Galaxy S 5 General] cryostyx:
Hello. I tried this but now my phone is justs stucks on the samsung logo on startup. what should i do? i have a samsung galaxy s5 G900F
[Sprint Galaxy S 5 General] 8cpaiw:
[IMG="I got this"]http://s33.postimg.org/ku9pqc2bz/image.png[/IMG]

I'm 20 mins in bootloop but I have this in Device Manager..not sure if it's going to boot soon or nah
[Sprint Galaxy S 5 General] knojap:
Some month ago it worked. But now not anymore???

1. I pulled all files.

2. Let LBD 2.5 do the work

3. put it in the installtemplate.zip

4. Installed by TWRP 2.8.7.0 and 3.0.2.0

And then it hangs at the samsung logo???

Tried with I9515 and I9506

Don't know what has changed???