[GUIDE]Solution to recover some apps like IM,swype etc. mostly missing in custom ROMs - Galaxy S II Android Development

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.

Related

[Q] Clock app not working, need a clockpackage.apk and .odex file

My 4.0 player with stock ROM 2.3.5 stock Clock application doesn't run anymore. Not sure why, but it just says "The application Clock (process com.sec.android.app.clockpackage) has stopped unexpectedly. Try again." This happens whenever I run it.
Could someone upload a clockpackage.apk and clockpackage.odex from the /system/apps directory from their stock ROM so I could see if that fixes it?
Thanks.
logo20heli said:
My 4.0 player with stock ROM 2.3.5 stock Clock application doesn't run anymore. Not sure why, but it just says "The application Clock (process com.sec.android.app.clockpackage) has stopped unexpectedly. Try again." This happens whenever I run it.
Could someone upload a clockpackage.apk and clockpackage.odex from the /system/apps directory from their stock ROM so I could see if that fixes it?
Thanks.
Click to expand...
Click to collapse
Have you tried clearing your user data from app manager yet? Sometimes this will fix minor issues.
cvcduty said:
Have you tried clearing your user data from app manager yet? Sometimes this will fix minor issues.
Click to expand...
Click to collapse
Yea, I tried that already, but it doesn't have any effect.
I notice that my clockpackage.apk does not have a corresponding clockpackage.odex file while almost all the other .apk do have a corresponding .odex. Hence I thought I'd ask for a .odex as well. Perhaps my .apk is corrupt? Or maybe another installed app is preventing Clock from working? I'm not sure.
Hey guys. I am also in the same boat as the OP. What do I do in order to fix this? This started happening after used Odin 8.15 to reflash back to the original stock firmware using this file "package_us2.3.5.tar.md5" I am using a Samsung Galaxy Player 4.0 YP-G1 Model
Please help.
Hi Kwipper,
I'm the OP. I just wanted to say that I also restored from a bad flash using a downloaded package_us2.3.5.tar.md5. I guess that ROM has some problem with the clock package. Maybe we could find another stock ROM to flash and this might fix it?
Frustrating thing is that I actually saved off my ROM using clockwork mod backup before things got messed up and I had to flash package_us2.3.5.tar.md5. But I can't flash my original using ODIN because the backup is somehow not valid or I can't get it into the .md5 format using Windows-only tools.
Hi! (first post here)
I also had the exact same problem after flashing package_us2.3.5.tar.md5 but even after downloading and installing a new cloackpackage I could open it but still cound't create an alarm as it would force close with the same message as the OP.
logo20heli said:
Hi Kwipper,
I'm the OP. I just wanted to say that I also restored from a bad flash using a downloaded package_us2.3.5.tar.md5. I guess that ROM has some problem with the clock package. Maybe we could find another stock ROM to flash and this might fix it?
Frustrating thing is that I actually saved off my ROM using clockwork mod backup before things got messed up and I had to flash package_us2.3.5.tar.md5. But I can't flash my original using ODIN because the backup is somehow not valid or I can't get it into the .md5 format using Windows-only tools.
Click to expand...
Click to collapse
1. I don't think there is a simple way to convert a CWM backup into an Odin flash.
2. The .md5 extension only indicates that there is a built in MD5 sum in the file that Odin can use to check the integrity of the file before flashing it. It is not necessary, you can simply use just a tar ball.
3. I'm attaching my clockpackage.apk and .odex from my stock 5.0 files. I don't see any reason why they would be different between the 5.0 and 4.0. Hope it helps...
Meticulus said:
1. I don't think there is a simple way to convert a CWM backup into an Odin flash.
2. The .md5 extension only indicates that there is a built in MD5 sum in the file that Odin can use to check the integrity of the file before flashing it. It is not necessary, you can simply use just a tar ball.
3. I'm attaching my clockpackage.apk and .odex from my stock 5.0 files. I don't see any reason why they would be different between the 5.0 and 4.0. Hope it helps...
Click to expand...
Click to collapse
I tried using the file you just posted.
1.) I copied the files to the root of my device
2.) Then I used Root Explorer to navigate to those files under /sdcard
3.) I copied both of the files into the system/app directory (changing the permissions to r/w for that directory)
4.) Only clockpackage.apk needed to be overwritten. There was no original clockpackage.odex, so it just pasted into the directory just fine.
5.) I powered off my device and restarted my device.
And the result was the clock application was completely gone from my app folder. I don't think your YP-G70 clockpackage.apk & clockpackage.odex compatible with the YP-G1 devices.
I also decided to do some exploring on the package_us2.3.5.tar. That is supposedly the official firmware for the YP-G1 devices. I decided to extract the file (using 7zip) and look at the "factoryfs.rfs" inside of it using (UltraISO). I noticed that inside of the factoryfs.rfs file in the APP folder there was no clockpackage.odex.
I decided to compare this with the official firmware for the YP-G70 device and do the same thing, and I noticed that both the clockpackage.odex and the clockpackage.apk files are inside that firmware.
I think the reason why we are having errors on the clockpagage.apk on our YP-G1 devices is because when we restore the original firmware, it gets restored without clockpackage.odex, because it is not within the original firmware to begin with. I have a feeling that the original firmware for our device is corrupted (or at least it's missing that clockpackage.odex file).
I am new to this community and using android, but this is what I have observed thus far. Go easy on me if I am wrong. I am new. =)
Meticulus said:
1. I don't think there is a simple way to convert a CWM backup into an Odin flash.
Click to expand...
Click to collapse
Sorry, my memory wasn't correct. I had made the backup using the instructions in the following thread:
http://forum.xda-developers.com/showthread.php?t=1412875
I then tar'ed it using some old MKS tar program I had on my Windows PC. But I think ODIN didn't like it.
I guess I can find a copy of Linux around here and use a more appropriate tar and md5sum to make something ODIN will like, or maybe heimdall would work.
Hey logo20heli. I was wondering. With the backup you made. Can you use 7zip to extract it? If so, do that. There should be a file named factoryfs.rfs.
Then download another program called UltraISO and use it to browse the contents of the factoryfs.rfs file. You should be able to navigate to the /app directory and extract both the Clockpackage.apk and Clockpackage.odex files. If they exist.
If you can do this, upload those files here.
Ok, I took the alarm clock from a fascinate rom and it does work, the alarm too. There is no .odex file attached.
Here's the clockpackage.apk and clockpackage.odex file from the backup that I mentioned earlier that I took. I was able to extract them like Kwipper suggested and replaced them using his instructions and now my clock is working correctly. Yea!
I wonder what else is wrong with that "package_us2.3.5.tar.md5" that is posted. We know the clockpackage was wrong.
I still wish I could make a flashable ODIN file from my backup, so I could restore it. But when I tried it, it just fails.
Thanks for your suggestions Kwipper.
Yer welcome! I don't think I have enough points to create a thread about this. I will do some more investigation on this after I finish this post. I will post my results here.
---------- Post added at 11:18 PM ---------- Previous post was at 10:31 PM ----------
1.) Booted into Android Systme Recovery. (PWR + Vol Up)
2.) Performed a Wipe Data/Factory Reset
3.) Performed a wipe cache partition
4.) Rebooted and went into Downloading Mode (PWR + Vol Down)
5.) Ran Odin3 v1.85 and successfully flashed my YP-G1 device using the "package_us2.3.5.tar.md5" file
Everything is now back to defaults. Here are the problems I have found with everything back to the normal defaults.
APPS:
Clockpackage.apk: The application Clock(process com.sec.android.app.clockpackage) has stopped unexpectedly. Try again
WIDGETS:
It would seem the following widgets from Samsung do not load.
Calendar: Problem loading widget
Clock: Problem loading widget
Days: Problem loading widget | The application TwLauncher(process com.sec.android.app.twlauncher) has stopped unexpectedly. Try again
Dual Clock: Problem loading widget
Program Monitor: Problem loading widget | The application TwLauncher(process com.sec.android.app.twlauncher) has stopped unexpectedly. Try again
It would seem all of the Android Widgets work fine.
This is what I have observed so far from restoring from the native "package_us2.3.5.tar.md5". I think this firmware file may be corrupt.
I am going to try and install the clockpackage files that were just posted and I'll let you know if it fixes anything.
---------- Post added at 11:26 PM ---------- Previous post was at 11:18 PM ----------
Well as expected it DOES fix the issue with the clockpackage. The problems with the widgets still remain. At least we officially know that this version of "package_us2.3.5.tar.md5" is corrupt (or it could be a poorly modified version). I wonder if we should report this to the rest of the fourm that the so-called official firmware for the YP-G1 models is corrupted.

[q] uninstalled file manager -- need it back

While I was trying to clear the data of the file manager, I inadvertently uninstalled the file manager.
I am rooted on Virtuous Prime. I tried to use Titanium to extract the file manager from a nandroid backup; this did not work.
I do not have a titanium backup of the file manager.
Surprisingly, I like this stock file manager.
Is there a way I can get it back? A download?
Can I use adb to push the file manager to the device after extracting it from a ROM?
I don't know if this is the right one, but we can try it. It's the only one I could find.
I also have another file called filemanager2.odex
Im thinking that's just the data in my file manager....if you need that 2nd file, let me know
Added the file...had to change odex to zip to upload....just delete zip and change it back
robertg9 said:
I don't know if this is the right one, but we can try it. It's the only one I could find.
I also have another file called filemanager2.odex
Im thinking that's just the data in my file manager....if you need that 2nd file, let me know
Click to expand...
Click to collapse
If you are on a stock ASUS firmware, most of your system APKs will be odexed. You need both the APK and the odex file for the app to run.
A lot of custom ROMs have deodexed files for several reasons. Some people swear that deodexed ROMs are faster, some swear the opposite. Modifying deodexed ROMs is theorectically slightly easier also as you only need to deal with one file rather than 2.
This is a rather simple, nonsensical explanation of the situation, and I'm sure other folks will chip in with more accurate definitions, however, getting back to the point, YOU WILL NEED THE ODEX FILE ALSO IF ON STOCK.

[Q] Samsung AllShare

Hey there, if I'm retarded and don't know how to search properly, flame away, but I found nothing. I really like having the allshare feature to stream to my Samsung TVs and Bluray players, but all the non-original roms have removed the allshare application. Does anyone have some insight for me?
flatlandju said:
Hey there, if I'm retarded and don't know how to search properly, flame away, but I found nothing. I really like having the allshare feature to stream to my Samsung TVs and Bluray players, but all the non-original roms have removed the allshare application. Does anyone have some insight for me?
Click to expand...
Click to collapse
Custom roms remove lots of stuff,no worries because you can always download a rom that you know has what you need and extract stuff.I'm pretty sure you are looking for this Dlna.apk for allshare.I extracted it out of the newest n7000 note stock dodexed-rooted rom.You will have to put it in system/app file and set correct permissions.There is a lot of info on how to do this in the forums if you don't know how.
technut said:
Custom roms remove lots of stuff,no worries because you can always download a rom that you know has what you need and extract stuff.I'm pretty sure you are looking for this Dlna.apk for allshare.I extracted it out of the newest n7000 note stock dodexed-rooted rom.You will have to put it in system/app file and set correct permissions.There is a lot of info on how to do this in the forums if you don't know how.
Click to expand...
Click to collapse
It still doesn't seem to want to let me install it no matter what I do or where I place the APK. I must be missing something.
Are you using tw rom or aosp rom. the stock dlna is for tw only. there are other apps that work like twonky.
flatlandju said:
It still doesn't seem to want to let me install it no matter what I do or where I place the APK. I must be missing something.
Click to expand...
Click to collapse
To install .apk's you need a file manager like esf file explorer and set the permissions in the settings of the app to:root explorer/up to root/mount file system as writable(this is how you are allowed to change permissions of .apk's) then it's a matter of moving the .apk file into the system/app folder and changing the properties of the .apk to rw-r--r--(see attached).That .apk might rely on .lib files or other files to run,I'm not sure,I looked for any lib files that looked like they might of belonged with that .apk but I couldn't find any.Anything really beyond this I am not advanced enough to help out getting it to run on your rom but many here are though.If you are on an ICS rom it will run on it though if you get the correct files and permissions.Good luck.
technut said:
To install .apk's you need a file manager like esf file explorer and set the permissions in the settings of the app to:root explorer/up to root/mount file system as writable(this is how you are allowed to change permissions of .apk's) then it's a matter of moving the .apk file into the system/app folder and changing the properties of the .apk to rw-r--r--(see attached).That .apk might rely on .lib files or other files to run,I'm not sure,I looked for any lib files that looked like they might of belonged with that .apk but I couldn't find any.Anything really beyond this I am not advanced enough to help out getting it to run on your rom but many here are though.If you are on an ICS rom it will run on it though if you get the correct files and permissions.Good luck.
Click to expand...
Click to collapse
Thank you all so much for the replies, I never knew how well one would be treated on here! I still haven't gotten it to work, probably due to being on the new PA cm10 release, but you guys are great regardless

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

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