Introduce Brevent - Black Prevent without Root - Android Apps and Games

I, the original author of Prevent Running, now introduce Brevent.
In short, Prevent without Root. You can get it from here: https://play.google.com/store/apps/details?id=me.piebridge.brevent or http://piebridge.me/br/, and source code: https://github.com/brevent/Brevent
There are several ways to prevent running for apps:
- Force-Stop, will set stopped state, no static broadcast, sinde Android 3.2, requires android.permission.FORCE_STOP_PACKAGES
-- can granted to privileged apps, /System/PrivApp
-- adb shell has it, Brevent can use
- App-Standby, since Android 6.0, requires android.permission.CHANGE_APP_IDLE_STATE
-- only granted to Framewok apps having the same singature with framework.apk
-- adb shell has it, Brevent can use
So as you can see, Brevent working on the adb shell, having the shell permission, and can do a lot of things.
Furthermore, Brevent use directy android hide methods, instead using dumpsys, am, cmd and so, more effective.
However, there is one restriction, as the permissions cannot be granted to apps, so Brevent requires you run the adb after every boot.
But, Brevent requires no-reboot to undate Brevent Server. And phone should be use, not for reboot.

Executing on everyreboot not good enough cos not with computer everytime. u can create something like Airfrozen. Similar function but with root

Hi, If I'm rooted, should I keep Prevent running 2.3.2 or is Brevent better?

Brevent not working
I execute the ADB command and it worked very briefly, but now it continuously says the server is not running. I try re-executing the ADB command, which says the server has started, but the app doesn't recognize it and still shows server not responding. Sometimes it will work and I'll start to mark apps to freeze, but then while doing that the "server not responding" message pops up again. Any ideas why?

Works great on Samsung Galaxy S7 Edge running Android 7.0!
*The only drawback is you have to go through ADB to enable it everytime you restart the phone.

Great app, but I have a problem. Play Store doesn't install any app, but when I restart the phone, it does. I suppose that an update of these app, it stop running a Google service.

What happened to the root version?

folusmile said:
Executing on everyreboot not good enough cos not with computer everytime. u can create something like Airfrozen. Similar function but with root
Click to expand...
Click to collapse
If you have rooted, it's possible. And Brevent now supoort root mode as experimental feature.
If you have no root, it's not possible.
And there is some way like device administrator to gain some permission.
However, there is only a device administrator. And device administrator has no the permissions to standby / force-stop other apps.

Sir_gpm said:
What happened to the root version?
Click to expand...
Click to collapse
Root version is the same with adb version, it can only avoid adb.
However, there are some issues on root version due to selinux and other issues.
For example, some rooted devices cannot dumpsys, which is required by Brevent.
If you have rooted, you can try root version.
And if it doesn't work, just create an issues on github: https://github.com/brevent/Brevent

danielcuervog said:
Great app, but I have a problem. Play Store doesn't install any app, but when I restart the phone, it does. I suppose that an update of these app, it stop running a Google service.
Click to expand...
Click to collapse
You *may* brevent some apps shouldn't be brevented, like packageinstaller or defcontainer.
I suggest you don't brevent system / framework apps if you're unsure.
For myself, I have brevented play store, and can install apps, and the play store can get update.

BartlebytheScribe said:
I execute the ADB command and it worked very briefly, but now it continuously says the server is not running. I try re-executing the ADB command, which says the server has started, but the app doesn't recognize it and still shows server not responding. Sometimes it will work and I'll start to mark apps to freeze, but then while doing that the "server not responding" message pops up again. Any ideas why?
Click to expand...
Click to collapse
please create an issue on github with logs.

petr232 said:
Hi, If I'm rooted, should I keep Prevent running 2.3.2 or is Brevent better?
Click to expand...
Click to collapse
If you can use Prevent running 2.3.2, you probaly use Android 6.0-.
If you're tired of rooted / unlock / Xposed, you can try Brevent.
If you want to standby apps, you can try Brevent.
And IMO, Brevent is more intelligent:
1. back / home / recents list, both of them works well
2. standby, Brevent works greate.
3. UI. I think Brevent is nicer.
And please note, there are more users prefer Brevent to Prevent Running.
https://play.google.com/store/apps/details?id=me.piebridge.brevent&hl=en: less than 50,000 in one year, and no support.
https://play.google.com/store/apps/details?id=me.piebridge.forcestopgb&hl=en: more than 50,000 in short months.
There is no support from me for Prevent Running.
And, I'm sorry for old Prevent Running users, I shouldn't transfer it.

liudongmiao said:
You *may* brevent some apps should be brevented, like packageinstaller or defcontainer.
I suggest you don't brevent system / framework apps if you're unsure.
For myself, I have brevented play store, and can install apps, and the play store can get update.
Click to expand...
Click to collapse
I have brevented some system useless apps, and I fixed the problem. This is a great alternative to Greenify in Non-root mode. Thanks pal!

danielcuervog said:
I have brevented some system useless apps, and I fixed the problem. This is a great alternative to Greenify in Non-root mode. Thanks pal!
Click to expand...
Click to collapse
Just find the typo.. "should be brevented", should be "shouldn't be brevented"...
Just be careful when brevent system apps.
On my pixel, it cost more battery when brevented all system apps.
// I just to check whether it will crash when brevent all system apps.

Hi @liudongmiao, wanna ask would u include "hold home key to lock screen (support fingerprint sensor)" feature or something like that in future? Thanks.

exeon said:
Hi @liudongmiao, wanna ask would u include "hold home key to lock screen (support fingerprint sensor)" feature or something like that in future? Thanks.
Click to expand...
Click to collapse
Brevent only do simple things, force-stop / app-standby apps, nor other things. So, hold home to lock screen is not the things that Brevent should do.

Hi, I have another problem. I updated the phone software and I can't re-activate Brevent. I have this message. I have a S7 edge with Nougat stock.
EDIT: I fixed the problem. I didn't read the new command.

danielcuervog said:
Hi, I have another problem. I updated the phone software and I can't re-activate Brevent. I have this message. I have a S7 edge with Nougat stock.
EDIT: I fixed the problem. I didn't read the new command.
Click to expand...
Click to collapse
Previous command use /sdcard, in aosp, apps should have write permissions.
However, in some rom, Brevent has no permissions.
So I switch to "/data/data", and it's shorter.

Another question, Is possible contribuite to translate your app? I would like translate to spanish (if available)

i was under the impression it's generally not recommended to force quit apps and let Android handle them? i understand some apps misbehave, but over time would force quitting be bad?

Related

Prevent Google Play Service to be autoinstalled (remove green google settings icon)

Hello!!
This is a simple workaround to prevent the google service (com.google.android.gms-1.apk) that creates the anonying green Google Settings icon.
MANUAL:
1º Uninstall the Google playstore service from application manager or Remove the (com.google.android.gms.apk or com.google.android.gms-1.apk) from /data/app
2º Simply create a file in /data/app named ( com.google.android.gms-1.odex) As empty file.
END.
CWM flasheable:
View attachment antigms.zip]
Flasheable CWM /data/app fake com.google.android.gms-1 files to prevent to be installed.
First uninstall google playstore service and reboot to CWM flash this, and reboot, finish!.
I have been testing for ours and no force close or errors.
Discovered Side-effects:
-loose the remote playstore install functionality (press install from playstore website from pc). , Remote playstore install works!!
Another ideas are welcome.
Play Widgets (Library & Recommendations)
alecuba16 said:
Hello!!
This is a simple workaround to prevent the google service (com.google.android.gms-1.apk) that creates the anonying green Google Settings icon.
MANUAL:
1º Uninstall the Google playstore service from application manager or Remove the (com.google.android.gms.apk or com.google.android.gms-1.apk) from /data/app
2º Simply create a file in /data/app named ( com.google.android.gms-1.odex) As empty file.
END.
CWM flasheable:
View attachment 1769004]
Flasheable CWM /data/app fake com.google.android.gms-1 files to prevent to be installed.
First uninstall google playstore service and reboot to CWM flash this, and reboot, finish!.
I have been testing for ours and no force close or errors.
Discovered Side-effects:
-loose the remote playstore install functionality (press install from playstore website from pc).
Another ideas are welcome.
Click to expand...
Click to collapse
Would you confirm please if Google Play Services is where the widgets for Play Recommendations & Play Library came from, and that they will be gone following your steps above? Thanks!
firstbrick said:
Would you confirm please if Google Play Services is where the widgets for Play Recommendations & Play Library came from, and that they will be gone following your steps above? Thanks!
Click to expand...
Click to collapse
Hello,test yourself, make a nandroid backup and check if it is relationed.
If it is relationed tell me, post there the results.
all this did was prevent me getting into playstore it opened itself and then closed itself????? thanks
Wouldn't it be easier to just go to the Google Play Services app info page and deactivate it? (Just long press in the app drawer and move it to app info)
Or is there any downside that I am not seeing? (besides it taking up a few kb of space)
I didn't test it since I don't mind the icon.
If you have a custom launcher that can can hide apps use that, that way you also keep the functionality it provides.
linuxnubee said:
all this did was prevent me getting into playstore it opened itself and then closed itself????? thanks
Click to expand...
Click to collapse
This prevent the google play service run in background. Playstore continues working as before.
Fabur87 said:
Wouldn't it be easier to just go to the Google Play Services app info page and deactivate it? (Just long press in the app drawer and move it to app info)
Or is there any downside that I am not seeing? (besides it taking up a few kb of space)
I didn't test it since I don't mind the icon.
If you have a custom launcher that can can hide apps use that, that way you also keep the functionality it provides.
Click to expand...
Click to collapse
Not, you can't disable it, this service autostarts automatically. It takes more than few kb, takes about 5MB or more, but this is not the bad.
The bad thing is this could be something relationed with ads and system stadistics and google plus forced by google (remember google don't be evil).
alecuba16 said:
Not, you can't disable it, this service autostarts automatically. It takes more than few kb, takes about 5MB or more, but this is not the bad.
Click to expand...
Click to collapse
I am not talking about closing it but deactivating it. Are we talking about the same option?
Because I have that option.
Why would it restart when I deactivate it? Or is Google not consequent enough here?
I don't want to try it since it will delete all user data and delete the updates.
But you are right, the app is bigger than I thought (both on the storage and RAM).
Fabur87 said:
I am not talking about closing it but deactivating it. I don't want to try it since it will delete all user data and delete the updates.
Click to expand...
Click to collapse
Sure?? I remember when I tried for first time that no....... it doesn't remove any user data, you are wrong..... the settings are stored in com.android.settings and com.android.settings.provider
About the updates it doesn't remove the updates.... the updates are part of playstore.apk/vending.apk and marketupdater.apk, not this.
I have news about playstore remote installation, it works!!!!! without this.
I have three buttons in my google play services app info:
'Beenden erzwingen' - force close ?
'Updates deinstallieren' - uninstall updates
AND
'Deaktivieren' - deactivate
If I hit the deactivate button it asks me if I want to reset all user data and all updates.
Are you perhaps on an older android version that does not yet have this?
Fabur87 said:
I have three buttons in my google play services app info:
'Beenden erzwingen' - force close ?
'Updates deinstallieren' - uninstall updates
AND
'Deaktivieren' - deactivate
If I hit the deactivate button it asks me if I want to reset all user data and all updates.
Are you perhaps on an older android version that does not yet have this?
Click to expand...
Click to collapse
Mine is Gingerbread (Cyanogen Mod 7.2).
Deactivate is like do nothing. For example, I can with systemcleaner put this service apk on the blacklist , but every time that the service starts the application kills like task killer, but this is bad for CPU,RAM and finally batteries, because it scales the cpu mhz up every time that the service tries to reload.
Is the same that if you put a task killer, you can kill the application but it reload again....
I think that the newer versions of playstore/vending calls automatically this apk service.
The solution is to remove and there is no apk = no application installed = no intent receiver = no aplication starts.
The odex file prevent that android application installer (pacman?) install/update the android play service application apk.
This is because if you create a odex of any apk that you have installed and then delete the apk (no the odex), then reset. You could check that the application disapear from app drawler and android application manager but there is the odex file with the same name of the application. But now if you try to reinstall, the android application shows the message of insufficient space only for this application, you can install any other without problem. This is because the android application installer detects the odex file.
My solution is based on this.
Bye.
Download playstore problems
alecuba16 said:
Hello!!
This is a simple workaround to prevent the google service (com.google.android.gms-1.apk) that creates the anonying green Google Settings icon.
MANUAL:
1º Uninstall the Google playstore service from application manager or Remove the (com.google.android.gms.apk or com.google.android.gms-1.apk) from /data/app
2º Simply create a file in /data/app named ( com.google.android.gms-1.odex) As empty file.
END.
CWM flasheable:
View attachment 1769004]
Flasheable CWM /data/app fake com.google.android.gms-1 files to prevent to be installed.
First uninstall google playstore service and reboot to CWM flash this, and reboot, finish!.
I have been testing for ours and no force close or errors.
Discovered Side-effects:
-loose the remote playstore install functionality (press install from playstore website from pc). , Remote playstore install works!!
Another ideas are welcome.
Click to expand...
Click to collapse
I cant find playstore to download. How to get it after deleted? Another thing, I cant find com.google.android.gms-1.apk what I have is
com.google.android.gms-2.apk
alecuba16 said:
Mine is Gingerbread (Cyanogen Mod 7.2).
Deactivate is like do nothing. For example, I can with systemcleaner put this service apk on the blacklist , but every time that the service starts the application kills like task killer, but this is bad for CPU,RAM and finally batteries, because it scales the cpu mhz up every time that the service tries to reload.
Is the same that if you put a task killer, you can kill the application but it reload again....
Click to expand...
Click to collapse
Deactivate != force close.
They are NOT the same thing.
A deactivated app will not react to any intents. This is completely different from what a task killer does.
But user without Jelly Bean (I think that is the version this option came with) won't be able to do that.
So I guess that deleting the app and then blocking it is the only option for them.
apsanchezs said:
I cant find playstore to download. How to get it after deleted? Another thing, I cant find com.google.android.gms-1.apk what I have is
com.google.android.gms-2.apk
Click to expand...
Click to collapse
Hello , playstore to download what?
Yes this is the same file but with other number.
You can uninstall it and make a com.google.android.gms-2.odex or com.google.android.gms-1.apk empty file
Fabur87 said:
Deactivate != force close.
They are NOT the same thing.
A deactivated app will not react to any intents. This is completely different from what a task killer does.
But user without Jelly Bean (I think that is the version this option came with) won't be able to do that.
So I guess that deleting the app and then blocking it is the only option for them.
Click to expand...
Click to collapse
I would recommed that you test it (deactivate) and check with adb shell and top command or "ps" to check if the service runs.
I had JB in the past and I was unable to deactivate. Every time that I entered in the playstore app , the Google services apk was called and running.
Not working
alecuba16 said:
I would recommed that you test it (deactivate) and check with adb shell and top command or "ps" to check if the service runs.
I had JB in the past and I was unable to deactivate. Every time that I entered in the playstore app , the Google services apk was called and running.
Click to expand...
Click to collapse
The procedure not works with CM10: Tested.
apsanchezs said:
The procedure not works with CM10: Tested.
Click to expand...
Click to collapse
Hello!!
Did you check if you have any gms-xxx.apk installed??
app
alecuba16 said:
Hello!!
Did you check if you have any gms-xxx.apk installed??
Click to expand...
Click to collapse
Yes I have that app. I have followed your procedure with negative results. I also tested with FXP210
alecuba16 said:
Hello!!
This is a simple workaround to prevent the google service (com.google.android.gms-1.apk) that creates the anonying green Google Settings icon.
MANUAL:
1º Uninstall the Google playstore service from application manager or Remove the (com.google.android.gms.apk or com.google.android.gms-1.apk) from /data/app
2º Simply create a file in /data/app named ( com.google.android.gms-1.odex) As empty file.
END.
CWM flasheable:
View attachment 1769004]
Flasheable CWM /data/app fake com.google.android.gms-1 files to prevent to be installed.
First uninstall google playstore service and reboot to CWM flash this, and reboot, finish!.
I have been testing for ours and no force close or errors.
Discovered Side-effects:
-loose the remote playstore install functionality (press install from playstore website from pc). , Remote playstore install works!!
Another ideas are welcome.
Click to expand...
Click to collapse
There is a lot more going on here. These Google Excreta Droppers are spying on us. I disabled it in startup, and it adds back itself.
The Google Play Services is pushed back in around 2 days after you uninstall. Within these 2 or three days, the Google Play wont install or download any app, it just shows the running bar. Now they have changed the color of their feces. I disabled the Google Play Services. and when I updated the youtube and run it, It says I cannot use it without Google Play Services. I uninstalled the update and it runs like before.
rotten Poop!!
They are definitely spying on us.
I advice you all the users, Do not sit relax. These feces holes should get serious piles, so that their feces accumulate in their bodies and never come out. It will happen.
Man havent you experienced this?
Should I use clock work mod recovery boot to install the attached zip?
And please let me know whether it will allow me to run updated youtube and other services without the Google Play Services.
Will the blank fix everything as before?
try getting amazon market not quite google but nearenuf.
when it asked me for my credit card details i just force closed app and reopened it to proceed because i put username password in it worked
Hmm.. This Google setting app might become useful after this May or in Android 5.0, key lime pie.. Since it's not hogging ram or consuming battery, why not just hide it?
Sent from my Nexus 7 using xda app-developers app

[Q] Force Close Crashed Games?

So...I am just wondering,
if the game crashes when I'm streaming on my Shield,
ie: game crashes, but still running in background process
Normally i would use task manager to stop the process itself to force close it,
but what can you do when you're streaming? I can't find any option regarding closing crashed apps
And if you go on Steam, you MAY be able to launch another game to play,
but for the same game, you will get "App already running".
Any ideas?
siuking666 said:
So...I am just wondering,
if the game crashes when I'm streaming on my Shield,
ie: game crashes, but still running in background process
Normally i would use task manager to stop the process itself to force close it,
but what can you do when you're streaming? I can't find any option regarding closing crashed apps
And if you go on Steam, you MAY be able to launch another game to play,
but for the same game, you will get "App already running".
Any ideas?
Click to expand...
Click to collapse
I would try a hot reboot. You're going to need root and then terminal emulator to run the commands, or download any one of many apps that have a hot reboot feature. If you're going to go the terminal route way run this. I'm not saying it will work but it's worth a shot.
Code:
su
setprop ctl.restart zygote
hexitnow said:
I would try a hot reboot. You're going to need root and then terminal emulator to run the commands, or download any one of many apps that have a hot reboot feature. If you're going to go the terminal route way run this. I'm not saying it will work but it's worth a shot.
Code:
su
setprop ctl.restart zygote
Click to expand...
Click to collapse
Oh crap...that's kinda complex isn't it?
so basically if I haven't rooted it (which I did), but I haven't installed all these dev tools, i still can't do anything when the apps crash
siuking666 said:
Oh crap...that's kinda complex isn't it?
so basically if I haven't rooted it (which I did), but I haven't installed all these dev tools, i still can't do anything when the apps crash
Click to expand...
Click to collapse
If it's rooted all you need is terminal emulator from the store.rom toolbox lite has a built in script for a hot reboot but you need busy box if you go that route
Hit thanks if I helped you out. Doing a little bit of reading goes a long way. Sent via tapatalk.

Easiest way to get rid of System apps on Miui

So, it's a well known fact that a lot of us hate miui mostly because of the number of bloatwares it comes with. While we can easily uninstall the third party bloatwares, but the problem comes in when it comes to system apps. We can't simply uninstall them, neither can we disable them (surprisingly miui doesn't show any disbale option or even if it's there, it's already greyed out). So, we need to either root our device to easily uninstall them or need to use a bit more complex ADB method.
So, today I will share an easy but tricky way to disable any system app. It has two advantages over ADB debloat method or root method. First, you don't need to be technically sound. Second, you can revert them back in just one tap if you feel so.
So just follow the below steps to disable any system apps in miui.
1. Open Google Play Store
2. Go to the top left menu option
3. Scroll down and click on "Help & feedback"
4. Now click on "Browse all articles"
5. Now locate "Delete or disable apps on android"
6. Click on it and then click on "Tap to go to application settings"
7. Now you will be presented with all apps that are there on your device. Just tap on the app of your desire.
8. Click on "Disable" and voila! The app is disabled as long as you don't wish to enable it again.
I know some users will say it won't free up space as it will still be present on the device. That's partly true. While the app is still present on the device and still occupies space, but it won't add up any additional data and wont run in the background. I'm sure you know what happens when you disable an app. So, I don't want any argument which is better and blah blah!! Remember, this method is mainly for people who need a solution as simple as possible.
So, what are you waiting for? Go try it today! ?
N.B. Sorry if the post is a bit long. I love explaining things in a detailed way.
Rowdyy Ronnie said:
So, it's a well known fact that a lot of us hate miui mostly because of the number of bloatwares it comes with. While we can easily uninstall the third party bloatwares, but the problem comes in when it comes to system apps. We can't simply uninstall them, neither can we disable them (surprisingly miui doesn't show any disbale option or even if it's there, it's already greyed out). So, we need to either root our device to easily uninstall them or need to use a bit more complex ADB method.
So, today I will share an easy but tricky way to disable any system app. It has two advantages over ADB debloat method or root method. First, you don't need to be technically sound. Second, you can revert them back in just one tap if you feel so.
So just follow the below steps to disable any system apps in miui.
1. Open Google Play Store
2. Go to the top left menu option
3. Scroll down and click on "Help & feedback"
4. Now click on "Browse all articles"
5. Now locate "Delete or disable apps on android"
6. Click on it and then click on "Tap to go to application settings"
7. Now you will be presented with all apps that are there on your device. Just tap on the app of your desire.
8. Click on "Disable" and voila! The app is disabled as long as you don't wish to enable it again.
I know some users will say it won't free up space as it will still be present on the device. That's partly true. While the app is still present on the device and still occupies space, but it won't add up any additional data and wont run in the background. I'm sure you know what happens when you disable an app. So, I don't want any argument which is better and blah blah!! Remember, this method is mainly for people who need a solution as simple as possible.
So, what are you waiting for? Go try it today! ?
N.B. Sorry if the post is a bit long. I love explaining things in a detailed way.
Click to expand...
Click to collapse
not working on 9.1.24
Nfury00701 said:
not working on 9.1.24
Click to expand...
Click to collapse
Lol. You want some proof? I am using 9.1.24 myself and I have disabled Chrome and Gmail by this method. Plzz don't write negative comments if you cant follow the steps properly.
FYI: Sometimes you need to uninstall the updates first before disabling an app. That's how it is. It has nothing to do with miui.
For uninstalling updates, tap on the bottom "More" on the app setting page.
Rowdyy Ronnie said:
Lol. You want some proof? I am using 9.1.24 myself and I have disabled Chrome and Gmail by this method. Plzz don't write negative comments if you cant follow the steps properly.
Click to expand...
Click to collapse
lol
Nfury00701 said:
lol
Click to expand...
Click to collapse
Dude, there's a reason why android doesn't let you disable certain apps. You can't call anything and everything as bloatwares. The app you are trying to disable is an essential part of miui and is responsible for the updates of system apps. Without this app, you won't be able to update any system apps. The same goes for Camera, Clock, Contacts, Dialer, Gallery, Messaging etc. It's not a fault of miui. That's how android works. Use your common sense!!
Rowdyy Ronnie said:
Dude, there's a reason why android doesn't let you disable certain apps. You can't call anything and everything as bloatwares. The app you are trying to disable is an essential part of miui and is responsible for the updates of system apps. Without this app, you won't be able to update any system apps. The same goes for Camera, Clock, Contacts, Dialer, Gallery, Messaging etc. It's not a fault of miui. That's how android works. Use your common sense!!
Click to expand...
Click to collapse
okay. u should update you op coz u mentioned we can disable any system apps. i have uninstalled "apps" before using root. for me Xiaomi Browser is bloatware too. I have used your instruction and failed to disable. common sense isn't so common.
Rowdyy Ronnie said:
Dude, there's a reason why android doesn't let you disable certain apps. You can't call anything and everything as bloatwares. The app you are trying to disable is an essential part of miui and is responsible for the updates of system apps. Without this app, you won't be able to update any system apps. The same goes for Camera, Clock, Contacts, Dialer, Gallery, Messaging etc. It's not a fault of miui. That's how android works. Use your common sense!!
Click to expand...
Click to collapse
no, that's not an "essential" part of the OS. The phone will still function perfectly well even if that app is disabled. please, quit your bs. this has nothing to do with how android works, miui doesn't let you disable it, that's all. it's upto your oem, android, by default will let you disable every single app, whether it breaks your phone or not.

Does removing preinstalled apps using ADB revoke SafetyNet attestation?

Hello,
I stumbled upon a post on removing preinstalled apps using ADB (pm uninstall -u 0 com.app), and after couple hours of googling the only unanswered question I have left about this is: would doing this revoke device's SafetyNet attestation? I.e. would it break Google Pay and banking apps?
The process would involve:
Enabling USB debug
Connecting via ADB and removing a number of apps
Disabling USB debug
Rebooting the device
No root or anything.
I'm running current MiUi, if that helps.
Gendalph said:
Hello,
I stumbled upon a post on removing preinstalled apps using ADB (pm uninstall -u 0 com.app), and after couple hours of googling the only unanswered question I have left about this is: would doing this revoke device's SafetyNet attestation? I.e. would it break Google Pay and banking apps?
The process would involve:
Enabling USB debug
Connecting via ADB and removing a number of apps
Disabling USB debug
Rebooting the device
No root or anything.
I'm running current MiUi, if that helps.
Click to expand...
Click to collapse
No. It should not revoke safety attestation. But if you remove all Google play apps that run in the background, you could potentially loose it because attestation releys on Google services
Further more, be weary and understand what you are doing... Removing certain apps and system files can result in a unusable device
Cheers
Nameless Foe said:
No. It should not revoke safety attestation. But if you remove all Google play apps that run in the background, you could potentially loose it because attestation releys on Google services
Further more, be weary and understand what you are doing... Removing certain apps and system files can result in a unusable device
Cheers
Click to expand...
Click to collapse
You can remove the Play store and all other apps with a user interface but if you remove the google architecture system apps that offer NO user interface, you will not even be able to run the Attestation test anymore
Gendalph said:
Hello,
I stumbled upon a post on removing preinstalled apps using ADB (pm uninstall -u 0 com.app), and after couple hours of googling the only unanswered question I have left about this is: would doing this revoke device's SafetyNet attestation? I.e. would it break Google Pay and banking apps?
Click to expand...
Click to collapse
The code shown doesn't really uninstall an app, it simply hides it to user. Physically removing apps requires another method - and some knowledge of Linux commands
BTW: If the apps you've in mind are installed as system apps or system privileged apps, Android must be rooted to deal with them.
Nameless Foe said:
No. It should not revoke safety attestation. But if you remove all Google play apps that run in the background, you could potentially loose it because attestation relies on Google services
Further more, be weary and understand what you are doing... Removing certain apps and system files can result in a unusable device
Cheers
Click to expand...
Click to collapse
This answers my question, thanks!
jwoegerbauer said:
The code shown doesn't really uninstall an app, it simply hides it to user. Physically removing apps requires another method - and some knowledge of Linux commands
Click to expand...
Click to collapse
As far as I understand it prevents them from running until the next system update, and that is enough. I don't really want to deal with rooting and then getting SafetyNet attestation to pass.
Thank you for the correction though.
jwoegerbauer said:
BTW: If the apps you've in mind are installed as system apps or system privileged apps, Android must be rooted to deal with them.
Click to expand...
Click to collapse
Can you please elaborate? Let's take for example Chrome (com.android.chrome):
It's safe to remove, since in-app web pages are displayed either in WebView or default browser
But it's a "system" app, i.e. I can't uninstall it through Settings.
If my understanding is correct, executing pm uninstall -u 0 com.android.chrome would not remove Chrome from the device, but instead disable it, keeping the APK in ROM, so if I decide to re-enable it at any point in time, I can just install the app from the Google Play Market and it would get re-enabled and updated to latest version.
To actually remove it, I would need to root the phone, log on as root and manually remove the app.
Is this what you were trying to say?
Gendalph said:
As far as I understand it prevents them from running until the next system update, and that is enough. I don't really want to deal with rooting and then getting SafetyNet attestation to pass.
Thank you for the correction though.
Click to expand...
Click to collapse
Wrong. To prevent an app from running you've to disable it:
Code:
adb devices
adb shell "pm disable <PACKAGE_NAME>"
jwoegerbauer said:
Wrong. To prevent an app from running you've to disable it:
Code:
adb devices
adb shell "pm disable <PACKAGE_NAME>"
Click to expand...
Click to collapse
Would using the command
adb shell "pm disable -packagename-"
Essentially be just using the disable function for pre-installed apps?
I think you since the start mean with pre-installed apps the apps that are installed either in /system or /system-priv - often called bloatware. It was the explicit will of OEM/Carrier that those apps will remain untouched by user, otherwise these apps would have been installed by them as user-apps.
As I already said you can only manage those apps if Android is rooted. But rooting Android prevents e.g. banking/payment apps to run because the SafetyNet attestion then will fail: almost all of these apps have the SafetyNet API implemented.
jwoegerbauer said:
I think you since the start mean with pre-installed apps the apps that are installed either in /system or /system-priv - often called bloatware. It was the explicit will of OEM/Carrier that those apps will remain untouched by user, otherwise these apps would have been installed by them as user-apps.
As I already said you can only manage those apps if Android is rooted. But rooting Android prevents e.g. banking/payment apps to run because the SafetyNet attestion then will fail: almost all of these apps have the SafetyNet API implemented.
Click to expand...
Click to collapse
The article I read claims the opposite (and comments support the claim): pm uninstall can be used to completely disable and hide these apps until factory reset or system update without rooting the device.
The article is not in English, however it lists Facebook, OneDrive, OneNote, PowerPoint, OnePlus apps, Google Play Music and a few more as apps you can "uninstall" using this method - they become inaccessible from UI (unless you factory reset or re-install them from Play Market), don't load into memory and don't do anything at all.
Gendalph said:
The article I read claims the opposite (and comments support the claim): pm uninstall can be used to completely disable and hide these apps until factory reset or system update without rooting the device.
The article is not in English, however it lists Facebook, OneDrive, OneNote, PowerPoint, OnePlus apps, Google Play Music and a few more as apps you can "uninstall" using this method - they become inaccessible from UI (unless you factory reset or re-install them from Play Market), don't load into memory and don't do anything at all.
Click to expand...
Click to collapse
May be I'm mistaken. Resume: It's on you to do it correctly.

How To Guide [ADB DEBLOAT] [OOS 12, 11 & Custom ROMs] [2022.10.06 - v2.2] Extreme debloat your OnePlus 9

EXTREME DEBLOAT
Code:
I am not responsible for bricked devices, dead SD cards,
thermonuclear war, asphyxiation due to lack of Oxygen,
ColorOS and OxygenOS migration,
existential crisis,
or you getting fired because the alarm app failed.
YOU are choosing to make these modifications, and if
you point the finger at me for messing up your device, I will laugh at you.
Hi!
First of all, this debloat.txt is heavily based on the work of SirTAVARES, but since his thread is no longer available i thought i might improve it and share.
This debloat file will wipe out almost everything from your phone. I use this debloat for daily usage and i don't see any problems.
Android 11
Support for Android 11 is discontinued.​Get the v1.4 list here for Android 11 if the attachment below does not work.​
v1.4 - Tested with rooted OnePlus 9 running OxygenOS 11.2.9.9 LE25BA, Paranoid Android Ruby Alpha 2 and crDroid 20210716 build.
​Known issues:
- If you have a WiFi network saved, using this debloat will make your phone forget the network.
Fix: If you connect to the network after using these, it won't forget it again.
- Phone lags for 10 seconds and a message with "Settings isn't responding" shows up whenever you open/go back to Bluetooth & Device Connection setting. However if you tap on "Wait" it'll go away, the setting will open and no problem. AFAIK it does not affect the actual functionalities of the settings.
*Changelog*
v1.0 - Release
v1.1 - Added oemtcma, Factory Mode, and Factory Mode Specialtest to the list.
v1.2 - [Comptible with up to OOS 11.2.7.7] Added Cloud Services, Charging Pilar, OnePlus Roaming, Membership, Secure Payment (experimental), Work-Life Balance to the list.
v1.21 - [Comptible with Paranoid Android Ruby Alpha 1] Added Abstruct from Paranoid Android.
v1.3 - [Comptible with Paranoid Android Ruby Alpha 2] Added Paranoid FaceSense to the list (experimental)
v1.4 - [Comptible with latest crDroid & OOS up to 11.2.9.9] Added LogCat, Jelly, Calendar, AudioFX, crDroid Music, Updater, Omni stuff, and some other apps to the list.
[DISCONTINUED]
Android 12​​v2.1 - Tested with rooted OnePlus 9 running OxygenOS 12.C60, LineageOS 19.1 (2022.06.12 build), and AOSPA Sapphire Beta (2022.06.11 build), and Pixel Extended 5.0 (2022.10.04 build)​​Get the list here if the attachment below does not work.​
Yes, it's extreme. I use this for my liking, check the list before uninstalling!
Use at your own risk!
Features:
- Over 100 apps removed. Contains debloat for Google, OnePlus, and other apps
- Experimental Debloat:
GPS & Location
Always-on Display
- Almost everything can be downloaded from the Play Store if you accidentally removed something you didn't want to
(I recommend using the latest platform-tools for ADB)
Usage:
- Turn on USB Debugging
- In cmd type adb devices, and allow adb authorization on device
- Type adb shell
- (Optional) Type su
- Copy & paste the lines starting with "pm uninstall" to the cmd and press Enter. (You can select all or one-by-one too)
- Reboot & Enjoy
For reinstalling accidentally removed apps, try using
adb shell cmd package install-existing <package_name>
To do list:
Find other apps to remove
Known issues:
- Same as Android 11, see above
*Changelog*
v2.0 - Update to Android / OOS 12
v2.1 - [Comptible with latest LineageOS, AOSPA & OOS up to 12.C60] Added apps for OOS, LOS and AOSPA debloat.
v2.11 - Removed DocumentsUI from the list. (Some app depends on it)
v2.2 - [Comptible with Pixel Extended Android 13] Added Security stuff from Google to the list (i find it annoying). Removed Styles & wallpaper as some ROM customization depends on it.
*This could work with other devices with OOS / PA / crDroid running. Try and let me know*
First bit of development for our beloved op9. Fantastic
why llist all those app in your other stuff section? samsung, omnirom, mii, and various other OEM apps not on any OP phone. did you forget to clean up from a list? that paired with using pm uninstall instead of disable doesn't scream "run my script with confidence"
you say "Almost everything can be downloaded from the Play Store " but , not only is thats not true. many are OEM, you extreme debloating almost everything google but keep play store and services?, GPS, AR core,, location services and even webviewer. uninstalling the webviewer will break a a few settings that rely on it, as well as any application that decides to call on it for web content. webviewer is something that should be replaced, not removed.
just root and use magisk moduals made just for desires like that. google replicates uninstalled apps to the secondary slot for reboots in A11, thats why terminal de-bloater tricks it by removing the program but keeping files in the place google checks before deciding to repair itself.
PS check out ADB AppControl with built in de bloating. even offers to backup the programs for you prior (not the data, just apk but its better than nothing)
lastly, i tried to address your flair usage of how-to guide and authoritive writing but re-reading what i said just made me sound like a jerk. i just see someone googling this in the future and getting screwed, by them. Dont be afraid to ask questions when you are unsure about something and workshop initial builds with other members before throwing it out there as a guide.
applyscience said:
why llist all those app in your other stuff section? samsung, omnirom, mii, and various other OEM apps not on any OP phone. did you forget to clean up from a list? that paired with using pm uninstall instead of disable doesn't scream "run my script with confidence"
you say "Almost everything can be downloaded from the Play Store " but , not only is thats not true. many are OEM, you extreme debloating almost everything google but keep play store and services?, GPS, AR core,, location services and even webviewer. uninstalling the webviewer will break a a few settings that rely on it, as well as any application that decides to call on it for web content. webviewer is something that should be replaced, not removed.
just root and use magisk moduals made just for desires like that. google replicates uninstalled apps to the secondary slot for reboots in A11, thats why terminal de-bloater tricks it by removing the program but keeping files in the place google checks before deciding to repair itself.
PS check out ADB AppControl with built in de bloating. even offers to backup the programs for you prior (not the data, just apk but its better than nothing)
lastly, i tried to address your flair usage of how-to guide and authoritive writing but re-reading what i said just made me sound like a jerk. i just see someone googling this in the future and getting screwed, by them. Dont be afraid to ask questions when you are unsure about something and workshop initial builds with other members before throwing it out there as a guide.
Click to expand...
Click to collapse
1. You don't need to use it, all i can say is that because it works for me, i thought i'd share it.
2. "Almost" means most of them, of course there are some that cannot be downloaded.
3. I clearly state in the file that removing stuff can be risky, i didn't say that it can be used with confidence
Mh, always, when I use it, the abdroid calendar storage is no longer available...any ideas? And my calendar app stopps working...
AxelM said:
Mh, always, when I use it, the abdroid calendar storage is no longer available...any ideas? And my calendar app stopps working...
Click to expand...
Click to collapse
The phone works normally without it, and because i don't use it this list will remove those apps.
You can try using adb shell cmd package install-existing <package_name> to reinstall them.
AxelM said:
Mh, always, when I use it, the abdroid calendar storage is no longer available...any ideas? And my calendar app stopps working...
Click to expand...
Click to collapse
this is the situation i was trying to show concern about arising. part of me sympathizes with users who just want better performance and what not and I still do feel OP should have worded this less vague and authoritative because I feel most replies will be from users who assume this is a fleshed out guide and not something slapped together hastily and contains some mis-truths, applicable situations and errors.
That all being said, OP did title it extreme debloat, which is a pretty clear and easy to comprehend so anyone just running this without a considerable understanding of what it does or how it does it is just shooting themselves on the foot.
Don't run extreme de-bloats blindly and don't assume what one user is fine with removing is what you'll be ok with. Also, dont run pm uninstall on anything unless you are 100% sure you know exactly what it is, you will never need it again and if so, know how to install it again. pm disable exists for a reason and more should be aware of it.
If you find yourself habitually dealing with situaitons of something you need or not working, you should probably reinstall the OS. this is a extreme debloat and removes many things that arent easy to just reinstall on their own. (cant state this enough, OP did title it extreme debloat)
If people still want to run this and arent 100% sure they want to commit to the same level of debloat as OP, do yourselves a favor and copy the commands into a word processor and find and replace pm uninstall with pm disable-user --user 0.
OP says "
For reinstall accidentally removed apps, use
adb shell cmd package install-existing <package_name>"
but did you make a copy of the apk before running the script? do you know where its located to point the command to? many of the apks this removes arent even accessible without root folder access. some also cant just be downloaded so if you need something back, you will more than likely be reinstalling the OS.
OP, unless you enjoy replying to people asking how to get "X" back or wondering why "Y" is gone, maybe re-word some things and clarify some of the comments you made. Im not out here trying to belittle you or make you feel any type of way. i guarantee theres millions of things you know and do better than i and thats amazing, thats what makes people coming together and working on outcomes so awesome. or if you are someone who sees anyone offering suggestions/corrections as a personal attack and just want to run a thread with you constantly on the defensive, thats fine too. I really am just trying to prevent people breaking their phones (regaurdless if they deserve it or not becuse, in the end, its titled extreme debloat, come on people lol)
@applyscience: I totally understand your concerns. I checked all the names of the the unistalled files beforehand, but misinterpreted this one. It costs me some time, but fortunatly I work with titanium and so I was able within 3h to get everything to normal.
@_MartyMan_ : I just change the code to my goals and now everything works fine.
Did you know the code, where the files are just frozen, because than you can try it out first and than delete them...
just use
[TOOL] ADB AppControl 1.8.0 🚀 Ultimate App Manager & Debloat Tool + Tweaks
ADB AppControl 🚀 Root is not required. Works with any Android device. Can do almost everything you dreamed about with applications. ADB AppControl - the desktop program, that will allow you to easily manage applications on your android device...
forum.xda-developers.com
Thanks for the list, OP. Always nice to have a breakdown of the debloat apps.
Just as a suggestion to those who do not want to uninstall and feel more comfortable just disabling the apps, you can replace the first part of the commands in the ADB script from:
Code:
pm uninstall --user 0
to:
Code:
pm disable-user
Doing this will also save the state of the app even after doing an OS update.
@_MartyMan
THANK YOU for this guide. I'm rocking the OP 9 5g Pro. My first Oneplus device I decided upon because Facebook does NOT ship with it. And the camera.
As a root enthusiast (Privacy concerns), removing the absolute trash apps embedded in carrier-sponsored Android in the U.S. MUST be done before my device gets it's data turned on.
And your delightful list (All Uninstall) is just what I needed. None of the apps I deleted are ever going to be needed in my life.
Slightly more privacy, and my battery idled on 100% for 5 hours.
I'm off to F-Droid for my usual lineup.
Thank You Again!!!
Updated for OOS 12
Does this actually remove the package/application from the phone, i.e. I get the storage space back that the app was taking up? Or does it only disable the app from 'user 0' and the storage space is unnaffected? I want to permanently remove some packages and so far everything I have seen regarding ADB is that it doesnt remove the pacakge/app, it merely disables it from the primary user.
I am considering rooting and using TWRP or Magisk to permanently remove the packages, but if ADB actually removes them, and I get my storage space back, then I will stick to ADB.
Also, why not remove com.oneplus.brickmode? Its OnePlus's Zen Mode as far as I can tell and is completely worthless. If I am wrong please correct me so I can re-enable this package.
RonnieDoitch said:
Does this actually remove the package/application from the phone, i.e. I get the storage space back that the app was taking up? Or does it only disable the app from 'user 0' and the storage space is unnaffected? I want to permanently remove some packages and so far everything I have seen regarding ADB is that it doesnt remove the pacakge/app, it merely disables it from the primary user.
I am considering rooting and using TWRP or Magisk to permanently remove the packages, but if ADB actually removes them, and I get my storage space back, then I will stick to ADB.
Also, why not remove com.oneplus.brickmode? Its OnePlus's Zen Mode as far as I can tell and is completely worthless. If I am wrong please correct me so I can re-enable this package.
Click to expand...
Click to collapse
I'm unsure. Your correct looked it up it's Zen mode your probably fine. I uninstalled Zen mode through titanium it shows this now.
RonnieDoitch said:
Does this actually remove the package/application from the phone, i.e. I get the storage space back that the app was taking up? Or does it only disable the app from 'user 0' and the storage space is unnaffected? I want to permanently remove some packages and so far everything I have seen regarding ADB is that it doesnt remove the pacakge/app, it merely disables it from the primary user.
I am considering rooting and using TWRP or Magisk to permanently remove the packages, but if ADB actually removes them, and I get my storage space back, then I will stick to ADB.
Also, why not remove com.oneplus.brickmode? Its OnePlus's Zen Mode as far as I can tell and is completely worthless. If I am wrong please correct me so I can re-enable this package.
Click to expand...
Click to collapse
It's still there, it's only removed for the current user. All i know is that is does not show up in Greenify so i think it's not running in the background.
What would be the command to delete red cable pro?
Updated with new apps for OOS, AOSP, and LOS. Enjoy
Can this be used for Oos 12 c62?
paz999 said:
Can this be used for Oos 12 c62?
Click to expand...
Click to collapse
Very likely - not tested though. Not much changed since C60

Categories

Resources