domingo, 7 de maio de 2017

ADB DEBUGGING TOOL

Android Debugging Tool https://developer.android.com/studio/command-line/adb.html:

Adb shell wm overscan 0,42,0,20 (neste exemplo, reduz a tela em 42 px na parte de cima e 20 px na parte de baixo)

http://www.androidpit.com.br/forum/695499/sony-xperia-z3-problema-na-barra-superior-de-notificacoes/page/3

Para executar o comando acima, o android deve estar conectado a este computador anteriormente:

Enable adb debugging on your device
To use adb with a device connected over USB, you must enable USB debugging in the device system settings, under Developer options.

On Android 4.2 and higher, the Developer options screen is hidden by default. To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom.

On some devices, the Developer options screen might be located or named differently.

You can now connect your device with USB. You can verify that your device is connected by executing adb devices from the android_sdk/platform-tools/ directory. If connected, you'll see the device name listed as a "device."

Note: When you connect a device running Android 4.2.2 or higher, the system shows a dialog asking whether to accept an RSA key that allows debugging through this computer. This security mechanism protects user devices because it ensures that USB debugging and other adb commands cannot be executed unless you're able to unlock the device and acknowledge the dialog.

For more information about connecting to a device over USB, read Run Apps on a Hardware Device. https://developer.android.com/studio/run/device.html

*** Overscan:

Allows adding margins to display for greater control over the screen – useful when trying to emulate small screen (phone) on a tablet.

adb shell wm overscan a,b,c,d
a -> left edge margin
b -> top edge margin
c -> right edge margin
d -> bottom edge margin


adb shell wm size reset -> reset overscan to original values
http://www.xanh.co.uk/control-device-display-with-wm/


Driver D6633 baixado de https://developer.sonymobile.com/downloads/drivers/xperia-z3-driver/
C:\$Tempdown\Xperia_Z3_driver\Xperia_Z3_driver

Adb baixado em C:\$Tempdown\platform-tools-latest-windows

Nenhum comentário:

Postar um comentário