Currently on a Nexus 5X with marshmallow and am looking to change the location mode [High Accuracy, Battery Saving, GPS] through the shell. I've found numerous threads on this topic simulating essentially what Secure Settings does for the Tasker plugin.
http://android.stackexchange.com/qu...ossible-to-enable-location-services-via-shell
http://android.stackexchange.com/questions/115011/toggle-location-services-via-adb-in-android-5
Also this alternative method: http://forum.xda-developers.com/nexus-6/general/how-to-restore-change-android-id-t3219345
Tried these too:
Code:
INSERT
adb shell content insert --uri content://settings/secure --bind name:s:location_providers_allowed --bind value:s:wifi,network
UPDATE
adb shell content update --uri content://settings/secure --bind value:s:wifi,network --where "name=\'location_providers_allowed\'"
However, it refuses to change on my Nexus 5X. I've tried numerous different ways whether just calling it from ADB shell or just as a root user in the shell directly. Nothing seems to change the "location_provders_allowed" key manually.
Anyone have any leads on this? I've wanted to use Secure Settings, but it doesn't support systemless root as well as even if it did I think this is the method they use in the app.
I'd like the answer to that too!
Related
I have seen many questions as to how to get tethering back after upgrading to Android 5.0+ on the Stock rom. There are answers but only after searching 30+ pages of information. For those that have ADB set up you can simply run a few commands to get it to work below:
Code:
--Reneable tethering on Nexus 5 VIA ADB
adb shell content insert --uri content://settings/global --bind name:s:tether_dun_required --bind value:i:0
--Check Fix is still installed
adb shell content query --uri content://settings/global --where "name='tether_dun_required' AND value="0"
For those of you that do not have it set up I have provided an archive of everything you need with a batch file to run it automatically, just unzip the file and click on the batch.
As this is only adding a database table and modifies nothing else, there should be no ill affects of applying it to a non-compatible device. A NAND backup is always recommended with any mod done, the same applies here.
Probably a stupid question but is this nexus 5 specific?
Not that I know of. This should work on any stock android or AOSP/AOKP build, however if you are using a custom rom like Cyanogen Mod this table has been cooked into the rom already. If it doesnt work it shouldn't cause any problems, however a NAND backup is always recommended.
I wanna post this guide cuz i searched around and couldnt find any method for kitkat and lollipop, get full sd card write WITHOUT permanent ROOTING.
Some may say: just root, make changes with root file manager, and unroot from superSU. BUT, for this device, from what i experienced, the option for full uninstall/complete unroot, in superSU app, will just hang and do nothing .
I use IntelAndroid-FBRL 05-16-2015 Public Trail Release, made by @social-design-concepts - a really big thanks :good:.
http://forum.xda-developers.com/showpost.php?p=60770086&postcount=352
The tweaks may work on other intel based devices, when temporary CWM recovery is triggered.
Reboot tablet in fastboot/droidboot mode - vol+ and power until asus logo apears.
Install intel android drivers - there are over 8mb limit of .7z files, so i cant add them here, just search intelandroiddrvsetup1.1.5.zip.
Connect tablet to pc with usb cable.
Unzip IntelAndroid-FBRL-05-16-2015-PTR.7z from @social-design-concepts and enter launcher.bat
type ACCEPT after reading the warning
Now:
- chose T2 if u are using Kitkat
- chose T4 if u are using Lollipop
Tablet reboots and after some screen artefacts (is normal) you are in temporary CWM recovery, which has a temporary root adb shell.
Keep tablet connected to pc.
Now download ADBfolder.7z, decompress it, and open inside a command prompt/window.
In this window insert commands, each followed by enter:
adb devices
adb shell id
adb shell mount /system
adb shell mv /system/etc/hosts /system/etc/hosts.bak
adb push hosts /system/etc/hosts
adb shell chmod 0644 /system/etc/hosts
adb shell mv /system/etc/permissions/platform.xml /system/etc/permissions/platform.xml.bak
adb push platform.xml /system/etc/permissions/platform.xml
adb shell chmod 0644 /system/etc/permissions/platform.xml
adb shell reboot
The tweaks remain even after factory reset.
For removing the tweaks, in case of installing oficial updates through OTA or manual, trigger again temporary CWM recovery, enter ADB folder, open command window and use these commands, each followed by enter:
adb devices
adb shell id
adb shell mount /system
adb shell rm /system/etc/hosts
adb shell mv /system/etc/hosts.bak /system/etc/hosts
adb shell rm /system/etc/permissions/platform.xml
adb shell mv /system/etc/permissions/platform.xml.bak /system/etc/permissions/platform.xml
adb shell reboot
It can be done, for lazy ones , with pasting these commands in two .bat files (one for install, other for remove), but I wanted ppl to see what is actually happening.
You can use another hosts file, but keep in mind the /system has limited space, so large ones may not fit.
b0by said:
I wanna post this guide cuz i searched around and couldnt find any method for kitkat and lollipop, get full sd card write WITHOUT permanent ROOTING.
Some may say: just root, make changes with root file manager, and unroot from superSU. BUT, for this device, from what i experienced, the option for full uninstall/complete unroot, in superSU app, will just hang and do nothing .
I use IntelAndroid-FBRL 05-16-2015 Public Trail Release, made by @social-design-concepts - a really big thanks :good:.
http://forum.xda-developers.com/showpost.php?p=60770086&postcount=352
The tweaks may work on other intel based devices, when temporary CWM recovery is triggered.
Reboot tablet in fastboot/droidboot mode - vol+ and power until asus logo apears.
Install intel android drivers - there are over 8mb limit of .7z files, so i cant add them here, just search intelandroiddrvsetup1.1.5.zip.
Connect tablet to pc with usb cable.
Unzip IntelAndroid-FBRL-05-16-2015-PTR.7z from @social-design-concepts and enter launcher.bat
type ACCEPT after reading the warning
Now:
- chose T2 if u are using Kitkat
- chose T4 if u are using Lollipop
Tablet reboots and after some screen artefacts (is normal) you are in temporary CWM recovery, which has a temporary root adb shell.
Keep tablet connected to pc.
Now download ADBfolder.7z, decompress it, and open inside a command prompt/window.
In this window insert commands, each followed by enter:
adb devices
adb shell id
adb shell mount /system
adb shell mv /system/etc/hosts /system/etc/hosts.bak
adb push hosts /system/etc/hosts
adb shell chmod 0644 /system/etc/hosts
adb shell mv /system/etc/permissions/platform.xml /system/etc/permissions/platform.xml.bak
adb push platform.xml /system/etc/permissions/platform.xml
adb shell chmod 0644 /system/etc/permissions/platform.xml
adb shell reboot
The tweaks remain even after factory reset.
For removing the tweaks, in case of installing oficial updates through OTA or manual, trigger again temporary CWM recovery, enter ADB folder, open command window and use these commands, each followed by enter:
adb devices
adb shell id
adb shell mount /system
adb shell rm /system/etc/hosts
adb shell mv /system/etc/hosts.bak /system/etc/hosts
adb shell rm /system/etc/permissions/platform.xml
adb shell mv /system/etc/permissions/platform.xml.bak /system/etc/permissions/platform.xml
adb shell reboot
It can be done, for lazy ones , with pasting these commands in two .bat files (one for install, other for remove), but I wanted ppl to see what is actually happening.
You can use another hosts file, but keep in mind the /system has limited space, so large ones may not fit.
Click to expand...
Click to collapse
where can i get this ADBfolder.7z?
So I just spent a few hours digging into this and thought someone might need it sometime down the line.
My wife's job uses a Kindle Fire HD 10 and they have a parental lock on it. Today they needed to change a Wi-Fi setting and couldn't remember the lock password.
The following tutorial will use adb to temporarily root your Fire, update the database to corrupt the lock, and create a new Parental Lock.
What you'll need:
ADB
mtk-su (Download from the first post here, don't worry about using their tutorial since I'll reiterate it here)
1. After you download mtk-su, push it to your device
Code:
adb push path/to/mtk-su /data/local/tmp/
2. Open an adb shell and cd to the data/local/tmp folder
Code:
adb shell
cd /data/local/tmp
3. Write executable permissions to the script
Code:
chmod 755 mtk-su
4. With the screen on, run the script:
Code:
./mtk-su -v
5. You should now be at a root shell (you can tell by the # instead of the $ symbol). Read the mtk-su thread for debugging if you don't get a root shell.
6. Get to your databases folder:
Code:
# cd /data/data/com.android.providers.settings/databases
7. Send some commands to your settings.db to overwrite those parental password values:
Code:
sqlite3 settings.db "insert into secure values(NULL,'parental_password_exist', '0');"
sqlite3 settings.db "insert into secure values(NULL,'parental_control', '0');"
sqlite3 settings.db "insert into secure values(NULL,'com.amazon.parentalcontrols.changed', '0');"
8. Delete the original password salt and key files via:
Code:
rm ./data/securedStorageLocation/com.amazon.parentalcontrols/files/*
9. Congrats, your parental controls are now corrupted! Your WiFi, among other things probably, will not work! Head over to your Settings and click on Parental Controls. Turn them on and create a new password. Now everything will work again.
hi!
If u look at thi then u might help me (pls i need help!)
i have a oppo phone (a37fw) that has been bricked (idk if it bricked)
Details:
well... i got the phone after my dad give me the phone and before i give it mo my dad, i set a PIN password and now i cant remember it ,aslo the recorvery does not have reset function ( #### <=== (i type it )u OPPO) ,and when i GooGle some way to unlock, i tried to use :Msm8x39DownloadTool.exe to unlock and it stuck at half of the processs so i unplug and plug again (well ik im dumb) .as the result, it bricked
so after a year , i try to fix the phone without doing teardown stuff (id wanna brek it),seem like i still can use the usb without the box (i forgot the name)
my computer rec it with this name:
QSH_USBBULK(something like this idk)
tried to do the same app but this time i wonder how i make it vibrate (Magical)
If someone khows how to do then pls help me!
By Hackor (Nam)
If phone is accessible via ADB then to remove FRP lock you can try running these ADB commands - one by one
Code:
adb devices
adb shell "am start -n com.google.android.gsf.login/"
adb shell "am start -n com.google.android.gsf.login.LoginActivity"
adb shell "content insert --uri content://settings/secure --bind name:s:user_setup_complete --bind value:s:1"
adb reboot
jwoegerbauer said:
If phone is accessible via ADB then to remove FRP lock you can try running these ADB commands - one by one
Code:
adb devices
adb shell "am start -n com.google.android.gsf.login/"
adb shell "am start -n com.google.android.gsf.login.LoginActivity"
adb shell "content insert --uri content://settings/secure --bind name:s:user_setup_complete --bind value:s:1"
adb reboot
Click to expand...
Click to collapse
srry but i mean that my phone is kind like bricked, but its can still connect through usb
bc its a qualcomm devices
EGL11QF6
EGL
1.0 firmware
E790C1D1944006BB6E24C855C196C7B2
Hi I have an E G L tablet I cant access due to it been locked after I did a hard reset I haven't got access to the Email account and it wont let me reset the password .
any ideas would I be able to install a custom rom and wipe it.
Any help appreciate seems a shame to throw it away
If you can establish an ADB connection between tablet and Windows computer then on Windows computer in command prompt you may run the following command sequence - one by one
Code:
adb devices
adb shell "am start -n com.google.android.gsf.login/"
adb shell "am start -n com.google.android.gsf.login.LoginActivity"
adb shell "content insert --uri content://settings/secure --bind name:s:user_setup_complete --bind value:s:1"
adb reboot
thank you unfortunately adb is not displaying device as i am unable to set developer options on tablet.
bart19788 said:
thank you unfortunately adb is not displaying device as i am unable to set developer options on tablet.
Click to expand...
Click to collapse
What chipset is your tablet?