Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Anbox apk install

    OS
    4
    5
    1204
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gallagherd1993 last edited by

      i have been having a heck of time trying to get a apk to install i have been able to install everything onto the nexus 5.

      Copy the apk to /home/phablet/anbox-data/data
      
      Login to android container on your phone
      
          lxc-console -ndefault -P /home/phablet/anbox-data/containers -t0
      
      cd into data/
      
      install the apk by using pm install [appname].apk
      

      the very beginning try copy file never can find the directory... when trying to access the info via file manager not allowed... terminal i can... doing a terminal RM command directories can never be found any help would be great

      1 Reply Last reply Reply Quote 0
      • Ingo
        Ingo last edited by

        I've done it recently. Let's assume you want to install Spotify and the APK is called "com.spotify.music.apk".

        Then, on your PC in a terminal in the same folder where the APK is located

        adb root
        adb push com.spotify.music.apk /home/phablet/anbox-data/data
        adb shell
        sudo lxc-console -ndefault -P /home/phablet/anbox-data/containers -t0
        cd data
        pm install com.spotify.music.apk
        

        Then, on the phone, refresh the app scope and it should be there.

        1 Reply Last reply Reply Quote 2
        • Ingo
          Ingo last edited by

          BTW, did you try the official docs: https://docs.ubports.com/en/latest/userguide/dailyuse/anbox.html#how-to-install-new-apks

          After you install android-tools-adb on the phone (described in the docs) the installation of an APK would just require (again: on the phone)

          adb install my-app.apk
          
          1 Reply Last reply Reply Quote 0
          • G
            Guy last edited by

            This post is deleted!
            Lakotaubp 1 Reply Last reply Reply Quote 0
            • Lakotaubp
              Lakotaubp @Guy last edited by Lakotaubp

              @guy Please do not post the same question in two places at the same time. It will not get answered any quicker. I have deleted this one and left the other.

              1 Reply Last reply Reply Quote 2
              • First post
                Last post