Odd captive portal problem - Huawei Mate 20 Pro Questions & Answers

Hi,
I am hoping someone may be able to assist me with an annoyance I have with my Mate 20 Pro
The wifi check URL is set to xxx.hicloud.com and hicloud.com is blocked on some WiFi networks I use (and the admins will not whitelist it).
I have tried to use the ADB commands to turn it off, change the check URL and change the mode. None seem to work.
Is there any way to permanently disable the captive portal or properly change the URL to a google one on the Mate 20 pro?
Below are the commands (amongst many others) that I have tried with no luck. I have tried setting it to Apples, Googles Microsofts etc.
adb shell settings put global captive_portal_http_url http://www.google.cn/generate_204
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204
adb shell settings put global captive_portal_fallback_url http://www.google.cn/generate_204
adb shell settings put global captive_portal_other_fallback_urls http://www.qualcomm.cn/generate_204
settings get global captive_portal_detection_enabled 1

Related

Mobile HotSpot not working

Hi guys so I got the ATT version of LG V10 and I unlocked it. after put in my T mobile simcard everything works fine except for I wasnt able to get mobile data. So i set up a new APN and now mobile data is working fine with 4g Lte. However, when i tried to turn on my mobile hotspot, I kept getting this error.
Authentication was unsuccessful.
There is a temporary network problem that prevents the enablement of the Mobile Hotspot function. Please retry later.
I tried messing with the set ups and restarting and about all the things i can think of but still cant fix the error. if somebody know how to fix this please help me.
Thank you very much
SOCONFUSED123 said:
Hi guys so I got the ATT version of LG V10 and I unlocked it. after put in my T mobile simcard everything works fine except for I wasnt able to get mobile data. So i set up a new APN and now mobile data is working fine with 4g Lte. However, when i tried to turn on my mobile hotspot, I kept getting this error.
Authentication was unsuccessful.
There is a temporary network problem that prevents the enablement of the Mobile Hotspot function. Please retry later.
I tried messing with the set ups and restarting and about all the things i can think of but still cant fix the error. if somebody know how to fix this please help me.
Thank you very much
Click to expand...
Click to collapse
Hello, I was just wondering if you ever found a solution to this problem? I am thinking about unlocking my AT&T LG V10 and switching it over to T-Mobile but I would hate not being able to use the phone as a mobile hotspot on T-Mobile.
Please let me know if you found a solution, thank you.
Possible solution
In case anyone is interested, I found that the following helped my laptop to connect to my mobile hotspot and have interent access.
1. Download Settings Database Editor from Google Play
2. Scroll down to find "tether_entitlement_check_state" under the System Table and set it to "0" without the quotations.
3. Then you will need to download adb onto your computer. This tutorial is helpful: https://forum.xda-developers.com/showthread.php?t=2141817
3. Once you install adb onto your computer you will want to follow the steps about opening the cmd function as administrator and type "adb devices" in lowercase and no quotations so that your computer can find your device. If it cannot find the device then you will need to download the necessary drivers to your computer. This can be found at the lg main website. I just downloaded all of them.
4. Once it can find your device then type in adb shell. However, if it cannot find your device you may need to switch some things up like under Tethering in your phone, turn on the USB tethering. Type the command adb device once more. This should allow your computer to find it and authorize it.
5. Once device is found and authorized type in adb shell. Once that commands registers, then type in the following: "pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS" without quotations.
6. Now you should be able to go back to the Settings Database Editor app, change to global table and scroll down to find "tether_dun_required" and set that to 0. (You may find it helpful to also add these prompts in the adb command prompt as well by typing "settings put global tether_dun_required 0" without quotes after the adb shell command)
7. Now your laptop should be able to connect to your mobile hotspot (once it's set up and turned on your lg v10) If it still doesn't have internet access even though it's connected then you need to follow the steps from this website: https://www.digitalreborn.com/fix-android-wifi-tethering-dns-responding/
Yay! Success it should all work. Note I did not find the DNS Changer described in the above link. I just went to google play and typed in DNS Charger and picked the one that popped up first and followed the instructions, turned on my VPN and once it was set up and connected I had internet access on my laptop through my mobile hotspot! However, you will need to go through all these settings again if either phone or laptop restarts. I haven't figured out how to make phone and laptop to keep these changes. Hope this helps someone because it took me forever to figure this out. Shalom.
Solved
combat_chicka said:
In case anyone is interested, I found that the following helped my laptop to connect to my mobile hotspot and have interent access.
1. Download Settings Database Editor from Google Play
2. Scroll down to find "tether_entitlement_check_state" under the System Table and set it to "0" without the quotations.
3. Then you will need to download adb onto your computer. This tutorial is helpful: https://forum.xda-developers.com/showthread.php?t=2141817
3. Once you install adb onto your computer you will want to follow the steps about opening the cmd function as administrator and type "adb devices" in lowercase and no quotations so that your computer can find your device. If it cannot find the device then you will need to download the necessary drivers to your computer. This can be found at the lg main website. I just downloaded all of them.
4. Once it can find your device then type in adb shell. However, if it cannot find your device you may need to switch some things up like under Tethering in your phone, turn on the USB tethering. Type the command adb device once more. This should allow your computer to find it and authorize it.
5. Once device is found and authorized type in adb shell. Once that commands registers, then type in the following: "pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS" without quotations.
6. Now you should be able to go back to the Settings Database Editor app, change to global table and scroll down to find "tether_dun_required" and set that to 0. (You may find it helpful to also add these prompts in the adb command prompt as well by typing "settings put global tether_dun_required 0" without quotes after the adb shell command)
7. Now your laptop should be able to connect to your mobile hotspot (once it's set up and turned on your lg v10) If it still doesn't have internet access even though it's connected then you need to follow the steps from this website: https://www.digitalreborn.com/fix-android-wifi-tethering-dns-responding/
Yay! Success it should all work. Note I did not find the DNS Changer described in the above link. I just went to google play and typed in DNS Charger and picked the one that popped up first and followed the instructions, turned on my VPN and once it was set up and connected I had internet access on my laptop through my mobile hotspot! However, you will need to go through all these settings again if either phone or laptop restarts. I haven't figured out how to make phone and laptop to keep these changes. Hope this helps someone because it took me forever to figure this out. Shalom.
Click to expand...
Click to collapse
This worked for me, but I have a couple clarifications to add.
First, in case it wasn't clear, this does NOT require root to work. But after restarting the phone and/or uninstalling Settings Database Editor these steps need to be repeated again and again. Not that big a deal if u don't restart your phone often but still a pain in the neck. For me it's still preferable over rooting and installing a custom rom though so I'm very appreciative for this solution.
Also, finding the LG v10 adb drivers was the most time consuming part of the process. I found working ones here
Drivers also attached in case link goes dead

is it possible to enable WPS to connect to a WiFi using ADB commands?

Is there any way to enable WPS in Android through ADB commands to get to connect to the WiFi?
What I want to do is automatically testing this feature in a router with different types of devices connected, one of them being a phone (any) with the latest version of Android (10.0 at the moment I'm writing this).
I'd like to control it through ADB for two reasons:
I want to automate it
I need to make sure the phone was disconnected and connected again thanks to WPS and not other settings of the phone itself or the router
Maybe I can control the app Simple WPS through ADB commands? However I'm a bit newbie using ADB and I'm not sure how to do that.
I also found the Wi-Fi Easy Connect, but again, not sure how to use it.
Thanks!
You can bring up Android Activities using adb.
For example:
adb shell "am start -a android.settings.WIFI_SETTINGS"
Then you can tap the buttons from adb, I think.
Here's an example using a different Activity.
C:\> adb shell am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity
That should pop up an Android "Reset Advertising ID" settings page.
C:\> adb shell input tap 500 400
If run after the command above, that will tap the button to
asking to "Opt out of Ads Personalization" in that Activity
if that button is like mine, at the X=500 & Y=400 location.
On my phone, this is the "Reset advertising ID" button location:
adb shell input tap 500 200
On my phone, this is the "OK" button on that GUI above.
adb shell input tap 700 1000
C:\> adb shell am force-stop com.google.android.gms
If run after bringing up the advertising-id reset Activity,
it will close the activity without doing anything else.
If you have already set up ADB on your Android and PC, then you can skip this step. If you haven’t, there is a first time for everything!
To use ADB on your system, you first need to download and unzip the Android SDK Platform Tools from the Android developer website.
Mac users can use Homebrew to install ADB using the command: brew install homebrew/cask/android-platform-tools
On your Android device, you will need to enable USB debugging in the developer settings before you can connect the device over ADB.
Go to Settings > About phone then tap on the Build number several times. Once again, go to Settings > Developer options, then toggle on USB debugging.
Once that’s done, connect the Android device to your PC using a USB cable. Make sure to always allow the USB debugging prompt that will appear on your Android device.
Regards,
J Wick

Autorotation enables automatically

Hi there,
I have the following issue on my Oneplus 6T and now on my Oneplus 8 Pro. Regularly I keep autorotation disabled, but it keeps enabling automatically, which is disgusting. Is there anything I can do to turn this off? I rebooted the device, I deleted the cache, I even did a factory reset, without any help. This is really annoying and disturbing, what am I missing? I am running on android 10 with all the latest updates.
Another sidefact: I am using a software called vysor pro to control my smart phone with my computer, as for I'm disabled and totally in need of that. Could that be the issue? I am using it via wireless ADB, but it is running on stock without any changes.
Greetings
Jensen
@Jensen12033
On the assumption that your device is rooted, there is a way you can force disabling Autorotation and the system to go by default into Landscape and/or Portrait mode by changing a value in Android's settings.db by means of ADB:
Set Landscape mode
Code:
adb shell settings put system accelerometer_rotation 0
adb shell settings put system user_rotation 1
Set Portrait mode
Code:
adb shell settings put system accelerometer_rotation 0
adb shell settings put system user_rotation 0
First of all, thank you for the fast response. Unfortunately it's not rooted. I have absolutely no clue why the phone is doing that.

Is it just me or we can not edit Notification Panel on Mi Note 10 Lite

Can anyone help? Can't seem to edit the notification parcel/quick settings. No screen recorder either
It's a bug. Use System UI Tuner and reset the notification shade to make it editable. No root needed, but you will need adb for permission.
Axeybaby said:
Can anyone help? Can't seem to edit the notification parcel/quick settings. No screen recorder either
Click to expand...
Click to collapse
This is a bug and i had to use adb to reset the settings to default. This happened because i was coming from a custom rom and my Google account synced and created this bug.
Probable Solution
Nope, you're not the only ones but update 11.0.8 should fix it, at least it worked for me
you can solve this problem with adb
open developer options
enable (usb debugging) and (usb debugging security)
in your platform tools directory open cmd or terminal
enter the following commands
adb devices
adb shell
settings put secure sysui_qs_tiles "$(settings get secure sysui_qs_tiles),edit"
adb reboot
I also notice that notification panel and quick settings tiles remains unchanged after applying themes. Any workaround...... Or its the way it is for now?

Question ADB to change button order of Navigation bar

Hi,
I've tried all the ADB commands for previous android version but it is not working on the Pixel 6 android 12.
I've tried
adb shell settings put secure sysui_nav_bar 'space,recent;home;back,space'
adb shell
settings put secure sysui_nav_bar "space,contextual;home;back,space"
Anyone know if android 12 they changed something to make it not work?
bump. why did they remove this

Categories

Resources