Skip to content

Commit

Permalink
AndroidBuddy: switch to Botspot version
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Nov 2, 2024
1 parent 5889b42 commit c1811cb
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
4 changes: 1 addition & 3 deletions apps/AndroidBuddy/credits
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Made by gazlene#8088 on Discord

Added to pi-apps by Raspberry Pi News and Botspot
Botspot
18 changes: 11 additions & 7 deletions apps/AndroidBuddy/description
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
A GUI for Android device recovery and maintenance.
Share your keyboard, mouse, screen, internet connection, files, and more with your Android phone.

Features:
- APK Installation: Install an Android application package with ease.
- Screen viewing and interaction: Control your device through an scrcpy window.
- Recover files: Allows you to back up music, downloads, photos or all of your device's files.
- AND MORE! Check out the website for more info.
AndroidBuddy is useful for:
- Reducing eye strain and improving posture by using the phone on a larger screen.
- Moving big videos to your computer to delete them from the phone
- Sharing your fast ethernet connection with the phone (save data costs, can be much faster than WiFi)
- Responding to texts with a full size keyboard
- Copying and pasting links and other text between computer and phone
- Using the phone's internet connection. If your computer cannot find the WiFi network, or you want to use the phone's mobile data, this works even if Mobile Hotspot is not part of your cell plan.

To run: Menu > Accessories > AndroidBuddy
To run in a temrinal: python3 ~/droidbuddy/main.py
To run in a temrinal: ~/.local/share/androidbuddy/main.sh

NOTE: To use AndroidBuddy, your Android phone must be connected to your computer with a USB cable. If you know adb and scrcpy and want to help add Bluetooth support, contact Botspot.
Binary file modified apps/AndroidBuddy/icon-24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/AndroidBuddy/icon-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 12 additions & 17 deletions apps/AndroidBuddy/install
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
#!/bin/bash

#remove old droidbuddy app from user gazlene that used to be installed by this app
sudo rm -rf /opt/droidbuddy /usr/share/applications/androidbuddy.desktop

install_packages adb gvfs-backends rustc cargo

"${DIRECTORY}/manage" install-if-not-installed Scrcpy || exit 1
#Remove scrcpy menu button
sudo rm -f /usr/share/applications/scrcpy.desktop

install_packages python3-pip python3-dev python3-tk python3-pil.imagetk || error "Failed to install dependencies"

cd /tmp
git_clone https://gitlab.com/gazlene/droidbuddy || error 'Could not clone AndroidBuddy repo!'
sudo mv -f /tmp/droidbuddy /opt

sudo pip3 install Pillow
#download to home folder so androidbuddy can auto-update going forward
cd ~/.local/share
git_clone https://github.com/Botspot/androidbuddy || exit 1
cd

echo "[Desktop Entry]
Name=AndroidBuddy
Comment=GUI for Android device recovery and maintainence
Icon=$(dirname "$0")/icon-64.png
Exec=python3 main.py
Path=/opt/droidbuddy
Type=Application
Encoding=UTF-8
Terminal=false
Categories=Utility;" | sudo tee /usr/share/applications/androidbuddy.desktop
status -n "Running androidbuddy install script... "
~/.local/share/androidbuddy/main.sh install || error "AndroidBuddy install script failed, please refer to errors above."
status_green Done
7 changes: 5 additions & 2 deletions apps/AndroidBuddy/uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
purge_packages || error "Dependencies failed to uninstall"

"${DIRECTORY}/manage" uninstall Scrcpy
sudo rm -rf /opt/droidbuddy /usr/share/applications/androidbuddy.desktop
status -n "Removing other files... "
sudo rm -rf /opt/droidbuddy /usr/share/applications/androidbuddy.desktop #gazlene app install locations

exit 0
sudo rm -rf /usr/bin/gnirehtet /opt/gnirehtet
rm -rf ~/.local/share/androidbuddy ~/.local/share/applications/androidbuddy.desktop ~/.local/share/icons/androidbuddy.png
status_green Done
2 changes: 1 addition & 1 deletion apps/AndroidBuddy/website
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://gitlab.com/gazlene/droidbuddy
https://github.com/Botspot/androidbuddy

0 comments on commit c1811cb

Please sign in to comment.