Working ICS leak deodex!! - Motorola Droid 4

I finally have the scripts ready for download!!!! It includes 3 batch scripts (you will only need to run two), lists of dependencies (you dont need to do anything with them ), and the 7za.exe which is used to put the classes.dex in the apk/jars. There are also 7 apks in a "predeodexed" folder, these 7 apks I had trouble deodexing, but the newest xUltimate version (2.4) seemed to deodex them properly (I had issues with it deodexing framework and some apps).
--After a few days of running a deodexed system I haven't noticed any fc and crashes or major slowdowns, BUT I don't use any of the verizon apps (they were the trouble apps for deodexing too) or the default launcher.
Step 0: Make a safestrap backup of your systemorig!!! (You can get back without a backup but it is a much longer process, its the same process of jumping from one ICS, so you keep your data)
Step 1: Download and extract, duh
Step 2: Pull /system/framework to /system/framework in the folder you extracted the zip to
Step 3: Do the same as above but for /system/app
Step 4: Run the framework.bat and app.bat files
Step 5: Get /output/framework and /output/app to /system, and apks in /predeodexd also need to be pushed/transferred to /system/app
5a: Use adbd insecure to enable adb remount and adb push commands, and push /output/framework & /output/app to /system/framework /system/app
-OR-
5b: Copy the /app and /framework folders to the sdcard and then copy using a root file manager to /system/app and /system/framework
Step 6: Remove the .odex files in both /system/app and /system/framework, either through adb shell (adbd insecure), through terminal or one by one with a file manager :silly:
Step 7: Reboot!! :good:
Sent from my DROID4 using xda premium (Well somewhat)

Cool story, broski.
Sent from my XT894

Does it mean, we could use the blur camera app on CM9?
I prefer it over the standard ICS camera app because it has additional options like audio scenes which are quite useful.

Upload?
...Tapatalk

Related

[Guide] Simple guide to theming ANY ROM

A lot of people have asked in various threads lately about getting this theme on x rom, or can someone port this theme for me, etc. It really isn't that hard. It actually is pretty much a simple matter of copying and pasting. This will work on any ROM, and it only takes a few minutes, easy enough for an amateur to do it.
1. First, download the ROM that has the theme that you want on your current ROM.
2. Extract framework-res.apk from /system/framework and rename it to framework-res-old.zip and then right click it, and click extract all. Just extract them to currentdirectory\framework-res-old, which should be the default option anyway.
3. Take your current ROM, and extract framework-res.apk from /system/framework, and repeat step 2 except name it framework-res-new.zip.
4. Browse to the framework-res-old\res folder and select all of the folders starting with "drawable", such as "drawable-mdpi"
5. Browse to the framework-res-new\res folder and paste those folders, it should prompt you to merge and replace files and all that jazz, just click yes and do for the next x conflicts. It will copy and replace all of the image files.
6. Go back to the root of your framework-res-new folder, highlight all of the contents, right click, Send to > Compressed (zipped) archive
7. Windows will re-zip framework-res-new. When it finishes, rename the new zip file to framework-res.apk and push it to /system/framework. If you haven't gotten s-off on your phone, you have to do this while in clockwork recovery (make sure you mount /system in the partitions menu, or if you are s-off and booted, type adb shell mount -o rw,remount /system if it gives you memory errors)
For other operating systems, the steps are similar. If you use a linux distro, I'm going to assume you are smart enough to figure out the compression tools and menu items to unzip and rezip the apk files.
NOTE: You don't actually have to change the extensions to .zip, in fact, you won't be able to unless you unchecked hide known file extensions in the windows folder options in control panel. I just thought it would be easier. If you don't want to unhide extensions, just use a tool like 7-zip or winrar to open and extract the APK. In simple terms, all you are doing is replacing the res folder of your new framework-res.apk with the one from the theme you want. Not very hard.
ANOTHER Note: Sense roms are a bit more difficult to theme, since all of the HTC apps are themed from images in com.htc.resources.apk in /system/framework. But if you are on a sense ROM, you probably can just use a MyModes theme. If you do however choose to try this on a sense ROM, it will only theme user and non-HTC apps. This guide will technically work for any ROM but it works best for AOSP based ROMs, like CyanogenMod or ArayrayMod. The only thing is that if there is a change in the color of text, then you have to decompile both framework-res APKs and copy styles.xml from the old one to your new one and recompile it. APKtool or APK Manager both work great for that.
DO A NANDROID BACKUP BEFORE PUSHING THE NEW FRAMEWORK! Sometimes you can get boot loops from screwing with other files in framework-res, or if it is not signed properly. But you shouldn't get boot loops as long as you stay away from XMLs.
how do i extract an apk? it shows up as an apk and when i click extract it does nothing
Sometimes pushing new frameworks cause boot loops fyi..
Happened to me twice :/
Sent from my T-Mobile myTouch 3G Slide using XDA App
purple1 said:
how do i extract an apk? it shows up as an apk and when i click extract it does nothing
Click to expand...
Click to collapse
Did you try renaming it to framework-res.zip rather than .apk? If you have 7-zip or winrar you can also right click, open with, and choose 7-zip or winrar from the choose default program option.
arayray said:
Sometimes pushing new frameworks cause boot loops fyi..
Click to expand...
Click to collapse
Only if you screw with the non-drawable folders. If you leave the XMLs intact and only change the images it boots fine. The boot loops are caused by incompatible or conflicting XML files, which happens when you just push a random framework-res from another ROM, you have to just move the images over.
I use apkmanager for linux and its immensely helpful. Also you can loop one even without modifying the xmls. Least I have that's why the most important part of theming is knowing how to backup/restore or flash sbf or w/e.
Only if you screw with the non-drawable folders. If you leave the XMLs intact and only change the images it boots fine. The boot loops are caused by incompatible or conflicting XML files, which happens when you just push a random framework-res from another ROM, you have to just move the images over.
Click to expand...
Click to collapse
I think you should state that in the OP
Added a note at the bottom, thanks

How to Install MOD CALL RECORDING

hi all...
i red a topic regarding call recording in here http://forum.xda-developers.com/showthread.php?t=1676739 but unfortunately i cant post there since i am new member..
my GNOTE currently settled on LPF STOCK ROM + kernel CFROOT...i've been following the step where to remove the phone.odex and phone_util.odex and flash the file attached on that link..but still not working...
what i've been misses.???
Sent from my GT-N7000 using xda app-developers app
Sometimes flashing doesn't work. In this case you have to put the files manually by using root explorer or similar. I used ES Explorer with root option checked.
1. Download the MOD zip file into your phone.
2. Open ES Explorer and locate the zip file.
3. Unzip it.
4. Delete phone.odex and phone_util.odex from /system/app if you have not done so.
5. Copy the file one by one from the extracted zip folder to phone /system folder. Start with folder /system/lib/hw, then /system/lib, then finally /system/app.
6. Reboot
After manually copying the files, you will need to change the permissions too.
Apparently ES Explorer did that for me. Anyway if your explorer doesn't do that for you, yes please do so otherwise it will not work. You should set it the same as the rest, which is rw,r-,r-.
@kopitalk...have you tested it..??? is it working..???
what kind of file that i have to change the permission..???
could you please tutor me...btw i have root explorer installed...
Sent from my GT-N7000 using xda app-developers app
after i extract the zip file i got 2 folder in there..:
1. META-INF
a. Folder COM
- Folder Android
- METADATA
- Folder GOOGLE
- Folder ANDROID
- Update-Binary
- Updater-Script
- CERT.RSA
- CERT.SF
- MANIFEST.MF
2. SYSTEM
a. Folder APP
- phone.apk
- phone_util.apk
b. Folder LIB
- Folder HW
- audio.primary.exynos4.so
- audio_policy.exynos4.so
c. libaudioflinger.so
above is the hierarchy of that folder...now my question regarding this...which file i have to copy on which folder destination...???
Sent from my GT-N7000 using xda app-developers app
You just need to copy paste the files within /system folder. My guide above only talks about /system folder.
2. SYSTEM
a. Folder APP
- phone.apk --> copy and paste into your phone /system/app/
- phone_util.apk --> copy and paste into your phone /system/app/
b. Folder LIB
- Folder HW
- audio.primary.exynos4.so --> copy and paste into your phone /system/lib/hw/
- audio_policy.exynos4.so --> copy and paste into your phone /system/lib/hw/
c. libaudioflinger.so --> copy and paste into your phone /system/lib/
And yes, I have tested it to be working fine with LP9 and LPA (should be for the rest as well).
kopitalk....thank in advance for your feedback...btw which file i have change the permission..??? all of them on system folder or just phone.apk and phone_util.apk...???
i'll give a try...
Sent from my GT-N7000 using xda app-developers app
All of the files that you copied.
kopitalk said:
You just need to copy paste the files within /system folder. My guide above only talks about /system folder.
2. SYSTEM
a. Folder APP
- phone.apk --> copy and paste into your phone /system/app/
- phone_util.apk --> copy and paste into your phone /system/app/
b. Folder LIB
- Folder HW
- audio.primary.exynos4.so --> copy and paste into your phone /system/lib/hw/
- audio_policy.exynos4.so --> copy and paste into your phone /system/lib/hw/
c. libaudioflinger.so --> copy and paste into your phone /system/lib/
And yes, I have tested it to be working fine with LP9 and LPA (should be for the rest as well).
Click to expand...
Click to collapse
kopitalk...you're rocks....
it working right now....but why my other way is very loud and clear but my own voice is a little bit hard to listen it clearly....
could you please give me a solution again....
Sent from my GT-N7000 using xda app-developers app
install custom rom come with mod record...kingdroid 4.4

(guide) how to deodex your stock lg g flex rom

GUIDE ON HOW TO "DEODEX"
YOUR STOCK ROM ON PC
THIS IS FOR LG G FLEX ON JELLY BEAN 4.2.2
HAS NOT BEEN TESTED ON KITKAT 4.4
THIS IS NOT FOR ANYONE WHO IS NOT
COMFORTABLE WITH "ADB" AND ITS COMMANDS!!!
IM NOT RESPONSIBLE FOR YOUR CHOICE TO FOLLOW THIS GUIDE OR IF YOU STRAY FROM THE GUIDE AND SCREW UP YOUR DEVICE BY JAMMING FORKS IN THE USB PORT OR USING IT AS A FLOATATION DEVICE (doesnt work, i tried, sinks right to the bottom)
So with that said lets begin.
​There are a few things youll need to do to get set up if you havent already implemented these. Things youll need : adb set up, android sdk, xUltimate v2.4.2, fresh stock phone (backed up), fairly descent understanding of adb and its commands, and one toothpick.
1.Download android-sdk & extract it. http://developer.android.com/sdk/index.html
2. Download xUltimate v2.4.2 & extract it. http://www.xeudoxus.com/android/xUltimate-v2.4.2.zip
3.Copy the extracted android-sdk contents to a new folder youre going to create in C:/Program Files/Android
4.Change name in this folder there is a folder named SDK change it to Android.sdk.
So that you end up with a folder inside C:/Program Files/Android named "Android.sdk" C:/Program Files/Android/Android.sdk
In that folder you should have :
build-tools
extras
platform-tools
system-images
tools
FOR THOSE OF YOU, IF YOURE LIKE ME AND HAVE HAD SDK/ADB INSTALLED FOR A WHILE ON YOUR PC YOU MAY NEED TO UPDATE TO VERSION 1.0.31 OR NEWER. I HAD TO AND THAT MADE ALL THE DIFFERENCE. JUST PULL THESE FILES OUT OF THE NEW VERSION AND PASTE WHERE YOU HAVE YOUR SDK/ADB SET UP
FILES TO COPY AND PASTE
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll
THAT SHOULD HAVE YOU UP TO DATE
5. You need to flash back to stock and reroot. For this you can follow this thread to do so :
http://forum.xda-developers.com/showthread.php?t=2644083
6. I hope it goes with out saying, MAKE A BACKUP AND SAVE IT SOMEWHERE BESIDES YOU PHONE AS WELL AS ON YOUR PHONE !!!!!
7. Make sure usb debugging in enabled. If you dont no how to do this then you shouldnt be doing this and you best bet would be to go to the PLAY STORE and download GO LAUNCHER and some GO themes to make your phone "prettier" This is for themers out there to be able to have a deodexed rom (system/app folder & system/framework folder) to be able to theme and mod.
8. Connect your phone to your computer.
9. Launch Main.exe In the xultimate folder. (run as administrator)
10. Select option 1 (pull /system/app) wait till its done it will take 20+ mins
11. Select option 2 (pull /system/framework) wait till its done it will take about half as long
12. Select option 3 (Deodex /system/app) wait till its done
[If encounter any error. Find out which .odex file it is . Then remove .odex file from the origi_app in xUltimate folder]
13. Select option 4 (Deodex /system/framework) wait till its done
14. Now select EXIT.
15. Rename the folder "done_app" to "app" and the "done_frame" to "framework"
16. Copy the 2 files you just renamed to the root of your sdcard on you your LG G Flex.
17. Now youre done with the hard part and the time consuming part.
TIME TO GET THOSE FRESHLY DEODEXED FILES
PUT BACK WHERE THE BELONG
THIS IS WHERE YOULL NEED TO USE adb.
​1. Again make sure you have usb debugging eneabled, connect your phone to PC and make sure its in "MTP" mode.
2. Navigate to where you put your sdk files you extracted earlier.
C:/Program Files/Android/Android.sdk
3. Now in the Android.sdk folder hold "shift" and right click inside folder then select from the drop down menu "open command prompt here"
If this is the first time youve used adb on this phone then make sure you get the supersu prompt asking for permission to use adb from this PC.
4. Enter these commands one line at a time and hit enter after each line. Some lines may take several minutes to do their thing but be patient it will give you another cursor and cmd prmt line to type on. (VERY IMPORTANT TO DO THIS EXACTLY PER INSTRUCTIONS !!!!!) !!!!!! DONT ENTER ANYTHING IN RED ITS JUST EXPLANATION !!!
adb devices should see your device
adb shell
su
mount -o rw,remount /system/ /system/
cp /sdcard/app/* /system/app/
rm /system/app/*.odex
cp /sdcard/framework/* /system/framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot
NOW IF EVERYTHING WENT WELL YOU REBOOTED AND HAVE A DEODEXED ROM!!
6. Congradulations you have now deodexed your LG G Flex stock rom and can now begin theming. I suggest before you do anything else you reboot into recovery and make a back up so if anything gets fubared you dont have to restore to an odex rom and go thru this again.
UPDATE : THIS DOES WORK ON KITKAT 4.4
Reservered
Sent from my LG-D959 using Tapatalk
works
It works with 4.4
Thanks dude
mattwheat said:
GUIDE ON HOW TO "DEODEX"
YOUR STOCK ROM ON PC
THIS IS FOR LG G FLEX ON JELLY BEAN 4.2.2
HAS NOT BEEN TESTED ON KITKAT 4.4
THIS IS NOT FOR ANYONE WHO IS NOT
COMFORTABLE WITH "ADB" AND ITS COMMANDS!!!
IM NOT RESPONSIBLE FOR YOUR CHOICE TO FOLLOW THIS GUIDE OR IF YOU STRAY FROM THE GUIDE AND SCREW UP YOUR DEVICE BY JAMMING FORKS IN THE USB PORT OR USING IT AS A FLOATATION DEVICE (doesnt work, i tried, sinks right to the bottom)
So with that said lets begin.
​There are a few things youll need to do to get set up if you havent already implemented these. Things youll need : adb set up, android sdk, xUltimate v2.4.2, fresh stock phone (backed up), fairly descent understanding of adb and its commands, and one toothpick.
1.Download android-sdk & extract it. http://developer.android.com/sdk/index.html
2. Download xUltimate v2.4.2 & extract it. http://www.xeudoxus.com/android/xUltimate-v2.4.2.zip
3.Copy the extracted android-sdk contents to a new folder youre going to create in C:/Program Files/Android
4.Change name in this folder there is a folder named SDK change it to Android.sdk.
So that you end up with a folder inside C:/Program Files/Android named "Android.sdk" C:/Program Files/Android/Android.sdk
In that folder you should have :
build-tools
extras
platform-tools
system-images
tools
FOR THOSE OF YOU, IF YOURE LIKE ME AND HAVE HAD SDK/ADB INSTALLED FOR A WHILE ON YOUR PC YOU MAY NEED TO UPDATE TO VERSION 1.0.31 OR NEWER. I HAD TO AND THAT MADE ALL THE DIFFERENCE. JUST PULL THESE FILES OUT OF THE NEW VERSION AND PASTE WHERE YOU HAVE YOUR SDK/ADB SET UP
FILES TO COPY AND PASTE
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll
THAT SHOULD HAVE YOU UP TO DATE
5. You need to flash back to stock and reroot. For this you can follow this thread to do so :
http://forum.xda-developers.com/showthread.php?t=2644083
6. I hope it goes with out saying, MAKE A BACKUP AND SAVE IT SOMEWHERE BESIDES YOU PHONE AS WELL AS ON YOUR PHONE !!!!!
7. Make sure usb debugging in enabled. If you dont no how to do this then you shouldnt be doing this and you best bet would be to go to the PLAY STORE and download GO LAUNCHER and some GO themes to make your phone "prettier" This is for themers out there to be able to have a deodexed rom (system/app folder & system/framework folder) to be able to theme and mod.
8. Connect your phone to your computer.
9. Launch Main.exe In the xultimate folder. (run as administrator)
10. Select option 1 (pull /system/app) wait till its done it will take 20+ mins
11. Select option 2 (pull /system/framework) wait till its done it will take about half as long
12. Select option 3 (Deodex /system/app) wait till its done
[If encounter any error. Find out which .odex file it is . Then remove .odex file from the origi_app in xUltimate folder]
13. Select option 4 (Deodex /system/framework) wait till its done
14. Now select EXIT.
15. Rename the folder "done_app" to "app" and the "done_frame" to "framework"
16. Copy the 2 files you just renamed to the root of your sdcard on you your LG G Flex.
17. Now youre done with the hard part and the time consuming part.
TIME TO GET THOSE FRESHLY DEODEXED FILES
PUT BACK WHERE THE BELONG
THIS IS WHERE YOULL NEED TO USE adb.
​1. Again make sure you have usb debugging eneabled, connect your phone to PC and make sure its in "MTP" mode.
2. Navigate to where you put your sdk files you extracted earlier.
C:/Program Files/Android/Android.sdk
3. Now in the Android.sdk folder hold "shift" and right click inside folder then select from the drop down menu "open command prompt here"
If this is the first time youve used adb on this phone then make sure you get the supersu prompt asking for permission to use adb from this PC.
4. Enter these commands one line at a time and hit enter after each line. Some lines may take several minutes to do their thing but be patient it will give you another cursor and cmd prmt line to type on. (VERY IMPORTANT TO DO THIS EXACTLY PER INSTRUCTIONS !!!!!) !!!!!! DONT ENTER ANYTHING IN RED ITS JUST EXPLANATION !!!
adb devices should see your device
adb shell
su
mount -o rw,remount /system/ /system/
cp /sdcard/app/* /system/app/
rm /system/app/*.odex
cp /sdcard/framework/* /system/framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot
NOW IF EVERYTHING WENT WELL YOU REBOOTED AND HAVE A DEODEXED ROM!!
6. Congradulations you have now deodexed your LG G Flex stock rom and can now begin theming. I suggest before you do anything else you reboot into recovery and make a back up so if anything gets fubared you dont have to restore to an odex rom and go thru this again.
Click to expand...
Click to collapse
Dang dude I just posted this and you've already done it. Wow maybe you should have written this thread. Lmao. It took me several hours to figure out my adb being older version was why it wasn't working.
Sent from my LG-D959 using Tapatalk
mattwheat said:
GUIDE ON HOW TO "DEODEX"
YOUR STOCK ROM ON PC
THIS IS FOR LG G FLEX ON JELLY BEAN 4.2.2
HAS NOT BEEN TESTED ON KITKAT 4.4
THIS IS NOT FOR ANYONE WHO IS NOT
COMFORTABLE WITH "ADB" AND ITS COMMANDS!!!
IM NOT RESPONSIBLE FOR YOUR CHOICE TO FOLLOW THIS GUIDE OR IF YOU STRAY FROM THE GUIDE AND SCREW UP YOUR DEVICE BY JAMMING FORKS IN THE USB PORT OR USING IT AS A FLOATATION DEVICE (doesnt work, i tried, sinks right to the bottom)
So with that said lets begin.
​There are a few things youll need to do to get set up if you havent already implemented these. Things youll need : adb set up, android sdk, xUltimate v2.4.2, fresh stock phone (backed up), fairly descent understanding of adb and its commands, and one toothpick.
1.Download android-sdk & extract it. http://developer.android.com/sdk/index.html
2. Download xUltimate v2.4.2 & extract it. http://www.xeudoxus.com/android/xUltimate-v2.4.2.zip
3.Copy the extracted android-sdk contents to a new folder youre going to create in C:/Program Files/Android
4.Change name in this folder there is a folder named SDK change it to Android.sdk.
So that you end up with a folder inside C:/Program Files/Android named "Android.sdk" C:/Program Files/Android/Android.sdk
In that folder you should have :
build-tools
extras
platform-tools
system-images
tools
FOR THOSE OF YOU, IF YOURE LIKE ME AND HAVE HAD SDK/ADB INSTALLED FOR A WHILE ON YOUR PC YOU MAY NEED TO UPDATE TO VERSION 1.0.31 OR NEWER. I HAD TO AND THAT MADE ALL THE DIFFERENCE. JUST PULL THESE FILES OUT OF THE NEW VERSION AND PASTE WHERE YOU HAVE YOUR SDK/ADB SET UP
FILES TO COPY AND PASTE
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll
THAT SHOULD HAVE YOU UP TO DATE
5. You need to flash back to stock and reroot. For this you can follow this thread to do so :
http://forum.xda-developers.com/showthread.php?t=2644083
6. I hope it goes with out saying, MAKE A BACKUP AND SAVE IT SOMEWHERE BESIDES YOU PHONE AS WELL AS ON YOUR PHONE !!!!!
7. Make sure usb debugging in enabled. If you dont no how to do this then you shouldnt be doing this and you best bet would be to go to the PLAY STORE and download GO LAUNCHER and some GO themes to make your phone "prettier" This is for themers out there to be able to have a deodexed rom (system/app folder & system/framework folder) to be able to theme and mod.
8. Connect your phone to your computer.
9. Launch Main.exe In the xultimate folder. (run as administrator)
10. Select option 1 (pull /system/app) wait till its done it will take 20+ mins
11. Select option 2 (pull /system/framework) wait till its done it will take about half as long
12. Select option 3 (Deodex /system/app) wait till its done
[If encounter any error. Find out which .odex file it is . Then remove .odex file from the origi_app in xUltimate folder]
13. Select option 4 (Deodex /system/framework) wait till its done
14. Now select EXIT.
15. Rename the folder "done_app" to "app" and the "done_frame" to "framework"
16. Copy the 2 files you just renamed to the root of your sdcard on you your LG G Flex.
17. Now youre done with the hard part and the time consuming part.
TIME TO GET THOSE FRESHLY DEODEXED FILES
PUT BACK WHERE THE BELONG
THIS IS WHERE YOULL NEED TO USE adb.
​1. Again make sure you have usb debugging eneabled, connect your phone to PC and make sure its in "MTP" mode.
2. Navigate to where you put your sdk files you extracted earlier.
C:/Program Files/Android/Android.sdk
3. Now in the Android.sdk folder hold "shift" and right click inside folder then select from the drop down menu "open command prompt here"
If this is the first time youve used adb on this phone then make sure you get the supersu prompt asking for permission to use adb from this PC.
4. Enter these commands one line at a time and hit enter after each line. Some lines may take several minutes to do their thing but be patient it will give you another cursor and cmd prmt line to type on. (VERY IMPORTANT TO DO THIS EXACTLY PER INSTRUCTIONS !!!!!) !!!!!! DONT ENTER ANYTHING IN RED ITS JUST EXPLANATION !!!
adb devices should see your device
adb shell
su
mount -o rw,remount /system/ /system/
cp /sdcard/app/* /system/app/
rm /system/app/*.odex
cp /sdcard/framework/* /system/framework/
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot
NOW IF EVERYTHING WENT WELL YOU REBOOTED AND HAVE A DEODEXED ROM!!
6. Congradulations you have now deodexed your LG G Flex stock rom and can now begin theming. I suggest before you do anything else you reboot into recovery and make a back up so if anything gets fubared you dont have to restore to an odex rom and go thru this again.
Click to expand...
Click to collapse
UPDATE : THIS DOES WORK ON KITKAT 4.4
Sent from my LG-D959 using Tapatalk
Wow that must be a good sign of a well explained tutorial when 80+ people read it and no questions or issues.
Sent from my LG-D959 using Tapatalk
mattwheat said:
Wow that must be a good sign of a well explained tutorial when 80+ people read it and no questions or issues.
Sent from my LG-D959 using Tapatalk
Click to expand...
Click to collapse
Is true guy, in my 6 years of xda is the device more boring i had, anybody react to our treads, neither with a simple thanks, i will try, or worked well, thanks
At least dont have people saying, how i open cmd?this will explode my device? Hehe
Enviado de meu LG-D958 usando Tapatalk
Maikeu Locatelli said:
Is true guy, in my 6 years of xda is the device more boring i had, anybody react to our treads, neither with a simple thanks, i will try, or worked well, thanks
At least dont have people saying, how i open cmd?this will explode my device? Hehe
Enviado de meu LG-D958 usando Tapatalk
Click to expand...
Click to collapse
right right I guess it could be bad and be getting bombarded with how to and dumb questions. I figured more people would want to have a deodexed ROM so that xtheme beta5 and hkthemer themed more of their system.
Sent from my LG-D959 using Tapatalk
removed odex
Ok, get ready for it here comes the dumb nOOb question: When i remove odex file in orig_app and rerun xultimate, app associated with odex is no longer in done app folder, is that how it goes down or should i be doing something differently when i run into errors?, thank you
Yes when you remove odex in orig folder then rerun some apps not necessary to have and any apps that error out that are you will have to Google them and find the deodex version. But if you used the lgflash back to stock then rerooted you shouldn't get any errors on any necessary apps. I didn't. There where 3 maybe five that I got errors on but they weren't necessary to have so I deleted them.
Sent from my LG-D959 using Tapatalk
mattwheat said:
Yes when you remove odex in orig folder then rerun some apps not necessary to have and any apps that error out that are you will have to Google them and find the deodex version. But if you used the lgflash back to stock then rerooted you shouldn't get any errors on any necessary apps. I didn't. There where 3 maybe five that I got errors on but they weren't necessary to have so I deleted them.
Sent from my LG-D959 using Tapatalk
Click to expand...
Click to collapse
I'm not trying to hijack your thread but if anybody is interested I found another similar method specifically for KK. I have used it and it works perfectly. The only apk that it wouldn't deodex was the stock LG keyboard. If anybody would like a link I could share. It does not work real well with 4.2 so this one here is the best option for 4.2.
No problem. If there's an easier method by all means. I didn't even know when I wrote this one if it worked on kk or not. I'm still on 4.2.2 for the recovery.
http://forum.xda-developers.com/showthread.php?t=2725930
I used this as instructed and it takes a while but worked perfectly. I will save you some time and tell you to remove lg stock keyboard. Tool does deodex but for some reason will not work. Just adb push using same method as stated in op except you will have to add a step for the priv app. I take no credit or responsibility but I've used it myself and it does work.
Sent from my LG-D950 using XDA Premium 4 mobile app
Matt check your pm plz
mattwheat said:
Wow that must be a good sign of a well explained tutorial when 80+ people read it and no questions or issues.
Sent from my LG-D959 using Tapatalk
Click to expand...
Click to collapse
This is the best explained way to deodex a ROM I've ever seen. Definitely going to try. Will be the first time I've read a how to on deodexing and feel confident enough to try it myself instead of installing someone elses deodexed ROM. But I may revisit with a question lol

[TOOL][fugu][Linux] Auto De-Opt/Deodex | System.img Editing | Nexus Player

Here are some tools I put together to deopt/deodex a system.img
It's been partially tested and works for me, but needs some more testing
I'll continue working on it to fine tune/clean scripts.
Linux Only For Now!
What does this do exactly?
This de-odexes the app, priv-app and framework folders, adds .dex files and lib folders to the appropriate apks/jars and folders, removes odex files and organizes everything into structured folders ready to flash. This does all the work so you don't have to.
Why would I want to do this?
Doing this helps with customization of apks. You can theme the launcher or even replace the lockscreen photos with your own if you choose
This also shrinks the stock system.img to 700+MB
Warning: contains the command 'sudo' for linux root permissions in unpack/repack scripts. Just an easy workaround for now
Instructions:
extract the zip
chmod 755 -R the extracted folder
Add a stock system.img to the extracted folder
run ./unpack.sh to mount the system.img
copy app, priv-app and framework from the 'fugu' folder to the 'system' folder
run ./oat2dex.sh to deodex the 3 folders
remove the 3 folders from the 'fugu' folder
add the 3 folders from the 'system' folder to the 'fugu' folder
run ./repack.sh to build the system.img
Download - auto-oat2dex-fugu_v1.zip
Um I'm familiar with deodex but what's de-opt?
Sent from my Nexus 6
trvbone said:
Um I'm familiar with deodex but what's de-opt?
Sent from my Nexus 6
Click to expand...
Click to collapse
It's de-optimization, which is a method to undo the oat optimized dex. It's similar to deodexing.
awesome thanks, ill test this out tomorrow.
thanks for sharing,
dfl
negamann303 said:
Here are some tools I put together to deopt/deodex a system.img
It's been partially tested and works for me, but needs some more testing
I'll continue working on it to fine tune/clean scripts.
Linux Only For Now!
What does this do exactly?
This de-odexes the app, priv-app and framework folders, adds .dex files and lib folders to the appropriate apks/jars and folders, removes odex files and organizes everything into structured folders ready to flash. This does all the work so you don't have to.
Why would I want to do this?
Doing this helps with customization of apks. You can theme the launcher or even replace the lockscreen photos with your own if you choose
This also shrinks the stock system.img to 700+MB
Warning: contains the command 'sudo' for linux root permissions in unpack/repack scripts. Just an easy workaround for now
Instructions:
extract the zip
chmod 755 -R the extracted folder
Add a stock system.img to the extracted folder
run ./unpack.sh to mount the system.img
copy app, priv-app and framework from the 'fugu' folder to the 'system' folder
run ./oat2dex.sh to deodex the 3 folders
remove the 3 folders from the 'fugu' folder
add the 3 folders from the 'system' folder to the 'fugu' folder
run ./repack.sh to build the system.img
Download - auto-oat2dex-fugu_v1.zip
Click to expand...
Click to collapse
Can you please deodex Marshmallow stock rom for Nexus Player ?
Thanks a lot
Can u provide deodexed all system apps links.

Question Add apk to system.img of Stock Rom

Dear all, I need help im modifying system.img from Stockrom. I can delete apks (de-bloating) but I do not know how to add new apks!
So far I have done the following steps:
1. Untar AP*.tar.md5
2. Extract with LZ4 system.img.lz4
3. simg2img system.img system-new.raw
4. sudo mount -t ext4 -o loop system-new.raw mnt/
5. delete bloatware apps from system/app and system/priv-app
6. add additional apks to system/app and system/priv-app????
7. umount, img2simg, lz4, tar and flash (e.g. Odin)
I have real issues with step 6, everything I tried so far did not work.
a) add apks to system/app and system/priv-app with user root and 644
b) create directories in system/app and system/priv-app
c) replace apks in system/app and system/priv-app
While the de-bloating works, step 6 is broken! The new apps are not usable. They show up with the generic android "robot icon" and their canonical name (e.g. org.fdroid.fdroid...) and are immediately stopped.
What is the correct approach to add additional apks to an existing stock rom image? Please help.

Categories

Resources