I mostly use apps installed from F-Droid, so I’m not sure how I’ll use the phone, except that it’s sometimes required as a contact method.

  • Kraiden@piefed.social
    link
    fedilink
    English
    arrow-up
    15
    ·
    12 hours ago

    Depends on your comfort with CLI tools. Here’s the process (assumes Windows):

    1. Download and extract platform tools
    2. Add that location to your PATH
    • Win + R, type “cmd”, enter
    • set PATH=%PATH%;C:\your\path\here\ <- Temporary, just for the current session
    • setx /M path "%path%;C:\your\path\here\" <- Permanent
    1. On your device, go to Settings -> About and look for Build Number it can sometimes be buried in Software Information

    2. Tap Build Number repeatedly until a message appears You are now a developer

    3. You should now have a new Developer options menu item somewhere in your settings. Sometimes it’s top level, sometimes it’s buried under Additional Settings or Advanced Settings or the like

    4. Make sure USB Debugging is turned on

    5. Connect the device over USB

    6. Back on WIndows type:

    • adb devices
    • You might get a popup on the device asking if you want to allow USB debugging. Select Yes, and run adb devices again. You should see your device listed
    1. Download the APK of the app you want to install (AAB files are a PITA, but can be installed too. Try to get APK files though)
    2. Install with:
    • adb install C:/path/to/app.apk <- if adb devices only returns one device
    • adb -s <device_id> install C:/path/to/app.apk <- specific device

    You can install updates the same way, just download the updated APK and add the -r flag adb install -r C:/path/to/app.apk

    More useful adb commands

      • Aceticon@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        38 minutes ago

        Most of that stuff is automatable - except the bit about activating Developer mode and USB Debugging on the device (steps 3 to 6) which only needs to be done once per device - so I expect we will soon see several nice GUI tools that automate the rest and eventually we might even just see stuff that talks directly to the phone over USB via libusb and using the same protocol as ADB, so installing the Android Platform Tools won’t at all be needed.

        But yeah, at this point it requires people to at the very least be familiar with using the command line.

      • Kraiden@piefed.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 hours ago

        That’s why I posted it. So people can decide for themselves. Doesn’t seem that bad to me, but then I’m a dev, so it’s really hard to judge what a non dev would be comfortable with