[Flashable][BOOST] Deodexed System for Boost Mobile XT1526 - E 2015 Original Android Development

Hi guys, I successfully deodexed the /system/app, /system/framework, and /system/priv-app folders in my Moto E 2015 for Boost Mobile, the problem I'm having is after I flashed it in TWRP it sits on the Moto screen for like 10 seconds and then reboots itself to TWRP recovery, I think it might be something in the updater-script, if anyone wants to take a stab at it I've attached the Deodexed zip, I appreciate anyone's help who ends up getting this working so we have a fully deodexed system on our Boost Mobile variant of the Moto E 2015
PLEASE DO NOT FLASH THIS UNLESS YOU ARE TESTING CHANGES TO THE UPDATER-SCRIPT!!! I also recommend making a backup of your system partition before you start playin around with this.
Deodexed zip: https://drive.google.com/file/d/0B_zzKnt2oWfkaXFpVzlmUGpwdlE/view?usp=sharing

What does having a deodexed rom do?
Never mind. Googled it. Deodex performs slower on first boot and allows for theming.
Odex is faster boot but dalvik is stored outside of Apk.
In case anyone else was wondering...

crazynapkinman said:
What does having a deodexed rom do?
Never mind. Googled it. Deodex performs slower on first boot and allows for theming.
Odex is faster boot but dalvik is stored outside of Apk.
In case anyone else was wondering...
Click to expand...
Click to collapse
This thread isn't for asking what deodexing does, it's for getting help for getting this working, please stay on topic

goldeneagle1972 said:
Hi guys, I successfully deodexed the /system/app, /system/framework, and /system/priv-app folders in my Moto E 2015 for Boost Mobile, the problem I'm having is after I flashed it in TWRP it sits on the Moto screen for like 10 seconds and then reboots itself to TWRP recovery, I think it might be something in the updater-script, if anyone wants to take a stab at it I've attached the Deodexed zip, I appreciate anyone's help who ends up getting this working so we have a fully deodexed system on our Boost Mobile variant of the Moto E 2015
PLEASE DO NOT FLASH THIS UNLESS YOU ARE TESTING CHANGES TO THE UPDATER-SCRIPT!!! I also recommend making a backup of your system partition before you start playin around with this.
Deodexed zip: https://drive.google.com/file/d/0B_zzKnt2oWfkaXFpVzlmUGpwdlE/view?usp=sharing
Click to expand...
Click to collapse
Your updater-script is way more complicated than it needs to be.
Just delete recursive app, framework, and priv-app directories, and extract your system directory including only app, framework, and priv-app.
Permissions default to rw-r-r, which is all you need for these directories, and symlinks are unnecessary unless an app symlinks a lib from /system/lib directory...

Q9Nap said:
Your updater-script is way more complicated than it needs to be.
Just delete recursive app, framework, and priv-app directories, and extract your system directory including only app, framework, and priv-app.
Permissions default to rw-r-r, which is all you need for these directories, and symlinks are unnecessary unless an app symlinks a lib from /system/lib directory...
Click to expand...
Click to collapse
Do you think you could help get it working??
Sent from my XT1526 using Tapatalk

goldeneagle1972 said:
Do you think you could help get it working??
Sent from my XT1526 using Tapatalk
Click to expand...
Click to collapse
Code:
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system");
delete_recursive("/system/app");
delete_recursive("/system/framework");
delete_recursive("/system/priv-app");
package_extract_dir("system", "/system");
unmount("/system");

Ok I'll be working on deodexing our 5.1 update, then try using what you posted for the updater-script, many thanks for your help man
Sent from my XT1526 using Tapatalk

Related

[Q] Modifying a custom rom

Hello everybody,
I'm trying to modify a custom rom by myself at the moment, I don't have any programming experience.
I read some guides and they made it quite clear to me.
Only a few questions:
I'm trying to edit Villainrom 3.0 and when changing the kernel to Speedmod the only thing I have to do is replacing the zImage?
And if I want to install apps not in /system /apps but in /data /app will that work?
I have to make the folders manually that is why I ask this.
And is it possible if I make in /system /etc an init.d folder to place some tweaks from other roms there?
And I guess it is possible to just remove anything I don't like? App's sounds etc.
And it may sound stupid but once I unzipped a rom how to make it flashable again?
Just zip it and turn signature off in Clockworkmod?
Thank you for your time!
/please don't flame me for my English..
/please don't flame me I'm just trying to learn some basics.
GJ123 said:
Hello everybody,
I'm trying to modify a custom rom by myself at the moment, I don't have any programming experience.
I read some guides and they made it quite clear to me.
Only a few questions:
I'm trying to edit Villainrom 3.0 and when changing the kernel to Speedmod the only thing I have to do is replacing the zImage?
Thats what i have done on a different rom .
And if I want to install apps not in /system /apps but in /data /app will that work?
NO is what i find needs a script or something .
And I guess it is possible to just remove anything I don't like? App's sounds etc.
Thats what i do delete via win rar
And it may sound stupid but once I unzipped a rom how to make it flashable again?
Just zip it and turn signature off in Clockworkmod?
Dont know i just open win rar and add or delete without unzipping .
jje
Click to expand...
Click to collapse
JJEgan said:
GJ123 said:
Hello everybody,
I'm trying to modify a custom rom by myself at the moment, I don't have any programming experience.
I read some guides and they made it quite clear to me.
Only a few questions:
I'm trying to edit Villainrom 3.0 and when changing the kernel to Speedmod the only thing I have to do is replacing the zImage?
Thats what i have done on a different rom .
And if I want to install apps not in /system /apps but in /data /app will that work?
NO is what i find needs a script or something .
And I guess it is possible to just remove anything I don't like? App's sounds etc.
Thats what i do delete via win rar
And it may sound stupid but once I unzipped a rom how to make it flashable again?
Just zip it and turn signature off in Clockworkmod?
Dont know i just open win rar and add or delete without unzipping .
jje
Click to expand...
Click to collapse
Is that possible with init.d ?
Does anybody know about the /init.d and /data /app story?
Click to expand...
Click to collapse
If you want to place items in the init.d folder, place them in /system/etc/init.d inside the zip, this folder is symlinked with /etc/init.d.
As far as installing apps into /data/app, copying items into there would mean editing the updater-script and making it so that /data is mounted and items copied across, you will have to check the vr updater script for what needs to be added.
Code:
run_program("/sbin/mount", "/dev/block/mmcblk0p10", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
First line mounts the data partition,
Second line extracts anything inside the folder "data" into the data partition
Last line unmounts the data partition.
I *dont* think this is the same as installing apps, i would think your best bet is to just install them manually, but i am not 100% sure so ymmv.
veyka said:
If you want to place items in the init.d folder, place them in /system/etc/init.d inside the zip, this folder is symlinked with /etc/init.d.
As far as installing apps into /data/app, copying items into there would mean editing the updater-script and making it so that /data is mounted and items copied across, you will have to check the vr updater script for what needs to be added.
Code:
run_program("/sbin/mount", "/dev/block/mmcblk0p10", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
First line mounts the data partition,
Second line extracts anything inside the folder "data" into the data partition
Last line unmounts the data partition.
I *dont* think this is the same as installing apps, i would think your best bet is to just install them manually, but i am not 100% sure so ymmv.
Click to expand...
Click to collapse
Mmm okay useful!
I think I try adding some apps to
Code:
/system /apps
first and see how they work.
Nice to know that it is possible to freely add things in init.d!
Do you know anything about kernel?
GJ123 said:
Mmm okay useful!
I think I try adding some apps to
Code:
/system /apps
first and see how they work.
Nice to know that it is possible to freely add things in init.d!
I have added and even deleted /changed a few apps to system /apps no problem .
Mainly as i could never alter a custom roms script to run the data folder install .
I usually change z image modem and CSC files remove a few apps and add a few add a few ringtones add bootanimation and power on sound
jje
Click to expand...
Click to collapse
JJEgan said:
GJ123 said:
Mmm okay useful!
I think I try adding some apps to
Code:
/system /apps
first and see how they work.
Nice to know that it is possible to freely add things in init.d!
I have added and even deleted /changed a few apps to system /apps no problem .
Mainly as i could never alter a custom roms script to run the data folder install .
I usually change z image modem and CSC files remove a few apps and add a few add a few ringtones add bootanimation and power on sound
jje
Click to expand...
Click to collapse
I could use an custom rom as base where there already are apps in
Code:
/data /app
But I don't think it is necessary.
Do you have any experience with changing kernel before flashing?
I'm thinking about just replacing the zImage with another but the vr-updaterscript says:
Code:
ui_print("Installing Ninphetamine 2.0.5 kernel - By the king, Ninpo/Hacre himself! ");
assert(package_extract_file("zImage", "/tmp/zImage"),
write_raw_image("/tmp/zImage", "/dev/block/mmcblk0p5"),
delete("/tmp/zImage"));
Don't know if it works with Speedmod instead of ninpo.
Click to expand...
Click to collapse
Just replace the zimage, I've done it plenty of times. That text will show that ninpo is installing in CWM and should have no affect, but for sanity you can change that text to speedmod.
Sent from my GT-I9100 using Tapatalk
nikzDHD said:
Just replace the zimage, I've done it plenty of times. That text will show that ninpo is installing in CWM and should have no affect, but for sanity you can change that text to speedmod.
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
Thank you very very much!
Can you confirm that tweaks in the init.d folder can just be copy/pasted?
GJ123 said:
Thank you very very much!
Can you confirm that tweaks in the init.d folder can just be copy/pasted?
Click to expand...
Click to collapse
Should be fine, but just open up the scripts with something like notepad just to make sure it doesn't rely on anything else.
Sent from my GT-I9100 using Tapatalk
Okay thanks everyone!
So this is what I did until now:
unzip Checkrom XILA2
removed some audio and some /system /apps
I replaced the
Code:
modem.bin
with another
Code:
modem.bin
.
I changed the zImage with another.
Changed some lines in the updaterscript. (names et cetera)
Placed some Thunderbolt! tweaks in init.d
Ctrl+A and zipped everything with winzip, .zip file normal compression.
All done with simple copy/paste.
The big question: Will this boot?
nikzDHD said:
Should be fine, but just open up the scripts with something like notepad just to make sure it doesn't rely on anything else.
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
same suggestion but instead of normal notepad use notepad++ and edit the scripts of your choice.
---------- Post added at 06:12 PM ---------- Previous post was at 06:11 PM ----------
GJ123 said:
Okay thanks everyone!
So this is what I did until now:
unzip Checkrom XILA2
removed some audio and some /system /apps
I replaced the
Code:
modem.bin
with another
Code:
modem.bin
.
I changed the zImage with another.
Changed some lines in the updaterscript. (names et cetera)
Placed some Thunderbolt! tweaks in init.d
Ctrl+A and zipped everything with winzip, .zip file normal compression.
All done with simple copy/paste.
The big question: Will this boot?
Click to expand...
Click to collapse
why don't you try it out and see and let us know. and as of course make sure you backup your current rom
Suarez7 said:
same suggestion but instead of normal notepad use notepad++ and edit the scripts of your choice.
---------- Post added at 06:12 PM ---------- Previous post was at 06:11 PM ----------
why don't you try it out and see and let us know. and as of course make sure you backup your current rom
Click to expand...
Click to collapse
I use Notepad++ already mate
I'm just kind of afraid I completely forgot something and I won't be able to enter recovery or something.
Donwload mode should work in every situation but I'd rather not.
GJ123 said:
I use Notepad++ already mate
I'm just kind of afraid I completely forgot something and I won't be able to enter recovery or something.
Donwload mode should work in every situation but I'd rather not.
Click to expand...
Click to collapse
nah you should be fine. from the looks of it. enjoy anyway hope all goes well for you..and if you want to try themes with your new rom then change framework and systemui i think and use the kl1 version..that way you can try jkay mods and flash a theme if you want...if you really that bothered about looks....but i would wait cause maybe in a week jkay will release his magic if he is not that busy
Just a status update from my side:
I flashed it and IT BOOTS
There are only some problems, Titanium Backup does not ask for Root Permission and so won't get it.
Market crashes.
Some apps from /data crash after some time.
But even with this problems I really appreciate all your help!

[zip] Empty Flashable Zip Template

Some people aren't sure how to create a flashable zip. So here is a template zip file.
Instructions add your APK files to the appropriate directory within the zip.
ie framework-res.apk would go in system/framework/
SystemUI.apk would go in system/app/
Vigor_VZW_bootanimation.zip would go in system/customize/resource/
*You may need to create directories within the zip*
lol nice idea i have never thought about making one for people I forget people dont know how
This could be very useful for people who are new to theming and from development and who are still learning how to sign zips.
Nice work and good idea.
Sent from my ADR6425LVW using XDA App
ljbaumer said:
This could be very useful for people who are new to theming and from development and who are still learning how to sign zips.
Nice work and good idea.
Sent from my ADR6425LVW using XDA App
Click to expand...
Click to collapse
Agreed. This is pretty sweet and actually an idea I was going to ask someone for once (I had no idea how to do these).
And MrSmith, now I can try to get all the boot anims updated with flashables also so that everyone will have different options. Thanks!!
Thanks for dropping this. Already have one, but this helps anyone trying to learn. You may have given the next big developer a good first tool. Congrats.....
Sent from my ADR6425LVW using Tapatalk
Thanks. I'll give this a go on cleanrom.
Sent from my ADR6425LVW using xda premium
Is this just the required directories for theming or does it include the ones required to make a flashable ROM?
ShaneMA said:
Is this just the required directories for theming or does it include the ones required to make a flashable ROM?
Click to expand...
Click to collapse
this is just a flashible zip only you will need to add your files to the right folders to make it theme
is there a list of the folders? for example what folders should i make to add ringtones to the ones that are already on my phone? how about notifications, wallpapers, etc.?
bal1985 said:
is there a list of the folders? for example what folders should i make to add ringtones to the ones that are already on my phone? how about notifications, wallpapers, etc.?
Click to expand...
Click to collapse
The three things you've listed are items that can be freely transferred via USB. This is more for theme elements and applications.
However to answer your question, stock ringtones and notifications are in /system/media/audio/ringtones and /system/media/audio/notifications . The stock wallpapers are stored in /system/customize/resource.
MrSmith317 said:
Some people aren't sure how to create a flashable zip. So here is a template zip file.
Instructions add your APK files to the appropriate directory within the zip.
ie framework-res.apk would go in system/framework/
SystemUI.apk would go in system/app/
Vigor_VZW_bootanimation.zip would go in system/customize/resource/
*You may need to create directories within the zip*
Click to expand...
Click to collapse
Good idea.. I have my own templates I use. Never thought to post.. kinda nervous that someone out there would brick their phone and blame me...been busy as hell past month, hopefully soon I'll get some time to port over some of my previous work over to the rezound, since now all the issues with compiling and decompiling have been figured out.. I got some catching up to do
Sent from my ADR6425LVW using Tapatalk
Mr. Smith,
So if I wanted to make a flashable zip of say the market apk or root explorer that I can keep on the root of my SD card so if for some reason the rom I flash is missing gapps. Would I just make a folder called data with a subfolder called app and then it would get installed in data app ? Then drop the apk within the app folder and resign using android signer ?
I just had that happen while trying to flash the anthrax kernel , for some reason I lost my market apk and since it was a fresh flash I had no access to a file explorer. So ended up googling the commands to adb push the market apk to system. It worked, but made me think if I had my own flashable market zip I could have just flashed that and been up and running easier .
mjh68 said:
Mr. Smith,
So if I wanted to make a flashable zip of say the market apk or root explorer that I can keep on the root of my SD card so if for some reason the rom I flash is missing gapps. Would I just make a folder called data with a subfolder called app and then it would get installed in data app ? Then drop the apk within the app folder and resign using android signer ?
I just had that happen while trying to flash the anthrax kernel , for some reason I lost my market apk and since it was a fresh flash I had no access to a file explorer. So ended up googling the commands to adb push the market apk to system. It worked, but made me think if I had my own flashable market zip I could have just flashed that and been up and running easier .
Click to expand...
Click to collapse
You got it. As long as you get the structure down right, flashing the zip will drop the files in the proper directory on your phone/device.
What about file permissions and owner? How do we set that in the zip (eg. if I need to flash a file to /system that requires permissions 644, owner 0/0.
Nighthound said:
What about file permissions and owner? How do we set that in the zip (eg. if I need to flash a file to /system that requires permissions 644, owner 0/0.
Click to expand...
Click to collapse
Android handles that. However you can edit the script : META-INF/com/google/android/updater-script to make whatever changes you need. So you could add a line: run_program("/sbin/busybox", "chmod", "644", "xxx_file");
MrSmith317 said:
Android handles that. However you can edit the script : META-INF/com/google/android/updater-script to make whatever changes you need. So you could add a line: run_program("/sbin/busybox", "chmod", "644", "xxx_file");
Click to expand...
Click to collapse
Ahh, I googled for edify scripts and found there is a set_perm command which does exactly what I need. Thanks!
Nighthound said:
Ahh, I googled for edify scripts and found there is a set_perm command which does exactly what I need. Thanks!
Click to expand...
Click to collapse
haha that too.
MrSmith317 said:
Come a day there won't be room for naughty men like us to slip about at all.
This job goes south, there well may not be another.
So here is us, on the raggedy edge. Don't push me, and I won't push you.
Dong le ma?
Click to expand...
Click to collapse
Shiny!
MrSmith317 said:
Some people aren't sure how to create a flashable zip. So here is a template zip file.
Instructions add your APK files to the appropriate directory within the zip.
ie framework-res.apk would go in system/framework/
SystemUI.apk would go in system/app/
Vigor_VZW_bootanimation.zip would go in system/customize/resource/
*You may need to create directories within the zip*
Click to expand...
Click to collapse
Quick Q. is it possible to create 1 flashable zip that would flash more than 1 file into different directories I.e a file into System/app and another in System/Framework ?
funnyangrykid said:
Quick Q. is it possible to create 1 flashable zip that would flash more than 1 file into different directories I.e a file into System/app and another in System/Framework ?
Click to expand...
Click to collapse
Yeah man, that's what this blank flashable zip does
You can put as many files in the 'app' or 'framework' folder and it will flash them all

[Q] Create /data/app in a Rom?

Hi, im trying to add a .apk for a keyboard into my rom but when i put it into the /system/app foldrer and flash it, it just keeps FCing when i boot. So now im thinking of putting it into the /data/app folder, but my rom doesnt have a /data folder so i need to make one. What do i need to add in the update-script to copy /data/app from rom into my phone? my phone is the Desire Z and i think it has ext 4?
Have you looked into using dsixda's kitchen? It runs in Linux(or windows with a little work) it can add that option plus a lot more stuff.
Sent from my Kanged Shooter
netwokz said:
Have you looked into using dsixda's kitchen? It runs in Linux(or windows with a little work) it can add that option plus a lot more stuff.
Sent from my Kanged Shooter
Click to expand...
Click to collapse
Yeah, use dsixda kitchen, but I don't think it is a problem of where is the apk installed. U should place it in system. What apk is it? sometimes 2.2.X apks are not compatible with 2.3.X ones or 4.0.X
luiseteyo said:
Yeah, use dsixda kitchen, but I don't think it is a problem of where is the apk installed. U should place it in system. What apk is it? sometimes 2.2.X apks are not compatible with 2.3.X ones or 4.0.X
Click to expand...
Click to collapse
nope...most 3rd party keyboard will give you FC if you put them on /system/app. the easiest way is using dsixda's kitchen to put them on /data/app. we can also add these lines into the updater script to copy the apk into /data/app.
Code:
mount("EXT4"; "EMMC"; "<your data partition location>"; "/data")
extract_package_dir("data"; "/data")
kurotsugi said:
nope...most 3rd party keyboard will give you FC if you put them on /system/app. the easiest way is using dsixda's kitchen to put them on /data/app. we can also add these lines into the updater script to copy the apk into /data/app.
Code:
mount("EXT4"; "EMMC"; "<your data partition location>"; "/data")
extract_package_dir("data"; "/data")
Click to expand...
Click to collapse
Yea i was searching and found that code, but im also not sure what the name of the partition is
is it mmcblk0p8? not sure what the ending number should be
evilcuber said:
Yea i was searching and found that code, but im also not sure what the name of the partition is
is it mmcblk0p8? not sure what the ending number should be
Click to expand...
Click to collapse
try running
Code:
adb shell cat /proc/mounts
that should get you the mounting points. If not try:
Code:
adb shell cat /proc/mtd
do i need to set permissions? if so, what are the lines for the persmissions i need to set? or do i just need those 2 lines that you mentioned?
Also can i delete the stock android keyboard .so file in the library if i get the 3rd party keyboard to work?
I could be wrong, but I don't believe you need to set permissions. And what .so file are you talking about, and where is it located?
netwokz said:
I could be wrong, but I don't believe you need to set permissions. And what .so file are you talking about, and where is it located?
Click to expand...
Click to collapse
Its the .so file for latinjni_latinime.so which is for the default android kb. also can i just put those 2 lines anywhere in the updater script?
Here i changed the formating of the script to match my script
mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data");
extract_package_dir("data", "/data");
looks right?
Ok when i try to flash it it says Error in /sdcard/romename.zip
(status 6)
I put it the above lines of code in the updater script
I wouldn't delete it, that's what tells the OS what keys you have available, and is needed. As far as the script goes, I'm not sure, I could never get it to work editing it myself. That's why I used dsixda's kitchen, as it does it for you.
i used the kitchen to make data/app but i still get the error
EDIT: Fixed
data/app
What is the use of data/app folder? And, how is is different from system/app
data/app is user apps and system/app is apps needed by the os
Sent from my GT-I9100G using xda app-developers app
i dislike dsixda's kitchen, i build my roms manually how to do this manually?
just copy the lib which is in the apk to system,libs,set permission to rw-r-r-- and reboot.done

How to deodex Xperia Z2 6.0.1 firmware?

Can anyone tell me how to deodex Xperia Z2 6.0.1 firmware step by step? Thanks in advance....
+1
I am also looking for the same. On MM rom, Sony is using symlinks to link odex files.
A step by step guide would be highly appreciated.
Thank you
I'm not gonna go into deep details, but this should help.
- flash MM rom for your device, make sure it is ROOTED as you'll need to use an explorer with root access,it's better if you do this on a clean install, but this is just me
- boot your device and go through the setup process
- once done, install a browser with root access, I recommend MiXplorer, root explorer
- browse into /system folder
- check your /app, /framework, /priv-app, they should have odex files inside them (this was the case for me)
- copy these folders, plus build.prop file into sd card or the phone memory
- connect phone to pc and copy files over
- look up and download SVADeodexerForArtx(32 or 64 based on your system), you also need to have java installed on your machine.
- extract the SVADeodexerForArtxxx to your c: drive, and create a folder named /system insides, and post the files from your phone inside that
- your final folder will look something like this : c:/SVADeodexerForArtxxx/system/ (app, framework,priv-app) and build.prop file
- remember to move the Semcxxx app folder from /framework into /app folder or it won't be deodexed
- run SVADeodexerForArtxxx and point it to your /system folder, it will show you your android version, tick the checkbox for app, framework, priv-app, hit the start button
- it'll run and once done the log file will open and tell you how many were deodexed.
- the deodexed folders will be in the base folder, make sure to return the Semcxxx folder from the /apps to /framework
- create a flashable zip and flash these folders back on your rom
now your rom is deodexed
install Rom eXistenZ MM, rom is rooted and deodex
lokitooxd said:
install Rom eXistenZ MM, rom is rooted and deodex
Click to expand...
Click to collapse
The intention of this post was to learn how to do it. I know there is existenz and ultraslim deodexed roms. Thanks anyway.
@ticktock666
Thanks for the steps.
These steps looks to be from older version. Anybody with 6.0 Sony MM steps?
@ticktock666
There are certain other folders such as odex.app, odex.framework, odex.priv-app...what about these? These folders also contains similar odex files for app, framework and pri-app...
AlanDS said:
These steps looks to be from older version. Anybody with 6.0 Sony MM steps?
Click to expand...
Click to collapse
I deodexed my MM rom about a week ago, so I'm saying this from experience : it is up-to-date.
vikrant7027 said:
@ticktock666
There are certain other folders such as odex.app, odex.framework, odex.priv-app...what about these? These folders also contains similar odex files for app, framework and pri-app...
Click to expand...
Click to collapse
I'm not sure, but here's some of the stuff I noticed during the deodex process :
- I used to get the files using adb pull command directly to pc after a fresh rom install (remember to install a pre-rooted rom), but I did not get any odex files with the apps this way, so deodexing didn't work.
- after pulling the files from the device using a root explorer, each app had the odex files with them inside the correct folders.
- about odex.xxx folders and odex.xxx.sqsh files : they contain an exact duplicate of the odex files, no idea why (you can extract the sqsh files, they're basically special compressed odex file container sort of thing), which means the rom contains 3 versions of the same odex file, makes no sense.....
after deodexing and flashing the deodexed rom/files, I deleted odex.xxx folders and odex.xxx.sqsh files, and my rom works fine, fully rooted and with xposed. My current issue is that now if I browse into /data/app on the root of the drive I'll find an odexed version of every app I have installed, be it a user app or system app, and it's driving me crazy.
ticktock666 said:
I deodexed my MM rom about a week ago, so I'm saying this from experience : it is up-to-date.
I'm not sure, but here's some of the stuff I noticed during the deodex process :
- I used to get the files using adb pull command directly to pc after a fresh rom install (remember to install a pre-rooted rom), but I did not get any odex files with the apps this way, so deodexing didn't work.
- after pulling the files from the device using a root explorer, each app had the odex files with them inside the correct folders.
- about odex.xxx folders and odex.xxx.sqsh files : they contain an exact duplicate of the odex files, no idea why (you can extract the sqsh files, they're basically special compressed odex file container sort of thing), which means the rom contains 3 versions of the same odex file, makes no sense.....
after deodexing and flashing the deodexed rom/files, I deleted odex.xxx folders and odex.xxx.sqsh files, and my rom works fine, fully rooted and with xposed. My current issue is that now if I browse into /data/app on the root of the drive I'll find an odexed version of every app I have installed, be it a user app or system app, and it's driving me crazy.
Click to expand...
Click to collapse
Can u make a deodex rom for Xperia z2 mm rom d6502 indian version and post it on gdrive?? thanku in advance..? @ticktock666
Silverstarjigar said:
Can u make a deodex rom for Xperia z2 mm rom d6502 indian version and post it on gdrive?? thanku in advance..? @ticktock666
Click to expand...
Click to collapse
sorry buddy, but although just the deodexed files from my rom should work perfectly (it's only the apks, no other settings from the rom are included), it is near impossible for me to upload anywhere due to slow & unstable connection and power situation, since none of the hosting services support upload resume on their apps/sites.
ticktock666 said:
sorry buddy, but although just the deodexed files from my rom should work perfectly (it's only the apks, no other settings from the rom are included), it is near impossible for me to upload anywhere due to slow & unstable connection and power situation, since none of the hosting services support upload resume on their apps/sites.
Click to expand...
Click to collapse
Okk.. I will give it a try then!
Is there any script or something that we can flash through recovery ?
do you mean a script to deodex the rom on the phone ? if so then the answer is no
You can try this
ticktock666 said:
I'm not gonna go into deep details, but this should help.
- flash MM rom for your device, make sure it is ROOTED as you'll need to use an explorer with root access,it's better if you do this on a clean install, but this is just me
- boot your device and go through the setup process
- once done, install a browser with root access, I recommend MiXplorer, root explorer
- browse into /system folder
- check your /app, /framework, /priv-app, they should have odex files inside them (this was the case for me)
- copy these folders, plus build.prop file into sd card or the phone memory
- connect phone to pc and copy files over
- look up and download SVADeodexerForArtx(32 or 64 based on your system), you also need to have java installed on your machine.
- extract the SVADeodexerForArtxxx to your c: drive, and create a folder named /system insides, and post the files from your phone inside that
- your final folder will look something like this : c:/SVADeodexerForArtxxx/system/ (app, framework,priv-app) and build.prop file
- remember to move the Semcxxx app folder from /framework into /app folder or it won't be deodexed
- run SVADeodexerForArtxxx and point it to your /system folder, it will show you your android version, tick the checkbox for app, framework, priv-app, hit the start button
- it'll run and once done the log file will open and tell you how many were deodexed.
- the deodexed folders will be in the base folder, make sure to return the Semcxxx folder from the /apps to /framework
- create a flashable zip and flash these folders back on your rom
now your rom is deodexed
Click to expand...
Click to collapse
But with file odex.app.sqsh format...are that no need to extract
Sent from my D6503 using XDA-Developers mobile app
A1nur said:
But with file odex.app.sqsh format...are that no need to extract
Sent from my D6503 using XDA-Developers mobile app
Click to expand...
Click to collapse
sorry for the late reply, haven't been checking much recently.
now about those sqsh files, I've tried extracting them, and they seem to contains a 2nd copy of the odex files, not sure how they work, but after deodexing my rom I simply deleted them, and everything worked normally.
ticktock666 said:
sorry for the late reply, haven't been checking much recently.
now about those sqsh files, I've tried extracting them, and they seem to contains a 2nd copy of the odex files, not sure how they work, but after deodexing my rom I simply deleted them, and everything worked normally.
Click to expand...
Click to collapse
In new build fw 291 i try deodex that rom sir, n i do not extract sqsh.file...all normally work but if i delete boot.art n boot.oat it butlop....
How to i delete that sir
A1nur said:
In new build fw 291 i try deodex that rom sir, n i do not extract sqsh.file...all normally work but if i delete boot.art n boot.oat it butlop....
How to i delete that sir
Click to expand...
Click to collapse
I don't have the latest rom yet (not released for 6502), but when you go into your /system/app folder using a root explorer, do you see "arm" folder inside any of the installed apps ? maybe they changed something in 291, and now they only use sqsh files, also what does the log from the app says when you deodex the rom says ? it should say something like "300 apps deodexed, 10 apps already deodexed" or something like that.
ticktock666 said:
I don't have the latest rom yet (not released for 6502), but when you go into your /system/app folder using a root explorer, do you see "arm" folder inside any of the installed apps ? maybe they changed something in 291, and now they only use sqsh files, also what does the log from the app says when you deodex the rom says ? it should say something like "300 apps deodexed, 10 apps already deodexed" or something like that.
Click to expand...
Click to collapse
Thanks sir for your answered...
Sent from my Sony Xperia Z2 using XDA Labs
Hi!
Thanks, for good instructions!
It is also working for Xperia Z3 Compact on MM .291. I failed in the past, cause of forgetting 'semcxxx' in framework.
Greetz, brockn

How to deodex my z2 .291

Hey guys, how can I do this? I used some tool to deodex the files but failed to make a flashable zip, could anyone point me out? thanks
LukBoy99 said:
Hey guys, how can I do this? I used some tool to deodex the files but failed to make a flashable zip, could anyone point me out? thanks
Click to expand...
Click to collapse
Use lordroid tool to deodex. It will deodex the rom as well as create flashable zip
vikash1994b said:
Use lordroid tool to deodex. It will deodex the rom as well as create flashable zip
Click to expand...
Click to collapse
i have some odex.xxx folder in /system such as odex.priv-app, should I delete those after or ignore?
LukBoy99 said:
i have some odex.xxx folder in /system such as odex.priv-app, should I delete those after or ignore?
Click to expand...
Click to collapse
Those will be deleted once u flash the zip.
Just replace this delete.sh file in the flashable deodexed zip.it will delete the odex files,sqsh file.
Delete.sh-https://drive.google.com/file/d/0B_ACsHR2ThfsalVfbWJ4QWotTnM/view?usp=drivesdk
vikash1994b said:
Those will be deleted once u flash the zip.
Just replace this delete.sh file in the flashable deodexed zip.it will delete the odex files,sqsh file.
Delete.sh-https://drive.google.com/file/d/0B_ACsHR2ThfsalVfbWJ4QWotTnM/view?usp=drivesdk
Click to expand...
Click to collapse
alright thanks, im doing it now ill tell you how it goes.
vikash1994b said:
Those will be deleted once u flash the zip.
Just replace this delete.sh file in the flashable deodexed zip.it will delete the odex files,sqsh file.
Delete.sh-https://drive.google.com/file/d/0B_ACsHR2ThfsalVfbWJ4QWotTnM/view?usp=drivesdk
Click to expand...
Click to collapse
Failed to deodex photos, should I just do it anyway?
[20:29:51][stdError] Photos.odex contains multiple dex files. You must specify which one to disassemble with the -e option
[20:29:51][stdError] Valid entries include:
[20:29:51][stdError] /system/app/Photos/Photos.apk
[20:29:51][stdError] /system/app/Photos/Photos.apk:classes2.dex
[20:29:51]It's exit value was : 1
[20:29:51][Deodexer][E]Failed at baksmali Photos.odex
[20:29:51][Apkworker][E]Photos.apk Failed to deodex
LukBoy99 said:
Failed to deodex photos, should I just do it anyway?
[20:29:51][stdError] Photos.odex contains multiple dex files. You must specify which one to disassemble with the -e option
[20:29:51][stdError] Valid entries include:
[20:29:51][stdError] /system/app/Photos/Photos.apk
[20:29:51][stdError] /system/app/Photos/Photos.apk:classes2.dex
[20:29:51]It's exit value was : 1
[20:29:51][Deodexer][E]Failed at baksmali Photos.odex
[20:29:51][Apkworker][E]Photos.apk Failed to deodex
Click to expand...
Click to collapse
Yes,just proceed and create zip
After u flash and reboot, photos force close so u just need to ignore it and update it via playstore then it wont happen similarlt for other apps like drive and maps afaik.
Btw u did move the odex files to respective folders right? If u didnt then u will have to do it and then deodex it orelse phone will bootloop.
vikash1994b said:
Yes,just proceed and create zip
After u flash and reboot, photos force close so u just need to ignore it and update it via playstore then it wont happen similarlt for other apps like drive and maps afaik.
Btw u did move the odex files to respective folders right? If u didnt then u will have to do it and then deodex it orelse phone will bootloop.
Click to expand...
Click to collapse
what do you mean move? I just copied from system: framework, apps, priv-app and build.prop and moved semcxxx which was 3 files from framework to apps and after finished back to framework.
LukBoy99 said:
what do you mean move? I just copied from system: framework, apps, priv-app and build.prop and moved semcxxx which was 3 files from framework to apps and after finished back to framework.
Click to expand...
Click to collapse
Oh,then its fine.
If u had extracted system folder from system.sin then u need to move the odex files to respectively folder.
Have u flashed the deodexed zip?
vikash1994b said:
Oh,then its fine.
If u had extracted system folder from system.sin then u need to move the odex files to respectively folder.
Have u flashed the deodexed zip?
Click to expand...
Click to collapse
unfortunately DownloadAgent has stopped. this message is being spammed and every restart i need to optimize 307 apps...
LukBoy99 said:
unfortunately DownloadAgent has stopped. this message is being spammed and every restart i need to optimize 307 apps...
Click to expand...
Click to collapse
Don't know why is popping for u.it never happened with me. If u want i can upload my deodex patch.
Ok got rid of that apparently by moving it (bootinfo.apk) to sd card then back and restarting, now anyawy to test deodex is success?
vikash1994b said:
Don't know why is popping for u.it never happened with me. If u want i can upload my deodex patch.
Click to expand...
Click to collapse
Ok it's ****ing back,,, can you give me your /system/app/bootinfo folder? it's that.
LukBoy99 said:
Ok it's ****ing back,,, can you give me your /system/app/bootinfo folder? it's that.
Click to expand...
Click to collapse
Here-https://drive.google.com/file/d/0B_ACsHR2ThfsZk02SDg4cUZmTWs/view?usp=drivesdk
vikash1994b said:
Here-https://drive.google.com/file/d/0B_ACsHR2ThfsZk02SDg4cUZmTWs/view?usp=drivesdk
Click to expand...
Click to collapse
Still download agent has stopped..
Ok on 2nd thought can you give me camera, camera common, and video apps? (Video has camera icon not video viewer)

Categories

Resources