• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[9] LineageOS 16.0 for z3c

Status
Not open for further replies.
Search This thread

lord0815

Senior Member
Feb 24, 2011
162
21
Mainz
When the screen is off you can just keep the camera button pressed for a short moment and it will activate the camera. You can choose from the original camera app(have a modified version of it to go with LineageOS as none of the camera apps that I tried didn't have any settings for it) if you want that button to just to launch the camera app, launch the app and take a picture or launch the app and start recording a video. I loved how fast and easy it is to snap a fast picture.

I've tried now Tasker and Button Mapper apps(used root for both) but neither worked from the screen off. With LineageOS(+Gapps Full) the button itself works by default when the screen is on and launches the camera app but quite randomly and not from the lockscreen.. Reason why it worked randomly sometimes I believe is because I didn't have the camera app running every time background; was quite distracted when I tried everything I could think of often at the same time. :silly: Not sure if the camera button for the pictures itself worked the same as originally though as it should first focus and if you keep it pressed then it takes the picture. With Tasker and Button Mapper sometimes it couldn't even take a picture as it seems to work as two different features. In Button Mapper if you bind the camera key it's called Camera. If you keep it pressed few seconds the key gets Shutter name. So it's first Camera button and turns in few seconds to a Shutter button? Seems so or perhaps it was just Button Mappers thing.

Anyhow I don't know much of these things so that's all I can explain probably. :confused:
Hi,

did you try Settings->System->Gestures->Jump to camera? This will open camera if you fastpress the power button twice in standby.
Strang thing is, if i search in settings for camera i got some results, the first one is named 'Camera button' under Settings->System->Buttons, but if i click on that result it does not lead to the right setting...
There is also one result called 'Launch Camera' - ...A long press and release will launch camera...
 
Last edited:

shgth

Member
Jul 29, 2019
12
1
Hi,

did you try Settings->System->Gestures->Jump to camera? This will open camera if you fastpress the power button twice in standby.
Strang thing is, if i search in settings for camera i got some results, the first one is named 'Camera button' under Settings->System->Buttons, but if i click on that result it does not lead to the right setting...
There is also one result called 'Launch Camera' - ...A long press and release will launch camera...
Yeah, "Camera button" does nothing. I can't open camera with pressing it twice on or off screen(tried also to activate camera from off screen with a long press when the setting was disabled to see if it bugs somehow). Tried that search thing and neither shows me the right settings. It's like it might be missing something?
 
Last edited:

pawloland

Senior Member
Jan 23, 2019
184
73
Hi,

did you try Settings->System->Gestures->Jump to camera? This will open camera if you fastpress the power button twice in standby.
Strang thing is, if i search in settings for camera i got some results, the first one is named 'Camera button' under Settings->System->Buttons, but if i click on that result it does not lead to the right setting...
There is also one result called 'Launch Camera' - ...A long press and release will launch camera...
I have older lineage os 14 on my other device and those settings are normally visible and usable.
I think those features were discontinued in later vrsions of lineage but (sorry if i say something stupid) translated srings weren't deleted so search engine can still find them even though they aren't there.
 
Last edited:

NeoArian

Recognized Developer
Nov 25, 2017
1,277
2,916
Sony Xperia Z2
Sony Xperia Z3 Compact
I can confirm that the in-call distortion / noise problem is broken with the latest build again, while it was fixed with the build form 30th June.
I guess it was a pretty dumb mistake by me, I have removed the voiceprocessingdescriptors which seems to be responsible for noise suppression and acoustic echo cancellation. I will readd it with the next build.

I will see about the camera button, it's possible that there is just an overlay missing.

Btw: I have received my new display + frame (the one someone here linked, I don't know who was it but it was 40.99€ iirc) and will replace it soon. I guess my camera button would also work again then.
 
Last edited:

shgth

Member
Jul 29, 2019
12
1
You are the best thing that has happend in my life right now. I hope all will be working :p I mean I got from my father this phone to replace my galaxy s3 lte for free and it was stuck on android 6.0 for updates. Now I have a android 9.0 phone in a small form and waterproof too. Just living the dream :) I'm 35y old btw but unemployed so I get my parents old phones..
 

okij

Senior Member
Oct 24, 2012
1,883
3,795
Düsseldorf
I've tried now Tasker and Button Mapper apps(used root for both) but neither worked from the screen off.

FYI, I described a workaround for this on the cr-6.1 thread: Workaround for launching camera with camera button when screen is off or phone locked, using the Physical Button Master Control 4.0 beta6 Xposed module.

It should work on LineageOS 16 too, so you might give it a try. :)

By now there are newer, more stable versions of EdXposed, I'm currently using the latest EdXposed-SandHook-v0.4.5.5_beta with Riru-Core-v19.4. and EdXposedManager-v4.5.0.
 

shgth

Member
Jul 29, 2019
12
1
FYI, I described a workaround for this on the cr-6.1 thread: Workaround for launching camera with camera button when screen is off or phone locked, using the Physical Button Master Control 4.0 beta6 Xposed module.

It should work on LineageOS 16 too, so you might give it a try. :)

By now there are newer, more stable versions of EdXposed, I'm currently using the latest EdXposed-SandHook-v0.4.5.5_beta with Riru-Core-v19.4. and EdXposedManager-v4.5.0.

Whole post seems so messy so what do I do?!
 

okij

Senior Member
Oct 24, 2012
1,883
3,795
Düsseldorf
Whole post seems so messy so what do I do?!

I described in detail what you have to do in the linked post, it's all explained and pretty much far from "messy". :(

So if you really don't understand what you have to do after reading the post, then I can't help you, sorry.

And if you probably don't know what Magisk and EdXposed is, then please google it and look for it on xda.
 

NeoArian

Recognized Developer
Nov 25, 2017
1,277
2,916
Sony Xperia Z2
Sony Xperia Z3 Compact
I have looked into the camera button settings and recognized that the overlay wasn't set. The next build will include settings for the Camerabutton.
Commit: https://github.com/z3c-pie/device_sony_z3c/commit/a72c927587f70f9c1de78735c0cbe21363275d53
I have attached a screenshot of the settings.

BTW: I have succesfully replaced the screen. Sadly the screen is pretty much worse then the original: floating touch doesn't work, it takes about a second to turn on, the touch is inaccurate and it needs some seconds after a cold boot to be responsible at all (for example when booting to TWRP which is pretty fast it doesn't work for the first seconds). None of these errors have been there before :(
Also i broke my bottom speaker, so i can't test the volume decreasing for now. My camera button problem was sadly not related to the button at the frame, it still doesn't work.
But anyway my phone mostly works again but i can't recommend to get this screen: https://www.ebay.de/itm/Sony-Xperia...204707?hash=item3629d73923:g:1FYAAOSwPkBaWzkF
 

Attachments

  • Screenshot_20190802-150345_LineageOS_Settings.png
    Screenshot_20190802-150345_LineageOS_Settings.png
    81 KB · Views: 240
Last edited:

shgth

Member
Jul 29, 2019
12
1
I have looked into the camera button settings and recognized that the overlay wasn't set. The next build will include settings for the Camerabutton.
Commit: https://github.com/z3c-pie/device_sony_z3c/commit/a72c927587f70f9c1de78735c0cbe21363275d53
I have attached a screenshot of the settings.

BTW: I have succesfully replaced the screen. Sadly the screen is pretty much worse then the original: floating touch doesn't work, it takes about a second to turn on, the touch is inaccurate and it needs some seconds after a cold boot to be responsible at all (for example when booting to TWRP which is pretty fast it doesn't work for the first seconds). None of these errors have been there before :(
Also i broke my bottom speaker, so i can't test the volume decreasing for now. My camera button problem was sadly not related to the button at the frame, it still doesn't work.
But anyway my phone mostly works again but i can't recommend to get this screen: https://www.ebay.de/itm/Sony-Xperia...204707?hash=item3629d73923:g:1FYAAOSwPkBaWzkF
Thank you so much! It was just a sweet button when it worked <3 :D
 

NeoArian

Recognized Developer
Nov 25, 2017
1,277
2,916
Sony Xperia Z2
Sony Xperia Z3 Compact
Good evening

I have had a free day today and spent it on TWRP with decryption. (what a waste of time, no?)
In the end i have had success and basically finished the TWRP tree that i have been working on.
I don't use system vold (the decryption method used, it uses the libraries from the system partition), i have shipped the needed blobs so we don't need a working system image in order to decrypt our data.
The tree can be found here: https://github.com/z3c-pie/twrp_device_sony_z3c/tree/bringup if you want to compile it on your own ( @koron393 ) you have to run the extract-files.sh script and replace vendor/omni/build/tools/extract_utils.sh with the lineage one (if you use minimal manifest). While running the script your device has to be connected to your computer via adb and should be running a recent ROM. I will attach a recovery.img to this post and post #2.


Note that the red "unable to mount storage" message is a known bug, but doesn't seem to break stuff. I will try to get rid of this message.

Have a nice day!
 

Attachments

  • twrp-3.3.1-0-z3c.img
    12.9 MB · Views: 39
Last edited:

NeoArian

Recognized Developer
Nov 25, 2017
1,277
2,916
Sony Xperia Z2
Sony Xperia Z3 Compact
Are there any other changes apart from decryption? :)
Do you refer to TWRP? Then yes, it is completely reworked and updated from android-6.0 to android-9.0. There are no big changes that you directly notice though. Just some small stuff, for example I have added Trim Area to fstab.

Hi,
thanks for the new build - does it include sound/audio fix again?

Best regards
As I have said, my speaker broke while replacing the screen and I haven't got a new one (yet?). It should be hard to test for everyone with a working speaker but it should work.
 
  • Like
Reactions: Spaceoid
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 57
    0aSPzXe.png

    Code:
    /*
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */
    Introduction
    LineageOS, an open-source Android distribution, is available for several devices,
    with more being continuously added thanks to the biggest, yet ever growing, Android open-source community.
    Join us and breathe new life in your device, be it old or new.
    If you don't know LineageOS and would like to read about it before installing it you can take a look at the official Website.

    Images
    Here are some Screenshots of this ROM.
    bOQ82bf.png

    DNrD93e.jpg

    8RZsTTU.jpg

    APeLLBj.png

    OGSBS0p.png

    i9Bs8wZ.png

    yDNON6C.png

    dysZUA3.jpg

    nIOSrmT.png

    Rpr8xvm.png


    Features
    Individuality
    Customization is paramount to productivity.
    That’s why LineageOS promises to push for user personalization and preference.
    Everyone is unique and your device should be too.
    Security
    Your data, your rules. With powerful tools such as Privacy Guard, you are in control of what your apps can do whenever you want.
    Trust will help you understand the security of your device and warn you about possible threats.
    We take security very seriously: that’s why we deliver security updates every month to all our supported devices.
    And to make your device more secure, lock everything behind an enhanced lock screen.
    Longevity
    LineageOS extends the functionality and lifespan of mobile devices from more than 20 different manufacturers thanks to our open-source community of contributors from all around the world.

    Installation instructions
    Prerequisites:
    • Unlocked Sony Xperia Z3 Compact
    • Fastboot drivers to install TWRP
    • Micro-USB Cable to connect your phone to your computer
    Install:
    1. Reboot to TWRP. *
    2. Wipe cache, dalvik cache, data and system.
    3. Format data to get rid of encryption.
    4. Install ROM.
    5. Install 9.0 Gapps for ARM. **
    * recommended TWRP: Post #2
    ** optional

    Update:
    • Get the latest build
    • Boot into TWRP
    • Flash the downloaded build
    • Reboot, if you don't wipe system backuptool will handle to reapply your modifications, for example: GApps.

    Changelog
    Code:
    Changelog 2019-10-07
    * Fixed offmode charging at Wall chargers (previously bright screen)
    * Fixed offmode charging at computers (previously reboot loop)

    Old Changelogs

    Code:
    Changelog 2019-10-06
    * Fixed camera for everyone
    * Set media volume steps to 25 and voice call volume steps to 7
    * Actually use our cache partition, previously we were using a link to /data/cache instead of mounting the cache partition as /cache
    * Cleanup of rootdir scripts
    Code:
    Changelog 2019-08-28
    * Rolled fingerprint back to Sony's 5.1.1 fingerprint
     -> safetynet CTS check works again
    * Set original shipping API level to KitKat
    * Minor cleaning
    Code:
    Changelog 2019-08-14
    * Singificantly improved GPS
    * August Android Security Bulletin
    * Cleaned, script generated vendor
    Code:
    Changelog 2019-08-05
    * Attempt to fix ANT+
    * Added settings to control the camera button
    Code:
    Changelog 2019-07-08
    * July Android Security Bulletin
    * Rebased Linux 3.4.113 Kernel
    -> Solved video recording lags with Snap
    Code:
    Changelog 2019-06-15
    * Fixed Audio problems
    * LED Notifications work again
    * Manual Network selection fixed
    Code:
    Changelog 2019-06-07
    * June Android security Bulletin
    * LED seems to work with notifications now
    * 4.0 Audio HAL -> NO, this does NOT fix our problems :/
    Code:
    Changelog 2019-05-10
    * Enforcing sepolicy
    * Fixed sensors
    * Fixed FM Radio
    * Fixed EXFat, sdfat and vfat
    * Camera works fine
    * May Android Security Bulletin
    * Sound seems fixed - Maximum Volume still decreases still after a few seconds when using internal speakers
    Code:
    Changelog 2019-05-06
    * Fixed AudioFX
    * Fixed Camera
    Code:
    Changelog 2019-04-24
    * Fixed Notification LED
    Code:
    Changelog 2019-02-19
    * Fixed GPS
    * Fixed Video Playback
    Code:
    Changelog 2019-01-09
    * Fixed Bluetooth


    Downloads
    Download the ROM

    Sources
    DEVICE:
    https://github.com/z3c-pie/device_sony_z3c
    https://github.com/z3c-pie/device_sony_msm8974-common
    https://github.com/z3c-pie/device_sony_shinano-common

    KERNEL:
    https://github.com/z3c-pie/kernel_sony_msm8974

    Addons
    OpenGapps
    Magisk
    SU-Addon

    Thanks
    Whole LineageOS Team for this amazing ROM
    @rcstar6696
    @Myself5
    @drakonizer
    @tomascus
    @koron393
    @nailyk
    @SpiritCroc
    I hope I haven't forgot anyone :)

    Bugs
    WHAT'S BROKEN
    • 4K Video recording doesn't work in stock camera, but works for example in OpenCamera.
    • You tell me.


    FAQ
    Q: Why i can't reboot into the recovery from advanced reboot?
    A: Because you have installed Magisk 19.1 which breaks it. Keep up to date here: https://github.com/topjohnwu/Magisk/issues/1418
    - fixed by @Myself5 since 2019.05.20

    XDA:DevDB Information
    [9] LineageOS 16.0 for z3c, ROM for the Sony Xperia Z3 Compact

    Contributors
    NeoArian
    Source Code: https://github.com/LineageOS

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 3.4.x

    Version Information
    Status: Stable
    Current Stable Version: lineage-16-20190510
    Stable Release Date: 2019-05-10

    Created 2019-01-05
    Last Updated 2019-10-10
    14
    Good evening, i guess it's time to share an Android 10 build.

    It is uploading to: https://sourceforge.net/projects/ephedraceae/files/z3c/testing/

    currently bluetooth doesn't work.
    Huge thanks to @koron393 who updated the camera shim to Q sources that fast.

    I wouldn't recommend to use it yet if you actually use your phone, there could be some bugs but it's a great proof of concept for now :D

    Have fun tasting Android 10 on z3c!
    13
    Good evening everyone!

    So i have been doing this LineageOS 16 for Z3 Compact since the 5th of january and it's already more then the half of a year. I think it's time to say thank you to you all. Working on this device is so much fun (it repressed my Xiaomi Mi 6 in my spare time) and also the communication is working just great through XDA at this point. Thanks that you help with testing, contribute with fixing bugs or just listing them or even donating some money to me. We really have a community here i enjoy to work with :) I have spent too many nights while doing stuff here but i never regretted it or had the feeling it wasn't worth.
    I hope that we can continue this project in future and keep this five years old device alive as long as possible. This also motivates me to get a new screen for my 2nd device. I guess i will go with the one @StarGeneral shared.
    In the near future i will also sharea new twrp compiled within an android-9.0 environment as already mentioned here: https://forum.xda-developers.com/showpost.php?p=79892993&postcount=3
    Right now i am stuck on the decryption but i am pretty optimistic that we can get this work, apart from this it seems to work fine. If anyone wants to look at the minimal tree, here it is: https://github.com/z3c-pie/twrp_device_sony_z3c

    However i can tell that there won't be any updates within the next two weeks because i am going on holidays finally :)

    Have a nice time
    13
    Short update about Android 10/LineageOS 17 for Xperia Z3 Compact: Bluetooth and the camera after a reboot has been fixed. I will go through a checklist tomorrow and see about remaining problems, it seems pretty good already so I guess that I can share another build tomorrow.
    Good night!
    11
    TWRP 3.3.1 for our z3c out of an Android 9.0 environment!

    Changes:
    Code:
    3.3.1-0.4-z3c
    * Fixed fastboot boot
    * Added bootlogo
    * Dropped TWRP App

    Code:
    3.3.1-0.3-z3c
    * Fixed encryption when security patch level doesn't match the recovery's
     - [url]https://github.com/z3c-pie/twrp_device_sony_z3c/commit/411862532c247aea2c7b48d52aa596b40305e9ea[/url]

    Code:
    3.3.1-0.2-z3c
    * Added a script to handle the CPU
     -> increased the battery life significant ([url]https://github.com/z3c-pie/twrp_device_sony_z3c/commit/63f864068ad2f17ae2f1202b4edc311d74e2803d[/url])

    Code:
    3.3.1-0.1-z3c
    * Fixed time
    * Further Clean up's

    Code:
    3.3.1-0-z3c
    * Switched from Android 6.0 to Android 9.0 environment
    * Completely reworked tree
    * Working decryption


    The latest build is attached to this post.
    Old builds are available here: https://sourceforge.net/projects/ephedraceae/files/z3c/twrp/
    Source is available at: https://github.com/z3c-pie/twrp_device_sony_z3c/tree/android-9.0

    How to install this build:
    • Rename the downloaded twrp image to twrp.img
    • Reboot to fastboot by holding volume up while connecting your device to your computer
    • Open a terminal and move to the directory with TWRP in it
    • Type
      Code:
      fastboot flash recovery twrp.img
    • Boot into TWRP while the device is powered off press the power and volume down button

    Feel free to ask questions or give feedback about TWRP here .

    Have a nice day!

    Additional information about the recovery on this device:
    First of all we should make the basics clear: On our Z3 Compact we have got a bootloader update which can boot a recovery from powered off state by pressing volume down and the power button. Because we haven't ever had this updated bootloader and not all sony devices received the update, there have been some intelligent people who brought a special init binary which can handle recovery boots during a normal boot. This means when using advanced reboot from the ROM or pressing a volume key while the sony logo appears at boot. https://github.com/LineageOS/android_device_sony_common/commits/lineage-16.0

    To make this work there is this method to extract the ramdisk: https://github.com/LineageOS/androi...eage-16.0/extract_ramdisk/extract_ramdisk.cpp which uses zlib to decompress it. So far so good, zlib can decompress the default compression for recovery ramdisk which is gzip. However LZMA is more effective to reduce the size so we took it's advantage: https://github.com/omnirom/android_...mmit/885b01223a460d3f2500155ea415bdc8573679bc in order to fit recoverys compiled from recent environments (android-9.0 in my case) into our small FOTAKernel partition.

    According to this change the init_sony can't handle the recovery boot anymore because it can't decompress the recovery's ramdisk so nailyk and Diewi (as far as i know) added support to decompress LZMA compressed ramdisk's with this chain: https://github.com/sonyxperiadev/device-sony-common-init/pull/20/commits
    However these commits have never been merged into the LineageOS/android_device_sony_common nor the sonyxperiadev/device-sony-common-init. Since your ROM, CarbonROM, is using a fork of LineageOS/android_device_sony_common is missing these commits the recovery boot fails with a kernel panic, like this: https://del.dog/egawososux.htm

    So you can either use a recovery which doesn't compress the ramdisk with LZMA (for example the one from here: https://forum.xda-developers.com/z3-compact/development/recovery-twrp-3-2-3-0-aries-t3837192 or ask your ROM developer to pick the according commits into the sony_common tree/use my fork of LineageOS's one https://github.com/z3c-pie/android_...mits/fa85dfcc07f42d73f9a1abf1f4c82d8bf0486a93 which would enable you to use recent TWRP builds with a LZMA compressed ramdisk.

    I hope i presented it clearly and in the right way,
    Have a nice day!

    EDIT: Minimized patch for LZMA is available here: https://review.lineageos.org/c/LineageOS/android_device_sony_common/+/252923