Closed DimaK-tracxpoint closed 2 years ago
a quick glance at https://developer.android.com/guide/topics/connectivity/usb/host implies that it is likely possible, and could be a simple task, for somebody familiar with the code
but once its in MSD mode, you may have difficulty trying to image the entire emmc, due to normal android security, you would need to either use noobs on a cm (eww) or have the android device rooted, enless the same usb api lets you hijack MSD devices, and access them directly...
well, i solved this issue by accident, from the totally wrong direction https://github.com/librerpi/rpi-tools/tree/master/webusbboot this code uses webusb to flash an rpi4 (or cm4) over usb
i have successfully flashed my rpi4 eeprom from desktop chromium using this code
and if i power the rpi4 from the gpio header, and use an OTG adapter cable, i can run the exact same JS on my phone, and shove msd/start4.elf
over, putting it into MSD mode
No plans for an official Android port so closing.
Did anybody try to port this service to Android?