How to set a tethered Wi-Fi connection (tethered to another phone via Android personal hotspot) as "metered" connection


Question

I have a number of apps set to "Download on Wi-Fi Only" on Android. But the moment I tether, the phone considers itself on Wi-Fi, even if the upstream device is a metered 3G/LTE connection.



Under Windows 10, I can declare a given Wi-Fi connection to be "Metered", and thus save data usage. Is there an equivalent on Android? Setting the tethered phone to "Data saver" is a partial solution only.


Answer

There is a rather hidden feature, that will let you achieve this:



This option is found under Settings > Data usage (Wireless and Networks).




  • Tap on the three dots in the top right corner, and press "Mobile Hotspots." (In android 4.3) In later versions of android the similar option is "Network restrictions" > Metered connections



enter image description here



Next you'll see a list of saved wireless networks, and you can check the ones which are mobile hotspots.



enter image description here



Edit



I have included the screenshots for Android 7, since interface and options are different from Android 4.3 above:



enter image description here



Such that the options are found under Settings > Data usage (Wi-Fi) > Network restrictions > Metered connections



enter image description here



In this way Android applies the same data restrictions as it does with "Data connections" so no data hogging.



Update



Other devices like Huawei have this setting hidden but can be also enable using :



After setting up adb, follow this proceedure to set a metered wi-fi network.





  • In a command prompt or terminal, execute the following command: adb
    shell


  • Type the following command into the command prompt or terminal to get a list of all saved WiFi networks: cmd netpolicy list
    wifi-networks


  • You’ll be given a list of saved WiFi networks with a true/false boolean value. True = metered & False = non-metered.


  • So from here, you can enter the following command in a command prompt or terminal to change the setting: cmd netpolicy set
    metered-network Wireless true

    (In this case the SSID is “Wireless”)


  • You can always revert the setting to false if you want to switch it back to a non-metered network.





Hope this helps


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes