Reset Use Google Network location Consent - Android Q&A, Help & Troubleshooting

Hi
Since the last google services update an option to disable the confirmation box every time you used google high accuracy location was introduced. I would like to know how to reset that option so the box will appear each time? The only reason I checked this box was to see if there was an issue causing google services to crash.

smelllllllllll said:
Hi
Since the last google services update an option to disable the confirmation box every time you used google high accuracy location was introduced. I would like to know how to reset that option so the box will appear each time? The only reason I checked this box was to see if there was an issue causing google services to crash.
Click to expand...
Click to collapse
I'd go to Settings > Applications > All >
Then uninstall Google Services update, reboot, then update it again.

es0tericcha0s said:
I'd go to Settings > Applications > All >
Then uninstall Google Services update, reboot, then update it again.
Click to expand...
Click to collapse
Cheers dude never thought of doing it that way. After playing about for a while I found a way to enable it again.
So for anyone else who's interested I edited the nlp-prefs.xml file contained in Data > Data > com.google.android.gms > shared_prefs
Changing From:
<boolean name="confirmNlp" value="false" />
Changing To:
<boolean name="confirmNlp" value="true" />

smelllllllllll said:
Cheers dude never thought of doing it that way. After playing about for a while I found a way to enable it again.
So for anyone else who's interested I edited the nlp-prefs.xml file contained in Data > Data > com.google.android.gms > shared_prefs
Changing From:
<boolean name="confirmNlp" value="false" />
Changing To:
<boolean name="confirmNlp" value="true" />
Click to expand...
Click to collapse
was searching for a solution and tried this, but no go. so i just wiped data for google play services from TiBu and that worked.
posting a response in case someone else wanted another solution.
enjoy.

smelllllllllll said:
Cheers dude never thought of doing it that way. After playing about for a while I found a way to enable it again.
So for anyone else who's interested I edited the nlp-prefs.xml file contained in Data > Data > com.google.android.gms > shared_prefs
Changing From:
<boolean name="confirmNlp" value="false" />
Changing To:
<boolean name="confirmNlp" value="true" />
Click to expand...
Click to collapse
Thank you very much.
I had to reboot the device to make the changes take effect.

Does In the last update the check box is gone?
Anyone also see this?

How you edit that file - com.google.android.gms ?
It says access denied!

I have a Nexus 5 with Android 6.01 rooted.
I found the file but it did not contain:
<boolean name="confirmNlp" value="false" />
I added it. Unfortunately, before I tested it I re-booted the phone and the line disappeared.
I notice it has another entry:
<boolean name="nlpAllowedByUser" value="true" />
Does this have anything to do popup?

Related

Weather Bug - got it working

I installed Weather Bug today and to my dismay I could not get it working using location services. It worked fine if I removed the location services check boxes during setup and manually entered the location.
I was not happy with having to use a manual entry for my current location and every time I went into settings and turned on location services the app would force close. I figured it was the lack of location services.
adb remount
adb pull /data/data/com.aws.android/shared_prefs/com.aws.android_preferences.xml
change the line using notepad++ to:
<boolean name="prefs_use_gps" value="true" />
to
<boolean name="prefs_use_gps" value="false" />
push the file back:
adb push com.aws.android_preferences.xml /data/data/com.aws.android/shared_prefs/com.aws.android_preferences.xml
now you can enter settings and enable location services. Just do not enable GPS,
I attached a already modified file. Just rename the txt to xml.
Thanks. Any idea how to get the elite version to work? I added the string from your file, <boolean name="prefs_use_gps" value="false" />, and it did prevent the force close with Location enabled; however, it couldn't find my location. Attached is my com.aws.android.elite_preferences file
I just enable the TetherGPS client when running such apps which crash when trying to access GPS.
richard98 said:
Thanks. Any idea how to get the elite version to work? I added the string from your file, <boolean name="prefs_use_gps" value="false" />, and it did prevent the force close with Location enabled; however, it couldn't find my location. Attached is my com.aws.android.elite_preferences file
Click to expand...
Click to collapse
This is the line that tells it to use the network location. I did not see this line in your file, so I do not know if it will work in your version.
<boolean name="prefs_use_network" value="true" />

[Q] How do I get media_rw folder to be read write accessible?

I have a rooted Galaxy S3 running 4.4.2 kitkat and been trying to do what I thought be simple thing and get the media_rw folder to be read write accessible.
I can do it using Root Browser as my file manager and change the permissions and it work until phone is rebooted the the permissions revert back to what they were.
I read too many threads on cures and a lot have to do with editing the platform.xml file which has been done and checked with one of the apps use to check it. I tried writing a bootup script to set permission on every boot using ROM Manager but that did not work either.
So I figure I would ask here to find out from the informed people here as to why this has this been such a pain to get working or what I am hoping is someone set me straight and tells me how to fix the problem.
Any comments on making permissions stick using android work or even why it wont work would help. I am not familiar with linux based systems just windows.
Just giving this thread a bump as per the rules to get it unburied here.
https://play.google.com/store/apps/details?id=nextapp.sdfix
https://play.google.com/store/apps/details?id=jrummy.sdfix
http://forum.xda-developers.com/xposed/modules/app-handleexternalstorage-t2693521
es0tericcha0s said:
https://play.google.com/store/apps/details?id=nextapp.sdfix
https://play.google.com/store/apps/details?id=jrummy.sdfix
http://forum.xda-developers.com/xposed/modules/app-handleexternalstorage-t2693521
Click to expand...
Click to collapse
I had tried 2 of the fixes before just tried the xposed one and still have the same problem.
The only problem I been having is to use Titanium Backup "Protect This Backup" option as I am getting operation failed when I use it.
The workaround for me was to change media_rw folder to 777 permissions which I did by using Root Browser.
The problem with that was once I rebooted the phone the permission are reset and cant access folder anymore.
I needed use this path to make Protect This Backup work /mnt/media_rw/extSDCard/TitaniumBackup
If there another path I can use that be fine too.
Make Titanium a /system/app and reboot. That should allow you to do that, I think...
es0tericcha0s said:
Make Titanium a /system/app and reboot. That should allow you to do that, I think...
Click to expand...
Click to collapse
I did that I made TB a system app and rebooted.
I could not access media_rw folder and tried protect the bacckup with /storage/extSdCard/TitaniumBackup path same result operation failed when I tried it.
Grab you system/etc/permissions/ platform.xml edit with notepad ++ or any text editor. Make sure your permissions looks like this for the sdcard:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Should fix your problem
lacoursiere18 said:
Grab you system/etc/permissions/ platform.xml edit with notepad ++ or any text editor. Make sure your permissions looks like this for the sdcard:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Should fix your problem
Click to expand...
Click to collapse
I been working backwards on this thread just trying to get rw permissions for media_rw folder I have read and tried a lot of things unsuccessfully to work and here is my edited platform.xml file to examine and you can tell me if my edits were wrong but I think there are good.
lacoursiere18 said:
Grab you system/etc/permissions/ platform.xml edit with notepad ++ or any text editor. Make sure your permissions looks like this for the sdcard:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Should fix your problem
Click to expand...
Click to collapse
I am kinda new to android and linux permission so how does adding <group gid="media_rw" /> to the platform.xml file change things?
Does it change the media_rw/ folder to make it R/W?
techmanc said:
I am kinda new to android and linux permission so how does adding <group gid="media_rw" /> to the platform.xml file change things?
Does it change the media_rw/ folder to make it R/W?
Click to expand...
Click to collapse
Correct. You have to reboot your phone after you apply these changes as well..
EDIT:
https://www.dropbox.com/s/n9lcyu7b2vnym3q/platform.zip
You forgot to add READ_MEDIA_STORAGE
lacoursiere18 said:
Correct. You have to reboot your phone after you apply these changes as well..
EDIT:
https://www.dropbox.com/s/n9lcyu7b2vnym3q/platform.zip
You forgot to add READ_MEDIA_STORAGE
Click to expand...
Click to collapse
I installed your platform.xml file you uploaded it had like 10 more lines than my file hoping it would work but I am getting a lot programs crashing now. I can replace file with the one I was using no problem but any idea why this platform.xml file not working?
It looks like its not seeing my SD card now just internal card
I just reinstalled my backup as the platform.xml was not working and was getting a lot apps to crash. I was able to restore my original platform.xml but still was having same problems with apps popping error messages. The 3 apps I used showed my phone should be working right but I cant access the media_rw folder using Titanium Backup to path it to /mnt/media_rw/extSDCard/TitaniumBackup which was only way I could get Protect This Backup feature to work. I am assuming that Titanium Backup is the problem but still cant get it to work.
Maybe someone has a Galaxy S3 4.4.2 than can post there platform.xml if there's is working with this problem.
So where nothing has worked its hard to see how the changes were supposed to work. Would it allow me to access the media_rw folder by changing its permissions or how does it work. I can do anything else with my phone and apps so not sure if its the problem or TB. Any insight would be helpful as I still learning how android OS works. Also have nandroid of phone so I can revert back it needed.
https://play.google.com/store/apps/d...=nextapp.sdfix
https://play.google.com/store/apps/d...d=jrummy.sdfix
http://forum.xda-developers.com/xpos...orage-t2693521
techmanc said:
I just reinstalled my backup as the platform.xml was not working and was getting a lot apps to crash. I was able to restore my original platform.xml but still was having same problems with apps popping error messages. The 3 apps I used showed my phone should be working right but I cant access the media_rw folder using Titanium Backup to path it to /mnt/media_rw/extSDCard/TitaniumBackup which was only way I could get Protect This Backup feature to work. I am assuming that Titanium Backup is the problem but still cant get it to work.
Maybe someone has a Galaxy S3 4.4.2 than can post there platform.xml if there's is working with this problem.
So where nothing has worked its hard to see how the changes were supposed to work. Would it allow me to access the media_rw folder by changing its permissions or how does it work. I can do anything else with my phone and apps so not sure if its the problem or TB. Any insight would be helpful as I still learning how android OS works. Also have nandroid of phone so I can revert back it needed.
https://play.google.com/store/apps/d...=nextapp.sdfix
https://play.google.com/store/apps/d...d=jrummy.sdfix
http://forum.xda-developers.com/xpos...orage-t2693521
Click to expand...
Click to collapse
Have you tried an app called FolderMount? You might want to give that one a go. It requires a reboot after the changes are detected and changed..
lacoursiere18 said:
Have you tried an app called FolderMount? You might want to give that one a go. It requires a reboot after the changes are detected and changed..
Click to expand...
Click to collapse
I tried it said it had to patch to fix something which seemed to work but when I tried to path it to use it you need to start from path /storage/emulated/0 so could not even get to media_rw folder to add to path to so I assuming with this app you cant go to the root folder to setup a folder to move. I hope I explained this right.
Anyone out there thats using Titanium Backup which was only way I could get Protect This Backup feature to work running 4.4.2 kitkat os and how did they get it to work?
techmanc said:
I tried it said it had to patch to fix something which seemed to work but when I tried to path it to use it you need to start from path /storage/emulated/0 so could not even get to media_rw folder to add to path to so I assuming with this app you cant go to the root folder to setup a folder to move. I hope I explained this right.
Anyone out there thats using Titanium Backup which was only way I could get Protect This Backup feature to work running 4.4.2 kitkat os and how did they get it to work?
Click to expand...
Click to collapse
Did reboot after it patched? If not do so then try the TB feature
lacoursiere18 said:
Did reboot after it patched? If not do so then try the TB feature
Click to expand...
Click to collapse
Did not work.
The path I am using with TB as my Backup folder location is when I cant access media_rw folder due to permissions is
/storage/extSdCard/TitaniumBackup and everything in TB is working except Protect This Backup.
Now I just gave RW permissions to media_rw folder and use this path in TB folder location to
/mnt/media_rw/extSdCard/TitaniumBackup
and I can protect and unprotect files with TB but I have to manually set the permissons to media_rw folder none of the tweaks have done that.
One of the thread I was looking at suggested to use a script to add permissions on bootup but did not work for me either.
I know I am being thick headed about making this work just irks me when I cant find the solution....
Here is the other threads link.......
Titanium Backup "Protect This Backup" fails
http://forum.xda-developers.com/showthread.php?p=54701863
added couple screenshots of using TB
Any way to add a script to add RW permissions to the media_rw folder when booting the phone so folder can be accessed?

How to How to enable cost saving option in Lollipop?

For Sony phones running KitKat it was simple sollution:
----------------
1. Go to
/data/data/com.sonyericsson.conversations/shared_prefs
2. Open
com.sonyericsson.conversations_preferences.xml
3. Enabling costs saving
Change <boolean name="semc_pref_key_character_conversion" value="false" /> to <boolean name="semc_pref_key_character_conversion" value="true" />
_______________
There is also Sony Xposed module http://forum.xda-developers.com/showthread.php?p=53009040#post53009040
But my question is how to add this option on stock lollipop messages application or at least how to change it in preferences (I can not find preferences.xml file for messages on lollipop)
I have found option in /data/data/com.android.mms/shared_prefs/com.android.mms_preferences.xml
<boolean name="pref_key_sms_characters" value="true" />
But I do not know what it means...
https://code.google.com/p/synergy-t...ed_prefs/com.android.mms_preferences.xml?r=66

Reset Location to Device Only

Okay so I choose "yes" when the location settings asked for access to network info. I would like to revoke that choice so it does not access my network and I can ignore the prompt. I prefer to just use the GPS (Device Only) setting but instead it goes to High Accuracy (GPS and Network) and I can't change force the location button to change back to default when it prompted me. Is it possible to get it back so that when I enable location it's not High Accuracy? Android OS: 5.1.1
Grabbing the anwser from the following topic : http://forum.xda-developers.com/android/help/reset-google-network-location-consent-t2890971 . You will need root:
smelllllllllll said:
So for anyone else who's interested I edited the nlp-prefs.xml file contained in Data > Data > com.google.android.gms > shared_prefs
Changing From:
<boolean name="confirmNlp" value="false" />
Changing To:
<boolean name="confirmNlp" value="true" />
Click to expand...
Click to collapse
I tried it myself and it really works... After doing this change , reboot your device
In the meantime the (mis)behaviour of Play Services changed a bit. I.e. in v12.x there's, instead of changing the value of
<boolean name="confirmNlp" value="false" /> to "true",
the complete line to be deleted.
Reboot. Then the confirmation dialog appears again.
Tested on MM 6.01.

How to disable components without root?

Is it possible to disable receivers without root?
pm disable? I'm not really familiar with it.
I don't really want to root and I've been trying to find out ways to disable receivers in apps.
StickyPuppyPerson said:
Is it possible to disable receivers without root?
pm disable? I'm not really familiar with it.
I don't really want to root and I've been trying to find out ways to disable receivers in apps.
Click to expand...
Click to collapse
It's possible, to disable an app go to settings-->apps and notifications-->All Apps and find the one you want to disable in the list. Click it and then click "disable".
The process may vary depending on the Android version, but I'm sure you can do it (this feature appeared but Android Ice Cream Sandwich).
P.s: You can't disable some apps because they are necessary to the system.
@StickyPuppyPerson
THREAD'S TITLE IS TOTALLY MISLEADING!
Anyway:
Apps can register receivers. These are specified in app's Manifest.xml file.
Example:
Code:
<receiver android:name=".MyBroadcastReceiver"
android:exported="true"
android:enabled="true" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.INPUT_METHOD_CHANGED" />
</intent-filter>
</receiver>
Hence to disable/remove a receiver you would either have to change content of app's Manifest.xml file manually or programmatically by means of Android's PacketManager ( Note: if it's NOT a system app you want to modify then to do NO root is required ).
jwoegerbauer said:
@StickyPuppyPerson
THREAD'S TITLE IS TOTALLY MISLEADING!
Anyway:
Apps can register receivers. These are specified in app's Manifest.xml file.
Example:
Code:
<receiver android:name=".MyBroadcastReceiver"
android:exported="true"
android:enabled="true" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<action android:name="android.intent.action.INPUT_METHOD_CHANGED" />
</intent-filter>
</receiver>
Hence to disable/remove a receiver you would either have to change content of app's Manifest.xml file manually or programmatically by means of Android's PacketManager ( Note: if it's NOT a system app you want to modify then to do NO root is required ).
Click to expand...
Click to collapse
How should I rename it?
Could you show me an example with adb?
Was wondering if there was an app for this that works with no root adb.
StickyPuppyPerson said:
How should I rename it?
Click to expand...
Click to collapse
Because there are four different types of app components:
Activities
Services
Broadcast receivers
Content providers
specify the component -> Replace "components" by "receivers"
Was wondering if there was an app for this that works with no root adb.
Click to expand...
Click to collapse
May be a so-called APK-Editor does the job: Don't know it.

Categories

Resources