Related
Is there any mods that are worth running on the mini (19195) like pure performances for better battery, etc?
Sent from my GT-I9195 using Tapatalk
Scopewiz said:
Is there any mods that are worth running on the mini (19195) like pure performances for better battery, etc?
Sent from my GT-I9195 using Tapatalk
Click to expand...
Click to collapse
XPrivacy, AFWall+, and AdAway will make your battery last longer. Using this list to remove autostarting junk you don't use should make your phone boot faster.
Undervolting your core will reduce battery consumption. Overclocking will increase performance. But you'll need to have a kernel that supports
For performance/battery, nothing beat a clean custom ROM and kernel.
Software that will actually affect battery would be Greenify and JuiceDefender (or similar app).
XPrivacy is like a HIPS for Android, very good for security, but I think it a overkill to have another Firewall such as AFWall+ along with XPrivacy. Since XPrivacy can stop an app from internet access completely, I don't see much reason of control individual IP/port.
TNCS said:
For performance/battery, nothing beat a clean custom ROM and kernel.
Software that will actually affect battery would be Greenify and JuiceDefender (or similar app).
XPrivacy is like a HIPS for Android, very good for security, but I think it a overkill to have another Firewall such as AFWall+ along with XPrivacy. Since XPrivacy can stop an app from internet access completely, I don't see much reason of control individual IP/port.
Click to expand...
Click to collapse
AFWall+ is the way to go if you want some apps to use WiFi but not mobile data, or if you want apps to go online at home but not burn up expensive data when you're roaming across the ocean. XPrivacy can't do that.
rogier666 said:
AFWall+ is the way to go if you want some apps to use WiFi but not mobile data, or if you want apps to go online at home but not burn up expensive data when you're roaming across the ocean. XPrivacy can't do that.
Click to expand...
Click to collapse
Ah, gotcha. Nice to know. But it subjective whether that 'helps' improve battery.
Hey all. Just wanted to get some input on getting the best bang for your buck when it comes to battery life. Though I've never been one for task killers and battery saver apps, recently I've been testing out a few different apps. Avast (uninstalled as I've never seen the need for anti virus on Android personally), Battery Doctor, CleanMate (I think It was called) and a few other battery saver apps. However, I cant seem to come to a conclusion on whether they help or hinder. Or if I'm even using them right.
The thing is they all seem to tell me different, conflicting info so I can't really make heads or tails out of it. They all seem to tell me different apps are running in the background and all suggest I do different things like kill apps, clear cache, free up memory, etc. What I have always used is system panel to kill a malfunctioning app if needed, cachemate, and SetCPU to underclock when the device is not in use. Now I am on a stock ROM with root and dont have a kernel that supports over/under clocking.
So I was just wondering what any of you guys to to both increase performance and save battery. Some kind of balancing act. And I don't want my experience to suffer, ex- I like my screen bright so am not going to turn it down to 30%. Stuff like that. I am kind of with the thinking that I should just use my tablet and let the system do its own thing, but then I kinda get that ocd thing going and want to have total control. So anyway, would love to hear what you guys think and use. Also, i would love love love to try out tasker but am unemployed and broke so that cant happen anytime soon. Thanks.
Sent from my GT-N5110 using XDA Premium 4 mobile app
Out of curiosity, how long does your Note 8.0 last?
You know, I couldn't really tell you right now. I inherited it from a friend about a week ago. He thought it was bricked and junk. I just loaded up some stock firmware, rooted it and since it's new to me I have been playing around with it lots so haven't experienced "normal use" yet. I wasn't really asking because I thought the battery was bad, but I just like to have total control and wondered what everyone was doing these days. I used to be big in the android scene, as a power user not a dev or anything, but have been out of the game for awhile. So far the battery seems to be really good when it's on standby or say if I have spotify running or netflix or playing an audiobook. But it seems to drain pretty fast when im using it more actively- emailing, switching to facebook, switching to internet etc. Again, I'm not really having battery problems, and it's a new tablet to me, but I just wanna stay ahead of the game. Sorry I can't give you any numbers right now, but I'm sure you understand.
Sent from my GT-N5110 using XDA Premium 4 mobile app
Do a search about battery.. there are a dozen threads in the Q&A thread.
I am a minimalist and don't like any so claimed Battery Booster, Battery Enhancer, or Battery Calibrator apps that are all over the google play apps site. Most of the time I leave power saver on, and have most all sync settings and apps set to automatically update and poll info and retrieve email. As I do not like to jump through hoops to get some thing to operate as expected.
Security 360 does a great job with antivirus and memory consumption with apps. You may think that you may not need an Antivirus, but this one thoroughly checks apps if you decide to turn off Google's app checking, or use private party apps from forums or developers linking them to sites.
I use Xposed framework, mainly because of the ability to turn off functions without needing to install a custom ROM. I have been there done that and am not impressed with custom ROM of any type, over stock.
Turning off DVFS, thumbnail cache, and leaving Boost Mode alone as it is defaulted off... Is my primary setting with Winam Xposed module.
I use the app Greenify, Substrate, and its experimental plugin to Xposed. It has some nice features to complement Security 360.
Since Google has corrected some issues with some of its apps, and a few other apps have updated recently. I get 2% drain with 12 hours of standby.
Also under normal use, I get 8 to 9% drain per hour, and 6% per hour browsing.
For speed improvements, I have a 633X SD card that has been tested around 93MB/S and 44MB/s write on my laptop, there are some rated double but are about less in real life performance.
I use TweaksterMod Pro from my past custom ROM experiences, only to boost read a head cache to double the default. This only helps with super fast SD cards, the slower the SD card or having congested internal RAM the boost must be greatly increased.
With online video and media, I get about 12% per hour drain doing both streaming and miracasting to tv.
GT-N5110 & GT-N5120 - 64GB 633x on board, Status Official on SafeRooted OEM ROMs with Wanam Xposed and RootCloak. The only way to fly 8+ hours!
This badboy don't play with Play & Triangle away!
update to 4.4.2 and battery calibrate resulted in 30hr+ battery life
good to read from you andr0id23 and gooberdude. I'm a little sensitive from my battery. since I bought two n5100 for me and my sister,I compare them in many aspects like performance,physical keys (volume,home,..) quality,battery life,... first I thought there's a problem with my battery.I used to test a lot of apps (some you mentioned,battery doctor,task killer,clean master,..) on my 4.1.2 stock ROM.the result was disappointing. my note hardly lasted for 8 hours with normal use (browsing,email checking,no games).it was better on my sister's tablet.
so I updated to 4.4.2 stock rom. things were like before UNTIL i did a battery calibrate.using a method almost like this link.by deleting battery stats after full charge.
I've attached the result.
notice that i have done a full wipe before update and i don't have that tones of app from 4.1.2.only the stock bloatwares and 25 harmless apps and games.this is the best result.the battery was so stubborn to live on its last 3 percent. approximately 3 hours on 1 present and the turned off.
misunderstanding some terms
gooberdude you made it nice but I just didn't get some of these thing you said.would you please explain more?
gooberdude said:
Turning off DVFS, thumbnail cache, and leaving Boost Mode alone as it is defaulted off... Is my primary setting with Winam Xposed module.
Click to expand...
Click to collapse
which modules did you used and what is DVFS,boost mode
gooberdude said:
I use the app Greenify, Substrate, and its experimental plugin to Xposed. It has some nice features to complement Security 360.
Click to expand...
Click to collapse
what is substrate
gooberdude said:
GT-N5110 & GT-N5120 - 64GB 633x on board, Status Official on SafeRooted OEM ROMs with Wanam Xposed and RootCloak. The only way to fly 8+ hours!
This badboy don't play with Play & Triangle away!
Click to expand...
Click to collapse
can you link me to the safe rooting note 8 OP please?why dont u use google play and triangle away.
sorry for lots of question.I googled them before asking but I gained not a good result.some leaded to good result like RootCloak.
thanks in advance.
norits021 said:
gooberdude you made it nice but I just didn't get some of these thing you said.would you please explain more?
which modules did you used and what is DVFS,boost mode
what is substrate
can you link me to the safe rooting note 8 OP please?why dont u use google play and triangle away.
sorry for lots of question.I googled them before asking but I gained not a good result.some leaded to good result like RootCloak.
thanks in advance.
Click to expand...
Click to collapse
OK, if you rooted...
I recommend getting Xposed Framework installed, then install Wanam Exposed. It has a ton of mods to adjust about anything. Though depending on model and firmware, some stuff wont work.
If you want minimal... you can get Wanam Disable DVFS... Samsung's Touchwiz has a feature to assist with games called Dynamic Voltage File System. It seems to be the root of the evil with samsung devices. Google has made it clear that battery calibration tools don't do anything to calibrate the battery. By clearing the battery stats file, all you are doing is a temporary patch. DVFS does not play well with Androids battery stats, and corrupts the data for stats, thus giving bad battery status. Once DVFS is disabled, android will properly calibrate the status of the battery. It may take a few charge cycles or manual deletion of the battery stats file and a reboot.
Again if you root, you may want to add RootCloak to allow apps from detecting root. It does it automatically once you select the troubled app. It requires Substrate and allows you to click on a link to install. Once substrate is installed it will allow rootcloak to function properly
Saferoot.zip search for it in the note 8.0 threads... I placed my copy as a file in one of the requests.
It will allow a proper root without having to flash. So no need for triangle away unless you plan on a custom ROM.
If you use saferoot, you can always upgrade to 4.4.x at a later time without having to unroot or do any trickery.
Play is messed up... never worked right on my tablet, both with stock ROM or custom ROMs
Play music does not like a large amount of media on SD storage, let alone full Mp3tags... can't handle the data or just too many files.Also music does not stop when you reboot. after some time it starts up and plays again. Gallery is messed up with image caching. So I used Wanam to disable scroll cache. I use Nokia Music Player as it is the most robust player that is small and works well on a tablet.
Freezing google music will keep battery consumption down if you have a lot of media. as I have over 4,000 files and if any one of them has an odd character in the name, the media server goes ape and cycles a lot of CPU time into trying to index. Thus sucking power like it is cheap gas.
My sig shows what a stock ROM is capable with just a few add on apps to help get things sorted out with battery power. Right now I am in a fight with Security 360... they boogered up the app with Soccer Ads in splash screens during boot and starting the app. Other wise it is an excellent app for what it does. I use it to clean out krapp that usually is not monitored by other cleaning apps, and to tweak boot blocking apps and apps that are running in background after wake up.
Greenify works fine but you may find security 360 an added app cleaner for sleep / wakeup cycles.
great user
mmm.it worthed more than a simple thanks to me.
by the way you use it in a good way.it s about 1gb of used ram on start up for me.and 970 when killed processes.
I'll try those you mentioned.seems very usefull
gooberdude said:
OK, if you rooted...
I recommend getting Xposed Framework installed, then install Wanam Exposed. It has a ton of mods to adjust about anything. Though depending on model and firmware, some stuff wont work.
If you want minimal... you can get Wanam Disable DVFS... Samsung's Touchwiz has a feature to assist with games called Dynamic Voltage File System. It seems to be the root of the evil with samsung devices. Google has made it clear that battery calibration tools don't do anything to calibrate the battery. By clearing the battery stats file, all you are doing is a temporary patch. DVFS does not play well with Androids battery stats, and corrupts the data for stats, thus giving bad battery status. Once DVFS is disabled, android will properly calibrate the status of the battery. It may take a few charge cycles or manual deletion of the battery stats file and a reboot.
Again if you root, you may want to add RootCloak to allow apps from detecting root. It does it automatically once you select the troubled app. It requires Substrate and allows you to click on a link to install. Once substrate is installed it will allow rootcloak to function properly
Saferoot.zip search for it in the note 8.0 threads... I placed my copy as a file in one of the requests.
It will allow a proper root without having to flash. So no need for triangle away unless you plan on a custom ROM.
If you use saferoot, you can always upgrade to 4.4.x at a later time without having to unroot or do any trickery.
Play is messed up... never worked right on my tablet, both with stock ROM or custom ROMs
Play music does not like a large amount of media on SD storage, let alone full Mp3tags... can't handle the data or just too many files.Also music does not stop when you reboot. after some time it starts up and plays again. Gallery is messed up with image caching. So I used Wanam to disable scroll cache. I use Nokia Music Player as it is the most robust player that is small and works well on a tablet.
Freezing google music will keep battery consumption down if you have a lot of media. as I have over 4,000 files and if any one of them has an odd character in the name, the media server goes ape and cycles a lot of CPU time into trying to index. Thus sucking power like it is cheap gas.
My sig shows what a stock ROM is capable with just a few add on apps to help get things sorted out with battery power. Right now I am in a fight with Security 360... they boogered up the app with Soccer Ads in splash screens during boot and starting the app. Other wise it is an excellent app for what it does. I use it to clean out krapp that usually is not monitored by other cleaning apps, and to tweak boot blocking apps and apps that are running in background after wake up.
Greenify works fine but you may find security 360 an added app cleaner for sleep / wakeup cycles.
Click to expand...
Click to collapse
Anyone know a comand line to run in terminal emulator for reset the fuel gauge chip battery?
I cant find the folder in sys/class/power_supply/
fuel gauge reset via terminal emulator
PauloRMag said:
Anyone know a comand line to run in terminal emulator for reset the fuel gauge chip battery?
I cant find the folder in sys/class/power_supply/
Click to expand...
Click to collapse
have a look on this topic.it for galaxy tabs but I guess it works on Note 8 too,although it is on your own risk(seems no risk,nothing gets worth than current state )
http://forum.xda-developers.com/showthread.php?t=2398663
additionally,as I'm searching on batteries a few days,i found that there are different fuel chips out there.so we must do fuel gauge calibration method that fits our chip.If you found that please describe it here.
Hey guys ..hii...I'm gonna show u how to get battery life from your device ..I personally suggest u to use this method coz it worked for me ...the process Is found in #post2
For that u need to install xposed (don't ask what is xposed!if u don't know that just don't try this ) [email protected] and greenify(xposed module /app) [email protected] oasisfeng ,amplify and powernap( become a beta tester on g+ community and download), but hope it works fine just install/flash and check the stats using BBS ( install it as a system app and proceed )
And amplify (will control wakelocks that drain the battery ...works on xposed[emoji14]And in MM based ROMs there is a feature called aggressive doze in greenify so better backup for MM ROMs ....(but our device won't support due to lack of significant motion sensor ) U can do that in greenify ..tap right corner three dot bar and select settings ...u can find there .....and works on any kk/lp/MM ROMs...tested and got around 1% battery drain (me)overnight Hit thanks if helped:thumbup:
Use wakelock detector and amplify to control wake locks and see which apps causing much and greenify it
http://forum.xda-developers.com/showthread.php?t=3034811 link for xposed
http://forum.xda-developers.com/showthread.php?t=3308200. Link for greenify
http://forum.xda-developers.com/xposed/modules/mod-nlpunbounce-reduce-nlp-wakelocks-t2853874
Link for amplify
Hello it seems to me that after I installed latest xposed fr. with gravitybox in my stock android 6 - my device became little more powe hungry than before... Do you think it could be true?
From my experience with many marshmallow roms that I tested recently, stock beats them all with ease (comparing battery) - NOT KIDDING! Even simple CM13 cant get along. How is it possible, are all devs blind? Or is it a compromise to all these feauteres (Nah! I dont use) ?
As for gravitybox, it works fluently and nicely... To tell the truth I really love it...:good:
With the xposed mods I am using battery life has been extroardinary on marshmallow. Gravity box should have minimal influence on the battery, if any. If you want exemplary battery life, follow the extreme battery life thread. Also use the basic battery saving mode that was introduced in lollipop
It really is so! After some time I can see that battery is just as it used to be when I installed clean stock 6. Also I started to use battery saver mode (original one), added a custom francos kernel and tweaked cpu maximum from 1512 to 1350Mhz and did some little undervolting (25mV offset). Devices speed is as usual, very fast and responsive. Also i added a parrotmode for better screen calibration for touches.
Am I missing something for a better battery?
Hello Everyone.
Well, I am coming from Samsung galaxy S7 edge (custom OneUI 2.1). This phone lasted for a long while by my side. So basically I am mostly used to interact with Samsung UI. I know the things that require root to make my phone's performance better.
I bought a POCO F3 (8/256) few weeks ago. just few days before it reaches me.
SO MY QUESTION IS:
This phone is a top-notch when it comes to performance. what I wanna know is, what are the things I can make use of in "Xiaomi eu" ?
I have no idea what are the major or must-have root-only mods that a Xiaomi SD 780 phone user should get ?
this is in no particular order ...but this are all apps that i use all listed here require root
SMSBomber-v1.1 ~ send 500 sms in just 10 secs ( can permanently brick old Nokia phone xD )
Lucky Patchr ~ remove in-app purchase of apps from Play Store
Game Guardian ~ hack android games
Arcai NetCut ~ disconnect other from WIFI ( yes i'm selfish and i hate lag )
GL Tools ~ GFX optimizer tool
Magisk ~ if you are not rooted via Magisk you are missing alot
Xposed Framework~ LSPosed or EdXposed
also i forgot to say Universal Remote since POCO F3 has IR Blaster you can use it as remote great for trolling too ...
you can turn off McDonald's television with it
ineedroot69 said:
this is in no particular order ...but this are all apps that i use all listed here require root
SMSBomber-v1.1 ~ send 500 sms in just 10 secs ( can permanently brick old Nokia phone xD )
Lucky Patchr ~ remove in-app purchase of apps from Play Store
Game Guardian ~ hack android games
Arcai NetCut ~ disconnect other from WIFI ( yes i'm selfish and i hate lag )
GL Tools ~ GFX optimizer tool
Magisk ~ if you are not rooted via Magisk you are missing alot
Xposed Framework~ LSPosed or EdXposed
Click to expand...
Click to collapse
thanks a lot dude
So basically the same apps, except the the SmSBomber.
I actually depend a lot on EdXposed. I hope it doesn't cause any problems to the phone system. I wanna use "Xposed Edge" that allows me to do so many cool stuff using the edges of the phone. it also has even more "triggers".
ineedroot69 said:
also i forgot to say Universal Remote since POCO F3 has IR Blaster you can use it as remote great for trolling too ...
you can turn off McDonald's television with it
Click to expand...
Click to collapse
but why would Universal Remote need root? .. or you just wanted to mention it for its good use!
and whether it's better than Mi remote? controller.
laid1995 said:
Hello Everyone.
Well, I am coming from Samsung galaxy S7 edge (custom OneUI 2.1). This phone lasted for a long while by my side. So basically I am mostly used to interact with Samsung UI. I know the things that require root to make my phone's performance better.
I bought a POCO F3 (8/256) few weeks ago. just few days before it reaches me.
SO MY QUESTION IS:
This phone is a top-notch when it comes to performance. what I wanna know is, what are the things I can make use of in "Xiaomi eu" ?
I have no idea what are the major or must-have root-only mods that a Xiaomi SD 780 phone user should get ?
Click to expand...
Click to collapse
Main reason I root is for ad blocking and battery charge rate limiting
if you don't mind me asking, why would you limit battery charge rate ?
jadedrk said:
Main reason I root is for ad blocking and battery charge rate limiting
Click to expand...
Click to collapse
if you don't mind me asking, why would you limit battery charge rate ?
laid1995 said:
if you don't mind me asking, why would you limit battery charge rate ?
Click to expand...
Click to collapse
Li-ion batteries last longer when (over the course of its life) charged to around 80 percent then stopped charging... also they last longer when not fully discharged and re-charged at say... 25-30 percent.
There's a fair bit more to it, but that's the basics... i might be wrong on the exact preferred values for charging.
So by using Advanced Charging Controller (magisk module) you could set it to those values - where it stops charging at 80% etc
Also, you could limit the charge rate. Fast charging, generally the faster it is the quicker it'll degrade your battery
however.... pretty sure i read some phones are utilizing 2 effective batteries. So, although it (the device) may be drawing a lot of amps to charge, it may be that those amps are split between the 2 batteries. So although the device can indeed charge to full in super quick time, it doesn't neccesarily mean battery damage....
I'm quite limited in my knowledge though, perhaps somone else would chip in and clarify!!!
KonaBess - Overclock or underclock/undervolt GPU for better battery and less heat.
Link: https://github.com/xzr467706992/KonaBess
AdAway - Block ads system wide and in app ads too.
Link: https://f-droid.org/en/packages/org.adaway/
AFWall+ - Iptables firewall for Android.
Link: https://play.google.com/store/apps/details?id=dev.ukanth.ufirewall&hl=en_CA&gl=US
Universal GMS Doze - Optimized and adjusted Google Play services for better standby drain.
Link: https://github.com/gloeyisk/UniversalGMSDoze
Titanium Backup - Backup, restore and freeze apps + data + Market links.
Link: https://play.google.com/store/apps/details?hl=en&id=com.keramidas.TitaniumBackup
reg66 said:
however.... pretty sure i read some phones are utilizing 2 effective batteries. So, although it (the device) may be drawing a lot of amps to charge, it may be that those amps are split between the 2 batteries. So although the device can indeed charge to full in super quick time, it doesn't neccesarily mean battery damage....
I'm quite limited in my knowledge though, perhaps somone else would chip in and clarify!!!
Click to expand...
Click to collapse
Poco f3 doesn't have two separate batteries.
Lala🇧🇩 said:
Poco f3 doesn't have two separate batteries.
Click to expand...
Click to collapse
didn't say it did, just that i thought i read somewhere that some phones do
reg66 said:
however.... pretty sure i read some phones are utilizing 2 effective batteries. So, although it (the device) may be drawing a lot of amps to charge, it may be that those amps are split between the 2 batteries. So although the device can indeed charge to full in super quick time, it doesn't neccesarily mean battery damage....
I'm quite limited in my knowledge though, perhaps somone else would chip in and clarify!!!
Click to expand...
Click to collapse
true ..that sounds pretty reasonable.
Viper4Android - https://github.com/Magisk-Modules-Repo/ViPER4Android-FX
SafetyNet Fix - https://github.com/kdrag0n/safetynet-fix/releases/tag/v1.1.1
YT Vanced - https://vancedapp.com/
And that too:
XMLPak - https://github.com/Magisk-Modules-Repo/xmlpak
App Systemizer - https://github.com/stangri/AppSystemizer
Call Recorder - https://github.com/aykuttasil/CallRecorder
Nemix77 said:
KonaBess - Overclock or underclock/undervolt GPU for better battery and less heat.
Link: https://github.com/xzr467706992/KonaBess
AdAway - Block ads system wide and in app ads too.
Link: https://f-droid.org/en/packages/org.adaway/
AFWall+ - Iptables firewall for Android.
Link: https://play.google.com/store/apps/details?id=dev.ukanth.ufirewall&hl=en_CA&gl=US
Universal GMS Doze - Optimized and adjusted Google Play services for better standby drain.
Link: https://github.com/gloeyisk/UniversalGMSDoze
Titanium Backup - Backup, restore and freeze apps + data + Market links.
Link: https://play.google.com/store/apps/details?hl=en&id=com.keramidas.TitaniumBackup
Click to expand...
Click to collapse
I'm interested in konabess but on the GitHub page, SD 870 is not listed, it's compatible? (Even if I know SD 870 is just 865 overclocked, I prefer to be sure)
Thx !
Konabess works, I've tried it.
However, you need root permissions.
You can adjust the voltage and overclock/underclock the GPU.
Nemix77 said:
Konabess works, I've tried it.
However, you need root permissions.
You can adjust the voltage and overclock/underclock the GPU.
Click to expand...
Click to collapse
I'm rooted so it's ok. Can you change voltage and the speed clock on the go or do you need to restart the phone everytime you change these parameters? Sorry for my English, it's not my fluent language!
Restart needed to apply the settings.
Try undervolting the maximum clock speed by one step lower volt.
It seems very stable on the latest firmware, runs cooler and consumes less power when gaming.
Depending on your chip lottery, you can probably lower the voltage down by one step on each and every clock speed stepping.
Test with Antutu (multiple runs), 3DMark (both stress and stability test, multiple runs) and playing games is the ultimate test.
alefmm said:
Viper4Android - https://github.com/Magisk-Modules-Repo/ViPER4Android-FX
SafetyNet Fix - https://github.com/kdrag0n/safetynet-fix/releases/tag/v1.1.1
YT Vanced - https://vancedapp.com/
And that too:
XMLPak - https://github.com/Magisk-Modules-Repo/xmlpak
App Systemizer - https://github.com/stangri/AppSystemizer
Call Recorder - https://github.com/aykuttasil/CallRecorder
Click to expand...
Click to collapse
There's way to install Viper4Android under enforcing SElinux.
Read here:
[MOD] viper4android + MIUI 12 + Magisk 21.1
Default viper4android Magisk module doesn't work for me with SELinux enforcing. "Brute force" fix is to set SELinux to permissive, but I don't like this approach. Viper4android module should patch selinux policies during installation, but it...
forum.xda-developers.com
Simple installation guide:
https://forum.xda-developers.com/t/mod-viper4android-miui-12-magisk-21-1.4203489/post-85055001
You can edit the file manually with some text editor instead of from terminal.