Dual SIM version : secure settings for SIM1 & SIM2 - HTC U11+ Questions & Answers

Hi folks,
I'm trying to setup a command in tasker to disable SIM2 depending on my phone location (home or work).
Problem is I can't find the secure setting to read or modify (I'm not sure you can change it without root anyway, so I'll just use autoinput from there - still I need to know the initial value to decide if I launch the autoinput task or not).
Can anyone help me with that ?
Thank you !

nuts77 said:
Hi folks,
I'm trying to setup a command in tasker to disable SIM2 depending on my phone location (home or work).
Problem is I can't find the secure setting to read or modify (I'm not sure you can change it without root anyway, so I'll just use autoinput from there - still I need to know the initial value to decide if I launch the autoinput task or not).
Can anyone help me with that ?
Thank you !
Click to expand...
Click to collapse
@nuts77 i cant help you in this quest although i truly hope you succeed. If so may i ask if you can try implementing also a time schedule option to disable a sim on certain times..

Hi,
have not succeeded yet - although if I ever do, it won't be a problem to trigger the SIM depending on time whether than location.
When I have some news I'll be glad to post them here

nuts77 said:
Hi,
have not succeeded yet - although if I ever do, it won't be a problem to trigger the SIM depending on time whether than location.
When I have some news I'll be glad to post them here
Click to expand...
Click to collapse
That would be wonderful if you can pull this off. I will keep track of this thread. Good luck @nuts77

so it seems that the system settings to enable or disable SIM slots are slot1_is_checked and slot2_is_checked... However it seems it requires root to change these settings. Not even autotools granted with ADB can change them so it looks like there's not much we can do without root...

nuts77 said:
so it seems that the system settings to enable or disable SIM slots are slot1_is_checked and slot2_is_checked... However it seems it requires root to change these settings. Not even autotools granted with ADB can change them so it looks like there's not much we can do without root...
Click to expand...
Click to collapse
I rooted my device, would that help?

Perhaps adb command to specify which one is preffered?

lillypad_33 said:
Perhaps adb command to specify which one is preffered?
Click to expand...
Click to collapse
Than what will be the adb command?

Related

Network Type selection

Hi, i just want to know if there's any option to change network type to 3G ONLY (or 2G only). The options in settings are preferred network so they switch to another network type when needed, and I dont like that.
I tried *#*#4636#*#* and change it from there but it still goes back to original setting.
Any tricks/solution out there? Thanks!!!
I used to use this http://forum.xda-developers.com/android/apps-games/widget-toggle-network-type-5-0-xda-t2945406 but it's not working for me after installing CM14.1. Some people say it's working in their devices with Android 7 though, so give it a try and see. Needs root.
If it doesn't work and you ever find an alternative, please do let us know here.
Adrianrff said:
I used to use this http://forum.xda-developers.com/android/apps-games/widget-toggle-network-type-5-0-xda-t2945406 but it's not working for me after installing CM14.1. Some people say it's working in their devices with Android 7 though, so give it a try and see. Needs root.
If it doesn't work and you ever find an alternative, please do let us know here.
Click to expand...
Click to collapse
Hi, I think I found a solution. I still use the *#*#4636#*#* code and choose WCDMA Only and leave it as it is. I noticed that it only goes back to original network type IF I enter the "Cellular network settings" screen (**even without changing any options in it). So just stay away on that part in Settings and your network will stay as you selected.
mbolinao said:
Hi, I think I found a solution. I still use the *#*#4636#*#* code and choose WCDMA Only and leave it as it is. I noticed that it only goes back to original network type IF I enter the "Cellular network settings" screen (**even without changing any options in it). So just stay away on that part in Settings and your network will stay as you selected.
Click to expand...
Click to collapse
Yeah, I was aware of that. That behavior (reverting to the selected mode in settings upon opening the activity) was introduced in Marshmallow. Who knows why. Unfortunately this is still not ideal for me because I usually keep the phone in 2G only unless I need a faster connection. With that plugin, which no longer works, I could use Tasker to change network modes depending on contexts or a simple tap in Tasker's persistent notification buttons, which I had configured to do just that. Going into the dialer, entering the code and then navigating through the option every time I need to change modes is too much work, but I guess I have no other option until either the dev updates his plugin or another plugin is developed.
Thanks anyway, mate.

AT&T V20 Enable Hotspot for Unlimited Data Users

If you're like me, and have been trying different methods around - you have probably been unsuccessful with getting past the Authorization screen to get your Hotspot working - if you have their unlimited data plan which does not allow for tethering.
Well now that we have root on our phones, we can finally get it working! So originally you would be able to change the value "tether_entitlement_check_state" in your com.android.settings.system just by issuing an adb command. The original value is '5', and this causes the EntitlementcheckService to go through and verify with AT&T's server if you're entitled to use tethering. Any changes through adb never stuck and no SQL Editor gave the option to allow changing the value either. (If you can find a way besides manually editing - for the AT&T variant - feel free to post it here!)
*If you have the H910 AT&T ROM then just skip down to Step 5 and go from there.
1. First we will change a global setting to allow Hotspot without the 'dun' inside of our APN.
Either through adb or Terminal Emulator on your phone use this command:
Code:
For Terminal Emulator:
su
settings put global tether_dun_required 0
For ADB:
adb shell
su
settings put global tether_dun_required 0
2. We now will need to navigate and change the value from an XML file. You can use whatever you want to edit your files, I always have used the app 'ES File Explorer'.
3. Navigate to /data/system/users/0/settings_system.xml. We will edit this file.
4. Go down to near the very bottom of the file and find:
Code:
<setting id="1763" name="tether_entitlement_check_state" value="5"
package="com.lge.entitlementcheckservice" />
*NOTE: The ID number may be different from 1763.
5. Change the number "5" inside of the quotes to "0".
6. Save the changes and then reboot.
7. You should be able to enable tethering just fine from within your phone now!
Make sure you keep the permissions the same for that system_settings.xml file. If you use the ES File Explorer app, editing it will not change the permissions - so you shouldn't have to worry about anything!
Hopefully this will help out some of you guys. Let me know if you encounter any issues.
EDIT: Some people are unable to get tethering to work using this method still. @galacticboy2009 posted another guide in Page 4 which those others have confirmed it worked for them.
Hopefully one of these two methods will get you back to becoming your own mobile hotspot where all can see your awesome hotspot name like "It Hurts When IP".
Twisted
Thanks for this! Finally a way around the hotspot restriction. I will try this out later
Edited this post for a newer method to allow you to use tethering without having to change your provider from ATT to OPEN.
Twisted
Thanks for this, I used steps 5-7 on the AT&T Rom and it's working fine.
Who-Lep said:
Thanks for this, I used steps 5-7 on the AT&T Rom and it's working fine.
Click to expand...
Click to collapse
Awesome, glad to hear it worked. Thanks for letting me know!
Works !!!!!! You are the MAN!!!
I'm on the ATT Rom, rooted, etc. (H910 Phone)
Is there any reason why my settings_system.xml file would not have the 1763 line in it?
I even copied the file to note pad and did a search just in case I'm going blind. LOL It's not there.
I guess I could add the whole line in manually but I'm not sure that would achieve anything.
It may not be 1763, just search for the actual name "tether_entitlement_check_state". If it still isn't there. Just try to activate hotspot once, let it fail and then check your file.
Thanks. It ended up being 549 closer to the top. I should have tried searching the name instead of the number. Works like a charm now!
Thanks a ton! I'm not even an Unlimited customer (I wish), and I could still use the hotspot without this trick, but I hated the obnoxious "Authenticating..." popup. It was slow, I typically need my hotspot on ASAP when I enable it, and sometimes it would fail. Super annoying.
So thanks for the quality of life trick!
ubergeek77 said:
Thanks a ton! I'm not even an Unlimited customer (I wish), and I could still use the hotspot without this trick, but I hated the obnoxious "Authenticating..." popup. It was slow, I typically need my hotspot on ASAP when I enable it, and sometimes it would fail. Super annoying.
So thanks for the quality of life trick!
Click to expand...
Click to collapse
Glad to help! Yeah, that authentication is very annoying.
Hello! So, after G5, now I got V20 and want to share findings on this subject:
https://forum.xda-developers.com/att-lg-g5/help/hotspot-networks-t3563030
VZ version for this workaround??
Hoping to get this working is there a version of this for VZ v20?
HTCZ715E said:
Hello! So, after G5, now I got V20 and want to share findings on this subject:
https://forum.xda-developers.com/att-lg-g5/help/hotspot-networks-t3563030
Click to expand...
Click to collapse
Thank you. It helped getting the hotspot to work when using a non AT&T sim. Apparently it would try to get authorization from AT&T for the hotspot before that even though it was a different carrier that was being used.
Lg v20: Root
twistedvip said:
If you're like me, and have been trying different methods around - you have probably been unsuccessful with getting past the Authorization screen to get your Hotspot working - if you have their unlimited data plan which does not allow for tethering.
Well now that we have root on our phones, we can finally get it working! So originally you would be able to change the value "tether_entitlement_check_state" in your com.android.settings.system just by issuing an adb command. The original value is '5', and this causes the EntitlementcheckService to go through and verify with AT&T's server if you're entitled to use tethering. Any changes through adb never stuck and no SQL Editor gave the option to allow changing the value either. (If you can find a way besides manually editing - for the AT&T variant - feel free to post it here!)
*If you have the H910 AT&T ROM then just skip down to Step 5 and go from there.
1. First we will change a global setting to allow Hotspot without the 'dun' inside of our APN.
Either through adb or Terminal Emulator on your phone use this command:
Code:
For Terminal Emulator:
su
settings put global tether_dun_required 0
For ADB:
adb shell
su
settings put global tether_dun_required 0
2. We now will need to navigate and change the value from an XML file. You can use whatever you want to edit your files, I always have used the app 'ES File Explorer'.
3. Navigate to /data/system/users/0/settings_system.xml. We will edit this file.
4. Go down to near the very bottom of the file and find:
Code:
<setting id="1763" name="tether_entitlement_check_state" value="5"
package="com.lge.entitlementcheckservice" />
*NOTE: The ID number may be different from 1763.
5. Change the number "5" inside of the quotes to "0".
6. Save the changes and then reboot.
7. You should be able to enable tethering just fine from within your phone now!
Make sure you keep the permissions the same for that system_settings.xml file. If you use the ES File Explorer app, editing it will not change the permissions - so you shouldn't have to worry about anything!
Hopefully this will help out some of you guys. Let me know if you encounter any issues.
Twisted
Click to expand...
Click to collapse
This is prob gonna gonna be a dumb question but can you PLEASE help me with HOW to root my LG V20, AT&T so I can make these changes because I'm assuming this is my ONLY option to tether and use my hotspot, I have tried EVERYTHING... Thank You!!
Donnie S said:
If you're like me, and have been trying different methods around - you have probably been unsuccessful with getting past the Authorization screen to get your Hotspot working - if you have their unlimited data plan which does not allow for tethering.
Well now that we have root on our phones, we can finally get it working! So originally you would be able to change the value "tether to root my LG V20, AT&T so I can make these changes because I'm assuming this is my ONLY option to tether and use my hotspot, I have tried EVERYTHING... Thank You!!
Click to expand...
Click to collapse
Preach. I need to get my nethunter build back, the kernel was perfectly formed for the v20. Was going to freaking release my own repo, but my Ascurion replacement was, of course, updated to the point of locked bootloader.
Now, I am going to talk to a lawyer about this; the phone updated it's rom and they basically locked the bootloader without permission, which would be fine, but I saw no terms or conditions letting me know it was going to become useless; surely, there isn't like implied consent involved
Hi, I have the same issue as the others.when i restart the phone, Hotspot works but no Internet.
I am on Cricket. When I put my SIM in it created a new APN. I went back to the old APN and my tethering started working. It was not working when on the "Aiowireless" APN that Cricket provided me via MMS when I put my SIM card in.
mego1373 said:
Hi, I have the same issue as the others.when i restart the phone, Hotspot works but no Internet.
Click to expand...
Click to collapse
I have the same issue. AT&T 910 unlocked rooted (systemless) with Rogers as my provider APN type includes default,mms,dun,supl
I got past the authentication error and can setup my hotspot. I see the phones connected but they have no internet access.
Am i missing something?
Unfortunately I am not really sure on why the internet is not working. This is still working for me, however I am on AT&T.
When you say the internet is not working - is it working still on your phone and just not any devices connected to your hotspot? Or your phone's data stopped working as well?

Automatic Hotspot

Has anyone been able to get any program to automatically enable hotspot (for example, when bluetooth connects turn on hotspot)? I used to use Tasker on my Note 7 (without root and with Secure Settings), but now Tasker fails to enable hotspot on my S8+
Every program I've tried in the Play Store fails to enable hotspot...it is like Samsung has done something that to keep programs such as Tasker and Automate from working...
It fails because the US branded versions of the phone changed the normal way to enable the hotspot function in order to perform additional entitlement checks with some US carriers before enabling the hotspot. This is why Tasker and other programs fail.
On the unlocked, unbranded version of the S8+ (which doesn't run the carrier software and doesn't run those checks), it works fine.
The same goes to the pixel, only there it depends on the SIM you insert into the phone. If you insert a VZW or ATT SIM, the Tasker process will fail. If you use a T-Mobile SIM in the pixel, it will work because T-Mobile doesn't run those entitlement checks.
When I used an international SIM in the Pixel, it also worked.
I hope this helps.
This is the error I get with tasker, is this what you see?
Ugh...I figured it was something to do with that. That's like knowing cancer is the cause of that pain in your gut...good to know what it is, still sux.
I have been able to get Tasker and AutoInput to activate the hotspot fairly reliably when I connect to bluetooth. It actually works very well, even with the screen off. Guess it'll do.
Care to explain what you are doing there? Is autoinput disabling mobile data, enabling hotspot then re-enabling mobile data?
Auto Enable Hotspot with Tasker on S-8
I got the automatic hotspot worked out using Tasker and AutoInput. I tried several ways that were hit or miss. I finally figured it out and can now activate my Hotspot reliably when my phone connects to bluetooth.
If anyone is interested, here is the export. You will need AutoInput from the Play store, and Tasker. Root is not necessary. It is probably a pretty clumsy way of doing it, but it works.
Simply copy the Hotspot Enable XML file to your Tasker Configs folder. Then Tasker>>3-dot menu>>Data>>Restore>>browse to file
Thanks I'll try this. I always used tasker before but obviously w/o Autoinput.
Dave
No dice for me. Aside from autoinput and tasker did you have to install anything else? I did enable the autoinput accessibility service. I've included screenshots of what I get when I try to run the task and also when I click on any one line of the task. When I click to install what it says to it says it is just takes me to auto input in playstore which is already installed. Is there somewhere else I need to enable this auto input plugin?
It also seems I had to install secure settings which I did to no avail.
Thanks much
Dave
TT_Vert said:
No dice for me. Aside from autoinput and tasker did you have to install anything else? I did enable the autoinput accessibility service. I've included screenshots of what I get when I try to run the task and also when I click on any one line of the task. When I click to install what it says to it says it is just takes me to auto input in playstore which is already installed. Is there somewhere else I need to enable this auto input plugin?
It also seems I had to install secure settings which I did to no avail.
Thanks much
Dave
Click to expand...
Click to collapse
Sorry Dave, I haven't been back on.
It looks like you need to install "Secure Settings" from the play store. It is an add-on to Tasker. It should work after that.
So yes, you need Tasker, Secure Settings, and AutoInput. You could honestly probably do without the first command in Tasker (the one that needs Secure Settings...it only turns the screen on).
I tried again removing that first line and every single action if I click on it I get the error in the picture below. I try to manually run it in tasker it just sits at the first task. How did you create this exactly?
Btw, if I click to install it just brings me to autoinput I the play store which says it's installed.
Any help pinetreehater?
Well i ended up having my phone die and got a new one from samsung. Same issue I had w/ the other one. There has to be some other step involved that I'm missing here.
Any luck yet?
Sort of working
I downloaded and paid for AutoInput. The script is mostly working. But it stops at the Hotspot setting screen and never seems to turn it on.
Any ideas?
Apologies for necroposting, but I thought this might help future people. The only issue I can think is that you need to make sure you've activated Autoinput's trial period OR purchased the full version, do that and the supplied script works perfectly.
so I'm using the s9, figured the process would be close enough. first Trigonous' fix worked for me mostly, except I still have to unlock my phone before it finishes turning on hotspot. Also, for any totally novice users coming in to try to do this, I had a fun time at first locating the Tasker Configs file, if you create a back up in tasker it will create the file for you so you can copy the .xml to the proper place.
Most important part of this post, to me at least, is there a way to get it to by pass my unlock and just do it or do I have to pull out my phone still and unlock it for it to finish the task?
snaggle2thtiger said:
Most important part of this post, to me at least, is there a way to get it to by pass my unlock and just do it or do I have to pull out my phone still and unlock it for it to finish the task?
Click to expand...
Click to collapse
I'm no expert, but why not set your cars Bluetooth as a trusted device, therefore unlocking your phone when connected, then maybe a brief delay after connection allow it to continue?
Thank you
pinetreehater said:
I got the automatic hotspot worked out using Tasker and AutoInput. I tried several ways that were hit or miss. I finally figured it out and can now activate my Hotspot reliably when my phone connects to bluetooth.
If anyone is interested, here is the export. You will need AutoInput from the Play store, and Tasker. Root is not necessary. It is probably a pretty clumsy way of doing it, but it works.
Simply copy the Hotspot Enable XML file to your Tasker Configs folder. Then Tasker>>3-dot menu>>Data>>Restore>>browse to file
Click to expand...
Click to collapse
Thanks man, saved me some time, it works perfectly. I installed AutoInput and was moving in the same direction.

automatically activate wifi?

Hello
i use an app to automatically activate wifi when my screen is on and i'm home and to disable wifi when my screen is off it worked fine on my old phone and even on my oneplus 6t with android 10. but on my x50 pro it does not work automatically each time a popup asks me manually: the application requires authorization: activate or deactivate wifi: authorize or refuse.
how to delete this request and make it automatic (my phone is root)
I don't have a solution but i have the same problem.
My only 2 cents is that it seems to be mainly linked to the chinese ROM being very "harsh" in blocking everything. Any similar issues i had were solved by using the EU ROM, even with all the other implications of that right now.
i have the eu room and it's the same thing
I was gonna use Tasker to do a similar thing. But that also has that.
There is an option in Developer Options called "Disable Permission Monitoring". Automatic switching of wifi/bluetooth works with this option
Warinator said:
There is an option in Developer Options called "Disable Permission Monitoring". Automatic switching of wifi/bluetooth works with this option
Click to expand...
Click to collapse
that's the solution! thanks
I was wondering what that option was about (it doesn't disable permissions entirely, if someone thought that, i wondered ). Good catch!

Help needed to GPS hack an S5 undetectably

Hi all
Sorry if this is the wrong place, if so the thread can be moved or I will repost to what someone tells me is the right place
I have a Galaxy s5 (SM-G900V), used to be on Verizon but is a no service/sim phone now and is WIFI only connectivity.
I need to be able to GPS hack the phone, undetectably.
Full phone details:
Galaxy S5 (SM-G900V)
Unlocked Bootloader
TWRP Installed 3.5.0_9-0
Magisk installed and hidden (v 23.0, Zygisk: No, Ramdisk: Yes)
Storage Isolation installed
CrDroid
About Phone says Android 10
I found this forum post (https://www.xda-developers.com/how-to-fake-location-android-gps-spoofing/) and looking at it, this appears to be what I need (please tell me if I am wrong).
Here is where I need some help. I am an IT guy and 100% comfortable with doing what needs done to the phone, but not recently up to speed on Android images, etc.
I enabled Developer Options so I could turn on USB Debugging
On several other phones I have tried this on, the Mock Locations option is either greyed out or does not exist at all, on this one the option is there and working, but I'm pretty sure from how a test app is refusing to even start if I have Mock Locations enabled, that it's the original Mock Locations which reports to the system that location is being mocked.
My question is, once I do the step about downloading Smali Patcher, generating and applying the Mock Locations patch, will the Patch replace the existing Mock Locations or will the fact that the original Mock Locations exists screw things up or leave me vulnerable to being detected mocking??
Thanks in advance for any help you can give me
Schoralous said:
Hi all
Sorry if this is the wrong place, if so the thread can be moved or I will repost to what someone tells me is the right place
I have a Galaxy s5 (SM-G900V), used to be on Verizon but is a no service/sim phone now and is WIFI only connectivity.
I need to be able to GPS hack the phone, undetectably.
Full phone details:
Galaxy S5 (SM-G900V)
Unlocked Bootloader
TWRP Installed 3.5.0_9-0
Magisk installed and hidden (v 23.0, Zygisk: No, Ramdisk: Yes)
Storage Isolation installed
CrDroid
About Phone says Android 10
I found this forum post (https://www.xda-developers.com/how-to-fake-location-android-gps-spoofing/) and looking at it, this appears to be what I need (please tell me if I am wrong).
Here is where I need some help. I am an IT guy and 100% comfortable with doing what needs done to the phone, but not recently up to speed on Android images, etc.
I enabled Developer Options so I could turn on USB Debugging
On several other phones I have tried this on, the Mock Locations option is either greyed out or does not exist at all, on this one the option is there and working, but I'm pretty sure from how a test app is refusing to even start if I have Mock Locations enabled, that it's the original Mock Locations which reports to the system that location is being mocked.
My question is, once I do the step about downloading Smali Patcher, generating and applying the Mock Locations patch, will the Patch replace the existing Mock Locations or will the fact that the original Mock Locations exists screw things up or leave me vulnerable to being detected mocking??
Thanks in advance for any help you can give me
Click to expand...
Click to collapse
Why do you need to do it in a manner that can't be detected?
Droidriven said:
Why do you need to do it in a manner that can't be detected?
Click to expand...
Click to collapse
Same reason as everyone does.. so the app I am using, which could be pokemon or anything else, does not detect I am GPS Spoofing
Schoralous said:
Same reason as everyone does.. so the app I am using, which could be pokemon or anything else, does not detect I am GPS Spoofing
Click to expand...
Click to collapse
Then you don't need anything special, you just need the standard method of using "mock location".
Droidriven said:
Then you don't need anything special, you just need the standard method of using "mock location".
Click to expand...
Click to collapse
If I use the 'standard mock location' that is available in all android versions once you enable developer options, mocking IS detected.
Did you not read the question I asked??
If I use Smali Patcher to apply the specific 'Mock Locations' that does not report to the system that location is being mocked, will it overwrite the existing "Mock Locations" or will it screw something up??
Schoralous said:
If I use the 'standard mock location' that is available in all android versions once you enable developer options, mocking IS detected.
Did you not read the question I asked??
If I use Smali Patcher to apply the specific 'Mock Locations' that does not report to the system that location is being mocked, will it overwrite the existing "Mock Locations" or will it screw something up??
Click to expand...
Click to collapse
Or, maybe you misunderstood what I meant by "standard mock location". The standard "method" should work, getting it "setup" may be a bit out of the ordinary, though.
There may be some other trick to use. I had a Galaxy S3 when Pokemon Go was released, I had to use a trick to get it to work on the S3 because it didn't have the GPS hardware compatibility required to run it. I didn't have to use mock location, I can't remember the trick I had to use, it was years ago.
Droidriven said:
Or, maybe you misunderstood what I meant by "standard mock location". The standard "method" should work, getting it "setup" may be a bit out of the ordinary, though.
There may be some other trick to use. I had a Galaxy S3 when Pokemon Go was released, I had to use a trick to get it to work on the S3 because it didn't have the GPS hardware compatibility required to run it. I didn't have to use mock location, I can't remember the trick I had to use, it was years ago.
Click to expand...
Click to collapse
"Then you don't need anything special, you just need the standard method of using "mock location""
Yeah.. that's not at all confusing the way it's worded... anyways.
So Smali Patcher should replace the existing stock mock location with one that does not report it to the system is what I am getting from this.
Thanks
Update for anyone reading this thread in the future in case it helps someone.
Yes, Smalipatcher does REPLACE/MODIFY the existing mock locations applet, so it's safe to do this procedure on phones that have the option already available or if it's greyed out.
One note of caution on the S5 Galaxy, might apply to other devices as well.
I was having a real problem with GPS Beaconing/rubberbanding... every few minutes the GPS Module and the spoofing software would 'fight' rather obviously for about 30 seconds.
So I had to go another step not included in the instructions at the link above. That was to move the GPS Joystick app to the system partition using the Magisk Systemize module.
Once you move the GPS Joystick app (the copied under a new name one that is mentioned in the instructions) system partition and make it a system app, you set the 'Mock Locations App' in Developer options to none. No more beaconing/rubberbanding.
Enjoy all

Categories

Resources