Immersive mod activation for certain apps with adb shell without root - Xiaomi Redmi Note 5 Pro Questions & Answers

Hello!
Is' it possible to activate immersive mode for certain apps over adb shell but without root access?
Did somebody tried this?
I'm asking this primary because of "issue" with status bar and Google Chrome (it's not hidden like it should be, at least for me).
Thank You all on reading and answer!
Here is shell list:
adb shell settings put global policy_control immersive.full=com.android.chrome
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
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:1793)
at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:974)
at com.android.providers.settings.SettingsProvider.insertGlobalSetting(SettingsProvider.java:948)
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:359)
at android.content.ContentProvider$Transport.call(ContentProvider.java:401)
at com.android.providers.settings.SettingsService$MyShellCommand.putForUser(SettingsService.java:387)
at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:285)
at android.os.ShellCommand.exec(ShellCommand.java:96)
at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
at android.os.Binder.shellCommand(Binder.java:597)
at android.os.Binder.onTransact(Binder.java:495)
at android.os.Binder.execTransact(Binder.java:700)
I have found a solution!!!
Answer in this particular case is that to be able to change permissions man must change option in developer menu to allow granting permissions!

Getting same error.. it required write permission...
You can try this commands
adb shell pm grant com.android.chrome android.permission.WRITE_SECURE_SETTINGS
adb shell settings put global policy_control immersive.full=com.android.chrome
Enable write permission and then run immersive command.
Let me know if it works.

You can use tasker/automagic, which has been granted write secure permission. Then create a profile/trigger with the app Chrome, action turn on the immersive mode. I use Automagic and the example is here
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
When you scroll up, the url bar also hidden. If you swipe from top or bottom, the status bar and navbar appear as in the right one. You can choose to hide the statbar only, navbar only or both.

SunilSuni said:
Getting same error.. it required write permission...
You can try this commands
adb shell pm grant com.android.chrome android.permission.WRITE_SECURE_SETTINGS
adb shell settings put global policy_control immersive.full=com.android.chrome
Enable write permission and then run immersive command.
Let me know if it works.
Click to expand...
Click to collapse
Nope!
Didn't worked!
Here is the shell list:
adb shell pm grant com.android.chrome android.permission.WRITE_SECURE_SETTINGS
Operation not allowed: java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.

Desmanto said:
You can use tasker/automagic, which has been granted write secure permission. Then create a profile/trigger with the app Chrome, action turn on the immersive mode. I use Automagic and the example is here
When you scroll up, the url bar also hidden. If you swipe from top or bottom, the status bar and navbar appear as in the right one. You can choose to hide the statbar only, navbar only or both.
Click to expand...
Click to collapse
First let me thank You!
Second, my intention is to enable this on system level, without any kind of utility. If this is not possible, then i will probably give up, on my shame :silly:

Jehonan said:
Nope!
Didn't worked!
Here is the shell list:
adb shell pm grant com.android.chrome android.permission.WRITE_SECURE_SETTINGS
Operation not allowed: java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
Click to expand...
Click to collapse
Ok, we all want to achieve the solution with the minimum footprint. Xiaomi's phones all have additional security for the usb debug. You have to enable the USB debugging (security settings) first (below the USB debugging) to be able to grant write secure permission, adb input and similar command. To enable it, you have to login first using your Mi Account, then pass thru the 3 times prompt and OK. Then try your adb shell command again, it should works fine now (command successful, or no error shown).

Desmanto said:
Ok, we all want to achieve the solution with the minimum footprint. Xiaomi's phones all have additional security for the usb debug. You have to enable the USB debugging (security settings) first (below the USB debugging) to be able to grant write secure permission, adb input and similar command. To enable it, you have to login first using your Mi Account, then pass thru the 3 times prompt and OK. Then try your adb shell command again, it should works fine now (command successful, or no error shown).
Click to expand...
Click to collapse
Heh, sadly after reboot all changes are history
So at least for now, no luck

Jehonan said:
Heh, sadly after reboot all changes are history
So at least for now, no luck
Click to expand...
Click to collapse
It seems my post yesterday vanish...
Your last resort is Automation app. You can try most of them first to see if it fits your need. I personally use Automagic. A simple flow with App Task Started : Chrome and Action Set Immersive Mode - without navigation. And another flow to reset it.
I have used about 40+ active flows, and still managed to get about 10+ hours SOT. So the app almost doesn't drain any battery. But it has helped throughout my daily activities, can't imagine my daily life without it anymore.

Related

[How to]Root Project Astoria

Root section #​Hello guys,
after 45564564165 hours of research (joke but this took me about 1 week ._.) I finally rooted Project Astoria
Images
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Current issues​Apps can't request root because of limit of project astoria. I'm working on it.
Procedure​Perform an Hard reset first.
After settings up, deploy Root Tool.
Go to Lumia Registry Editor, click on navbar > templates and then select all.
Close the app and go to settings > Update and security > For developers.
Enable developer mode and click on Discovery. It should show to you the pin.
Download Astoria Tools.rar
Extract it.
Open that extracted folder.
You should see wconnect and so on.
On the "void" area, make SHIFT + Right click, and then click to "Open Command prompts here".
Write wconnect usb and write the pin.
After this, download AOW shortcut.7z in the attachment, extract it, copy that in your phone, example "Phone\Documents"
Now, go to your phone and open File Explorer. Open Documents and click on Aow shortcut
Go to RootFS directory and delete the file init.
Warning, there are 2 files, you need to delete "init.rc", it has about 20-19 KB.
Restart now your phone.
Keep it plugged on computer and wait about 5 minutes. it should you show "Windows Phone" device connection.
Open it and go to: Data\Users\DefApps\APPDATA\Local\Aow\RootFS
Download from Astoria folder link, the latest Rootkit & Gapps version.
Extract it.
Copy ALL Files to the phone (Data\Users\DefApps\APPDATA\Local\Aow\RootFS).
It ask you if you want to replace/merge files. Say Yes.
Press yes if it show this to you:
After you finished you need to set MTP to the standard path.
Download CustomPFD and deploy it.
Open that app.
Navigate to TWEAKS PAGE and click to General tweaks.
Navigate to UTILITIES: check FULL FS ACCESS and uncheck again.
Restart your phone.
Download Superuser.rar and extract it on Astoria tools folder.
After boot, connect to your pc and install superuser.apk (adb install superuser.apk)
After installation, you can launch the command "adb shell" and as you can see you are a root user
I'm really destroyed but at the same time happy
THANKS​djamol and ngame for his Interop Unlock method/app.
Marocco2 for his help.
snickler for his help.
Pasqui industry for making CustomPFD.
(I forgot someone?)
And all member of XDA and the world itself
Download​
Astoria Folder (Astoria Tools - AOW shortcut - Rootkit & gapps): http://astoriafolder.adeltax.com (Redirect to mediafire)
Attached some files because of problem with mediafire (stupid block)
-- EDIT --
If you have problem with installing APK after root, go to your phone and delete packageinstaller.odex using Aow shortcut and going to RootFS > System > app folder (The lowest size, approx 153 KB)
GAPPS Section​
Not yet, still working on it.
Here will be my "research"
Changelog:
v0.72
First version.
I will make GUI Installer/Package manager or something like this.
You are a monster, on fire!
\o/.
U are my hero o/
Happy rooting
Ah so you actually have to delete the init.rc files and wait for them to reproduce? That's why! Awesome job. I can't wait to test this out @ADeltaX
Hello there,
I can then the Google Play Store etc. properly use and also
Install Android applications on the Store from Google?
HannHenne said:
Hello there,
I can then the Google Play Store etc. properly use and also
Install Android applications on the Store from Google?
Click to expand...
Click to collapse
Not yet. For now it's very hard to resolve an "issue".
@ADeltaX, have you tried Insecure root or insecure su binary? The su binary that doesn't rely on a root management app like SuperSU? Because we can get direct root access on an app instantly if it requests for root with that...
Sent from Ponyville
Can we get a custom android with root now?
Got to final Stage now im getting an error code 14 Problem booting Astoria
Using Lumia Icon (929) on OS 10166
Lanex777 said:
Can we get a custom android with root now?
Click to expand...
Click to collapse
Nope, you need to edit Hyper-v library (and this is impossible)
darkcroc said:
Got to final Stage now im getting an error code 14 Problem booting Astoria
Using Lumia Icon (929) on OS 10166
Click to expand...
Click to collapse
Some files are missing on AOW folder.
Retry and replace the folder again.
mrchezco1995 said:
@ADeltaX, have you tried Insecure root or insecure su binary? The su binary that doesn't rely on a root management app like SuperSU? Because we can get direct root access on an app instantly if it requests for root with that...
Sent from Ponyville
Click to expand...
Click to collapse
Nope, Sincerely I never heard about insecure SU binary.
The SU version is a modded one, because if I use the SuperSU version, on invoking SU it say "segmentation fault" --> mean something doesn't work like shared object (library aka .so).
Someone can compile strace binary for armeabi/armeabi-v7a?
At this time Virtual Box doesn't want to start (I have Linux Mint in VM with AOSP source).
ADeltaX said:
Nope, Sincerely I never heard about insecure SU binary.
The SU version is a modded one, because if I use the SuperSU version, on invoking SU it say "segmentation fault" --> mean something doesn't work like shared object (library aka .so).
Click to expand...
Click to collapse
Some Chinese tablets I fix had insecure su... How did I know? When I adb shell it's already # . Or those only work with adb and not apps requiring su permission?
Sent from Ponyville

[APP][CM] Install Location - choose where to install apps

#Henkate said:
For me, the weather widget works, also in notification drawer.
Regarding install location, take a look here, as a alternative: http://android.stackexchange.com/questions/43517/installing-to-sdcard-by-default
Run in terminal:
(0 auto, 1 internal and 2 external sd card)
PHP:
pm set-install-location 0/1/2
EDIT:
@samiblm : if you want, i can make a small app with Tasker which ask you where you want to install everytime you are in Package Installer ( the menu after you click to install an .apk). The app would work like this: when it see that you are in Package Installer ( you want to install an app), a small popup appears and ask you where you want to install, you choose and then you can install.
Click to expand...
Click to collapse
Pirex69 said:
That would be nice ��
Enviado do meu SM-J500FN através de Tapatalk
Click to expand...
Click to collapse
Alright. I've made a small app using Tasker for CM which will show a popup with option to choose where to install the app you want. The app run in background and the popup appears when you are in Package Installer (when you want to install an app). I hope you'll find it useful as the setting regarding it is gone in latest cm release.
I called it Install Location.
To run that pm set-install-location commands we need root, so the app need root too because that.
Please read the below informations.
HOW IT WORKS?
Upon first run, it run su command to get root access. If you decline the access, the app won't work, so it will ask for su again after you open it again. If you allow the access, then it will turn a profile on which shows a popup to choose install location when it detect that you are in Package Installer. The Package Installer it's the trigger. You choose your choice, then the popup dissapear and then simply install the app you want.
NOTES
1) If you want to cancel the popup, just press back button (phone button).
2) If you want to stop this app from showing the popup, then simply force close it in settings.
3) If you greenify / hibernate the app, then it stop working.
4) There shouldn't be any battery drain.
5) BUG: when you uninstall an app, the popup will appear too since uninstalling apps is done by Package Installer too. I don't think there's any way to fix this, at least I don't have any idea.
6) The app should work on other phones/ROMs as long the command pm set-install-location is supported.
DOWNLOAD
APK is attached to this post.
SCREENSHOT
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
PROJECT SOURCES
Download source: http://www.mediafire.com/?x45maikt876f7kk
It is Tasker code. You must install Tasker and then copy the file Install_Location.prj.xml to Tasker folder > projects, then open Tasker, press on home icon, choose import and choose the .prj file you copied. Then you got the source and can edit it as you like. To build app with Tasker, you need to install it's plugin named App Factory (Google play store). You can find basic informations like how to import project on Google or i think even on Tasker website.
Reserved
@samiblm said that isn't working for him, but for me is working fine. Can someone else confirm this?
Anybody can confirm whether is working for you or not? lol
Sorry that i didnt have time to reply earlier than this, but here is the thing; when i type the command in the termonal i get this error :
And since the app uses this same command, it will obviously fail to complete the task
samiblm said:
Sorry that i didnt have time to reply earlier than this, but here is the thing; when i type the command in the termonal i get this error :
And since the app uses this same command, it will obviously fail to complete the task
Click to expand...
Click to collapse
Write "su" (without quotes) and press "enter", then write the pm command.. My app does run su command before pm command too when you choose your option in the popup, to make sure that the command will work.
It works for me, but I don't understand why doesn't work for you.
So, write su command before that and let me know if there's any error.
#Henkate said:
Write "su" (without quotes) before the command with pm. My app does run su command before pm command too when you choose your option in the popup, to make sure that the command will work.
It works for me, but I don't understand why doesn't work for you.
So, write su command before that and let me know if there's any error.
Click to expand...
Click to collapse
Seems to work fine under root
---------- Post added at 06:29 PM ---------- Previous post was at 06:26 PM ----------
ajislav said:
Seems to work fine under root
Click to expand...
Click to collapse
Edit, I should clarify..
Running su first and then "pm set-install-location 2" works fine, but "su pm set-install-location 2" ends with an error as there is no user pm
ajislav said:
Seems to work fine under root
---------- Post added at 06:29 PM ---------- Previous post was at 06:26 PM ----------
Edit, I should clarify..
Running su first and then "pm set-install-location 2" works fine, but "su pm set-install-location 2" ends with an error as there is no user pm
Click to expand...
Click to collapse
I meant that you have to write "su" and press "enter". Sorry for the misunderstanding.
Does the app work for you?
#Henkate said:
Does the app work for you?
Click to expand...
Click to collapse
It asks for root when I run it from the launcher, but it does not ask for install location when installing an app...
ajislav said:
It asks for root when I run it from the launcher, but it does not ask for install location when installing an app...
Click to expand...
Click to collapse
I don't understand what's wrong. I've tested it myself and it is working fine for me When you want to install an app, the pop-up should appear (like in the screenshot from first post), before touching "install".
I'll try to make a new one and I'll remove the su check at first run.
#Henkate said:
I don't understand what's wrong. I've tested it myself and it is working fine for me When you want to install an app, the pop-up should appear (like in the screenshot from first post), before touching "install".
I'll try to make a new one and I'll remove the su check at first run.
Click to expand...
Click to collapse
Not sure if it is su related.
I changed root access from always ask to allowed but it did not make a difference.
I can test for you, if you want.
Btw, j500F with CM 20160821 version here
I did what you suggested and no error is given this time, but it's still not working and the apps are still getting installed in the internal sdcard ..

[Guide] Remove roaming clock on latest update

1. Download hxxps://play.google.com/store/apps/details?id=by4a.setedit22&hl=en (Sorry i cant post link, change hxxp to http)
2. Enable developer mode, grant write secure permission for the app:
Code:
adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
3. Open the app, change table to "Secure table", find "roaming_dualclock" setting and change the value to "1".
vanhoavn said:
1. Download hxxps://play.google.com/store/apps/details?id=by4a.setedit22&hl=en (Sorry i cant post link, change hxxp to http)
2. Enable developer mode, grant write secure permission for the app:
Code:
adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
3. Open the app, change table to "Secure table", find "roaming_dualclock" setting and change the value to "1".
Click to expand...
Click to collapse
Finally, I can remove the dual clock on Android 10. Thanks so much for the solution.
Could this method not be used to reactivate FASTBOOT on v450pm ?? remove the locksim ?? activate the dual sim ???
spa1978 said:
Could this method not be used to reactivate FASTBOOT on v450pm ?? remove the locksim ?? activate the dual sim ???
Click to expand...
Click to collapse
No...
Yeah its working on android 10, thanks mate!
Wait what? I'm confused, so I downloaded the app and granted all the permissions and developer mode was already enabled. I executed the code over there to system table inside the app but it doesn't seem to be working when I tried to change the value of roaming_dualclock. Any solutions?
Jimook99 said:
Wait what? I'm confused, so I downloaded the app and granted all the permissions and developer mode was already enabled. I executed the code over there to system table inside the app but it doesn't seem to be working when I tried to change the value of roaming_dualclock. Any solutions?
Click to expand...
Click to collapse
You should do the permission with adb command on pc not on your device
vanhoavn said:
1. Download hxxps://play.google.com/store/apps/details?id=by4a.setedit22&hl=en (Sorry i cant post link, change hxxp to http)
2. Enable developer mode, grant write secure permission for the app:
Code:
adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
3. Open the app, change table to "Secure table", find "roaming_dualclock" setting and change the value to "1".
Click to expand...
Click to collapse
Exactly what is the usefulness of this procedure???
spa1978 said:
Exactly what is the usefulness of this procedure???
Click to expand...
Click to collapse
Just to remove the annoying second clock in lock screen.
vanhoavn said:
Just to remove the annoying second clock in lock screen.
Click to expand...
Click to collapse
Ahhhhh it works .... on v50 sprint android 10 !!!!!!
very well
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
martin_yo said:
You should do the permission with adb command on pc not on your device
Click to expand...
Click to collapse
haha thx i didn't know
But omfg it worked anyways!!! I spent more than a year to solve this problem lol
Also how do I move the clock to the center lol why is it at the left side (It's available in Android 9 but not in Android 10)
Jimook99 said:
haha thx i didn't know
But omfg it worked anyways!!! I spent more than a year to solve this problem lol
Click to expand...
Click to collapse
Wait... WHAT?
" I spent more than a year to solve this problem "
REALLY?
BTW, How to enable split-screen multitasking in Android 10 on LG V50 (Korean)?
beboylqt said:
Wait... WHAT?
" I spent more than a year to solve this problem "
REALLY?
BTW, How to enable split-screen multitasking in Android 10 on LG V50 (Korean)?
Click to expand...
Click to collapse
Recent button > Tap and hold icon of the app you want to view in Multi window mode > Select Multi window > Select the 2nd app
beboylqt said:
Wait... WHAT?
" I spent more than a year to solve this problem "
REALLY?
BTW, How to enable split-screen multitasking in Android 10 on LG V50 (Korean)?
Click to expand...
Click to collapse
Haha technically yeah, my first attempt was done from about a year ago and was keep trying with different methods. For your question, the person above has answered it so you may check that.
quantan said:
1. Download hxxps://play.google.com/store/apps/details?id=by4a.setedit22&hl=en (Sorry i cant post link, change hxxp to http)
2. Enable developer mode, grant write secure permission for the app:
Finally, I can remove the dual clock on Android 10. Thanks so much for the solution.
Click to expand...
Click to collapse
You dont need any app for removing it
You can use adb
shell settings put secure roaming_dualclock 1
You can also check it here:
https://forum.xda-developers.com/android/help/lg-korean-variant-t3970883
jTunes said:
You dont need any app for removing it
You can use adb
shell settings put secure roaming_dualclock 1
You can also check it here:
https://forum.xda-developers.com/android/help/lg-korean-variant-t3970883
Click to expand...
Click to collapse
Thanks for this, it also works on my V30 Pie LG U+
Spent ages trying to get this and every other method to work, turns out on SKT you have to change "skt_roaming_dualclock" to 1 rather than "roaming_dualclock"
Metalligator said:
Spent ages trying to get this and every other method to work, turns out on SKT you have to change "skt_roaming_dualclock" to 1 rather than "roaming_dualclock"
Click to expand...
Click to collapse
Thats for SKT
roaming_dualclock is for LG-U+ and KT
Thanks! Working on my LG G7 running android 10.
vanhoavn said:
1. Download hxxps://play.google.com/store/apps/details?id=by4a.setedit22&hl=en (Sorry i cant post link, change hxxp to http)
2. Enable developer mode, grant write secure permission for the app:
Code:
adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
3. Open the app, change table to "Secure table", find "roaming_dualclock" setting and change the value to "1".
Click to expand...
Click to collapse
Finally manage to remove the second clock on my V50 on Android 10. Thanks for this guide.

How To Guide [HOW TO] Restore WiFi and Cellular Data in Quick Settings (Root Required)

Unhappy with the new Internet Settings Quick Settings tile?
You can restore the old WiFi and Cellular Quick Settings tiles by running the following adb command (root required):
Edit: Seems the November update broke this, however, credit to raimondas-rimkus who has found a workaround! Post here.
Inject this setting first:
adb shell settings put global settings_provider_model false
Then run this command:
adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
Enjoy!
Yeh, I'm not a fan of that new internet tile! Will be changing it via adb... Cheers
I'm rooted on my P6 Pro and this didn't work for me. Worked for me on my 4XL though.
Cares said:
I'm rooted on my P6 Pro and this didn't work for me. Worked for me on my 4XL though.
Click to expand...
Click to collapse
ditto and i didn't know how to revert, it f*d up my whole tile layout just reflashed.
Pixel 4a 5G here.
Did the update to Android 12, and immediately adb'd my tiles back, worked fine.
2 days later I got the November 5 Update, now the settings are gone.
Tried again, this time without any effect. Seems like Google strengthened their grip around their users ***** (phones).
I think I managed to bypass the "fix" that was introduced in November 5 update.
The code that removes the tiles: https://cs.android.com/android/plat...temui/qs/customize/TileQueryHelper.java;l=124
This checks for "settings_provider_model" feature flag in build.props. Overriding of these flags is allowed thru Developer Options -> Feature Flags. Sadly no feature flags are shown there as of now.
BUT, we can still inject this setting:
adb shell settings put global settings_provider_model false
Now running the original adb command will work:
adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
I used the following to get a Wifi tile using Tasker and some other tools: https://www.xda-developers.com/bring-back-wifi-toggle-quick-settings-android-12-tasker-project/
raimondas.rimkus said:
I think I managed to bypass the "fix" that was introduced in November 5 update.
The code that removes the tiles: https://cs.android.com/android/plat...temui/qs/customize/TileQueryHelper.java;l=124
This checks for "settings_provider_model" feature flag in build.props. Overriding of these flags is allowed thru Developer Options -> Feature Flags. Sadly no feature flags are shown there as of now.
BUT, we can still inject this setting:
adb shell settings put global settings_provider_model false
Now running the original adb command will work:
adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
Click to expand...
Click to collapse
I can confirm this worked for me.
raimondas.rimkus said:
I think I managed to bypass the "fix" that was introduced in November 5 update.
The code that removes the tiles: https://cs.android.com/android/plat...temui/qs/customize/TileQueryHelper.java;l=124
This checks for "settings_provider_model" feature flag in build.props. Overriding of these flags is allowed thru Developer Options -> Feature Flags. Sadly no feature flags are shown there as of now.
BUT, we can still inject this setting:
adb shell settings put global settings_provider_model false
Now running the original adb command will work:
adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
Click to expand...
Click to collapse
Thanks a lot! This worked. I will update the OP with this info and give you credit
This worked for me but I'm pretty sure I had to edit my Quick Navigation settings to actually add the toggle to the list.
For the longest time, I thought it never worked until I saw a video about an .apk that adds the Wi-fi toggle and they said to edit the Quick Navigation settings to actually add the Wi-Fi toggle to the Quick Navigation list. :/
Worked for me as well (after rebooting).
Note that you must have 'adb shell settings put global settings_provider_model false', otherwise it will not work.
It works immediate ! For 6 Pro
Perfect, this worked for me.
It works for me as well but Idk why I've got this error:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
asdor said:
It works for me as well but Idk why I've got this error:
View attachment 5471923
Click to expand...
Click to collapse
Use Command Prompt (CMD) instead of PowerShell. There's a way to get commands to work in PowerShell but I never remember how.
Hurray! Great. But I always used PowerShell for all my previous phones as well as for rooting my current Pixel 6 Pro and there were no issues.
Thank you!!!
asdor said:
Hurray! Great. But I always used PowerShell for all my previous phones as well as for rooting my current Pixel 6 Pro and there were no issues.
Thank you!!!
Click to expand...
Click to collapse
You're welcome! Glad it's something easy. Me too (ADB/Fastboot used to work as is in PowerShell). I think Microsoft changed PowerShell enough over the last several years that made regular old commands require some extra characters typed before the commands to get them working.
Maybe it was a security enhancement to PowerShell so that if you're meaning to type a PowerShell command and there's an executable in the same folder by the same name as the PS command, then it's not accidentally running the executable instead, and makes you type extra characters since that's far less likely to be an accident.
There's also the wonderfully neat official Microsoft Terminal app in their store. You can have mix and match of Command Prompt and PowerShell in separate tabs in the same window. I think it has other features as well.
roirraW edor ehT said:
You're welcome! Glad it's something easy. Me too (ADB/Fastboot used to work as is in PowerShell). I think Microsoft changed PowerShell enough over the last several years that made regular old commands require some extra characters typed before the commands to get them working.
Maybe it was a security enhancement to PowerShell so that if you're meaning to type a PowerShell command and there's an executable in the same folder by the same name as the PS command, then it's not accidentally running the executable instead, and makes you type extra characters since that's far less likely to be an accident.
There's also the wonderfully neat official Microsoft Terminal app in their store. You can have mix and match of Command Prompt and PowerShell in separate tabs in the same window. I think it has other features as well.
Click to expand...
Click to collapse
In powershell:
./adb shell settings put global settings_provider_model false
./adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
bouchigo said:
In powershell:
./adb shell settings put global settings_provider_model false
./adb shell settings put secure sysui_qs_tiles "wifi,cell,$(settings get secure sysui_qs_tiles)"
Click to expand...
Click to collapse
Ah yes, thank you. dot forward-slash. dot forward-slash. Hopefully, I remember.
I hope someone finds a way to do this fro non-rooted 6 Pro

Themes / Apps / Mods (Depreciated) RAM PLUS FOR SAMSUNG GALAXY F62

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
OFFICIAL TELEGRAM
Samsung Galaxy F62/M62 | Discussion
Official Global Discussion & Support group for Samsung Galaxy F62/M62. Our Official Channels: Updates: @SamsungGalaxyF62Updates Discussion: @SamsungGalaxyF62Discussion
t.me
Samsung Galaxy F62/M62 | OFFICIAL
Official Discussion group for ➤
Samsung Galaxy F62/M62
Official Channels & Groups ➤
• Updates : @SamsungGalaxyF62Updates
• Off-Topic : https://t.me/SamsungGalaxyF62Discussion
--++INTRODUCTION++--​
Users can enjoy enhanced performance for RAM-intensive games or photo and video editing mobile applications, and a smoother experience while running multiple mobile applications simultaneously thanks to virtual RAM Expansion.
Silently, the Korean tech giant has introduced the virtual RAM extension functionality, which brings up to 4GB of additional space to the smartphone. To be noted, the Galaxy A52s received Samsung RAM Plus feature along with a new firmware update, which makes RAM expansion possible. Makers are now extending it through software updates.
We had wondered at the time if RAM Plus would come to more Galaxy devices, and it looks like it will. RAM Plus was included in a software update for the Galaxy A52 5G recently, and while we thought it would only be available on the company’s mid-range and budget phones, that’s not the case. We can enable this feature now on this new bike device Samsung galaxy F62
After following this tutorial you can check if RAM Plus is available on your Galaxy device by opening the Settings app, going into the Battery and device care submenu, and tapping Memory.
REQUIREMENTS:​To Enable WRITE_SECURE_SETTINGS you will need a pc or if you are rooted you can follow root method .​For windows users = Working ADB and Usb Debugging Enabled.
For Rooted Users = Terminal Emulator (available in Google play store for free)
SetEdit (Settings Database Editor) - IMPORTANT APP (APP SHOULD NOT BE REMOVED AFTER MODDING)​
INSTRUCTIONS (ROOTED METHOD)​First steps you need to download and open the SetEdit Database editor app and open it.​Now as default it is “GLOBAL TABLE” and tap +ADD SETTINGS and you can see it is asking for WRITE_SECURE_SETTINGS permissions.
Now Download any Terminal Emulator and grant it necessary root permissions when asked.
*TYPE “SU” IN TERMINAL EMULATOR TO GRANT ROOT PERMISSIONS.
Copy the code below and paste it into terminal emulator to give it WRITE_SECURE_SETTINGS permissions.
Code:
pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
After applying this code open back the SetEdit App and now you can see it won’t ask for WRITE_SECURE_SETTINGS Permissions again.
Now tap the +Add New Setting button and name the setting as “ram_expand_size” and tap save changes and next it will show SETTINGS_VALUE remove this name and put this decimal “4096” now tap save changes that’s it. close the app and now by opening the Settings app, going into the Battery and device care submenu, and tapping Memory. ​
INSTRUCTIONS (WINDOWS METHOD “ADB")​1. Enable developer mode: go to android settings => about phone and look for the build number option. Touch it multiple times until developer mode is enabled.​2. Enable USB debugging: go to android settings => developer options and look for USB debugging and enable it​3. Install adb on your computer: check out this for a quick way to do this. At the bottom of the link you’ll find links for adb downloads for each system. Download it and extract it to “C:\adb”​4. Connect device with computer: connect your device with your computer and look at your phone. A prompt may show up asking you to allow debugging by your computer. Accept this.​5. Open command prompt: go to the fodler where you have extracted adb to and open your command prompt from within this folder. Simply open your command (press windows key, type cmd and press enter) and go to the folder where you have extracted adb to like following:​
Code:
cd C:\adb
6. Grant permission: Insert following command in the command prompt:​
Code:
adb shell pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS
​Now tap the +Add New Setting button and name the setting as “ram_expand_size” and tap save changes and next it will show SETTINGS_VALUE remove this name and put this decimal “4096” now tap save changes that’s it. close the app and now by opening the Settings app, going into the Battery and device care submenu, and tapping Memory. ​​That’s it now you got the new Samsung Ram Plus Feature and don’t uninstall the SETEDIT App if u uninstall the app it will remove the ram expand string.​
I did everything as per your non rooted instructions. I know to use adb well. No errors occurred. The set edit app also shows my new setting added in the list but the memory still shows 8gb.
Is there anyone else who has managed to do this without root?
reis1996 said:
I did everything as per your non rooted instructions. I know to use adb well. No errors occurred. The set edit app also shows my new setting added in the list but the memory still shows 8gb.
Is there anyone else who has managed to do this without root?
Click to expand...
Click to collapse
It's virtual ram and DOSEN’T show up in actual ram. So your ram will be as like manufacturer but virtual ram is used when actual ram is filled
Hi RC, thank you so much for the info, it worked well.
I did this but not sure if its working or not. Any way to confirm this?
Btw cmd prompt gave me "adb.exe: no devices/emulators found" messages after writing down the secure setting string permission
KomitaMKD said:
I did this but not sure if its working or not. Any way to confirm this?
Btw cmd prompt gave me "adb.exe: no devices/emulators found" messages after writing down the secure setting string permission
Click to expand...
Click to collapse
rarely the extra ram plus is used btw. so the ramplus is only used when your ram gets filled up. you can download app called "Ram Fill Memory" and give it a try. or u can try apps like ram truth for ramplus usge
KomitaMKD said:
I did this but not sure if its working or not. Any way to confirm this?
Btw cmd prompt gave me "adb.exe: no devices/emulators found" messages after writing down the secure setting string permission
Click to expand...
Click to collapse
kill and restart adb server

Categories

Resources