PINE64
ADB support on Pinephone - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: UBPorts on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=125)
+---- Thread: ADB support on Pinephone (/showthread.php?tid=18750)



ADB support on Pinephone - Sumwun - 09-26-2023

Hello,

I have been trying to get adb to work on my Pinephone. The current UBPorts build ships adbd:
    https://gitlab.com/ook37/pinephone-pro-debos/-/blob/master/pine64-common-focal.yaml?ref_type=heads#L31

My understanding is, that "Developer mode" and switching to/back from it is taken care od by usb-moded:
    https://gitlab.com/ook37/pinephone-pro-debos/-/blob/master/pine64-common-focal.yaml?ref_type=heads#L38

This requires configuration, as documented in https://gitlab.com/ubports/development/core/packaging/usb-moded/-/wikis/home

My current problem is to find these configuration values for the PinePhone(s). Ideally for all editions.
I have tried looking through the forums, this is what I found:

* https://forum.pine64.org/showthread.php?tid=16087
This thread seems to end with "you shouldn't want adb anyway", but that doesn't really answer my problem: I do want to enable adb, and I think I should be able to.

I thought I might be able to pull this configuration from an AOSP image, since it seemed like the PinePhone Pro came with one pre-installed.
I have looked for it in this thread: https://forum.pine64.org/showthread.php?tid=15705&page=2 but as mentioned in the last message, the links are now dead.

I have also looked for it in both
https://wiki.pine64.org/wiki/PinePhone_Software_Releases
and
https://wiki.pine64.org/wiki/PinePhone_Pro_Software_Releases

Neither page seems to have it. pine64-pinephone-plamo-beta-factorytest.img.xz is a postmarketOS image

So my questions are:
- Where can I look for these configuration values?
- Does anyone have an AOSP image for any of the PinePhones?


RE: ADB support on Pinephone - Sumwun - 09-26-2023

Replying to my own post after discussing this with the UBports PinePhone porting community:

ADB is not supported on the PinePhone itself, mostly because there is no need to support it.
It is very useful for Android-based systems, which includes the Halium-based ports, but the PinePhone are native Linux, so it's not necessary in their case.

The PinePhone port of Ubuntu Touch does use ADB, but not for the main Operating System: it is used to communicate with and update the *modem*'s firmware, not the main OS.

(The modem firmware can be found here: https://github.com/the-modem-distro/pinephone_modem_sdk/releases)

ADB is not necessary to easily deploy apps to the PinePhone via clickable, as clickable can use SSH instead: clickable --ssh phone_ip_address

To deploy .deb packages, we use https://github.com/ubports/crossbuilder


RE: ADB support on Pinephone - Kevin Kofler - 09-26-2023

But why do you absolutely want to use the Android debugger on a non-Android phone? There is nothing you can do with ADB that you cannot do with SSH or similar.


RE: ADB support on Pinephone - Sumwun - 09-27-2023

(09-26-2023, 05:56 PM)Kevin Kofler Wrote: But why do you absolutely want to use the Android debugger on a non-Android phone? There is nothing you can do with ADB that you cannot do with SSH or similar.

I don't anymore: that's why I replied to my own post.

It's just that it was unclear to me that clickable supported SSH for deployment.