ADB support on Pinephone
#1
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-d...=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-d...=heads#L38

This requires configuration, as documented in https://gitlab.com/ubports/development/c...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?...705&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_S...e_Releases
and
https://wiki.pine64.org/wiki/PinePhone_P...e_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?
  Reply
#2
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/pine...k/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
  Reply
#3
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.
  Reply
#4
(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.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Ubuntu Touch vs Standard Pinephone OS MarsColonist 8 5,675 06-26-2023, 07:50 AM
Last Post: gregb49
  PinePhone and PinePhone Pro 20.04 Focal Install and Update c3l@ 0 706 05-12-2023, 05:06 AM
Last Post: c3l@
  Reinstall Ubuntu Touch on PinePhone with 10 drives? Peter Gamma 4 2,807 05-24-2022, 06:42 AM
Last Post: Peter Gamma
  PinePhone UBPorts Edition stuck on PINE64 logo screen Giovanni Iannotti 4 4,879 09-01-2021, 01:20 PM
Last Post: Giovanni Iannotti
  Images won't boot past pinephone logo remington_luger 9 9,549 08-22-2021, 09:56 AM
Last Post: remington_luger
  GhostCloud workaround for PinePhone mark1250 1 3,166 08-12-2021, 02:53 AM
Last Post: Uturn
  Looks like I found a mild reason why UBPorts for pinephone hasn't seen much progress. plainenough 13 17,437 11-21-2020, 06:30 PM
Last Post: Nooblife
  "No network" on new UBPorts community edition pinephone professorsnapper 6 7,841 10-19-2020, 10:27 PM
Last Post: htc_tattoo
  Horrible energy consume on Pinephone/UB-Touch firefox-58 9 11,524 10-15-2020, 12:28 PM
Last Post: plainenough
  Pinephone 3G Bluetooth Working Pretty Well With Latest Mobian Updates rmcg 0 2,471 09-27-2020, 10:22 PM
Last Post: rmcg

Forum Jump:


Users browsing this thread: 1 Guest(s)