How to safely disconnect the phone when you connect it for debugging through Eclipse?

Is there any safe way or just need to connect the USB cable directly? I have not received a solution anywhere. Sorry if my doubts are stupid as I am new to Android Development and just bought my new expensive Android phone. Therefore, I do not want any damage or damage to my phone.

When I connected my phone, it says: “USB debugging is connected” and “Connected in multimedia transmission mode”. How to disconnect? please corporate. Thanks!

+4
source share
2 answers

Change the USB settings on the phone from “mass storage device” to “charge”; this will stop the phone from automatics on the PC. This will not affect adb, which uses a different mechanism to talk to the phone. Then you can just pull out the plug whenever you want.

(If you leave it in “storage device” mode, you can damage the file system on the SD card when you pull out the plug. In addition, the application you are working on will not be able to access the SD card anyway.)

+3
source

as David David said, save your phone in charging mode (and not in the media storage) to avoid data loss on the SD card and save USB debugging information On . Subsequently, you can simply connect / disconnect the phone without any worries.

0
source

Source: https://habr.com/ru/post/1399626/


All Articles