yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Original Android Development] achmetinternet:
I cannot find all the lines. My script looks like this:

ui_print("Target: Sony/D5803/D5833:6.0.1/23.5.A.1.291/2769308465:user/release-keys");

ifelse(is_mounted("/system"), unmount("/system"));

package_extract_dir("install", "/tmp/install");

set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);

set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);

mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");

run_program("/tmp/install/bin/backuptool.sh", "backup");

unmount("/system");

if is_mounted("/data") then

package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");

run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");

else

mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");

package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");

run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");

unmount("/data");

endif;

show_progress(0.750000, 0);

ui_print("Patching system image unconditionally...");

block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||

abort("E1001: Failed to update system image.");

show_progress(0.020000, 10);

mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");

run_program("/tmp/install/bin/backuptool.sh", "restore");

unmount("/system");

show_progress(0.050000, 5);

package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");

show_progress(0.200000, 10);

set_progress(1.000000);

So I deleted the first two lines and then I get an error 6. Any help?

---------- Post added at 01:57 AM ---------- Previous post was at 01:56 AM ----------

Worked, thanks!
[Xperia Z3 Compact Original Android Development] juliopw:
Oh I see. Didn't knew about that. Thanks!

I've also perceived that the inline volume controls on my headphone are swapped in this rom. "up" lowers the volume and "down" pause. The middle one also pause, but that's normal.
[Xperia Z3 Compact Original Android Development] panzerox123:
This is my appslog dump . Isn't think fastboot can write to apps_log... Or we would've been able to wipe it easily. I'll ask the Dev

---------- Post added at 03:42 AM ---------- Previous post was at 03:41 AM ----------

In the latest build [MENTION=4675360]tomascus[/MENTION] has already deleted the lines. You don't need to delete anything :)
[Xperia Z3 Compact Original Android Development] skaterbub2003:
Today I restarted the phone, because the cam app couldn't connect to the camera. Now it works again. Just sayin' :)

Feels great to have CM/LOS back on my phone <3
[Xperia Z3 Compact Original Android Development] panzerox123:
If it happens again, can you please get a log ? Thanks !
[Xperia Z3 Compact Original Android Development] ivorh:
ANT+ support

Brilliant work!

At the moment ant+ halservice doesn't seem to be working. Should this work in a lineage os?

I'm getting:

130|z3c:/ # logcat -s antradio
--------- beginning of system
--------- beginning of main
03-25 08:08:41.831 1800 8993 E antradio: failed to open dev /dev/smd6: No such file or directory
03-25 08:08:41.831 1800 8993 E antradio: failed to enable channel /dev/smd6: No such file or directory
03-25 08:08:41.831 1800 8993 E antradio: ant enable failed: No such file or directory
[Xperia Z3 Compact Original Android Development] forgi1977:
Twrp manager play store
[Xperia Z3 Compact Original Android Development] skaterbub2003:
How does this work? Sorry for this noob question ^^
[Xperia Z3 Compact Original Android Development] panzerox123:
Just connect to pc, adb logcat
[Xperia Z3 Compact Original Android Development] skaterbub2003:
Yes sir!
[Xperia Z3 Compact Original Android Development] XiaToq:
Anyone have problems with mic when calling ?

On build from androidfilehost my mic won't work, then i install latest build from mediafire, accept some calls, but later i got mic problems again, then i make factory reset and mic work again.
[Xperia Z3 Compact Original Android Development] panzerox123:
Try disabling everything in Google now voice settings.
[Xperia Z3 Compact Original Android Development] sergio_sant:
I did this with no result. This is exactly what I did:

Booted into fastboot and flashed boot.img from lineageOS_14.1.zip with the command: fastboot flash boot boot.img

Rebooted with the command fastboot reboot

Went into fastboot again and flashed TWRP with fastboot flash recovery twrp-3.0.2-0-z3c.img

And I still have Lineage recovery, I just don't know what am I doing wrong...

EDIT: Ok, I think the problem was that I was flashing TWRP as a recovery and I should've flashed it as a boot image.
[Xperia Z3 Compact Original Android Development] subinsg:
Dont know if this counts as a bug....but isn't the camera supposed to focus on close up shots?

And my device seems to be heating up not much but its noticeable...

BTW thanks for the great ROM....
[Xperia Z3 Compact Original Android Development] Cirra92:
How are you supposed to boot rom if you put recovery image in place for boot.img? I don't think that's going to work.

Flash 3.0.2-1 into recovery partition and upon booting press Volume UP to enter TWRP, as Volume DOWN is booting into LOS recovery (at least for me since I have a new bootloader).
[Xperia Z3 Compact Original Android Development] FacSBe:
Flash TWRP with fastboot flash recovery twrp-3.0.2-0-z3c.img

Only version 3.0.2-0 works good not 3.0.2-1

After flashing ROM lineageOS_14.1.zip and opengapps from http://opengapps.org/?api=7.1&variant=pico

You can go in recovery :

Push power on then when the LED go on red

With volume up in TWP recovery

With volume down in lineage recovery

Everything works like that for recoverys
[Xperia Z3 Compact Original Android Development] kdanesh:
Getting bootloops all the time

I got the 03/22/17 build and flashed it via both twrp 2.8.X and 3.0.2.X , All I get is bootloops and more bootloops , I tried it with a full wipe , with a media wipe , on top of cm12.1 , on top of Carbon Rom 5.1 (android 7.1.1)

I waited for 20 -25 minutes each time but nothing happened . even when I run the lsusb command on my Linux terminal the phone is not recognized .

Do I have to change any partition system or something ?
[Xperia Z3 Compact Original Android Development] sergio_sant:
The problem was that I couldn't enter into TWRP flashing it as a recovery, so I flashed it as a boot image and I could access TWRP. Then I flashed LineageOS, GAPPS and root. Everything works and the phone kept TWRP.
[Xperia Z3 Compact Original Android Development] fzn136:
My phone doesn't boot up if i flash stock or stock based roms. Same is happening with this rom. How to fix it?
[Xperia Z3 Compact Original Android Development] subinsg:
[MENTION=8136271]kdanesh[/MENTION] try flashing stock firmware using emma.... I couldn't flash stock using flash tool as it was showing error null.....then flash the recommended recovery... Boot in twrp recovery... Wipe dalvik/art cache system and data .... And then flash los,gapps and root if needed.... Use the latest link for downloading los....I had bootlooping after moving from older los to the latest one
[Xperia Z3 Compact Original Android Development] panzerox123:
Are you trying to update from the Androidfilehost build?
[Xperia Z3 Compact Original Android Development] fzn136:
Actually i flashed carbon nougat few days back and since then i get bootloops on non-aosp roms (stock and stock based). I was using xperience rom before. I even flashed boot.img via fastboot but it didn't fix it. Emma doesn't work anymore coz i don't have username and password. i flashed using twrp 2.8.7 and then used the one given in this post,still no result.I am looking for stock ftf now and trying to flash stock via flashtool (hope that solves my problem). AND i guess i downloaded it from mediafire.
[Xperia Z3 Compact Original Android Development] fab_ben:
Wow. On highest energy settings this little beast outperforms the oneplus 2. At least as far as geekbench is concerned.
[Xperia Z3 Compact Original Android Development] panzerox123:
Yep... You're gonna have to try Emma... Or you can flash stock ROM using Flashtool, if you are able to. Just remember to wipe appslog when flashing it .
[Xperia Z3 Compact Original Android Development] fzn136:
but emma doesn't work anymore. I dont have sony username and password. I have stock firmware zip. Can i somehow convert it to ftf. Also while installing los it shows E: unknown [log] .
[Xperia Z3 Compact Original Android Development] panzerox123:
There are 2 Emma softwares ... One for service centres, and one for the users... I think this is for the users https://developer.sonymobile.com/downloads/tool/flash-tool-for-xperia-devices/
[Xperia Z3 Compact Original Android Development] fzn136:
I'll try it.Thanks bro.
[Xperia Z3 Compact Original Android Development] achmetinternet:
I try to flash and get error 6.
[Xperia Z3 Compact Original Android Development] baudbox:
Dear dev [MENTION=6979267]nailyk[/MENTION] [MENTION=4675360]tomascus[/MENTION] ,

I've found another issue while activating wifi access point > my device reboot each time after ticking the toggle

Here is the logcat attached

03-25 17:40:10.025 2423 4221 E WifiHAL : wifi_event_loop: Read after POLL returned 4, error no = 0
03-25 17:40:10.025 2423 4221 D WifiHAL : Got a signal to exit!!!
03-25 17:40:10.025 2423 4221 I WifiHAL : Exit wifi_event_loop
03-25 17:40:10.029 5560 6543 W Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
03-25 17:40:10.029 2423 3857 E WifiHAL : wifi_cleanup: Read after POLL returned 4, error no = 0
03-25 17:40:10.030 2423 3857 E WifiHAL : Event processing terminated
03-25 17:40:10.030 2423 3857 D wifi : In wifi cleaned up handler
03-25 17:40:10.037 2423 4221 D wifi : set interface wlan0 flags (DOWN)
03-25 17:40:10.062 14774 14774 V BugleThrottledAction: CountryCodeDetectorAction scheduled to run now.
03-25 17:40:10.110 2423 3857 I WifiHAL : Internal cleanup completed
03-25 17:40:10.111 2423 3857 D WifiNative-HAL: HAL event thread stopped successfully
03-25 17:40:10.278 1041 1237 I libmdmdetect: ESOC framework not supported

Thanks for your support
[Xperia Z3 Compact Original Android Development] shrazy:
Is there a custom Kernel which can be used with this rom? I want to undervolt a bit.
[Xperia Z3 Compact Original Android Development] panzerox123:
Ummm not yet... It's very new. Maybe other Devs will start making kernels for LOS ... Who knows...

Also, Undervolting won't really make a big difference to battery life, will it? It didn't make a difference for me on stock atleast
[Xperia Z3 Compact Original Android Development] shrazy:
Damn so we have to wait...

It makes a huge difference on the same rom I get more than 1 hour sot more with undervolting and underclocking. Also the device was cool and does not heat Up anymore.
[Xperia Z3 Compact Original Android Development] subinsg:
If that doesn't work....try download an older version of emma...... Create a notepad file and type the following without quptes

"developerworld/enable = true"

Please note there is space before and after =

And save the notepad file as shown below without quotes

"customization.ini"

Copy and paste it in the emma folder
[Xperia Z3 Compact Original Android Development] spiceweasel_aut:
Any idea why DAZN app would not show any Video!?
[Xperia Z3 Compact Original Android Development] tomascus:
Kernel updated, download link in OP.

No noticeable changes for users, just last_kmsg to report random reboots.
[Xperia Z3 Compact Original Android Development] baudbox:
For those who use Magisk, here is an interesting trick to do, when sometimes Magisk root disappears on Los 14.1

Hope that helps
[Xperia Z3 Compact Original Android Development] dimex:
I m trying to install this ROM and am getting extremely irritated. I'm coming from rooted .291 with TWRP 3.0.2.0 and cannot get past error 7.

I don't know how any of you can fastboot flash a recovery img (the one recommended to fix error 7) because I have never been able to with this ****ing device, I always get a command line prompt saying that action is not allowed. Can someone please help me?

Thank you
[Xperia Z3 Compact Original Android Development] veti:
the wlan mac adress changes on each reboot.

this is a bit annoying as i use mac address filtering.

i did a few reboots and got those mac adresses

00:90:4c:7f:af:40

00:90:4c:95:f9:71

00:90:4c:b6:a3:a9

00:90:4c:1b:41:e4
[Xperia Z3 Compact Original Android Development] tomascus:
okay it will be fixed next time, thanks.

For now, don't reboot your phone :P
[Xperia Z3 Compact Original Android Development] wmg.architect:
Hello>> I am on stock based AOXP. Any special instruction to give lineage OS a test?

what to do first? and is there a boot-loop problem if i want to come back to stock based?
[Xperia Z3 Compact Original Android Development] tomascus:
Have you tried following the instructions in the OP?
[Xperia Z3 Compact Original Android Development] wmg.architect:
Sorry I am just asking if there is any specific instructions to follow? I didn't flash it yet.. I will try normal way.. Via TWRP, with factory reset, gapps, reflash twrp, supersu.. Am i ok?
[Xperia Z3 Compact Original Android Development] tomascus:
The instructions are in the first post
[Xperia Z3 Compact Original Android Development] wmg.architect:
Ok thanks.. Before flash is it important to make full wipe? System, data, everything?
[Xperia Z3 Compact Original Android Development] cattolicboy:
The instructions are in the first post, you just need to read it
[Xperia Z3 Compact Original Android Development] Robot76:
I had a lot of issues installing this rom, and then finally gained success, so I'm going to share my experience.

Whatever I did, nothing worked,

So I decided to install the Sony Stock Image and start from the beginning.

*These instructions were performed on Linux (ubuntu (K)) and an old version of flashtool and a recent download of fastboot, check downloads section below for any of the requirements.

**My own extras that are not necessary for the installation.

[emoji7]

( To check you bootloader status:

http://xdaforums.com/showthread.php?p=68532096

To unlock your bootloader:

http://xdaforums.com/showthread.php?p=69604957 )

My Installation adventure:

Using the Flashtool, I relocked my device, then flashed the latest Stock Image FTF file (download links below) in Flashmode, and checked the boxes to wipe Appslog and Fotareset.

I hadn't done this for such a long time and got a weird message about whether or not I wanted FCS, so I naturally chose 'No'.

Once finished flashing the stock image, boot into the system. I set Android debugging while I was there.

Then install recovery process here:

*downloads below

Then unlock the bootloader..

Then I connected the phone via Flashtool - 'Fastboot' - 'DooMLoRD' - 'Reboot into fastboot mode',

Flashed the recovery from twrp.me in the terminal using the Fastboot tool commamdl:

fastboot flash FOTAKernel twrp-latest-z3c.img

Then in recovery, made the necessary wipes.

Flash LineageOS

For root, flash either Magisk or flash CM SU (SELinux Enforced).

Flash gapps pico

**Flashed TBO's Theme Ready Google Apps (For Substratum)

If you're going with Magisk, then also flash the,

Universal SafetyNet Fix too..

[emoji7]

Downloads:

Of course you need to know if you have a d5803 or a d5833, and the latest firmware *.921, which I got from here:

https://xdaforums.com/showthread.php?p=56046543

Flashtool:

http://www.flashtool.net/index.php

Fastboot:

https://dl.google.com/android/repository/platform-tools-latest-linux.zip

Recovery:

https://dl.twrp.me/z3c/

CM SU:

https://download.lineageos.org/extras

Gapps:

http://opengapps.org/ Arm 7.1 pico

Theme Ready Google Apps:

https://xdaforums.com/showthread.php?p=60850710

MagiskSu:

https://xdaforums.com/showthread.php?p=68966662

Universal SafetyNet Fix:

https://xdaforums.com/showthread.php?p=72138574

I'm also using Nova Launcher:

LOS A.R.I.S.E. Z3C MAGISK SUBSTRATUM
[Xperia Z3 Compact Original Android Development] cattolicboy:
I'm not sure that Substratum is compatible here ...have you installed it?
[Xperia Z3 Compact Original Android Development] Robot76:
Deleted

Λ.᪃.I.S.Ξ_Z3C_MΛGISK_SUᗱST᪃ΛTUM_XᑐΛ-LΞGΛCY
[Xperia Z3 Compact Original Android Development] panzerox123:
RRO2 works ... Some themes will work... But I have had issues uninstalling themes. Uninstalling leads to bootloops for some stupid reason.
[Xperia Z3 Compact Original Android Development] cattolicboy:
[MENTION=6905152]Robot76[/MENTION] [MENTION=6948461]panzerox123[/MENTION] , ahh nice!

So no needs to modify anything, just install it?
[Xperia Z3 Compact Original Android Development] panzerox123:
No ... Works out of the box
[Xperia Z3 Compact Original Android Development] flipside101:
Hi All,

I saw the new kernel and went to flash it however neither the lineage recovery or twrp 3.1 seems to be able to see the contents of my user storage. Now it and the only change I've done is to move to adoptable storage. This worked in twrp 3.1 and stock concept ROM . Any ideas , am i doing it wrong ?

Oh and i will flash via fastboot I'm just trying to understand why recovery cant see the files.

As an aside both Lineage and TWRP recoveries are available. Lineage comes up if i hit boot to recovery, TWRP if i boot up holding power and vol down. Is one part of the boot.img the other FOTA (or something) .

Many Thanks
[Xperia Z3 Compact Original Android Development] cattolicboy:
Very good, because Layers won't work anymore here (already tested).
[Xperia Z3 Compact Original Android Development] Robot76:
Sorry I misunderstood your question:

It works fine as it uses the better legacy mode, RRO2

The only difference is that it doesn't update live, it needs a reboot.

[emoji7]

TBO themeable apps are also working..

I'm using Spectrum right now...

[emoji7]

*Just the setting System Ui - SystemUI Options, 'translucent', sometimes it's really ugly, and so I choose 'Opaque' instead

Λ.᪃.I.S.Ξ_Z3C_MΛGISK_SUᗱST᪃ΛTUM_XᑐΛ-LΞGΛCY
[Xperia Z3 Compact Original Android Development] NicolaiLarsen91:
Installed this ROM on my fiance's phone a few days ago, and randomly several times a day, the phone asks for SIM-code and unlock code when unlocking the phone. After it's unlocked and desktop appears, she gets a blank window and message telling to pick which SIM-card she is using - she has the European (Denmark) single-SIM model?
[Xperia Z3 Compact Original Android Development] panzerox123:
Are you using a Z3C? I'm a little confused actually. What about Build date?
[Xperia Z3 Compact Original Android Development] veti:
i had the picotts crash a few times and disabled it.

why is this even included as all opengapps since 6.0 include the GoogleTTS now?
[Xperia Z3 Compact Original Android Development] garniemand:
hi there,

have now tried three times to get to nougat.

Still I don't get where I want.

1st I am on TWRP 303

2n having flashed the three files I get stuck in TWRP - I am not able to boot - always end up in TWRP again ?

was looking to upgrade to TWRP 3.1 but realised that I have an old bootloader and this thread https://xdaforums.com/showthread.php?t=3557606 it says that the new BL is needed.

I "only" have LA3.0_M_2" and googling for LA3.0_M_3 I did not really find what I looked out for..

-> is TWRP 3.1 needed in the first place ? if so where to get LA3.0_M_3 from.

-> BTW - is there another way to check for UL BL than always having to go into the service menu ?

else any clue what I'm doing wrong ?

& currently I am on existence and luckily able to restore back to it.....
[Xperia Z3 Compact Original Android Development] dhemker:
Here's another method which definitely works:

unlocked bootloader required, there are some tutorials how to do this (even official ones from Sony)

If you have a "mixed" rom und nothing works, do a rescue flash with Sony's Emma. The rom version you flash is not important. This solves issues with flashtool ("null" error and stuff)

Use flashtool to flash stock rom 23.0.A.2.93 from here: here

Next, follow instructions 13-21 from here

Then step to 34-37. Download the dual recovery installer und unzip it

Transfer the latest lineageos rom (and gapps/root) to your phone's internal storage. Then proceed with the steps in the upper line to install dual recovery. The phone will boot into twrp 2.8.x.x. Then follow the flashing instructions from page one

Now give your phone some minutes. This is definitely a clean way to get the latest rom working without any inconvenience

Finally, you can perform a re-flash of TWRP if you experience issues with the los recovery. Just download the preferred twrp image from here . Then type fastboot flash recovery twrp**.img

The easiest way to avoid some "access/command not allowed" stuff is to use a Linux system and type "sudo fastboot flash...". Works.

For me, I was able to boot into TWRP recovery by hitting the volume UP button multiple times after led was colored initially. Volume DOWN boots into los recovery.

Your're done
[Xperia Z3 Compact Original Android Development] skaterbub2003:
Hi, guys! WLAN-Hotspot is active but other devices cannot find it. Is this a common problem? ^^
[Xperia Z3 Compact Original Android Development] sergio_sant:
Nice rom. It's very stable and everything runs smoothly. I've only found two bugs so far:

- Phone asked for SIM code two times randomly.

- Sometimes notifications don't make any sound (even with high volume configured). It happened with the alarm too. Seems to be random.
[Xperia Z3 Compact Original Android Development] baudbox:
True, but most part of time my device reboot as soon as toggle is activated. I've already submitted a logcat for that. Would be nice to push another one from your device to confirm. Thanks in advance
[Xperia Z3 Compact Original Android Development] panzerox123:
I haven't tried it what skaterbub said, but I don't have random reboots when I press the hotspot button.
[Xperia Z3 Compact Original Android Development] NicolaiLarsen91:
Yep, Z3 Compact with the latest build (20170317 I think?)
[Xperia Z3 Compact Original Android Development] Pisiont:
Latest is from 23 March
[Xperia Z3 Compact Original Android Development] frht5382:
I've this problem too. I press hotspot button it seems opened but it doesn't work.
[Xperia Z3 Compact Original Android Development] achmetinternet:
My camera also started working after the first reboot!
[Xperia Z3 Compact Original Android Development] flipside101:
OK so it seems that TWRP 3.1.0.0 has issues with the Adoptable storage here , not sure if its Nougat or Lineage or both though. 3.0.2.1 is fine
[Xperia Z3 Compact Original Android Development] Loken88:
I have problems with the battery, lasts about 12 hours with 2 hours of screen access
[Xperia Z3 Compact Original Android Development] skysurfer1111:
I've exactly the same problem.