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

    Waydroid app install failed

    Scheduled Pinned Locked Moved Solved Waydroid
    8 Posts 3 Posters 349 Views 2 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.
      • D Offline
        dafeihong
        last edited by

        root@ubuntu-phablet:/home/phablet# waydroid app install Downloads/shengcunzhanzheng.apk

        [09:31:09] WayDroid session is stopped

        root@ubuntu-phablet:/home/phablet# waydroid log

        [waydroid-sensors-daemon] Got plugin_path /SensorManager/alssensor
        (003705) [09:15:18] % chmod 777 -R /dev/dri/renderD128
        [waydroid-sensors-daemon] Got new plugin for magnetometersensor with pid 3760 and session 9
        [waydroid-sensors-daemon] Got plugin_string magnetometersensor
        [waydroid-sensors-daemon] Got plugin_interface local.MagnetometerSensor
        [waydroid-sensors-daemon] Got plugin_path /SensorManager/magnetometersensor
        (003705) [09:15:18] % chmod 777 -R /dev/video
        [waydroid-sensors-daemon] Got new plugin for orientationsensor with pid 3760 and session 10
        [waydroid-sensors-daemon] Got plugin_string orientationsensor
        [waydroid-sensors-daemon] Got plugin_interface local.OrientationSensor
        [waydroid-sensors-daemon] Got plugin_path /SensorManager/orientationsensor
        (003705) [09:15:18] % chmod 777 -R /dev/video2
        (003705) [09:15:19] % chmod 777 -R /dev/video1
        [waydroid-sensors-daemon] Got new plugin for pressuresensor with pid 3760 and session -1
        [waydroid-sensors-daemon] Got plugin_string pressuresensor
        [waydroid-sensors-daemon] Got plugin_interface local.PressureSensor
        [waydroid-sensors-daemon] Got plugin_path /SensorManager/pressuresensor
        (003705) [09:15:19] % chmod 777 -R /dev/video0
        [waydroid-sensors-daemon] Got new plugin for proximitysensor with pid 3760 and session 12
        [waydroid-sensors-daemon] Got plugin_string proximitysensor
        [waydroid-sensors-daemon] Got plugin_interface local.ProximitySensor
        [waydroid-sensors-daemon] Got plugin_path /SensorManager/proximitysensor
        (003705) [09:15:19] % chmod 777 -R /dev/video33
        (003705) [09:15:19] % chmod 777 -R /dev/video32
        [waydroid-sensors-daemon] Failed to create SensorfwStepcounterSensor: Could not create sensorfw backend
        (003705) [09:15:19] % mv /var/lib/waydroid/config_session /var/lib/waydroid/lxc/waydroid
        [waydroid-sensors-daemon] Failed to create SensorfwTemperatureSensor: Could not create sensorfw backend
        (003705) [09:15:19] % mount -o ro /var/lib/waydroid/images/system.img /var/lib/waydroid/rootfs
        (003705) [09:15:19] % mount -o ro /var/lib/waydroid/images/vendor.img /var/lib/waydroid/rootfs/vendor
        (003705) [09:15:19] % mount -o bind /vendor/lib/egl /var/lib/waydroid/rootfs/vendor/lib/egl
        (003705) [09:15:19] % mount -o bind /vendor/lib64/egl /var/lib/waydroid/rootfs/vendor/lib64/egl
        (003705) [09:15:19] % mount -o bind /var/lib/waydroid/waydroid.prop /var/lib/waydroid/rootfs/vendor/waydroid.prop
        (003705) [09:15:19] Save config: /var/lib/waydroid/waydroid.cfg
        (003705) [09:15:19] % lxc-start -P /var/lib/waydroid/lxc -F -n waydroid -- /init
        (003705) [09:15:19] New background process: pid=3813, output=background
        (003705) [09:15:19] % lxc-info -P /var/lib/waydroid/lxc -n waydroid -sH
        lxc-start: waydroid: utils.c: lxc_can_use_pidfd: 1792 Kernel does not support pidfds
        lxc-start: waydroid: utils.c: safe_mount: 1218 Not a directory - Failed to mount "/dev/video" onto "/usr/lib/aarch64-linux-gnu/lxc/dev/video"
        lxc-start: waydroid: utils.c: open_without_symlink: 1082 Too many levels of symbolic links - vibrator in /usr/lib/aarch64-linux-gnu/lxc/sys/class/leds/vibrator was a symbolic link!
        RUNNING
        (003668) [09:15:19] Skipping clipboard manager service because of missing pyclip package
        [gbinder] Service manager /dev/anbox-hwbinder has appeared
        [waydroid-sensors-daemon] Waydroid Sensors HAL service ready.
        [waydroid-sensors-daemon] ERROR: Sensor humidity Not found!
        [waydroid-sensors-daemon] ERROR: Sensor stepcounter Not found!
        [waydroid-sensors-daemon] ERROR: Sensor temperature Not found!
        (003668) [09:15:36] waydroidusermonitor: Received transaction: 1
        (003668) [09:15:36] Android with user 0 is ready
        (003668) [09:15:36] % adb start-server

        • daemon not running; starting now at tcp:5037
        • daemon started successfully
          (003668) [09:15:39] % adb connect 192.168.240.112
          connected to 192.168.240.112:5555
          (003668) [09:15:39] Established ADB connection to Waydroid device at 192.168.240.112.
          (005585) [09:15:57] WayDroid session is stopped
          (005588) [09:16:00] % tail -n 60 -F /var/lib/waydroid/waydroid.log
          (005588) [09:16:00] *** output passed to waydroid stdout, not to this log ***
          (006100) [09:31:09] WayDroid session is stopped
          (006112) [09:31:22] % tail -n 60 -F /var/lib/waydroid/waydroid.log
          (006112) [09:31:22] *** output passed to waydroid stdout, not to this log ***
        J arubislanderA 2 Replies Last reply Reply Quote 0
        • D dafeihong marked this topic as a question
        • arubislanderA Offline
          arubislander @dafeihong
          last edited by

          @dafeihong Have you tried executing that command as phablet user? (sometimes doing everything as root introduces problems, rather than avoiding them)

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (24.04 preview)
          JingPad (24.04 preview)
          PinePhone OG (20.04)
          Meizu Pro 5 (16.04 DEV)

          D 1 Reply Last reply Reply Quote 0
          • J Offline
            johndoe @dafeihong
            last edited by

            @dafeihong Maybe you could try to download the APK inside Waydroid and install it from there. You will maybe also get a better Error message inside Waydroid, if it can not be installed.

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              dafeihong @johndoe
              last edited by

              @johndoe said in Waydroid app install failed:

              @dafeihong Maybe you could try to download the APK inside Waydroid and install it from there. You will maybe also get a better Error message inside Waydroid, if it can not be installed.

              I downloaded an APK file in the browser of Waydroid and saw the file enter the download queue, but the download progress bar never started.

              1 Reply Last reply Reply Quote 0
              • arubislanderA Offline
                arubislander @dafeihong
                last edited by

                @dafeihong said in Waydroid app install failed:

                [09:31:09] WayDroid session is stopped

                Silly question, but have you tried starting waydroid before installing the app?

                Also, is it necessary to do all of this as root? (I am genuinely asking, I've never interacted with waydroid from the command line.)

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                Happily running Ubuntu Touch
                Google Pixel 3a (24.04 preview)
                JingPad (24.04 preview)
                PinePhone OG (20.04)
                Meizu Pro 5 (16.04 DEV)

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  dafeihong @arubislander
                  last edited by

                  @arubislander said in Waydroid app install failed:

                  @dafeihong said in Waydroid app install failed:

                  [09:31:09] WayDroid session is stopped

                  Silly question, but have you tried starting waydroid before installing the app?

                  Also, is it necessary to do all of this as root? (I am genuinely asking, I've never interacted with waydroid from the command line.)

                  When executing the command "waydroid app install sth.apk", I have already launched the Waydroid interface and run a browser inside it. To avoid unnecessary trouble, I usually execute commands after the root prompt (#).

                  arubislanderA 1 Reply Last reply Reply Quote 0
                  • arubislanderA Offline
                    arubislander @dafeihong
                    last edited by

                    @dafeihong Have you tried executing that command as phablet user? (sometimes doing everything as root introduces problems, rather than avoiding them)

                    πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                    Happily running Ubuntu Touch
                    Google Pixel 3a (24.04 preview)
                    JingPad (24.04 preview)
                    PinePhone OG (20.04)
                    Meizu Pro 5 (16.04 DEV)

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      dafeihong @arubislander
                      last edited by

                      @arubislander said in Waydroid app install failed:

                      @dafeihong Have you tried executing that command as phablet user? (sometimes doing everything as root introduces problems, rather than avoiding them)

                      I haven't tried that, but it seems the 'waydroid session is stopped' issue isn't related to the user. Anyway, I'll give it a shot later.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        dafeihong
                        last edited by

                        A puzzling issue is that when I see the prompt 'waydroid is stopped' in the UT command line, Waydroid is actually running, and operations within its system GUI appear to be functioning normally.

                        1 Reply Last reply Reply Quote 0
                        • D dafeihong has marked this topic as solved
                        • D dafeihong has marked this topic as unsolved
                        • D dafeihong has marked this topic as solved
                        • First post
                          Last post