Brevent - Android Apps and Games

https://forum.xda-developers.com/android/apps-games/introduce-brevent-black-prevent-root-t3559151

three suggestions:
- if no need to turn on usb debugging then is good, because disabling usb debugging to pass safetynet check and play PokemonGo
- if no need to execute additional adb shell command, i don't always have a computer or laptop beside me so it would be great if the command can be executed by app itself, i don't mind root because my device, is rooted.
- across reboot, don't need to re execute anything would be good too

where is the apk. I must be blind
NVM it was in the google play store

hi
,can you post the link of the app??

Is there a way to blacklist and force app to sleep that are marked important
Sent from my hero2qltetmo using XDA Labs

Can't be executing on everyreboot.

Can I execute it just by a terminal emulator?

can we use greenify with brevent? If i already greenify an app. Should i brevent the same app again ?

lack of support from author. app was very good but tedious to enable (need pc everytime)

I haven't had the issue with lack of support from the developer. He's been quickly responding to the issues I made on its repository on Github.

Would be great if the OP Developer can release instructions in English too.
Sent from my griffin using XDA Labs

duplicate thread closed
https://forum.xda-developers.com/android/apps-games/introduce-brevent-black-prevent-root-t3559151

Related

Android permission WRITE_SECURE_SETTINGS can only be used by apps signed with system

Hi all,
I am trying to write an app that requires the Android permission WRITE_SECURE_SETTINGS which I know is only granted to system apps so I want to have my app push a second apk to /system/app and install after a reboot (via "su" so I understand device will need to be rooted). I can get the apk into /system/app and install fine. Then I use my first app to send messages to the helper that can use
Code:
Settings.Secure.putInt()
because the helper is a system app, which is how I imagine the excellent app Secure Settings does it.
The problem I have is that when the helper tries to call
Code:
Settings.Secure.putInt()
it crashes and I see logs saying the permission WRITE_SECURE_SETTINGS is not being given to my app (the helper).
Is it correct that only apk's signed with the system keys can have this permission? If I manage to sign my apk with these keys, will it work on any device from any manufacturer?
I'd love to know how Secure Settings does it and I've asked the devs, but I understand they wont want to give too much away.
Thanks
Got it working with using WRITE_SECURE_SETTINGS and not needing signing with system keys.
Coming along fantastic now.
???
Can you tell us how you got it working? I'm trying to turn airplane mode on and off, and need WRITE_SECURE_SETTINGS to work on 4.2 and above.
nexus_2006 said:
Can you tell us how you got it working? I'm trying to turn airplane mode on and off, and need WRITE_SECURE_SETTINGS to work on 4.2 and above.
Click to expand...
Click to collapse
Yes, would be nice to help others also
aww this thread is the first result on google

[TOOL] [NO-ROOT]System Apps uninstaller script

What it is?
Its a Windows Batch Script that with the help of adb shell command removes multiple System Apps without requiring Root access. Currently this script removes ("Chrome, youtube, google maps, google keep, default oppo browser and default oppo music").
How to use it?
Install ADB and ADB drivers in your computer, if you don't know how to, then click on this ===> XDA Install ADB and drivers
Download the script "rm1debloat.bat" and paste it in the directory where you have installed ADB.
Connect your device "Realme 1" to the computer with USB debugging turned on.
Once the above steps are done, click on rm1debloat.bat, it will first check if your device is detected by ADB or not, if not then uninstall will be unsuccessful.....if detected then directly starts uninstalling the above mentioned apps.
On success your output must be similar to the image attached below
In case you don't want an app mentioned above to be removed then open rm1debloat.bat in a notepad and delete the line with its specific package name or you could even add an app that needs to be removed:laugh::fingers-crossed:
Thank you very much for this uninstaller.
It worked without any issue.
MAKW38 said:
Thank you very much for this uninstaller.
It worked without any issue.
Click to expand...
Click to collapse
Glad to help
Please update the script according to latest firmware i.e. ColorOS 6.0 A39. I can do manually but for other people
thx for share
will this still works for the latest update of colorOS? OPPO A5s 1909?
Can you upload the bat script?
Can you please upload rm1debloat.bat file?

Can you give permissions (via adb) to a terminal app?

Hey all, long time no see. Anyways, I'd like to be able to do quite a few adb commands without actually using adb here locally on the device. So I was curious and started thinking, could you use adb to grant a terminal emulator app (i.e. Termux, the one I use) permissions such as DUMP and WRITE_SECURE_SETTINGS, or whatever else it may need to perform certain commands like clear cache and install apps. I obviously don't have root (Dag on US Carriers). Maybe I don't have a great understanding of what these permissions do? Any help is appreciated.
Unfortunately you cannot just pop into adb and try to give the app the permission, as termux doesn't request it. Termux:API does not as well. I saw somewhere over on Github some guy edited the source of Termux:API and added more APIs to use, I just don't know how to compile an app from source)
Thanks,
Gavin
Craz Basics said:
Hey all, long time no see. Anyways, I'd like to be able to do quite a few adb commands without actually using adb here locally on the device. So I was curious and started thinking, could you use adb to grant a terminal emulator app (i.e. Termux, the one I use) permissions such as DUMP and WRITE_SECURE_SETTINGS, or whatever else it may need to perform certain commands like clear cache and install apps. I obviously don't have root (Dag on US Carriers). Maybe I don't have a great understanding of what these permissions do? Any help is appreciated.
Unfortunately you cannot just pop into adb and try to give the app the permission, as termux doesn't request it. Termux:API does not as well. I saw somewhere over on Github some guy edited the source of Termux:API and added more APIs to use, I just don't know how to compile an app from source)
Thanks,
Gavin
Click to expand...
Click to collapse
Terminal Emulator is the same thing as ADB shell(adb shell, not the normal adb), anything that can be done from PC using ADB shell can also be done using Terminal Emulator app, the commands are the same except the "adb" or "adb shell" part is removed from the command.
For example "adb reboot recovery" would instead be "reboot recovery" or "adb shell dumpstate" would instead be "dumpstate".
Some commands might not work or might need other protocols, parameters or switches added to the command.
But, unfortunately, you can't set Termux or any other app to have access to change or pull anything from system without root, if you don't have root, you're wasting your time. You cant change anything about the system without root unless you have TWRP, it can do whatever it wants to do and the device can't stop it.
Sent from my LGL84VL using Tapatalk
Droidriven said:
Terminal Emulator is the same thing as ADB shell(adb shell, not the normal adb), anything that can be done from PC using ADB shell can also be done using Terminal Emulator app, the commands are the same except the "adb" or "adb shell" part is removed from the command.
For example "adb reboot recovery" would instead be "reboot recovery" or "adb shell dumpstate" would instead be "dumpstate".
Some commands might not work or might need other protocols, parameters or switches added to the command.
But, unfortunately, you can't set Termux or any other app to have access to change or pull anything from system without root, if you don't have root, you're wasting your time. You cant change anything about the system without root unless you have TWRP, it can do whatever it wants to do and the device can't stop it.
Click to expand...
Click to collapse
I understand it's the same thing, and I'm not wanting to change anything related to the system. I'm wanting to do commands such as install apps and clear data. It gives me errors when I try and do this, because I don't have permission. If I am understanding correctly, you can decompile an app, add in the appropriate APIs for the permission, and recompile it. This way you won't get an error when you try to give it a permission (adb shell pm grant com.termux android.permission.WRITE_SECURE_SETTINGS). It tells me the app doesn't request this permission.
Craz Basics said:
I understand it's the same thing, and I'm not wanting to change anything related to the system. I'm wanting to do commands such as install apps and clear data. It gives me errors when I try and do this, because I don't have permission. If I am understanding correctly, you can decompile an app, add in the appropriate APIs for the permission, and recompile it. This way you won't get an error when you try to give it a permission (adb shell pm grant com.termux android.permission.WRITE_SECURE_SETTINGS). It tells me the app doesn't request this permission.
Click to expand...
Click to collapse
If you want the app to be able to access those permissions then you need to push the app to /system to make it a system app, apps outside of system can't access those permissions.
After moving the app to system, boot to recovery and wipe only the cache partition(if you have custom recovery, wipe dalvik cache also), then reboot the device.
But, unfortunately, you aren't rooted so it isn't an option for you, you need to root your device.
But even that won't help, see here:
https://stackoverflow.com/questions...-permission-error-even-when-added-in-manifest
Sent from my LGL84VL using Tapatalk
Droidriven said:
If you want the app to be able to access those permissions then you need to push the app to /system to make it a system app, apps outside of system can't access those permissions.
After moving the app to system, boot to recovery and wipe only the cache partition(if you have custom recovery, wipe dalvik cache also), then reboot the device.
But, unfortunately, you aren't rooted so it isn't an option for you, you need to root your device.
Click to expand...
Click to collapse
Take SystemUI Tuner from the Play Store for example, it requires those permissions to do its thing. It does NOT need to be a system app to utilize them, they just need to be granted manually via adb. Greenify does this as well.
As for root, I would if I could. Verizon Note 9 is locked down like Fort Knox.
Craz Basics said:
Take SystemUI Tuner from the Play Store for example, it requires those permissions to do its thing. It does NOT need to be a system app to utilize them, they just need to be granted manually via adb. Greenify does this as well.
Click to expand...
Click to collapse
Yes, some apps can access that permission, but it's built into the app, it isn't just granted via adb or terminal. Read some of the link that I posted above. As far as I knew, accessing secured settings/permissions required root and/or unlocked bootloader, but, things always change. Granted, over the years, things change and trickier things have to be done get mods and apps to do certain things without root, but it's not quite changing/accessing the system.
Sent from my LGL84VL using Tapatalk
Droidriven said:
Yes, some apps can access that permission, but it's built into the app, it isn't just granted via adb or terminal. Read some of the link that I posted above. As far as I knew, accessing secured settings/permissions required root and/or unlocked bootloader, but, things always change. Granted, over the years, things change and trickier things have to be done get mods and apps to do certain things without root, but it's not quite changing/accessing the system.
Click to expand...
Click to collapse
Just took a look, strange. Greenify and SystemUI Tuner are considered 3rd party, correct? Maybe it's it's something with their signature? (I don't know much about signatures either)
And yes I'm aware you have to add it into the app, the app requests it and you can grant it via adb.
Think my question is answered now anyway, no lol. Thanks for your responses man.

any debloat guide or list?

Tried debloating a few things in terminal with magisk module and apparently broke something and dirty flashed to get it back is there any guide or list for debloating 8T? Hopefully the TMO variant
spart0n said:
Tried debloating a few things in terminal with magisk module and apparently broke something and dirty flashed to get it back is there any guide or list for debloating 8T? Hopefully the TMO variant
Click to expand...
Click to collapse
Best way is :
> REMOVE using ADB, edit your list and copy/past for remove all unwanted apps
https://technastic.com/oneplus-bloatware-list-oxygen-os-debloater/
I advice to select only things that you know
or
> FREEZE unwanted apps using "Disable Application" or "Titanium Backup Pro"
Advantage to only freeze apps is after an OTA, all apps keep freezed, not if you have removed them
spart0n said:
Tried debloating a few things in terminal with magisk module and apparently broke something and dirty flashed to get it back is there any guide or list for debloating 8T? Hopefully the TMO variant
Click to expand...
Click to collapse
I too have the T-Mobile model, and while I have my bootloader unlock token I have yet to actually pull the trigger on rooting, so for now I'm using ADB to disable or delete s**t apps. Be careful with what you disable or uninstall. Both links below suggest using an app called App Inspector so you can find the app's package name, but this app is doubly helpful because you can use it to download a copy of the system app APK for a backup, in case your phone decides it's not happy with what you have done.
-App Inspector Play Store Link:
https://play.google.com/store/apps/details?id=com.ubqsoft.sec01
-This link is a guide to disable built-in apps (NOT to delete/uninstall, simply disable, so the app is still there but dormant until you re-enable).
https://www.xda-developers.com/disable-system-app-bloatware-android/
-This link is a guide on how to fully uninstall/delete apps though.
https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
I personally used the uninstall guide to get rid of the built-in "GameSpace" app & my phone has been fine (I play ZERO games ever). I noticed GameSpace was basically running constantly & using up battery on standby even though I've never used it. My standby battery drain is much better...thanks T-Mobile & OnePlus!
I use jOnePlus Tools from the Play Store for forcing screen refresh rates universally already (although AutoHz is a great option too!), using ADB to enable it because I don't yet have root. It also provides the option to disable "OnePlus Analytics" if you have root, but if you don't it gives you the ADB shell commands to do it without root.
-jOnePlus Tools Play Store Link:
https://play.google.com/store/apps/details?id=net.jroot3d.joneplustools
Sent from my OnePlus 8T using XDA Labs
Are there any guides for Mac users? I know that we don't use the command but use the terminal... but I'm not sure

How to setup App Ops using shizuku in MIUI

Hi everyone thanks for the reply in advance i searched the forum for someone with similar question and found none. Maybe its because no one is as dumb as I. Anyway from the title you might have understood my question.
I wanted to install App Ops in my Mi11x running MIUI 12.5 (Android 11) using shizuku. But shizuku says the permission on my adb is limited due to my manufacturer and thus cant enable application management to give permission to app ops. I gave shizuku permission to app ops through the system permission manager but that doesnt seem to work. Disabled miui optimization too and still doesnt work. The shizuku app sends me to this link : https://shizuku.rikka.app/guide/setup/
In the guide under miui in there it redirects me to 2 pages in chinese i tried translating with google translate but it just says what i did, that is in the github link. the other i didnt really understand much. Can anyone help me and just give me a guide or something on what i should do?
any help is appreciated. Thanks
Have a good day
Enable developer options, wireless debugging AND USB debugging, pair shizuku, start shizuku, go to App Ops app settings and allow usage of shizuku (from Apps> App Ops> permissions> additional permissions> allow shizuku access) and done. It's because MIUI breaks the dialogue for shizuku app permission

Categories

Resources