Fix working, tweak README

This commit is contained in:
Mikhail Novosyolov 2021-01-02 15:45:19 +03:00
parent 3f7fab69ff
commit 0810d99547
4 changed files with 9 additions and 24 deletions

View file

@ -18,20 +18,11 @@ You also need to download the Android image to /var/lib/anbox/android.img.
The path is important, since the systemd service metioned below will check it.
The pre-build image can be found at <https://build.anbox.io/android-images>.
Then start the anbox-container-manager.service and the
anbox-session-manager.service, anbox-session-manager.service is a systemd
user service.
Add lxc to autostart and start it right now:
sudo systemctl enable --now lxc
You can run following commands to manually start and enbale (add to autostart) the services:
After installing the anbox package, add anbox service to autostart and start it right now:
sudo systemctl enable --now anbox-container-manager.service
systemctl --user enable --now anbox-session-manager.service
If the above commands all succeed, you can start the Android application from
If the above commands succeed, you can start the Android application from
desktop menu now. Or you launch application from command line:
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

View file

@ -1,9 +0,0 @@
[Unit]
Description=Anbox Session Manager
Documentation=man:anbox(1)
[Service]
ExecStart=/usr/bin/anbox session-manager
[Install]
WantedBy=default.target

View file

@ -4,7 +4,7 @@
Summary: Android in a box
Name: anbox
Version: 0.0
Release: 0.git%{commit_short}.1
Release: 0.git%{commit_short}.2
License: GPLv3
Group: Emulators
Url: https://anbox.io
@ -12,7 +12,7 @@ Source0: https://github.com/anbox/anbox/archive/%{commit}.tar.gz?/%{name}-%{comm
# Additional stuff from Debian
Source10: anbox-container-manager.service
Source11: anbox-session-manager.service
Source11: org.anbox.service
Source12: anbox.desktop
Source13: anbox.1
Source14: README.ROSA
@ -89,10 +89,10 @@ See %{_docdir}/anbox/README.ROSA for more information.
%{_datadir}/dbus-1/interfaces/org.anbox.ApplicationManager.xml
%{_datadir}/dbus-1/interfaces/org.anbox.Gps.xml
%{_datadir}/dbus-1/interfaces/org.anbox.Sensors.xml
%{_datadir}/dbus-1/services/org.anbox.service
%{_datadir}/pixmaps/anbox.png
%{_datadir}/applications/anbox.desktop
%{_mandir}/man1/anbox.1*
%{_userunitdir}/anbox-session-manager.service
%{_unitdir}/anbox-container-manager.service
%dir /var/lib/anbox
@ -132,7 +132,7 @@ cp %{SOURCE14} README.ROSA
install -m0644 -D snap/gui/icon.png %{buildroot}%{_datadir}/pixmaps/anbox.png
install -m0644 -D %{SOURCE10} %{buildroot}%{_unitdir}/anbox-container-manager.service
install -m0644 -D %{SOURCE11} %{buildroot}%{_userunitdir}/anbox-session-manager.service
install -m0644 -D %{SOURCE11} %{buildroot}%{_datadir}/dbus-1/services/org.anbox.service
install -m0644 -D %{SOURCE12} %{buildroot}%{_datadir}/applications/anbox.desktop
install -m0644 -D %{SOURCE13} %{buildroot}%{_mandir}/man1/anbox.1
install -m0755 -D scripts/anbox-bridge.sh %{buildroot}%{_datadir}/anbox/anbox-bridge.sh

3
org.anbox.service Normal file
View file

@ -0,0 +1,3 @@
[D-BUS Service]
Name=org.anbox
Exec=/usr/bin/anbox session-manager