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
android.

Regards
Satish

-- 



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  http://source.android.com  and use the support
resources found there.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/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:

java.security.NoSuchAlgorithmException: KeyPairGenerator ECDH
implementation not found

A sample of the code is:

Security.addProvider(new
org.bouncycastle.jce.provider.BouncyCastleProvider());
java.security.KeyPairGenerator keyGen =
org.bouncycastle.jce.provider.asymmetric.ec.KeyPairGenerator.getInstance
("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
org.bouncycastle.jce.provider.BouncyCastleProvider().getServices();
    Iterator<Provider.Service> ir = rar.iterator();
    while(ir.hasNext())
        System.out.println(ir.next().getAlgorithm());


On android I do not get any of the EC algorithms while ran normally
on
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?

Thanks

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 : http://pastebin.com/m510035c5

Please help me !!

--
Michael

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?