Is there any risk when disconnecting the android device during debugging?

0

I do not know why, but I was a bit afraid to think that once my ADT is in constant contact with my Device (Nexus 5) when disconnecting during an exchange of information, there may be damage. Is it just like a pendrive when disconnecting abruptly during the passage or exchange of information there are risks? Has anyone fried part of a device like that? Thank you.

    
asked by anonymous 08.08.2014 / 15:40

2 answers

2

TL; DR - Nothing to worry about.

Long answer :

The risks involved in disconnecting the USB port during debugging are exactly the same as what the device is subjected to during everyday use.

In some older USB implementations it was possible to remove a device while the host is still delivering power to the device. This is very rare today.

The main problem with non-eject removal is the fact that some operating systems cache memory in files being handled on removable media. As in practice you are not manipulating files (ADB takes care of 'serializing' and sending your APKs using your own protocol), this risk is non-existent.

On the device side, the operating environment ensures that your new APK package will only be installed if the transfer occurs successfully.

    
08.08.2014 / 16:01
0

I already had the experience of disconnecting an Android device while doing a file transfer and the source of the PC burned on the fly. It happened to me only once, today I do it sort of followed and I never had that problem again. However, it was the simple act of disconnecting the USB and the source burned.

    
08.08.2014 / 16:19