Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,628 Members 39,734 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to disable Tethering on a S3

Tip us?
 
Blaauwberg
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2010
Question [Q] How to disable Tethering on a S3

Hi
Please can anyone help me to DISABLE tethering on the S3. I want all types: USB, WiFi hotspot and Bluetooth Tethering disabled but for the mobile still to be able to use data for other apps like WhatsApp etc. Its to disable access to the internet for a minor (I have removed the browser applications already but there are computers in the house that can be connected via these other routes and the kids these days are sharp ).
Any help would be appreciated.
Thanks
Mark
 
Rahmani2011
Old
#2  
Member
Thanks Meter 5
Posts: 43
Join Date: Mar 2013
Location: Coventry
Just go to the notification panel and disable them from there i know this is not that helpful but i tried to be

Sent from my GT-I9300 using XDA Premium 4 mobile app
 
dxppxd
Old
#3  
Senior Member
Thanks Meter 183
Posts: 546
Join Date: Feb 2012
With a rooted phone, you would have to decompile system/settings.apk using apktool or similar (in a pc with the android sdk installed).

Edit its xml to remove, just delete, the thetering and portable hotspot menu, and then put the modified settings.apk back into the phone.

That would make it so they cannot activate it via the settings menu, but the phone would still be able to by using 3rd party apps.

Look into decompiling and compiling system apps with framework and apktool. Its a lot to put in the post, but there are great tutorials in the xda community. It's time consuming, but once you get the hang of it, really easy.
The Following User Says Thank You to dxppxd For This Useful Post: [ Click to Expand ]
 
Blaauwberg
Old
#4  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2010
Default Re. How to disable tethering

Quote:
Originally Posted by dxppxd View Post
With a rooted phone, you would have to decompile system/settings.apk using apktool or similar (in a pc with the android sdk installed).

Edit its xml to remove, just delete, the thetering and portable hotspot menu, and then put the modified settings.apk back into the phone.

That would make it so they cannot activate it via the settings menu, but the phone would still be able to by using 3rd party apps.

Look into decompiling and compiling system apps with framework and apktool. Its a lot to put in the post, but there are great tutorials in the xda community. It's time consuming, but once you get the hang of it, really easy.
Thank you dxppxd, that's exactly what I wanted to know. I am familiar with the apktools method of modifying apk files and my phone is rooted.
Any other suggestions are welcome too.
 
Blaauwberg
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Jul 2010
Quote:
Originally Posted by Blaauwberg View Post
Thank you dxppxd, that's exactly what I wanted to know. I am familiar with the apktools method of modifying apk files and my phone is rooted.
Any other suggestions are welcome too.
Hi dxppxd, there is no Settings.apk under /system. Any idea where else it could be. Also, is the xml file in the res directory and is it also called settings.xml?

The version of android is 4.1.2 and is stock.
Your help is appreciated.
R
Mark
 
dxppxd
Old
(Last edited by dxppxd; 27th May 2014 at 10:52 PM.)
#6  
Senior Member
Thanks Meter 183
Posts: 546
Join Date: Feb 2012
Quote:
Originally Posted by Blaauwberg View Post
Hi dxppxd, there is no Settings.apk under /system. Any idea where else it could be. Also, is the xml file in the res directory and is it also called settings.xml?

The version of android is 4.1.2 and is stock.
Your help is appreciated.
R
Mark
Edit: Ooops! It's system/app/settings.apk my bad!

Also, you probably have an odexed rom. I suggest installing a stock deodexed rom so you can decompile settings.apk

You can get one in the roms section, I remember 4.1.2 stock deodexed versions of wanamlite or archidroid roms.

I'll look into which xml to edit, don't really remember. It's usually one called layout or res_layout or something like that.

There was a tut for modding the settings layout, ill look for it when I get home and post the link, was very helpful a long time ago.

Edit2: this is the tutorial. It was made for moding android 2.3.6 settings. But a lot of things still apply. It gives a very good idea on what each section does, and how the layout is made and you're only removing stuff, not adding titles or sections:

http://forum.xda-developers.com/show...php?p=24317850

Good luck.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Monitor What Your Phone’s Camera Sees with Android Wear

Having a smart device strapped to your wrist certainly has its merits. A … more

Mod Lets You Have Stereo Speakers on Your Sony Xperia Z1 (Sort Of)

The stereo speakers onthe Sony Xperia Z2areprobably a relatively large … more

Give Your Screen Some Color with HexaTime Live Wallpaper

We don’t often cover very many live wallpapers here on the XDA Portal. You may … more

Android Wear App Review: Command Google Now with Commandr – XDA Developer TV

OK Google. Make Me a sandwich. How many times have you … more