Related
Okay. I don't have a lot of knowledge on developing/tinkering on Android, but I think I've figured out how to integrate apps into the ROM (updates of system apps and/or downloaded apps). I used:
A stock cricKet 2.2.1 ROM, rooted (of course) w/Universal Androot
Root Explorer, and
ROM Manager (more on this later)
First thing is first, I did a TI backup; don't want to lose anything
I then opened Root Explorer
Mounted R/W, and
did a search for .apk.
Notice that the only directories the actual .apk files for INSTALLED apps should appear in (outside the SD card) are:
/cache
/data/app
/data/app-private (possibly)
/data/FLEX/app
/system/app
Ignore the following:
/cache
/data/FLEX/app
Now, you may already know this, but the system apps you're looking for are located in the /system/app directory, and downloaded apps (for the updated system apps) are located the /data/app directories that aren't being currently ignored (if you're following my instructions). Based on icon, filename, and common sense, I found which .apk files were the updates of already existing system apps (IE Market, Google Maps, Voice Search, etc.) in the /data/app directory, and the corresponding system app they updated in the /system/app directory. I then:
Copied the filename of the system app I was going to replace (rename copy all)
Moved over to the /data/app directory
Located the corresponding updated app
Renamed it what its corresponding system app was renamed (rename, delete existing name, paste)
Hit the 'move' option
Navigated to the /system/app directory
Deleted original system app (you may want to backup this file beforehand)
Pasted the updated system app
Within 30 seconds or so, you should get a (blah.blah.blah has unexpectedly shut down force close/report) popup. Just hit force close and you should be fine (Google Maps seemed to be a recurring FC). If you try to open the app before rebooting, it will force close on you. When you're finished, open ROM Manager. I know you're thinking 'This app is no good on the ZIO'; so stop. Hit 'Fix Permissions'. The reason for this is that it fixes a few rare force close issues. I don't know the mechanics of it, but it works, so I don't question it. Listen to the notification you'll see and reboot your phone after it finishes fixing the permissions. Now go into settings and manage applications, and you'll see that you can no longer uninstall whatever apps you moved to the /system/app directory.
FYI Renaming .apk files doesn't seem to make a bit of difference either way.
(Forgive my horrible perspective descriptions: I/you)
I haven't tested it yet, but I believe unrooting the device should make any apps moved to the /system/app directory that require root access would become non-functional (right?). The reason this thread is a question is that I'm wondering if i did this correctly, and if so, I want to find out if unrooting and factory resetting my phone would somehow delete the apps in the /system/app directory that weren't included in the stock ROM. (I'm not really willing to do that yet; I still have to download the SDK to my new computer so I can do a NANDROID backup.) Any help answering these from a more experienced developer would be great.
If you want to incorporate apps into a rom, the apps have to be free or you must get consent from the developer to include in your rom
Sent from my Zio using XDA Premium App
Only if it is a Public rom. Even free app developers should be credited in a public rom
Mattix724 said:
If you want to incorporate apps into a rom, the apps have to be free or you must get consent from the developer to include in your rom
Sent from my Zio using XDA Premium App
Click to expand...
Click to collapse
I'm operating under the assumption that you're using Google developed updates of system apps. I suppose I should have said something to that extent up top.
[UPDATE]
Okay, so I did a NAND and then factory reset my phone. Killed everything not in the /system/app directory. I'm sure you knew that would happen, but I guess I'm posting for the noobs. Easier to find, I guess.
Hi,
I've tried to integrate some apps using Titanium Backup but it stuch at 0% for more than 5mins so I cancelled the process. Is it normal that it was that slow? Does Titanium generate odex files too?
I've tried integrating updates for GoogleMaps, StreetView and Youtube using a recovery mode and ADB on my linux machine.
After the backup system data I've deleted original apk and odex files from /system/app/ and moved newer versions from /data/app/ to /system/app/.
I renamed the files from com.google.android.blah.blah.apk to old names (ie. Maps.apk, etc). I haven't generated the odex files.
Rebooted the phone (HTC Desire, 2.2, Orange UK) and these apps were not available. I couldn't run either GoogleMaps or Youtube. They weren't on the "All apps" list, but still were in the system app manager/uninstaller, but couldn't uninstall them as they were in system obviously.
Tried to clear Dalvik cache but no difference.
Then I've copied them with my user backed apk files (it went to /data/app and installed the newest versions) and all is fine - could launch them as usual.
Now using "adb push" method I copied my old system versions of these apps in the /system/app/ and all if fine. I could updated them to newer versions, but this obviously went to /data/app/, so didn't free the phone memory.
Any idea why integrated apps were not visible in the system?
Perhaps I shall just delete the old system apps and copy the ones from /data/app/ without renaming...
Much appreciate it.
Greg
edit:
All went fine now. Just deleted old files in the /system/app and moved newer version without renaming to from /data/app
use titanium backup and choose integrate updates into rom for the app
I don't want to pay for TB premium. I'm poor.
Sent from my Zio using XDA App
TB integrating not working on some phone (including mine) anyway.
Okay. So the weirdest, yet most annoyingness (them fake words, though) thing keeps happening. It's a pet peeve of mines to not have all my apps up to date. LoL!! So these 2 apps keep giving me the Insufficient Storage Available error.
It started off with PPSSPP ( https://play.google.com/store/apps/details?id=org.ppsspp.ppsspp ).
I can't update to the newest update. I have the previous one. I once ran Google Edition and it updated fine. I meant to make a backup and just restore it to be up to date. Grr!!
Then all of a sudden it started happening to The Hardest Game Ever 2 ( https://play.google.com/store/apps/details?id=org.orangenose.games ).
It's weird. I want them to update. LoL!! Yes, I have enough space. I mean all my other apps update.
I've wiped Dalvik Cache and Cache. I read over something once about deleting system logs? When these apps finishing updating I try wiping Market Data. Or maybe just wiping the Market cache. I don't feel. Maybe data. It wouldn't hurt anything.
And it's so weird. On my GS2, restarting usually fixed it, or the problem usually fixed itself. Hmm...
Anyone else ever run into this? What did you do to solve it or did it fix itself? This has been an ongoing problem. I know sometime before the GE phones came out. LoL!!
And as I type this a 3rd app has been added. Into The Dead. ( https://play.google.com/store/apps/details?id=com.sidheinteractive.sif.DR ).
I can't have that. That's my game. LoL!!
To not make OP too long, here's some things I've done so far...
Deleted PlayStore Cache and Data...
Checked to see if ROM Toolbox Pro had Apps2SD set to Auto (and it as already on Auto)...
Wiped Cache and Dalvik Cache in recovery...
Deleted the app and tried to reinstall (Had to recover the app. LoL!!)...
Made SURE I had enough space. (I took a 6GB backup off my phone. I KNOW I have at least 6GB off the bat)
It's a slow growing list of apps. Hmm...
The only thing left is to backup apps and reinstall the ROM, since it works on other ROMs. *sigh* That'll take forever. =.S
SOVLED
I have it fixed. Here's what I did. You NEED root to fix since you have to go to a system folder. I think you can do this without root if you use ADB commands. I don't know remember if the computer version of ADB can navigate to these folders. Anyways...
"Follow this and let me know if it works for you.
First step is go into a file explorer with root access. Second in the root directory click on data, once in the data folder click on app-lib folder. Last step is scroll down to the data folder for the app you are trying to update or install and delete it. Thrn go into the market and try to install"
http://www.techfreestyle.com/io
1st comment on the page.
Steps:
1) You will need root. Go into a file explorer and go to the root folder. (I used Root Explorer)
2) Open the directory named "data".
3) Open the directory named "app-lib"
4) Find ALL the folders of the app you're trying to update or install and delete them.
5) Reinstall or update the app and it should work
I don't know if this will delete the data of the app. I've already deleted the data manually from those apps, so I don't know. Do with caution.
also its just solve the app that u can't install , so its not solving the problem permanently.
Jwtiyar said:
also its just solve the app that u can't install , so its not solving the problem permanently.
Click to expand...
Click to collapse
You're right. It happened again. But this time these apps had data. The method I mentioned didn't delete the app data. So that's good.
But this means it can happen again. Its a bit tedious deleting them files. I wonder what's causing it. Hmm... Maybe these lib files are suppose to delete on their own, but they don't. =./
IDK...
Sent from my HTC One using xda app-developers app
Hi there.
I would be very grateful if someone will help me solve my problem.
Well, after moving .apk to system/app (This time it was Google Wallet, but earlier I had the same with other apps) and data/app (tried both), it doesn't appear in the app drawer. What is more, It's not seen by Titanum Backup, nor the adb sees it as the installed package (adb shell, pm list packages) - no app on the list).
As I said, it works with every app - nothing appears after moving .apk to system directory manually.
Okay, wiping Dalvik-Cache and fixing the permissions may solve the problem, but I am afraid it may enable THIS screen appear on EVERY reboot (correct me if I am wrong).
Do you know any other solution? Or wiping dalvik-cache and fixing the permissions from recovery is the only proper one?
P.S. Can wiping dalvik-cache and fixing the permissions cause some problems, like it will delete the records in games or will have to configure the settings again?
use es File Explorer as you need to set the permissions, es automatically sets them correctly
Sent from my 4.3 Xperia S via Tapatalk
Well, what I forgot to add, I of course set the permissions (644 as all system apps)... Is in that case only solution wiping dalvik-cache?
Will wiping dalvik cache delete my games records
'
DidierDrigbi said:
Well, what I forgot to add, I of course set the permissions (644 as all system apps)... Is in that case only solution wiping dalvik-cache?
Will wiping dalvik cache delete my games records
'
Click to expand...
Click to collapse
I would suggest to wipe dalvik and the regular cache.
Any game data won't be touched (those aren't cache files correct me if I'm wrong)
If the problem persists tell us what rom etc. you're on and maybe do a full reinstall with backing up data before.
Sent from my LG-P880
DidierDrigbi said:
Well, after moving .apk to system/app (This time it was Google Wallet, but earlier I had the same with other apps) and data/app (tried both), it doesn't appear in the app drawer. What is more, It's not seen by Titanum Backup, nor the adb sees it as the installed package (adb shell, pm list packages) - no app on the list).
Click to expand...
Click to collapse
Are you using an apk from the stock rom on another rom? I'm asking this because I wanted LG Weather on CM 10.1 and I put it in system/app, rebooted and it didn't appear anywhere. The thing is that the stock rom is not deodexed and CM is. I had to use a tool to deodex the app and then put it in place, fix permissions and reboot.
DidierDrigbi said:
Okay, wiping Dalvik-Cache and fixing the permissions may solve the problem, but I am afraid it may enable THIS screen appear on EVERY reboot (correct me if I am wrong).
Do you know any other solution? Or wiping dalvik-cache and fixing the permissions from recovery is the only proper one?
P.S. Can wiping dalvik-cache and fixing the permissions cause some problems, like it will delete the records in games or will have to configure the settings again?
Click to expand...
Click to collapse
You shouldn't need to wipe the dalvik cache, simply rebooting will appear that screen only for the apps that you manually put in system/app.
tyraek said:
Are you using an apk from the stock rom on another rom? I'm asking this because I wanted LG Weather on CM 10.1 and I put it in system/app, rebooted and it didn't appear anywhere. The thing is that the stock rom is not deodexed and CM is. I had to use a tool to deodex the app and then put it in place, fix permissions and reboot.
I'm on the Stock ROM. So I should odex this file to use it? Could you tell me which tool should I use?
Click to expand...
Click to collapse
Click to expand...
Click to collapse
1. you dont move the apk. you copy it in system/app.
2. the game data is in data not in cache.
3. you dont need to wipe dalvic. a new app installed just creates a new file in dalvic
kessaras said:
1. you dont move the apk. you copy it in system/app.
2. the game data is in data not in cache.
3. you dont need to wipe dalvic. a new app installed just creates a new file in dalvic
Click to expand...
Click to collapse
Yeah, I copy it in system/app. And nothing appears in the app drawer!
DidierDrigbi said:
Yeah, I copy it in system/app. And nothing appears in the app drawer!
Click to expand...
Click to collapse
then its some kind of permission problem. i cant help from here , since i cant see it sorry
kessaras said:
then its some kind of permission problem. i cant help from here , since i cant see it sorry
Click to expand...
Click to collapse
Well I fix thew permissions in file manager. I don't know how to make the apps install this way,
Even if you copy it to /system/app/ and set permissions, it won't be installed for sure. You'd better check logs to know what's happening.
Okay. So we all probably hate bloatware. Mainly I hate all the at&t apps that take up space and Facebook, which I don't use.
-=[YOU MUST BE ROOTED]=-
**I am not responsible if your device stops working, blows up, causes thermonuclear war, or simply becomes alive and takes you to unicorn land! Do at your own risk!**
So. You almost must have twrp recovery. I don't think you can do this on cwm, if cwm has a file root file manager, then you could probably figure out how to do it there..
1. Boot into recovery (twrp)
2. Go to 'advanced'
3. Go to 'file manager'
4. Navigate to /data/app
5. Delete all the .apk files you don't need like Facebook home and at&t stuff you might not want.
6. Either
a) mount system as writable using a script inside recovery, and go to /system/app and remove the same .apk files
or
b) use a root explorer, mount /system as writeable, and remove the same .apk files
I recommend using es file explorer while your phone is still on and writing down all the types of apps you want to delete before deleting them. There are like 3 Facebook apps with code names so you might delete the wrong one. So make sure you know what you are deleting.
Yes I have already done this on my phone...no problems...
Sent from my HTC first using xda app-developers app
EDIT
Do the same process as well not just in data/app but also in data/data and system/app if you want a permanent removal (otherwise during a factory reset the apps will just reinstall themselves)
There is this Facebook OOBE system app. Do you know what it does?
I'm using App Quarantine..
Only root, no S-Off or deleting anything needed to get rid of the system apps.
G00fY2 said:
I'm using App Quarantine..
Only root, no S-Off or deleting anything needed to get rid of the system apps.
Click to expand...
Click to collapse
or clean master...it has an option to do so as well
On OxygenOS Stock ROM (4.1.6) there are some apps came pre-installed that I don't use. For example Google Gmail, Hangout also OnePlus's own calculator/clock etc. I want to delete those apps and replace Gmail with Inbox. completely remove Hangout, OPCalculator and OPClock with Google's Calculator and Clock. I have deleted those apps before by manually deleting them from inside /System/App and /System/Priv-app
Now, I'm trying to write my 'own' TWRP flash-able updater script to do such action. But I am kind of confused if only deleting an APK's parent folder is enough to remove the apps completely? For example, if I only delete the folder System/App/(Deskclock) - is that enough or there will be related files remaining somewhere else?
* I know Titanium Backup or other debloat apps can perform similar task, but the main purpose of this question is to know how can this be done manually and properly without leaving un-necessary files in the system.
Thanks.
Deleting the folder of an app in /system/app will remove the app from your phone (as in, not showing up in launchers or the Installed Apps list). However, app data and updates may still be saved in the /data partition. To make sure all of it is removed, first clear data and uninstall all updates to the system apps you with to remove from the Installed Apps list (disable it), then delete the APK either through a root explorer, or a recovery script.
Anova's Origin said:
Deleting the folder of an app in /system/app will remove the app from your phone (as in, not showing up in launchers or the Installed Apps list). However, app data and updates may still be saved in the /data partition. To make sure all of it is removed, first clear data and uninstall all updates to the system apps you with to remove from the Installed Apps list (disable it), then delete the APK either through a root explorer, or a recovery script.
Click to expand...
Click to collapse
Thank you very much! Appreciate your replay.
Suggest to use OOS debloater via twrp
Babloo289 said:
Suggest to use OOS debloater via twrp
Click to expand...
Click to collapse
Are you talking about this one? https://forum.xda-developers.com/oneplus-3/themes/aroma-oos-debloater-t3615828
Hi, Just a quick question.. as you mentioned here
Anova's Origin said:
To make sure all of it is removed, first clear data and uninstall all updates to the system apps you with to remove from the Installed Apps list (disable it),
Click to expand...
Click to collapse
1. I wonder if this is even possible inside TWRP, I mean targeting those unwanted apps, uninstalling updates+ clearing app data/disable them.. Or you are suggesting me to remove them manually from the OOS interface/settings one by one?
2. Also while in TWRP, none of those app (that I will remove) are not functional so what's the points of clearing app data/uninstalling updates? why not simply delete /system/app/(app.apk) and /data/app/(related files.)
Thanks again.
tushxda said:
Hi, Just a quick question.. as you mentioned here
1. I wonder if this is even possible inside TWRP, I mean targeting those unwanted apps, uninstalling updates+ clearing app data/disable them.. Or you are suggesting me to remove them manually from the OOS interface/settings one by one?
2. Also while in TWRP, none of those app (that I will remove) are not functional so what's the points of clearing app data/uninstalling updates? why not simply delete /system/app/(app.apk) and /data/app/(related files.)
Thanks again.
Click to expand...
Click to collapse
1) If you know where the extra data/updates are stored in /data, then you could use a recovery script to delete them. It's kind of one-shot deal though, as unless you open the apps again (after re-flashing a ROM), they won't have any data saved to them the next time you want to delete them.
2) If they aren't functional, they likely won't have much app data to begin with. I would clear the app data from apps like Google Play Music or Movies (if you don't want to use them) before deleting them. Random Engineering Test Tools and unessential services won't have much data stored and can be deleted directly.
i think its just fine bt read other comments too for better understanding.