UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Oneplus One refusing APK install

    Scheduled Pinned Locked Moved Support
    6 Posts 3 Posters 976 Views 1 Watching
    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 Offline
        gatop
        last edited by

        Hi,
        I've just installed anbox successfully in a new install of OTA9 on a Oneplus One. I've followed the official instructions for installing APKs but it doesn't work:

        adb shell
        sudo mount -o rw,remount /
        sudo apt update
        sudo apt install android-tools-adb
        adb install /home/phablet/Downloads/my-app.apk

        results in this message:

        *error: device offline

        • waiting for device -*

        $ adb devices results in:

        List of devices attached
        emulator-5558 offline

        Restarting adb does not bring the device online.

        Running:

        $lxc-console -ndefault -P /home/phablet/anbox-data/containers -t0

        returns:

        lxc-console: commands.c: lxc_cmd_console: 717 tty number 0 invalid, busy or all ttys busy

        Can anyone give me some advice on how to get this working?

        Thanks

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

          Does anbox work in general, e.g. can you start the Android settings app?
          Last time I fiddled around with anbox I had the impression that you need to start an Android app to actually have anbox fully running (or maybe that was just coincidence).

          1 Reply Last reply Reply Quote 2
          • G Offline
            gatop
            last edited by

            Wow, yep, that sorted it! Thanks for the help!

            1 Reply Last reply Reply Quote 1
            • N Offline
              nocomp
              last edited by

              hi folks,
              i think i am having same issue with 1+1 but opening the android setting app doesn t change a thing 😢
              i ve tried several other app like contact (can t add account) , music (black screen ) files (doesn t see any files), calculator , all no luck :'(((
              nocomp@8uR34ud3sL1c0rn35:~/tools/android/apk$ adb shell
              phablet@ubuntu-phablet:~$ adb install /home/phablet/Downloads/pogo.apk

              • daemon not running. starting it now on port 5037 *
              • daemon started successfully *
                error: device offline
              • waiting for device -

              is there a way to install the apk from the device via shell commands?

              thxx for your time

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

                Here is an alternative way to install APKs: https://forums.ubports.com/post/12491

                1 Reply Last reply Reply Quote 0
                • N Offline
                  nocomp
                  last edited by

                  hi folks,
                  i think i am having same issue with 1+1 but opening the android setting app doesn t change a thing 😢
                  i ve tried several other app like contact (can t add account) , music (black screen ) files (doesn t see any files), calculator , all no luck :'(((
                  nocomp@8uR34ud3sL1c0rn35:~/tools/android/apk$ adb shell
                  phablet@ubuntu-phablet:~$ adb install /home/phablet/Downloads/pogo.apk

                  • daemon not running. starting it now on port 5037 *
                  • daemon started successfully *
                    error: device offline
                  • waiting for device -

                  is there a way to install the apk from the device via shell commands?

                  thxx for your time

                  thxx @Ingo but no luck 😢

                  phablet@ubuntu-phablet:~$ sudo mv /home/phablet/Downloads/pogo.apk ~/anbox-data/data
                  phablet@ubuntu-phablet:~$ sudo lxc-console -ndefault -P /home/phablet/anbox-data/container -t0
                  default is not running
                  phablet@ubuntu-phablet:~$ cd data && pm install "pogo.apk"
                  bash: cd: data: No such file or directory
                  phablet@ubuntu-phablet:~$ cd ~/anbox-data/data
                  phablet@ubuntu-phablet:~/anbox-data/data$ pm install "pogo.apk"
                  bash: pm: command not found
                  phablet@ubuntu-phablet:~/anbox-data/data$

                  how come knowing anbox installed some apps, it didn t installed the installation app kit, would be easier.
                  i ve did some search on google anbox on linux is an app, i don t find it on mmy phone, so i can t launch it, is it normal or is there something broken?

                  thxx for your help

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