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. Cupcake berubah------"Eclair"

alhmdllah berhasil up ke android 2.1 - Eclair
makasih bro tommy sanjayadinata

cupcake berubah....... " Eclair "
        Muh. Fitrah, ST

Send From Android Cupcake

"Indonesian Android Community [id-android]" 

2. How to modify NAND device blocks size from 4096 to 2048 at run-time

       I am having a problem where at run-time, android starts using a
4096 block size, whereas the on-board NAND device is 2048.

When I try to run df command after booting from NAND, just after
android init executes, I get the following output:

# df
/dev: 110764K total, 0K used, 110764K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block
size 4096)
/system: 163840K total, 41612K used, 122228K available (block size
/data: 32768K total, 1972K used, 30796K available (block size 4096)
/cache: 32768K total, 1412K used, 31356K available (block size 4096)

As you can see, the block size being use is 4096 instead of 2048,
which is the block size of my Micron NAND memory used on the gumstix

As as result, I get a D/dalvikvm(  902): DexOpt: incorrect opt magic
number (0xff ff ff ff) error, as soon as it starts to access the /
system partition and starts to process and optimize the dex files.

When I boot the system from MMC and write the data to the NAND, and
when the android linux kernel uses the ramdisk at boot up from NAND,
it uses a block size of 2048.

However, the moment  android init takes over and the /system partition
is accessed, the block size changes to 4096.

Would anyone happen to know which source file I need to look at to
change this to 2048 ?

I am using a TI OMAP 3503 device, which has a Micron NAND device.


# mtd_debug info /dev/mtd0

reports the following:

mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CAP_ROM
mtd.size = 524288 (512K)
mtd.erasesize = 131072 (128K)
mtd.writesize = 2048 (2K)
mtd.oobsize = 64
regions = 0

So this corresponds to a blocksize (aka erasesize) of 128K which is
made up of 64 x 2K pages (aka writesize).

So, I think the NAND settings are correct at the moment, since the
block / erasesize match up (hex values)

Creating 7 MTD partitions on "omap2-nand":
0x000000000000-0x000000080000 : "xloader"
0x000000080000-0x000000240000 : "uboot"
0x000000240000-0x000000280000 : "uboot environment"
0x000000280000-0x000000680000 : "linux"
0x000000680000-0x00000a680000 : "system"
0x00000a680000-0x00000c680000 : "userdata"
0x00000c680000-0x00000e680000 : "cache"

r...@overo:/# cat /proc/mtd
dev:  offset          size     erasesize  name
mtd0: 0x000000000000  00080000 00020000   "xloader"
mtd1: 0x000000080000  001c0000 00020000   "uboot"
mtd2: 0x000000240000  00040000 00020000   "uboot environment"
mtd3: 0x000000280000  00400000 00020000   "linux"
mtd4: 0x000000680000  0a000000 00020000   "system"
mtd5: 0x00000a680000  02000000 00020000   "userdata"
mtd6: 0x00000c680000  02000000 00020000   "cache"

best regards,



3. Non Ascii characters are Displayed as ? and squares and some junk characters

4. Test speed

5. "unable to open database file" after OS upgrade

6. Paket Data untuk Android

7. Short review Milestone Seidio 2600