yashsingh1/xdaforums huggingface dataset:
[Xperia Z3 Compact Original Android Development] Minfred:
Sorry, not lookin in here so much... Indeed, i have no option "noise suppression" in call settings!? :confused:
[Xperia Z3 Compact Original Android Development] .:B:.:
[MENTION=4901061]mcgi5sr2[/MENTION] I was wondering if you could provide some pointers on how to build CM14.1 for the Z3C? The git repos linked to in the start post haven't been updated for a while, and I was wondering if we could find your Android security bumps etc. somewhere (and if I could maybe (foolishly :p) attempt to build myself).

Thanks!
[Xperia Z3 Compact Original Android Development] mcgi5sr2:
I strongly recommend trying yourself. Follow the guides and feel free to use my repos for updated sources. The main security stuff is actually in the kernel and the lineage repos themselves
[Xperia Z3 Compact Original Android Development] .:B:.:
Thanks. I also checked in with #lineageos-dev on Freenode and they suggested I could follow the usual instructions on one of the wiki device pages. When I am looking at your repos I see commits from e.g. August 2017 though and the likes for e.g. a CM14.1 branch. Is that what you are talking about, or am I looking at the wrong repo/branch?

Edit: I've set up the build environment (following this howto), extracted the blobs from a LineageOS zip first, then from my own device as some files are not found. Both methods yield the same result - build breaks pretty quickly:

frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
find: '/var/data/code/android/lineage-z3c/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates': No such file or directory
PRODUCT_COPY_FILES vendor/sony/shinano-common/proprietary/etc/media_profiles.xml:system/etc/media_profiles.xml ignored.
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/sony/shinano-common/proprietary/app/priv-app/com.qualcomm.location/com.qualcomm.location.apk', needed by '/var/data/code/android/lineage-z3c/out/target/product/z3c/obj/APPS/com.qualcomm.location_intermediates/package.apk', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/var/data/code/android/lineage-z3c'

#### make failed to build some targets (18 seconds) ####

Edit 2: it turns out it's way easier to include https://github.com/TheMuppets/manifests/blob/cm-14.1/muppets.xml in my local manifest, that will pull in recent blobs. Now at least the com.qualcomm.location.apk error is gone and it's compiling :victory:

Edit 3: Once that hurdle was taken it compiled in a whopping 15 minutes :eek: :cool:
[Xperia Z3 Compact Original Android Development] mcgi5sr2:
Congratulations dude!
[Xperia Z3 Compact Original Android Development] .:B:.:
Thanks! What's the cleanest way to use your updates? Apply a diff with your commits to the upstream Lineage trees before I start 'breakfast'? I suppose you won't be updating your 14.1 forks anymore since you're on Oreo right?
[Xperia Z3 Compact Original Android Development] Tomek0000:
Hi, is it possible to use lineageos's security patches with this version of os for z3c? If this is possible, how can I do it?
[Xperia Z3 Compact Original Android Development] mcgi5sr2:
Hi guys,

I won't be updating any shinano repos anymore. If you want to use my repos then I will leave them up for a while, but I suggest forking them. As for any updates a nomrla sync will give you all the updates from lineageOS and AOSP, and afaik there aren't any that will transfer over into our device trees for 7.1.2.

Now that lineageOS 15.1 is out, you could try compiling that almost everything you need is either on the OmniRom gerrit or on review.lineageOS.org bruno martins has done a great job on the htc m8 and a lot of his work will transfer. I would take note of how he uses the HALs too, as that is different to what we have on OmniRom.

With the device trees, my repos should rebase fine over the top of the lineageOS ones, and for OMS you can just use the mergescript on https://github.com/lineageOMS . There are a few conflicts but nothing that should be anything but an easy learning curve for someone new.

Good luck, and feel free to ping me if you need help. This thread is dead for now so you can post issues here
[Xperia Z3 Compact Original Android Development] .:B:.:
[MENTION=4901061]mcgi5sr2[/MENTION] I assume there were/are some showstoppers with the blobs or was it simply that OmniROM was the first project to be picked up for the Z3 Compact on Android 8?

New community build lineage-14.1-20180310-unofficial

I uploaded my build I made yesterday here (includes the March Android Security Bulletin as well). Of course, there's a big fat disclaimer: all I achieved is compiling Lineage 14.1 for the z3c; I don't have the skills (or time) to offer any support whatsoever. Checksums are provided alongside.

Build is working fine here (and the March security patches were tested for regressions by multiple people already).

[MENTION=4901061]mcgi5sr2[/MENTION] and [MENTION=4675360]tomascus[/MENTION] is it OK to share these images here? If not I'll remove the link.
[Xperia Z3 Compact Original Android Development] mcgi5sr2:
nailyk and Diewi made the necessary changes to the blob set for Omni. The decision to switch to supporting Omni I believe was primarily because Omni was more advanced than LineageOS at the time.

I have no issue with you sharing builds in this thread, and as tomascus is no longer active here I doubt he would either.
[Xperia Z3 Compact Original Android Development] FYA_EXel:
This cam is working https://xdaforums.com/crossdevice-dev/sony-themes-apps/port-stock-camera-nougat-roms-t3628791

But DRM Fix don't work? -(just black screen after install it or I did something wrong).
[Xperia Z3 Compact Original Android Development] Tomek0000:
[MENTION=7927349].:B:.[/MENTION]

Thank you. Is the reinstallation of full rom the only way to install security patches ? Is not possible to prepare small zip file to install over recovery the same way like we can install open gapps ?
[Xperia Z3 Compact Original Android Development] .:B:.:
I'm as new as you to this. I haven't seen any deltas for CM or Lineage builds since ages. So just flash it through TWRP. You can wipe Dalvik & regular cache to be on the safe side, afaik you don't need anything more.
[Xperia Z3 Compact Original Android Development] beflythis:
thanks for this! to be clear, is this version running on 8 or 7?

Any headway on the DRM fix? (Is it perhaps included in the base flash file and not needed as an additional flash?)
[Xperia Z3 Compact Original Android Development] marcogiannetta:
DRMFix is useless on non-stock roms.
[Xperia Z3 Compact Original Android Development] FYA_EXel:
Yep :crying:

If you need a camera - dont even try this rom (cause not only the digital noise in photos, but overall detailing is bad).

If you don't need a camera - it's great rom (very fast and smooth, and double tap on lock screen - great feature).
[Xperia Z3 Compact Original Android Development] Dixxhead:
Thanks for sharing your build! Do u know ifanything about Bluetooth changed? Im using CarbonROM atm, but would try Lineage again, if the bluetooth wouldn't disconnect continuously.

Is there like a guide with explanations (as in what does what and why) to follow on how to build your own builds somewhere here on the forums?
[Xperia Z3 Compact Original Android Development] .:B:.:
This one looks pretty comprehensive e.g.: http://hacksandgeeks.com/single-post/2017/04/02/How-to-Build-Custom-Lineage-OS-ROM.

Each officially supported device has the same build instructions on its Lineage wiki device page; but they don't talk about TheMuppets repo, which is where you should be able to find any missing binary blobs.
[Xperia Z3 Compact Original Android Development] Zero_Sherd:
guy,i wondering if it still have any bug on the latest verision,such as.camera can not use？
[Xperia Z3 Compact Original Android Development] .:B:.:
[MENTION=4901061]mcgi5sr2[/MENTION] I am trying to bring up Lineage 15.1 on the z3c like you suggested and am bumping into a few things...

A general (and basic) question to which I cannot find the answer is where the necessary repos are set? 14.1 pulls in four repos (z3c, shinano-common, msm8974-common, msm8974 kernel), but I've been grepping around and no dice. So for now I'm setting it all manually in roomservice (I forked your repos). For most things I have workarounds so far, but I want to make sure I'm not messing things up further.

#1

Android.mk: brcm-uim-sysfs: LOCAL_CLANG is set to false

which I worked around by setting LOCAL_CLANG to 'true'. I assume that's rather harmless? I haven't checked LOS Gerrit yet to see if any patches for that are pending.

#2

The libfmjni lib is both defined by the FM Radio app and the Broadcom FM code. I removed the latter for now to see how far the build proceeds.

#3

Third issue relates to a libta library that I am not finding (and is not in lineage-14.1 either?). Setting ALLOW_MISSING_DEPENDENCIES=true only delays the breakage so it doesn't help.

hardware/sony/macaddrsetup/Android.mk: error: macaddrsetup (EXECUTABLES android-arm) missing libta (SHARED_LIBRARIES android-arm)
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.

Now I have removed a few projects with a custom manifest, but only ARM64 related stuff, no 32 bit ARM stuff.

#4

The kernel build breaks because there's no BOARD_KERNEL_IMAGE_NAME defined. I have checked OmniROM's sources (and Lineage) for pointers and set the following in the BoardConfig.mk under android_device_sony_z3c (seems like the cleanest way to do this):

BOARD_KERNEL_IMAGE_NAME := zImage-dtb

#5

Lineage is looking for a lineageos_shinano_aries_defconfig kernel config but not finding it. I have renamed the existing shinano_aries_defconfig to lineageos_shinano_aries_defconfig. No harm there I suppose, and I see there's omnirom prefixed files in the same directory as well.

Thanks!
[Xperia Z3 Compact Original Android Development] nailyk:
You should take a look at [MENTION=4550727]xkeita[/MENTION] sources. aries and leo are almost the same device.

You could also take a look at omni trees.

Moving from 14.1 to 15 will be a pain without kernel knowledge because a lot of changes (like hwbinder driver) need to be compliant.
[Xperia Z3 Compact Original Android Development] .:B:.:
Thanks nailyk will do that. I'll see how far I get - I'm not in a hurry as long as I can keep 14.1 updated with the monthly security bulletins :).
[Xperia Z3 Compact Original Android Development] mcgi5sr2:
So my suggestion would be to start again with the Omni sources. Look at how HammerHead and htc-m8 and any other msm8974 devices have been brought up for Oreo Lineage-15.1 and use them as a guide on how to convert from Omni to lineage.
[Xperia Z3 Compact Original Android Development] .:B:.:
I've looking at both Omni z3c and Lineage htc-m8, and checking what differs between Nougat and Oreo trees. It's a lot to wrap my head around for sure. Thanks for the tips. I've found out libta is one of those binary blobs that does get pulled with ./extract-files.sh but somehow the paths don't match.
[Xperia Z3 Compact Original Android Development] nailyk:
TA is sony specific.

You need to convert omni to lineage sources (should be the easiest way)

or port again starting to 14.1, applying changes from other device (like m8), not use m8 as a base (better but more difficult way).

Again you probably can use [MENTION=4550727]xkeita[/MENTION] sources if you can find it.
[Xperia Z3 Compact Original Android Development] .:B:.:
Yeah I found his sources (he has a lineage 15.0 branch).
[Xperia Z3 Compact Original Android Development] mxperial:
I'm still just a beginner as well, but I reckon that as [MENTION=6979267]nailyk[/MENTION] said the easiest and "better" way in my opinion is to convert omni to lineage sources as omni sources are being constantly updated. Also, recently, video recording was practically fixed on Xperia Z2, so I guess omni for Z3c will bring this fix soon as well. Anyway, big thanks to [MENTION=6979267]nailyk[/MENTION] and the others involved on bringing Android 8.1 for our device!
[Xperia Z3 Compact Original Android Development] Kajano:
Hi there guys,

I´m using these version (14.1-20171006-UNOFFICIAL-z3c) for my Z3C too. I can´t confirm the mobile data issues, but my Bluetooth is a pain in the ***.

Is there a solution available to fix it? If not, which rom is nearly the same as LineageOS that will support my z3c?

greetz!!
[Xperia Z3 Compact Original Android Development] skysurfer1111:
You use a pretty old version. Try this one:

lineage-14.1-20180310-unofficial-z3c

Never have any issues at all.
[Xperia Z3 Compact Original Android Development] nailyk:
Why lot of you are still using outdated lineage ?

Isn't omni good enough ?

(Real question)
[Xperia Z3 Compact Original Android Development] skysurfer1111:
I like 14.1 as a daily driver without issues, I follow this thread nearly from the beginning.

Tried omni a few times, but I cannot see any fortune. I use Nova launcher and don't need any gimmicks.

Omni is not faster and has still some bugs.
[Xperia Z3 Compact Original Android Development] .:B:.:
I suppose newer is better in the way that more bugs have been squashed, but I don't mind running Android 7.1 as long as Lineage keeps adding security patches. I like how Lineage works, I like its features, and last time I tried OmniROM, I seemed to miss a lot of features.
[Xperia Z3 Compact Original Android Development] Cirra92:
I am still on 7.1.2 Carbon, because I occasionally use video recording (though I see it's fixed on Z2, so that's great) and it has 5ghz working. Now, I haven't checked really whether the WiFi networks I have been using mostly are actually 5ghz, but I suspect not. Furthermore there have been reports of certain problems with microphones during calls (stopping after using speaker) and mobile data issues. Sorry if the latter two have been fixed, I'm not sure about those.

Anyway, has there been any progress on getting the stock WiFi driver to work, or is that a dead end? Since the open source one that both Nougat and Oreo use is bound to cause higher drain than usual.
[Xperia Z3 Compact Original Android Development] .:B:.:
5 GHz (if you're referring to WiFi) is working on Lineage 14.1 as well - using a 5 GHz only AP at home; no issues.
[Xperia Z3 Compact Original Android Development] Kucharskov:
Whats the latest LineageOs? I found this: lineage-14.1-20180310-unofficial-z3c but i dont know who compiled this system.

Whats the latest good TWRP for this rom? I have twrp_z3c_2017-04-26.img
[Xperia Z3 Compact Original Android Development] .:B:.:
I did. See this post. Like I wrote in the change message of the post I have put the zip on my own server, traffic won't be that high I suspect. You can check the MD5/SHA256, but the Upload link will be way slower than my VPS's. It will also be deleted by the website itself after it's been up for 30 days.
[Xperia Z3 Compact Original Android Development] Nazo:
Last I heard it was much more experimental and much less reliable. Has this changed? Also, one great thing about Lineage is it is, overall, very clean and light while following something of a standard (more or less CyanogenMod minus that extra bit they tacked on towards the end there.) Omni struck me as being less minimal at the very least.

That said, if Omni for the Z3c is actually getting active development maybe I should still give it a shot. Yay for TWRP's backup system, lol. I'll give it a try and see more first-hand. I am curious to see how well it handles 8.x (especially with Google's claims it is faster and etc.)

EDIT: Most of it seems ok, but I'm having massive Bluetooth problems connecting with my smartwatch. I'll have to put this off for a time when I can put more time into dealing with it and stick to Lineage for now. 8.1 didn't run any faster or anything that I could see anyway. Mind you, I keep my system pretty clean and use Greenify.

I've also run into a host of other things not working like TitaniumBackup (a lot of functions get stuck, can't freeze apps at all, etc etc) and so on. Even if the OS itself is ready (and I see a few bugs listed in that thread) the software isn't all ready.
[Xperia Z3 Compact Original Android Development] nailyk:
Will not debate here as it is off topic, but, except BT problem which is know, they are all Oreo issues, like titanium. You need to enable whatever setting to allow installing apps, etc....

Some people, like m, using it as a DD and everything works fine.

Just wondering why staying on an outdated lineage as, most of the users, want customs rom for security patches.

One last thing: Omni is closest from AOSP than Lineage is.

thanks all for feedback.
[Xperia Z3 Compact Original Android Development] Nazo:
That's a pretty serious problem...

I'm sure. All settings I could actually get to I had already done. But it seems some are sort of hidden from the user and require you to jump through hoops to actually change. (I would add here that I go through every single settings section and even turn on developer options and set a few things there.) Maybe sometime when I have more time I could deal with that, but that would have to be after Bluetooth issues have been worked out.

If you looked in this thread you'd see we actually have a recent security patch and all the big stuff like the Qualcomm driver bug. This isn't Apple. Older OS versions still can get security patches to a certain extent. I can't say how far back is too far back (I'm sure you won't get these patches for, say, 4.4,) but 7.1 isn't exactly ancient.

I'm seeing some fairly significant changes from AOSP. In fact, the biggest changes CM made from AOSP like theme engines and etc Lineage seems to have dropped whereas Omni seems to have them. But I didn't really say "more different from AOSP." There's a fine line where you balance features with minimalism. If I wanted the absolute bare minimum I wouldn't have a smartphone. My old LG flip phone lasted more than a week on a full charge. I just couldn't do anything with it. Omni seems like it may be on the right side of that line, but I just didn't have enough time to test.

Yet you are. Well, you asked. You have your answer. I certainly will be moving along now. I'll give Omni another try later after it has had more time.
[Xperia Z3 Compact Original Android Development] Kajano:
Hi Skysurfer,

I am using these new version since you recommand it to me. But the BT problem is still there. Every now and then, BT is disconnected to the receiving device (e.g. car radio, alexa, headset, etc.)

And in addition to that, the mobile data icon doesnt work proper. I can see, how my phone is connected to the internet (4G, 3G, etc.), but the signal streght isnt displayed. Maybe a known bug in this version.

Where can I find new versions for the z3c which are maintained?

Greets!
[Xperia Z3 Compact Original Android Development] Kockowan:
Is it possible to switch from CarbonRom-5.1 (Nougat 7.1) to latest lineage-14.1-20180310-unofficial-z3c.zip without wiping all apps?

How to proceed? Thx...
[Xperia Z3 Compact Original Android Development] Nazo:
I don't know if you can technically get away with it, but I strongly recommend against switching different ROM types. But you can make batch backups and restores using TitaniumBackup. Then all you have to actually do is the basic setup and settings. (Actually, if it's backing up through the cloud you only need to restore data and any apps it misses.)
[Xperia Z3 Compact Original Android Development] skysurfer1111:
Hey Kajano,

ok, the last bugfree rom I used was lineage-14.1-20180127-UNOFFICIAL-z3c.zip from mcgi5sr2. Too bad, that he isn't working on it anymore.

You can find it here.

Anyway, I don't have these issues you described. Hope it'll work for you.

Greetz
[Xperia Z3 Compact Original Android Development] .:B:.:
[MENTION=2930971]Kockowan[/MENTION] Don't let the date fool you, this build doesn't include much more than the Android security patches. A cursory look suggests that Carbon is still actively maintained. Lineage 14.1 for the Z3 Compact is not. All I did was build it with the latest security patches.

Edit: I checked the Carbon tree, at least for the Z3 Compact there hasn't been much activity either.
[Xperia Z3 Compact Original Android Development] Kajano:
Hi Sky,

after installing lineage-14.1-20180127-UNOFFICIAL-z3c.zip, the signal strenght is back. Thats cool :)

In the next days, I will check the BT connection. Maybe, it will work. But maybe, my BT chip is broke - for whatever reason. I love my z3c because of it´s size. I don´t want to replace it.

greetz to Berlin :)
[Xperia Z3 Compact Original Android Development] skysurfer1111:
Good for you, but I don't have this issue with the latest ROM from .:B:..

BT issues are often a hardware problem. The antenna connection on the backside of your mainbord is not good anymore. Same with GPS.

Greetz
[Xperia Z3 Compact Original Android Development] mcgi5sr2:
Its a missing symbol, I would grep to find out where it is defined, and make sure that is in the files header
[Xperia Z3 Compact Original Android Development] .:B:.:
It says 'redefinition' in the first line:

include/linux/export.h:40:29: error: redefinition of '__kcrctab_copy_fs_struct'
[Xperia Z3 Compact Original Android Development] .:B:.:
Well I have managed to work around this for now by uncommenting the pesky exit 1 message in vendor/lineage/build/tasks/kernel.mk. I have gotten my hodgepodge to build and it pooped out an image (yay). Now I have to see what's changed from 7.1 to 8.1 I guess... But first I need a backup device so I won't be incomunicado in case faeces hits the proverbial fan.
[Xperia Z3 Compact Original Android Development] mcgi5sr2:
[MENTION=7927349].:B:.[/MENTION] are you using the omni kernel source?
[Xperia Z3 Compact Original Android Development] .:B:.:
No I used your Lineage source. I am comparing repo's though (and will try to backport stuff) before I'll actually try to flash it onto my device.
[Xperia Z3 Compact Original Android Development] 1of16:
good to see someone still loves the z3c :)

a bold question: will you be able to provide monthly builds, so we get the security updates? I don't even ask about LOS 15

my wife uses the z3c and a complete reinstall to use another build is not so easy... :)

I would be more then happy with "only" compiling the ROM, so far I haven't seen any bugs...or my wife never told me :p
[Xperia Z3 Compact Original Android Development] .:B:.:
I will indeed build 14.1 with the April security bulletin once those patches get into the Lineage gerrit (and May, ... as long as I use my Z3 Compact / don't get 15.1 running). LineageOS 14.1 is still my daily driver as well.

15.1 is a long shot. I have a lot of code to go through and most of it I don't understand :D :eek:
[Xperia Z3 Compact Original Android Development] .:B:.:
[MENTION=4901061]mcgi5sr2[/MENTION] can you tell me why export LD_SHIM_LIBS disappeared from root/init.camera.rc in your 15.0 tree? I can't find anything in the git logs. Both OmniROM and CarbonROM 8.x have it (and even LineageOS 14.1 shinano-common still shows it).
[Xperia Z3 Compact Original Android Development] mcgi5sr2:
I removed it as camera shims were not working at the time, and needed updating.
[Xperia Z3 Compact Original Android Development] .:B:.:
Thanks. I'm looking at both OmniROM and CarbonROM trees, so far these are the only ROMs that seem to have Android 8.x for the Z3C. I guess I'll see how far I get when stuff breaks :D. Saw the HTC M8 repos have libshims in htc_msm8974 for 15.1 as well.
[Xperia Z3 Compact Original Android Development] .:B:.:
New build lineage-14.1-20180408-unofficial

You can find the build here (includes the April Android Security Bulletin). I also included a few keystore patches that fix/mitigate Signal's message database getting fried on almost every firmware upgrade.

With the usual a big fat disclaimer: all I achieved is compiling Lineage 14.1 for the z3c; I don't have the skills (or time) to offer any support whatsoever. Checksums are provided alongside. Build works fine here.