Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup to install APKs #7

Open
EdoardoRomiti opened this issue Nov 23, 2023 · 2 comments
Open

Setup to install APKs #7

EdoardoRomiti opened this issue Nov 23, 2023 · 2 comments

Comments

@EdoardoRomiti
Copy link

sudo apt-get install android-tools-adb
sudo usermod -a -G plugdev $USER
sudo reboot
adb devices  # check tablet for auth request
adb devices
adb install xbot2_gui_client_android_arm64_v8a_aligned.apk

# to sign APKs (dev only)
sudo apt install openjdk-17-jre-headless
sudo apt install zipalign
sudo apt install apksigner

zipalign -p 4 xbot2_gui_client_android_arm64_v8a.apk xbot2_gui_client_android_arm64_v8a_aligned.apk 
keytool -genkey -v -keystore my.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias app
apksigner sign --ks-key-alias app --ks my.keystore xbot2_gui_client_android_arm64_v8a_aligned.apk
adb install xbot2_gui_client_android_arm64_v8a_aligned.apk

@alaurenzi
Copy link
Collaborator

The tablet UI is now deployed automatically using Travis. When tagged commits are pushed, we deploy:

To run the server: xbot2_gui_server PATH_TO_CFG

To install the Linux APP: just unzip the provided archive, then PATH_TO_OUTPUT_FOLDER/bin/xbot2_gui

To install the Android APK:

# just once
sudo apt-get install android-tools-adb
sudo usermod -a -G plugdev $USER
sudo reboot
adb devices  # check tablet for auth request

# actual install command
adb install xbot2_gui_client_android_arm64_v8a_signed.apk

@EdoardoRomiti @MarcoRuzzon @liesrock

@MarcoRuzzon
Copy link

sudo apt install libxcb-cursor0 might be required to install the Linux APP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants