Possibility of Android networking hardware being physically disabled via ifconfig. - Upgrading, Modifying and Unlocking

Using ifconfig Android to enable or disable a network device will effectively control it's powered state. I know this because I am an advanced Linux user. The basic function of ifconfig is the same between devices/architectures, and since all Android devices are based on Linux, i see no reason why this cannot be done.
Currently, when you shut off your wifi or mobile data, its never really off. To confirm this, I shut off my wifi, turned my phone to airplane mode to make sure I wasn't connected, but when I arrived home again later, I still received a couple of new messages from my yahoo mail and kik. My first though was "... The heck?" I knew I wasn't supposed to be able to receive anything. I even had autosync turned off also for good measure. I couldn't explain it at first... Upon checking the timestamp, it revealed to me that I received the notifications the exact moment I arrived home, but the original Sent time from the source is when I was not home. Remember, all data was turned off by me and I did not receive anything the entire time i was out. (airplane mode, and i have no active phone service)
I double-checked and surely enough, my settings were still all off according to what I could see and verify. That tells me it's not really off and it knew I was home and connected to wifi anyway briefly, even though I had it off. That tells me that even though I turned off the wifi and mobile data and set the advanced settings to never "always allow scanning even while turned off" for location services, its STILL on!! Unacceptable. Deceitful. Wrong. When I tell it to turn off I expect it to stay off, dang it...
Talk about unexpected battery drain. Imagine being comfortable in knowing you've shut off all these things, to then find out later that these settings are present just to trick you in to letting your guard down! The question is, why would Google put in place these settings if only to be overridden anyway? There is no reason except their own sneaky one.
My goal here is to recruit someone to build an app or widget for rooted users to physically disable the device via push-button widget or app, not just disassociate from any given wifi AP or mobile data service. (wifi_dassoc kernel command) Anyone with some spare time and knowledge of Android programming and use of ifconfig is welcome. I welcome more than one person also. A team even... Haha. You guys converse and figure it out. I'll be watching, and Thanks! Hope you find this to your liking and interest.
Sent from my SCH-I535 using XDA Free mobile app

Related

[Q] Some apps not working when on WiFi with cellular data connection turn off?

Hi,
When using WiFi, and having cellular data turned off, some apps don't seem to be able to use the internet connection.
For example, my 2 RSS readers I have installed don't work. Probably other apps too.
Is this intended, or a bug?
Also I noticed this: again having WiFi on, cellular data off, when my phone is 'off' (locked/screen off), I think WiFi also turns off? Because when unlocking, I notice it is not downloading mails or updating other things. When I unlock it then it does receive the data when next scheduled.
Again: is this intended, or a bug?
Both things are really too bad, and don't make sense to me. When I'm home, or abroad, I really don't want to have my cellular data turned on. When I'm home I don't see the need, and want to safe my data bundle; when abroad I don't have it turned on because of the insanse prices you pay for data usage.
=7
the first, i haven't really noticed. does it happen to all third party apps? well for starters use the facebook app (not really third party as it's made by MS, but still should be the same) and see if that works over wifi only. if so, try a 3rd party app like shazam. if that works as well, then it's probably an issue with those particular apps and maybe you could get in contact with the developers and inform them of the issue.
the second, if you're not connected your phone to power source (ie charging it), it automatically disables the wifi on standby so it doesn't completely flatten your battery within a couple of hours. hence why you would be seeing this issue.
to be honest though, having data connection on whilst phone is in standby uses very little data as only the live tiles and email checks are done. and they're all quite minimal. but if you've got a dodgy company like i do (yes you are vodafone), where they charge minimum 50KB per session (how do i measure a session? twits...), then yea it can still rack up quite a bit even though the phone uses minimal data bandwidth in polling for info.

Please help a windows phone new comer

I have been using my new windows phone for nearly a day now and I have just noticed that my wifi appears to turn itself off when my phone is in standby. Is this actually the case and, if so, is there any way to prevent this?
I don't have a large data plan and I am concerned about going over my data limit.
Also, is there any way to force the device to only sync when on a wifi connection?
I hope there is an obvious solution to this issue as I like to have full functionality of the device without having to be changing sync settings all the time.
I would grately appreciate some informed assistance with these issues.
ps I have put this post in the lumia 900 section by mistake as I own a lumia 800 but I guess that the same thing applies so would appreciate any help!
Sorry my friend,
Wifi will turn itself off on standby and there is no option to prevent it... However, there are a few apps that will keep the wifi on even in stand by; apps such as "spotify" (I think) and probably most radio/music apps... you could keep it running in the background
You should note that the wifi is automaticaly turned on as soon as your phone is awake and takes over your data connection. So, you could choose to sync your emails manualy.
Hope it helps.
Google search mobility digest keep wifi on trick. The I heart radio app will do that for you.
You can also set up wireless sync in Zune.

Block Internet for a single app on a single network

Hi,
I use tTorrent to download big files when I'm at work (we have a fiber connection, there's no problem). I set it on Wifi only, but I owuld like to prevent it from downloading from my home network (I don't have a lot of bandwidth allocated). Is this possible? I know that the app can't do it (didn't expect more anyway) but is there an app who could do that for me?
I tried blocking the tTorrent port on my router but I can't figure out how :/
Thank you!
This sounds like a job for TASKER!! lol AMAZING app and really one of the main reasons I put up with a lot of android BS, and not move to the iPhone. Be warned Tasker is scary at first since it SOOO powerful, however after some reading and youtube videos I was up and running, examples of what I have it do.
on random times of the day Tasker will send a text to my wife explaining how much I love her.
When I launch camera, or gallery the brightness of the screen goes all the way up, when I launch the camera NFC enables.
When I launch a web browser screen rotation turns on, when I leave it turns off.
at 7pm the phone goes in to auto reply mode explaining to any would be textures and callers I'm working out and I'll get back to them soon
There's one I found that if your going over 5MPH auto text will turn on and will explain to people your driving.
Sleep mode after 12pm and off at 7am
Tasker & astrid make for a wonderful location based reminder team!
Locale is mch like tasked only VERY VERY simple, and you will be frustrated at the fact that you cant to 1 tenths of what Tasker does. lol
-------------------------------
these are very basic commands, there are MANY MANY more.
Dont forget to hit THANKS!
You could also do this at the network level. Set up a static reservation for your phone so that it always gets the same ip address. Then block the port(s) that the program uses for that ip assess address. Net result is that the firewall will prevent the connection.
Sent from my SGH-T999 using Tapatalk 2
LBE Privacy Guard is your best solution. It has individual app firewall, and app permission manager.
That tasker app sounds like it makes life a little easier. I'm going to have to check that out
---> Brought to you in part by my T999 / T-Mobile Galaxy SIII

Location Service and Mobile Data Off Messages

Loving the phone so far. However, upon each reboot, it asks me to agree to letting Google track my whereabouts. It says ""Allow Google's location service to collect anonymous location data..." Of course, I have disagreed every time, but it keeps asking. How can I disable that.
Also, I use Llama to turn off mobile data while I am in range of various wireless access points. However, it keeps warning me about that, saying "Your mobile data connection is turned off. Unless you use WiFi, you will not be able to use the internet, email, or other apps...." Is there anyway to disable the pop-up/warning?
And last, how can I replace the weather and time widget on the lock screen, and replace it with something else?
Kindly
Michael
Did you ever find a solution to this issue? I'm experiencing the same thing using Tasker to regulate data on/off.

Question Captive portal driving me nuts

Tl;dr I have to log in to my work's guest wifi every day, but I didn't before. Nobody else does. Auto connect is set to on, but it doesn't work like it used to/is supposed to. My pixel 3 that I brought in works just fine.
Longer: I connect to a guest network at work every day that's meant for employee personal devices. (I use a homebrew VPN for this.) Before the issue started, I'd periodically (maybe once/month if that) have a notification when I arrived to sign in, and you click agree in a captive portal and you're on your way. Other than that it auto connects just like at home. A few weeks (?) ago however, I've started having to do this every day. If I'm disconnected for over roughly an hour (say if I leave and come back during the day) I have to do it again, and if I reboot my device I also have to sign in again. If I just toggle wifi on and off quickly then it automatically connects just fine.
Ordinarily this wouldn't be a huge deal, but where I work I basically get no cell coverage. I also have a couple tasker profiles that I've been using for years to do stuff (vibrate mode, silence media, etc) when I arrive to work, and these don't/won't trigger until I have a minute to log in. Ideally these would trigger as soon as I'm within range of the building, as I've been doing for years now.
None of my coworkers have this issue, everyone that I've asked all say their devices automatically connect just fine, as mine used to. I brought in my old pixel 3 to compare and test the behavior, and my pixel 3 works just fine, even though it hasn't been to my work in many months.
I'm assuming this is something related to my device. Because it happens if I reboot, but not if I quickly disconnect and reconnect, I'm imagining maybe something isn't being cached correctly?
If anyone can help me fix this I'd be very grateful!
(Running full stock unrooted all up to date on both phones.)
Edit: if you're having this issue, read a few replies below. Check dev options for non-persistent Mac address randomization
Just for the heck of it, have you tried:
Forgetting the network after logging into it.
Gone into your WiFi Saved Networks, forget any that look like it's your work's guest network, if any.
Turn airplane mode on.
Reboot.
Turn airplane mode off.
Log into it fresh.
See if it sticks the next day/time.
I'm pretty much grasping at straws, but worth a try if you haven't already.
More extreme measures are:
Settings / Apps / See all 999 apps
3-dot menu: Show system
Search icon
Search for both WiFi and for Wi-Fi and clear app cache and data for all of them.
Be prepared to possibly have to log back into all Wi-Fi networks you normally do.
Ultra extreme measures:
Factory reset, set the phone back up only with what you really require at first, and don't do much with the phone until you test it with your work's guest Wi-Fi for a couple of days, hopefully without trouble. If it works fine, continue installing apps in smallish groups prioritizing what's most important. Hopefully, everything keeps working or at least has worked at least after the factory reset.
Disregard below.
Any other pertinent details? Rooted? Custom kernel? Even unlocked bootloader and verity and verification disabled? I assume none of these, but just have to ask.
roirraW edor ehT said:
Just for the heck of it, have you tried:
Forgetting the network after logging into it.
Gone into your WiFi Saved Networks, forget any that look like it's your work's guest network, if any.
Turn airplane mode on.
Reboot.
Turn airplane mode off.
Log into it fresh.
See if it sticks the next day/time.
I'm pretty much grasping at straws, but worth a try if you haven't already.
More extreme measures are:
Settings / Apps / See all 999 apps
3-dot menu: Show system
Search icon
Search for both WiFi and for Wi-Fi and clear app cache and data for all of them.
Be prepared to possibly have to log back into all Wi-Fi networks you normally do.
Ultra extreme measures:
Factory reset, set the phone back up only with what you really require at first, and don't do much with the phone until you test it with your work's guest Wi-Fi for a couple of days, hopefully without trouble. If it works fine, continue installing apps in smallish groups prioritizing what's most important. Hopefully, everything keeps working or at least has worked at least after the factory reset.
Disregard below.
Any other pertinent details? Rooted? Custom kernel? Even unlocked bootloader and verity and verification disabled? I assume none of these, but just have to ask.
Click to expand...
Click to collapse
Tried 1-7 already. Rebooting makes me sign in again, regardless whether or not airplane mode is on. I nuked my entire network settings (the little circle arrow in the top right corner of the network settings page) and that didn't solve it either. (But I did have to wait for my sim to reprovision...) I absolutely will not factory reset, but given that I already did a network reset I don't think that would help.
As far as the timeframe, I'm thinking this might have popped up after the January patch. I installed that while I was on a brief vacation; unfortunately don't remember if I had the issue before I left or not.
roirraW edor ehT said:
Just for the heck of it, have you tried:
Forgetting the network after logging into it.
Gone into your WiFi Saved Networks, forget any that look like it's your work's guest network, if any.
Turn airplane mode on.
Reboot.
Turn airplane mode off.
Log into it fresh.
See if it sticks the next day/time.
I'm pretty much grasping at straws, but worth a try if you haven't already.
More extreme measures are:
Settings / Apps / See all 999 apps
3-dot menu: Show system
Search icon
Search for both WiFi and for Wi-Fi and clear app cache and data for all of them.
Be prepared to possibly have to log back into all Wi-Fi networks you normally do.
Ultra extreme measures:
Factory reset, set the phone back up only with what you really require at first, and don't do much with the phone until you test it with your work's guest Wi-Fi for a couple of days, hopefully without trouble. If it works fine, continue installing apps in smallish groups prioritizing what's most important. Hopefully, everything keeps working or at least has worked at least after the factory reset.
Disregard below.
Any other pertinent details? Rooted? Custom kernel? Even unlocked bootloader and verity and verification disabled? I assume none of these, but just have to ask.
Click to expand...
Click to collapse
I also tried looking for anything related to WiFi in all apps as suggested and anything that comes up there shows no cache/user data to clear, with clear storage and clear cache buttons greyed out.
roirraW edor ehT said:
Just for the heck of it, have you tried:
Forgetting the network after logging into it.
Gone into your WiFi Saved Networks, forget any that look like it's your work's guest network, if any.
Turn airplane mode on.
Reboot.
Turn airplane mode off.
Log into it fresh.
See if it sticks the next day/time.
I'm pretty much grasping at straws, but worth a try if you haven't already.
More extreme measures are:
Settings / Apps / See all 999 apps
3-dot menu: Show system
Search icon
Search for both WiFi and for Wi-Fi and clear app cache and data for all of them.
Be prepared to possibly have to log back into all Wi-Fi networks you normally do.
Ultra extreme measures:
Factory reset, set the phone back up only with what you really require at first, and don't do much with the phone until you test it with your work's guest Wi-Fi for a couple of days, hopefully without trouble. If it works fine, continue installing apps in smallish groups prioritizing what's most important. Hopefully, everything keeps working or at least has worked at least after the factory reset.
Disregard below.
Any other pertinent details? Rooted? Custom kernel? Even unlocked bootloader and verity and verification disabled? I assume none of these, but just have to ask.
Click to expand...
Click to collapse
Wait, I just tried something else - I switched from randomized mac to device Mac. It wanted to make me log back in again (disconnected, reconnected with different Mac address) but then I switched back to randomized mac and it connected just fine (as is usually the case if I just toggle wifi) with the last used random Mac ad.
Is there a way to reset my randomized mac address? I wonder if that Mac address has been flagged somehow on their system.
roirraW edor ehT said:
Just for the heck of it, have you tried:
Forgetting the network after logging into it.
Gone into your WiFi Saved Networks, forget any that look like it's your work's guest network, if any.
Turn airplane mode on.
Reboot.
Turn airplane mode off.
Log into it fresh.
See if it sticks the next day/time.
I'm pretty much grasping at straws, but worth a try if you haven't already.
More extreme measures are:
Settings / Apps / See all 999 apps
3-dot menu: Show system
Search icon
Search for both WiFi and for Wi-Fi and clear app cache and data for all of them.
Be prepared to possibly have to log back into all Wi-Fi networks you normally do.
Ultra extreme measures:
Factory reset, set the phone back up only with what you really require at first, and don't do much with the phone until you test it with your work's guest Wi-Fi for a couple of days, hopefully without trouble. If it works fine, continue installing apps in smallish groups prioritizing what's most important. Hopefully, everything keeps working or at least has worked at least after the factory reset.
Disregard below.
Any other pertinent details? Rooted? Custom kernel? Even unlocked bootloader and verity and verification disabled? I assume none of these, but just have to ask.
Click to expand...
Click to collapse
Holy wow I think I may have solved it. After reading this (https://source.android.com/devices/tech/connect/wifi-mac-randomization-behavior) documentation, I went to dev options and that toggle for wifi non-persistent randomization was on. I did NOT turn it on, and it is/has been OFF on my pixel 3.
Can you or someone who's reading this check if your dev setting for non-persistent randomization is on or off?
I'm about to go out to lunch, I'll report back if that fixed it and update my op.
If you mean MAC randomisation then mine is off.
My Wi-Fi non-persistent MAC randomization is disabled by default.
Mine MAC randomization is on. I have never touched it.
That could certainly cause your problem. Many captive portals work off MAC addresses.
TonikJDK said:
Mine MAC randomization is on. I have never touched it.
That could certainly cause your problem. Many captive portals work off MAC addresses.
Click to expand...
Click to collapse
Mac randomization in the network settings, or the non-persistent toggle in dev options?
asj0422 said:
Mac randomization in the network settings, or the non-persistent toggle in dev options?
Click to expand...
Click to collapse
Randomization in settings.
asj0422 said:
Holy wow I think I may have solved it. After reading this (https://source.android.com/devices/tech/connect/wifi-mac-randomization-behavior) documentation, I went to dev options and that toggle for wifi non-persistent randomization was on. I did NOT turn it on, and it is/has been OFF on my pixel 3.
Can you or someone who's reading this check if your dev setting for non-persistent randomization is on or off?
I'm about to go out to lunch, I'll report back if that fixed it and update my op.
Click to expand...
Click to collapse
Awesome, looks like maybe you solved it. Glad to hear. For the record, mine is off (by default and off now).

Categories

Resources