Re: [android-developers] Re: Disabling the USB port?

2010-09-14 Thread Mark Murphy
On Mon, Sep 13, 2010 at 11:56 PM, Tez earlencefe...@gmail.com wrote:
 Mark,
 There is a adb_enabled value in Settings.Secure. I think this is
 related to USB debugging.

Yes, you're correct. I was hunting for USB and that one didn't catch
my eye. My apologies.

Hence, if you are rolling your own firmware, or work for a device
manufacturer and can sign your apps with the system signing key, you
can stop ADB. And you can stop USB mass storage. You cannot stop
anything else that the manufacturer might have added, though (e.g.,
external keyboard support), short of modifying the firmware itself.

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Disabling the USB port?

2010-09-13 Thread Mark Murphy
On Mon, Sep 13, 2010 at 8:59 AM, Tez earlencefe...@gmail.com wrote:
 Is there any other way that can block the USB port so that no data is
 transferred?

I sure hope not.

 Where are the corresponding source files?

I have no idea. I work at the SDK level, and I know there's nothing
much in the SDK related to USB.

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

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Disabling the USB port?

2010-09-13 Thread Mark Murphy
On Mon, Sep 13, 2010 at 12:55 PM, Tez earlencefe...@gmail.com wrote:
 If I understand you correctly, if I turn off USB debugging, Even if I
 connect the phone via cable, I won't be able to run commands such as
 adb etc.
 Is this correct?

Yes.

 If so, how is USB debugging turned off?

The user turns it off via the appropriate settings screen. I don't see
where it is exposed via Settings.System, or even Settings.Secure.

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

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Disabling the USB port?

2010-09-13 Thread Robert Craig
compile your own version of adbd that doesn't support said features. or just
don't include  adbd at all.

On Mon, Sep 13, 2010 at 11:56 PM, Tez earlencefe...@gmail.com wrote:

  Mark,
 There is a adb_enabled value in Settings.Secure. I think this is
 related to USB debugging.

 Niko20,
 No, I don't work for ATT

 -E

 On Sep 13, 10:43 pm, niko20 nikolatesl...@yahoo.com wrote:
  Tez, do you work for ATT?
 
  On Sep 13, 12:35 pm, Mark Murphy mmur...@commonsware.com wrote:
 
   On Mon, Sep 13, 2010 at 12:55 PM, Tez earlencefe...@gmail.com wrote:
If I understand you correctly, if I turn off USB debugging, Even if I
connect the phone via cable, I won't be able to run commands such as
adb etc.
Is this correct?
 
   Yes.
 
If so, how is USB debugging turned off?
 
   The user turns it off via the appropriate settings screen. I don't see
   where it is exposed via Settings.System, or even Settings.Secure.
 
   --
   Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
   Android Training...At Your Office:http://commonsware.com/training

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en