GrapheneOS / grapheneos.org

Main website servers
https://grapheneos.org/
MIT License
419 stars 119 forks source link

successful WebUSB install in currently unsupported Flatpak Chromium #890

Open Renner0E opened 4 months ago

Renner0E commented 4 months ago

Hey,

I know that the GrapheneOS WebUSB installer does not support flatpak browsers.

You should avoid Flatpak and Snap versions of browsers, as they're known to cause issues during the installation process.

But I still managed to successfully install GrapheneOS on a Pixel 7a using the (as of now) unofficial flatpak from flathub I did not change any permissions on the flatpak.

Host OS: Fedora Kinoite 39 (also known as Fedora Atomic Desktop, Silverblue, Kinoite etc.) using a custom OS image from https://universal-blue.org/ which preinstalls the needed udev rules.

relevant HOST packages: $ rpm -qa | grep -E "android|udev"

libgudev-238-2.fc39.x86_64
systemd-udev-254.9-1.fc39.x86_64
system-config-printer-udev-1.5.18-5.fc39.x86_64
ublue-os-udev-rules-0.7-1.fc39.noarch
solaar-udev-1.1.10-1.fc39.noarch
openrgb-udev-rules-0.9-2.fc39.noarch
android-udev-rules-20230310-1.fc39.noarch
oversteer-udev-0.0.git.336.75dd5cd5-1.fc39.noarch

I didn't test the flatpaks of Edge, Brave and Chrome but maybe consider removing the warning regarding the flatpak versions. Or even better explicitly stating that the flatpak versions work.

If that's OK I'll PR it in a couple days.

thestinger commented 4 months ago

Each supported browser will need to be tested.

Renner0E commented 4 months ago

Alright then, I'll test them in the next couple days. I'll let you know.

Renner0E commented 4 months ago

I tested a bunch and tldr Edge, Brave and stock Chromium work. Google Chrome and Google Chrome dev do not work.

Flatpak Browser from Flathub unlock Bootloader Download Release Flash release Lock Bootloader Remove non-stock key Install stock OS
Brave
Chromium
Google Chrome
Google Chrome Dev
Microsoft Edge

I tested flashing GrapheneOS, wiping the non-stock key and installing the stock OS from Google with their web flashing tool. On Chrome/dev during the flashing process the last reboot times out and you dont get to the part with fastbootd. I did simple troubleshooting steps like re-plugging the shipped USB-C cable and restarting the browser and resetting the browser tab permissions.

Tested on Framework 13 Laptop and Asrock X670E PRO-RS (BIOS vers 2.02 latest stable) Ryzen 9 7900X.

thestinger commented 4 months ago

The Flatpak for Chrome would need to be fixed. Something is very wrong if it's not working for reboot into fastbootd.

joker22008 commented 3 months ago

Ь