DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 7 of 7

Thread: Disable USB debugging when screen is locked?

  1. n00b.
    raidzero's Avatar
    Member #
    59181
    Join Date
    Apr 2010
    Location
    Denver, CO
    Posts
    1,054
    Liked
    4 times
    Twitter
    raidzero_
    Phone
    Samsung Nexus S 4G
    DroidForums.net Developer
    DroidForums.net Theme Developer
    Premium Member
    #1

    Disable USB debugging when screen is locked?

    I just made a shocking discovery. Eclair stores its exchange credentials in plaintext in an sqlite database on the device. If USB debugging is on, all one has to do to get the users exchange credentials is pull the file and READ IT whether or not the phone is locked.

    I am wondering if there is a way to disable USB debugging while the device is locked?

    "Success is going from failure to failure without loss of enthusiasm" - Winston Churchill
  2.  
     
     
     
  3. Developer
    gflam's Avatar
    Member #
    77717
    Join Date
    Jun 2010
    Location
    Jersey
    Posts
    1,884
    Liked
    41 times
    Twitter
    @init2winitapps
    Phone
    Moto Droid/HTC Evo 3D
    DroidForums.net Developer
    DroidForums.net Theme Developer
    #2
    There's an app called tasker that might be able to do this
    You can set the phone to do almost anything based on time location states and events such as device shut down
    Here's the link
    Tasker for Android
  4. Droid
    phatneff's Avatar
    Member #
    50490
    Join Date
    Mar 2010
    Posts
    97
    Phone
    Motorola Droid
    #3
    I came to this forum to ask about USB Debugging. Because you guys are talking about it here, can someone tell me what the point of it is?? I never know if I'm supposed to disable it or not when I plug in the phone.
  5. Developer
    gflam's Avatar
    Member #
    77717
    Join Date
    Jun 2010
    Location
    Jersey
    Posts
    1,884
    Liked
    41 times
    Twitter
    @init2winitapps
    Phone
    Moto Droid/HTC Evo 3D
    DroidForums.net Developer
    DroidForums.net Theme Developer
    #4
    When you add files to your phone it's supposed to debug the and make them work more flawlessly on your phone i leave mine on
  6. n00b.
    raidzero's Avatar
    Member #
    59181
    Join Date
    Apr 2010
    Location
    Denver, CO
    Posts
    1,054
    Liked
    4 times
    Twitter
    raidzero_
    Phone
    Samsung Nexus S 4G
    DroidForums.net Developer
    DroidForums.net Theme Developer
    Premium Member
    #5
    USB debugging is used to provide access to your phone through the USB port. This means the phone's filesystem can be manipulated via USB. I suggest keeping this feature off if you do not want it, purely for security purposes.

    "Success is going from failure to failure without loss of enthusiasm" - Winston Churchill
  7. Senior Droid
    jacobrv's Avatar
    Member #
    28472
    Join Date
    Jan 2010
    Posts
    100
    Phone
    Droid
    #6
    Coming from somebody (me) who has actually used USB debugging and ADB, and written an android application:

    Having USB debugging enabled allows your phone to accept connections from ADB (Android Debug Bridge). ADB is a tool that you can run on your computer to connect to a terminal on your phone via USB. This allows you to type commands on your computer and have them run on your phone. This can also be done with scripts. For example, when compiling an android application in Eclipse (a software development suite) a script will run that will send the newly compiled application to your phone and launch it automatically.

    So, if you are developing an android application or need to use ADB for some other reason, turn USB debugging on. Otherwise leave it off. It does NOT debug your files that you put on. As for the phones filesystem, raidzero was right but I don't think it was clear enough. You can access the SD card without USB debugging, but not the internal storage. With ADB (which requires USB debugging) you can send a command to pull a file off the phone's internal storage but you can not see the internal storage like it was a thumbdrive. USB debugging is meant for people who know what it is. If you have to ask, you should turn it off.
    Last edited by jacobrv; 07-11-2010 at 04:02 AM.
  8. n00b.
    raidzero's Avatar
    Member #
    59181
    Join Date
    Apr 2010
    Location
    Denver, CO
    Posts
    1,054
    Liked
    4 times
    Twitter
    raidzero_
    Phone
    Samsung Nexus S 4G
    DroidForums.net Developer
    DroidForums.net Theme Developer
    Premium Member
    #7
    Quote Originally Posted by jacobrv View Post
    Coming from somebody (me) who has actually used USB debugging and ADB, and written an android application:

    Having USB debugging enabled allows your phone to accept connections from ADB (Android Debug Bridge). ADB is a tool that you can run on your computer to connect to a terminal on your phone via USB. This allows you to type commands on your computer and have them run on your phone. This can also be done with scripts. For example, when compiling an android application in Eclipse (a software development suite) a script will run that will send the newly compiled application to your phone and launch it automatically.

    So, if you are developing an android application or need to use ADB for some other reason, turn USB debugging on. Otherwise leave it off. It does NOT debug your files that you put on. As for the phones filesystem, raidzero was right but I don't think it was clear enough. You can access the SD card without USB debugging, but not the internal storage. With ADB (which requires USB debugging) you can send a command to pull a file off the phone's internal storage but you can not see the internal storage like it was a thumbdrive. USB debugging is meant for people who know what it is. If you have to ask, you should turn it off.
    Maybe not like a SD card exactly. But with ddms you can browse the filesystem and directly manipulate files.. that's how I found the sqlite DB in he first place..


    "Success is going from failure to failure without loss of enthusiasm" - Winston Churchill

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. is there a way to disable the on screen zoom and
    By xythil in forum Android General Discussions
    Replies: 1
    Last Post: 04-13-2010, 01:59 PM
  2. Droid Won't Return from Locked State (Screen Stays Blank)
    By badger98 in forum Android Tech Support
    Replies: 6
    Last Post: 03-08-2010, 12:45 PM
  3. How can you disable the USB Debugging notification sound?
    By krazykarl in forum Android Tech Support
    Replies: 0
    Last Post: 02-19-2010, 02:47 PM
  4. control music from locked screen?
    By ujhony03 in forum Android General Discussions
    Replies: 8
    Last Post: 12-17-2009, 01:49 PM
  5. Locked screen prior/during to phone call
    By lippstuh in forum Android General Discussions
    Replies: 1
    Last Post: 12-15-2009, 04:39 AM

Search tags for this page

enable usb debugging on locked phone

,
how to enable usb debugged when phone is locked
,
how to enable usb debugging in a locked phone
,

how to enable usb debugging on locked phone

,
how to turn on debugging if the phone is locked
,

how to turn on usb debugging without screen

,
locked mini s3 enabled usb debugging
,

screen locked and unable to set debug on

,

turn on usb debugging android while locked

,
usb debugging not on phone locked
Click on a term to search our site for related topics.
Find us on Google+