Page 1 of 1

How can I debug app via adb on NanoPi M4?

Posted: Wed Jun 26, 2019 7:36 am
by dmvictor
I have a NanoPi M4 with eMMC module(Android 8.1), I need to debug my app on the board via adb. I have tried adb over TCP and adb over USB, neither of one worked.

For adb over TCP, I configured the network to make my desktop (Windows 10) and NanoPi M4 under the same private LAN. I followed the step in this answer(*), but it seems NanoPi M4 is not rooted, I could not get the superuser permission to start the adbd.

For adb over USB, I tried the way in this answer(**). I powered the board using Pin4 & Pin6 of the 40-pin GPIO1 header, and tried to start adb server listening on USB Type-C. My desktop could not find the device when I input "adb usb" or "adb devices" command.

I was wondering if I need to install the driver for NanoPi M4 on my desktop, I could not find the driver so far. Can somebody share how to debug an app via adb on NanoPi M4?

*: ... b-over-tcp
**: ... roid-board

Re: How can I debug app via adb on NanoPi M4?

Posted: Mon Jul 01, 2019 6:12 am
by v8dave
If you have Android Studio installed, the necessary USB driver will be installed with it. When you plug in your M4 it should automatically detect it and load the USB driver. Now it should appear under ADB devices when you type this from a command line.

Check also that the USB debugging is enabled in the Android settings for the M4?

If this does not work, do you have an Android phone you could test to see that this shows up with ADB devices?

Re: How can I debug app via adb on NanoPi M4?

Posted: Tue Jul 02, 2019 6:39 am
by dmvictor
Actually the problem is the USB hub I used to connect M4 is unplugged from the PC ^^"
Thanks for your reply :)