I notice that my phone keeps rebooting randomly after MANY hours not using it (just on my table and I notice it rebooting).
so yeah its currently really beta quality with all these issues. Hopefully this can be fixed someday. Maybe 5.2.xx whenever it arrives to public usage could be better as I have notice 5.1 bringing some issues to the porting community (as Jolla did a lot changes)
but do keep up the good work.
1 Like
thanks for your feedback on the browser, i will focus on that for now, because as the xcompact isn’t our daily driver, we benefit more from that, but i want to finish the xcompact afterwards.
3 Likes
Just did it. SFOS running on my xperia x compact which woke up from longer sleep. Don’t know what happened, but now it works with known issues.
Would love to test it asdaily driver…
1 Like
i think i have a solution for the problems. is it true that the camera takes pictures, but they are all grey or white? and for the launching of apps one needs to copy an egl library from the vendor partition. sensors like compass and accelerometer are working, right? the light sensor is broken ,but i didn’t look into that yet
for copying the libraries run this command block
for d in /usr/libexec/droid-hybris/system/lib /usr/libexec/droid-hybris/system/lib64 \ /usr/libexec/droid-hybris/system/lib/hw /usr/libexec/droid-hybris/system/lib64/hw \ /usr/libexec/droid-hybris/system/vendor/lib /usr/libexec/droid-hybris/system/vendor/lib64 \ /usr/libexec/droid-hybris/system/vendor/lib/hw /usr/libexec/droid-hybris/system/vendor/lib64/hw \ /usr/libexec/droid-hybris/system/vendor/lib/egl /usr/libexec/droid-hybris/system/vendor/lib64/egl; do for l in $(find $d -maxdepth 1 -type l 2>/dev/null); do case “$(readlink “$l”)” in /mnt/*) t=$(readlink -f “$l”); [ -f “$t” ] && rm “$l” && cp “$t” “$l” && chmod 644 “$l” && echo “materialisiert: $l”;; esac done done
the script that writes the correct format in the metadata header of pictures is created with this command:
mkdir -p ~/bin cat > ~/bin/kugo-jpeg-watch.py <<‘PY’ #!/usr/bin/python3 import os, time, struct WATCH = os.path.expanduser(‘~/Pictures/Camera’) def fix_file(path): try: d = bytearray(open(path,‘rb’).read()) except Exception: return if d[:2] != b’\xff\xd8’: return i=2; sos=None; has_dri=False; w=None; comps= while i < len(d)-4: if d[i]!=0xFF: return m=d[i+1] if 0xD0<=m<=0xD9: i+=2; continue L=struct.unpack(‘>H’,d[i+2:i+4])[0] if m==0xDD: has_dri=True if m in (0xC0,0xC1,0xC2): h,w=struct.unpack(‘>HH’,d[i+5:i+9]); nc=d[i+9]; off=i+10 for _ in range(nc): comps.append((d[off+1]>>4, d[off+1]&0xF)); off+=3 if m==0xDA: sos=i; break i+=2+L if sos is None or w is None or has_dri or not comps: return j = sos+2+struct.unpack(‘>H’,d[sos+2:sos+4])[0]; found=False while j < len(d)-1: if d[j]==0xFF and 0xD0<=d[j+1]<=0xD7: found=True; break if d[j]==0xFF and d[j+1]==0xD9: break j+=1 if not found: return Hmax=max(c[0] for c in comps) mcux=(w+8*Hmax-1)//(8*Hmax) dri=bytes([0xFF,0xDD,0,4,(mcux>>8)&0xFF,mcux&0xFF]) open(path,‘wb’).write(bytes(d[:sos])+dri+bytes(d[sos:])) print(“fixed”, path, “DRI”, mcux, flush=True) seen={} while True: try: for f in os.listdir(WATCH): if not f.lower().endswith(‘.jpg’): continue p=os.path.join(WATCH,f); st=os.stat(p) key=(st.st_mtime, st.st_size) if seen.get(p)==key: continue if time.time()-st.st_mtime < 1.5: continue fix_file(p); seen[p]=os.stat(p).st_size and (os.stat(p).st_mtime, os.stat(p).st_size) except Exception as e: print(“err”, e, flush=True) time.sleep(2) PY chmod +x ~/bin/kugo-jpeg-watch.py
and the systemd service to apply the script to new pictures taken by the camera:
mkdir -p ~/.config/systemd/user cat > ~/.config/systemd/user/kugo-jpeg-watch.service <<‘EOF’ [Unit] Description=Fix kugo camera JPEGs (add missing DRI segment) [Service] Type=simple ExecStart=/usr/bin/python3 /home/defaultuser/bin/kugo-jpeg-watch.py Restart=always RestartSec=5 [Install] WantedBy=default.target EOF systemctl --user daemon-reload systemctl --user enable --now kugo-jpeg-watch.service systemctl --user status kugo-jpeg-watch.service --no-pager | head -6
I will try it tomorrow. It is such a lovely and snappy port. And it seems to have a incredible low battery consumption. I am really excited. Thank you for this…
Yesterday I had SFOS on my Xperia X Compact for the first time. Camera did not work. Presented the handles but no image…
I tried tody but it didn’t work. I copied the first block into terminal and it seems to work. The second block ended with an error saying the directory does not exist. I did not try the third block. Was it right to cooy them completely?
What are those scripts doing? How and where do I have to past them. I tried it with ssh. Only the first script ended without complainments. What do i do wrong?
Hi.
I manages to install SFOS on my old new X Compact.
I followed the intructions carefully to get waydroid working.
It is not working. 
Whis Version of Waydroid Vanilla Date Month you used to get it working ? 
the youngest date of lineageos 17.1
okay i took this version.
Hmmmm i must read / check the logs.