PINE64
How to Debug APK on PINE64 via LAN? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Android on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=5)
+--- Thread: How to Debug APK on PINE64 via LAN? (/showthread.php?tid=2675)



How to Debug APK on PINE64 via LAN? - mapleelyse - 11-04-2016

I am a android programmer and I want to debug my app in pine64, but I dont know how to get started, any iedas?

should I just USB Debugging? or LAN Debugging? if I use USB, what kind of the cable should I use and which slots should I plug in?

if I use LAN, how to do it?


RE: How to Debug APK on PINE64 via LAN? - dkryder - 11-04-2016

i can do an adb shell via network but i have not been able to connect via usb so i would also like to hear about usb connection. what do you wish to be able to do in order to debug?


RE: How to Debug APK on PINE64 via LAN? - mapleelyse - 11-04-2016

(11-04-2016, 08:20 PM)dkryder Wrote: i can do an adb shell via network but i have not been able to connect via usb so i would also like to hear about usb connection. what do you wish to be able to do in order to debug?

I want to use break point, and adb as well Smile

network debugging is even better so I dont have to buy a new cable. could u please tell me how you do debugging via network?


RE: How to Debug APK on PINE64 via LAN? - dkryder - 11-05-2016

i do not use the pine64 as an android development platform. when i build/debug it is on a windows 10 laptop with android studio and some unity. what are you trying to accomplish? to connect simply ,
adb connect <ip address> i find using 5.1 7/11/16 build [rooted] serves my needs the best. i think you should try each build until you find one that fits your needs.


RE: How to Debug APK on PINE64 via LAN? - neyron - 11-05-2016

-- open Android Studio, and click 'terminal' on bottom of the screen.
setup connection with device by command:
adb connect device_ip:5555
eg: adb connect 192.168.0.16:5555

and now when you try to 'run app' (shift+f10) you can see your device on the list.

-- another option

enter to shell:
adb shell

and debug via logcat:
logcat | grep package_name
eg: logcat | grep com.example.testapp