Eu gostaria de saber se é possível conectar meu smartphone a um PC via USB sem carregá-lo?
Seria muito útil ser capaz de desativar o carregamento (mas ainda permitir a tetura USB, depuração do ADB, transferência de arquivos etc.).
Muito obrigado.
Eu gostaria de saber se é possível conectar meu smartphone a um PC via USB sem carregá-lo?
Seria muito útil ser capaz de desativar o carregamento (mas ainda permitir a tetura USB, depuração do ADB, transferência de arquivos etc.).
Muito obrigado.
I would like to know if is it possible to connect my smartphone to a pc via USB without charging it?
It would be very useful to be able to disable charging (but still allow USB tethering, ADB debugging, file transfer etc).
Thanks a lot.
Você pode tentar essas soluções, que resolver diretamente o que você está tentando alcançar (pode não funcionar em todos os dispositivos)
.adb shell echo 0 & gt; / sys / classe / power_supply / bateria / charging_enabled (1 para desativar; 0 para ativar)
adb setprop-persist
desabilitar o carregamento USB
Se esses métodos não funcionarem ou você quiser explorar mais possibilidades, consulte os métodos abaixo, que podem oferecer pistas
no seu dispositivo:
como sugerido por Firelord . Esteja ciente de que você precisaria de tempo para identificar o arquivo certo para alterar os valores para enganar o sistema. O nome de arquivos relacionados a isso aparentemente não é padronizado. Uma das respostas no link é minha, então estou falando da experiência.
Você também pode ver isso por outra maneira que foi feito https://stackoverflow.com/Questions/11698979/How-to-Change-Mode-USB-Connect-Mode-PoCrega-only
no seu PC: Você não mencionou sua configuração do PC, mas estes foram tentados com sucesso adicionar podem dar a você ponteiros
https: // serverfault. COM / PERGUNTAS / 8130 / Configurar-USB-porta-somente-ACT-AS-POWER-CHARGER
https: // stackoverflow. COM / PERGUNTAS / 11698979 / How-to-Change-Android-USB-Connect-Mode-modo para carregar - apenas
You can try these solutions, which directly address what you are trying to achieve (may not work on all devices)
Adb shell echo 0 > /sys/class/power_supply/battery/charging_enabled (1 to disable; 0 to enable)
adb setprop-persist
Disable USB charging
If these methods don't work or you want to explore more possibilities, see methods below, which can offer you clues
On your Device:
As suggested by Firelord. Be aware that you would need time in identifying the right file to change values to fool the system. Naming of files related to this is apparently not standardised. One of the answers in the link is mine so I am talking from experience.
You could also see this for another way it has been done https://stackoverflow.com/questions/11698979/how-to-change-android-usb-connect-mode-to-charge-only
On your PC: You have not mentioned your PC configuration, but these have been successfully tried add may give you pointers
https://serverfault.com/questions/8130/configure-usb-port-to-only-act-as-power-source-charger
https://stackoverflow.com/questions/11698979/how-to-change-android-usb-connect-mode-to-charge-only
yup, você deve ser capaz de usar o comando adb. Ou use um aplicativo que acabei de lançar para desativar o carregamento USB no telefone Android. Não foi testado no Samsung J7 embora.
https://play.google. COM / Loja / Apps / detalhes? ID = org.bramantya.stopcarging & amp; hl = en
Precisa de acesso root.
Yup, you should be able to use the adb command. Or use an app I just released to disable usb charging in Android phone. Has not been tested on Samsung j7 though.
https://play.google.com/store/apps/details?id=org.bramantya.stopcharging&hl=en
It needs root access.
© 2022 pergunte.org All Rights Reserved. Casa de perguntas e respostas todos os direitos reservados