Question Mobile/Cellular Data turns off when on USB Debbuging Mode and connected to scrcpy - Google Pixel 6

Hello Everybody,
today I tried to use scrcpy to remote control my Pixel 6 (Android 12, Build Number SP2A.220405.004) via USB.
USB Debugging has been activated.
However, as soon as I establish a connection from scrcpy to my phone, the cellular data symbol switches to this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As soon as I disconnect the usb cable it will have a data connection again.
Does anybody have an idea where this could come from?
Did I miss some settings?
Thanks in advance

cbytime said:
Hello Everybody,
today I tried to use scrcpy to remote control my Pixel 6 (Android 12, Build Number SP2A.220405.004) via USB.
USB Debugging has been activated.
However, as soon as I establish a connection from scrcpy to my phone, the cellular data symbol switches to this View attachment 5611891
As soon as I disconnect the usb cable it will have a data connection again.
Does anybody have an idea where this could come from?
Did I miss some settings?
Thanks in advance
Click to expand...
Click to collapse
Im not familiar with the phone, but there are some settings that could be causing the issue. Here are a few:
In 'developer options', the switch 'Verify Apps over USB' could prevent the program from running...switch that to 'off'. Check Google Play Protect, turn off to test. Those may not be allowing the 'scrcpy' to function.
Also, the phone may think its in a wifi network, so it kills the data connection. In 'dev options' there should be a switch called 'Mobile data always active', when wifi is active, turn that on.
In Settings, under 'Hotspot & Tethering', there is a switch 'USB Tethering' ->share phone's internet connection via USB ->set to on.
In 'Wi-Fi Preferences', the switch 'Auto switch to mobile data', set to on.
Test also the 'Tethering hardware acceleration' option in 'dev options', it may be interfering with the program.
It could just be a tethering issue.
On a final note, if you have root or command line access, you can set the local routing tables to function with wifi & data like this:
1. "ip rule" //shows routing tables
2. "ip rule add from all lookup main pref 1" //adds table as 2nd in line.
The latter rule allows data & wifi to function in same routing network. May or may not be necessary to resolve your issue.

Wow - I didn't expect a reply that fast
I'll check the settings later when I'm back at a PC and post my results. Thanks a lot @Xpltr

Simply disabling wifi solves the problem.
Thank you for all the tips, maybe I'll find some time in the future to check the other points and find the root cause.

Related

Default activesync to gprs even when connected by usb

I've searched and found some threads with similar questions but no definite solution.
Basically I use my pda for internet browsing and syncing with my personal email while at work.
To make it easier, i want to use a remote control program like MyMobiler. Problem is that when i connect via usb, the pda wants to switch activesync to use the passthrough connection of the pc. The work lan doesn't let me connect like this.
So, is there some way that I can still maintain the gprs connection even when connected via usb?
Some sort of preference of which sevice to use?
Also, anyone know of a remote control software that lets you expand the prophet resolution?
I tried dotPocket but it doesn't seem to work.
thanks.
wooooooooooooohooooooooooooo!!!!
ok, I managed to get this working...
I couldn't find any help on the net but I figured it out myself.
Connect your pda via usb.
Activesync will connect then disable active sync by unchecking "Allow USB Connections" in connection settings on the pc.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Your device will be disconnected.
Then start MyMobiler and select "connect to IP". Enter the ip address as 169.254.2.1.
And voila, remote control of the pda without activesync there fore still using your gprs connection and not work's connection.
Notice the "G" at the top.
And you may say "but now I can't explore my device from activesync..."
That's when I say ... "wait there's more..."
Use mobile explorer from the tools menu in MyMobiler.
Thanks for coming!
sweet, thanks for sharing your tips )
SOTI Controller
Hi,
Why you're not using SOTI Pocket controller pro 6.01? It connects over active sync or over tcp/ip (depending on the profile that you set up) and you can browse your pda and syncronise it with the pc. The synco is much better than the active sync.

MIZ Z2 WIFI Connected :: Gray signal bars :: no internet

Miz Z2 MTK6589 Quad core 1.2Ghz CPU Android Phone 5.0 inch Screen(1280*720 HD IPS) 1GB RAM 8GB ROM 12MP Camera
Since I bought this new MIZ Z2, I am not able to connecto any wifi signal
I have to say phone is great except the wifi problem it is causing me too much trouble.
WIFI shows connected, wifi bars signal remains 'gray color'. not 'blue bars'. so I can not connect to internet through my wifi, although it shows it is connected. but i am not able to.
I have tried resetting the phone, restarting the phone and router, but no use. tried on four different wifi spots(my college, my friend's house), at no place it ever connected to WIFI. Infact it shows "IPv4 address: unavailable". it is running Android 4.2.2, there is no option for ''Static IP address" or IPv6 address. some time it shows message : "navbar err x 01" and then I found somewhere about the replacing WiFI and CUSTOM WIFI files in data/navram folder. I restarted the phone after replacing files, but still no luck
I have tried searching the internet, and tried various tricks mentioned there, but none of them worked.
I have done the following.
1) Turning ON OFF phone and router-- no good
2) resetting the phone to factory settings --no good
3) clearing the cache in apps >> google service framework >> clear cache >> stop >> and restarting the phone --- no good
4)changing the broadcasting channel at my router, disabling wpa keys and tried to connect to open wifi networks-----no good
5) replacing WIFI and CUSTOM WIFI files
So far, I have found no solution. can anyone out there guide me in right direction..
Many thanks in advance
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
turn on your data connection, set your APN and restart!
I got it working finally.
Below is what worked for me, it may or may not work for others having same issue:
1) Settings >> Sim Management >>> Data Connection ::: select your favorite sim having activated data plan.
2) no go back to Settings menu again and tap on 'More'>> Mobile Networks...Make sure Data Connection is ON. select 3G service on with your favorite sim.
3) Go to Access Point Names. Select your sim with data plan, Tap on it and it ll open new screen and now tap on the left side of menu button on your phone and click "New APN" .
4) here pls enter the details such APN name(anything), APN, username and password (if you dnt know these three i.e. APN, username and password, you may have to ask you mobile network provider)
5)press the square buttons again and tap "save" and exit the setting menu
now go back all the way and try to connect WIFI again. It still did not work for me so, At this point I restarted my phone and when my phone was turned back on WIFI bars were blue and I was able to log into playstore.
[optional]: I turned off my data connection after wifi was fixed and since then wifi did not drop a connection nor shown anymore "gray signal bars"
So internet is working fine now
PS: please do note that I did replace my WIFI and CUSTOM WIFI files earlier, but it did not make any difference at that time. So not sure, this made any difference or not. but try above at your own risk!

Huawei G700 keeps asking permission to use mobile data after WiFi disconnects

I recently bought a Huawei G700. It's a fairly new and uncommon device. It runs Android 4.2.1 in combination with Huawei's own Emotion UI
When I have WiFi enabled and for some reason my Wifi disconnects (for example I go out of reach), my phone keeps asking me, each and every time, if it's allowed to use Mobile Data. if I don't answer, my mobile data does not connect thus I can't recieve any mails etc which is highly annoying.
This is the exact error/popup message that I get:
Data connection change
WLAN is unavailable, try to connect to mobile network?
I've googled this exact phrase, but I get 0 results.
How can I prevent my phone from asking if it's allowed to use mobile data?
Freekers1337 said:
When I have WiFi enabled and for some reason my Wifi disconnects (for example I go out of reach), my phone keeps asking me, each and every time, if it's allowed to use Mobile Data. if I don't answer, my mobile data does not connect thus I can't recieve any mails etc which is highly annoying.
Click to expand...
Click to collapse
Did you find out yet how to disable this?
_mfm_ said:
Did you find out yet how to disable this?
Click to expand...
Click to collapse
It seems that this behavior is present in all recent Chinese ROMs from Huawei and there is no way to disable it. However, I found a workaround for it; The message only popsup if you have WiFi and Data Enabled and you lose WiFi connectivity. Then your phone will ask if it's allowed to switch from WiFi to Data. So, if you make sure WiFi is disabled before switching to Data, it will not ask this question. To do so manually, takes a lot of time. Luckily there is an app that can automate this task for you. Here's how:
Install the app 'Llama' from the Market (Free) and create these two events:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The 1 second delay is necessary, else it does not work properly.
What it does: Switch off WiFi as soon WiFi disconnects from your WiFi network and then enables Data. This way, it does not show the popup and 'automatically' switch to Data. Don't forget to manually enable WiFi again if you are in reach again of your WiFi network.
If you want Llama to automatically turn back WiFi on as soon you get home/in reach of your WiFi, you have to let it learn your location. Read the help/documentention on how to do so. It's pretty easy to do
This 'fix' works for me 9 out 10 times. Give it a try, I hope it helps you.
Kind regards.
Freekers1337 said:
It seems that this behavior is present in all recent Chinese ROMs from Huawei and there is no way to disable it. However, I found a workaround for it; The message only popsup if you have WiFi and Data Enabled and you lose WiFi connectivity. Then your phone will ask if it's allowed to switch from WiFi to Data. So, if you make sure WiFi is disabled before switching to Data, it will not ask this question. To do so manually, takes a lot of time. Luckily there is an app that can automate this task for you. Here's how:
Install the app 'Llama' from the Market (Free) and create these two events:
The 1 second delay is necessary, else it does not work properly.
What it does: Switch off WiFi as soon WiFi disconnects from your WiFi network and then enables Data. This way, it does not show the popup and 'automatically' switch to Data. Don't forget to manually enable WiFi again if you are in reach again of your WiFi network.
If you want Llama to automatically turn back WiFi on as soon you get home/in reach of your WiFi, you have to let it learn your location. Read the help/documentention on how to do so. It's pretty easy to do
This 'fix' works for me 9 out 10 times. Give it a try, I hope it helps you.
Kind regards.
Click to expand...
Click to collapse
What happens if you use Gravity box and pop up notification blocker?

[Q] How does android determine if it has internet connectivity

Question is as exactly as it is in the title; how does Android come to the conclusion that it has complete internet connectivity (or connection to google services), and consequently will turn the signal bars blue (on stock android devices).
I am trying to fix a problem at work where if I put my phone on the company wifi, my phone never seems to think it has internet connectivity, even though I do. The consequence is most apps don't attempt to pull new data, and therefor never notify me of new messages. This includes gmail, google voice, and hangouts.
I don't have direct control of the network infrastructure at the moment, so right now it is easier to know what address or IP it tries to get to, and how (ping?), so it can be unblocked by the firewall or web filter.
bump
Does really no one know? Perhaps a point in the right direction?
coreno said:
bump
Does really no one know? Perhaps a point in the right direction?
Click to expand...
Click to collapse
check your settings>wireless & Networks> WIFI>check Network notification this will inform you when there are other open wifi networks present > you need to connect to that network with password or scroll down to add WIFI network (you can add any network when you know its SSID and security used.
if you unchecked network notifications, you will " NOT" know or use of any new networks other than what you have used before.
Check this out!You , YES! you are an " Android ". Not your phone but U.
You Must watch this documentary concerning your privacy Terms & Conditions we had agreed to, by using a PC or Smartphone
How to say Thank you? If you find any post helpful on XDA, please click on the Thanks button
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you are using XDA App or Tapatalk, long press on the post and select :good: Thanks Its easier to give "Feedback" in this manner than make an additional post.​
xsenman said:
check your settings>wireless & Networks> WIFI>check Network notification this will inform you when there are other open wifi networks present > you need to connect to that network with password or scroll down to add WIFI network (you can add any network when you know its SSID and security used.
if you unchecked network notifications, you will " NOT" know or use of any new networks other than what you have used before.
Click to expand...
Click to collapse
I'm not having any issues finding or connecting to wifi, the problem is at my buisness when on wifi, android does not detect an internet connection; so it thinks I just have local network access, so most apps do not auto refresh in the background.

Vysor app issues?

just dropped $40 on the vysor pro app (hard to tell what it can really do with the free version) but can't seem to get it to accept wireless mode when trying to mirror my shield to my pc, when i try i get the below message... i've also installed vysor on a tablet and it has no problem with wireless mode... i've tried every recommendation i could find in order to resolve this prob but no luck, which includes:
- disabling ipv6
- trying both 2.4 and 5.0 wireless connections
- updating universal adb drivers
- changed usb configurations (mtp, ptp, etc.)
also worth mentioning, my shield wi-fi works fine with everything else, and shows in my windows explorer.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
aeneas1 said:
but can't seem to get it to accept wireless mode
Click to expand...
Click to collapse
I just found this thread long after I got Vysor (and scrcpy) to work (almost) flawlessly on Android 11 (with USB setting up the initial adb connection and then switching to Wi-Fi thereafter)....
In early May I updated from Android 11 to Android 12 and I found out that Android 12 has a fantastic new Developer option "Wireless debugging" feature where you can set up the adb connection to the PC completely over Wi-Fi (no need for the initial USB connection!).
I just wanted people to know new information related to using Vysor completely over Wi-Fi (no USB connection is ever needed again!).
This always on Wi-Fi Vysor capability is new in Android 12 because Android 12 has a new Developer option for "Wireless debugging".
However, Android 12 also has a new Developer option for "Enhanced MAC Randomization" which randomizes the MAC address on every Wi-Fi connection, so with that added desired Wi-Fi simplicity in Android 12 comes also the added desired privacy of MAC randomization on every connection (the difference being Android 11 only randomized the MAC per SSID, as far as I understand it).
All this new Android 12 functionality has implications for your Vysor (and scrcpy) setup, based on my tests over the past couple of months.
Of course, if your router is using the MAC address to hand out the IP address you might need address reservation since the router can no longer expect a consistent MAC address if you set that new Android 12 Developer option but you can set the Android phone to request a "Static" IP address (if you want the adb connect commands to be consistent in the IP address in day to day usage).
I have found that rebooting the PC causes me to need to reconnect via an adb command on the PC before Vysor will work, and, for unknown reasons yet, often the Android 12 "Wireless debugging" switch gets turned off (mysteriously) - which affects the Vysor (and scrcpy) connections from one day to another.
It's no big deal once you figure out the commands and switches though, where the screenshots below show the settings I currently have on my unrooted Android 12 Samsung Galaxy A32-5G phone from T-Mobile (many of which are for privacy and functionality reasons).

Categories

Resources