Can not modify gps.conf for a better performance - Xiaomi Redmi Note 7 Questions & Answers

Hello everybody.
I have a problem about my Redmi Note 7.I want to ask to you about it, if another one had the same problem with me.
My phone is unlocked and rooted (Magisk).And i use original MIUI 11 version with oem kernel.
-The problem is, i want to modify gps.conf file to get a better gps performance.I know to tweak it, i had been doing that on my old phone also.And the problem starts here.I use "es file explorer" by root rights and can modify the file and save it.Everyting seems okay.But when i restart the phone and check the file, i see that the phone restores that file (gps.conf) to its original oem state.So although i can modify and save it by a root file manager after a restart it turns the original state.I can not prevent it.Is there any way to fix that situation?
Thank you.

Test this module from magisk download section. And maybe modify it with ur gps.conf

joke19 said:
Test this module from magisk download section. And maybe modify it with ur gps.conf
Click to expand...
Click to collapse
Thank you.it works well.:good:

stranger_88 said:
Thank you.it works well.:good:
Click to expand...
Click to collapse
?

Related

[Q] Replacing build.prop?

hi!
in order to test something, i need to replace the build.prop in root/system with a modified one. but trying to delete this file with astro manager displays an error message, and just copying the modified build.prop over the old one doesn't work too (nothing happens).
so my question is: how do you replace such a file?
thanks in advance for your help
are you serious!?!?!?
If the build.prop is located on the Android folder IT HAS TO BE A SYSTEM FILE !!!
if you mod the system files you could break android or the system just won't let you do it, you will need R and W privileges to do that.
edit the system files from your PC or just boot up in to windows mobile.
use some common scene next time.
hope it helps!
Sent from my HTC HD2 using XDA App
Do you use a cyanogen build?
yes and there is already a cyanogen rom posted with the proper build.prop fixed, so you won't have to edit anything, just search for it.
Sent from my HTC HD2 using XDA App
mmmh actually cyanogen made things easy to replace a system file, just copy your file into sdcard/android/root/system and reboot.
thanks for your help / posts. but unfortunately they're not helpful.
yes, i am serious! and yes, of course it's a system file. i know as well that modification might brick android.
there are reasons for modifying this file. some people seem to be able to, e.g. for chaning screen point density or modify the data passthrough.
so, please tell me, how can i edit/modify a system file from pc or windows mobile when its within the data.img-file?
thanks for any tips / hints on this.
use root explorer
Sichroteph said:
mmmh actually cyanogen made things easy to replace a system file, just copy your file into sdcard/android/root/system and reboot.
Click to expand...
Click to collapse
Thank you VERY much for your help - I finally got it to work by listening your instructions. It is simply different if you have HD2 and plus CM mod. That figures why it was going back all the time to 180 instead of changing it - because it runs from sd card and that's where it needs to be replaced as well ...
Droid Explorer

Volume rocker awake 2.3.5

Hi again! Does anyone got volume rocker awake to work on a rootet original. Fw 2.3.5 to work? Incase, how.?
EDIT: It seems that yannn007 has an easier way: http://forum.xda-developers.com/showpost.php?p=22163390&postcount=95 I tried it, and it didn't work for me, unfortunately.
Since I promised to add to the wiki, let this be the first. I learnt this trick from a ROM by birdyi, so I credit him; however, I have seen it in ROMs that existed before his did.
How to make the volume rocker wake up the phone with the stock locker
Prerequisites:
apktool
Obtain /system/framework/android.policy.jar from your phone
Decompile said file using apktool
Open android.policy.jar.out/smali/com/android/internal/policy/impl/KeyguardViewMediator.smali (note, if you chose to extract to a different folder, then replace "android.policy.jar.out" with the name of your chosen folder)
Find the line ".method private isWakeKeyWhenKeyguardShowing(I)Z"
In this function, look for:
Code:
:sswitch_data_0
.sparse-switch
Underneath that, you'll see the following:
Code:
0x18 -> :sswitch_0
0x19 -> :sswitch_0
Remove the 0x18 and 0x19 lines, save and use apktool to rebuild the android.policy.jar file. Place it back onto your device and restart.
can u put the file already modified here?
It differs depending on ROM, I think
is it possible to make some think like a batch to do this ?
i have added the line to the prop file but it has not worked...
i am not familliar with this method and i am afraid of doing it
Magiclocker. No battery drain, full sleep. volume buttons does wake device, tested on u8800pro, gingerbread rom540 by geno, rooted.
mclaudio said:
is it possible to make some think like a batch to do this ?
i have added the line to the prop file but it has not worked...
Click to expand...
Click to collapse
Would also like that,thank you
Any dev can help?
widget locker also use volume rocker sw. for awake.i think no memory usage and min battery drain
HAhahahaha works!!!! Dammit I love open communities!
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
barkiniseri said:
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
Click to expand...
Click to collapse
It works just fine on B522, thank you, barkiniseri!!
See my thread here also for a flashable version or returning to stock:
http://forum.xda-developers.com/showthread.php?t=1530084
works
barkiniseri said:
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
Click to expand...
Click to collapse
it works on b528 (with atmel-fix) but an ERROR indicating at each start-up that google framework has stopped unexpectedly.
soguzar said:
it works on b528 (with atmel-fix) but an ERROR indicating at each start-up that google framework has stopped unexpectedly.
Click to expand...
Click to collapse
Rather than use the flashable zip, use the instructions in the first post to modify your own android.policy.jar file.
Works, 100% reliable, and can be done on almost any ROM.
jeremysherriff said:
Rather than use the flashable zip, use the instructions in the first post to modify your own android.policy.jar file.
Works, 100% reliable, and can be done on almost any ROM.
Click to expand...
Click to collapse
True! But... "One, does not simply find and use apktool"
jeremysherriff said:
Rather than use the flashable zip, use the instructions in the first post to modify your own android.policy.jar file.
Works, 100% reliable, and can be done on almost any ROM.
Click to expand...
Click to collapse
What do you mean by "flashable zip"? There is only jar file. Do you know the way to flash this jar file?
Thanks for your help and sorry for easy questions.
soguzar said:
What do you mean by "flashable zip"? There is only jar file. Do you know the way to flash this jar file?
Thanks for your help and sorry for easy questions.
Click to expand...
Click to collapse
Sorry, i thought it had been packaged in a zip. Either way, what i mean is make the mods to your own file, to avoid issues where you install a file from a ROM or version that is different to what you have and make things break. The mod is easy to do.
Sent from my U8800 using XDA
Thanks for the tutorial.
I finally find a way to but volume buttons waking up my phone!
Thanks
barkiniseri said:
in order to awake with volume rocker sw, replace "androidpolicy" (in the attachment) with inside the "system/framework" than restart.it works.(tested with 518 and 526)
for replacement you must have root explorer or es file explorer with w/r permision.
Click to expand...
Click to collapse
Tried this file on mine and almost got bricked... I thought this would be compatible with the new ICS from DZO.
When I rebooted the phone, it got stuck on the Aurora ICS screen. I had to reinstall original ICS plugging the phone to an USB without the battery. If the battery was on the phone I just got the pink screen when rebooting with volume up+down+power...
My phone specs:
U8800
Android 4.0.4
Kernel 3.0.8-perf-g2600408-dirty
Build Aurora_4.1.4.0.4 IMM761 eng.
Martin.20120605.162907 test-keys
And since I don't have the time to learn jar editing, I'll wait for the time being.

screen rotation not working

Hello,
Since a couple of days my screen rotation does not work anymore. Yes I turned off and on and also rebooted.
I used to check at *#0*#, it passed the test.
i think I maybe deleted something in system/app,
but don't know what.. Can anybody help me please
HAKANN said:
Hello,
Since a couple of days my screen rotation does not work anymore. Yes I turned off and on and also rebooted.
I used to check at *#0*#, it passed the test.
i think I maybe deleted something in system/app,
but don't know what.. Can anybody help me please
Click to expand...
Click to collapse
If your phone is rooted and your in a custom rom then do this , but if your on stock rom , try to install samsunghub. apk and use the search button to look for the app
1. extract libgnustl_shared.so from system>lib of your rom's zip.
2. Copy and paste to System>>lib and change permission to rw-r--r--
3. Reboot and enjoy!
Repulsa said:
If your phone is rooted and your in a custom rom then do this , but if your on stock rom , try to install samsunghub. apk and use the search button to look for the app
1. extract libgnustl_shared.so from system>lib of your rom's zip.
2. Copy and paste to System>>lib and change permission to rw-r--r--
3. Reboot and enjoy!
Click to expand...
Click to collapse
I'm rooted on stock, what app should I search for after I have samsung hub?
HAKANN said:
I'm rooted on stock, what app should I search for after I have samsung hub?
Click to expand...
Click to collapse
If you have a custom recovery then download the file from here and flash away. but if you dont have a custom recovery then use a root explorer and push the file in lib directory. and set permission
Thank you so much, it's working!!
HAKANN said:
Thank you so much, it's working!!
Click to expand...
Click to collapse
Glad that fix your problem ,have a nice day

Private Mode Fix After Rooting

Hello Guys
I Rooted My Device Yesterday And Everything Went Good Until I Noticed That The Privet Mode Faild To Open And I Have Many Personal Photos That I Want To Reach
P.s. : Im Using Stock MM Rom, Rooted By CF Root And Im Using Wanam Xposed Framework
So Any Ideas How To Fix This Problem Without Lossing What Inside The Private Mode ?
Thanks In Advance
i resolve u must 1 clear all with twrp (advanced clear)than install firmwere than cf auto root than twrp 3 0 2 2 than last BETA-SuperSU (with twrp) now work all
But Thats Exactly What I Did First When I Rooted My Device, What Will Be Changed If I Just Clear My Device Whenever I Root Again I Will Face The Same Problem
We Need A Solution For After Rooting
Thanks For Your Interest I Appreciate
If you need to recover the files I think the only thing you can do is go to your Nandroid backup, restore, copy the files out of the Private Mode folder and start again.
I Want My Files But Also I Want To Make It Work
I Dont Have Any Back Ups How To Do Recovery ?
Thanks In advance
You need to install a custom firmware on the phone for private mode to work i think. That's the only way i've made it work again.
I have superman kernel on my phone.
bigpapa007 said:
You need to install a custom firmware on the phone for private mode to work i think. That's the only way i've made it work again.
I have superman kernel on my phone.
Click to expand...
Click to collapse
This may make Private Mode work again, but I don't think you will be able to access the files that were there before. I had this problem on my old Note 4. I lost my files and learnt a lesson, backup always before doing anything and when changing ROMs make sure you copy your files out of Private Mode first, sorry man
i formatted data in recovery (twrp 3Minit_recovery_3.0.2-2_G935F) and flashed CF-Auto-Root (hero2lte-hero2ltexx-smg935f) + no-verity-opt-encrypt.zip and private mode is working fine on stock rooted (& i also have xposed installed & running so it must be possible to make it work
So Guys There Is No Such A Zip File Make It Work Again Like An Extention Just Install It And Get It work Fine Because Its Annoying To Start Over Again
Is There A Backup App. Exactly Like LG Backup That Backing Up Everything In The Device With Just A Bottom ?
I Am Appreciate For Everyone Of You
liquidguru said:
This may make Private Mode work again, but I don't think you will be able to access the files that were there before. I had this problem on my old Note 4. I lost my files and learnt a lesson, backup always before doing anything and when changing ROMs make sure you copy your files out of Private Mode first, sorry man
Click to expand...
Click to collapse
Ohhhh sorry, i thought he was just wanting to make private mode work.
i just read OP well and yeah, sorry man you wont be able to get them back. I myself have lost lot of files in private mode because when i flashed i forgot to move them out of private mode and lost them.
You will need to ask for the pics again
So Now If I Install A Custom Kernel Would It Get To Work Again, If Yes Which One Should I Install And How ?
Mr. Davin said:
So Now If I Install A Custom Kernel Would It Get To Work Again, If Yes Which One Should I Install And How ?
Click to expand...
Click to collapse
I installed Jesse kernel and the private mode works again without any other changes needed.
Sent from my SM-G935F using XDA-Developers mobile app
NSW vs QLD Game 2 Live
Mr. Davin said:
Hello Guys
I Rooted My Device Yesterday And Everything Went Good Until I Noticed That The Privet Mode Faild To Open And I Have Many Personal Photos That I Want To Reach
P.s. : Im Using Stock MM Rom, Rooted By CF Root And Im Using Wanam Xposed Framework
So Any Ideas How To Fix This Problem Without Lossing What Inside The Private Mode ?
Thanks In Advance
Click to expand...
Click to collapse
NSW vs QLD Game 2 Live
Guys Problem Fixed Finally :angel:
Here What I Did:
1- Install Wanam Xposed ( XTouchwiz For MM )
2- In Wanam Xposed Security Hacks > Disable The Last Option Then Reboot
3- From Root Explorer ( Or Any File Manager That Has Root Access ) Delete These Files
?/data/data/com.samsung.android.personalpage.service (folder)
?/data/privatemode (folder)
?/data/system/secure_storage/com.samsung.android.personalpage.service (folder)
?/data/system/users/privatemode_edk_1000 (file)
4- Reboot Your Device And Everything Gonna Be Okay
Mr. Davin said:
Guys Problem Fixed Finally :angel:
Here What I Did:
1- Install Wanam Xposed ( XTouchwiz For MM )
2- In Wanam Xposed Security Hacks > Disable The Last Option Then Reboot
3- From Root Explorer ( Or Any File Manager That Has Root Access ) Delete These Files
?/data/data/com.samsung.android.personalpage.service (folder)
?/data/privatemode (folder)
?/data/system/secure_storage/com.samsung.android.personalpage.service (folder)
?/data/system/users/privatemode_edk_1000 (file)
4- Reboot Your Device And Everything Gonna Be Okay
Click to expand...
Click to collapse
I did this and still cannont activate it.
PS : I haven't found those
?/data/system/secure_storage/com.samsung.android.personalpage.service (folder)
?/data/system/users/privatemode_edk_1000 (file)
Any clue ?
lahceneamine said:
I did this and still cannont activate it.
PS : I haven't found those
?/data/system/secure_storage/com.samsung.android.personalpage.service (folder)
?/data/system/users/privatemode_edk_1000 (file)
Any clue ?
Click to expand...
Click to collapse
Did You Use A Root File Manager ( A File Manager That Use Root Access ) ?
Use Root Explorer File Manager You Must Find Them All
Sorry For Late Respond
Mr. Davin said:
Did You Use A Root File Manager ( A File Manager That Use Root Access ) ?
Use Root Explorer File Manager You Must Find Them All
Sorry For Late Respond
Click to expand...
Click to collapse
Yes of course.
I found that I must use a permissive kernel not an enforcing one.
Thank you for your help
lahceneamine said:
Yes of course.
I found that I must use a permissive kernel not an enforcing one.
Thank you for your help
Click to expand...
Click to collapse
You Welcome Man And Have A Nice Day
Mr. Davin said:
Guys Problem Fixed Finally :angel:
Here What I Did:
1- Install Wanam Xposed ( XTouchwiz For MM )
2- In Wanam Xposed Security Hacks > Disable The Last Option Then Reboot
3- From Root Explorer ( Or Any File Manager That Has Root Access ) Delete These Files
?/data/data/com.samsung.android.personalpage.service (folder)
?/data/privatemode (folder)
?/data/system/secure_storage/com.samsung.android.personalpage.service (folder)
?/data/system/users/privatemode_edk_1000 (file)
4- Reboot Your Device And Everything Gonna Be Okay
Click to expand...
Click to collapse
Worked 100% thanks a lot
I accidently delete the folder ?/data/system/secure_storage/ and everything inside it.. I lost my WIFI passwords only I hope that I did not make other damages
Sent from my SM-G935F using XDA-Developers mobile app
Hani88 said:
Worked 100% thanks a lot
I accidently delete the folder ?/data/system/secure_storage/ and everything inside it.. I lost my WIFI passwords only I hope that I did not make other damages
Sent from my SM-G935F using XDA-Developers mobile app
Click to expand...
Click to collapse
wht u mean bt worked ? u get your old files also back
---------- Post added at 10:27 AM ---------- Previous post was at 10:08 AM ----------
lahceneamine said:
Yes of course.
I found that I must use a permissive kernel not an enforcing one.
Thank you for your help
Click to expand...
Click to collapse
how to use kernel like that im using root explorer

Charging Sound not in media/sound/ui?

Hi, I wanted to change charging sound of stock rom, cuz its so annoying, and i cant turn it off. So I wanted to change it, but ZTE is so cocky, that I m not able to find charging sounds in system/media/sounds/ui. I was able to change lock, unlock, touch and keyboard sounds, but charging ones are no wherw to be found. Does anyone know where is the file of charging sound in stock rom? (i wasnt able to find it in LineageOS as well, but on Xiaomi Redmi Note 4)
xzolteu said:
Hi, I wanted to change charging sound of stock rom, cuz its so annoying, and i cant turn it off. So I wanted to change it, but ZTE is so cocky, that I m not able to find charging sounds in system/media/sounds/ui. I was able to change lock, unlock, touch and keyboard sounds, but charging ones are no wherw to be found. Does anyone know where is the file of charging sound in stock rom? (i wasnt able to find it in LineageOS as well, but on Xiaomi Redmi Note 4)
Click to expand...
Click to collapse
They're not in media but under system/priv-app/SystemUI_ZTE/
Look into the apk under res/raw/
There you have your charging.ogg
raystef66 said:
They're not in media but under system/priv-app/SystemUI_ZTE/
Look into the apk under res/raw/
There you have your charging.ogg
Click to expand...
Click to collapse
Ok, I copied systemui.apk from the location that you told me, then i replaced that charing.ogg. But now, when I copied it back (even from TWRP, or es file explorer), it feels like system dont see SystemUI.apk. The screen is totally black, and on first reboot I didnt have status bar. I fixed permissions, cleared chaches, and still nothing. Even if I copy back the original systemui.apk, its still the same. Im rocking your port of mifavor 5.0, do you know the solution how to properly install modified systemui.apk?
xzolteu said:
Ok, I copied systemui.apk from the location that you told me, then i replaced that charing.ogg. But now, when I copied it back (even from TWRP, or es file explorer), it feels like system dont see SystemUI.apk. The screen is totally black, and on first reboot I didnt have status bar. I fixed permissions, cleared chaches, and still nothing. Even if I copy back the original systemui.apk, its still the same. Im rocking your port of mifavor 5.0, do you know the solution how to properly install modified systemui.apk?
Click to expand...
Click to collapse
Most likely a signing problem or possible a clean flash needed.... (that is if you changed permissions right and so on....i cannot judge from here )
But as only res has to be modified i'd see no problem..
If you send me the ogg files you want to replace in the apk, i'll look into that and do a test myself.
raystef66 said:
Most likely a signing problem or possible a clean flash needed.... (that is if you changed permissions right and so on....i cannot judge from here )
If you send me the ogg files you want to replace in the apk, i'll look into that and do a test myself.
Click to expand...
Click to collapse
ok, pm
raystef66 said:
Most likely a signing problem or possible a clean flash needed.... (that is if you changed permissions right and so on....i cannot judge from here )
But as only res has to be modified i'd see no problem..
If you send me the ogg files you want to replace in the apk, i'll look into that and do a test myself.
Click to expand...
Click to collapse
xzolteu said:
ok, pm
Click to expand...
Click to collapse
i'm guessing you didn't change the permissions after putting it back, though, isn't it?
xzolteu said:
ok, pm
Click to expand...
Click to collapse
Glad it worked ! Needed more then a bit of permissions
These chinese ones are more stubborn as other roms. Therefore i deodexed the SystemUI_ZTE.apk
ONLY WORKING ON V2.0.0B13 (SL!M) Mifavor5.0
Here is the deodexed file : https://androidfilehost.com/?fid=818070582850495598
Just extract it and replace existing in system/priv-app/SystemUI_ZTE/ and change to 644
And you'll have another "charging" tone

Categories

Resources