At the undermentioned, I’ve been advised to add a service to enable ADB support in the Android Studio Flatpak package. However, I’m unfamiliar with the process:
opened 09:40PM - 25 Apr 25 UTC
closed 02:28PM - 02 May 25 UTC
#### Errata
1. 
> Unable to locate adb in project/module settings. Locations searched: `ADB_PATH_PROPERTY` (`android.adb.path`): '` `' Android SDK location from first Android Module in Project: From the `PATH` environment variable: '`/app/bin`' From the `PATH` environment variable: '`/usr/bin`' From the `PATH` environment variable: '`/home/RokeJulianLockhart/.var/app/com.google.AndroidStudio/data/node/bin`' From the `PATH` environment variable: '`/home/RokeJulianLockhart/.var/app/com.google.AndroidStudio/data/cargo/bin`' From the `PATH` environment variable: '`/home/RokeJulianLockhart/.var/app/com.google.AndroidStudio/data/python/bin`' From the `PATH` environment variable: '`/home/RokeJulianLockhart/.var/app/com.google.AndroidStudio/data/gem/ruby/3.3.0/bin`'
1. 
#### Environment
1. #### Devices
1. ~~~sh
#!/usr/bin/env sh
adb devices -l
~~~
1. > ~~~log
> List of devices attached
> 0f500db3 device usb:2-1.2 product:FP5 model:FP5 device:FP5 transport_id:1
> ~~~
1. #### OS
1. <details>
~~~sh
#!/usr/bin/env sh
cat /etc/os-release | grep -E CPE_NAME
~~~
</details>
1. > ~~~ini
> CPE_NAME="cpe:/o:fedoraproject:fedora:42"
> ~~~
1. #### Flatpak
1. ~~~sh
#!/usr/bin/env sh
flatpak info com.google.AndroidStudio
~~~
1. > ~~~YAML
> ID: com.google.AndroidStudio
> Ref: app/com.google.AndroidStudio/x86_64/stable
> Arch: x86_64
> Branch: stable
> Version: 2024.3.1.15
> License: LicenseRef-proprietary
> Origin: flathub
> Collection: org.flathub.Stable
> Installation: system
> Installed: 2.7 MB
> Runtime: org.freedesktop.Sdk/x86_64/24.08
> Sdk: org.freedesktop.Sdk/x86_64/24.08
>
> Commit: 045f9d5f5b49c66431b3d28fff830160359d7f131fe31970f4ce86f28405138a
> Parent: 3b218be5c5c384c0f2537260622f72e7ab501643c85515fbe791a2149afc8099
> Subject: Merge pull request #267 from flathub/2024.3.1.15 (8f91d9fdd1b3)
> Date: 2025-04-22 13:20:11 +0000
> ~~~
1. #### RPMs
~~~sh
#!/usr/bin/env sh
rpm -qa $package
~~~
1. `android-tools-35.0.2-3.fc42.x86_64`
1. `flatpak-1.16.0-2.fc42.x86_64`
(For the sake of linkrot prevention), the undermentioned is the service’s content:
[Unit]
Description=Android Debug Server Daemon
[Service]
Type=forking
ExecStart=%h/android/sdk/platform-tools/adb start-server
ExecStop=%h/android/sdk/platform-tools/adb kill-server
[Install]
WantedBy=default.target
Alternatively, if this is somehow an X/Y problem (despite it being the recommendation of the developers) because, for instance, I can bypass this with Flatseal, please recommend an easier solution!
Is this what you are looking for?
Copy the .service file into /etc/systemd/system
Then enable and start the service sudo systemctl enable --now <service-name>
Becuase it’s enabled (WantedBy default.target) it will start up each time you boot the system.
1 Like
@barryascott , apologies for the wait, and thank you. I’ll try this if it turns out I do actually need to do this. However, per the responses in the cited thread, I think I’m just being given the run-around.