How to deodex Xperia Z2 6.0.1 firmware? - Xperia Z2 Q&A, Help & Troubleshooting

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

Related

[GUIDE]Solution to recover some apps like IM,swype etc. mostly missing in custom ROMs

I am not sure if this is already known or has been discussed before. Search did not yield any relevant results. Please post your feedback.
Introduction
In most custom ICS ROM's, you might have noticed some apps like the Polaris office, Photo editor, IM or even Swype missing. These are not even there in many of the "Stock unmodified" versions released either. Surprisingly, they are very well present if you flash the original ROM through Odin. So where do these apps go? They are actually installed on first boot only if you flash from Odin.
Usual missing apps
KiesAir
OceanWeather and WindyWeather live wallpapers
Polaris Office
Photo Editor
Samsung IM
Swype
Vlingo
For those who do not want to go through this procedure and straight away want the CWM package of these missing files, you can download it from here...
How to extract them?
I am assuming the most common method ROM cooks use maybe using dsixda's kitchen (thanks to his fantastic scripts!).
When extracting and de-odexing the ROM, you may have noticed a file called hidden.img in the original ROM file which is usually ignored in this process. this file contains the above apps and they are installed to the /data/app folder. The hidden.img file is not readable using regular softwares, just like factoryfs.img.
Extract this hidden.img file from the original ROM image and paste it in the original_update folder of dsixda's kitchen (xxx.tar.md5 can be renamed to xxx.tar and opened in softwares like winrar)
Rename the hidden.img file to factoryfs.img.
Close any existing kitchen tasks and restart the kitchen.
Select option 1 to set working folder.
Make a backup of your existing working directory.
When prompted, choose the factoryfs.img option to proceed with (option 3).
You will get a message saying the file is being converted to a format for extraction.
The ext2fs program should automatically be launched.
Select open file in the program and choose the ext_factoryfs.img file (which is actually the converted from of the renamed hidden.img file).
Right click on the left pane where the opened file is listed and select Save.
Save it to the root folder of your working directory.
Now you will have a folder called data in your working directory with the missing apps. Include extraction of this folder in your updater script and you are done
If the tutorial wasn't clear, feel free to post questions on the thread.
Hope this was helpful, Cheers...
ajayjohn said:
In most custom ICS ROM's, you might have noticed some apps like the Polaris office, Photo editor, IM or even Swype missing.
Click to expand...
Click to collapse
It seems to be missing in all Deodexed ROM
Photo editor not working. Also there isn't new gallery app in official ROm???
nikki2325 said:
Photo editor not working. Also there isn't new gallery app in official ROm???
Click to expand...
Click to collapse
Photo editor works fine for me. Did you try clearing your cache?
Also, Samsung still uses the old GingerBread gallery.
Couldn't someone just extract the apps then post them here.
thecrater said:
Couldn't someone just extract the apps then post them here.
Click to expand...
Click to collapse
You can get them in a zipped file from here
Unzip and use the app you want.
ajayjohn said:
In most custom ICS ROM's, you might have noticed some apps like the Polaris office, Photo editor, IM or even Swype missing. These are not even there in many of the "Stock unmodified" versions released either. Surprisingly, they are very well present if you flash the original ROM through Odin. So where do these apps go? They are actually installed on first boot only if you flash from Odin.
Click to expand...
Click to collapse
Why not make a custom rom .tar? install with odin? or mobile odin?
If I wanted to flash this hidden.img in heimdall what should i do ? Meaning where should i put it ?
Sent from my GT-I9100 using XDA
Custom roms apps missing i just open the zip with win rar go to system /apps and ADD required apps or even delete apps not wanted close and flash .
Thats open not unzip .
jje
sachs said:
Why not make a custom rom .tar? install with odin? or mobile odin?
Click to expand...
Click to collapse
JJEgan said:
Custom roms apps missing i just open the zip with win rar go to system /apps and ADD required apps or even delete apps not wanted close and flash .
Thats open not unzip .
jje
Click to expand...
Click to collapse
That is definitely a way to do it.
But since these apps get installed to /data/app when installed via odin. Hence, to replicate that (not needed), i mentioned unzipping and installing as a regular apk.
Another option is to open the zip as you said and place these in a /data/app folder and flash it.
But primarily, this thread was created because i have found people asking on many rom threads about missing these apps, without getting a reply...
ajayjohn said:
But since these apps get installed to /data/app when installed via odin. Hence, to replicate that (not needed), i mentioned unzipping and installing as a regular apk.
Another option is to open the zip as you said and place these in a /data/app folder and flash it.
Its just the missing stock apps i put in system /apps i do not add apps to data s that is hit and miss unless the script is edited .
I also remove stuff i dont want from custom roms and add my own wallpaper ringtones boot CSC etc by the same method .
jje
Click to expand...
Click to collapse
Very nice and simple guide.Thank you :good:
since it s not mentioned, I advice to add the libs missing for polaris office and swype etc..
U can retrieve them opening the apks and check out the lib folder.
These have to be pasted into /system/lib to avoid FCs.
It s an important step, mention it into OP.
i'm trying to get stock swype for a galaxy ace s5830 installed on my custom rom. So far without succes. I have pasted swype.apk (extracted from stock rom!) into /system/app and libswypecore.so into /system/lib. Both with permissions: 6-4-4.
When I try to use swype I get an error that this swype version was intended to use on a different device. result: I can swype but nothing happens (no words are entered, though the different dictionairies are present in the swype.apk).
I'm wondering what I should do now. (besides checking the build.prop file for differences).
DutchArjo said:
i'm trying to get stock swype for a galaxy ace s5830 installed on my custom rom. So far without succes. I have pasted swype.apk (extracted from stock rom!) into /system/app and libswypecore.so into /system/lib. Both with permissions: 6-4-4.
When I try to use swype I get an error that this swype version was intended to use on a different device. result: I can swype but nothing happens (no words are entered, though the different dictionairies are present in the swype.apk).
I'm wondering what I should do now. (besides checking the build.prop file for differences).
Click to expand...
Click to collapse
It's galaxy s2 theard, ask in galaxy ace
Ganjax said:
It's galaxy s2 theard, ask in galaxy ace
Click to expand...
Click to collapse
sorry. I thought as it are both samsung devices, It would be the same for Ace, but I will ask in Ace forum.

Z2 575 systemUI required

So as the title says, I need the Z2 575 original stock systemui preferably in a flashable zip format
The reason is I recently flashed the Xperia X lockscreen and I want to revert back ( yes I have taken the backup but it's less hassle if someone provides me the systemui.
Thanks
Exactly same issue.
I flashed the whole zip prepared through prf though.
Hi Here you are..
Not a flashable but just copy the apk file.
Hope this will help you.
https://drive.google.com/open?id=0B6Uj-JoIxvh8NTMySFMxWjRsVkk
jeoleo7 said:
Hi Here you are..
Not a flashable but just copy the apk file.
Hope this will help you.
https://drive.google.com/open?id=0B6Uj-JoIxvh8NTMySFMxWjRsVkk
Click to expand...
Click to collapse
Is there any permissions ?
EDIT : I copied it and changed the permission rwrr but systemUI has stopped.
Any ideas ?
I just copied the file sysmteui.apk only and I don't know where to copy the other folder.
You can just copy it and overwrite the system so that permission remains r-w-r-r.
or manually check it and make r-w-r-r.
jeoleo7 said:
You can just copy it and overwrite the system so that permission remains r-w-r-r.
or manually check it and make r-w-r-r.
Click to expand...
Click to collapse
It didn't work and now am ****ed
Have to flash prerooted zip again
UPDATE : Restored my backup and back to stock lockscreen again :whew:
Oh really, should have cleared the cache too.
Anyway its fine now. ☺

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)

[Mod] 3-Way Reboot Menu - Miui 10.3.7.0 [Random]

3-Way Reboot Menu​
EU 10.3.7.0 version : Work fine
EU_Poco_F1_PowerMenu_Custom_Miui-10.3.7.0_Stable_by_Monpseudo.zip
To restore stock version , flash this file:
EU_Restore_Poco_F1_PowerMenu_Miui-10.3.7.0_Stable_by_Monpseudo.zip
Global 10.3.7.0 version : Someone to test? Not sure it works ...
Global_Poco_F1_PowerMenu_Custom_Miui-10.3.7.0_Stable_by_Monpseudo.zip ???
Make a system backup before the flash. The first start can be long...
To restore stock version , flash this file:
Global_Restore_Poco_F1_PowerMenu_Miui-10.3.7.0_Stable_by_Monpseudo.zip
Credit:
Thanks to @dr4kendroid by whom I was inspired to obtain this mod
Installation:
- Make a backup of system partition with twrp
-Use Twrp recovery to flash the zip file
Previous versions:
Poco_F1_PowerMenu_Custom_Miui-10.0.4.0_Global_Stable.zip
Poco_F1_PowerMenu_Custom_Miui-9.6.24.0_Global_Stable.zip
Poco_F1_PowerMenu_Custom_Miui-9.6.22.0_Global_Stable.zip
Poco_F1_Restore_PowerMenu_Miui-10.0.6.0_Global_Stable_by_Monpseudo.zip
Poco_F1_Restore_PowerMenu_Miui-10.0.4.0_Global_Stable.zip
Poco_F1_Restore_PowerMenu_Miui-9.6.24.0_Global_Stable.zip
Poco_F1_Restore_PowerMenu_Miui-9.6.25.0_Global_Stable.zip
Poco_F1_Restauration_PowerMenu_Miui-9.6.22.0_Global_Stable.zip
Update to 9.6.24 Global stable version
Is this work with miui 10
abdohop said:
Is this work with miui 10
Click to expand...
Click to collapse
No, just miui 9.6.24.0
Update 17/10/2018
Compatible with the 9.6.25.0 sotck version
Add 9.6.25.0 restore files .
Kindly make for MIUI 8.11.1 Android 9.
Update 2/11/2018
Addition of 10.0.4.0 Miui version
Update 18/11/2018
Addition of 10.0.6.0 Miui version
why we must flash zip?
1 use root explorer like mixplorer.apk,
2 go to system/media/theme/default and rename 'powermenu' to powermenu.apk2 (for backup that file)
3 download 'powermenu.zip' from attach files and delete '.zip' (cant upload file name 'powermenu' whitout '.zip' extensions)
4 copy file 'powermenu' from attach files to system/media/theme/default (check permissions 644)
5 no need reboot
for restore orginal files delete 'powermenu' and rename powermenu.apk2 to 'powermenu'. no need reboot.
mikussj3 said:
why we must flash zip?
1 use root explorer like mixplorer.apk,
2 go to system/media/theme/default and rename 'powermenu' to powermenu.apk2 (for backup that file)
3 download 'powermenu.zip' from attach files and delete '.zip' (cant upload file name 'powermenu' whitout '.zip' extensions)
4 copy file 'powermenu' from attach files to system/media/theme/default (check permissions 644)
5 no need reboot
for restore orginal files delete 'powermenu' and rename powermenu.apk2 to 'powermenu'. no need reboot.
Click to expand...
Click to collapse
Icons are there but clicks are not working since your zip is pngs only and not modding services.jar
mikussj3 said:
why we must flash zip?
.
Click to expand...
Click to collapse
Thank you for your solution but I am going to allow to bring you an answer
Because simply most of the users prefer to flash a zip file without having to make other manipulations. Many feel reassuring so by operating
But if you are willing I am also going to bring a quite small criticism in your description of your solution
mikussj3 said:
1 use root explorer like mixplorer.apk,
2 go to system/media/theme/default and rename 'powermenu' to powermenu.apk2 (for backup that file)
3 download 'powermenu.zip' from attach files and delete '.zip' (cant upload file name 'powermenu' whitout '.zip' extensions)
4 copy file 'powermenu' from attach files to system/media/theme/default (check permissions 644)
5 no need reboot
for restore orginal files delete 'powermenu' and rename powermenu.apk2 to 'powermenu'. no need reboot.
Click to expand...
Click to collapse
You sure you do not forget anything?
Because if you apply only it there will be no change.
50 % of the work is missing so that actually the new functions are present in powermenu . As for example to edit the services.jar file ...
Excuse me, it is not 50 % which it misses but 90 % in fact. Because you have to de-odex services.jar file, decompile services.jar file, recompile services.jar file, edit servives.jar file, and copy the new services.jar file in framework folder with 644 permission.
But I am certain that it is just any forgetting from you and that you fast go to correct your solution
Thank you in advance
slimshouki said:
Icons are there but clicks are not working since your zip is pngs only and not modding services.jar
Click to expand...
Click to collapse
i use mine ,'powermenu' and working perfect whitout modify service.jar. are you try my way? im on last EU miui 11.15. mayby on orginal global rom dont work?
jac10000 said:
Thank you for your solution but I am going to allow to bring you an answer
Because simply most of the users prefer to flash a zip file without having to make other manipulations. Many feel reassuring so by operating
But if you are willing I am also going to bring a quite small criticism in your description of your solution
You sure you do not forget anything?
Because if you apply only it there will be no change.
50 % of the work is missing so that actually the new functions are present in powermenu . As for example to edit the services.jar file ...
Excuse me, it is not 50 % which it misses but 90 % in fact. Because you have to de-odex services.jar file, decompile services.jar file, recompile services.jar file, edit servives.jar file, and copy the new services.jar file in framework folder with 644 permission.
But I am certain that it is just any forgetting from you and that you fast go to correct your solution
Thank you in advance
Click to expand...
Click to collapse
Of course this is the correct way to go. However, your deodexed services.jar is not good as stock in terms of performance, delays, random freezes and touch delays. Seems that some bugs exist in your kitchen. I tried it many times in 10.0.4 and in 10.0.6 with same behaviour. I revert back to stock.
Thank you for your efforts and your time as well
slimshouki said:
Of course this is the correct way to go. However, your deodexed services.jar is not good as stock in terms of performance, delays, random freezes and touch delays. Seems that some bugs exist in your kitchen. I tried it many times in 10.0.4 and in 10.0.6 with same behaviour. I revert back to stock.
Thank you for your efforts and your time as well
Click to expand...
Click to collapse
I have never had this kind of problems ...
jac10000 said:
I have never had this kind of problems ...
Click to expand...
Click to collapse
May be you cannot feel it now but you will certainly feel the difference if you flashed stock after a while.
Regarding modded systemui, tiny difference is not noticeable at all.
Dear dev, you're doing a unique job on both your mods. Please continue the same as they're both must have for the ones who are on MIUI.
Thanks a lot. Keep it going.!
Also if you're on Telegram, please mention your username in the OP so people can contact you easliy for bugs, requests etc.
Cheers.
psygarden said:
Dear dev, you're doing a unique job on both your mods. Please continue the same as they're both must have for the ones who are on MIUI.
Thanks a lot. Keep it going.!
Also if you're on Telegram, please mention your username in the OP so people can contact you easliy for bugs, requests etc.
Cheers.
Click to expand...
Click to collapse
Thank you for your encouragement
Sorry I don't have Telegram.
And I'm not a dev, just a user as you who got hooked to mod stock rom since a few years. I have never followed formation in computing and my job has nothing to do with that. It is just as a game for me to bring these modifications.
jac10000 said:
3-Way Reboot Menu
Discontinued
I am sorry, the adventure stops here for me.
That takes me too much time and that disrupts what I have to make at my home and my work.
For me that will stop to Miui 10.0.6
It is too fascinating and I have to dedicate myself to something else ...
Update 18/11/2018
Addition of 10.0.6.0 Miui version
[/HIDE]
Click to expand...
Click to collapse
Battery drain is horrible. Have you noticed that??
New Methods for bootloader and recovery added in
Smali seems is causing the problem.
slimshouki said:
Battery drain is horrible. Have you noticed that??
New Methods for bootloader and recovery added in
Smali seems is causing the problem.
Click to expand...
Click to collapse
I do not meet this problem ...
jac10000 said:
I do not meet this problem ...
Click to expand...
Click to collapse
Have you noticed that samlis r the same of 10.0.4

Flashing ZIP Folder Containing APK's via TWRP Recovery

Hi
I've started around three other threads here on XDA but I never seem*to get anyone answering my questions for something that should be so simple.
Anyway I've been trying to flash a ZIP folder containing third party APK files via TWRP to go alongside my fresh install of Lineage OS. All of the user apps install perfectly fine to the '/data/app' directory, however, system apps that are installing to the '/system/app' directory are only getting half installed. Basically when I boot into the ROM I can see all of the system apps in the app launcher, and even navigating through the phone with a root explorer I can see that I can see the correctly copied folder and file from inside the ZIP folder. For example the Google Snapseed app is stored as the following:-
/system/app/com.niksoftware.snapseed
>niksoftware.snapseed.apk
What's weird is that if I open the apk file and install it with the Package Installer*successfully*installs it but with a '1' suffixed to the end and two folders and a re-named apk file
/data/app/com.niksoftware.snapseed-1
> lib
> oat
> base.apk
For a little test I moved the 'niksoftware.snapseed-1' folder from '/data/app' to '/system/app', deleted the original 'niksoftware.snapseed'*folder and rebooted my phone. As expected the app continued to work perfectly fine with no force crashes.
If you're wondering why I'm installing the apps under a system app, it's because the user(s) I'll be passing the phone onto will be non-technical Android users. When the user needs to do a factory reset, the apps I pre-installed will survive if they're installed as system apps compared user apps that will get wiped.
There is literally nothing on any forums anywhere explaining how to flash system apps via recovery taking the more recent Android the OS' that have been released in the last few years. Could someone please help me out here?
Many thanks
Will
willowen100 said:
Hi
...
Will
Click to expand...
Click to collapse
Personally I never tried to install third party apps like that , but it could be interesting to test this out .
But I think you've made a mistake while trying to create the system folder :
You created this :
/system/app/com/niksoftware.snapseed
But the /com is not needed , I mean it maybe the reason of you issue .
So try to remove the /com :
/system/app/niksoftware.snapseed
Let me know if it worked
RaiZProduction said:
Personally I never tried to install third party apps like that , but it could be interesting to test this out .
But I think you've made a mistake while trying to create the system folder :
You created this :
/system/app/com/niksoftware.snapseed
But the /com is not needed , I mean it maybe the reason of you issue .
So try to remove the /com :
/system/app/niksoftware.snapseed
Let me know if it worked
Click to expand...
Click to collapse
Hi
Thank you for your reply. I've only just realised there is a typo in the directory. The 'com/' should be 'com.' However, I will give removing 'com' altogether to see if that makes any difference.
willowen100 said:
Hi
Thank you for your reply. I've only just realised there is a typo in the directory. The 'com/' should be 'com.' However, I will give removing 'com' altogether to see if that makes any difference.
Click to expand...
Click to collapse
Let me know if it worked , happy to see I helped :highfive:
RaiZProduction said:
Let me know if it worked , happy to see I helped :highfive:
Click to expand...
Click to collapse
I renamed all of the folders inside the zip folder so there is no '.' (dots) in the folder and file names and unfortunately the apps still crash. It's a shame there is no command that extracts the .APK files into their correct directories. I'd love to know how the OpenGApps package works because that basically does the same thing as my ZIP folder.
Sent from my LG-H930 using Tapatalk
willowen100 said:
I renamed all of the folders inside the zip folder so there is no '.' (dots) in the folder and file names and unfortunately the apps still crash. It's a shame there is no command that extracts the .APK files into their correct directories. I'd love to know how the OpenGApps package works because that basically does the same thing as my ZIP folder.
Click to expand...
Click to collapse
GApps does the same thing .
Basically it's a zip file with a script that copy all the file and the directories to the root directory of your phone.
I think the problem is the signature used bybthe third party apps. But that's just an hypothesis , I could be wrong I'll let you search more deep on that subject with Google , hope this helped a bit
:highfive:
RaiZProduction said:
GApps does the same thing .
Basically it's a zip file with a script that copy all the file and the directories to the root directory of your phone.
I think the problem is the signature used bybthe third party apps. But that's just an hypothesis , I could be wrong I'll let you search more deep on that subject with Google , hope this helped a bit
:highfive:
Click to expand...
Click to collapse
I've found a couple of APK/ZIP folder signing utilities but unfortunately they've made no difference.
The part that's going wrong somewhere is the folders that should be created alongside the APK files are not being created.
Sent from my LG-H930 using Tapatalk
I made some videos explaining the situation.
The first video shows the app crashing on launch. The APK file is installed at
Code:
/system/app/Snapseed
I then proceed to install it which is successful and installs itself as a user app found at
Code:
/data/app/com.niksoftware.snapseed-1
Next I rename it and move it to system directory and delete the original directory so there isn't a clash of identical apps. Finally I reboot the phone.
https://youtu.be/mL6ePOMnDQw
The second video I show that it opens up perfectly fine. To show that the two folders inside the
Code:
/system/app/com.niksoftware.snapseed
directory are important, I move them to the internal storage Downloads folder and then relaunch the app. It now crashes. I restore the folders and then app once again works again.
https://youtu.be/hL60APHTV7Q
Will
willowen100 said:
I made some videos explaining the situation.
...
Will
Click to expand...
Click to collapse
Hi , the videos you made made me understand better your issue , but I've a question , when you moved the oat and lib folders to the system , you opened the Snapseed app successfully without any bugs isn't it ?
And because the installation folders are in the system , the factory reset won't affect them .
So is your problem solved ?
RaiZProduction said:
Hi , the videos you made made me understand better your issue , but I've a question , when you moved the oat and lib folders to the system , you opened the Snapseed app successfully without any bugs isn't it ?
And because the installation folders are in the system , the factory reset won't affect them .
So is your problem solved ?
Click to expand...
Click to collapse
Yes you could say I have solved the problem but it's not the solution I'm looking for. I want to be able to install the apps in bulk during the flashing stage using a custom recovery like TWRP I'm using. The order I would flash would be:-
1) Flash Lineage OS
2) Flash OpenGApps
3) Flash additional apps (essentially third party apps from the Google Play Store)
Sent from my LG-H930 using Tapatalk
willowen100 said:
Yes you could say I have solved the problem but it's not the solution I'm looking for. I want to be able to install the apps in bulk during the flashing stage using a custom recovery like TWRP I'm using. The order I would flash would be:-
1) Flash Lineage OS
2) Flash OpenGApps
3) Flash additional apps (essentially third party apps from the Google Play Store)
Click to expand...
Click to collapse
Ok , now flashable zips are field so I can help you
If you want me to do it for you , just upload those files to Google drive and send me the link , I'll make your flashable zip and upload it to Dropbox so you can download it :good:.
The files you should upload :
• Libs folder of every third party apps you want to install
• Oat Folder of every third party apps you want to install
• Base.apk file of every third party apps you want to install
If you want to do it yourself , I'll make you a guide on how to do it ( you require a PC to do it with RAR and Notepad++ or another text editor installed on it )
RaiZProduction said:
Ok , now flashable zips are field so I can help you
If you want me to do it for you , just upload those files to Google drive and send me the link , I'll make your flashable zip and upload it to Dropbox so you can download it :good:.
The files you should upload :
• Libs folder of every third party apps you want to install
• Oat Folder of every third party apps you want to install
• Base.apk file of every third party apps you want to install
If you want to do it yourself , I'll make you a guide on how to do it ( you require a PC to do it with RAR and Notepad++ or another text editor installed on it )
Click to expand...
Click to collapse
I'd rather do it myself please if that's okay with you creating a guide, as I would like to learn how to do it for future reference? I use Notepad++ quite frequently and I use 7-zip to archive everything so I'm all setup there.
This is going to sound stupid but where do I get the Libs and Oat folders from except for copying them from Android? I am aware you can open the APK files themselves but I've never seen the Oat folders inside.
Many thanks again for your help so far.
Will
Sent from my LG-H930 using Tapatalk
willowen100 said:
I'd rather do it myself
...
Will
Click to expand...
Click to collapse
I meant I need the Content of this folder for each apps you want to install as system apps:
/data/app/com.niksoftware.snapseed-1
> lib
> oat
> base.apk
Click to expand...
Click to collapse
You will need this to make the flashable zip.
Copy and paste those files to your download folder ( Internal storage ) , then transfer those folders (and the APK file to your PC in order to use it .
I'm preparing the guide and I'll post it in around 10 min , don't forget to press the thank button on the posts
willowen100 said:
I'd rather do it myself please if that's okay with you creating a guide
...
Sent from my LG-H930 using Tapatalk
Click to expand...
Click to collapse
So , let's start with what you need :
- The folder /data/app/com.niksoftware.snapseed-1 and its content on your desktop
Now what you should do :
1) Extract the 2 folders in the template I made you
2) Open the system folder and create a folder called "app" into it
3) Copy the com.niksoftware.snapseed-1 folder (with the content inside it) and paste it into the app folder newly created
4) Repeate the step above for each and every app you want to install as system app
5) Exit the folders
6) Select the META-INF folder and the system folder and compress them with 7-Zip
7) You are ready to flash the zip to your phone !
My Advice is to do this in your Desktop in first place, because it's more easy to see what you're doing.
When you get used to this, you may do it everywhere (even on your phone).
Don't forget to disable signature verification in TWRP ( if there is the option , I don't remember well)
And make a backup of your phone before every modification , we never know what can happen (but in this case, it'll be okay since we're modifying nothing)
Hope this helped you , don't forget to press the thank button
RaiZProduction said:
I meant I need the Content of this folder for each apps you want to install as system apps:
You will need this to make the flashable zip.
Copy and paste those files to your download folder ( Internal storage ) , then transfer those folders (and the APK file to your PC in order to use it .
I'm preparing the guide and I'll post it in around 10 min , don't forget to press the thank button on the posts
Click to expand...
Click to collapse
I'm just trying to find out if there a more time saving tool that will extract the the lib, oat and base.apk from the containing .apk file so I can do it in bulk on a PC.
The problem I have is that I have about 20+ APK's that will be flashed additionally on top of the Lineage OS ROM and OpenGApps. Thinking how long it took to do one installing it as a user app, renaming it, moving it to the system partition, I would have to do that for everyone. Even if I was to do this method the contents I extracted for one Android architecture (CPU chipset type) used on one device may be completely incompatible on another.
Sent from my LG-H930 using Tapatalk
willowen100 said:
I'm just trying to find out if there a more time saving tool that will extract the the
...
on one device may be completely incompatible on another.
Click to expand...
Click to collapse
Unfortunately I don't know any tool able to do that.
And for the architecture , that's not really a problem
Because there are only 4 architecture :
x86 (rare)
x86_64 (very rare , mostly used on emulators)
arm (most common)
arm64 (common)
And the arm APKs work for arm64 devices , so you just have to do this for arm APKs and it'll be okay for almost every Android device . (Edit 1 : Not really sure of this info, should be good but I can't certify it 100%)
And I know myself that doing that takes time , but if you really want to do that , that's the only way I can suggest.
Do as you feel it , I hope my answers were clear and useful for you.
Let me know what's your decision,
Have a nice day
RaiZProduction said:
Unfortunately I don't know any tool able to do that.
And for the architecture , that's not really a problem
Because there are only 4 architecture :
x86 (rare)
x86_64 (very rare , mostly used on emulators)
arm (most common)
arm64 (common)
And the arm APKs work for arm64 devices , so you just have to do this for arm APKs and it'll be okay for almost every Android device . (Edit 1 : Not really sure of this info, should be good but I can't certify it 100%)
And I know myself that doing that takes time , but if you really want to do that , that's the only way I can suggest.
Do as you feel it , I hope my answers were clear and useful for you.
Let me know what's your decision,
Have a nice day
Click to expand...
Click to collapse
I'm going to go ahead with it. Like you said ARM will work for ARM64. Even if the apps become slightly outdated if I were to flash my ZIP onto future devices, as soon as the Play Store is installed it will hopefully update anyway.
Sent from my LG-H930 using Tapatalk
willowen100 said:
I'm going to go ahead with it. Like you said ARM will work for ARM64. Even if the apps become slightly outdated if I were to flash my ZIP onto future devices, as soon as the Play Store is installed it will hopefully update anyway.
Click to expand...
Click to collapse
Good luck my friend

Categories

Resources