DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1st February 2016
jkl jkl is offline
dat guy
 
Join Date: Feb 2014
Posts: 98
Default Flashing Android devices with OpenBSD?

Hi,

considering I'd like to use my OpenBSD machine for flashing my Android smartphone: Is there a "Google ADB" driver for OpenBSD?
Reply With Quote
  #2   (View Single Post)  
Old 1st February 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,416
Default

The Android Debug Bridge has been ported. I don't believe the complete set of functions are available; you'd have to test your particular uses.

devel/adb
Reply With Quote
  #3   (View Single Post)  
Old 1st February 2016
jkl jkl is offline
dat guy
 
Join Date: Feb 2014
Posts: 98
Default

Well, that's the userland application; I was wondering if OpenBSD actually recognizes a device in "bootloader mode".
Reply With Quote
  #4   (View Single Post)  
Old 1st February 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,416
Default

I doubt it. There are only three Android devices even listed in usbdevs to begin with.

The application was discussed on ports@ here.
Reply With Quote
  #5   (View Single Post)  
Old 1st February 2016
jkl jkl is offline
dat guy
 
Join Date: Feb 2014
Posts: 98
Default

Oh, OK. Thank you though.
Reply With Quote
  #6   (View Single Post)  
Old 3rd February 2016
joekiser joekiser is offline
The World is Yours.
 
Join Date: May 2008
Posts: 50
Default

You can use adb to send/retrieve files from an Android device, but you would still need fastboot to flash the rom.
Reply With Quote
  #7   (View Single Post)  
Old 3rd February 2016
jkl jkl is offline
dat guy
 
Join Date: Feb 2014
Posts: 98
Default

adb alone requires that the device is actually recognized though. I could live with having to copy the ROM zip files via adb and use TWRP to flash them, but I need to get there first.
Reply With Quote
  #8   (View Single Post)  
Old 3rd February 2016
joekiser joekiser is offline
The World is Yours.
 
Join Date: May 2008
Posts: 50
Default

OK, thought you were flashing a stock device. I've used adb successfully on OpenBSD in the past. Just to be sure, USB debugging is already enabled on the phone?
Reply With Quote
  #9   (View Single Post)  
Old 3rd February 2016
jkl jkl is offline
dat guy
 
Join Date: Feb 2014
Posts: 98
Default

Yes, it is.
Reply With Quote
Old 2 Weeks Ago
bradley bradley is offline
Fdisk Soldier
 
Join Date: Jul 2020
Posts: 50
Default

There is adb available on OpenBSD and I noticed that android-tools-fastboot is available for FreeBSD.

On the ports page it says: "While tested mainly on FreeBSD and DragonFly it may also work on
NetBSD and OpenBSD which use reference libusb implementation."

Did anyone maybe test it on OpenBSD already?

If someone is not familiar with these tools, here is a short summary: "ADB (Android Debug Bridge Utility) is a command-line development tool that is used to communicate with your Android device."
"Fastboot is generally a diagnostic tool that is required to modify the Android file system in Bootloader mode. The tool only works if your Android phone is in fastboot/bootloader mode. It sends the command to the bootloader to install or modify the firmware on the Android file system."
Reply With Quote
Old 2 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,416
Default

There was a recent thread on the ports@ mailing list discussing adb. The short version is that it is outdated, unmaintained, and unusable.

https://marc.info/?t=163526771600001&r=1&w=2
Reply With Quote
Old 2 Weeks Ago
bradley bradley is offline
Fdisk Soldier
 
Join Date: Jul 2020
Posts: 50
Default

Thank you for the hint. Thinking about a workaround, if usb passthrough to a VM would work (I saw someone mentioning it on a custom kernel), it might be possible to use Linux or FreeBSD in a VM with those tools.
Otherwise, if it's only about transfering files (in that thread simple-mtpfs is mentioned), also syncthing might get the work done.
Reply With Quote
Old 2 Weeks Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,416
Default

I use simple-mtpfs when files I wish to transfer are in storage locations inaccessible from Airdroid.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any BSD operating system running on the so called "Android Mini PC MK802" ? bsdnotbdsm General Hardware 20 25th July 2013 02:35 AM
OpenBSD OpenBSD developer wants USB devices ocicat News 0 9th November 2010 01:57 AM
Google released Android source code graudeejs Off-Topic 1 22nd October 2008 10:02 PM
Flashing BIOS from freebsd mc_i2020 FreeBSD General 7 28th July 2008 10:11 PM
Automounting USB devices with HAL/KDE vinegaroon FreeBSD General 1 13th June 2008 02:16 PM


All times are GMT. The time now is 05:47 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick