Protect app from וUninstall? - Android Software/Hacking General [Developers Only]

Hi, I'm using Cyanogen 5.0.8 on a N1 phone.
Is there any way to protect app (not a pre-install app like Gmail!) from being Uninstall/delete?
I mean the app won't uninstall the "simple way", like from Settings - Applications, and only through terminal/ADB command/root explorer.
Thank you very much!
Yoav

Anybody? It's a pretty usefull question.

I think you can just push the APK to /system/app
You can't uninstall because it is read only by deafult.
I've never done it so I'm not sure, try it.

mercianary said:
I think you can just push the APK to /system/app
You can't uninstall because it is read only by deafult.
I've never done it so I'm not sure, try it.
Click to expand...
Click to collapse
or use root explorer from the market and move file to /system

Related

[Tut] (Root) Update to Latest Superuser

Once you have achieved root (see other thread), to update the Superuser.apk to the latest version, run these commands:
Code:
adb shell
su
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
rm /system/app/Superuser.apk
pm uninstall com.noshufou.android.su
Then search on the market for Superuser and download the one by ChainsDD. Confirmed working on latest Droid2 2.2 ota.
EDIT: To be safe, go to Settings>Applications>Manage Applications and find Superuser. Then clear the data. This should prevent any of the Superuser issues discussed.
sorry..new to the whole android scene. are there any advantages to updating the superuser app the the latest version and can this command be input on the droid itself through the terminal app?
metman87 said:
sorry..new to the whole android scene. are there any advantages to updating the superuser app the the latest version and can this command be input on the droid itself through the terminal app?
Click to expand...
Click to collapse
i like the interface much more and its got a new autoaccept after 10 seconds if you arent paying attention when the popup shows. it's up to you. i'm sure future root tools will just include it.
alright thanks. is it as simple as installing the new version and uninstalling the old? or does one need to enter the command prompts listed above?
metman87 said:
alright thanks. is it as simple as installing the new version and uninstalling the old? or does one need to enter the command prompts listed above?
Click to expand...
Click to collapse
that is what the commands do. unfortuantely, the old version is on the system partiton. this means that we must first mount the system and read/write and then manually delete the old version ourself. then the new version can be easily downloaded through the market. anyways, adb shell means it's done via your computer so its very easy to copy and paste like 3 commands.
Instructions work perfectly... thanks!
I need Mac instructions
Sent from my DROID2 using XDA App
greg25 said:
I need Mac instructions
Click to expand...
Click to collapse
These instructions are not specific to the OS on your computer, they work with anything.
Perfect!
Worked great! Thank you!
Instructions worked fine (I just made them up for Linux), but the newest SuperUser is giving me weird results. Every program that requests root access will ask me numerous times, like it never remembers that I gave the app access. Like removing one app with titanium will it will ask me 4 seperate times to accept or deny permission. Other apps do this also. Anyone have a copy of the old apk I could reinstall? Anyone have any ideas or suggestions?
Thanks
n0yd said:
Instructions worked fine (I just made them up for Linux), but the newest SuperUser is giving me weird results. Every program that requests root access will ask me numerous times, like it never remembers that I gave the app access. Like removing one app with titanium will it will ask me 4 seperate times to accept or deny permission. Other apps do this also. Anyone have a copy of the old apk I could reinstall? Anyone have any ideas or suggestions?
Thanks
Click to expand...
Click to collapse
I had the same thing happen to me. Launch the new superuser app and go to settings. Unselect and reselect Notifications. Apparently it shows it being checked, but you have to recheck it for the actual setting to get saved.
After I did this, it only asks once for a program, and then I never see it again.
facelessuser said:
I had the same thing happen to me. Launch the new superuser app and go to settings. Unselect and reselect Notifications. Apparently it shows it being checked, but you have to recheck it for the actual setting to get saved.
After I did this, it only asks once for a program, and then I never see it again.
Click to expand...
Click to collapse
Nice, thanks!
I had that issue too. I ironically un-installed superuser and re-installed it and it worked fine too
I used Root Explorer to delete the old Superuser.apk from /system/app. Then I rebooted and installed the new version from the market. Worked great.
jmonte345 said:
I used Root Explorer to delete the old Superuser.apk from /system/app. Then I rebooted and installed the new version from the market. Worked great.
Click to expand...
Click to collapse
that works too though without having the superuser apk and rebooting, that could be a little dangerous for others hence my adb tutorial. no need for a restart either. could easily just use root explorer, delete the old, download new from market.
Worked great
I just renamed Superuser.apk to .bak then tried to install. Don't forget the last step. I had to adb (I was using terminal emulator) to do the last step then installed fine and removed Superuser.bak.
Thanks I like the New look.
yeah i can't get superuser from the market to install, keeps telling me unsuccessful
jerseyh22accord said:
yeah i can't get superuser from the market to install, keeps telling me unsuccessful
Click to expand...
Click to collapse
I had the same problem. I rebooted my phone and then it installed fine. Not sure if it's risky to reboot once you remove the apk or not. However, it didn't cause any problems for me.
jmonte345 said:
I used Root Explorer to delete the old Superuser.apk from /system/app. Then I rebooted and installed the new version from the market. Worked great.
Click to expand...
Click to collapse
I basically did the same thing except I renamed instead of deleting it. Well, once I installed SU from the market, I can't find the .apk file even though it's running and launching correctly. I assumed it would be called superuser.apk in the system/app folder but only my old renamed superuser.bak is there. I'm just worried if there is an update in the future, I won't be able to rename since I can't find the .apk file. Anyone know where the .apk file is for this new version of superuser?
facelessuser said:
I had the same thing happen to me. Launch the new superuser app and go to settings. Unselect and reselect Notifications. Apparently it shows it being checked, but you have to recheck it for the actual setting to get saved.
After I did this, it only asks once for a program, and then I never see it again.
Click to expand...
Click to collapse
Tried this, and it didn't work for me. With Titanium Backup in particular, it will literally ask upwards of twenty times for permission. It's insanely annoying. Any other tips?
Sent from my DROID2 using XDA App

[Q] w/o losing config, how to push installed Widgetsoid.apk to /system/app

I need to push Widgetsoid.apk to /system/app in order to use its USB debugging toggle. I've already installed and extensively configured Widgetsoid. I've pulled its apk. What do I need to do before pushing it to /system/app so that I don't lose my configuration? How do I deal with the one in /data/app?
Does anyone here have experience with pushing an app to /system/app after they've already installed it via the market?
OK, I see that /system/app has to be remounted, but I can't do that while rooted with CF-ROOT. Any suggestions?
Jimmy34742 said:
OK, I see that /system/app has to be remounted, but I can't do that while rooted with CF-ROOT. Any suggestions?
Click to expand...
Click to collapse
Did you ever figure this out? I'm having a similar issue. No matter what I do,I can't get the debugging toggle to work.
seventieslord said:
Did you ever figure this out? I'm having a similar issue. No matter what I do,I can't get the debugging toggle to work.
Click to expand...
Click to collapse
I don't use Widgetsoid anymore. But I suggest trying Android Tuner's App Manager to install an app as a system app.
Jimmy34742 said:
I don't use Widgetsoid anymore. But I suggest trying Android Tuner's App Manager to install an app as a system app.
Click to expand...
Click to collapse
Wow, great app. But I've been playing with it for half an hour and can't figure out how to use it to install other apps as system apps. I see the option for the app to install itself as a system app, but that's it.
Do you know where this option is?
seventieslord said:
Wow, great app. But I've been playing with it for half an hour and can't figure out how to use it to install other apps as system apps. I see the option for the app to install itself as a system app, but that's it.
Do you know where this option is?
Click to expand...
Click to collapse
In the Apps manager, go to the Apps tab, press and hold on an app, select "Move" and then choose "System." Android Tuner has a lot of functions, making feature discovery a challenge. You really need to use the AT thread linked above and 3c's web site for support, and of course RTFM.

[Q] Swype Beta No Longer Working

I'm running XBoarder's GB 2.3.3 ROM Version1.2.2. I flashed it this morning.
The "old" version of Swype is working just fine. However, when I download the Beta.apk and try to install, Swype won't work.
I'm using Titanium to "Freeze" the original Swype so the Beta will load onto my phone. It used to work like a charm, but is not working anymore.
Anyone else having any problems?
Does it Force Close on you?
you have to uninstall completely the old swype. then you have to use a file explorer to remove a file called libswypexxxx.co or something like that. It is located in system/lib. Then you install the beta installer and finally you download the beta and install it through that app. you can also at this point use one of the swype themes, which look amazing.
adevilfish said:
you have to uninstall completely the old swype.
Click to expand...
Click to collapse
Adevilfish,
How do I completely uninstall Swype? I go into Settings - Apps - Manage Apps - ALL APPS, and then I scroll down to SWYPE. It does not give me the option to Uninstall. Just to Force Close and/or Clear Data.
What do you do at this point?
TeldenW said:
Adevilfish,
How do I completely uninstall Swype? I go into Settings - Apps - Manage Apps - ALL APPS, and then I scroll down to SWYPE. It does not give me the option to Uninstall. Just to Force Close and/or Clear Data.
What do you do at this point?
Click to expand...
Click to collapse
It's a system app so you can't use the manage applications setting.
Code:
adb remount
adb shell rm -f /system/app/Swype.apk
adb shell pm uninstall com.swype.android.inputmethod
adb shell rm -f /system/lib/libSwypeCore.so
After that install the beta.
wewoapsiak ,
I sincerely appreciate the information, but that could not have made any LESS sense to me.
That was WAY over my head. I'm getting better with this phone stuff, but I clearly still am a "White-Belt Noob".
Forgive the following questions:
What was that?
What do I do with that code?
ADB---Android Device Bridge. How your phone communicates with your computer.
There are many alternatives, but if you want to learn about it, try here.
Or simply download Android Commander, it's a GUI for your computer that allows you to drag and drop or delete. Or use root explorer. There are plenty of ways. Delete the two files (Swype.apk and libSwypeCore.so), install the beta.
Can this be done using "Root Explorer"?
TeldenW said:
Can this be done using "Root Explorer"?
Click to expand...
Click to collapse
Yes. Navigate to those directory file listed in the adb posting above.
Delete those lines
Got it handeld...
Rocking the beta again.
Thank you all for your help!

[APP] Get your Old Android Market Back

You know what distinguishes a good the from the from a bad on? The good one spend his time is helping others, while the bed one spend his is time consolidation power
There are no stupid question, every question is a quest for knowledge..Knowledge flows freely here at XDA! ask and ye shall b answered.
ThaNx to all the member that TEAM AD with the various tips and trick for this post I walk away, but my knowledge increased by the experiences shared with is wonderful group people. Long Live Android!
Installation:
1. Download files below, do not rename them! Transfer to SD Card.
2.* Use any file explorer and mount system as RW and delete file name (Root Explorer works nicely)‘Vending.APK’ and ‘MarketUpdater.apk’ from /system/app/. You can also delete folders com.android.vending and com.android.vending.updater in /data/data.
*Do a reboot.
* Open File explorer/ Root Explorer and Mount your file system as RW and copy ‘updater.apk’ from SD Card to /system/app/ and do a reboot.
* Now, mount your file system as RW from explorer and copy ‘market.apk’ from SD Card to /system/app/ and Reboot phone.
Edit: I feel retarded.. forgot to mention that this method is iffy on my rooted stock ROM, but it works great on my rooted custom rom.
[B said:
acolwill[/B];16952837]What functionality? All I see is fancy graphics designed for children and iRetards, there's no discernible change in how apps are grouped or searched for since version 2.12.
I have 5 android devices ranging from the HTC Hero up to the Samsung Galaxy Tab and the new market looks **** on every one. Application presentation is marred with oversized text and incessant scrolling, making it slower to actually see information pertinent to what you are looking at. Emphasis should be on the applications contained within the market, not the market application itself.
Other than that, the obfuscated way that application permissions are presented to a user in the newer versions makes it far too easy for the layman to install things with less than honourable permission requests. At least in version 2.12 you HAD to move your fingers around to accept permissions, since then all it takes is two jabs with a finger with little or no perceived consequence.
The fault lies with Google for forcing the new market style on users, no choices outside of root&destroy.
So thanks for actually taking the time for making the Google apps look nice, just let those whom want the 'clean' version have their say.
--
The attached Vending.apk is the "old" market. In order to install it, you must be rooted and you need either a little knowledge of ADB or Root Explorer from the market.
Using ADB;
Reboot into recovery and plug into pc, mount /system using your recovery
From your preferred ADB console:
adb push Vending.apk /system/app
adb shell rm /system/app/MarketUpdater.apk
adb shell chmod 644 /system/app/Vending.apk
adb shell chown root.root /system/app/Vending.apk
Reboot.
Using Root Explorer;
Download apk to sdcard
mount /system rw
browse to /system/app
remove MarketUpdater.apk
remove Vending.apk
browse back to sdcard and copy the Vending.apk to /data/local/tmp
copy the Vending.apk from /data/local/tmp to /system/app
using permissions action, set permissions on Vending.apk [Owner: Read Write. Group: Read. Others: Read]
using set owner action, set owner to 0 - root, group to 0 - root.
Close and reboot.
The Root Explorer method may not work for all phones, and will not work on HTC phones which do not have s-off. The ADB method should work on any rooted device which previously had market access.
Click to expand...
Click to collapse
[B said:
here.david[/B];16956089]Thanks that worked BTW, on the Vibrant (MiUi) here is the command I used to mount without going into CWM....
From your preferred ADB console:
adb shell mount -o rw,remount -t ext4 /dev/block/stl9 /system
adb push Vending.apk /system/app
adb shell rm /system/app/MarketUpdater.apk
adb shell chmod 644 /system/app/Vending.apk
adb shell chown root.root /system/app/Vending.apk
Reboot.
Click to expand...
Click to collapse
[B said:
nygmam[/B];16959137]I use a simple method, which works very well, and so far has not had a down side:
1) Using Titanium Backup (Or another app that lets you do this) either Freeze (Paid app) or Backup, then delete Market Update (Free App)
2) Go to Settings, Applications, Manage Applications, and scroll down to market, and select
3) Uninstall updates from Market
This is very easy to do, and you may be able to use other freeze or backup apps to achieve the same result. Also note, no reboot required.
Click to expand...
Click to collapse
I use a simple method, which works very well, and so far has not had a down side:
1) Using Titanium Backup (Or another app that lets you do this) either Freeze (Paid app) or Backup, then delete Market Update (Free App)
2) Go to Settings, Applications, Manage Applications, and scroll down to market, and select
3) Uninstall updates from Market
This is very easy to do, and you may be able to use other freeze or backup apps to achieve the same result. Also note, no reboot required.
Why would anyone want to do that? To put it in a different way: What are the advantages of the old market?
Thanks man, the new market sucks...
For some people the new market lags a lot especially on lower end phones, the last version was terrible for me so I had to use the old one but this latest update is a huge improvement, so i'll stick with it.
Sent from my HTC Wildfire using XDA Premium App
If you change the density of your phone's display, you wont't be able to download many apps(shazam free for example). It says that your device is incompatible, that's why I reverted back to the old market.
Sent from my HTC Desire
new market sucks..it lags on older phone
Agreed. Installed it, and soon had to restore old version from backup!
Any chance this will work without root? My wife hates the new market.
Sent from my ADR6350 using Tapatalk
QBall45 said:
Any chance this will work without root? My wife hates the new market.
Sent from my ADR6350 using Tapatalk
Click to expand...
Click to collapse
Have you given a brief look at the benefits of root vs stock? Well worth it.. Just a little research about rooting your particular phone and you can do it quite simply
i just downloaded the old market apk again and replaced it over the new one , and it worked , i have samsung galaxy s2 ,but still the new market is slow
I use a simple method, which works very well, and so far has not had a down side:
1) Using Titanium Backup (Or another app that lets you do this) either Freeze (Paid app) or Backup, then delete Market Update (Free App)
2) Go to Settings, Applications, Manage Applications, and scroll down to market, and select
3) Uninstall updates from Market
This is very easy to do, and you may be able to use other freeze or backup apps to achieve the same result. Also note, no reboot required.
shadows of yesterday said:
i just downloaded the old market apk again and replaced it over the new one , and it worked , i have samsung galaxy s2 ,but still the new market is slow
Click to expand...
Click to collapse
If you don't delete or disable Market Updater, new market will return... Maybe not right away, but it will be back. Also no need to reinstall old market, it is still on your phone. Just see my post above on how to uninstall the updates to market (Step 2 and 3), just uninstall updates, and go back to market, accept teh T&C and you will be back using old market again.
This worked for me ONLY after following the steps in OP and:
1. Changing the permissions of both files to rw-r-r
2. Renaming market.apk to Market.apk
3. Renaming updater.apk to Updater.apk
I think you'd need to 'chown root.root' on both files too...
GRRemlin said:
This worked for me ONLY after following the steps in OP and:
1. Changing the permissions of both files to rw-r-r
2. Renaming market.apk to Market.apk
3. Renaming updater.apk to Updater.apk
Click to expand...
Click to collapse
Maybe the mods can add this bit of info to the first post. Thank you!
You can edit it (or should be able to)
hello.
i'm using an xperia x10 mini E10i, and just did those steps. My market dissapeard, and now i don't know how to install it back( i didn't make a backup of the apks i deleted =( ). Can you please tell me what should i do?
I also tried GRRemlin's version and still doesn't work.
Thanks in advance.
li9ht said:
new market sucks..it lags on older phone
Click to expand...
Click to collapse
after themeing the market for the last five versions i would have to say the new market adds fuctionality over the old.
sounds like your blaming google for having a slow outdated phone.
still a good post though for those that like the look of the old market
Try restoring your apps and following the directions posted in post 2 it really is easier, and you don't have to mess with chmod and renaming and rebooting.
Sent from my ACA Gingerbread HTC HD2 using XDA App

How to uninstall system apps?

Hey guys,
I'm on OOS, rooted with TWRP and I want to uninstall Duo, Youtube Music, Drive and all this other pre-installed crap-apps.
TitaniumBackup does not work anymore (it fails to locate the apks when you click "uninstall") and the often quoted "uninstall system apps with adb"-method just removes the app from user space while it actually remains installed on the device in the root directory and keeps wasting space. So this method does not actually remove apps, it just sorta deactivates them in another way.
So, is there any known method to remove system apps?
Read up on how to use adb commands.. quite simple..
pm uninstall --user 0 package.name.example
You do need a laptop, it you don't have one this app is great... https://play.google.com/store/apps/details?id=com.draco.ladb
lilbrat said:
Read up on how to use adb commands.. quite simple..
pm uninstall --user 0 package.name.example
You do need a laptop, it you don't have one this app is great... https://play.google.com/store/apps/details?id=com.draco.ladb
Click to expand...
Click to collapse
it is not for android 7 (i'm using android 7)
ai.Sanaul said:
it is not for android 7 (i'm using android 7)
Click to expand...
Click to collapse
ADB still works .. or since your on 7 try this https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp.pro.
Wait you weren't the original poster... But since he has TWRP installed he could just use the file manager and delete the files from there..
lilbrat said:
ADB still works .. or since your on 7 try this https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp.pro.
Wait you weren't the original poster... But since he has TWRP installed he could just use the file manager and delete the files from there..
Click to expand...
Click to collapse
and this is an alternative of Bloatware Remover app
but thanks for help i will try
lilbrat said:
Read up on how to use adb commands.. quite simple..
pm uninstall --user 0 package.name.example
You do need a laptop, it you don't have one this app is great... https://play.google.com/store/apps/details?id=com.draco.ladb
Click to expand...
Click to collapse
As I've already written.. It does NOT really actually remove the apps from the device:
How to uninstall carrier/OEM bloatware without root access
If you want to get rid of carrier/OEM apps from your phone, here's how you can uninstall bloatware from your device without root access!
www.xda-developers.com
[...] applications truly aren’t fully uninstalled from your device. They are just being uninstalled for the current user (user 0 is the default/main user of the phone). [...]
Click to expand...
Click to collapse
lilbrat said:
ADB still works .. or since your on 7 try this https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp.pro.
Wait you weren't the original poster... But since he has TWRP installed he could just use the file manager and delete the files from there..
Click to expand...
Click to collapse
Thanks, but according to my knowledge this cannot work either since the app does not require root access. And you cannot uninstall system apps without having root. It probably just follows an adb-like approach.
lilbrat said:
ADB still works .. or since your on 7 try this https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp.pro.
Wait you weren't the original poster... But since he has TWRP installed he could just use the file manager and delete the files from there..
Click to expand...
Click to collapse
That TWRP method sounds promising. Do you happen to know if all app related files are in one place or are they spread accross several folders?
haitower said:
That TWRP method sounds promising. Do you happen to know if all app related files are in one place or are they spread accross several folders?
Click to expand...
Click to collapse
Now with all due respect, you asked for a suggestion on how to remove the apps, they were given to you, you used every reason why not to use them... Have you even tried the various methods or just "read" about them ? Trying out the methods given then verifying through TWRP file manager would be nice learning experience once you "read " up and tinker with TWRP's file manager and different file locations...
But please make a backup before you start and have necessary programs handy in case you remove the wrong file... as it can really ruin your day..
lilbrat said:
Now with all due respect, you asked for a suggestion on how to remove the apps, they were given to you, you used every reason why not to use them... Have you even tried the various methods or just "read" about them ? Trying out the methods given then verifying through TWRP file manager would be nice learning experience once you "read " up and tinker with TWRP's file manager and different file locations...
Click to expand...
Click to collapse
It is simply NOT possible to uninstall system apps without root access. Thats why neither the adb method nor the other suggested app from questionable source can even work in theory. If it were otherwise, you would have found a major flaw in the android system, which, with all due respect, I doubt a tiny little bit.
You could also suggest to swim in a muddy pond for two days and look if this removed the system apps. But I hope you understand that I won't try that approach either because I prefer to not waste my time.
But thanks anyway for the TWRP idea, I'll look into that.
@haitower here's a Magisk module I use to remove a fair number of system apps. See the REPLACE variable in customize.sh
Use the magisk module "debloater". When you are done removing apps (don't really remove) just export the file. It will make text file in your storage. Then if you want to re-install any of the apps just reopen the app and import the file.
haitower said:
Hey guys,
I'm on OOS, rooted with TWRP and I want to uninstall Duo, Youtube Music, Drive and all this other pre-installed crap-apps.
TitaniumBackup does not work anymore (it fails to locate the apks when you click "uninstall") and the often quoted "uninstall system apps with adb"-method just removes the app from user space while it actually remains installed on the device in the root directory and keeps wasting space. So this method does not actually remove apps, it just sorta deactivates them in another way.
So, is there any known method to remove system apps?
Click to expand...
Click to collapse
Maybe @BillGoss will help to clarify things a bit.
As far as i understand. On 8T (or better to say from Android 10 and latter) /system partition is read only and furthermore is located inside Super partition.
I suppose even with root access you will not be able to directly uninstall system apps without remounting /system/ as writable.
From Magisk manual we can learn that:
Since / is read-only on system-as-root devices, Magisk provides an overlay system to enable developers to replace files in rootdir or add new *.rc scripts. This feature is designed mostly for custom kernel developers.
Click to expand...
Click to collapse
For each module, the folder $MODPATH/system will be recursively merged into the real /system; that is: existing files in the real system will be replaced by the one in modules’ system, and new files in modules’ system will be added to the real system.
Click to expand...
Click to collapse
So as Magisk overlays modules /system folder to actual system with debloater module blank files android "thinks" those files specified in MODPATH/system don't exist.
Though a presume, in reality they are there.
So is magisk solutions really delete files from /system and not just "hide" them from Android?
haitower said:
Hey guys,
I'm on OOS, rooted with TWRP and I want to uninstall Duo, Youtube Music, Drive and all this other pre-installed crap-apps.
TitaniumBackup does not work anymore (it fails to locate the apks when you click "uninstall") and the often quoted "uninstall system apps with adb",method just removes the app from user space while it actually remains installed on the device in the root directory and keeps wasting space. So this method does not actually remove apps, it just sorta deactivates them in another way.
So, is there any known method to remove system apps?
Click to expand...
Click to collapse
For Xiaomi phones, first install the “Hidden Settings for MIUI” app.
1. Open “Hidden Settings for MIUI.”
2. Go to “Manage applications” and find the application you want to disable.
3. Tap on the “Disable” button.
BillGoss said:
@haitower here's a Magisk module I use to remove a fair number of system apps. See the REPLACE variable in customize.sh
Click to expand...
Click to collapse
Thank you, very reasonable and necessary.

Categories

Resources