maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Sailfish OS on Sony Xperia X Compact (community build) (https://talk.maemo.org/showthread.php?t=100227)

kaulian 2019-10-31 09:38

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Quote:

Originally Posted by kaulian (Post 1561370)
in fact after pkcon refresh ans pkcon update some package are missing

Code:

droid-compat-f5321-hybris-libsensorfw-qt5-0.0.9-1.27.1.jolla.armv7hl Wed 30 Oct 2019 22:02:38 CET
droid-compat-f5321-feature-0.0.9-1.27.1.jolla.armv7hl Wed 30 Oct 2019 22:02:38 CET
droid-compat-f5321-droid-system-0.0.9-1.27.1.jolla.armv7hl Wed 30 Oct 2019 22:02:34 CET
droid-compat-f5321-droid-hal-0.0.9-1.27.1.jolla.armv7hl Wed 30 Oct 2019 22:02:34 CET
droid-compat-f5321-droid-config-sailfish-0.0.9-1.27.1.jolla.armv7hl Wed 30 Oct 2019 22:02:34 CET
droid-compat-f5321-droid-config-flashing-0.0.9-1.27.1.jolla.armv7hl Wed 30 Oct 2019 22:02:32 CET
droid-compat-f5321-droid-config-0.0.9-1.27.1.jolla.armv7hl Wed 30 Oct 2019 22:02:32 CET


But after update i always have the problem =/

Hi all,

Anyone have an idea ?

it's like missing some driver.


No big information when I launch the camera APP and CSD test fail to.

eugenio 2019-10-31 09:57

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Hello, patch creator here. I hope this post doesn't get to moderation like the other one did last time :)


If you updated before 30/10 00:00 UTC+1 you might get the camera black (and aliendalvik not starting) issue.
Everyone who updated afterwards is (should be) fine, X Compact compatibility layer updates are picked automatically during Sailfish OS upgrades.

For those who experience the issue(s), these commands should be enough:

Code:

devel-su
zypper ref -r compat-f5321
zypper dup -r compat-f5321
add-preinit-oneshot /var/lib/platform-updates/flash-bootimg.sh
reboot

=================================================

For those wondering what the issue was, SELinux got enabled in Jolla's Xperia X kernel and then subsequently disabled via kernel cmdline (I think to easily test SELinux without having to re-build the kernel).

This broke both the camera and aliendalvik.

The patcher patches on-the-fly Jolla's kernel replacing the devicetree and the cmdline to match X Compact's.

So in the end we got SELinux enabled and a cmdline which doesn't explicitly disable it.

The cmdline has been synced.

We got pretty unlucky as Jolla touched one of the few HA parts that the patch touches too :) Fortunately the fix is simple enough.


Eugenio

kaulian 2019-10-31 10:15

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Yeah !!!
Thanks

meet.vino 2019-11-01 04:17

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Hi.. Can anyone please confirm if there is Android support for X Compact? And, is the camera quality that bad?

wolke 2019-11-01 04:29

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Quote:

Originally Posted by meet.vino (Post 1561420)
Hi.. Can anyone please confirm if there is Android support for X Compact? And, is the camera quality that bad?

camera quality is same as X, android support is same as X.

X Compact is my only phone, and ive been using it for 16 months without any significant issues (with g7-patched official rom). before that, i used X for a year.

(note that in order to get android support, you must pay for a sailfish X license. you can then download and patch the img with g7's patcher, and install it just like the X, and have android support, etc)

aspergerguy 2019-11-01 05:38

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Quote:

Originally Posted by wolke (Post 1561421)
(note that in order to get android support, you must pay for a sailfish X license. you can then download and patch the img with g7's patcher, and install it just like the X, and have android support, etc)

Haven't tried recently but ran into problems trying to patch Sailfish 3.xx.img so have to flash older 2.xx one and then update via terminal.

wolke 2019-11-02 03:38

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
i flashed Sailfish_OS-patched-for-f5321-3.1.0.11-f5321-0.2.1.17.zip
worked fine for me.

when jolla posts my official 3.2 download in the jolla shop, ill try to patch+flash it, and report what happens here

(although, despite having flashed 3 SXC's at least 10 times total, im still not too clear on who picks up the changes to droid-compat-f5321, and where, when i run the patcher in vagrant)

aspergerguy 2019-11-02 10:56

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Quote:

Originally Posted by wolke (Post 1561460)
i flashed Sailfish_OS-patched-for-f5321-3.1.0.11-f5321-0.2.1.17.zip
worked fine for me.

Revisited this and after updating Vagrant happy to concur no issues in creating "Sailfish_OS-patched-for-f5321-3.1.0.11-f5321-0.2.1.17" on Mac

eugenio 2019-11-02 12:36

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Quote:

Originally Posted by aspergerguy (Post 1561466)
Revisited this and after updating Vagrant happy to concur no issues in creating "Sailfish_OS-patched-for-f5321-3.1.0.11-f5321-0.2.1.17" on Mac

Glad to hear that :)

Quote:

Originally Posted by wolke (Post 1561460)
(although, despite having flashed 3 SXC's at least 10 times total, im still not too clear on who picks up the changes to droid-compat-f5321, and where, when i run the patcher in vagrant)

The compatibility layer is on an OBS repository, the patcher script simply unpacks the stock Sailfish X images, adds the repository and installs the pattern specifying the packages to install.

Then the target kernel gets patched too and everything gets repacked and zipped.

The patching process also installs an SSU feature referencing the compatibility layer repository, so that updates to the compatibility layer gets picked up during Sailfish OS OTA upgrades.

poi 2019-11-03 19:06

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Has anyone else expierienced crashes on android browser with embedded youtube links after 3.2 upgrade

aspergerguy 2019-11-06 14:46

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Quote:

Originally Posted by aspergerguy (Post 1561466)
Revisited this and after updating Vagrant happy to concur no issues in creating "Sailfish_OS-patched-for-f5321-3.1.0.11-f5321-0.2.1.17" on Mac

Similarly no problems creating "Sailfish_OS-patched-for-f5321-3.2.0.12-f5321-0.2.1.15.zip" today.

wolke 2019-11-08 06:32

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
:( for the first time using eugenio patcher, i AM having trouble creating Sailfish_OS-patched-for-f5321-3.2.0.12-f5321-0.2.1.15.zip

rather, having trouble flashing it once i create it. i get this:

Code:

wolke:~/Code/sx/flashing/Sailfish_OS-patched-for-f5321-3.2.0.12-f5321-0.2.1.15$ ./flash.sh
Detected Linux
Searching device to flash..
Found 1 devices: QV701QB10B
Fastboot command: fastboot -s QV701QB10B 
Flashing boot partition..
target reported max download size of 536870912 bytes
sending 'boot' (12228 KB)...
OKAY [  0.440s]
writing 'boot'...
OKAY [  0.098s]
finished. total time: 0.538s
Flashing userdata partition..
target reported max download size of 536870912 bytes
error: write_sparse_skip_chunk: don't care size 518443984 is not a multiple of the block size 4096
erasing 'userdata'...
OKAY [  0.434s]
sending sparse 'userdata' 1/2 (511248 KB)...
error: write_sparse_skip_chunk: don't care size 518443984 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 518443984 is not a multiple of the block size 4096
OKAY [ 16.074s]
writing 'userdata' 1/2...
FAILED (remote: buffer overreads occured due to invalid sparse header)
finished. total time: 20.307s


just to check, i rebuilt 3.1 (in eugenio's ./patch.sh -a f5321 in vagrant) and reflashed it and it worked fine. no idea whats up

wolke 2019-11-08 23:33

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
could NOT get it to work btw. have no idea why sailfish.img has wrong sparse size, and comparing the logs between the two builds (3.1 and 3.2) was not enlightening

aspergerguy 2019-11-09 15:15

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Just a thought, you are using the latest "platform-tools" for fastboot?

wolke 2019-11-10 15:26

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
im on debian sid, which is usually fairly up-to-date with these things

wolke:~$ fastboot --version
fastboot version 1:8.1.0+r23-5
Installed as /usr/lib/android-sdk/platform-tools/fastboot

wolke 2019-11-10 15:31

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
ok, now, im on the actual current version of platform-tools, and its still failing. (fastboot version 29.0.5-5949299)

Code:

wolke:~/Code/sx/flashing/Sailfish_OS-patched-for-f5321-3.2.0.12-f5321-0.2.1.15$ fastboot --version
fastboot version 29.0.5-5949299
Installed as /usr/lib/android-sdk/platform-tools/fastboot
wolke:~/Code/sx/flashing/Sailfish_OS-patched-for-f5321-3.2.0.12-f5321-0.2.1.15$ fastboot flash userdata sailfish.img001
error: write_sparse_skip_chunk: don't care size 511927192 is not a multiple of the block size 4096
Sending sparse 'userdata' 1/2 (519476 KB)          error: write_sparse_skip_chunk: don't care size 511927192 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 511927192 is not a multiple of the block size 4096
OKAY [ 16.373s]
Writing 'userdata'                                FAILED (remote: 'buffer overreads occured due to invalid sparse header')
fastboot: error: Command failed


wolke 2019-11-10 15:54

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
android app support is broken for me!
in 3.1 with a fresh flash of g7 (also continues to be broken after ssu-ing to 3.2)

i can install android support (during initial setup or in jolla store, i have a paid license).
it works fine, AndroidSupport is in the config, /opt/alien looks good, i can logcat and see services starting and such.


BUT i cant install any APKs, and when i install Andriod Store (aptoide) from the jolla store, the icon disappears before i can click it (no desktop file is generated, and afaict, nothing is actually installed).


when i use apkd-install, the DBUS service returns 'ok' and does nothing.....

android-support worked perfectly fine the FIRST time i flashed 3.1. the RPM has been updated to aliendalvik-1.0.90-1.armv7hl.rpm, but installing the previous aliendalvik-1.0.89-1.armv7hl.rpm doesnt help either...

again, this is on a fresh 3.1 install, with working jolla login and a paid license...
:(

wolke 2019-11-10 16:17

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Code:

apkd-install aptoide_cm.aptoide.pt_9.0.0.3.apk
Code:

devel-su chroot /opt/alien /system/bin/logcat
Code:

D/AlienPackageManagerClient( 5729): installPackage size = 37
D/AlienNativePackageManager( 5729): installPackage=/data/app//incoming/cm.aptoide.pt.apk, silent = false
W/ContextImpl( 5729): Calling a method in the system process without a qualified user: android.app.ContextImpl.startActivity:1028 com.android.server.AlienNativePackageManager.installPackage:179 dalvik.system.NativeStart.run:-2 <bottom of call stack> <bottom of call stack>
W/ContextImpl( 5729): Calling a method in the system process without a qualified user: android.app.ContextImpl.startActivity:1040 android.app.ContextImpl.startActivity:1029 com.android.server.AlienNativePackageManager.installPackage:179 dalvik.system.NativeStart.run:-2 <bottom of call stack>
I/ActivityManager( 5729): START u0 {act=android.intent.action.VIEW dat=file:///data/app/incoming/cm.aptoide.pt.apk typ=application/vnd.android.package-archive flg=0x10000000 cmp=com.android.packageinstaller/.PackageInstallerActivity} from pid 5729
W/ResourceType( 5869): Failure getting entry for 0x7f070004 (t=6 e=4) in package 0 (error -75)
D/dalvikvm( 5869): GC_CONCURRENT freed 1617K, 15% free 16231K/18880K, paused 2ms+27ms, total 58ms
D/dalvikvm( 5869): WAIT_FOR_CONCURRENT_GC blocked 48ms
D/dalvikvm( 5869): GC_FOR_ALLOC freed 5770K, 34% free 12559K/18880K, paused 25ms, total 25ms
D/dalvikvm( 5869): GC_FOR_ALLOC freed 751K, 33% free 12676K/18880K, paused 17ms, total 17ms
D/dalvikvm( 5869): GC_FOR_ALLOC freed 254K, 32% free 12930K/18880K, paused 14ms, total 14ms
I/dalvikvm-heap( 5869): Grow heap (frag case) to 13.015MB for 380813-byte allocation
D/dalvikvm( 5869): GC_FOR_ALLOC freed 509K, 34% free 12792K/19252K, paused 16ms, total 16ms
D/dalvikvm( 5869): GC_FOR_ALLOC freed 240K, 33% free 13048K/19252K, paused 14ms, total 14ms
I/dalvikvm-heap( 5869): Grow heap (frag case) to 13.263MB for 520988-byte allocation
D/dalvikvm( 5869): GC_FOR_ALLOC freed 254K, 33% free 13303K/19764K, paused 14ms, total 14ms
D/dalvikvm( 5869): GC_CONCURRENT freed 829K, 30% free 13910K/19764K, paused 1ms+4ms, total 32ms
D/dalvikvm( 5869): WAIT_FOR_CONCURRENT_GC blocked 22ms
D/dalvikvm( 5869): GC_CONCURRENT freed 496K, 24% free 15053K/19764K, paused 1ms+5ms, total 59ms
D/dalvikvm( 5869): WAIT_FOR_CONCURRENT_GC blocked 53ms
D/dalvikvm( 5869): GC_CONCURRENT freed 1278K, 21% free 15795K/19764K, paused 1ms+4ms, total 62ms
D/dalvikvm( 5869): WAIT_FOR_CONCURRENT_GC blocked 56ms
I/ActivityManager( 5729): Displayed com.android.packageinstaller/.PackageInstallerActivity: +829ms


wolke 2019-11-10 17:20

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
g7 fixed the 3.2.0.12 patching/flashing issue. it is now possible to patch it and install it using the git branch `block-size-alignment` of `sailfishx-patcher-f5321`

eugenio 2019-11-10 18:23

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
...aaaand merged to master :)

Thanks to @wolke for testing!

wolke 2019-11-12 04:02

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
p.s.: newly built zip fixed the aliendalvik issue as well

EDIT: i never did figure this one out. it was suddenly completely broken on freshly built 3.1 installs (despite working on 3.1 before), and stayed broken after updating to 3.2 with ssu. flashing 3 different times with slightly different procedures didnt fix it. also, once logged into jolla account in 3.1, it offered me the official upgrade to 3.2 (which it never did before....), and then THAT didnt fix it.

installing zip of 3.2 fixed it, no problem.

monkeyisland 2019-11-12 16:48

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Hello Question:

Is it now safe to upgrade the compact with the gui?
:)

aspergerguy 2019-11-12 18:03

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
[QUOTE=monkeyisland;1561883]Is it now safe to upgrade the compact with the gui?
:)[/QUOTE

Did two examples via terminal without issue but not brave enough to rely upon gui.

eugenio 2019-11-12 18:14

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Quote:

Originally Posted by monkeyisland (Post 1561883)
Is it now safe to upgrade the compact with the gui?

Yes, it is!

maximilian1st 2019-11-15 09:48

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Hi all,
first of all thank you Eugenio for your work creating the patch, as soon as I have a working 5321 I'll head to PayPal.

I just wanted to mention this request I made to Jolla Care about a transfer of my broken Xperia X licence to my Xperia X Compact phone and got this answer:

HI,

Thank you for your message!

Since we don't support your device, we cannot transfer your licence as it won't give you any Android support or other licensed benefits.

Sincerely,
Jolla Customer Care

It's a bit of a shame the device is not supported officially as it seems to work for all of you, but coming from a small company I can understand they don't have the resources for it.

maximilian1st 2019-11-15 10:40

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
And now the patcher complains about Virtual Box Guest addtions

Code:

/usr/share/rubygems-integration/all/gems/vagrant-2.0.2/plugins/communicators/ssh/communicator.rb:257:in `execute': Vagrant was unable to mount VirtualBox shared folders. This is usually (Vagrant::Errors::VirtualBoxMountFailed)
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant

The error output from the command was:


Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant

The error output from the command was:

Did this happen to all of you? If not it might well and here is the solution to it.

https://github.com/dotless-de/vagran...est/issues/292

Thank you DuckDuckGo ;-p

maximilian1st 2019-11-15 10:56

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Next issue I found while the script is patching:

Code:

$ vagrant ssh -c "/vagrant/patch.sh -a f5321 -i /vagrant/Sailfish*.zip"
W: You must be root to use this script! Trying with sudo...
I: Unzipping the Sailfish X archive
Archive:  /vagrant/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15.zip
  creating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/Jolla-3.2.0.12-f5121-armv7hl.urls 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/AdbWinUsbApi.dll 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/flash-on-windows.bat 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/fastboot.exe 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/flash.sh 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/md5.lst 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/hw-release 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/fastboot.img 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/hybris-boot.img 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/hybris-recovery.img 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/flashing-README.txt 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/AdbWinApi.dll 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/fimage.img001 
  inflating: /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/os-release 
I: Converting the fimage sparse image to a raw image...
I: Copying the fimage contents
'/tmp/sailfish-image-patcher/tmp.BwT0WHatci/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/home.img.gz' -> 'patcher-tmp/work/fimage/home.img.gz'
'/tmp/sailfish-image-patcher/tmp.BwT0WHatci/Sailfish_OS-Jolla-3.2.0.12-f5121-0.2.1.15/root.img.gz' -> 'patcher-tmp/work/fimage/root.img.gz'
I: Uncompressing the contents
I: Copying the Sailfish root contents...
I: Preparing for the patch...
I: Patching the image...
DBus unavailable, falling back to libssu
DBus unavailable, falling back to libssu
  % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
                                Dload  Upload  Total  Spent    Left  Speed
100  154  100  154    0    0    490      0 --:--:-- --:--:-- --:--:--  503
100  858k  100  858k    0    0  1291k      0 --:--:-- --:--:-- --:--:-- 6452k
  % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
                                Dload  Upload  Total  Spent    Left  Speed
100  154  100  154    0    0    511      0 --:--:-- --:--:-- --:--:--  525
100  449k  100  449k    0    0  727k      0 --:--:-- --:--:-- --:--:--  727k
  % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
                                Dload  Upload  Total  Spent    Left  Speed
100  154  100  154    0    0    508      0 --:--:-- --:--:-- --:--:--  522
100 1121k  100 1121k    0    0  1581k      0 --:--:-- --:--:-- --:--:-- 1581k
warning: ./augeas-libs.rpm: Header V3 DSA/SHA1 Signature, key ID f2633ee0: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
  1:augeas-libs-1.6.0+git1-1.2.8.joll################################# [ 50%]
  2:zypper-1.14.6+git3-1.3.8.jolla  ################################# [100%]
Retrieving repository 'tmp-compat-f5321' metadata ................................................................................................................................................[done]
Building repository 'tmp-compat-f5321' cache .....................................................................................................................................................[done]
Specified repositories have been refreshed.
Retrieving repository 'jolla' metadata ...........................................................................................................................................................[done]
Building repository 'jolla' cache ................................................................................................................................................................[done]
Specified repositories have been refreshed.
Error building the cache:
[adaptation0|plugin:/ssu?repo=adaptation0] Valid metadata not found at specified URL

Warning: Skipping repository 'adaptation0' because of the above error.
Error building the cache:
[adaptation1|plugin:/ssu?repo=adaptation1] Valid metadata not found at specified URL

Warning: Skipping repository 'adaptation1' because of the above error.
Error building the cache:
[aliendalvik|plugin:/ssu?repo=aliendalvik] Valid metadata not found at specified URL

Warning: Skipping repository 'aliendalvik' because of the above error.
Building repository 'apps' cache .................................................................................................................................................................[done]
Building repository 'customer-jolla' cache .......................................................................................................................................................[done]
Building repository 'hotfixes' cache .............................................................................................................................................................[done]
Building repository 'jolla' cache ................................................................................................................................................................[done]
Error building the cache:
[sailfish-eas|plugin:/ssu?repo=sailfish-eas] Valid metadata not found at specified URL

Warning: Skipping repository 'sailfish-eas' because of the above error.
Building repository 'tmp-compat-f5321' cache .....................................................................................................................................................[done]
Error building the cache:
[xt9|plugin:/ssu?repo=xt9] Valid metadata not found at specified URL

Warning: Skipping repository 'xt9' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 18 NEW packages are going to be installed:
  droid-compat-f5321-droid-config droid-compat-f5321-droid-config-flashing droid-compat-f5321-droid-config-sailfish droid-compat-f5321-droid-hal droid-compat-f5321-droid-system
  droid-compat-f5321-feature droid-compat-f5321-hybris-libsensorfw-qt5 droid-devicetree-f5321 libpython3_7m1_0 python3-base rpm-divert sailfish-content-graphics-closed-z1.25
  sailfish-content-graphics-default-z1.25-base sailfish-device-encryption-unlock-ui-resources-z1.25 sailfish-minui-resources-z1.25 sailfish-upgrade-ui-resources-logo-z1.25
  sailfish-upgrade-ui-resources-z1.25 yabit

The following NEW pattern is going to be installed:
  droid-compat-f5321

18 new packages to install.

The script does finish and there is a slightly smaller patched image created. Not sure if it will work as the errors seem to be about the proprietary parts of Sailfish.

wolke 2019-11-15 14:12

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
"Since we don't support your device, we cannot transfer your licence as it won't give you any Android support or other licensed benefits."


ughhhhhh. if you had just given them the IMEI without telling them the model they likely would have done it and it would have worked.

i assure you that i have a working llicense on two xperia x compacts, with official android support downloaded directly the jolla store, and predictive text, etc, AND official OTA updates (which do NOT work anymore if you dont have the license)

wolke 2019-11-15 14:20

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
ooh, try this: "can you remove the IMEI from my account? im going to switch to a new xperia x, but i dont have the IMEI yet and i want it to work right away"

and then install it on an x compact and it might work!

(also, if you buy a second license, it will work as soon as you flash)

BARRING THAT, you can just download the aliendalvik RPM on your xperia X with pkcon, copy it to your xc, and use it.

maximilian1st 2019-11-17 11:56

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Hey Wolke, thank you for your answer. I had a mail back from Jolla confirming the licence is freed from my broken Xperia X as I asked them to do. Either way, I might as well sell this X Compact for 30€ and buy another X Compact as the microphone is rubbish and people on the other end complain they don't hear me. Tried myself with the *#*#service#*#* microphone test and can confirm it is malfunctioning. Could have been mentioned in the eBay listing.

Manatus 2019-12-12 11:55

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
SFOS 3.2.1.19 updated with OTA, no issues. :)

aspergerguy 2019-12-26 18:55

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Just to mention no problems using g7 patcher with latest Sailfish_OS-Jolla-3.2.1.20-f5121-0.2.1.27.zip

HTML Code:

I: Creating an empty root image
1821+0 records in
1821+0 records out
1909456896 bytes (1.9 GB, 1.8 GiB) copied, 1.26998 s, 1.5 GB/s
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: done                           
Creating filesystem with 466176 4k blocks and 116640 inodes
Filesystem UUID: 8a9da342-263a-40ee-9483-daae54cc36df
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912

Allocating group tables: done                           
Writing inode tables: done                           
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

I: Syncing back the patched tree
I: Repacking
/tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.1.20-f5121-0.2.1.27/patcher-tmp/work /tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.1.20-f5121-0.2.1.27
0+0 records in
0+0 records out
0 bytes copied, 0.000848465 s, 0.0 kB/s
  Physical volume "/dev/loop0" successfully created.
  Volume group "sailfish" successfully created
e2fsck 1.43.4 (31-Jan-2017)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/loop1: 24286/116640 files (0.1% non-contiguous), 264455/466176 blocks
We got ourselves root blocks _ 398302 _
after maths size _ 1631444992 _
  Rounding up size to full physical extent 1.52 GiB
  Logical volume "root" created.
  1 logical volume(s) in volume group "sailfish" now active
398302+0 records in
398302+0 records out
1631444992 bytes (1.6 GB, 1.5 GiB) copied, 12.8736 s, 127 MB/s
e2fsck 1.43.4 (31-Jan-2017)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
home: 83/7328 files (7.2% non-contiguous), 13309/16222 blocks
We got ourselves home size _ 13314 _
  Rounding up size to full physical extent 56.00 MiB
  Logical volume "home" created.
  2 logical volume(s) in volume group "sailfish" now active
13314+0 records in
13314+0 records out
54534144 bytes (55 MB, 52 MiB) copied, 0.320027 s, 170 MB/s
  0 logical volume(s) in volume group "sailfish" now active
1+0 records in
1+0 records out
1 byte copied, 0.000580506 s, 1.7 kB/s
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: done                           
Creating filesystem with 341796 4k blocks and 85536 inodes
Filesystem UUID: 00435d11-5b24-4102-b290-ab612c05807c
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912

Allocating group tables: done                           
Writing inode tables: done                           
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

e2fsck 1.43.4 (31-Jan-2017)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
fimage.img: 11/85536 files (0.0% non-contiguous), 14574/341796 blocks
resize2fs 1.43.4 (31-Jan-2017)
The filesystem is already 341796 (4k) blocks long.  Nothing to do!

e2fsck 1.43.4 (31-Jan-2017)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
fimage.img: 16/85536 files (6.3% non-contiguous), 130960/341796 blocks
resize2fs 1.43.4 (31-Jan-2017)
Resizing the filesystem on fimage.img to 197441 (4k) blocks.
The filesystem on fimage.img is now 197441 (4k) blocks long.

  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/ (stored 0%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/sailfish.img001 (deflated 55%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/hybris-recovery.img (deflated 2%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/fastboot.img (deflated 3%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/AdbWinUsbApi.dll (deflated 49%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/fastboot.exe (deflated 67%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/fimage.img001 (deflated 2%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/Jolla-3.2.1.20-f5121-armv7hl.urls (deflated 92%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/flash-on-windows.bat (deflated 63%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/hybris-boot.img (deflated 2%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/md5.lst (deflated 35%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/flashing-README.txt (deflated 59%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/AdbWinApi.dll (deflated 49%)
  adding: Sailfish_OS-patched-for-f5321-3.2.1.20-f5321-0.2.1.27/flash.sh (deflated 57%)
/tmp/sailfish-image-patcher/Sailfish_OS-Jolla-3.2.1.20-f5121-0.2.1.27
I: Done! Enjoy!
I: Cleaning up...
Connection to 127.0.0.1 closed.
iMac:sailfishx-patcher-f5321 adrian$


willi.liebig 2020-02-04 15:36

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
hi, I have the same trouble as post 106 ... after cloning of the git repository (git clone https://github.com/g7/sailfishx-patcher-f5321.git) the folder "droid-config-f5121" is still empty, even when I manually download the patcher. Is this a bug or how can I manage to get all files downloaded?
Will

wolke 2020-02-04 15:40

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
its a submodule. from the readme:
git clone https://github.com/g7/sailfishx-patcher-f5321.git
cd sailfishx-patcher-f5321
git submodule init
git submodule update

willi.liebig 2020-02-04 19:17

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
hi, mh, there are still some errors. Is there a possiblity to download the patched zip-file anywhere?

Manatus 2020-04-04 08:53

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
SFOS 3.3.0.14 updated without issues on g7's hack image.
Also enabling the encryption worked. I had all kinds of issues in restoring existing data from the GUI based backup after the encryption, so prepare well with external backups if you do this.

Manatus 2020-04-04 12:36

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Scratch that what I said above. Either after the upgrade _or_ after doing the encryption, leds and sound stopped working. So upgrade only if you dare.

eugenio 2020-04-04 12:45

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Quote:

Originally Posted by Manatus (Post 1566596)
Scratch that what I said above. Either after the upgrade _or_ after doing the encryption, leds and sound stopped working. So upgrade only if you dare.

What's the output of

Code:

systemctl --user status pulseaudio
Have you tried running the upgrade again via command line?
Code:

devel-su
ssu re 3.3.0.14
version --dup

FWIW my X Compact works fine, even though the upgrade failed mid-way (but it doesn't seem related to the patch).
I also have encryption enabled, but since 3.2.0.

========================
EDIT: Now that I remember, I had to mask pulseaudio's system wide service after enabling encryption back then. Pulseaudio is normally started in the user session, but after encryption is enabled is started system-wide so that it's possible to route audio when taking emergency calls from the encryption unlock screen (I guess).

Not sure what is wrong, I thought it was due to encryption being a work in progress on 3.2.0 so I haven't complained :) But it seems to be an issue on 3.3.0 too, then.

You can mask pulseaudio using this command:

Code:

systemctl mask pulseaudio

Manatus 2020-04-04 17:37

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
Thanks Eugenio! I was bit too fast...

I got the issue fixed by doing a factory reset, and upgrading from there back to latest. After enabling encryption again I didn't have issues anymore.

I tried 'version --dup' just before resulting to factory reset, but all packages were up to date.

In addition to sound I also had issues with the LED. Csd tests showed that the led still worked, just it did not get triggered in the events with text messages, calls etc.
I also noticed also that any pull menus that normally would have sound to them didn't trigger haptic feedback (haptic was fine with virtual keyboards). Both of these issues may be connected to pulseaudio and order in which SFOS expects things to happen.
So I think your suggestion would have worked.

Well, at least the factory reset has now been tested and working! :)

wolke 2020-04-29 05:57

Re: Sailfish OS on Sony Xperia X Compact (community build)
 
hmm, cant create a g7 image for rokua

keep getting:
error: Failed dependencies: libreadline.so.8 is needed by zypper-1.14.6+git4-1.5.1.jolla.armv7hl

trying to messing with the inner chroot patch file and not having much luck


All times are GMT. The time now is 15:17.

vBulletin® Version 3.8.8