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

Sony Xperia X (suzu/F5121 & F5122)

Scheduled Pinned Locked Moved Sony Xperia X (F5121 & F5122)
324 Posts 63 Posters 235.4k Views 15 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.
    • J Offline
      japsi
      last edited by 2 Apr 2020, 09:44

      Also changed my F5122 from Sailfish to UT to see how everything works and I must say pretty well so big thanks for the dev!

      As I see that Anbox should work in X is there any instructions how to install it? It's not on "supported devices" list yet.

      E C 2 Replies Last reply 2 Apr 2020, 16:12 Reply Quote 0
      • E Offline
        eichenbast @japsi
        last edited by 2 Apr 2020, 16:12

        Falshed today UT to suzu: works amazing. Unfortunatly no "donate" button here. Had to donate on xda to u. Thank u! I appreciate your work very much: to have a mobile working privacy friendly alternative more to android is important. Thanks!

        1 Reply Last reply Reply Quote 1
        • M Offline
          mousse04
          last edited by 3 Apr 2020, 13:20

          Hi guys,

          now my apps are working again :). But I have another problem.
          I've downloaded the Ubuntu Touch version 250 but when I click on install, it ask me to click on intall and restart, and when I click on this ... nothing happens.

          I've tried apt-get update but it failed saying some reference are missing or replaced.

          Any hints ?

          Thanks
          Mathieu

          F 1 Reply Last reply 3 Apr 2020, 14:14 Reply Quote 0
          • F Offline
            flohack @mousse04
            last edited by 3 Apr 2020, 14:14

            @mousse04 said in Sony Xperia X (suzu/F5121 & F5122):

            on install, it ask me to click on intall and restart, and when I click on this ... nothing happens.

            Did you download on 2 days but not install on the first day?

            My languages: ๐Ÿ‡ฆ๐Ÿ‡น ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡บ๐Ÿ‡ธ

            M 1 Reply Last reply 3 Apr 2020, 14:16 Reply Quote 0
            • M Offline
              mousse04 @flohack
              last edited by 3 Apr 2020, 14:16

              @Flohack Exact

              F 1 Reply Last reply 3 Apr 2020, 14:38 Reply Quote 0
              • F Offline
                flohack @mousse04
                last edited by 3 Apr 2020, 14:38

                @mousse04 This is a known bug, you need to clean out the cache of system-settings with the UT tweak-tool then it will work again. Or use the installer...

                My languages: ๐Ÿ‡ฆ๐Ÿ‡น ๐Ÿ‡ฉ๐Ÿ‡ช ๐Ÿ‡ฌ๐Ÿ‡ง ๐Ÿ‡บ๐Ÿ‡ธ

                M 1 Reply Last reply 3 Apr 2020, 15:28 Reply Quote 1
                • M Offline
                  mousse04 @flohack
                  last edited by 3 Apr 2020, 15:28

                  Thanks @Flohack

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    RubbelDeCatc
                    last edited by RubbelDeCatc 4 Sept 2020, 15:57 9 Apr 2020, 15:40

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      RubbelDeCatc
                      last edited by 12 Apr 2020, 11:38

                      @fredldotme Thank you for your great work. Except of the fingerprint reader everything is working.

                      I have I have two things to comment.

                      First of all. It was really pain to update to android 8 first. But it is nessecary. I tried to install without updating from 6 to 8 because the Android won't update and I was to lazy using Flashtool.

                      Second. The power consumption is really high. The System sucks 70% in idle mode overnight. What is your experience? Is there a possibility to reduce energy? I installed sim, telegram, mail, nexcloud sync for calendar, files and contacts. But that should not need much energy.

                      T 1 Reply Last reply 13 Apr 2020, 07:19 Reply Quote 0
                      • T Offline
                        ToxyPoxy @RubbelDeCatc
                        last edited by 13 Apr 2020, 07:19

                        @RubbelDeCatc
                        Hello
                        Little bit unrelated but just something that crossed my mind reading your comment and maybe getting myself Xperia X later for Ub.Touch.

                        1. Updating to Android 8.0 isnยดt that something you can do with Sony Emma Tool easily?
                        2. After I installed Lineage OS on my Xperia X Compact I had much more battery drainage than before.
                        R 1 Reply Last reply 13 Apr 2020, 11:25 Reply Quote 0
                        • R Offline
                          RubbelDeCatc @ToxyPoxy
                          last edited by 13 Apr 2020, 11:25

                          @ToxyPoxy said in Sony Xperia X (suzu/F5121 & F5122):

                          1. Updating to Android 8.0 isnยดt that something you can do with Sony Emma Tool easily?

                          Well... I was optimistic and tried it without updating. I don't have windows installed.

                          1. After I installed Lineage OS on my Xperia X Compact I had much more battery drainage than before.

                          So how long last a full battery in idle mode wifi and mobile on?

                          T 1 Reply Last reply 14 Apr 2020, 04:09 Reply Quote 1
                          • N Offline
                            Nikfrager
                            last edited by 13 Apr 2020, 11:59

                            Without updating to android 8.0 it will not work, because the bootloader is not suitable.

                            1 Reply Last reply Reply Quote 1
                            • T Offline
                              ToxyPoxy @RubbelDeCatc
                              last edited by 14 Apr 2020, 04:09

                              @RubbelDeCatc Aha I understand, well I installed a sim card and charged it to 100% last night and now 13 hours later in Idle the battery is down to 61%.

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                c4pp4 @japsi
                                last edited by c4pp4 20 Apr 2020, 08:40

                                @japsi said in Sony Xperia X (suzu/F5121 & F5122):

                                As I see that Anbox should work in X is there any instructions how to install it? It's not on "supported devices" list yet.

                                Just follow http://docs.ubports.com/en/latest/userguide/dailyuse/anbox.html and skip "flash a specific boot image" step.

                                In my case (F5122) it works. I used UT Terminal app:

                                sudo mount -o rw,remount /
                                sudo apt update
                                sudo apt install anbox-ubuntu-touch
                                anbox-tool install
                                sudo apt install android-tools-adb
                                sudo mount -o ro,remount /
                                cd /home/phablet/Downloads
                                wget https://f-droid.org/FDroid.apk
                                adb install FDroid.apk
                                

                                and reboot... (not sure if it's needed)

                                There is no sound by default, see https://github.com/anbox/anbox/issues/904. You need to override system/etc/media_codecs.xml file. I was trying to figure it out via rootfs-overlay (https://docs.anbox.io/userguide/advanced/rootfs_overlay.html) with no luck. I repacked android.img with fixed media_codecs.xml file and now there is a sound and even choppy video via NewPipe app. I used this fixed media_codecs.xml file: http://dpaste.com/2H2CP58, it's all in one from these files: https://github.com/anbox/anbox/tree/master/android/media because "Include" and "Included" tags don't work yet.

                                Is there a way to apply anbox rootfs-overlay?

                                H E 2 Replies Last reply 20 Apr 2020, 13:57 Reply Quote 3
                                • H Offline
                                  henri2h @c4pp4
                                  last edited by henri2h 20 Apr 2020, 13:57

                                  @c4pp4 Thanks a lot for this !! Just installed anbox and it works great !
                                  For the audio issue I've tried to modify /system/etc/media_codecs.xml without success despite having mounted with write permissions. It made me ask myself, is the /system/etc/media_codect.xml file for ubuntu touch system or the android system ?
                                  Could you post your modified android image or just tell us how to repack the image and how to upload it. Not sure where to start. Thanks in advance !

                                  C F 2 Replies Last reply 20 Apr 2020, 19:22 Reply Quote 0
                                  • C Offline
                                    c4pp4 @henri2h
                                    last edited by c4pp4 20 Apr 2020, 19:22

                                    @henri2h You can't modify the file directly, it's Squashfs filesystem (see https://en.wikipedia.org/wiki/SquashFS). The best way to override it is via rootfs-overlay as I wrote.

                                    To repack the image, you need some linux distro. Download the right android filesystem image from https://cdimage.ubports.com/anbox-images/. According to https://cdimage.ubports.com/anbox-images/devices.json it's android-armhf-64binder.img. You also need to have installed squashfs-tools package.

                                    Uncompress the filesystem as root to keep uid and gid identities:

                                    sudo unsquashfs android-armhf-64binder.img
                                    

                                    you will see something like this:

                                    Parallel unsquashfs: Using 4 processors
                                    1429 inodes (5270 blocks) to write
                                    
                                    [=================================-] 5270/5270 100%
                                    
                                    created 1239 files
                                    created 274 directories
                                    created 190 symlinks
                                    created 0 devices
                                    created 0 fifos
                                    

                                    it creates squashfs-root folder, locate squashfs-root/system/etc/media_codecs.xml file, rewrite it (as root) by the fixed one (http://dpaste.com/2H2CP58) and set the right owner:

                                    sudo chown 100000:100000 media_codecs.xml
                                    

                                    compress the filesystem into android.img:

                                    sudo mksquashfs squashfs-root/ android.img -noappend -no-xattrs -comp xz
                                    

                                    you will see something like this:

                                    Parallel mksquashfs: Using 4 processors
                                    Creating 4.0 filesystem on android.img, block size 131072.
                                    [=================================\] 5080/5080 100%
                                    
                                    Exportable Squashfs 4.0 filesystem, xz compressed, data block size 131072
                                    	compressed data, compressed metadata, compressed fragments,
                                    	no xattrs, compressed ids
                                    	duplicates are removed
                                    Filesystem size 212128.35 Kbytes (207.16 Mbytes)
                                    	39.95% of uncompressed filesystem size (531034.87 Kbytes)
                                    Inode table size 23934 bytes (23.37 Kbytes)
                                    	33.61% of uncompressed inode table size (71204 bytes)
                                    Directory table size 16322 bytes (15.94 Kbytes)
                                    	43.33% of uncompressed directory table size (37666 bytes)
                                    Number of duplicate files found 38
                                    Number of inodes 1703
                                    Number of files 1239
                                    Number of fragments 229
                                    Number of symbolic links  190
                                    Number of device nodes 0
                                    Number of fifo nodes 0
                                    Number of socket nodes 0
                                    Number of directories 274
                                    Number of ids (unique uids + gids) 4
                                    Number of uids 2
                                    	unknown (100000)
                                    	unknown (101000)
                                    Number of gids 4
                                    	unknown (100000)
                                    	unknown (102000)
                                    	unknown (101000)
                                    	unknown (101003)
                                    

                                    Copy the new created android.img file into the phone's home folder into anbox-data and rewrite the original one.

                                    E J 2 Replies Last reply 3 May 2020, 19:13 Reply Quote 2
                                    • H Offline
                                      henri2h
                                      last edited by 20 Apr 2020, 22:25

                                      @c4pp4 said in Sony Xperia X (suzu/F5121 & F5122):

                                      sudo mksquashfs squashfs-root/ android.img -noappend -no-xattrs -comp xz

                                      Works like a charm, thank you very much for the help and the introduction to image building ! Very appreciated !!

                                      1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        c4pp4 @fredldotme
                                        last edited by 21 Apr 2020, 06:29

                                        @fredldotme said in Sony Xperia X (suzu/F5121 & F5122):

                                        Missing:

                                        • Libertine

                                        I've installed Libertine support according to http://docs.ubports.com/en/latest/userguide/dailyuse/libertine.html.

                                        OS Build of UT was 2020-04-20/2 in my case.

                                        The phoneโ€™s Settings interface didn't work when I was trying to create a container. I think it uses command without extra option 'type' and that's why it always falls to use lxd type. It's because the kernel version is >=4 (4.4.146-g16d456d in my case), see https://github.com/ubports/libertine/blob/503b05c5b99ee1d7d71c1bbfc2a733acc5ee5c73/python/libertine/HostInfo.py#L27.

                                        To create a container, you need to do it via adb or ssh connection. In my case I've done it via adb.

                                        As you can see lxd is not supported (command without type option):

                                        phablet@ubuntu-phablet:~$ libertine-container-manager create -i test
                                        Enter password for your user in the Libertine container or leave blank for no password:
                                        Password: 
                                        libertine-container-manager:123: ERROR: create():	Failed to create container: 'No module named 'libertine.LxdContainer''
                                        

                                        as you can see lxc is not supported as well:

                                        phablet@ubuntu-phablet:~$ libertine-container-manager create -i test -t lxc
                                        Enter password for your user in the Libertine container or leave blank for no password:
                                        Password: 
                                        libertine-container-manager:123: ERROR: create():	Failed to create container: 'No module named 'libertine.LxcContainer''
                                        

                                        the only working command to create the container was with type chroot:

                                        phablet@ubuntu-phablet:~$ libertine-container-manager create -i test -t chroot
                                        

                                        here is the output http://dpaste.com/2E0615B

                                        After that you can use the phoneโ€™s Settings interface to install some packages into the container.

                                        e.g. I've installed Firefox:
                                        screenshot20200421_061405340b.png
                                        It's too slow and I had to set Firefox's 'Network Settings' to 'Auto-detect proxy settings for this network' and use Libertine Tweak Tool to make the text and the scrollbar larger.

                                        1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          fredldotme @henri2h
                                          last edited by 22 Apr 2020, 14:57

                                          @henri2h Maybe you want to push the fix to https://github.com/ubports/anbox so that every device can benefit from it. ๐Ÿ™‚

                                          H 1 Reply Last reply 23 Apr 2020, 09:41 Reply Quote 0
                                          • R Offline
                                            RubbelDeCatc
                                            last edited by 23 Apr 2020, 09:08

                                            Hi everyone.

                                            It seems that GPS isn't working on my device. And it never worked. The sensors Appllication tells me that GPS is supported and active.
                                            Source Staus no error
                                            Last updated empty

                                            Anyone has the same problem?

                                            M 1 Reply Last reply 24 Apr 2020, 21:12 Reply Quote 0
                                            144 out of 324
                                            • First post
                                              144/324
                                              Last post