Now I have an immutable system that works to my satisfaction, I am trying to learn some more about how things are done in - Onyx. Clearly, I have made some false assumptions about what I can do in toolbox as I have received some permission errors. I will post my steps in toolbox and hope that someone can tell me how I should do things…
Setting up for reflashing a Pixel 6a phone from GrapheneOS to Android. The process is most easily done through a web installer…
Remember to edit the .desktop to read:
“Exec=toolbox run /usr/bin/google-chrome-stable %U”
$ exit
The Android web installer was unable to find a device, so I was unable to flash. The procedures that I needed to do on the phone were completed correctly…
Rootless Podman containers (i.e. toolbox) dont have access to usb by default. Instead this you should be able to create a rootful distrobox (not recommended). I dont know if toolbx supports rootful mode (and honestly dont care as distrobox is just better).
But dont do this, just use the official Google binaries, which have not broken Fastboot and dont need to be installed. Just place them in ~/.local/bin/ and make sure that is in your path.
cd ~/.local/bin
# download their archive
curl -O https://dl.google.com/android/repository/platform-tools_r35.0.0-linux.zip
# verify the checksum
echo '62fc977c1b7622ef8dbd6fe1312987d9b139aa8a0b06e88573c1b60129399d49 platform-tools_r35.0.0-linux.zip' | sha256sum -c
unzip platform-tools_r35.0.0-linux.zip
# move the binaries one dir up and remove the dir
mv platform-tools_r35.0.0-linux/* . && rm platform-tools_r35.0.0-linux
And you also need to add the android udev rules, needed for rootless access to USB devices.
For that simply install android-udev-rulesfor example from the ublue COPR and then link the file to /etc/udev/rules.d/ using ls -s.
But if they needed to be linked to the mutable /etc there is no reason to install them as RPMs really. (please verify the file before running below command!)
curl -fsSL https://raw.githubusercontent.com/M0Rf30/android-udev-rules/main/51-android.rules | sudo tee /etc/udev/rules.d/51-android.rules
This is so complex, I have to do a Documentation page on it.