Related
While unlocking the bootloader on a Galaxy Nexus unleashes the full potential of the bootloader, it also poses a security risk. Even with your lockscreen protected with a pattern/PIN/password, not having flashed a custom recovery, having an anti-theft app installed (maybe even converted/installed as a system app) your phone's data is easily accessible for a knowledgeable thief.
All the thief needs to do is reboot into the bootloader and boot or flash a custom recovery such as ClockWorkMod or TWRP. It's then possible to boot into recovery and use ADB commands to gain access to the phone's data on the internal memory (unless you have it encrypted) and copy/remove files at will.
Granted, the risk seems low. The thief would not only require knowledge of fastboot, he would have to turn off the phone before you have issued a wipe command using an anti-theft app. You could of course flash back the stock recovery & relock the bootloader after being done with flashing stuff, but that would require you to unlock it again if needed which will erase your userdata.
There are two ways to tackle this security risk AND retain unlocked bootloader functionality without losing userdata.
1) Encrypt your phone using Android's built-in encryption feature
Advantages:
- you can leave your bootloader unlocked & leave a custom recovery installed without risk of exposing your data.
Disadvantages:
- unless the custom recovery can decrypt your phone, you cannot use all of its features.
- when decryption fails, you cannot access your phone and need to do a factory reset from recovery. Users have reported not being able to decrypt after applying OTA updates.
- the encryption process is irreversible. The only way to return to an unencrypted phone is to perform a factory data reset which erases all your data.
2) Unlock & relock the bootloader from Android OS
Prerequisites:
- root access
- an app that can unlock/relock the bootloader at will such as BootUnlocker
Steps
Root your device using one of the many guides out there (recommended guide). Install BootUnlocker. Reflash stock recovery and lock the bootloader. Whenever you need an unlocked bootloader again, simply use Bootlocker to unlock it (this won't wipe userdata). When done, relock.
Advantages:
- doesn't require encryption (for those who do not wish to use it).
Disadvantages:
- relies on third-party apps.
- method will not work if you lose root access for whatever reason.
- method will not work when you cannot boot into Android for whatever reason.
USB debugging
Strictly not related to the bootloader, but for maximum security disable USB debugging when not required. Having it enabled allows the execution of ADB commands even if the lockscreen is still locked. Myself, I use Tasker in combination with Secure Settings to automatically enable USB debugging when my device is connected to my home WiFi access point but disabled if not connected.
The following video demonstrates what a knowledgeable thief can do with your phone when you have USB debugging enabled by default: http://www.youtube.com/watch?v=ah7DWawLax8&t=7m0s
More info: recently, an exploit has been discovered that will enable gaining root without going through the 'traditional' process of unlocking the bootloader & flashing a custom recovery in order to flash Superuser or SuperSU packages. See this post for a guide.
Play store devices
Devices bought directly from Google's Play Store apparently do NOT wipe userdata after fastboot oem unlock. So for these devices, method number 2 does not add any security. For more info, read this thread: http://forum.xda-developers.com/showthread.php?t=1650830
Very well written!!
One thing you may want to tie in to your explanation is the effect of having USB Debugging enabled - it's easy to gain root (and subsequently unlock your bootloader) with it enabled, even with a locked bootloader.
Sent from my Galaxy Nexus using Tapatalk 2
Added some information regarding USB debugging. Thanks for the tip efrant.
Good read:good:
Do you have to be on stock rom to lock the bootloader ?
Oscuras said:
Do you have to be on stock rom to lock the bootloader ?
Click to expand...
Click to collapse
Nope.
Sent from my Galaxy Nexus using Tapatalk 2
Thanks for this :good:
Trying to wrap my head around this with regards to anti theft protection etc.
Currently have an unlocked bootloader, custom rom, and root. If I have something like Cerberus or Avast running (both claim to work as system apps so will not be deleted via hard reset), have debugging unchecked and a pin lock at screen on - if I lock bootloader now, how secure am I to data theft?
Presumably, with debug disabled, fastboot from pc command prompt to unlock bootloader will not work? Can ODIN be used to flash a new ROM and if so my system apps (and thus the security apps) will be wiped, rendering the whole thing useless?
Thanks
Guiding.God said:
Thanks for this :good:
Trying to wrap my head around this with regards to anti theft protection etc.
Currently have an unlocked bootloader, custom rom, and root. If I have something like Cerberus or Avast running (both claim to work as system apps so will not be deleted via hard reset), have debugging unchecked and a pin lock at screen on - if I lock bootloader now, how secure am I to data theft?
Presumably, with debug disabled, fastboot from pc command prompt to unlock bootloader will not work? Can ODIN be used to flash a new ROM and if so my system apps (and thus the security apps) will be wiped, rendering the whole thing useless?
Thanks
Click to expand...
Click to collapse
If you have the stock recovery (custom will allow adb), your personal data is as secure as it can be. Of course, you cannot stop anybody from booting into your bootloader and run fastboot oem unlock OR use Odin to flash your device. However, doing so will effectively wipe your device so your personal data cannot be accessed.
I would more worry about my phone then data because I have nothing important on it...
Sent from my Galaxy Nexus using xda premium
Petrovski80 said:
If you have the stock recovery (custom will allow adb), your personal data is as secure as it can be. Of course, you cannot stop anybody from booting into your bootloader and run fastboot oem unlock OR use Odin to flash your device. However, doing so will effectively wipe your device so your personal data cannot be accessed.
Click to expand...
Click to collapse
qtwrk said:
I would more worry about my phone then data because I have nothing important on it...
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Thanks for the clarification.
And I worry more about the work related data, the phone itself is insured
This is important info, and a lot of folks probably don't realize how open they are. This should be stickied or better yet included in the stickied thread where the bootloader unlock instructions are. Thanks for the post.
Great info. One question, I use Titanium Backup automated nightly to backup data and new apps, and it requires USB Debugging on.
I suppose I could use Secure Settings to turn USB Debugging on and off, but that means an opening is available once a day for a few minutes. Thoughts?
Pkt_Lnt said:
Great info. One question, I use Titanium Backup automated nightly to backup data and new apps, and it requires USB Debugging on.
I suppose I could use Secure Settings to turn USB Debugging on and off, but that means an opening is available once a day for a few minutes. Thoughts?
Click to expand...
Click to collapse
You could do as I do: use secure settings in combination with tasker so USB debugging will only be enabled when connected to your home Wifi. It will allow your nightly TiB backups, and I assume the 'ADB opening' is not an issue when at home (not many thieves there I hope).
Petrovski80 said:
You could do as I do: use secure settings in combination with tasker so USB debugging will only be enabled when connected to your home Wifi. It will allow your nightly TiB backups, and I assume the 'ADB opening' is not an issue when at home (not many thieves there I hope).
Click to expand...
Click to collapse
I downloaded Secure Settings to check it, and it will work. I have AutomateIT Pro and it does not support plug-ins. I have been finding more tasks that it seems only Tasker can perform, I guess it is time to get it. Thank you.
Petrovski80 said:
You could do as I do: use secure settings in combination with tasker so USB debugging will only be enabled when connected to your home Wifi. It will allow your nightly TiB backups, and I assume the 'ADB opening' is not an issue when at home (not many thieves there I hope).
Click to expand...
Click to collapse
Great idea.
Petrovski80 said:
You could do as I do: use secure settings in combination with tasker so USB debugging will only be enabled when connected to your home Wifi. It will allow your nightly TiB backups, and I assume the 'ADB opening' is not an issue when at home (not many thieves there I hope).
Click to expand...
Click to collapse
A Jasager router could exploit this if you have WiFi enabled in public. When WiFi is enabled and not connected to a network, every 'x' period of time (depending upon your wifi.supplicant_scan_interval setting in your build.prop) your phone will send out a packet saying "hey, is xyz network around?". It will do that for every network that you have saved settings for.
Under normal circumstances, you get no reply when away from your home router and the phone just waits the interval to try again. A Jasager ("yes man" in German) router waits for a device to send out those packets and simply responds "yep, that's me!". Under this circumstance, your phone would authenticate to their router and think it's on your home network, triggering any applicable Tasker options.
This is one of the reasons that I do not have WiFi enabled unless I actively want to be connected to a router in the area.
Also, I have USB Debugging disabled and my TiBu backups run perfectly fine according to schedule.
I am not a paranoid worry wart so the risk are more than worth it for me. There's nothing on here that I would care if some one got a hold of anyway.
Sent from my Galaxy Nexus using xda premium
Cilraaz said:
A Jasager router could exploit this if you have WiFi enabled in public. When WiFi is enabled and not connected to a network, every 'x' period of time (depending upon your wifi.supplicant_scan_interval setting in your build.prop) your phone will send out a packet saying "hey, is xyz network around?". It will do that for every network that you have saved settings for.
Under normal circumstances, you get no reply when away from your home router and the phone just waits the interval to try again. A Jasager ("yes man" in German) router waits for a device to send out those packets and simply responds "yep, that's me!". Under this circumstance, your phone would authenticate to their router and think it's on your home network, triggering any applicable Tasker options.
This is one of the reasons that I do not have WiFi enabled unless I actively want to be connected to a router in the area.
Also, I have USB Debugging disabled and my TiBu backups run perfectly fine according to schedule.
Click to expand...
Click to collapse
Maybe. Tasker checks both the SSID and the MAC address of my router before it returns 'wifi connected' as true and enables USB debugging. Sure, MAC addresses are easy to spoof, but I don't think the MAC address is part of the broadcast packet (I haven't checked) because that's simply a value stored by Tasker itself.
And even if it is, the combination of a lost/stolen GNEX and a thief who modded their router with jasager firmware + knows ADB is too unlikely for me to worry about it. But indeed, for maximum security it's best not to automate enabling of USB debugging.
Petrovski80 said:
Maybe. Tasker checks both the SSID and the MAC address of my router before it returns 'wifi connected' as true and enables USB debugging. Sure, MAC addresses are easy to spoof, but I don't think the MAC address is part of the broadcast packet (I haven't checked) because that's simply a value stored by Tasker itself.
And even if it is, the combination of a lost/stolen GNEX and a thief who modded their router with jasager firmware + knows ADB is too unlikely for me to worry about it. But indeed, for maximum security it's best not to automate enabling of USB debugging.
Click to expand...
Click to collapse
The MAC check would almost certainly keep you safe.
It's interesting stumbling across this thread after having just seen a podcast episode about Android hacking. If anyone is interested, check out Hak5. One of their recent episodes is about Android hacking via ADB, specifically something called P2PADB that was created for quick device-to-device ADB access. It was fairly amazing the things this person could do to a phone that has USB Debugging enabled.
Cilraaz said:
The MAC check would almost certainly keep you safe.
It's interesting stumbling across this thread after having just seen a podcast episode about Android hacking. If anyone is interested, check out Hak5. One of their recent episodes is about Android hacking via ADB, specifically something called P2PADB that was created for quick device-to-device ADB access. It was fairly amazing the things this person could do to a phone that has USB Debugging enabled.
Click to expand...
Click to collapse
Watching the video right now. Personally, I find it a gaping security hole that the ADB interface is accessible through a locked lockscreen.
For anyone interested in the vid: the ADB part starts at 7:00.
Edit: amazing video. It really proves what a knowledgeable thief can do when you have USB debugging enabled, especially when combined with root access (don't we all?). I'm going to add the video to my post. Thanks for the info Cilraaz!
Thanks to datawrhsdoc for translating the OP
datawrhsdoc said:
1. Root your phone
2. Either modify your existing APN to use IPv4 and adding 'dun' to the list of APN types, or create a duplicate APN with the same modifications
3. Set the modified/new APN as your default.
4. Download tether_counter_kill.txt from the OP's first post, and rename the file removing the txt extension (http://forum.xda-developers.com/showpost.php?p=59858654&postcount=1)
5. Install Smanager from Play Store
6. Navigate to tether_counter_kill from Smanager, and set both 'Su' and 'Boot' options. Run it (you won't need to do this again)
7. Start Mobile Hotspot on your phone, and connect to the hotspot from your devices
8. Immediately start a VPN client from your device(s) which will tether. VPN must redirect ALL traffic (e.g., TorGuard).
9. Enjoy unlimited WiFi tether
Click to expand...
Click to collapse
You can also try adding this to your build.prop (I don't know if this does anything):
net.tethering.noprovisioning=true
Click to expand...
Click to collapse
Idea for the script taken from:
http://forum.xda-developers.com/z3/general/lollipop-tethering-t3058923
This can be fixed permanently using the following procedure (UPDATE: no root required):
Enable developer mode (Go to Settings -> About phone, and click on the build number until the developer mode is enabled).
Enable USB debugging under Settings -> Developer options
Connect the device with a USB cable to a computer with the Android SDK platform tools installed
Start an adb shell: adb shell
In the adb shell, run this command: settings put global tether_dun_required 0
Click to expand...
Click to collapse
RussianBear said:
Looks like the settings.db is on a lock-down. I can't access it via sqlite any longer. It says: "the database is currently locked by another process"
Any ideas? @autoprime ?
Quick Edit: was able to copy settings.db to sd card and open it up with sqlite. couldn't change any parameters, as sqlite would fc. Downloaded this guy (http://sqlitebrowser.org/) and made changes, then overwrote the one in data/data directory. We'll see how/if it works.
Click to expand...
Click to collapse
Any luck so far?
Fhuron said:
Any luck so far?
Click to expand...
Click to collapse
Nope, something over-writes the tethering back to "1" after each reboot. I'm sure @autoprime can figure this one out, as he did for KK.
You are right I'm on LG G2 with official T-Mo lollipop and I was able to edit settings.db...not with sglite but with SQLite Debugger.
After reboot, the changes i made to the tethering reverted back to dafault 1.
For those that want to use wireless tether, try the app from this thread (it's $2.5):
http://forum.xda-developers.com/note-4-tmobile/general/unlimited-wifi-tethering-t2914057
I'm more interested in making the usb tethering work. I'll try using IPv4 + vpn tonight. Pretty sure it's going to fail because of the tether.dun set to 1...
P.S. additional links:
http://forum.xda-developers.com/note-3-tmobile/help/tethering-fix-t3068545
http://forum.xda-developers.com/tmobile-galaxy-s6-edge/help/unlimited-tethering-t3073884
Another quick update. The guide from here works for tether_dun settings: http://forum.xda-developers.com/z3/general/lollipop-tethering-t3058923
You can use this command in terminal emulator, pending you are rooted.
su
settings put global tether_dun_required 0
Click to expand...
Click to collapse
or those having issues with tethering. I tested it out today and had issues. It would connect but would not resolve dns. I have unlimited tethering on Three, it's always worked until now.
Doing this resolved my issues. I suspect this issue will be resolve by Three when an official uk build is released.
This can be fixed permanently using the following procedure (UPDATE: no root required):
Enable developer mode (Go to Settings -> About phone, and click on the build number until the developer mode is enabled).
Enable USB debugging under Settings -> Developer options
Connect the device with a USB cable to a computer with the Android SDK platform tools installed
Start an adb shell: adb shell
In the adb shell, run this command: settings put global tether_dun_required 0
Click to expand...
Click to collapse
RussianBear said:
Another quick update. The guide from here works for tether_dun settings: http://forum.xda-developers.com/z3/general/lollipop-tethering-t3058923
You can use this command in terminal emulator, pending you are rooted.
Click to expand...
Click to collapse
anyone tested does this work with no tether tracking?
Uploading a tether_dun_required=0 script (needs root) that you can use with Smanager to either trigger it via a desktop widget, app, or set it on boot. Remove ".txt" from the end and navigate to it via Smanager. I will test tethering later tonight.
Make sure you click/select the SuperUser icon in Smanager's options.
You can also try adding this to your build.prop:
net.tethering.noprovisioning=true
Click to expand...
Click to collapse
Looks like we're money, at least on usb tethering. I will update the op.
any specific settings on Wifi Tether Router? I'm unable to get an SSID to show up using the instructions from wifi tether router's website.
updated APN to ipv4
ran script posted above..
rihc55 said:
any specific settings on Wifi Tether Router? I'm unable to get an SSID to show up using the instructions from wifi tether router's website.
updated APN to ipv4
ran script posted above..
Click to expand...
Click to collapse
Try using stock wifi tether and see if it's counting. I haven't used the other app yet.
RussianBear said:
Try using stock wifi tether and see if it's counting. I haven't used the other app yet.
Click to expand...
Click to collapse
Ohh okay. even better.. ill try it and report back. thanks
EDIT:
Strange, i cant even get an SSID to show up on the native hotspot now. I know it worked before -- i used it last Sunday. The hotspot turns itself off after like 30 seconds.
Okay.. So I did a factory reset because i didnt know how to fix my problem from my previous post.
Then I:
1) added the same APN as IPV5
2) did this:
Enable developer mode (Go to Settings -> About phone, and click on the build number until the developer mode is enabled).
Enable USB debugging under Settings -> Developer options
Connect the device with a USB cable to a computer with the Android SDK platform tools installed
Start an adb shell: adb shell
In the adb shell, run this command: settings put global tether_dun_required 0
3) used the native tether app
I haven't tested it very extensively but from what i can tell, i am able to tether and it just shows up as normal data vs mobile hotspot. I transferred bout 600mb as a test. will test more later.
Thanks for your help RussianBear!
EDIT:
I lied. i think tmobile was delayed in reflecting my usage. it showed up today.
My hot-spot was broken by LP. Devices connect fine but have no Internet whatsoever. I'm able to USB tether without issues using PDANet and just selecting level 1 hide tether usage works fine. No needs for UA switching or anything like that. Just wish the WiFi tether worked, even if it's counting.
Could anyone help with step by step instructions. I am new at this and dont want to do anything wrong. Plus i dont see the script.
dreday3223 said:
Could anyone help with step by step instructions. I am new at this and dont want to do anything wrong. Plus i dont see the script.
Click to expand...
Click to collapse
Dre, are you rooted? Script is attached to the bottom of the first post.
RussianBear said:
Dre, are you rooted? Script is attached to the bottom of the first post.
Click to expand...
Click to collapse
I am. What exactly do i have to do? Where do i place that command? This is all very new to me and I'm not trying to mess up my phone so the simplest of instructions would be great.
dreday3223 said:
I am. What exactly do i have to do? Where do i place that command? This is all very new to me and I'm not trying to mess up my phone so the simplest of instructions would be great.
Click to expand...
Click to collapse
Download smanager from the playstore, download the script, then using smanager navigate to the script and run it. You will need to select the su icon from the smanager's script options. Let me know if/where you get stuck.
Script Works for WIFI Tether
It appears that this method is working for WIFI tethering as well. I watched an 11 minute Youtube and then emailed myself a 5.5MB Powerpoint. Here are my results:
Before After
Mobile Hotspot 92.2 92.4
Data 462.2 527.1
Not sure where that 0.2MB came from, but that's not much of my 5GB plan, so I don't much care.
Update 1: Figured out where the 0.2MB came from. My testing used all encrypted traffic over HTTPS, and TMO couldn't track it. I then ran a CNN.com video and the Mobile Hotspot counter spiked. Still not quite there yet.
Update 2: Enabled my VPN, and no traffic at all is being tracked by TMO. No user agent required. Yipee!!
datawrhsdoc said:
It appears that this method is working for WIFI tethering as well. I watched an 11 minute Youtube and then emailed myself a 5.5MB Powerpoint. Here are my results:
Before After
Mobile Hotspot 92.2 92.4
Data 462.2 527.1
Not sure where that 0.2MB came from, but that's not much of my 5GB plan, so I don't much care.
Update: Figured out where the 0.2MB came from. My testing used all encrypted traffic over HTTPS, and TMO couldn't track it. I then ran a CNN.com video and the Mobile Hotspot counter spiked. Still not quite there yet.
Click to expand...
Click to collapse
Are you using a vpn service or just agent switchers?
*EDIT* This appears to only be working for people with NON-unlimited data plans. I apologize for the inconvenience...
Saw this over in the AT&T subforum, originally posted by @ExTREmE99 , just reposting here.
This will disable the carrier check on your Verizon G4 and allow you to use the native WiFi tether - no root needed!
1. Enable developer mode (Go to Settings -> About phone, and click on the build number until the developer mode is enabled).
2. Enable USB debugging under Settings -> Developer options
3. Connect the device with a USB cable to a computer with the Android SDK platform tools installed
4. Start an adb shell: adb shell
5. In the adb shell, run these commands one by one:
settings put global tether_dun_required 0
settings put system tether_entitlement_check_state 0
reboot
When your phone comes back up you will have a fully functional native WiFi tether
i must be doing something wrong because i still get the "you need a subscription" popup
Worked for me, thanks! Needed this a few days ago and couldn't use it n was like "F***, wish I had root" hahaha. Oh and also shouldn't this be posted in General?
jrc27 said:
i must be doing something wrong because i still get the "you need a subscription" popup
Click to expand...
Click to collapse
Same here, did I do this right?
Code:
$ adb shell
[email protected]:/ $ settings put global tether_dun_required 0
[email protected]:/ $ settings put system tether_entitlement_check_state 0
[email protected]:/ $ reboot
Congobongo said:
Same here, did I do this right?
Code:
$ adb shell
[email protected]:/ $ settings put global tether_dun_required 0
[email protected]:/ $ settings put system tether_entitlement_check_state 0
[email protected]:/ $ reboot
Click to expand...
Click to collapse
when do you see the subscription message?
try typing:
adb devices
you should see a string of characters listing your device. if it shows no device, then you need to double check that you have your device drivers installed
Tomyk89 said:
when do you see the subscription message?
try typing:
adb devices
you should see a string of characters listing your device. if it shows no device, then you need to double check that you have your device drivers installed
Click to expand...
Click to collapse
I see it after i reboot and try using the hotspot app
jrc27 said:
I see it after i reboot and try using the hotspot app
Click to expand...
Click to collapse
don't use the hotspot app - in fact, disable that one.
You want to use the built in functionality to tether (not technically an app)
Go to settings, More (under wireless networks), then "Mobile Hotspot". You can setup your SSID and password in there. Also, you can create a shortcut in your notification bar by scrolling over to the right side, clicking edit, then checking the box next to "Mobile Hotspot"
Hope that helps.
Tomyk89 said:
don't use the hotspot app - in fact, disable that one.
You want to use the built in functionality to tether (not technically an app)
Go to settings, More (under wireless networks), then "Mobile Hotspot". You can setup your SSID and password in there. Also, you can create a shortcut in your notification bar by scrolling over to the right side, clicking edit, then checking the box next to "Mobile Hotspot"
Hope that helps.
Click to expand...
Click to collapse
I can't even find the damn app to disable it.
I tried as you suggested, going in through the settings and i still get the verizon C*ckblock...
jrc27 said:
I can't even find the damn app to disable it.
I tried as you suggested, going in through the settings and i still get the verizon C*ckblock...
Click to expand...
Click to collapse
Could you try disabling the verizon hotspot app? Mine was disabled way before I discovered this so I may need to add this step to the instructions. you may want to go through the steps one more time after that to ensure everything is set correctly. Don't forget to restart either. It works great on mine so it should for yours as well - unless you took the update a week ago?
Let me know - Thanks!
Tomyk89 said:
Could you try disabling the verizon hotspot app? Mine was disabled way before I discovered this so I may need to add this step to the instructions. you may want to go through the steps one more time after that to ensure everything is set correctly. Don't forget to restart either. It works great on mine so it should for yours as well - unless you took the update a week ago?
Let me know - Thanks!
Click to expand...
Click to collapse
I've been very careful not to take the update. Is the hot spot app have a weird name or something? I can't seem to find it in the app manager or using rom toolbox
jrc27 said:
I've been very careful not to take the update. Is the hot spot app have a weird name or something? I can't seem to find it in the app manager or using rom toolbox
Click to expand...
Click to collapse
hmmm i think I'm confused. My Hotspot app is apparently still in my app drawer. When i click on it it just takes me to the native hotspot functionality.
Honestly I'd attempt to run those commands again. It would help if you took a screen shot of the command prompt window after running all of the commands. After each command it should pause for a second or two then jump to the next line with no errors or responses.
Is your USB debugging on? Also, are you in MTP or PTP USB mode when plugged into your PC?
jrc27 said:
i must be doing something wrong because i still get the "you need a subscription" popup
Click to expand...
Click to collapse
Should it be? I assumed stuff like this went under the Help section since it was helping people. Maybe I'm wrong. If a MOD would like to correct me and maybe move the thread, feel free.
Tomyk89 said:
hmmm i think I'm confused. My Hotspot app is apparently still in my app drawer. When i click on it it just takes me to the native hotspot functionality.
Honestly I'd attempt to run those commands again. It would help if you took a screen shot of the command prompt window after running all of the commands. After each command it should pause for a second or two then jump to the next line with no errors or responses.
Is your USB debugging on? Also, are you in MTP or PTP USB mode when plugged into your PC?
Click to expand...
Click to collapse
Heading to bed...I'll give it another go in the morning
Thanks again for the help, i appreciate it!
jrc27 said:
Heading to bed...I'll give it another go in the morning
Thanks again for the help, i appreciate it!
Click to expand...
Click to collapse
no problem dude. try some of my suggestions tomorrow and get back to me. feel free to PM and we can post the final solution up here as to not fill the the thread up with troubleshooting.
No Go...
Tried multiple times and could not get it to work. adb looked successful but after reboot I still get a subscription check.
joebrady119 said:
Tried multiple times and could not get it to work. adb looked successful but after reboot I still get a subscription check.
Click to expand...
Click to collapse
have you taken the latest OTA update?
Tomyk89 said:
have you taken the latest OTA update?
Click to expand...
Click to collapse
Have not taken any OTA.
This unfortunately doesn't seem to work for me either
I had to put my device in PTP mode in order for ADB to show the device, after the device was confirmed with adb devices, I issued the commands this is the output
Code:
C:\Users\NOTIMPORTANT\AppData\Local\Android\sdk>adb devices
List of devices attached
VS986931(changed the last four for security) device
C:\Users\NOTIMPORTANT\AppData\Local\Android\sdk>adb shell
[email protected]:/ $ settings put global tether_dun_required 0
settings put global tether_dun_required 0
[email protected]:/ $ settings put system tether_entitlement_check_state 0
settings put system tether_entitlement_check_state 0
[email protected]:/ $
When I attempt to enable hotspot I am greeted with the "Use of this service requires a subscription..."
FoxFi seems to work, I just HATE having to change my lock screen in order to use the damn thing!
I'm willing to run further tests and commands if you would like, please just let me know.
I have NOT taken any over the air update. I used the Debloater tool and blocked/hid the app.
Tomyk89 said:
when do you see the subscription message?
try typing:
adb devices
you should see a string of characters listing your device. if it shows no device, then you need to double check that you have your device drivers installed
Click to expand...
Click to collapse
Here's a screenshot of my terminal window:
I'm using the native tethering just like everybody else (Settings, More, flick the tethering switch to On and receive the service check). Haven't taken the OTA and have the service disabled via debloater tool. I appreciate the help!
At this point I'm not sure why some are reporting that this works while others aren't. I added a message on the original post warning that this isn't a for sure thing. I'll be sure to update if/when I find a fix or what is going wrong, but for now I think I have enough info to look into this. thanks for your help everyone and I hope that I can find a fix for this. Worst case - we have to wait until we have root to enable this.
-tom
I have a Taiwan model H815, rooted using the injection method. I'm trying to use a root shell command in a Tasker profile task to enable/disable mobile data in Tasker ("svc data enable/disable"). The command appears to execute, and a message pops up saying "Tasker has been granted superuser permissions for an interactive shell", but the command does not take effect - i.e. mobile data is not enabled/disabled.
I have selected the Root option in the Tasker task definition. I have also run the same shell commands in terminal emulator with root, and they were successful. It's just Tasker that isn't executing them properly.
Any ideas?
itm said:
I have a Taiwan model H815, rooted using the injection method. I'm trying to use a root shell command in a Tasker profile task to enable/disable mobile data in Tasker ("svc data enable/disable"). The command appears to execute, and a message pops up saying "Tasker has been granted superuser permissions for an interactive shell", but the command does not take effect - i.e. mobile data is not enabled/disabled.
I have selected the Root option in the Tasker task definition. I have also run the same shell commands in terminal emulator with root, and they were successful. It's just Tasker that isn't executing them properly.
Any ideas?
Click to expand...
Click to collapse
This is odd/annoying - I removed and re-installed Tasker (I purchased it from the Amazon app store), and the re-installed version didn't have this problem, BUT it did have another problem that the previous version didn't - i.e. it does not respond to any Bluetooth-related events (e.g. Bluetooth Status, Bluetooth Connected...). The previous version that I had installed (which I restored from a Titanium Backup) had no problem responding to Bluetooth events but was unable to execute my root shell command.
The version I now have installed (from Amazon) is 4.7m. Can anyone else running this version confirm whether it responds to Bluetooth events on Lollipop?
I'm using the same command through Tasker but having Tasker run it through Secure Settings. It works fine. My mobile data is disabled and enabled.
jobella said:
I'm using the same command through Tasker but having Tasker run it through Secure Settings. It works fine. My mobile data is disabled and enabled.
Click to expand...
Click to collapse
What phone model/Android version are you running?
itm said:
What phone model/Android version are you running?
Click to expand...
Click to collapse
LG G4 811 with stock rom 5.1 on T mobile.
I think I've found the problem. I purchased Tasker from the Amazon app store. It turns out that the version on the Amazon app store is a pirate copy, but despite being informed about this by a number of people it is still available. I have now purchased a copy from the Google Play Store and I no longer have the problem.
Now I need to see if I can get a refund from Amazon.
Must have your Shield rooted
apps needed installed
-AppOps
-Settings Editor
-Snowball
-Heads Up Notifications
-terminal emulator
Install the 5 above apps.
Grant settings editor WRITE_SECURE_SETTINGS permission in terminal
-su
-pm Grant by4a.setedit22 android/.permission WRITE_SECURE_SETTINGS
Add Snowball and Heads Up listeners to active listeners
-go to secure table in Settings Editor
-choose "enabled_notification_listeners" and choose editor value
-replace all text with "com.snowball.app/.nsprocess.NotificationService:codes.simen.l50notifications/.NotificationListenerService"
Grant draw over apps permission to snowball and Heads Up in AppOps
-for each app change "this app can appear over top of other apps" to allow
Now open Heads up and snowball and run through the setups.
You should now get notifications.
I've been wanting this for Soo long and now I have no pc to root ??
Slayerkodi said:
I've been wanting this for Soo long and now I have no pc to root
Click to expand...
Click to collapse
I just did it without root, just needed to not use appops.
so you need
-settings editor
-terminal emulator
-heads up
install settings editor and terminal editor
open terminal and put in"pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS"
install heads up
-go to secure table in Settings Editor
-choose "enabled_notification_listeners" and choose editor value
-replace all text with "codes.simen.l50notifications/.NotificationListenerService"
open terminal and put in "pm grant codes.simen.l50notifications android.permission.SYSTEM_ALERT_WINDOW"
let me know how that works
Quick question before I try this, is there a way to turn off notifications? Like say I don't want notifications from specific apps - how do I stop this if there is no way to turn off notifications from within the app??
Tbh I only want notifications coming from one app only if poss
Slayerkodi said:
Quick question before I try this, is there a way to turn off notifications? Like say I don't want notifications from specific apps - how do I stop this if there is no way to turn off notifications from within the app??
Tbh I only want notifications coming from one app only if poss
Click to expand...
Click to collapse
just turn off the notification toggle in settings apps for the app you want notifications disabled.
Settings editor is a Xposed module - Xposed requires root! So no go unfortunately
Slayerkodi said:
Settings editor is a Xposed module - Xposed requires root! So no go unfortunately
Click to expand...
Click to collapse
It's in the shields play store
Slayerkodi said:
Settings editor is a Xposed module - Xposed requires root! So no go unfortunately
Click to expand...
Click to collapse
It's in the shields play store
Ok so I just attempted this and it seems to fail at the first step https://m.imgur.com/a/vOLLfRc
Slayerkodi said:
Ok so I just attempted this and it seems to fail at the first step https://m.imgur.com/a/vOLLfRc
Click to expand...
Click to collapse
Try turning on USB debugging
Wildheart said:
Try turning on USB debugging
Click to expand...
Click to collapse
USB debugging is on already
Slayerkodi said:
USB debugging is on already
Click to expand...
Click to collapse
Next thing I would get you to do that is to say the command.
What do you mean?
Wildheart said:
Try turning on USB debugging
Click to expand...
Click to collapse
Wildheart said:
Next thing I would get you to do that is to say the command.
Click to expand...
Click to collapse
USB debugging is already in, what do you mean by say the command?
Wildheart are you there?
Would love to have had this to work
Can anyone else help with this?
can you adb into your shield?
No pc or root, I have been using termux recently to upload music to Google play music as there's no way to do this with Android atm, which is working fine. I tried your code again the other day using termux, seems like your code you asked me to enter needed a few spaces in places for it to recognize the command but I still got an error, I'll upload a screenshot later on when I'm at home
Try using "ADB Shellkit" to enter the commands, I've tried it and you need at least ADB access to follow this walkthrough without root.