How to Integrate apps into system on 4.4? They keep FC'sing - Xperia Z1 Q&A, Help & Troubleshooting

I want to save some space on the internal storage, and since tha system partition is enormous, on 4.3 I integrate the updates into system/app. For example If Facebook gets an update I delete "facebook-xhdpi.apk" and I just move the new facebook from data/app to system/app and voila! Even after a factory reset I have no problems...
But on Kit Kat this is almost impossible. Even after signing the apks, renaming them like the old ones and giving the correct permissions via root explorer they force close. Even Google+ gives a "reinstall-loop" as I call it :crying:
What can I do? Fixing permissions by TWRP doesn't work either.

Open the APK using 7zip, extract the libraries there(the files inside the lib folder), place the extracted libraries inside /system/lib/, delete the libs folder inside the apk, move the apk to /system/app/ or /system/priv-app/ depending what type it is.
Just a warning though... Be careful with replacing already existing libraries in /system/lib/ sometimes they break stuff so if that happens just don't replace them.

Doesn't titanium offer this kind of switch? Have never done it but if it's automated then it's worth a look.

It does... But once you wipe data of the app you moved to system it force closes again. Thing is... System apps doesn't extract libraries in /data/data/ folder hence they force close.

Riyal said:
It does... But once you wipe data of the app you moved to system it force closes again. Thing is... System apps doesn't extract libraries in /data/data/ folder hence they force close.
Click to expand...
Click to collapse
Would it be possible to change the path via titanium or even shift the files via a file explorer? Again haven't done it myself before either.
Also could the apps be added to the ROM you're installing prior to the initial flash?
Sent from my C6903 using XDA Premium 4 mobile app

Related

Need help installing apps from zip file

When I look in my sdcard, some of the apps that I've backed up end up as zip files. According to search, I should be able to just rename it from .zip to .apk
I did that, and tried to install, but it keeps giving me a warning that says this app cannot be installed on the phone.
Why? and how can I fix this so I can install these apps back?
Thanks
maybe because changing extension names on files makes them unstable. look in app private. im sure the zips came from the apps folder it happens like i said look in appsprivate folder

[Q][I9000] Internal SD

Guys, I have a question:
I try to copy bootanimation.zip to /system/media folder using root explorer but failed due to not enough memory. And I saw on the top 274.64MB used, 1.48MB free. After look through all the folders, I noticed different folder has it own memory size available. Just wanna to know, beside deleting existing files in /system/media, any chance to increase the memory size of the /system/media by "transferring" from under utilized folder? Thanks
i have the same problem before having no space in system rom... just root ur phone.. delete some .apk file you do not use in the system/app but be careful what you are deleting.. just delete some files like
dual clock
aldiko
swype (if u do not use this keyboard)
talk
press reader
those are the files that i deleted and i got 24.7mb free
crushvic said:
i have the same problem before having no space in system rom... just root ur phone.. delete some .apk file you do not use in the system/app but be careful what you are deleting.. just delete some files like
dual clock
aldiko
swype (if u do not use this keyboard)
talk
press reader
those are the files that i deleted and i got 24.7mb free
Click to expand...
Click to collapse
crushvic, what is the different between /system/app and /data/app folders in internal SD. I found both contains apps. Thank you very much.
michaelnct said:
crushvic, what is the different between /system/app and /data/app folders in internal SD. I found both contains apps. Thank you very much.
Click to expand...
Click to collapse
System apps are applications installed with the system. You cannot delete or modify them if you don't have root.
These are often sensitive applications (like phone.apk, or XXXlauncher.apk : don't touch these apk !) but sometimes there are some useless applications that you can delete as crushvic told you.
Data apps are applications that can be supressed easily (even without root) and that come installed more oftenly with android market. These are "user applications".
flolep said:
System apps are applications installed with the system. You cannot delete or modify them if you don't have root.
These are often sensitive applications (like phone.apk, or XXXlauncher.apk : don't touch these apk !) but sometimes there are some useless applications that you can delete as crushvic told you.
Data apps are applications that can be supressed easily (even without root) and that come installed more oftenly with android market. These are "user applications".
Click to expand...
Click to collapse
I see..... in order for me to earn back some space in /system/ folder..... I have to "kill" those useless app as mentioned above..... Thanks for the useful info, your guys are helpful....

Help - Deleted Apps

Okay, I rooted and deleted apps before there was a recovery. Now I want to put the apps back on before recovery and backup. I'd like to have these apps on my phone should I need to return the phone. Problem is, I deleted "Guided Tours" and "News" and I have no idea where to find these apps. Everything else is on my phone. Any suggestions?
Go use the sbf or what ever its called now. Flash Your phone then reroot then do what You need to do.
Sent from my DROID BIONIC using Tapatalk
knitpurlgurl said:
Okay, I rooted and deleted apps before there was a recovery. Now I want to put the apps back on before recovery and backup. I'd like to have these apps on my phone should I need to return the phone. Problem is, I deleted "Guided Tours" and "News" and I have no idea where to find these apps. Everything else is on my phone. Any suggestions?
Click to expand...
Click to collapse
Here are the files you wanted. They are in zip format and have the corresponding .odex files. Place these in your /system/app folder and be sure to to change the permissions to rw-r-r-- on each file.
knitpurlgurl said:
Okay, I rooted and deleted apps before there was a recovery. Now I want to put the apps back on before recovery and backup. I'd like to have these apps on my phone should I need to return the phone. Problem is, I deleted "Guided Tours" and "News" and I have no idea where to find these apps. Everything else is on my phone. Any suggestions?
Click to expand...
Click to collapse
Just run the FXZ(Formerly SBF) if you want to install an OTA, if/when one comes out. No need to get your apps back just to make a stock backup. The FXZ gets you back to stock.
Terri M said:
Here are the files you wanted. They are in zip format and have the corresponding .odex files. Place these in your /system/app folder and be sure to to change the permissions to rw-r-r-- on each file.
Click to expand...
Click to collapse
I have both zip files in /system/app - do I extract these here and install? When I clicked on permissions - I changed it to - Owner: write, Group: read, Others: read. Is that correct?
Right now what I see in my /system/app is GuidedTours.apk and NewsWidget.apk. I don't see any ODEX files
knitpurlgurl said:
I have both zip files in /system/app - do I extract these here and install? When I clicked on permissions - I changed it to - Owner: write, Group: read, Others: read. Is that correct?
Right now what I see in my /system/app is GuidedTours.apk and NewsWidget.apk. I don't see any ODEX files
Click to expand...
Click to collapse
Unzip this to /system/app then change permissions.
XDA doesn't allow .odex files to be upload - says unknown file type.
This might come in handy for you. It's my /system/app dump all apks and.odex files from stock bionic.
http://dl.dropbox.com/u/16326094/bionic apks.rar

I think I screwed up..

I have canned a lot of apk's recently.
Now I notice when my wifi scans it won't show any networks/SSID's. But if I manually enter one, it will connect.
Any ideas? It may not be related to the apk's I don't know
An apk file is an installation file - it installs an app. Once the app is installed you can delete the apk. So I doubt one has anything to do with the other.
Rukbat said:
An apk file is an installation file - it installs an app. Once the app is installed you can delete the apk. So I doubt one has anything to do with the other.
Click to expand...
Click to collapse
Isn't the apk and the program one in the same? If you remove an apk from browsing with root explorer it will remove the program off your phone.
Sent from my SM-N9005 using Tapatalk
wdkingery said:
I have canned a lot of apk's recently.
Now I notice when my wifi scans it won't show any networks/SSID's. But if I manually enter one, it will connect.
Any ideas? It may not be related to the apk's I don't know
Click to expand...
Click to collapse
run a factory reset. simple as that.
pham818 said:
run a factory reset. simple as that.
Click to expand...
Click to collapse
When you delete a system apk it deletes it from recovery as well.
Sent from my SAMSUNG-SGH-I467 using Tapatalk
Agent said:
When you delete a system apk it deletes it from recovery as well.
Sent from my SAMSUNG-SGH-I467 using Tapatalk
Click to expand...
Click to collapse
I know. I know in the long run I may be boned, as I have no hard reset basically. I would how it will end..
wdkingery said:
I have canned a lot of apk's recently.
Now I notice when my wifi scans it won't show any networks/SSID's. But if I manually enter one, it will connect.
Any ideas? It may not be related to the apk's I don't know
Click to expand...
Click to collapse
Download UrDroid from the development section. Open the zip and goto /system/app and copy them to your SDcard into a folder (so you don't clutter the root of your storage)
Reboot into safe strap
Click on mount
Select /system
Back out
Goto advanced
Select file manager
navigate to the folder on your SDCard
Copy them into your /system/app folder
When your done fix permissions and reboot
If your nice, pm me and I will make you a flashable zip
http://i1202.photobucket.com/albums... Banners/RErick-GalaxyNote3v7_zps7048a771.png
Is there a way to accomplish this without safestrap? That's the only step of your process I don't have
wdkingery said:
Is there a way to accomplish this without safestrap? That's the only step of your process I don't have
Click to expand...
Click to collapse
Not for it to be right. But safe strap is uninstallable.
if you're already rooted then you can run safestrap
http://i1202.photobucket.com/albums... Banners/RErick-GalaxyNote3v7_zps7048a771.png
Agent said:
Isn't the apk and the program one in the same? If you remove an apk from browsing with root explorer it will remove the program off your phone.
Click to expand...
Click to collapse
If that were the case, I'd have very few apps on my phone. I always delete the apk file (as soon as I back it up to my normal backup locations, which are on devices other than the phone).
An apk is actually a zip file with a different extension. (Rename it .zip and open it in Winzip - you'll see.) It's an installer. Once the app has been installed you no longer need the installer.
If you've deleted apk files and had your apps disappear, you're doing something in addition to removing the apk files. (I normally put apk files on the root of my external SD card, so I don't need a rooted program to delete them.)
wdkingery said:
Is there a way to accomplish this without safestrap? That's the only step of your process I don't have
Click to expand...
Click to collapse
I've added/deleted/modified files in /system/app with just root file explorer, back before safestrap existed for the N3 - you do not need safestrap to fiddle with /system/app - you can do it with root file explorer (remember to set the permissions correctly - 644 iirc).

Need Conservations.apk and odex

Hello everyone!
Recently I rooted my phone and begun to tweak it. So I decided to integrate all updated system app to system partition . After that the camera wasnt working so I restored a nandroid backup. Everything was good until I tried to open the SMS app. It crashed imidiately. I wiped its data, cache and dalvik but it didn't work. Then using root explorer I navigated to priv - apps and see if was anything wrong with the permisions. Everything was ok so i decided to delete the odex File and reboot. But after the reboot the SMS app was missing although the APK was still there. I am on stock kitkat locked bootloader. Any help please?
Delete .odex files without deodex? You need to deodex first, also some apps need libs... You need to extract it from apk and copy to "system/lib"
DorianX said:
Delete .odex files without deodex? You need to deodex first, also some apps need libs... You need to extract it from apk and copy to "system/lib"
Click to expand...
Click to collapse
So what to do now?
Cmon guys.... Can anyone upload those two files for stock kitkat please?
I'm on lollipop so I can't pull it and send it to you...

Categories

Resources