[Q] Moving apps to system/apps/ - GT540 Optimus Android Development

Just a fairly basic question, if I move a third party app like a keyboard from /data/apps/ to /system/apps/ and hard reset, will those Apps be protected from the reset and still installed when I boot up again?

Related

Dev question's

Hiya,
I've been tinkering to make my own ROM (not completed yet)
I've been struggeling with apk optimalisation.
http://forum.xda-developers.com/showthread.php?t=560271
I followed the guide and thought I test it out om my fav ROM CyanogenMOD 4.0.4
Ok so it reduced the size, resigned it without any problems.
I flash the rom and it doesn't go any further then the android loading screen. I should be seeing the setupwizard.
Are there certain apk's that you musn't optimize ??
-----------------------
Second question.
I'd like to add apps and remove apps. how do I do this ??
- Can I just put them in the /system/app directory ?
- Or in the /data/app directory ?
As you noticed I'm abit of a newbie.
thanks for any help
For adding and removing cooked in apps
-Don't remove anything from /system/app even if you don't want it, because whatever app it is probably part of the framework...
-You can add third party apps to /system/apps like twidroid, but neither the market or aTrackDog will show update.
-You can add third party apps to /data/app but you will take a look in the update script to make sure they will be flashed.
thnQ for answering.
Is there also a way I can remove apps from a ROM completely?
I tried to remove amazon mp3 cause i never use it but after I sign it again it won't go beyond the loading screen. it turns black then
I'm having problems adding apps to a them or rom for some reason it installs fine but when it is at the loading screen it stops and turn black.
I added apps to /system/apps on a theme and on a ROM without any luck.
Some help is appriciated.
if you dont have the haykuro spl....you have to make sure everything will fit on the ~44mb system partition

What APK's are secure to remove.

Let's make a list of which apk's we can remove without the phone giving forcing close issues....
Code:
AnalogueAlarmWidget.apk
AnalogueClockWidget.apk
AppAdvisor_v1.5.78_production_signed_aligned.apk
CarHome.apk
com_lge_christmassnowcity.apk
com_lge_lgfirework2.apk
cyon.apk
DigitalAlarmWidget.apk
DigitalClockWidget.apk
EmailWidget.apk
F-Secure_Mobile_Security_Android22.apk
LGEmail.apk
LGLauncher.apk
MessageWidget.apk
PreloadedApp.apk
SNS.apk
Stk.apk
WorldClockWidget.apk
"App Advisor" and "Preloaded Apps 1.0" are fine to freez on uninstall from Titanium. no problems.
gensplejs said:
"App Advisor" and "Preloaded Apps 1.0" are fine to freez on uninstall from Titanium. no problems.
Click to expand...
Click to collapse
Added to the list. More welcome.
What is cyon.apk?
And why is it "safe" to fremover the og launcher? At least you should put your launcher of choice in system/app first....
Sent from my LG-P990 using XDA Premium App
What if you just remove the above apps without backup of them.
Do you brick the phone if hard reset is done ?
Sent from my LG-P990 using Tapatalk
dk_iceman said:
What if you just remove the above apps without backup of them.
Do you brick the phone if hard reset is done ?
Sent from my LG-P990 using Tapatalk
Click to expand...
Click to collapse
I believe if your HR it the apps will be back.
Cause there located in the ROM.
xmoo said:
I believe if your HR it the apps will be back.
Cause there located in the ROM.
Click to expand...
Click to collapse
Okay so when we remove the apk program files we don°t actually remove the programs from the Rom ??
Sent from my LG-P990 using Tapatalk
dk_iceman said:
What if you just remove the above apps without backup of them.
Do you brick the phone if hard reset is done ?
Sent from my LG-P990 using Tapatalk
Click to expand...
Click to collapse
Nothing will happen, you just will miss apps.
When you hard reset your phone it wiil just delete user data and cache partition.
Any changes to system folder means you make changes to rom and cannot be undone without reflashing or restore backup.
Be careful with deleting of apps! If something goes wrong and the phone is not booting we don't have any global rom and flashing tool for now.
dk_iceman said:
What if you just remove the above apps without backup of them.
Do you brick the phone if hard reset is done ?
Sent from my LG-P990 using Tapatalk
Click to expand...
Click to collapse
Just freez them with Titanium backup if you want the free mem.... space wise deleting them is not really nessecary.... or pull them out with adb first.
Some Insight
Let's work top down guys, no panic, no alarm.
There are "system apps" and there are "system apps"
Most people refer to any app that's installed on the system partition as a "system app" but the real definition of a "system app" is one that is signed with a root or platform key. This key allows the app to interact with the OS at the lowest level, manipulating resources and other apps.​
It's safe to remove either
You can remove either types of these apps but some may be dependencies for other apps and removing these can cause Force Closes.​
A Factory Reset does not touch the system partition
As stated above, any modifications you make to the system partition (/system/*) will withstand a Factory Reset. This is why root still works after a Factory Reset.​
Safe-to-remove apps
I personally provided the list above and can confirm that these apps are safe to remove but you need to be aware:
Some apps are required (like a Launcher), if you remove it, make sure you have an alternative installed.
Some apps are not available on the Market, you may not be able to substitute them.
Make a backup before you delete any apps!
Note: For critical apps, like a Launcher you *must* have one on your system partition! Do *not* remove your only Launcher from the system partition!​
Additional Apps
A lot more can be safely removed from the system partition but they do not consume real-time resources and therefore there is no substantial benefit in removing them. I will post a full schedule of these apps later if somebody doesn't beat me to it.​
Enjoy.
More safe to remove: All widgets (loads of them), livewallpaper, protips, maps, lg memo
instead of making backup of the APK files with ADB... can't i just use root explorer to copy the APK files to a folder on my internal sd or computer ??
dk_iceman said:
instead of making backup of the APK files with ADB... can't i just use root explorer to copy the APK files to a folder on my internal sd or computer ??
Click to expand...
Click to collapse
Yes, you can. But I would recommend backing up to pc for redundancy.
djmcnz said:
Let's work top down guys, no panic, no alarm.
Enjoy.
Click to expand...
Click to collapse
Errug bedankt ! Nice overview.
Since space isn't an issue just freezing them with Titanium Backup should free up the memory as well right?
I'll be waiting for a conclusive list of "freezable" apps. ( And patiently await a custom booloader so we can get some really good custom roms.)
@Xmoo
Haven't see inside the ROM but I assume googlefeedback.apk is in there.
Wouldn't hurt killing that to.
I wish I've red this thread before tinkering around witgh my phone. Seem to have kinda bricked it after owning it for 3 days.
I was playing around with it trying to get rid of the facebook, twitter & myspace for LG apps but I couldn't figure out what they were called in the Titanium Backup Pro list så i backed up LG Home (or was it just called LG) and naively thought the worst thing that could happen was that I would have to do a hard factory reset if anyting went wrong.
But as the android n00b that I am (first android phone) I should have known that LG Home is the launcher! So know I have a phone I can check emails on but if I go past the startup guide it crasches and im stuck at the startup LG logo until I do another hard factoryreset.
Anyone know if the default image/ROM is soon to be released or should I take a shot and send my phone in for repair hoping that they never pick up on what I did?
Sorry of this is offtopic.
There are a couple of threads with similar problems, so search a bit and you should find a way to fix it
Sent from my Hero using XDA App
Have someone send you the lg home apk via email and install, or perhaps another launcher if you want. You'll get the "Install ?" question when you open the mail.. do so and you have a launcher again.
Gambit2K said:
I wish I've red this thread before tinkering around witgh my phone. Seem to have kinda bricked it after owning it for 3 days.
I was playing around with it trying to get rid of the facebook, twitter & myspace for LG apps but I couldn't figure out what they were called in the Titanium Backup Pro list så i backed up LG Home (or was it just called LG) and naively thought the worst thing that could happen was that I would have to do a hard factory reset if anyting went wrong.
But as the android n00b that I am (first android phone) I should have known that LG Home is the launcher! So know I have a phone I can check emails on but if I go past the startup guide it crasches and im stuck at the startup LG logo until I do another hard factoryreset.
Anyone know if the default image/ROM is soon to be released or should I take a shot and send my phone in for repair hoping that they never pick up on what I did?
Sorry of this is offtopic.
Click to expand...
Click to collapse
Check this thread out:
http://forum.xda-developers.com/showthread.php?t=992945
When I check out my Active Services I can see the following programs: Whatsapp services (2), Twitter (1), Sim-toolkit (1), Google Services Framework (2), Media (without anything beneath it), Music (2), com.lge.omadmclient (1), Bluetooth Share (2) weird cause bluetooth is OFF! , Wheather & clock update (1), On-Screen phone (1), DRM Service (1), Maps (1), LG PC Suite ObexManager (1), and the Gingerbread Keyboard (1).
Big list in comparison to my G1 and I guess there can be SOME things deleted. Altough I don't know which ones. A guess:
1. Media (what does this do?)
2. Music (I disabled the music bar, and don't want that service running all the time!)
3. com.lge.omadmclient (what's this?)
4. Bluetooth Share... weird thing because I have my bluetooth OFF all the time... how to get rid of these?
5. Wheather & clock updater. I don't use that widget so...?
6. On-Screen phone, what does it do?
7. DRM Service
8. LG PC Suite ObexManager?
Can somebody please tell me if I can get rid of (some) of these services, and if so, which programs to freeze Thanks!

Does clearing the data from one of the choicesthe Manage Applications-All delete it?

Does clearing the data using CLEAR DATA from one of the choices the Manage Applications then going to ALL delete the application?
Does it uninstall/delete the application completely? Or is it more like a clear browser cache type of clear?
If it does delete, is it possible for me to accidentally delete an essential android system file that I will not be able to recover? (I have no plans of modding or changing roms etc)
For example, the Camera app, if I press CLEAR DATA will it remove it permanently?
What if I accidentally delete something essential?
Thanks.

[Q] home button and "swipe from the top" has disappeared

Hi everyone,
My home button and the "swipe from the top" has disappeared since my last restart. I really have no idea what's happened and now I am using the apps called "Button Savior" to return the home screen.Maybe thid was because I have deleted some system files from system/data/data/com.android. providers.settings. I have restarted several times and it didn't work for my device.Now its really inconvenient to use the Kindle Fire HD. My current software version is 7.1.13. Could you guys help me to solve this problem? Thank you very much in advance.
maybe pull the rom in the development section and see if you can get the deleted files from it?
the only time my framework dissapeared was when i was trying to install the play store. i got it back by renaming a couple google framework apk's in the system folder and restarting...
Hi adiliyo,
How can I pull the Rom in the development section? As I have deleted many system files, I think I am in a much bigger trouble than yours.
adiliyo said:
maybe pull the rom in the development section and see if you can get the deleted files from it?
the only time my framework dissapeared was when i was trying to install the play store. i got it back by renaming a couple google framework apk's in the system folder and restarting...
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1886189
if you can't get the individual files, maybe reflashing that rom will fix your problems
This happened to me, and some other folks. Look for a thread asking about how to view/run settings.
Anyway, some fixes mentioned were to turn off notifications for Gmail - hard to do if you can't get to settings, though.
What worked for me was to try and side-load an application - copy an APK file to the 'downloads' folder on your KFHD via a connected computer using the windows file explorer, or ADB - and then install the APK. In my case by clicking on it using a file manager. The KFHD told me that I would have to enable foreign application installs to finish the install of the side-loaded APK, and took me to that portion of settings that dealt with that. In that section was the 'Reset to Factory Defaults' button.
I pressed the reset button, and got everything back. Earlier applications (google play store) that I hadn't un-installed in an attempt to fix the problem were still there. Super User was intact. I downloaded & installed everything again, and all is working as it should be.
Until Amazon comes clean with this walking ad-server, details on how to modify it without introducing issues are going to be sketchy . It's just our lot in life, if you'll pardon. I appreciate having super user access, and all the Google apps I love to use, but what's really required is the ability to modify the boot loader. Until that's available, it's going to be try until it fails, and then scramble to recover.
Nice HW, but limited by Amazon's vision of the customers.
Pat
adiliyo said:
http://forum.xda-developers.com/showthread.php?t=1886189
if you can't get the individual files, maybe reflashing that rom will fix your problems
Click to expand...
Click to collapse
After I installed GO Laucher EX, I was able to access the settings. Download the software from amazon and put it into the file named" kindleupdates". there's nothing change after I updated my kindle. Now the software version's 7.1.15. the home button and return button are still missing.the werid thing is my kindle is still rooted!!! Now I really have no idea...
PMcHargue said:
This happened to me, and some other folks. Look for a thread asking about how to view/run settings.
Anyway, some fixes mentioned were to turn off notifications for Gmail - hard to do if you can't get to settings, though.
What worked for me was to try and side-load an application - copy an APK file to the 'downloads' folder on your KFHD via a connected computer using the windows file explorer, or ADB - and then install the APK. In my case by clicking on it using a file manager. The KFHD told me that I would have to enable foreign application installs to finish the install of the side-loaded APK, and took me to that portion of settings that dealt with that. In that section was the 'Reset to Factory Defaults' button.
I pressed the reset button, and got everything back. Earlier applications (google play store) that I hadn't un-installed in an attempt to fix the problem were still there. Super User was intact. I downloaded & installed everything again, and all is working as it should be.
Until Amazon comes clean with this walking ad-server, details on how to modify it without introducing issues are going to be sketchy . It's just our lot in life, if you'll pardon. I appreciate having super user access, and all the Google apps I love to use, but what's really required is the ability to modify the boot loader. Until that's available, it's going to be try until it fails, and then scramble to recover.
Nice HW, but limited by Amazon's vision of the customers.
Pat
Click to expand...
Click to collapse
It works!!!! all the missing parts have come back. the Go launcher EX has saved in Cloud.
solution
download an app called my android, open the app go to my apps and find the settings app then go to device and then go to factory reset. its the only way I found to access settings when drop down didn't work. after resetting to factory my buttons all came back after doing the tooltip for startup
What worked for me on my AF tablet was to uninstall all 4 Google APK files, then uninstall the Launcher Hijack. The tablet swipe down and home button both came back for me. I then re-installed the Google APKs, but didn't re-install Launcher Hijack. Tablet works fine, functions are normal, just have to put up with seeing the default Amazon screen first before tapping the Nova Launcher icon to get to my custom screen, a minor inconvenience, and I didn't have to do a factory reset.

Is deleting only APK file is enough to remove it completely from the system?

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.

Categories

Resources