REFERENCE:

SETUP:

sudo apt install snapd
sudo add-apt-repository ppa:morphis/anbox-support
sudo apt install anbox-modules-dkms
sudo modprobe ashmem_linux
sudo modprobe binder_linux
ls -1 /dev/{ashmem,binder}
snap install --devmode --beta anbox
snap refresh --beta --devmode anbox

sudo apt install adb
adb start-server

snap run anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

USAGE:

Install and run apk

    url='https://f-droid.org/FDroid.apk'
    package="org.fdroid.fdroid"
    activity=".views.main.MainActivity"

    file=$(basename -- "$url")
    
    wget -c "$url"
    adb install -r "${file}"

    adb shell cmd package list packages
    # package:org.fdroid.fdroid


    adb shell \
	pm dump "$package" \
	| grep ' filter' | cut -d ' ' -f 12 | sort | uniq
    # list activities
    
    adb shell am start \
	-a android.intent.action.MAIN \
	-n "${package}/${activity}"
    

Tested apps:

  • fdroid
  • Microsoft\ Authenticator_v6.6.4_apkpure.com.apk

SCRIPTLET

sudo snap start anbox
anbox.appmgr
adb shell am start -n "${package}/${activity}"

MORE

anbox.txt · Last modified: 2020/09/08 20:40 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki