How to disable USB tethering in android

by satish kuma s,n. » Fri, 20 May 2011 09:30:38 GMT

Sponsored Links
 Hi all,

Can you please tell me how we can disable the USB tethering in



Re: How to disable USB tethering in android

by Mark Murphy » Fri, 20 May 2011 18:07:27 GMT


This is not possible from an SDK application, sorry.

If your interest is in creating custom firmware that has USB tethering
disabled, please visit  and use the support
resources found there.

Mark Murphy (a Commons Guy)  |  | 

Android App Developer Books: 


Sponsored Links

Other Threads

1. Elliptic Curve cryptography in Androi

Hey, I've posted this on a few forums and have been unable to get any
help so wondering if anyone here would be able to help me.

I'm trying to use BouncyCastle with android to implement ECDH and EL
Gamal. I've added the bouncycastle jar file (bcprov-jdk16-144.jar) and
written some code that works with my computers jvm however when I try
and port it to my android application it throws: KeyPairGenerator ECDH
implementation not found

A sample of the code is:

org.bouncycastle.jce.provider.BouncyCastleProvider()); keyGen =
("ECDH", "BC");
ECGenParameterSpec ecSpec = new ECGenParameterSpec("prime192v1");
keyGen.initialize(ecSpec, SecureRandom.getInstance("SHA1PRNG"));
KeyPair pair = keyGen.generateKeyPair();
PublicKey pubk = pair.getPublic();
PrivateKey prik = pair.getPrivate();

I then wrote a simple program to see what encryption algorithms are
available and ran it on my android emulator and on my computers jvm
the code was:

Set<Provider.Service> rar = new
    Iterator<Provider.Service> ir = rar.iterator();

On android I do not get any of the EC algorithms while ran normally
my computer it's fine.

I'm guessing this is caused by the fact that a version of bouncy
castle is used by Android and there are package name conflicts so I
tried to add edit the bouncy castle source code to make it work under
a different name. This hasn't worked either though and I keep getting
the the error "Conversion to Dalvik format failed: Unable to execute
dex: null".

Is there anyway I can change the bouncy castle libraries to get them
working fully on Android? If not I notice that android has classes for
ECKeys so is there any way I can create ECKeys without using a
KeyPairGenerator in android?


2. Help me!! The fb0 no space left on device..

When I enter the android kernel console, I type :

cat 3.bmp > dev/graphics/fb0 error!!
write: No space left on device

After this, there is nothing showed on my lcd.

Could someone tell me what does this error message mean and how to
solve please??

My all debug message :

Please help me !!


3. Problem reading from files when using within service.

4. change the imageview dynamically in the listview

5. can write youtube api on android?

6. PackageManage: Couldn't copy package file to temp file.

7. Android 2.0 Google Maps Navigation and app use of turn-by-turn directions?