This is a program designed to copy .flatpakref files from a phone to your computer and install them. This is a simple program using python.
You need:
- An android phone (iOS won't work)
- Developer options turned on with said android phone.
- Android debug bridge
- An internet connection
- A cable to connect your phone to your computer
Install adb via apt on Ubuntu or Debian-based distributions.
sudo apt install adbFor other platforms, get it from developer.android.com. Download the linux zip file and extract it to /opt for system-wide usage, via:
sudo unzip platform-tools-latest-linux.zip -d /optIf you want to uninstall it, just rm the created directory (platform-tools).
BE VERY CAREFUL WHEN RUNNING THIS COMMAND, A TYPO CAN MESS YOUR SYSTEM UP
sudo rm -r /opt/platform-tools # always double check this directory before running the command- Open settings and look for developer settings. If that option is avaliable, skip to step 5.
- Go to About Phone --> Software information (on Samsung, software information may be located in another location on other phones)
- Tap "Build Number" until you are asked for your screen lock. Unlock it, and you will become a developer.
- Exit out of About Phone.
- Enter Developer Settings.
- Enable the toggle for "USB Debugging"
Just run the program after cloning the repository.
git clone https://github.com/HydeZero/FlatpakTransfer.git && cd FlatpakTransfer
python3 ./src/main.pyPlug your phone in, and it may ask to verify the computer's RSA fingerprint. Check the option for "Always trust" if you want to avoid this pop up every time, then unplug the phone.
On your phone, go to Flathub and download flatpak refs using the "Install" button. Move any downloaded flatpakref files to "flatpaktransfer" at the root of your phone. You may need to make this folder.
Plug your phone in when the program is running. It should automatically pull the files from the device and install the flatpak software.
When you see the message "Done transferring. Please disconnect your phone and clear the flatpaktransfer folder," you are done. Unplug your phone within 5 seconds and delete the files within the flatpaktransfer folder on your phone.