Related
I read in the SD-development thread about editing the
"GPS1_CLEANUP_ENABLED=1
HD2 have high current drainage(60mA) in the 0812 build. I noticed in /etc/gps.conf GPS1_CLEANUP_ENABLED was set to 0. After changing the value to 1. Current usage was back to normal 8mA"
I'm currently running the AmericanAndroid SD build and would like to change this value to 1. How do I access this? Using the phone, I went into file manager/etc and found the gps.conf file but how do I edit it? When I plug the phone to my laptop I can only view files from my SD card.
Thanks in advance, and sorry if this is a noob question.
Can anyone help?
During standy the battery drain is a consistent 60-70mA. Nothing is running, background data turned off, no wi-fi, no GPS, no sync.
rice-CHRISpies said:
I read in the SD-development thread about editing the
"GPS1_CLEANUP_ENABLED=1
HD2 have high current drainage(60mA) in the 0812 build. I noticed in /etc/gps.conf GPS1_CLEANUP_ENABLED was set to 0. After changing the value to 1. Current usage was back to normal 8mA"
I'm currently running the AmericanAndroid SD build and would like to change this value to 1. How do I access this? Using the phone, I went into file manager/etc and found the gps.conf file but how do I edit it? When I plug the phone to my laptop I can only view files from my SD card.
Thanks in advance, and sorry if this is a noob question.
Click to expand...
Click to collapse
You need to use a file explorer with root privileges. You can d/l ES File Explorer (or something like it) from the market for free.
When you run it, you'll be prompted to give it root (SU, or superuser) permissions. There's a checkbox in the menu, for you to do this anyway.
Most importantly - since the file system is read only - you'll have to also check the box directly underneath it in the root settings section of the menu to 'Mount File System'. This will make the files writable, so you can save your edits.
In general, you can keep the 'Root Explorer' box checked at all times, but it's not a bad practice to uncheck the Mount File System box when you're done so as to ensure against file changes.
gps.conf is located in the etc directory of the system. The line you want to edit is at the end of the file. When you make your change... don't forget to press the menu button and then press SAVE.
another user had similar problems - so you can take a quick look here...
http://forum.xda-developers.com/showpost.php?p=16735406&postcount=15225
Rob
thanx.works for me.
ke2v85 said:
thanx.works for me.
Click to expand...
Click to collapse
"Speaking of thanks, use the thanks button. Use it every time you get an answer, even if it's a one you don't like"
http://www.youtube.com/watch?v=JmvCpR45LKA&t=1m33s
I pressed it for you this time, next time you do it.
Hi, I had beautiful widgets installed and it was not findeing the location automatically, I had to put the zipcode or the city. Now I copied the networklocation.apk from my phone to the kindle's in the system app folder and now it is finding it by geolocation.
Sent from my Kindle Fire using xda premium
I gave this a shot with nogo... CityID it pulls up with is jibberish and non-locational to where I am at.
Just so you know what I did...
o Copied com.google.androidlocation.apk to /system/app
o Rebooted the device
o Used BeautifyWidgets, selected Weather Widget Setting
o Selected Set Location
o Clicked Geolocation
Errors said Geolocation was not on
o told it to use it anyway
o Saved the settings.
krelvinaz said:
I gave this a shot with nogo... CityID it pulls up with is jibberish and non-locational to where I am at.
Just so you know what I did...
o Copied com.google.androidlocation.apk to /system/app
o Rebooted the device
o Used BeautifyWidgets, selected Weather Widget Setting
o Selected Set Location
o Clicked Geolocation
Errors said Geolocation was not on
o told it to use it anyway
o Saved the settings.
Click to expand...
Click to collapse
When you copy the app in the settings l, long press the app and choose permissiones and you must have it setup like the pic
Sent from my Kindle Fire using xda premium
Will this work with Google Maps as well?
EDIT: Yup, I am now finding my location in Google Maps as well. Saaweeet!
Used the same permissions as everything else in the /system/app directory
0644
Well my location is working I don't know why yours doesn't .
samomamo said:
Well my location is working I don't know why yours doesn't .
Click to expand...
Click to collapse
Samomamo, where did you get the NetworkLocation.apk package from, also did you have to adjust anything in Settings.db for any network settings?
I am completely stumped and have been scouring through myriads of posts for some shred of helpful info, so far this post and this one:
http://forum.xda-developers.com/showthread.php?t=1362472
but have had no luck with either one. I am wondering if the answer lies in from where you got your NetworkLocation.apk. Any help would great! Thanks!
I got the apk from my T-Mobile Galaxy s2
Sent from my SGH-T989 using xda premium
I downloaded the networklocation apk from the CM7 gapps. The followed the directions and it is now showing my location. I believe it will only show my location if connected to wifi though.
Gapps is found here : goo-inside.me/gapps/
Solved issue by adding files and editing framework-res.apk
If anyone searching is interested in how I was able to solve this I could not simply add the Google Network Location APK, I had to force the Amazon "framework-res.apk" file to recognize it by editing the '/res/values/strings.xml' with the following lines:
Same ol' disclaimers - I'm not responsible for whatever you do with this info, if you brick your device, its your decision to try and not my fault or issue to fix. This is nothing new I just put the various pieces together from research through other posts, forums, etc. so credit where credit is due.
irishmyles003 and samomamo thank you very much for your input. Though I wish your solutions would have worked I am glad I had this challenge as I think I taught myself a little more about how to mess around and tweak the system a bit.
I still added the NetworkLocation.APK as stated and explained by Samomamo, but I had the do the following steps in order to get the framework to actually react to network location requests, since it kept returning "null".
<<Original>>
Code:
<string name="config_networkLocationProvider">@null</string>
<string name="config_geocodeProvider">@null</string>
<<Modded>>
Code:
<string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
<string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
Steps:
Use ApkTool to pull "framework-res.apk" and decompile
Replace the lines above to match the modded section
Recompile the APK to "unsignedframework-res.apk"
Copy and rename original "framework-res.apK" -> "originalframework-res.apk" (put this file aside in case you need to flash if you make a mistake)
Rename the original and newly compiled files to .zip (so you can extract, edit, etc)
- "framework-res.apk" -> "framework-res.zip"
- "unsignedframework-res.apk" -> "unsignedframework-res.zip"
Extract "resources.arsc" from unsigned and paste (and overwrite) to the "framework-res.zip" file
Rename "framework-res.zip" -> "framework-res.apk"
Push "framework-res.apk" to device (need to mount /system r/w)
chmod 644 (i.e. <rw, r, r> for root explorer)
Reboot and voila it worked (for me at least)!
Sources / Props to the authors of these links:
I could not give correct props because I got these from outside links, but [email protected] and the Enable CRT Animation guide at freeyourandroid.com and the APKtool tutorial at miui-au.com
Also if you google using the info above you will find you can also enable the AOSP GB CRT Animation by editing a line in the bools.xml, I tried this and it works! Enjoy!.
EDIT: After applying the framework-res.apk and rebooting I just realized that my accounts were lost. I just had to re-add them via SyncSettings (Market: com.francesandmarky.android.syncsettings) - Amazon, Gmail, and Facebook.
rpw128 said:
If anyone searching is interested in how I was able to solve this I could not simply add the Google Network Location APK, I had to force the Amazon "framework-res.apk" file to recognize it by editing the '/res/values/strings.xml' with the following lines:
Same ol' disclaimers - I'm not responsible for whatever you do with this info, if you brick your device, its your decision to try and not my fault or issue to fix. This is nothing new I just put the various pieces together from research through other posts, forums, etc. so credit where credit is due.
irishmyles003 and samomamo thank you very much for your input. Though I wish your solutions would have worked I am glad I had this challenge as I think I taught myself a little more about how to mess around and tweak the system a bit.
I still added the NetworkLocation.APK as stated and explained by Samomamo, but I had the do the following steps in order to get the framework to actually react to network location requests, since it kept returning "null".
<<Original>>
Code:
<string name="config_networkLocationProvider">@null</string>
<string name="config_geocodeProvider">@null</string>
<<Modded>>
Code:
<string name="config_networkLocationProvider">com.google.android.location.NetworkLocationProvider</string>
<string name="config_geocodeProvider">com.google.android.location.GeocodeProvider</string>
Steps:
Use ApkTool to pull "framework-res.apk" and decompile
Replace the lines above to match the modded section
Recompile the APK to "unsignedframework-res.apk"
Copy and rename original "framework-res.apK" -> "originalframework-res.apk" (put this file aside in case you need to flash if you make a mistake)
Rename the original and newly compiled files to .zip (so you can extract, edit, etc)
- "framework-res.apk" -> "framework-res.zip"
- "unsignedframework-res.apk" -> "unsignedframework-res.zip"
Extract "resources.arsc" from unsigned and paste (and overwrite) to the "framework-res.zip" file
Rename "framework-res.zip" -> "framework-res.apk"
Push "framework-res.apk" to device (need to mount /system r/w)
chmod 644 (i.e. <rw, r, r> for root explorer)
Reboot and voila it worked (for me at least)!
Sources / Props to the authors of these links:
I could not give correct props because I got these from outside links, but [email protected] and the Enable CRT Animation guide at freeyourandroid.com and the APKtool tutorial at miui-au.com
Also if you google using the info above you will find you can also enable the AOSP GB CRT Animation by editing a line in the bools.xml, I tried this and it works! Enjoy!.
EDIT: After applying the framework-res.apk and rebooting I just realized that my accounts were lost. I just had to re-add them via SyncSettings (Market: com.francesandmarky.android.syncsettings) - Amazon, Gmail, and Facebook.
Click to expand...
Click to collapse
Could someone post the modified framework-res.apk?
Why does it work for some but not others?
andTab, I tried but the max filesize is 8 mb for APK files, the framework-res.apk is 27-31 mb. I couldn't figure out why the original posters were able to do it by just adding the files. When I unpacked the APK it was intentionally set to null not allowing usage of the google location framework.
xxx.multiupload.com/5FJ4ZTH6TX (take out the x's, it wouldn't let me post the address b/c I am new)
Thanks for your work guys...
I downloaded and applied this frame work apk, the crt animation is now enabled, but google maps still not finding my location in the middle of Los Angeles.
Hmmmm
You still need NetworkLocation.Apk from Gapps put into /System/App (also run it from your SD Card), then reboot. The adjusted lines in the Framework-Res points to this framework.
So my evo 3d is running ICS, can I still use the file? Or could someone post a working one?
atomiclama said:
So my evo 3d is running ICS, can I still use the file? Or could someone post a working one?
Click to expand...
Click to collapse
irishmyles003 said:
I downloaded the networklocation apk from the CM7 gapps. The followed the directions and it is now showing my location. I believe it will only show my location if connected to wifi though.
Gapps is found here : goo-inside.me/gapps/
Click to expand...
Click to collapse
I'm not too sure, if you're working off stock the Kindle Fire uses 2.3.4 so I would use the 8/28 version from the website irishmyles003 provided.
Hmm still not having a whole lot of luck.
I downloaded the networklocations apk from gaps of the correct date. Also installed the updated framework. Like I said Im seeing CRT change.
I've set up the geo location through beautiful widgets.. but still not finding location.
What am I missing?
thanks
also when I placed the network locations apk I set correct permission and tried to install it, it said application not installed. Could to be part of the problem?
atomiclama said:
also when I placed the network locations apk I set correct permission and tried to install it, it said application not installed. Could to be part of the problem?
Click to expand...
Click to collapse
Placing it in the /system/app area is installing it.
Make sure you reboot for the system to see it though.
Note: I've not tried this patch...
I'm not exactly sure why it isn't working for you. I spent a few days looking at logcat's and forums. Don't forget to change the permissions (mentioned earlier in this thread) to 644.
since my carrier uses a lot of different apn addresses depending on which contract you have, I always must manually edit the preset ones to my needs. I noticed that in this ROM by default you cannot edit, delete or even just view said default APNs (you still can add them to your liking though, so no real harm done).
while fiddling through the build.prop file in this new gingerbread rom I happened to stumble upon these two lines:
ro.build.OEM_PRESET_APN_LOCK=1
ro.build.OEM_PRESET_APN_HIDE=1
I changed the values to 0 and now the APN entries are fully editable and removable. just a quick reminder of the correct procedure:
- have a rooted streak
- install a root-enabled file explorer (root explorer works fine)
- mount system as R/W
- goto /system and edit file build.prop
- search for the above lines and change 1 to 0 (duh!)
- save, exit, reboot, enjoy
note: I found multiple instances of those two lines throughout the file. check thoroughly and change them all!
Awesome. I'm finding it.
Gonna give a try....
Btw, how to show up sim toolkit on apps drawer.
Thanks
Sent from my PC36100 using xda premium
Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Just hit the thanks button, he doesn't bite your finger!
This is an easy way to edit the images only(icons,wallpaper,etc),not XML files,Smali's and such.I do this using the kitchen,easy way if you theme alot.
Diablo67 said:
This is an easy way to edit the images only(icons,wallpaper,etc),not XML files,Smali's and such.I do this using the kitchen,easy way if you theme alot.
Click to expand...
Click to collapse
You don't have to use this guide just for images. That was just the example. You can use it for almost any file inside an .apk. I was just saying that SOME folders aren't there.
Can you guide me to how do i keep same apps of diff versions.
i tried to modify a 3rd party app e.g whatsapp and when i tried installing i got an error which said "the app is not signed", may u kindly assist!
tendyfish said:
i tried to modify a 3rd party app e.g whatsapp and when i tried installing i got an error which said "the app is not signed", may u kindly assist!
Click to expand...
Click to collapse
You also have this tool
Easy Apk Dissassembler
http://forum.xda-developers.com/showthread.php?p=14049173
How do I use a flashable to get rid of .apks??? ₩
On the app I have here it returns 20 results that it scrapes from a website. I only want it to return 3 or 4. How do I get in there and change that value?
I want to change values on touchwiz launcher on my note 3, to use it in 440 dpi. When I use it there is so much margin on all sides, and I need to reduce. I need to add a new icon row as well. Can I do that just by modifying the app?
Sent from my GT-I9505 using Tapatalk
are the .xml files encrypted or something? when i try to edit them, it is a bunch of strange characters
Hi,
I would like to modify the tinychat.apk so that i can find how to change my device info/platform from android to something else, like pc or whatever. I dont want to be identified as using an android device. Is this possible?
Regards.
ksaul said:
are the .xml files encrypted or something? when i try to edit them, it is a bunch of strange characters
Click to expand...
Click to collapse
Yes, depending on what tool you use to decompile the apk files it may or may not decrypt them. I use apktool and it decrypts them just fine.
I think this method is no longer working for 4.3+
Modify JAR files
littlejoelgriffo said:
Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Click to expand...
Click to collapse
That's very helpful thank you for sharing. Is there a way to modify JAR files the same way?
gilbertgk said:
That's very helpful thank you for sharing. Is there a way to modify JAR files the same way?
Click to expand...
Click to collapse
rename the jar to apk..after done,rename it back to jar
zamzameir said:
rename the jar to apk..after done,rename it back to jar
Click to expand...
Click to collapse
Can this work on my note 3 4.3 not rooted?
gilbertgk said:
Can this work on my note 3 4.3 not rooted?
Click to expand...
Click to collapse
idk..but you can try n report back
littlejoelgriffo said:
Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Click to expand...
Click to collapse
Thnax for great guide but,my gopro app has a update and I have changed the icon on it but the app store dosent show me the update button. How to fix so I can update?
What do I need to change in an app to substitute it for another app?
OK so I've installed a new ROM and it comes with a kernel setting app preinstalled. This app has been integrated into the system settings portion of the ROM. I want to replace this kernel settings app with one of my choice but I want to be able to integrate it into the system settings like the original app is. I tried disguising the new app by changing the name of the app and .apk files but that didn't work. Closest I got was being able to convert my app to system app but even though I changed the name, the app, when installed goes back to it's original name. Or what permissions or files do I need to change to allow the integration of my app into the settings interface. Thanks ahead of time, it's appreciated.
Hello fellows XDA, after updating my G928T to marshmallow, I can't seem to find setting.db under sqlite or even searching the file doesn't come up in /data/data/com.android.providers.setting/databases. Does anyone know where I could find this file or what may happen to it? Thanks all!
Sent from my SM-G928T using XDA-Developers mobile app
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I was able to find it, but after editing and given the right permission also restarted, the setting reset to default and the new changes didn't stick in the new file.
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I dont get this, what do you mean with move setting from db to xml do you mean rename or what could you be more detalied ? Thnx
Sry for asking
astrit1 said:
I dont get this, what do you mean with move setting from db to xml do you mean rename or what could you be more detalied ? Thnx
Sry for asking
Click to expand...
Click to collapse
I mean the setting used to be stored in a .db file, but (because samsung changed it i guess) it is now stored in a .xml file. no need to rename anything, just edit the xml.
I was able to find it, but after editing and given the right permission also restarted, the setting reset to default and the new changes didn't stick in the new file.
Click to expand...
Click to collapse
If i recall correctly there are 2 entries pertaining to the toggles and one seems to overwrite the other on boot. Make sure to change both if anyone is still trying to do this. If that doesn't work then I don't know what I did to make it stick.
If i recall correctly there are 2 entries pertaining to the toggles and one seems to overwrite the other on boot. Make sure to change both if anyone is still trying to do this. If that doesn't work then I don't know what I did to make it stick.
Click to expand...
Click to collapse
if he uses only the xxx_reset one they are going to be overwritten by the normal one when he reboots ,it did this to me
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I found that xml, I copied it on my pc, opened in browser but in that xml I couldn't find anything related to mobile data toggling, or notification toggling like this: notification_panel_default_active_app_list. Could you pls tell me how did you manage to add mobbile data toggle using this method? I'm on Sprint N920P. Thanks in advance