[HOW TO] DeOdex YOUR lollipop Rom

Search This thread

townsenk

Senior Member
Oct 23, 2010
179
204
How to DeOdex YOUR 0A6 Rom.

I would like to note that I appreciate all the work that developers have put forth in creating and maintaining modified Roms. there are some awesome feature rich implementations available. My intentions are not to be critical of any specific Rom or mod. Without the developers we would have nothing.

Firt off, Let me explain why I'm writing this guide of sorts. I've always enjoyed an essentially stock ODEXED rom with a minnimum of tweaks.
When 0A6 arrived with ART support odexing is not currently possible. I attempted to use prepared deoxed varietys but there was always something that was a dealbreaker for me. I have nothing against features but a ROM completely loaded with bells and whistles tends to allow bugs and stability issues creep in. and the requirements to wipe 15 times and do a clean flash while singing a gregorian chant just to get it to boot didn't settle well with me.

Using one of the DeOdexed varietys, I was having problems with duplicate apk's being created in /data/app and erronoius Play store updates compounding this issue. There was also an issue with Private Mode and a variety of FC's. In frustration I reverted to a stock rooted configuration and my phone was rock solid.

BUT, I really missed a few mods that I had grown very accustomed to having namely,

5-Way Reboot
Hotspot Mod
PRL Write
Extra Toggles

So instead of trying to install clean why not create a way for me to Custom DeOdex *MY* rom? and not have to start from scratch everytime allowing a dirty flash without creating some crazy stability issue.

This method is very common knowledge I thought I'd just explain it in an easy to understand way.

Here is what you need.

A stock 0A6 ROOTED configurated phone. Debloat as needed. Set the phone up exactly how you like it with apps and such.
Make sure it's stable. (If you have issues before DeOdexing they will be there afterward!)

Here's the files you may need to make this happen

LBD2.4.zip
7-Zip
Installer template (at end of post)

1> Make sure ADB is working on your computer. USB debugging turned on. Create a folder to store your soon to be download system files and launch a DOS shell from that working folder. Working folder name should NOT contain spaces. With the phone hooked up you should be able to type adb shell and get a prompt.

2> Type these commands
adb pull /system/app app/
adb pull /system/priv-app/ priv-app/
adb pull /system/framework framework/

This will take awhile and you will be left with three folders

Create a new folder named "system" and place these three folders inside.


3> Extract and launch LBD2.4 (This is the DeOdexer and is AWESOME). Point it at your recently created "system" folder and let it do it's thing.
I'll assume this will occur without errors as I have never had any.

4> At this point you can manually apply modded apk's to the system folder but I don't really recommend it. They can be applied afterward using the seperate installer zips.

5> with 7-Zip installed open the provided Installer template. Do not Extract it. Just open it in the 7-Zip file browser using the right click context menu in windows.

Drag-Drop the contents of your system folder into the empty system folder in the 7-Zip browser It should be the three folders previously created but now they are Deodexed. Close the 7-zip file manager and select Yes if it asks you to save.

Note: The provided installer template has been modified to only wipe and replace the three system directories.

6. Copy the created installer to your sdcard and install with recovery. Wipe cache and Dalvik before rebooting.
Go have lunch. You will sit at a boot screen for about 10 minutes. Then another 20 to rebuild caches. Time varies.

7. Your system will now be Deodexed! At this point you can install your mods one at a time, I recommend this so you can test your system between installs to determine if a specific mod is creating problems.


This method has so far removed ALL of my stability issues.
 

Attachments

  • InstallerTemplate.zip
    180.6 KB · Views: 16,981
Last edited:

daswahnsinn

Senior Member
May 24, 2010
659
145
Now I haven't used adb in a while but every time I try to run 'adb pull /system/app app/' it runs for about 4 seconds then quits. Then I try to run any other command and it says the device is offline. I have everything up to date, so I'm at a loss right now.

EDIT: So I couldn't get adb to work right so I pulled the folders using ES file manager then copied them to my PC. When I run the deoxeder I get two errors, Invalid Application Directory -"Application folder and Rom folder should not have spaces" and Error -"Invalid Rom Folder"

EDIT: I had a space at the end of a folder title, currently running, will test, and report back.
 
Last edited:
May 17, 2015
26
1
so confused, i dont know what to do

I am on a Sprint Samsung Galaxy S5 running stock lolipop 5.0. I want to deodex my Rom so that I can intall xposed. After 8 hours I am practically in tear because absolutely NO-one can help

I dont know what to do for Rom System Path. I followed alll the instruction to detail and eveytime I click run it tells me that there is no space or something.. Here is the path I have no idea whre to go from here


pic1.png
 

daswahnsinn

Senior Member
May 24, 2010
659
145
The rom system path would be what you did in step two:

2> Type these commands
adb pull /system/app app/
adb pull /system/priv-app/ priv-app/
adb pull /system/framework framework/

This will take awhile and you will be left with three folders

Create a new folder named "system" and place these three folders inside.

So you would click 'browse' then go to the system folder you made and place the other three folders in.
 

Zhekin

New member
Dec 12, 2010
2
1
Pulling files via adb gave me errors, so I downloaded it by root explorer
Now I'm deodexed, thanks a lot
 
  • Like
Reactions: dibnah

PIRATA!

Senior Member
Dec 6, 2010
2,719
176
The rom system path would be what you did in step two:

2> Type these commands
adb pull /system/app app/
adb pull /system/priv-app/ priv-app/
adb pull /system/framework framework/

This will take awhile and you will be left with three folders

Create a new folder named "system" and place these three folders inside.

So you would click 'browse' then go to the system folder you made and place the other three folders in.

Pulling files via adb gave me errors, so I downloaded it by root explorer
Now I'm deodexed, thanks a lot
How have you guys replaced back the three deodexed folders???

Sent from my Samsung Galaxy S3 GT-i9300 using Tapatalk 4
 

daswahnsinn

Senior Member
May 24, 2010
659
145
How have you guys replaced back the three deodexed folders???

Sent from my Samsung Galaxy S3 GT-i9300 using Tapatalk 4

There's an update zip in the OP's first thread. Now that being said I have a Note 3 and haven't tried it yet. Been a little busy but I have a complete deodex'd the three folders w/o errors.
 
  • Like
Reactions: PIRATA!

tiago.rici

New member
May 29, 2015
3
0
Boot loop. SM-G900M

I got stuck on boot scrren, and my recovery can't format cache partition in the recovery.
 

PIRATA!

Senior Member
Dec 6, 2010
2,719
176
There's an update zip in the OP's first thread. Now that being said I have a Note 3 and haven't tried it yet. Been a little busy but I have a complete deodex'd the three folders w/o errors.

Did you pulled with device rooted or not? Is it the same to pull with root or no root?
I am doing that now with no root and I had some skipping special file 'xxxxxxx.so' at the beginning of pulling the /app/ folder.
Is that ok??
 

daswahnsinn

Senior Member
May 24, 2010
659
145
Did you pulled with device rooted or not? Is it the same to pull with root or no root?
I am doing that now with no root and I had some skipping special file 'xxxxxxx.so' at the beginning of pulling the /app/ folder.
Is that ok??

I couldn't get ADB to pull the folders/files so I used a root file explorer. So, yes I did use a rooted device. I don't know if it's the same as if it weren't rooted but it should be. I would say some files may not get pulled for some reason but I'd retry. I'm not a dev so I'm not much help. I tinker with things until I other break it or make what I what work.
 
Last edited:

PIRATA!

Senior Member
Dec 6, 2010
2,719
176
I couldn't get ADB to pull the folders/files so I used a root file explorer. So, yes I did use a rooted device. I don't know if it's the same as if it weren't rooted but it shouldn't be. I would say some files may not get pulled for some reason but I'd retry. I'm not a dev so I'm not much help. I tinker with things until I other break it or make what I what work.
Mmmh.... but I've read that a lot of people does it without rooting.....or not??
About your situation, have you extracted the same exact folder so, right?
Tnx.
 

tiago.rici

New member
May 29, 2015
3
0
I got stuck on boot scrren, and my recovery can't format cache partition in the recovery.

I used Root Explorer and did a manual copy of these folders (instead use adb pull). And worked!
Now I'm waiting 1st boot.

---------- Post added at 02:57 PM ---------- Previous post was at 02:49 PM ----------

Pulling files via adb gave me errors, so I downloaded it by root explorer
Now I'm deodexed, thanks a lot

How long have you waited on boot scrren? I'm about almost 20 minutes and still nothing. :fingers-crossed:
 

motisu

Senior Member
Apr 2, 2006
1,282
101
66
problems with the process on my SM-T530NU with stock 5.0.2 ROM

Hi,

Sorry to bother you, but if its not too much trouble, can you please answer a few questions for me about the deodex process?

I tried to adb pull the 3 system folders, /system/app, /system/framework, and /system/priv-app, but some of the files gave me an error on copying. So I tried copying them with es explorer to my external SD which worked OK.

Next, I tried copying the 3 folders to my PC. I copied the correct amount of files (894), but the amount of directories went down from 1013 to 506. Is this correct?

I then tried running the folders through ldb 2.5. most of the files were successful, but there were a few which failed. (Maps, services, and a few others.) is this OK? Can I still use the output to burn to my Tab4?

Thanks for any help that you can give.

Motisu
 

PIRATA!

Senior Member
Dec 6, 2010
2,719
176
Hi,

Sorry to bother you, but if its not too much trouble, can you please answer a few questions for me about the deodex process?

I tried to adb pull the 3 system folders, /system/app, /system/framework, and /system/priv-app, but some of the files gave me an error on copying. So I tried copying them with es explorer to my external SD which worked OK.

Next, I tried copying the 3 folders to my PC. I copied the correct amount of files (894), but the amount of directories went down from 1013 to 506. Is this correct?

I then tried running the folders through ldb 2.5. most of the files were successful, but there were a few which failed. (Maps, services, and a few others.) is this OK? Can I still use the output to burn to my Tab4?

Thanks for any help that you can give.

Motisu
I've just ben informed test the correct way should be to extract those folders from a stock firmware downloaded.
Other method but risky, as you could also get extra apps not natively born with your device, is to copy them or pull them from recovery using a file manager like Aroma File Manager or TWRP integrated file manager, or use adb from recovery.
Other "while system is running" methods are not preferred as they could give errors back.
Cheers.

Sent from my Samsung Galaxy S3 GT-i9300 using Tapatalk 4
 

motisu

Senior Member
Apr 2, 2006
1,282
101
66
I've just ben informed test the correct way should be to extract those folders from a stock firmware downloaded.
Other method but risky, as you could also get extra apps not natively born with your device, is to copy them or pull them from recovery using a file manager like Aroma File Manager or TWRP integrated file manager, or use adb from recovery.
Other "while system is running" methods are not preferred as they could give errors back.
Cheers.

Sent from my Samsung Galaxy S3 GT-i9300 using Tapatalk 4

OK, I did exactly as you recommended and got exactly the same result. I used the advanced file manager in TWRP recovery to make copies oof the 3 subfolders and then copied the copies to my PC. I got exactly the same results. still missing folders and getting errors in LBD.
 

PIRATA!

Senior Member
Dec 6, 2010
2,719
176
OK, I did exactly as you recommended and got exactly the same result. I used the advanced file manager in TWRP recovery to make copies oof the 3 subfolders and then copied the copies to my PC. I got exactly the same results. still missing folders and getting errors in LBD.
Use Total Commander for transferring in Windows ambient.
It's good also for coping from micro-sb to hard-disk.
Enable hidden files!


Sent from my Samsung Galaxy S3 GT-i9300 using Tapatalk 4
 

Bongsi

Senior Member
Apr 28, 2015
55
8
thank you

Thank you very much for this well detailed explanation. I am not developer. It took me 2 wks searching, working on how to deodex my rom untill finally found this tutorial. It help me a lot.???
 

Top Liked Posts

  • There are no posts matching your filters.
  • 42
    How to DeOdex YOUR 0A6 Rom.

    I would like to note that I appreciate all the work that developers have put forth in creating and maintaining modified Roms. there are some awesome feature rich implementations available. My intentions are not to be critical of any specific Rom or mod. Without the developers we would have nothing.

    Firt off, Let me explain why I'm writing this guide of sorts. I've always enjoyed an essentially stock ODEXED rom with a minnimum of tweaks.
    When 0A6 arrived with ART support odexing is not currently possible. I attempted to use prepared deoxed varietys but there was always something that was a dealbreaker for me. I have nothing against features but a ROM completely loaded with bells and whistles tends to allow bugs and stability issues creep in. and the requirements to wipe 15 times and do a clean flash while singing a gregorian chant just to get it to boot didn't settle well with me.

    Using one of the DeOdexed varietys, I was having problems with duplicate apk's being created in /data/app and erronoius Play store updates compounding this issue. There was also an issue with Private Mode and a variety of FC's. In frustration I reverted to a stock rooted configuration and my phone was rock solid.

    BUT, I really missed a few mods that I had grown very accustomed to having namely,

    5-Way Reboot
    Hotspot Mod
    PRL Write
    Extra Toggles

    So instead of trying to install clean why not create a way for me to Custom DeOdex *MY* rom? and not have to start from scratch everytime allowing a dirty flash without creating some crazy stability issue.

    This method is very common knowledge I thought I'd just explain it in an easy to understand way.

    Here is what you need.

    A stock 0A6 ROOTED configurated phone. Debloat as needed. Set the phone up exactly how you like it with apps and such.
    Make sure it's stable. (If you have issues before DeOdexing they will be there afterward!)

    Here's the files you may need to make this happen

    LBD2.4.zip
    7-Zip
    Installer template (at end of post)

    1> Make sure ADB is working on your computer. USB debugging turned on. Create a folder to store your soon to be download system files and launch a DOS shell from that working folder. Working folder name should NOT contain spaces. With the phone hooked up you should be able to type adb shell and get a prompt.

    2> Type these commands
    adb pull /system/app app/
    adb pull /system/priv-app/ priv-app/
    adb pull /system/framework framework/

    This will take awhile and you will be left with three folders

    Create a new folder named "system" and place these three folders inside.


    3> Extract and launch LBD2.4 (This is the DeOdexer and is AWESOME). Point it at your recently created "system" folder and let it do it's thing.
    I'll assume this will occur without errors as I have never had any.

    4> At this point you can manually apply modded apk's to the system folder but I don't really recommend it. They can be applied afterward using the seperate installer zips.

    5> with 7-Zip installed open the provided Installer template. Do not Extract it. Just open it in the 7-Zip file browser using the right click context menu in windows.

    Drag-Drop the contents of your system folder into the empty system folder in the 7-Zip browser It should be the three folders previously created but now they are Deodexed. Close the 7-zip file manager and select Yes if it asks you to save.

    Note: The provided installer template has been modified to only wipe and replace the three system directories.

    6. Copy the created installer to your sdcard and install with recovery. Wipe cache and Dalvik before rebooting.
    Go have lunch. You will sit at a boot screen for about 10 minutes. Then another 20 to rebuild caches. Time varies.

    7. Your system will now be Deodexed! At this point you can install your mods one at a time, I recommend this so you can test your system between installs to determine if a specific mod is creating problems.


    This method has so far removed ALL of my stability issues.
    5
    For those having issues with this process, here is what I found and is working perfectly on my T-Mobile Note 4...

    The deodexer application is not loading?

    -Install java! For version 2.5, install the latest...no need to set a PATH variable. For version 2.4, you need to install a 7.x JRE. If it complains about not being detected, open the java control panel applet to refresh, or just reboot your PC.

    My phone sits at the boot screen?

    -If you're phone is stuck in a bootloop, I found that with my particular model (note 4), it would hang at the boot screen...but this was because I originally used the deodexer version 2.5. After using 2.4, all is well!

    My phone has been stable and is running xposed (arter97 method)

    I hope this helps some of you! And those of you asking for a video tutorial is not gonna happen from me! This written tutorial is perfectly easy to follow.
    3
    The steps that worked for me. Pretty sure this will work for all samsung lollipop devices. Unsure about other brands. I was on stock firmware I am unsure about custom roms. I did this on a virtual windows machine on my Mac.

    1)Download stock firmware. Make sure it is tar.md5. I used SamFirm
    Link: http://forum.xda-developers.com/galaxy-tab-s/general/tool-samfirm-samsung-firmware-t2988647
    2) Use 7-zip to extract the contents of the stock firmware/ All you need is system.img.ext4
    3)Use sgs2to3xt4.jar to convert the system.img.ext4 to system.img.ext4.img (After this there will be two files, make sure you use system.img.ext.img and not the original system.img.ext4 for the next step)
    Link:https://mega.nz/#!eA4AhJwL!jjED-dK1NK2m-avt_OniGTEMUd9iqNKvzmMNTG6J37c
    4)Use ext2explore to extract the contents of the system.img.ext4.img
    5) Use Joeldroid's 2.5 to deodex priv-app,app, and framework folder. I only deodexed those folders and it worked for me.

    Then follows the steps from the op:
    5> with 7-Zip installed open the provided Installer template. Do not Extract it. Just open it in the 7-Zip file browser using the right click context menu in windows.

    Drag-Drop the contents of your system folder into the empty system folder in the 7-Zip browser It should be the three folders previously created but now they are Deodexed. Close the 7-zip file manager and select Yes if it asks you to save.

    Note: The provided installer template has been modified to only wipe and replace the three system directories.

    6. Copy the created installer to your sdcard and install with recovery. Wipe cache and Dalvik before rebooting.
    Go have lunch. You will sit at a boot screen for about 10 minutes. Then another 20 to rebuild caches. Time varies.

    7. Your system will now be Deodexed! At this point you can install your mods one at a time, I recommend this so you can test your system between installs to determine if a specific mod is creating problems.

    ---------- Post added at 12:45 AM ---------- Previous post was at 12:40 AM ----------

    Sadly not working for Samsung Galaxy J7. Found errors while deodexing few files using JoelDroid Batch Deodexer 2.5.
    Used 2.5 as 2.4 is not working for me.

    Following are the files which are giving errors.

    Maps from System Apps Folder, GmsCore from Private Apps folder & Services from Framework App Folder are giving the following error - Failed-Oat2Dex Conversion Failed.

    wssyncmlnps2 from Private Apps Folder is giving the following error - Failed-Move Failed.

    May be because of these files my phone is getting stuck on Starting Screen (Bootloop).

    Hoping someone will give solution to it.

    thanks in advance.

    Are you on stock firmware?
    2
    My Device is Samsung Galaxy Note 3 LTE (SM-N9005)

    I followed the tutorial successfully deodexing the folders. I added the folders as instructed and created the flashable .zip.

    The .zip flashed successfully but unfortunately after 1 houre and 30 mins my device battery depleted and the handset shutdown, I tried again with same results I am of the opinion this does not work with the Samsung Galaxy Note 3 LTE (SM-N9005)

    If anyone would like to share a tutorial on how to deodex stock lollipop rom for the Samsung Galaxy Note 3 LTE (SM-N9005) I would be very grateful, Thanks in advance.
    1
    Pulling files via adb gave me errors, so I downloaded it by root explorer
    Now I'm deodexed, thanks a lot