[HELP] Preventing uninstall of application - Android Q&A, Help & Troubleshooting

Hello. I have an Android lock app application, I need help preventing its uninstall. I've already placed a device administrator's permission on it, and it can't be removed, but when you get into device management apps, the manager can be disabled and removed.
All I need if you can, little thing, is to pop the "lock" activity of the application as soon as you try to turn off the app's device management, and then it won't be uninstallable.
Can someone do this for me?
I will pay for him kindly for this little task.
Please contact with me.

[email protected] said:
Hello. I have an Android lock app application, I need help preventing its uninstall. I've already placed a device administrator's permission on it, and it can't be removed, but when you get into device management apps, the manager can be disabled and removed.
All I need if you can, little thing, is to pop the "lock" activity of the application as soon as you try to turn off the app's device management, and then it won't be uninstallable.
Can someone do this for me?
I will pay for him kindly for this little task.
Please contact with me.
Click to expand...
Click to collapse
Hello, I assume application is yours. You cannot do pretty much, normally the apps which have administrative permissions cannot be uninstalled without revoking administrative permission. But if you want to make an app uninstallable you should convert it to system app. That can be done with root.
Sent from my Redmi Note 8 Pro using Tapatalk

Paget96 said:
Hello, I assume application is yours. You cannot do pretty much, normally the apps which have administrative permissions cannot be uninstalled without revoking administrative permission. But if you want to make an app uninstallable you should convert it to system app. That can be done with root.
Sent from my Redmi Note 8 Pro using Tapatalk
Click to expand...
Click to collapse
Of course it can be done.
Like any parental control app.
When someone tries to access the device adminstration settings it locks the screen or pop ups a "lock pattern" activity, and if you don't enter the password you can't disable it's admin device management.
I don't know how to do so. Any help?

[email protected] said:
Of course it can be done.
Like any parental control app.
When someone tries to access the device adminstration settings it locks the screen or pop ups a "lock pattern" activity, and if you don't enter the password you can't disable it's admin device management.
I don't know how to do so. Any help?
Click to expand...
Click to collapse
Oh, sorry for misunderstood, well, you can create a receiver with onDisableRequired
Here is an example
https://stackoverflow.com/q/19856344/6302432
You can take a onDisable to create a overlay with password or pattern protection (needed permission to draw over another apps).
Sent from my Redmi Note 8 Pro using Tapatalk

Paget96 said:
Oh, sorry for misunderstood, well, you can create a receiver with onDisableRequired
Here is an example
https://stackoverflow.com/q/19856344/6302432
You can take a onDisable to create a overlay with password or pattern protection (needed permission to draw over another apps).
Sent from my Redmi Note 8 Pro using Tapatalk
Click to expand...
Click to collapse
I already know about onDisable and onDisableRequested functions.
I explain my problem, I have only the apk and not the source.
This applocker is not mine, I just edited it and added it some design and translations with APK Editor Pro.
Now that I have the apk of the applock, and I can see that there is "lock" activity that if you call it , the lock screen will pop-up,
maybe someone know how to edit it or tell me what to add to the apk file so when you try to deactivate device admin then the lock activity will be called?

Related

Default email client Missing

Hi
I seem to have lost the email client on my (wifes) S3!
It hasn't been used for awhile. so no idea when or where it has gone.
(I did, when new, reinstall stock OS to debrand phone)...
anyway, I don't like k9 (too ugly and poor gui),
could someone please point me in the direction of a replacement email app please...
preferably stock (as it'll have to do for now).
Thank you
Only 3 possibilities that it can disappear:
1. It is hidden inside touchwiz. You can click Show hidden Apps in app drawer.
2. Disabled using Settings --> Apps --> All --> Email --> Disable. You may have to enable it from there.
3. Deleted purposely from system/app using root explorer which may not be the case here
Thanks was disabled...
(curiously: how would that be possible, that is got disabled, without manually doing it ourselves?)
Dizzee said:
Thanks was disabled...
(curiously: how would that be possible, that is got disabled, without manually doing it ourselves?)
Click to expand...
Click to collapse
Isn't really possible. Someone might have accidentally done it
watsa said:
Only 3 possibilities that it can disappear:
1. It is hidden inside touchwiz. You can click Show hidden Apps in app drawer.
2. Disabled using Settings --> Apps --> All --> Email --> Disable. You may have to enable it from there.
3. Deleted purposely from system/app using root explorer which may not be the case here
Click to expand...
Click to collapse
i just bought a new s3 for my wife, but it didnt came with the email app, it just didnt appear on the app list, any ideas why this happends and how i can install this app, i use a pop3 mail and k-9 dont recognize it.

[Q]How and which service should I disable on reboot to avoid tracking?(Google Locati

on Manager).
Hey,
So, I've checked 'settings->apps->running' and I see that when I restart my phone the OS turn on Google location Manager, Google Play market, and some other thing.
I would really like if when I turn on my phone- no element could use my GPS unless I specifically tell it to run, then stop the usage when I tell it to close. Part of the tracking prevention, I imagine, will be done by disabling those services which are required for proper part functioning.
I suppose my questions are:
1) What services/elements should I disable?
2) How do I prevent them from running on startup?
3) How do disable parts of android to run on start up, in general?
Also I'd like to note that I would prefer not installing any apps or root the phone.
Thank you very much
UP.
(Damn, 4th page already. There sure is a lot of activity here).
For stopping any app on reboot you need to be rooted !!!
As you have to make changes in system files !!!
Without root access it’s not possible to stop a system app on startup...!
Sent from my GT-S5360 using Tapatalk 2
PreSS ThanKs If i HelpeD YoU?!?
Damn. Oh well, can you recommend such a way if I will root my phone?
Also, if anyone has other Ideas (for instance doing it without root) feel free to post them.
The Best app is Sd maid just you have to disable autorun component with one click it’s an all in one app as i am using it...! download it from the given link:
http://thedarken.de/sdmaid/stable/SD_Maid_v3.0.2.8_328_RC.apk
Sent from my GT-S5360 Using tapatalk 2
PreSS ThanKs If i HelPeD YoU ?!?
androidrocks23 said:
The Best app is Sd maid just you have to disable autorun component with one click it’s an all in one app as i am using it...! download it from the given link:
http://thedarken.de/sdmaid/stable/SD_Maid_v3.0.2.8_328_RC.apk
Sent from my GT-S5360 Using tapatalk 2
PreSS ThanKs If i HelPeD YoU ?!?
Click to expand...
Click to collapse
Very intresting, thank you.
Anyone knows by any chance what other elements should be disabled so to prevent the activation of components that could theoretically be used for tracking (so that for instance the GPS or the WIFI or some motion sensors or perhaps some other information gatherer could not be turned on (even if the phone is infected by malware)) ?
1) Download disable service in Google Play
2) Swipe to system apps, navigate to Google Play Services
3) Uncheck all mdm.services (first few)
4) Uncheck NlpLocationRecevierService, GoogleLocationManagerService, GoogleLocationService
5) Uncheck any plus, drive or cast service if you’re not using them.
* GPS will still work as normal.
Lim Wee Huat said:
1) Download disable service in Google Play
2) Swipe to system apps, navigate to Google Play Services
3) Uncheck all mdm.services (first few)
4) Uncheck NlpLocationRecevierService, GoogleLocationManagerService, GoogleLocationService
5) Uncheck any plus, drive or cast service if you’re not using them.
* GPS will still work as normal.
Click to expand...
Click to collapse
Thank you.
when you say that GPS works as normal, does it mean that only the physical component is working but no app can access it (not even deliberate navigation apps)?
Also, I'll check this "disable service " but funny thing, one of the reviewers on the market has left this remark:
"Nearly useless I thought that if I disable some services - they won't run ever again. But then I learned that it is not so, and the bad apps who's services you disabled can undo that easily. Even if they get executed without SU rights. For me that means that DisableServices is potentially useless. If you would like to reproduce what I'm talking about - install Yandex.Maps, disable com.yandex.auth.AuthentificationService Please, add an active Guard to protect services from getting re-enabled"
Is there some truth in it?
And again thank you(!), will do what you suggested.

[MOD][XPOSED] Prevent Running

I have a forked update, Brevent, which doesn't require Xposed, nor root, nor unlock bootloader.
You can find it here: https://forum.xda-developers.com/android/apps-games/introduce-brevent-black-prevent-root-t3559151
Prevent Running was transfered to "Shanghai Falcon Network Co., Ltd." since 2.3.3.
This module was written for my GF, and accept donations.
Address: http://repo.xposed.info/module/me.piebridge.forcestopgb
How prevent running works?
After go deep in the android source, i find it uses flag when sending broadcast, so I hijack the IntentFilter's match.
And for other action, like force stop, launch activity, exit activity, I hijack them too.
So if any package is force stopped, it won't accept any intent filter...
However, i let input method, app widget, and laucher go.
- app widget, otherwise reboot is needed to show a widget in the widget chooser.
- configuration changed, otherwise cannot change lanugage
- account, otherwise sync and account won;t work
When the activity is launched, it can receive broadcast again..
When the activity exits by back key, it won't receive intent again, this function is added to android's feature.
So if you want to keep it running, please use home key instead.
And all the feature works for system package too, but the system package must have launcher.
Otherwise, if you still force stop it, it will cause FC (I suggest you use pm disable to do so).
Latest testing version: http://piebridge.me/pr/
Change Logs
for english version: please visit: http://piebridge.me/pr/CHANGELOG.en.txt
for chinese version: please visit: http://piebridge.me/pr/CHANGELOG.txt
First.
GB users will happy.
Good Work sir !
Will test it ASAP .
so by activing this module, after i click Force stop, in GB, will be the same like Hibernating with greenify ? :laugh:
lovely thanks, i hope this can make my old ace duos come back to life thanks liudongmiao bro
liudongmiao said:
This module is written for my GF, and accept donations.
// Normally, I don't accept any donation for most little project.
Address: http://repo.xposed.info/module/me.piebridge.forcestopgb
For GB user, there is no greenify, and there is no change to back-port.
1). greenify depends system's launch control (http://developer.android.com/about/versions/android-3.1.html#launchcontrols), which introduces in 3.1
2). greenify is not opensource, also the author and i live in the same country, even in the same city, however, he doesn't open source it.
How prevent running works?
After go deep in the android source, i find it uses flag when sending broadcast, so I hijack the IntentFilter's match.
And for other action, like force stop, launch activity, exit activity, I hijack them too.
So if any package is force stopped, it won't accept any intent filter...
However, i let input method, app widget, and laucher go.
- input method, otherwise reboot is needed to show a input method in the input method chooser.
- app widget, otherwise reboot is needed to show a widget in the widget chooser.
- launcher, otherwise there is no chance to start the activiy.
- view for system's package, otherwise it will cause FC. For example, if you force stop browser, and user want to visit a link, it should receive the broadcast.
When the activity is launched, it can receive broadcast again..
When the activity exits by back key, it won't receive intent again, this function is added to android's feature.
So if you want to keep it running, please use home key instead.
And all the feature works for system package too, but the system package must have launcher.
Otherwise, if you still force stop it, it will cause FC (I suggest you use pm disable to do so).
Click to expand...
Click to collapse
Please give screenshot and your battery life before and after installing this module
Sent from my GT-N7100 using Tapatalk
Was looking for Greenify for GB from long...
Can somebody review this app? Is there any shortfall of this app in comparison with Greenify (as user, don't understand technicality )
I tried this yesterday on google play services app and it worked fine. I can't see it in running services, so i can say (but not sure for other apps) its working :good: Hatsoff @liudongmiao your GF must be very proud of u if she's a geek :silly: One question: If we stop for example hangouts app, will we receive messages as usual??
swat4samp said:
I tried this yesterday on google play services app and it worked fine. I can't see it in running services, so i can say (but not sure for other apps) its working :good: Hatsoff @liudongmiao your GF must be very proud of u if she's a geek :silly: One question: If we stop for example hangouts app, will we receive messages as usual??
Click to expand...
Click to collapse
It shouldn't receive any broadcast, and never running, so you coun't recive messages.
Can you add a UI when you can choose apps to hibernate (like Greenify) and force stop them one by one?
BTW, this mod is superb...
Sent from my Xperia E1 dual using Tapatalk
1. Love doesn't need any reason.
2. Wanna speed up 3G (not 4G LTE)?
Here it is:
http://forum.xda-developers.com/showthread.php?t=2586876
3. My blog
4. Press the thanks button if I really helped/assisted you.
???? amazing , thanks so kmmuch
Enviado desde mi HTC One mediante Tapatalk
Hi all,
i installed this fantastic module. It work partially. Problem is when i exit aplication on back key application is still running. Where i am wrong? @liudongmiao
nikola1970 said:
Hi all,
i installed this fantastic module. It work partially. Problem is when i exit aplication on back key application is still running. Where i am wrong? @liudongmiao
Click to expand...
Click to collapse
No, nothing is wrong.
When you use back key to exit the application, the application won't receive any broadcast, however, the application will be cached, so the next time you open it, it will be opened very quickly. But before you open it again, it won't receive any broadcast.
However, if you want to the process be stopped, you can force stop it.
liudongmiao said:
No, nothing is wrong.
When you use back key to exit the application, the application won't receive any broadcast, however, the application will be cached, so the next time you open it, it will be opened very quickly. But before you open it again, it won't receive any broadcast.
However, if you want to the process be stopped, you can force stop it.
Click to expand...
Click to collapse
I observed this behaviour only with play services. For other apps, its working fine. So basically there's no much diffrnce between freezing and this except for application caching right? If we stop mms, do we still receive sms? A UI would be useful to look which apps are stopped and which are not. Great work man :good: BTW xposed for gb isn't updated yet. Any reason?
swat4samp said:
I observed this behaviour only with play services. For other apps, its working fine. So basically there's no much diffrnce between freezing and this except for application caching right? If we stop mms, do we still receive sms? A UI would be useful to look which apps are stopped and which are not. Great work man :good: BTW xposed for gb isn't updated yet. Any reason?
Click to expand...
Click to collapse
I don't know what's freeze, it doesn't seem to be a android's function.
As i said in the description, it doesn't force stop any application, but prevent sending broadcast to force stopped application.
For caching, it's a feature added to android's design.
For android's native design, when you start the application, it will be removed from the stop list until you force stop again.
But for me, i think its too complex to stop it, so i catch the finish, and if it's exited by finish, it will be added to the stop list.
// but it's in the cache processing list. so if you want to force stop it. this little design is useful for me to open a application temporary.
So if you stop the mms, i don't know whether you will receive or not.
The mms should be the core services of the android, i don't think you can force stop the services...
And i didn't forbidden the open the activity from the service, otherwise, it will cause FC of the application.
As i'm very busy, and an UI will take me some time. So there is no ui currently.
However, for the list, you can open the /data/data/me.piebridge.forcestopgb/conf/forcestop.list
For the xposed and other back-ported's module, it's not updated just because i'm too busy, and sometime too lazy .
You can read the description here: http://repo.xposed.info/module/me.piebridge.forcestopgb
And if you want to know more about the tech, you can read google's documetation: http://developer.android.com/about/versions/android-3.1.html#launchcontrols
thanky you for answers @liudongmiao
when i prevent Viber from running, when i start Viber, it starts but when you tao on some conversation it gives me force close. is this know bug?
Can we remove this setting simply by editing in config list (changing to false)?
Edit: I changed gms app to false and then opened the app to check which worked fine (i can see many running process in ram) and then i checked the list and it showed only that app in list. Is it alright?
Sent from my GT-S5670 using Tapatalk 2
swat4samp said:
Can we remove this setting simply by editing in config list (changing to false)?
Edit: I changed gms app to false and then opened the app to check which worked fine (i can see many running process in ram) and then i checked the list and it showed only that app in list. Is it alright?
Sent from my GT-S5670 using Tapatalk 2
Click to expand...
Click to collapse
true or false has special meaning.
true indicates this app is in the stopped list, and no broadcast would be send to the application.
false indicates this app has been marked in the stopped list, and when use back-key to exit, it would be in the stopped list.
I will write a simple ui, after the back-porting of xposed installer (completed), xprivacy (completed), and app settings (in to do).
im following this thread closely,and i want to test somethings,but before i do so,i have some questions.
the most important one its regarding about using this module along with greenify,what settings do i have to set in order to achieve the best of both apps,and then have a better experience.
Thanks.
kalel29 said:
im following this thread closely,and i want to test somethings,but before i do so,i have some questions.
the most important one its regarding about using this module along with greenify,what settings do i have to set in order to achieve the best of both apps,and then have a better experience.
Thanks.
Click to expand...
Click to collapse
As I have no ics+ devices, so i cannot say much things.
And if you want to try, you can wait for some days, I would write a simple configuation ui this weekend.
In short, if greenify works on your device, then just use greenify. But if you find greenify doesn't work at all, then try this one.
From design, greenify depends on http://developer.android.com/about/versions/android-3.1.html#launchcontrols introduces in android 3.1, this app hacks some api to emulate the launch controls. This works on gingerbread devices, and the devices that launch controls don't work at all.

[Q] Control processes without root

I would like to have the maximum of control on running processes, but I feel I have not enough control, so I hope you can help me
I know that being root, managing processes and disable "autoruns" is a quite easy task but unfortunately my device is not an easy to root phone
Furthermore, I saw that Android (4.1.2 Jelly Bean) performance is very bad when you have many apps installed or you used many apps recently. Yes I listen about the internal management and I am aware that it is not a suggested practice but since I want to have control on what is happening and i have serious concerns about the algorithms to free RAM (maybe bull****), so I prefer to do it on my own risk
What I am doing is go to
-Settings, Application manager, Running, "Show cached processes"
- Settings, Application manager, Running, "Show services in use"
Identify what apps are in use and i don't like, then go to
-Settings, Application manager, All,
select app and Click "Force Stop"
Doing it my device has a better performance however, some apps still going alive after some time, for instance: Email ( I saw other in the past)
Using "Autoruns" app and checking "email" app I can see with changes of state can start "Email" however, sometime "email" is reenabled after be manually stopped but none of previous conditions happened.
How can I kill "email" or other app and force to stay off? (disable it and install other email app is not a valid answer)
I would like to use email/others as an standalone app, I mean use when I want and have out of memory when I am not using.
Besides, the autoruns, is there any scheduled task or something like that to open apps?
Of course I want to root my phone and I am waiting until someone will find a proper way to root, in fact I think that an android without rooted is like a car with square shape wheels
I think I found the cause for "mail" app being executed automatically, today it went alive after select "flight mode"
Now I would like to control Google play services, I am seeing some of these being executed continuosly, can they be killed? how?
dapgo said:
I would like to have the maximum of control on running processes, but I feel I have not enough control, so I hope you can help me
I know that being root, managing processes and disable "autoruns" is a quite easy task but unfortunately my device is not an easy to root phone
Furthermore, I saw that Android (4.1.2 Jelly Bean) performance is very bad when you have many apps installed or you used many apps recently. Yes I listen about the internal management and I am aware that it is not a suggested practice but since I want to have control on what is happening and i have serious concerns about the algorithms to free RAM (maybe bull****), so I prefer to do it on my own risk
What I am doing is go to
-Settings, Application manager, Running, "Show cached processes"
- Settings, Application manager, Running, "Show services in use"
Identify what apps are in use and i don't like, then go to
-Settings, Application manager, All,
select app and Click "Force Stop"
Doing it my device has a better performance however, some apps still going alive after some time, for instance: Email ( I saw other in the past)
Using "Autoruns" app and checking "email" app I can see with changes of state can start "Email" however, sometime "email" is reenabled after be manually stopped but none of previous conditions happened.
How can I kill "email" or other app and force to stay off? (disable it and install other email app is not a valid answer)
I would like to use email/others as an standalone app, I mean use when I want and have out of memory when I am not using.
Besides, the autoruns, is there any scheduled task or something like that to open apps?
Of course I want to root my phone and I am waiting until someone will find a proper way to root, in fact I think that an android without rooted is like a car with square shape wheels
Click to expand...
Click to collapse
more info about processes, mem and autostart
I am still fighting with Android and how it manages processes, now I am sure that my main problem became each time I went into flight mode or it is restarted.
But it is not only Email being executed and being using in memory but other processes that I am not using doing that, such as:
(Mem. on OS monitor- Mem. in "service in memory"(android settings))
Event: Connectivity changed
-youtube 22.2MB-6.2MB
-Google play services(com.android.gms) 26.8MB-12MB
-Maps 20MB-4.9MB
-Factory Test (18.6MB -3.4MB)
Event: after Startup
-youtube 22.2MB-6.2MB
-Software update (18.0MB-4.3MB)
-Internet (com.android.browser) 18.9MB-3.3MB
There many apps which are executed after events like previous but they are closed after a very short time, but I am frustrated about those which are not unloaded.
Regarding "Email" app I decided to use a free email app and as Email cannot be disabled, so, I removed the accounts associated to email app, however even without accounts configured, it still being launched and wasting resources. can I avoid it?
What do you think?
dapgo said:
I think I found the cause for "mail" app being executed automatically, today it went alive after select "flight mode"
Now I would like to control Google play services, I am seeing some of these being executed continuosly, can they be killed? how?
Click to expand...
Click to collapse
It's not possible to do what you want without root, unfortunately (unless you're talking about normal apps, in which case you can uninstall them to keep them from running). An alternative would be to use Greenify, though it won't be fully automatic without root either.
What about editing the startups rights?
Has anyone used APK permission remover?
GermainZ said:
It's not possible to do what you want without root, unfortunately (unless you're talking about normal apps, in which case you can uninstall them to keep them from running). An alternative would be to use Greenify, though it won't be fully automatic without root either.
Click to expand...
Click to collapse
Apk permission remover never stops an app from automatically starting. It only helps in removing the permissions we see during installation.
dapgo said:
What about editing the startups rights?
Has anyone used APK permission remover?
Click to expand...
Click to collapse
You still want to do this 2 years and 7 months later? That's one late reply there
GermainZ said:
You still want to do this 2 years and 7 months later? That's one late reply there
Click to expand...
Click to collapse
Yes but after SO long I found the app 'autorun manager pro', and it allowed to disable triggers /autoStartups/autoruns

Unable to click on "Allow Permission" while chat heads are active

It's been annoying me so much. I just got the Redmi Note 4. I've been installing new apps. I'd installed Messenger first and I'd activated pop-up windows for messenger so that I could get chat heads.
Now every time I install a new app and it asks for permissions, I can't allow (but I can deny) the permissions until and unless I close the chat heads.
Anyone know a way around it? AND, yes, I do need the chat heads. I wanna be able to use chat heads and simultaneously allow permissions too.
Thank you.
Hi,
What ROM are you running, can you post an about phone screenshot here.
Sent from my Redmi Note 4 using Tapatalk
You cant. Its a measure by Google, to prevent malicious applications from drawing an overlay and enabling permissions by itself.
Wilderone said:
Hi,
What ROM are you running, can you post an about phone screenshot here.
Sent from my Redmi Note 4 using Tapatalk
Click to expand...
Click to collapse
Yeah.
Sorry for the late reply. Here.
I have the same problem too. It's something to do with downloaded apps that have the screen overlay pop-up permission.
You have to check out which of your downloaded apps are giving you the problem.
Simply better and quick fix: Whenever you end up in the permission manager inside any app, just switch to settings, installed apps and go to the app that needs permission. On that app page, you have the APP PERMISSIONS option. Open that and enable or disable whatever permissions you want.
Hope that should be of help!

Categories

Resources