How To Guide Lock the screen refresh rate to 90HZ/120HZ - Xiaomi Mi 11

#Enter the shell on the PC
adb shell
#Modify peak and minimum refresh rate
settings put system peak_refresh_rate 90
settings put system min_refresh_rate 90
Yes, you have got a global refresh rate setting that will not be invalid even if you restart。
{
"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"
}
#Please note that if you want to restore the settings, you may have to do it again。
settings put system peak_refresh_rate 120
settings put system min_refresh_rate 60

The above commands can also be implemented in the terminal

thx.....

It did not work for me. I get an error message:
java.lang.SecurityException: com.android.shell was not granted this permission: android.permission.WRITE_SETTINGS.

Pacifer94 said:
It did not work for me. I get an error message:
java.lang.SecurityException: com.android.shell was not granted this permission: android.permission.WRITE_SETTINGS.
Click to expand...
Click to collapse
Try to grant shell root permissions

how do you get the settings to stick? it changes on the screen I'm on but as soon as i exit out of it on the phone it reverts back to 120hz
Sorted it. Didnt know i needed to go onto 60hz for it to enable 90

Phone need to be rooted?

hardtheory said:
Phone need to be rooted?
Click to expand...
Click to collapse
It will be smoother after rooted. But theoretically not needed

Can't seem to get this to work, phone is not rooted
Keep getting error

G731882624 said:
#Enter the shell on the PC
adb shell
#Modify peak and minimum refresh rate
settings put system peak_refresh_rate 90
settings put system min_refresh_rate 90
Yes, you have got a global refresh rate setting that will not be invalid even if you restart。
View attachment 5200449
#Please note that if you want to restore the settings, you may have to do it again。
settings put system peak_refresh_rate 120
settings put system min_refresh_rate 60
Click to expand...
Click to collapse
what exactly is it your entering? can you simply list the commands? tried everything i know....this is nothing like fastboot to me lol
nevermind, after a bit of looking (more like 40 seconds, i found the commands lol and added the rest i needed)
to me it would seem that 90hz is extremely jittery (run a game and switch between 60 and 90 using adb shell. youll see what im speaking of.....not so great....when 60 looks smoother...

rafik25 said:
thx.....
Click to expand...
Click to collapse
What apps to show this ?
Thank you

Found this, way more easier:

Use setedit software it is more straight forward and it doesnct have to be rooted, and it is not reverting back

ayamgoreng said:
What apps to show this ?
Thank you
Click to expand...
Click to collapse
PS C:\Users\Rafik25\Desktop> adb shell
venus:/ $ settings put system peak_refresh_rate 90
venus:/ $ settings put system min_refresh_rate 90
venus:/ $
First needing usb debugging (Security setting)
And adb command

Work perfectly using terminal with phone! Thanks

lil_kujo said:
Work perfectly using terminal with phone! Thanks
Click to expand...
Click to collapse
modify in SetEditor app, so easy!

All the above comments work for me in Normal mode. In power saving mode it is switching back to 60. There should a variable to edit screen rate in power saving mode. Anyone knows? Please advice.

m12 has unlocked 90 fps on the system, but in games it's still 60 can you help me?

Does this work on Galaxy S20 Fe 5G force 90Hz refresh rate ?
or it's special to xiaomi devices!​

Related

[Q] ReMap Nook Home Button

After I ran Mister Muffin's "Auto Config Script" I lost the use of the Nook home button somehow and my wifey wants it back!!!! Right now I am using Zeam Launcher and "bpk's Softkey 2.0" with Home Switcher in order to get back home.
Does anyone know a way to get it back? Right now the Nook button only wakes the unit.
Thanks in advance!
I've seen the home button stop functioning on devices that are no longer provisioned. Check settings.db, the 'secure' table for 'device_provisioned', which should be 1. From the command shell on the device via terminal or adb, you can use getprop to examine this property.
wumpus11 said:
I've seen the home button stop functioning on devices that are no longer provisioned. Check settings.db, the 'secure' table for 'device_provisioned', which should be 1. From the command shell on the device via terminal or adb, you can use getprop to examine this property.
Click to expand...
Click to collapse
Could you give me the ADB code in order to do this?
adb pull /data/data/com.android.providers.settings/databases/settings.db
C:\temp>sqlite3 settings.db
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from secure where name='device_provisioned';
103|device_provisioned|1
sqlite> .q
PTzero said:
adb pull /data/data/com.android.providers.settings/databases/settings.db
C:\temp>sqlite3 settings.db
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from secure where name='device_provisioned';
103|device_provisioned|1
sqlite> .q
Click to expand...
Click to collapse
Thanks!
I pulled the settings D/B OK but I do not understand how to use SQLITE commands
Read my previous post and follow it. Type "sqlite3 settings.db", etc.
Not reconized as an int/ext command.
Look in your AdroidSDK/tools directory for sqlite3
Ok I did that exactly as you had it. Is that correct? Do I need to push the file back to the Nook?
Opps, I see no such table secure......
Ran again and get Error near "103": syntax error
One possible problem is my nook never goes into USB Mode now when I plug it in, uninstalled usb componets and will reboot to see if that works....
Had the same problem
I've definitely experienced the same issue after running the script.
After reading this post I checked my own settings.db and found that my device_provisioned variable was set to 0. here's how I fixed mine... sort of.
Code:
adb pull /data/data/com.android.providers.settings/databases/settings.db
C:\temp>sqlite3 settings.db
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from secure where name='device_provisioned';
10|device_provisioned|0
sqlite> update secure set value=1 where name='device_provisioned';
sqlite> .q
c:\temp\adb push settings.db /data/data/com.android.providers.settings/databases/settings.db
In the end I seem to have gotten more control of my nook button, but I still seem to have problems getting the SoftKeys 2.0 to work correctly. Right now it does function as a proper home button, and returns me to ADW launcher, or launches the explode desktop view when I'm in ADW.
Still fudging with the settings to see if I can get it back to normal
I can't get any of this to run correctly, besides mine looks to already be on 1 in setting db.
I am still not able to get Nook into USB Mode.
If I wipe this thing what is the easiest way to restore all my App's, some that were purchased?
This isn't the Q&A section
{
"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"
}
Apply your question(s) in the proper sub-forum, or it might result in a temporary vacation
Mikey1022 said:
This isn't the Q&A section
Apply your question(s) in the proper sub-forum, or it might result in a temporary vacation
Click to expand...
Click to collapse
Well I thought this was the proper section at the time I have since corrected the problems so you can lock/delete if you wish.
Just adding my appreciation for this fix, I had the same issue and was able to fix it. Damn! I wish I had searched the forum earlier, I went from 1.00 to 1.01 and thought I was fubar, went thorugh the entire process again and loaded apps and then I finnaly search for the issue..

adb shell $.. ?

So i know im rooted, through Terminal Emulator, cause it gives me a #
but when ever i type adb shell in abd i get $..
My device is recognized and i can push and pull.. i think but whenever accessing the shell, i cant..
help?
You're typing su?
Sent from my HERO200 using XDA Premium App
typed su in TE = #
but in ADB, adb shell = $
which i think is the same thing just different commands.
im goona run the ruu and see if that helps, cause thats really weird to me
ran the latest ruu and got the classy 140 error, yay =]
i hate phones sometimes lol
I'm pretty sure that adb shell should just give you the $. When you open terminal emulator you start there already because you're on the device. If you want root after getting in the shell you type su. Maybe I'm mistaken.
[dpeeps74]
Adb shell gives me the superuser/root (#) without having to give any substitute user command...
{
"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"
}
kyouko said:
Adb shell gives me the superuser/root (#) without having to give any substitute user command...
Click to expand...
Click to collapse
same here.
hmm, i installed the adb and everything, should i have rooted it through that way? cause i used z4 root?
and when i ran an ruu it give me that wonderful 140 error
fixed it =]
thanks for chiming in
oh nope it changed his mind again, back to $...
davidevan said:
hmm, i installed the adb and everything, should i have rooted it through that way? cause i used z4 root?
and when i ran an ruu it give me that wonderful 140 error
Click to expand...
Click to collapse
When I rooted the phone I used for my screenshot I used z4root as well, so I dunno why it's automatic for mine and not yours :/
You do have a custom recovery flashed correct?
Sidenote
On my phone I get error 140 as well, but it's because of the s-off bootloader so I'm not worried about it - If I need to unroot, I do so through the bootloader using a HERCIMG.zip of the stock sprint RUU.
davidevan said:
oh nope it changed his mind again, back to $...
Click to expand...
Click to collapse
This may or may not help.
Are you using the latest update from sprint?
if so you will actually lose root on reboot. Try an earlier ruu and do not apply the update. That's what I did when I had the same thing happen to me.
Hope it helps.
just fixed it, regaws methos doesnt install a busy box, so i downloaded one off the market and i was set. but i also looked in to your method and that helped as well, thanks =]
Cool glad you got it sorted. It's been ages since I have used adb.
[dpeeps74]
i use it, to install apps directly, and if something goes screwy, its your saving grace. thats only why i wanted it haha
Dav I suggest unlocking S-OFF as well from my understanding that would almost make our phones brick-proof aside from screwing things up when flashing the radio...
http://forum.xda-developers.com/showthread.php?t=759955

[SOLVED] USB Debug Whitelist not present on 4.2.2?

Does anybody get the prompt for authorizing the PCs that connect through ADB?
According to several articles (example here), whenever a computer connects it's RSA key will be validated and a prompt will appear on the device if it's still not registered:
{
"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"
}
I'm running 4.2.2 (10.3.A.0.423 Generic ES) and never get this prompt, despite using the latest ADB version (1.0.31).
/data/misc/adb/ exists on the device but is empty, BTW.
Can anyone else confirm this, or preferably a way to activate the behavior?
UPDATE
I found the problem :victory:
On the /default.prop file (which is part of the kernel and therefore can't be manipulated directly), there's this:
Code:
ro.secure=1
It controls whether adb connections will run as root (if 0) or as shell (if 1).
But there's an additional parameter that should be there:
Code:
ro.adb.secure=1
which if set, triggers the standard behavior described before - prompting for a visual confirmation of the RSA key of the incoming connection.
Once I added an init.d script with
Code:
[COLOR="SeaGreen"][B]setprop ro.adb.secure 1[/B][/COLOR]
everything is working properly.
Bump!
Apparently the prompt only appears when you issue a command via adb. I would try it for you, but cannot be bothered to boot my laptop just now
If you haven't already, just try adb devices or something and see if the prompt appears.
If you already tried it (I realise you probably have, just throwing ideas around ) and the prompt doesn't appear, Sony probably removed the functionality from their rom for whatever reason (I can't think of any valid reason!).
Sent from my C6603 using Tapatalk 2
kingvortex said:
Apparently the prompt only appears when you issue a command via adb. I would try it for you, but cannot be bothered to boot my laptop just now
If you haven't already, just try adb devices or something and see if the prompt appears.
If you already tried it (I realise you probably have, just throwing ideas around ) and the prompt doesn't appear, Sony probably removed the functionality from their rom for whatever reason (I can't think of any valid reason!).
Click to expand...
Click to collapse
I had tried all that
After digging into the code I found the solution, check the OP.
Like this one
http://forum.xda-developers.com/showpost.php?p=43886371&postcount=104
Sent from my C6603 using xda premium
gm007 said:
Like this one
http://forum.xda-developers.com/showpost.php?p=43886371&postcount=104
Click to expand...
Click to collapse
It would be useful if I had stumbled on that earlier
Actually, I want mine to be "secure" in the sense that it only allows adb connections from my computer, and prompt for any new ones.
That's what the ro.adb.secure is for.
As for the uid of the shell once you're connected, I want to be root and therefore ro.secure=0.
But since I'm running the stock kernel and can't unlock my bootloader to run a custom one, I use an insecure adbd binary, instead of changing ro.secure to 0.

Disable System Update ?

Last night I downgraded from B360 to B185 . Everything is very good but I always get some notification about the new B360 version which I downgraded from . I disabled system update notifications , cleared data/cache , disabled access to Phone , internet , wi-fi and etc . And after all that I still get update screen to allow update to use phone permissions and etc . I want to disable/remove system update . Is it possible without root ?
yes..
you can skip skip at the Setup screen (after clean flash or full wipe).. and cut the Internet once posible.
Then go to System, System Update 3 poinst above and Update settings. Then: Dissable Auto update and AutoDownload over Wifi.
And you will be let alone.
gxg said:
yes..
you can skip skip at the Setup screen (after clean flash or full wipe).. and cut the Internet once posible.
Then go to System, System Update 3 poinst above and Update settings. Then: Dissable Auto update and AutoDownload over Wifi.
And you will be let alone.
Click to expand...
Click to collapse
That worked . Thanks a lot !
Revengebg said:
That worked . Thanks a lot !
Click to expand...
Click to collapse
You're welcome.
But frankly ... I'll let Oreo for a while. One new update is on the way.. and also .. I belive soon 8.1 will come.
rooted device
if you users want to stop the system update notification u just need an rooted phone and this tool
{
"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"
}
murasio3 said:
if you users want to stop the system update notification u just need an rooted phone and this toolView attachment 4744084
Click to expand...
Click to collapse
Hi. What's the tool name please?
I feel like smashing the phone every morning.
Is there a way to disable system update without root yet? I cant find package disabler on the app store. I have a note 8 . Can somone pplease help
You don't need root nor TWRP.
You must enable hidden Developer options in Settings, and enable there ADB debugging over USB.
Install ADB on the PC - search on XDA for Minimal ADB and Fastboot tool
Use the adb command from PC
Code:
adb shell pm disable-user com.huawei.android.hwouc
In Settings, Apps, enable Show system services and you will see that System update is disabled - when you want it back, just enable
Use apps like AppInspector or DevCheck (from Playstore) to find package name for any (system) app you want to disable
zgfg said:
You don't need root nor TWRP.
You must enable hidden Developer options in Settings, and enable there ADB debugging over USB.
Install ADB on the PC - search on XDA for Minimal ADB and Fastboot tool
Use the adb command from PC
Code:
adb shell pm disable-user com.huawei.android.hwouc
In Settings, Apps, enable Show system services and you will see that System update is disabled - when you want it back, just enable
Use apps like AppInspector or DevCheck (from Playstore) to find package name for any (system) app you want to disable
Click to expand...
Click to collapse
It works for now.
Huawei P30 PRO.
Thank you.

The Optimizer Repeatedly Deletes My .apk Files

I have encountered the same problem described in this post.
I have a P30 pro with EMUI 12. I have turned off "auto-clear junk" switch in Optimizer but it still operates auto-clear.
{
"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"
}
I saved some .apk files in the storage for backup. Each time the auto-clear finished, I found my .apk files disappeared.
I can't directly modify the storage permission of Optimizer.
I tried revoke storage permission in ADB
Code:
adb shell pm revoke com.huawei.systemmanager android.permission.WRITE_EXTERNAL_STORAGE
but got an error.
I contacted Huawei customer service. They replied that this was an prototype device and they couldn't help.
Although I can uninstall this app via ADB, I'm not sure whether it will cause system instability.
Is there any way to protect .apk files in phone storage except for uninstalling Optimizer?
wak3 said:
I have encountered the same problem described in this post.
I have a P30 pro with EMUI 12. I have turned off "auto-clear junk" switch in Optimizer but it still operates auto-clear.
View attachment 5933703
I saved some .apk files in the storage for backup. Each time the auto-clear finished, I found my .apk files disappeared.
I can't directly modify the storage permission of Optimizer.
View attachment 5933717
I tried revoke storage permission in ADB
Code:
adb shell pm revoke com.huawei.systemmanager android.permission.WRITE_EXTERNAL_STORAGE
but got an error.
View attachment 5933733
I contacted Huawei customer service. They replied that this was an prototype device and they couldn't help.
Although I can uninstall this app via ADB, I'm not sure whether it will cause system instability.
Is there any way to protect .apk files in phone storage except for uninstalling Optimizer?
Click to expand...
Click to collapse
yes their is a way i am not sure if it will work but go to setting and go to apps their will be admin apps or something and many special apps access just turn off everything and another way is to install another anivirus software like (AVG,Avast ) and when they take control it is next to impossible to delete anything with your permission .
Hope u liked it pls like and follow me
Never happened to me. Optimizer only deletes cache and junk files automatically
Must be a setting you messed with...

Categories

Resources