Rooted Pixel 5 cannot toggle Location Mode - Tasker Tips & Tricks

tasker granted su via magisk on my rooted pixel 5
also tried the command below
Code:
adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS
i imported my backup from my rooted pixel 3 (can toggle wifi/blue/location mode) onto my rooted pixel 5. so far, it can toggle wifi and bluetooth. however, it cannot toggle location mode.

Related

[HOW-TO] Reset and restore quick setting to default

This is damn useful after doing dirty rom flashes.
I mean normally after you flash a rom without doing wipe, you might miss out new quick setting(wifi, bluetooth, data toggles on swiping down top screen to see notification)
adb shell settings put secure sysui_qs_tiles default
originally found here https://plus.google.com/+KieronQuinn/posts/3ZUzZhGa83s
can confirm this still works on 2020! i'm using miui on redmi note 8 and have no "edit" quick tiles, using this command i can bring back those missing quick tiles. thanks!
Yes thanks this worked for me in 2020 for Xiaomi Mi 10 Pro that was missing the quick setting toggle choices/second page and the edit toggles facility.
ninekaw9 said:
This is damn useful after doing dirty rom flashes.
I mean normally after you flash a rom without doing wipe, you might miss out new quick setting(wifi, bluetooth, data toggles on swiping down top screen to see notification)
adb shell settings put secure sysui_qs_tiles default
originally found here https://plus.google.com/+KieronQuinn/posts/3ZUzZhGa83s
Click to expand...
Click to collapse
I have the same problem: no second page, no edit button for quick toggles.
Unfortunately, the suggested solution with the adb command does not work for me because of some security issu:
Code:
adb shell settings put secure sysui_qs_tiles default
Security exception: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2050)
at com.android.providers.settings.SettingsProvider.mutateSecureSetting(SettingsProvider.java:1570)
at com.android.providers.settings.SettingsProvider.insertSecureSetting(SettingsProvider.java:1530)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:437)
at android.content.ContentProvider.call(ContentProvider.java:2161)
at android.content.ContentProvider$Transport.call(ContentProvider.java:477)
at com.android.providers.settings.SettingsService$MyShellCommand.putForUser(SettingsService.java:375)
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:277)
at android.os.ShellCommand.exec(ShellCommand.java:104)
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:49)
at android.os.Binder.shellCommand(Binder.java:881)
at android.os.Binder.onTransact(Binder.java:765)
at android.os.Binder.execTransactInternal(Binder.java:1021)
at android.os.Binder.execTransact(Binder.java:994)
Any suggestions on how I can make that work?
Edit: My phone is Xiaomi Mi 9T with global ROM, all updates installed.
Solution: "USB debugging (Security settings)" must also be activated. This requires a Mi-Account for the Xiaomi cloud the be entered in the phone settings.
After that, the adb command has worked and has solved the problem:
Code:
adb shell settings put secure sysui_qs_tiles default
Now I have a second page in the quick toggles and I can edit them. (I did not need to reboot the phone.)

[Magisk][Module] FireTV 4K Stick Add-Ons

As we have unlocked bootloader on FiteTV 4K stick now, I made Magisk module, which disables OTA updates, and also includes some Google stuff:
Google Search for TV (2.2 or 3.13) with working Voice Input,
LeanbackOnFire (rockon999) Launcher - support Google Search and Android TV Recommendations,
Screen Rotation - allow set proper orientation for mobile Apps,
[*]Buttons Remapper - allow choose Keyboard, reassign Home, switch between Apps and many more,
[*]FireTVjack - allow reassign Home, set Language, and freeze stock KFTV Launcher,
LeanKey Keyboard Pro (it have multilingual support).
Module also adds Russian language instead Portuguese (and Ukrainian instead Japanese) to FireTV Settings menu and have Russian Settings translation over android resources overlays (must be compatible with future OTA updates).
AFTV Add-Ons (Magisk Module) v20201218 (Fire OS 6.2.7.6 compatible)
Previous:
=======
GDrive (All files)
Tested on Fire TV 4K with FireOS 6.2.6.5 / 6.2.6.6 / 6.2.6.8 / 6.2.7.1 / 6.2.7.3 / 6.2.7.6 and Magisk 20.1-4/21.0. Still under development.
How to install:
===========
- Unlock FireTV bootloader.
- Install Magisk (stable) via TWRP!
* don't ever do install / update Magisk over Magisk Manager on Fire TV 4K!
- Boot to Fire OS and pass Amazon Registration screen
- Check and install all current OS / Apps update in My Fire TV Settings section
- Reboot to TWRP Recovery and install / update module (AFTV-MM-2.0.zip)
* "adb shell reboot recovery" over adb or connect OTG cable with mouse and select Cancel on Power ON
How to update:
===========
Just add new module version in Modules section of Magisk Manager (+) and press Reboot button after.
You need to wait till autorestart on first boot after module update (implemented from v1.8 +).
To freeze stock Amazon launcher:
==========================
adb connect FireTV IP (allow connection on TV)
adb shell
su
settings put global frozenMode enabled
reboot
* KFTV Launcher will be auto-frozen if you'll enable AFTV-XM Xposed Module in Xposed Installer (Modules tab) and have any user launcher installed.
To choose LeanbackOnFire as default Home:
============================
- Install Xposed Framework from Magisk Manager
- Open Xposed Installer - Modules tab and activate AFTV-XM Module
- Reboot
To enable Android TV Recommendations:
================================
- Go to LeanbackOnFire Launcher Settings / Edit Apps Rows / Edit Rows and enable Recommendations Row there
* in case there is toast about needed permissions, do over adb:
adb connect FireTV IP (allow connection on TV)
adb shell
su (grant root access on TV)
pm grant com.amazon.tv.leanbacklauncher android.permission.WRITE_SECURE_SETTINGS
pm disable com.amazon.device.sale.service
reboot
Optional packages to disable:
=============================
pm disable com.amazon.ags.app
pm disable com.amazon.alexashopping
pm disable com.amazon.bueller.music
pm disable com.amazon.bueller.photos # (used for screensaver)
pm disable com.amazon.device.metrics
pm disable com.amazon.device.sale.service # (must be disabled in case LeanbackOnFire recommendations are ON)
pm disable com.amazon.device.software.ota
pm disable com.amazon.device.software.ota.override
pm disable com.amazon.firebat
pm disable com.amazon.hedwig
pm disable com.amazon.tahoe
pm disable com.amazon.tv.alexanotifications
pm disable com.amazon.tv.fw.metrics
pm disable com.amazon.wirelessmetrics.service
pm disable com.android.documentsui
...
GSearch
=======
You can use Voice Input in ATV apps (press on-screen mic and long-press mic on remote and speak)
You can assign ASSIST (keycode 219) in Xposed Edge Pro or other remapper apps to Voice remote button
===
P.S. In case something went wrong You can always do factory reset, remove Module or uninstall / reinstall Magisk and your system will back to full stock - no files in /system partition changed by module.
Have Fun!
tsynik said:
As we have unlocked bootloader on FiteTV 4K stick now, I made Magick module, which disables OTA updates and Metrics, and also includes some Google stuff: Google Search for TV (3.7), LeanbackOnFire (rockon999) Launcher, Launcher Hijack, Screen Rotation, Buttons Remapper and LeanKeyKeyboardPro (it have multilingual support).
AFTV Add-Ons (Magisk Module)
Tested on FireOS 6.2.6.5 and Magisk 19.3. Still under development.
Have fun!
Click to expand...
Click to collapse
Thanks very much, I'm wondering if you could help me, I've rooted my 4k stick but the stick won't go past setup screen as I think it's been blocked by Amazon, is there any chance you could upload a TWRP backup for me to restore in TWRP so I can get into my home screen ? Or you wouldn't know any commands I can use in TWRP terminal ?
I'd love to get this up and running along with this lot what you have done.
Thanks.
Awesome project! Thanks for the hard work, will defo be installing this once i get time to root
Be careful with this .... I had UI restart issues .... had to uninstall
Doesn't work properly for me. Seems to install fine, but nothing happens.
Tepifan said:
Doesn't work properly for me. Seems to install fine, but nothing happens.
Click to expand...
Click to collapse
I've updated module and instructions how to setup. Read 1st post.
Thanks. Will try this tomorrow.
Thanks, installed and working without any discernable issues as of yet. I'll update if I see anything.
For anyone interested in debug options: you can enable KFTV Launcher Debug menu (accessible via HUD).
To enable:
- Install MagiskHide Props Config module from repo
- Install busybox module from repo
- Reboot and override those options with props command via shell:
ro.debuggable=0 to ro.debuggable=1
ro.build.type=user to ro.build.type=userdebug
Have fun!
how to uninstall those alexa update in /data
Masterofchicken said:
how to uninstall those alexa update in /data
Click to expand...
Click to collapse
I too would like to know this, please elaborate for us both.
xionbunny said:
I too would like to know this, please elaborate for us both.
Click to expand...
Click to collapse
just type in adb shell:
su
pm uninstall com.amazon.vizzini
reboot
Working vizzini apk must be this:
mantis:/ $ pm path com.amazon.vizzini
package:/system/priv-app/com.amazon.vizzini/com.amazon.vizzini.apk
Great job. I'm a bit scared cause I dont want to be forced to factory reset if something goes wrong but this weekend I could try nonetheless. Any chance to have Chromecast support (Shield like) and/or Google services?
Thanks.
The pm grant com.amazon.fireh1jack android.permission.SYSTEM_ALERT_WINDOW command is not working for me, it gives me a huge list on how to execute pm commands correctly.
puppinoo said:
Any chance to have Chromecast support (Shield like) and/or Google services?
Thanks.
Click to expand...
Click to collapse
Probably no. There is something weird with fw when placing privileged apps to /system/priv-app. I tried current 7.1 tvstock opengapps package as a module, and it doesn't work (except google search)
@tsynik I cannot get this to work, i unlock bootloader, boot to twrp, install rbox rom then magisk 20.0 reboot to setup then reboot to twrp install your zip file then the commands in your guide wont work.
I am connected to my stick with adb and su but no joy.
---------- Post added at 08:34 PM ---------- Previous post was at 08:33 PM ----------
[/COLOR @tsynik I cannot get this to work, i unlock bootloader, boot to twrp, install rbox rom then magisk 20.0 reboot to setup then reboot to twrp install your zip file then the commands in your guide wont work.
I am connected to my stick with adb and su but no joy.
tsynik said:
Probably no. There is something weird with fw when placing privileged apps to /system/priv-app. I tried current 7.1 tvstock opengapps package as a module, and it doesn't work (except google search)
Click to expand...
Click to collapse
would there eventually be a solution?
xionbunny said:
would there eventually be a solution?
Click to expand...
Click to collapse
Aptoide TV + this module
tsynik said:
Aptoide TV + this module
Click to expand...
Click to collapse
aurora store gives you play store access though, I've turned that for the moment to get my official google play store apps.
Can anyone help me to get this working ?

Terminal Emulator and Magisk

I found the Terminal emulator app that I want to use to do some ADB for PC commands without needing PC and usb. su gives permission denied. So I decided to use Magisk - just installed the Magisk zip from recovery and the Magisk Manager, both are green light in Magisk menu. Now can it grant SU or do I still need SuperSU? SuperSU never worked for me. So Im trying to make it work for Terminal emu, how do I add the Terminal to Magisk's Superuser apps? I also downloaded ADB module from Magisk not sure if there's some ADB native command with it to do the same commands from the phone?
Oh never mind when I typed su in Terminal after having installed Magisk and all its stuff, finally it detected it and the app appeared in Superuser list in Magisk where I can toggle on or off.
xdaprogramm said:
I found the Terminal emulator app that I want to use to do some ADB for PC commands without needing PC and usb. su gives permission denied. So I decided to use Magisk - just installed the Magisk zip from recovery and the Magisk Manager, both are green light in Magisk menu. Now can it grant SU or do I still need SuperSU? SuperSU never worked for me. So Im trying to make it work for Terminal emu, how do I add the Terminal to Magisk's Superuser apps? I also downloaded ADB module from Magisk not sure if there's some ADB native command with it to do the same commands from the phone?
Oh never mind when I typed su in Terminal after having installed Magisk and all its stuff, finally it detected it and the app appeared in Superuser list in Magisk where I can toggle on or off.
Click to expand...
Click to collapse
You will have to
# cd /data/adb
then
# rm ./magisk.db
Do note that in doing so, you have erased all the grant history. However Magisk provides no other options to accomplish this. So this is it.

adb shell su - Permissions denied on rooted Pixel 4 with Magisk

Hey! I have Magisk 23.0 installed on my Pixel 4 (Android 12). The phone is rooted (I can grant apps SuperUser privileges and I also checked that with Root Checker). However, if I try to run su from the adb shell I get Permission denied error and on the screen of my phone it appears Shell was denied Superuser rights. Tbh I have no clue how to fix this, I tried to reboot the phone, clear the cache of Magisk, and set the "Automatic Response" in Magisk to "Grant". Any idea? Thanks!

[Solved] Nethunter crashing after upgrading to android 12

Recently, i've upgraded my rooted S20 FE 5G(SM-G781B/DS) to android 12 from android 11 and I performed a factory reset in the process
I was able to install magisk(Magisk-v23.0.apk) get root access using the official guides in magisk, and flashed twrp(twrp-3.6.0_11-6_afaneh92-r8q.tar).
I then flashed busybox(https://github.com/Magisk-Modules-Repo/busybox-ndk) [it completed successfully]
I installed twrp, and disabled encryption using this guide
[RECOVERY][UNOFFICIAL] TWRP for Galaxy S20 FE 5G (Snapdragon)
Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and...
forum.xda-developers.com
I installed magisk using this guide
Installation
The Magic Mask for Android
topjohnwu.github.io
However, everytime I try to open nethunter it first asks me for permissions, i.e location, Files & Media, Nearby Devices and I give it all the permissions
The magisk permission pop up then appears and I grant it
I then close nethunter and re open it however it just opens & immediately crashes
I tried downloading a busybox checker as well, however it also crashes
I rebooted my phone, repeated the whole process from the beginning(factory reset, odin, etc) thrice now
What could be wrong, or how could I figure out why it's crashing?
Note: I checked TWRP all the files are unencrypted I believe because I was able to see the Android, Downloads, etc
Android 12 needs magisk 24+
try updating magisk and then installing it again using the direct (recommended) method from within the app.
3mel said:
Android 12 needs magisk 24+
try updating magisk and then installing it again using the direct (recommended) method from within the app.
Click to expand...
Click to collapse
updated it, still crashing
I'll try to do it using odin
still crashing...
Alright, so the problem was with the permissions
I'd like to thank Svirusx, without him I would have probably given up a long time ago, he's the one who told me how to fix this
If anyone else ever faces this issue, here's how to fix it
In order to fix the issue,
boot device normally into your OS
Connect your phone with your pc with a cable
Open ADB [https://developer.android.com/studio/releases/platform-tools] // Note: make sure to use the ADB provided here not a decade old one
Copy and paste all of these commands, some of them might error, but just ignore it[Magisk will ask you for superuser access, make sure to grant it] // Note: In windows to paste into terminal just right click
//Note 2: You can just copy the whole thing below and paste it, no need to do it line by line
su
pm grant com.offsec.nethunter android.permission.INTERNET
pm grant com.offsec.nethunter android.permission.ACCESS_WIFI_STATE
pm grant com.offsec.nethunter android.permission.CHANGE_WIFI_STATE
pm grant com.offsec.nethunter android.permission.READ_EXTERNAL_STORAGE
pm grant com.offsec.nethunter android.permission.WRITE_EXTERNAL_STORAGE
pm grant com.offsec.nethunter com.offsec.nhterm.permission.RUN_SCRIPT
pm grant com.offsec.nethunter com.offsec.nhterm.permission.RUN_SCRIPT_SU
pm grant com.offsec.nethunter com.offsec.nhterm.permission.RUN_SCRIPT_NH
pm grant com.offsec.nethunter com.offsec.nhterm.permission.RUN_SCRIPT_NH_LOGIN
pm grant com.offsec.nethunter android.permission.RECEIVE_BOOT_COMPLETED
pm grant com.offsec.nethunter android.permission.WAKE_LOCK
pm grant com.offsec.nethunter android.permission.VIBRATE
pm grant com.offsec.nethunter android.permission.FOREGROUND_SERVICE
echo Completed!
Once you've pasted this whole thing, no need to look at the output[there are probably a lot of errors], just try to open Nethunter and it'll work

Categories

Resources