UBports Robot Logo UBports Forum
    • 版面
    • 最新
    • 標籤
    • 熱門
    • 使用者
    • 群組
    • 搜尋
    • 註冊
    • 登入

    Anbox - apps have no internet

    已排程 已置頂 已鎖定 已移動 Support
    23 貼文 7 Posters 7.7k 瀏覽 3 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
      回覆
      • 在新貼文中回覆
      登入後回覆
      此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
      • hankschwieH 離線
        hankschwie
        最後由 編輯

        Updated Anbox? What ecxactly did you do? AFAIK there hasn't been an Anbox update lately...

        R 1 條回覆 最後回覆 回覆 引用 0
        • R 離線
          rocket2nfinity @hankschwie
          最後由 編輯

          @hankschwie I used the Anbox-tool upgrade command

          1 條回覆 最後回覆 回覆 引用 0
          • hankschwieH 離線
            hankschwie
            最後由 hankschwie 編輯

            And ended up with an android.img file in /home/phablet/anbox-data, dated 08.08.19, size 217.2 MB?

            I guess you just have to retry installing. What is the output of the command
            anbox-tool status executed in the terminal app or via ssh/adb shell?

            R 1 條回覆 最後回覆 回覆 引用 0
            • R 離線
              rocket2nfinity @hankschwie
              最後由 rocket2nfinity 編輯

              @hankschwie All enabled and ok

              hankschwieH 1 條回覆 最後回覆 回覆 引用 0
              • hankschwieH 離線
                hankschwie @rocket2nfinity
                最後由 編輯

                @rocket2nfinity
                What channel are you using? After an update of RC I usually have to go through the whole installation process again on my Fairphone 2.

                R 1 條回覆 最後回覆 回覆 引用 0
                • R 離線
                  rocket2nfinity @hankschwie
                  最後由 編輯

                  @hankschwie stable. Anbox runs as it always did, just no internet for all apps except fdroid. I found several posts on gitlab and Anbox forums with the same problem, but no solution.

                  1 條回覆 最後回覆 回覆 引用 0
                  • hankschwieH 離線
                    hankschwie
                    最後由 編輯

                    Did you restart the device? Anbox is far from stable...

                    R 1 條回覆 最後回覆 回覆 引用 0
                    • R 離線
                      rocket2nfinity @hankschwie
                      最後由 編輯

                      @hankschwie Multiple times. At this point, I think I just need to groan and re-install everything.

                      I updated it, because I could not play videos in Anbox apps. There is a fix for that with Anbox, I applied it on my X86 tablet, and now I can watch videos and make VoIP calls on that tablet. I was hoping the same patch was included for the arm version. Instead, I just broke the network bridge somehow.

                      Strange though that fdroid still has internet access and the other apps don't.

                      1 條回覆 最後回覆 回覆 引用 0
                      • mihaelM 離線
                        mihael
                        最後由 編輯

                        I would like to have videos playing in anbox as well but now I am afraid to update... Anybody else updated their anbox? Are videos working? Is internet still working? By the way, I use anbox for whatsapp and I have internet. But I never had internet in any browser in anbox. Was your Internet working in a browser in anbox before?

                        R 1 條回覆 最後回覆 回覆 引用 0
                        • R 離線
                          rocket2nfinity @mihael
                          最後由 編輯

                          @mihael No, browsers never worked in Anbox, but I think I know why. I re-installed my anbox, paying attention to app permissions before and after. Quite a few apps I have discovered have custom permissions. So jitsi works, facebook works, other apps work, but browsers do not because of a custom permission applied. Before I start tampering with that, I need to figure out, first how my permissions changed when I updated, second why are the custom permissions set that way? It must have taken some time to go through apps and pick which ones had full internet access and which would not, so I'm wondering if I found the wall of the sandbox meant to protect UT from Anbox, and what are the ramifications if I mess with it?

                          1 條回覆 最後回覆 回覆 引用 0
                          • R 離線
                            rocket2nfinity
                            最後由 rocket2nfinity 編輯

                            So, after further research, the premissions don't seem to be causing the trouble, it appears it may be a problem with the setup of the network bridge. This is the same problem that caused me to not be able to watch videos or use Voip on my x86 tablet. In that case, I could load webpages, but no video or audio streams would play, nor could I use the microphone or camera.

                            Someone with a higher level of knowledge of adb can hopefully figure out how to try this with Anbox in UT

                            https://superuser.com/questions/1395384/internet-not-working-in-anbox-on-ubuntu-18-04

                            @Flohack could you direct this to whomever has been working on Anbox? A similar fix got my mic and camera working on my x86 Anbox. Maybe it might work for UT

                            R 1 條回覆 最後回覆 回覆 引用 0
                            • R 離線
                              Rodnoq @rocket2nfinity
                              最後由 編輯

                              @rocket2nfinity
                              Did you finally find a solution ?
                              I encounter quite the same problem on a fresh install of anbox on OTA-16. My apps doesn't seems to have access to internet, except F-Droïd which does.
                              It appears either with 4G or wifi

                              This is what i tried to figured out where is the problem :

                              First some infos about anbox :
                              anbox system-info and anbox-tool status : https://paste.ubuntu.com/p/rchMv6RBWc/

                              I tried to ping www.google.com, i works :

                              armv7-a-neon:/ $ ping www.google.com
                              PING www.google.com (172.217.18.196) 56(84) bytes of data.
                              64 bytes from ham02s14-in-f196.1e100.net (172.217.18.196): icmp_seq=1 ttl=113 time=17.2 ms
                              

                              I tried to use anbox-bridge.sh but it doesn't seem to solve the problem :
                              this way :

                              phablet@ubuntu-phablet:~/Documents$ anbox-tool status
                              Kernel: OK
                              System: OK
                              Enabled: YES
                              Running: YES
                              phablet@ubuntu-phablet:~/Documents$ anbox-tool disable
                              [sudo] password for phablet:
                              Anbox is now disabled
                              phablet@ubuntu-phablet:~/Documents$ sudo ./anbox-bridge.sh start
                              phablet@ubuntu-phablet:~/Documents$ sudo anbox-tool enable
                              start: Job failed to start
                              start: Unknown job: anbox-session
                              Anbox is now enabled
                              

                              or this way :

                              phablet@ubuntu-phablet:~$ cd Documents/
                              phablet@ubuntu-phablet:~/Documents$ sudo ./anbox-bridge.sh restart
                              [sudo] password for phablet:
                              anbox-bridge isn't running
                              phablet@ubuntu-phablet:~/Documents$ anbox-tool
                              statusKernel: OK
                              System: OK
                              Enabled: NO
                              Running: NO
                              phablet@ubuntu-phablet:~/Documents$ anbox-tool enable
                              start: Job is already running: anbox-container
                              start: Job is already running: anbox-session
                              Anbox is now enabled
                              phablet@ubuntu-phablet:~/Documents$ anbox-tool status
                              Kernel: OK
                              System: OK
                              Enabled: YES
                              Running: NO
                              

                              With both ways i can't launch any app in anbox. I need to restart UT.

                              I found an apparently similar case on anbox github :
                              https://github.com/anbox/anbox/issues/1226

                              Which finally refers to this one which is supposed to solve the problem :
                              https://github.com/anbox/anbox/pull/1081

                              But don't know how to apply it on UT.

                              OTA-16 stable on xperia X

                              R 1 條回覆 最後回覆 回覆 引用 0
                              • R 離線
                                rocket2nfinity @Rodnoq
                                最後由 編輯

                                @rodnoq I got internet back by deleting Libertine, then re- installing Anbox. So, apps work except browsers and apps that are blocked by an xml permissions file in the android build preventing them from serving webpages to the app. I have not had time to investigate why it was done that way.

                                1 條回覆 最後回覆 回覆 引用 0
                                • P 離線
                                  Phiibuntu
                                  最後由 編輯

                                  Hi (like Waydroid doesn't work for me I try andox )
                                  OTA-20 Xiaomi redmi note 9S.
                                  Anbox seems to work fine (installing f droid apk ok, and app works) but I don't have internet with anbox app. (even F-droid).

                                  sudo ./anbox-bridge.sh start give me an error "syntax error:newline unexpected"

                                  Impossible to have internet connexion with anbox app. If someone have an idea :)?

                                  stanwoodS 1 條回覆 最後回覆 回覆 引用 0
                                  • stanwoodS 離線
                                    stanwood @Phiibuntu
                                    最後由 編輯

                                    @phiibuntu Hmmm weird, Xiaomi Redmi Note 9 S / Pro are in the working WayDroid device list...

                                    Redmi Note 9S Stable
                                    If God has a computer, it must be a GNU/Linux

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • P 離線
                                      Phiibuntu
                                      最後由 Phiibuntu 編輯

                                      I yes waydroid works in my xiaomi but then UT browser and other UT app doesn't work anymore.

                                      Anyway I had a problem with my file anbox-bridge.sh (it was not the good file)
                                      sorry.

                                      Edit anbox-bridge.sh doesn't fix my network problem in anbox 🙂 ...

                                      J 1 條回覆 最後回覆 回覆 引用 0
                                      • J 離線
                                        j.mackay93 @Phiibuntu
                                        最後由 編輯

                                        @phiibuntu I had this when I first got my UT xiaomi note 9s. I had made the system read/write, installed waydroud, got it working and then broke my UT apps. I think I must have done sudo apt upgrade and killed something. After a clean install, installing waydroid, and no upgrade everything is nice now.

                                        This isn't really a solution, but I hope it helps!

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • P 離線
                                          Phiibuntu
                                          最後由 Phiibuntu 編輯

                                          @j-mackay93 said in Anbox - apps have no internet:

                                          system read/write,

                                          Thanks for information, but do you remerber want have you killed? 🙂
                                          I make rw on system, then apt-upgrade
                                          and now I have the same issue without waydroid install. Segmentation fault on UT app.

                                          stanwoodS 1 條回覆 最後回覆 回覆 引用 0
                                          • stanwoodS 離線
                                            stanwood @Phiibuntu
                                            最後由 編輯

                                            @phiibuntu Mind to not confuse apt-update and apt-upgrade commands.

                                            In Ubuntu Touch, one should NEVER make an apt-upgrade because this can upgrade unwanted packages that could brick your system.

                                            At this point there's no revert method. You have to reinstall UT...

                                            Redmi Note 9S Stable
                                            If God has a computer, it must be a GNU/Linux

                                            J 1 條回覆 最後回覆 回覆 引用 1
                                            • J 離線
                                              j.mackay93 @stanwood
                                              最後由 編輯

                                              @Phiibuntu yep just like @stanwood said, doing apt upgrade breaks things (morph, axolotl, messing for me) but apt update is alright. Probably best to start fresh again.

                                              Also, i think you can easily and safely install waydroid through the waydroid helper app now. I havent done it, but i think i heard that it des all the hard work.

                                              J 1 條回覆 最後回覆 回覆 引用 0
                                              • 第一個貼文
                                                最後的貼文