How to setup App Ops using shizuku in MIUI - General Questions and Answers

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

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

Permission manager not working any more, but old permissions still exist

Hello,
in times of Nexus5 and 4.4 I used the permission manager to set all permissions I want random apps to have.
I declined the gps access to my banking app (German Postbank app).
Then I updated to 4.4.2 and the permission manager app stopped working.
Today I found out that the banking app could show me the cashpoint next to me. Unfortunately the banking app still doesn't seem to be able to use gps.
How can I reactivate the permissions?
...this means the permission manager does still exist.
cybercrash said:
Hello,
in times of Nexus5 and 4.4 I used the permission manager to set all permissions I want random apps to have.
I declined the gps access to my banking app (German Postbank app).
Then I updated to 4.4.2 and the permission manager app stopped working.
Today I found out that the banking app could show me the cashpoint next to me. Unfortunately the banking app still doesn't seem to be able to use gps.
How can I reactivate the permissions?
...this means the permission manager does still exist.
Click to expand...
Click to collapse
do a factory reset OR install Xposed framework and install the AppOps module and then change the permissions you want ( of course you have to be rooted to use Xposed). i don't think you have any other options.
p.s. questions should go in tht Q&A section

Brevent

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

My phone installing an app by itself

hey, i am confused by my android phone. it is installing an app called 'notification' by itself. i have tried to stop it by restricting 'installing from unknown sources' in settings and by uninstalling superSu. but it keeps installing it. i want to know why& how this is happenning.
roskee said:
hey, i am confused by my android phone. it is installing an app called 'notification' by itself. i have tried to stop it by restricting 'installing from unknown sources' in settings and by uninstalling superSu. but it keeps installing it. i want to know why& how this is happenning.
Click to expand...
Click to collapse
Some other app that you've installed is doing it.
Have you rooted your device?
What method did you use to root it?
Did you use Kingroot or KingoRoot?
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Droidriven said:
So other app that you've installed is doing it.
Have you rooted your device?
What method did you use to root it?
Did you use Kingroot or KingoRoot?
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Click to expand...
Click to collapse
Yes, there must be some app you've installed that keeps installing the strange app.
No unusual app
I don't realy hv uncommon app. all are the ones everybody use. if useful i could list them.
roskee said:
I don't realy hv uncommon app. all are the ones everybody use. if useful i could list them.
Click to expand...
Click to collapse
It absolutely has to to be something you installed.
You didn't answer me question, by the way.
Did you root your device with Kingroot or KingoRoot? If so, that is what is doing it.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
not with kingroot!
i rooted it with framaroot about a year ago.but the 'self install' thing began two weeks ago. new apps i hv installed are AIDE,,SCR pro & apk editor pr
Go to “developerettingUncheckInstall apps from external sources”(or something like that).
If the app is installing from play store delete the last install app. It maybe any thing like anti virus, phone booster, battery booster, twrp, recovery etc.
If the app is not installing from play store but downloading from internet then Go to settings> enable developer options> uncheck the box which says “Install apps from un trusted sources (or something like that). Then uninstall the last installed app or the app which u think is causing this issue. Same as above list.
Try closing all tabs in ur browser also.
Then install C cleaner app. Run it. Delete the files which u don't know. Then back to normal

Dreame Home App stopped working with Root

Hi!
Recently, I have been unable to open the Dreame Home App. My device has been rooted. When opening the application, an error message appears (presumably in Chinese) which says
"检测到该应用在root环境中运行".
All I can read is... "root"
With Magisk, I have ensured that the app no longer sees that the device is rooted. The app now opens initially without an error message. However, it closes automatically after a few seconds, without an error message.
Does anyone here have an idea what the cause might be and how I can get a handle on this problem?
[Mods: I have deleted my other post, please leave this here.]
The error message you mentioned, "检测到该应用在root环境中运行," translates to "Detected that the app is running in a root environment" in English. The Dreame Home App might be using advanced root detection methods that can bypass standard root-hiding techniques. It's possible that the app has implemented additional checks beyond just looking for the presence of root files or system modifications.
If possible, try disabling root access temporarily or unrooting your device entirely. This will help determine if the app's behavior is directly related to the root status. Also, you can try other root-hiding modules.
matthewJ32 said:
Also, you can try other root-hiding modules.
Click to expand...
Click to collapse
Thanks for your tips and ideas. Which other root hiding modules are you referring to?
niko26 said:
Thanks for your tips and ideas. Which other root hiding modules are you referring to?
Click to expand...
Click to collapse
I also used Magisk, but I know that there are modules like "Hide My Root" and "RootCloak". I can't guarantee success, but you can try.

Categories

Resources