[Q] Disabling fingerprint sensor - FPC1020 - Xiaomi Redmi 4X Questions & Answers

Dear R4X users,
I am facing an issue since i bought this phone. I was using stock Global ROM for a while, after that I flashed LOS14 and now I am using Havoc OS. The thing that happens on every ROM is that touching fingerprint sensor wakes phone. I did not set up any fingerprints, I just skipped that configuration step. Is there option to disable that sensor? I cannot find anything in the settings, but I read somewhere that it should be possible to do by disconnecting device from driver via linux commands. Does anyone know how to find driver and device path? There are no matches when I scan all filesystem for "fpc".
Or does anyone know another way to disable that sensor?
Cheers.

follow this:
https://forum.xda-developers.com/xiaomi-redmi-4x/how-to/fixes-redmi-4x-t3858845

foneiamone said:
follow this:
https://forum.xda-developers.com/xiaomi-redmi-4x/how-to/fixes-redmi-4x-t3858845
Click to expand...
Click to collapse
I do not have this file present as I did not add any fingerprints. Altough I skipped fingerprint configuration, that sensor is still active and any touch wakes my phone.

Since no one could help me, I had to work it out myself. If anyone has the same problem, that's the solution:
Run this command:
echo -n "soc:fpc1020" > /sys/bus/platform/drivers/fpc1020/unbind
Fingerprint sensor is now inactive until next reboot.

Also, this thread can be closed now.

Related

[ROM][LINK] Sailfish OS Droid 4 maserati

I DID NOT MAKE THIS ROM!!!!!! - A developer by the name of TheKit made this rom, so do not give me any credit for this rom, give it all to them.
I am simply linking it because I love this phone, I love Sailfish OS on it, and I think a lot of people would enjoy Sailfish OS on it as well and just don't know it is available.
Q: "What is Sailfish OS and why should I use it?"
A: Sailfish OS is a great OS for many reasons. Having used multiple android roms I can attest to the fact that:
1. It has MUCH better battery life (however it has a weird battery read bug, see issues below)
2. It is MUCH faster and generally more stable when it comes to the things that work (your calls won't drop, your system won't lock up due to lack of ram, etc.)
3. It has a great gesture driven UI that is a joy to use and very gorgeous to look at. No more of this all white bull**** Google has been forcing down our throats since 2014
Q: "How good is the battery life?
A: After a day of playing cave story at work and reading discord and listening to music, I am at about 30-40% end of day (I start at 8:30AM, stop at 4:00PM)
Okay now that the Q/A segment is over, lets get to the real meat
ISSUES
1. Battery Read is wonky, it only goes in 10% increments until it reaches 20%, then it starts going in 5% increments
2. If you use the 2.1.3.7 build keyboard backlight is broken, but it works fine on the 2.1.0.11 build
3. Bluetooth is wonky, I was able to play audio through speakers in the 2.1.3.7 build...
4. FM Radio is broken too
5. As the maemo-talk thread says, CDMA is untested, and like on Photon Q, most likely does not work. GSM works great though! :good:
6. The old 2.1.0.11 build has a slew of issues compared to the new 2.1.3.7 build. These include data not working out of box, wifi requiring a reboot to work, and auto rotation not working in a majority of apps by default. Consult this thread and the maemo talk thread for more help, and if you want rotation anywhere, install patchmanager 2.0 and auto rotate anywhere from warehouse for sailfish os.
Alien Dalvik install tutorial
I did not make this and do not know who did. the developer claims someone threw a brick at them with an sd card attached. The sdcard contained links to these files in the form of a text file names "monkeyAIDS.txt"
https://drive.google.com/file/d/1mS6di1jYfVeDoFBjcANS6SmfkhGyEKoa/view - AD Jolla C (different from the Turing phone rpm, this is built for 3.1.x kernels)
http://sfos.scanf.su/maserati/alien-patched.tar.gz
So extract both files to your ~/ (home) directory and type in the following:
devel-su
[insert root password you set in settings]
zypper in [alien dalvik rpm]
rsync -a /home/nemo/alien/ /opt/alien/
ln -s /vendor /opt/alien/system/vendor
reboot
OPTIONAL: fix for the default 320PPI value
devel-su
[insert root password]
vim /opt/alien/system/build.prop
change ro.sf.lcd.density to the value of your choosing (Droid 4 is 256)
Keyboard Backlight Fix, works on 2.1.0.11, don't know about 2.1.3.7 -- Thank you @moodroid for this legendary patch!
On <2.1.3.7, I got the keyboard backlight to work by creating an /etc/mce/20backlight.ini with:
[KeyPad]
BrightnessDirectory=/sys/class/leds/keyboard-backlight
Then do 'pkcon install mce' and 'systemctl restart mce'.
Download Links
Here is the thread with the Download Link to the 2.1.0.11 build
https://talk.maemo.org/showthread.php?t=99031&page=9
If you don't mind a lack of keyboard backlight and want a more up to date build, grab the new and fabulous leaked 2.1.3.7 Build:
https://drive.google.com/file/d/1k3MOCrMvbFb114Omf0MzSvnQ7wBkTiWH/view?usp=sharing
Basically if you are fed up with how ****ty the latest Lineage OS builds are and just want to try something new, give this a try. Why not? What have you got to lose. All in all great work by TheKit and I am very happy with the port as it is and I think you will be too.
Hi,
On <2.1.3.7, I got the keyboard backlight to work by creating an /etc/mce/20backlight.ini with:
[KeyPad]
BrightnessDirectory=/sys/class/leds/keyboard-backlight
Then doing 'pkcon install mce' and 'systemctl restart mce'.
Hope you get the OK to share your AD success!
Thanks
moodroid said:
Hi,
On 2.1.3.7, I got the keyboard backlight to work by creating an /etc/mce/20backlight.ini with:
[KeyPad]
BrightnessDirectory=/sys/class/leds/keyboard-backlight
Then doing 'pkcon install mce' and 'systemctl restart mce'.
Hope you get the OK to share your AD success!
Thanks
Click to expand...
Click to collapse
dude you are a legend!
I would add that to the OP but you are first comment so anyone viewing the op will see this. I will definitely tell TheKit about this (then again, he gave you the 2.1.3.7 build so you can just tell them yourself)
Greetings,
I've been playing around with SailfishOS on my Droid 4 in the past few days, and I have a few questions about the whole thing. TheKit publicly shared a 2.1.3.7 build for the Droid 4 on his thread at Maemo, is that the one you are talking about or is it a different build? As someone mentioned this specific build seems to have issues with wifi, and I have the same problem. I can't post links, but the download link to the build I mentioned is on page 12.
The 2.1.0.11 build seems to work fairly well, however I wasn't able to install Alien Dalvik. After the installation the "Android Support" button does show up in the settings app, however nothing happens when I click the start button. I also attempted installing an apk both via the GUI (by clicking on it in the downloads) and via the command line by using "apkd-install", but it doesn't seem to work. Full log of the installation process attached.
I talked with TheKit, and the 2.1.3.7 build I mentioned (the one at page 12) is indeed outdated. He just updated the OP at Maemo and added the latest 2.1.3.7 build, which I just flashed and it's working great. Also installed Alien Dalvik following the instructions in the OP and it seems to be working fine as well! However I wasn't successful with the backlight fix method yet.
For anyone wondering how I flashed the latest build I went CM11 --> SailfishOS 2.1.0.11 --> SailfishOS 2.1.3.7 (rel2).
NIKKOS said:
I talked with TheKit, and the 2.1.3.7 build I mentioned (the one at page 12) is indeed outdated. He just updated the OP at Maemo and added the latest 2.1.3.7 build, which I just flashed and it's working great. Also installed Alien Dalvik following the instructions in the OP and it seems to be working fine as well! However I wasn't successful with the backlight fix method yet.
For anyone wondering how I flashed the latest build I went CM11 --> SailfishOS 2.1.0.11 --> SailfishOS 2.1.3.7 (rel2).
Click to expand...
Click to collapse
Hi Nikkos,
Sorry - that was me that posted the backlight fix, and I agree that it doesn't work on 2.1.3.7-rel2. It'd worked on every other version I tried, and I've now edited my post above. Glad everything is working.
Sorry again
moodroid said:
Hi Nikkos,
Sorry - that was me that posted the backlight fix, and I agree that it doesn't work on 2.1.3.7-rel2. It'd worked on every other version I tried, and I've now edited my post above. Glad everything is working.
Sorry again
Click to expand...
Click to collapse
No worries.
If anyone is wondering how to change the SailfishOS UI scale (I find the default one to be way too big) here's how I did it via the terminal:
Code:
devel-su
rm /etc/dconf/db/vendor.d/locks/silica-configs.txt
dconf write /desktop/sailfish/silica/theme_pixel_ratio value
I believe the default value should be around 1.1; you can also reset the value to stock with:
Code:
dconf reset /desktop/sailfish/silica/theme_pixel_ratio
or read the value with:
Code:
dconf read /desktop/sailfish/silica/theme_pixel_ratio
Not exactly droid 4 related, but thought I'd share.
Okay, I got the backlight to turn on!
Type the following in the terminal:
Code:
devel-su
echo 255 >/sys/class/leds/keyboard-backlight/brightness
It seems to properly react to some triggers like standby after being turned on but not to others like sliding the keyboard in and out (which means it will always stay on if the screen is on, regardless if it's been slided in or out). My assumption is that the keyboard sliding trigger got broken in some way, as I believe that's the way the backlight is being turned on. The events which trigger the backlight seem to be stored in the file /sys/class/leds/keyboard-backlight/trigger, so I assume that would be a good starting point to attempt fixing this.
The keyboard backlight intensity can also be changed, just change the 255 to a different value (it goes from 0 to 255).
Note: this change is not permanent, it will need to be applied again at reboot. Writing a script which executes the above commands at boot should be trivial though, and I will include instructions when I get it done myself.
EDIT:
Here's how to make the change permanent. Following these instructions you will create a Systemd service which will turn the backlight on when active and off when inactive; it will automatically run at boot and it can also be controlled like any other Systemd service (i.e. using systemctl via the terminal)
Type the following commands through the terminal:
Code:
devel-su
cd /etc/systemd/system
touch keyboard-backlight.service
chmod 744 keyboard-backlight.service
You will now need to edit the keyboard-backlight.service file with a text editor (either vim or nano will do, vim comes preinstalled, nano does not). Depending on your preferred text editor, type the following:
Code:
vim keyboard-backlight.service
or
Code:
nano keyboard-backlight.service
Now write the following to the file and save it:
Code:
[Unit]
Description=XT894 keyboard backlight service
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 255 >/sys/class/leds/keyboard-backlight/brightness"
ExecStop=/bin/sh -c "echo 0 >/sys/class/leds/keyboard-backlight/brightness"
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Now type the following to enable the service:
Code:
systemctl enable keyboard-backlight.service
That's it. You can now control the service by using the following:
Code:
systemctl start keyboard-backlight //This will turn the backlight on
systemctl stop keyboard-backlight //This will turn the backlight off
systemctl status keyboard-backlight //This will display the service status
Can anyone share the google drive file from the first post? Is there an alternative link available? Or could you PM me a google drive link? Thanks!
Can anyone suggest the best/correct ROM-slot size for TWRP?
Is it still like for CM/LOS:
800MB for system
10MB for cache
and rest for data as one likes?

[ROM][6.0.1][UNOFFICIAL]LineageOS 13.0 for Huawei Ascend P6S-U06 & P7-L10

LineageOS 13.0 for Ascend P6S-U06 and P7-L10​
Works:​
Audio
Video
HW Codecs
RIL (Calls, SMS, USSD, Mobile Data)
Wifi / Bluetooth
Camera
Sensors
GPS
Live Display
NFC
Doesn't work:
FM Radio
Bugs:
Doesn't work "Best Shot" and "Time Lapse" camera modes
Might be problems with playback of some video clips
Random camera app FC (P7 only)
Maybe something else could be found
Includes:
SU (in developer settings)
GAPPS nano
Stock HwCamera app
Resolution switch to 720p (for P7)
Network Traffic Monitor in status bar
Navbar height adjustment
Trebuchet launcher replaced with Lawnchair launcher
TWRP 3.2.3
OTA updates
F2FS and SDCardFS support
Requirements:
Unlocked bootloader
Stock firmware B6XX or B8XX
TWRP 3.0.3
Installation:
Backup boot, system, data partitions in TWRP to have a chance to rollback. Internal storage won't be affected so you don't have to back it up.
Make standard wipe (Wipe - > swipe)
Install zip
Installation sequence is mandatory!
Note: This ROM doesn't support HiSuite and Huawei Backup, so to backup / restore your contacts, sms, app settings, etc use your Google account or any other third party methods, like Titanium Backup, for example.
Important: High Performance profile in Battery menu of Settings activates 1996MHz CPU frequency. If your device has stability issues at this frequency (random reboots), don't use this profile.
Source code:​ Kernel: https://github.com/Kostyan-nsk/hwp6s-kernel/tree/cm-13.0
Device:
https://github.com/Kostyan-nsk/android_device_huawei_hi6620oem-common
https://github.com/Kostyan-nsk/android_device_huawei_p6s_u06
https://github.com/Kostyan-nsk/android_device_huawei_p7_l10
Hardware: https://github.com/Kostyan-nsk/android_hardware_huawei_hi6620oem
Vendor: https://github.com/Kostyan-nsk/android_vendor_huawei_hi6620oem-common
Download: http://90.188.41.54/builds/
Updates:
2018-12-24:
ASB 2018-10
Working NFC
2019-02-06:
ASB 2018-12
Fixed bug which was causing boot-loop if you had ExFAT-formatted SD card.
Fixed wakelock release in WeatherUpdateService of LockClock app which in some case was causing battery drain.
YahooWeatherProvider was replaced by OpenWeatherMapProvider because Yahoo changed API.
Added "Sweep to Sleep" option in display settings.
2019-03-01:
ASB 2019-01
Fixed unzip symlink in TWRP.
2019-12-08:
ASB 2019-04
Included fix of "transparent" video playback bug.
Lawnchair updated to version 2.0; recommended make backup of Lawnchair settings because after update they will be dropped to defaults.
TWRP updated to version 3.3.1-0.
I've flashed it and performance wise it's really good but I've found 2 bugs:
1 Video playback, at least on YouTube (the audio and video are out of sync and maybe it's caused because your kernel may be based on the one with overclocking, which had the same issue, maybe you could base your kernel on the stock one)
2 NFC (the toggle is there but it doesn't want to turn on)
Anyway, apart from that, you've done a really great job :good:
EDIT: I've also found that the sdcard is recognized but it complains that it is unsupported
alvarocraftermc said:
I've flashed it and performance wise it's really good but I've found 2 bugs:
1 Video playback, at least on YouTube (the audio and video are out of sync and maybe it's caused because your kernel may be based on the one with overclocking, which had the same issue, maybe you could base your kernel on the stock one)
Click to expand...
Click to collapse
Unfortunately, stock kernel is uncompatible with this ROM. Actually, I thought the problem with out of sync audio was solved. I'll try to find the solution.
alvarocraftermc said:
2 NFC (the toggle is there but it doesn't want to turn on)
Click to expand...
Click to collapse
If you can, try to save logs. From adb shell or terminal (can be enabled in developer settings) before enabling NFC run the following commands:
Code:
logcat -c
start logcat
start kmsgcat
Then try to enable NFC and after unsuccessful try execute next commands:
Code:
stop logcat
stop kmsgcat
After that, there's gonna be two files: /tmp/logcat and /tmp/log_kmsg
Upload them here.
alvarocraftermc said:
EDIT: I've also found that the sdcard is recognized but it complains that it is unsupported
Click to expand...
Click to collapse
Actually, there were not complains about SD card. May be you have to format it. And don't try to enable adpotable storage - device doesn't support hardware encryption.
The video problem seems to be gone . Whenever I can I'll send you logs about NFC. I've also found a bug when I turn on wifi and connect my Bluetooth headphones at the same time, wifi disconnects slot but not with wired headphones. I'll send logs about that too. About the SDCARD I'll try to format it with the phone
alvarocraftermc said:
The video problem seems to be gone . Whenever I can I'll send you logs about NFC. I've also found a bug when I turn on wifi and connect my Bluetooth headphones at the same time, wifi disconnects slot but not with wired headphones. I'll send logs about that too. About the SDCARD I'll try to format it with the phone
Click to expand...
Click to collapse
i would love to use this rom if it has nfc
(btw i posted a way to unlock this phone so you can install this rom without the huawei unlock page that is now down in the ascend p7 general section)
Kostyan_nsk said:
Unfortunately, stock kernel is uncompatible with this ROM. Actually, I thought the problem with out of sync audio was solved. I'll try to find the solution.
If you can, try to save logs. From adb shell or terminal (can be enabled in developer settings) before enabling NFC run the following commands:
Code:
logcat -c
start logcat
start kmsgcat
Then try to enable NFC and after unsuccessful try execute next commands:
Code:
stop logcat
stop kmsgcat
After that, there's gonna be two files: /tmp/logcat and /tmp/log_kmsg
Upload them here.
Actually, there were not complains about SD card. May be you have to format it. And don't try to enable adpotable storage - device doesn't support hardware encryption.
Click to expand...
Click to collapse
here are my logs for the same nfc problem
Kostyan_nsk said:
Unfortunately, stock kernel is uncompatible with this ROM. Actually, I thought the problem with out of sync audio was solved. I'll try to find the solution.
If you can, try to save logs. From adb shell or terminal (can be enabled in developer settings) before enabling NFC run the following commands:
Code:
logcat -c
start logcat
start kmsgcat
Then try to enable NFC and after unsuccessful try execute next commands:
Code:
stop logcat
stop kmsgcat
After that, there's gonna be two files: /tmp/logcat and /tmp/log_kmsg
Upload them here.
Actually, there were not complains about SD card. May be you have to format it. And don't try to enable adpotable storage - device doesn't support hardware encryption.
Click to expand...
Click to collapse
Ok, first of all, I've formatted the sdcard and now it works. I've also taken logs about the NFC not turning on. I don't know anytning about this stuff but I've seen that there's some .so files that aren'lo loading properly and some .config files that I've checked to see if they were there but they weren't. Lets see if you can get anything useful out of them.
https://drive.google.com/open?id=1MhIXDstdCnbA2lpVh-YIBun_ne91MG3C
alvarocraftermc said:
Ok, first of all, I've formatted the sdcard and now it works. I've also taken logs about the NFC not turning on. I don't know anytning about this stuff but I've seen that there's some .so files that aren'lo loading properly and some .config files that I've checked to see if they were there but they weren't. Lets see if you can get anything useful out of them.
https://drive.google.com/open?id=1MhIXDstdCnbA2lpVh-YIBun_ne91MG3C
Click to expand...
Click to collapse
Check PM please.
Kostyan_nsk said:
Check PM please.
Click to expand...
Click to collapse
OK. I'll check.
Check for OTA-update on your devices - update with working NFC is out.
Thanks for testing to @DrPiggy and @alvarocraftermc
i have p7-l10, i installed this rom...from b852... cant start.... my phone keep restarting
cost82el said:
i have p7-l10, i installed this rom...from b852... cant start.... my phone keep restarting
Click to expand...
Click to collapse
It means you didn't follow installation instruction.
I have a doubt, this rom supports this kernel :
https://forum.xda-developers.com/as.../kernel-huawei-ascend-p6s-p7-k-tuned-t3355223
arth4X said:
I have a doubt, this rom supports this kernel :
https://forum.xda-developers.com/as.../kernel-huawei-ascend-p6s-p7-k-tuned-t3355223
Click to expand...
Click to collapse
No, that kernel is not compatible with this ROM.
Does this ROM work P7L00? Has anyone tried?
what a great Xmas present all working as a charm, at least what I use on a daily basis. A bit of battery drain but it's like the P7 that should have always been!
So many thanks for this rom. But i have a lot of problems. Bluetooth headspeaker not working with call(I paired, call checked on Bluetooth, Bluetooth headset checked on call screen and all sound full but not speaking and not listening). I can listening music lowly with Headphone but all sound is full. And last one, install Magisk but I can't pass Safetynet (Please give me advice).
ayberkarslan00 said:
So many thanks for this rom. But i have a lot of problems. Bluetooth headspeaker not working with call(I paired, call checked on Bluetooth, Bluetooth headset checked on call screen and all sound full but not speaking and not listening). I can listening music lowly with Headphone but all sound is full. And last one, install Magisk but I can't pass Safetynet (Please give me advice).
Click to expand...
Click to collapse
For Magisk you need a version of kernel => 3.8
---------- Post added at 04:18 AM ---------- Previous post was at 04:13 AM ----------
Battery drain on my cellphone (P7) is very high. 5 or 6 hours lasts the battery charge, some recommendation?
ayberkarslan00 said:
So many thanks for this rom. But i have a lot of problems. Bluetooth headspeaker not working with call(I paired, call checked on Bluetooth, Bluetooth headset checked on call screen and all sound full but not speaking and not listening). I can listening music lowly with Headphone but all sound is full.
Click to expand...
Click to collapse
Unfortunately, I don't have bluetooth headset to test it. I was testing bluetooth in A2DP playing music only.
arth4X said:
Battery drain on my cellphone (P7) is very high. 5 or 6 hours lasts the battery charge, some recommendation?
Click to expand...
Click to collapse
Explain better please. The problem is with battery drain or with very long battery charge?
I would recommend Wakelock Detector or BetterBatteryStats to find out the source of battery drain.
If the problem with battery charge, I would recommend replace charger or wire or both better.
Kostyan_nsk said:
Explain better please. The problem is with battery drain or with very long battery charge?
Click to expand...
Click to collapse
in my case it's battery drain. As advised, I installed wakelock detector which showed me the Google SMS messages app that I installed was the reason for the battery drain.
I have removed it and reverted to the built-in SMS messages app.

Fingerprint issues

Hi all,
Recently I received my new Xiaomi mi8. Yesterday I was finally able to unlock the bootloader after 15 days. After that I started installing custom roms. All seems to work quite well except for the fingerprint sensor.
The fingerprint sensor works fine on any Xiaomi rom. However, it does not seem to work on any other custom rom. When installing Lineage OS 16 I am able to register fingerprints in the setup flow. After that I am able to unlock the phone exactly once with the finger print. After that the fingerprint system stops working (there is no haptic feedback anymore as well when pressing your finger on the sensor). In logcat I see the following messages when I try to unlock with the fingerprint:
Code:
04-27 17:42:53.924 4316 4316 F linker : CANNOT LINK EXECUTABLE "/vendor/bin/hw/[email protected]": library "[email protected]" not found
04-27 17:42:53.926 4317 4317 F linker : CANNOT LINK EXECUTABLE "/vendor/bin/hw/[email protected]": library "vendor.
I have tried wiping everything multiple times (factory reset, format data, format dalvik + cache + system etc). I have tried flashing roms in a certain order (from xiaomi to custom). I have tried installing the latest firmware from
Code:
https://xiaomifirmwareupdater.com/
(latest stable and weekly). I have tried an older version of TWRP. Sadly, none of these steps worked in resolving the issue.
That's why I would really appreciate if someone could help me out in this :angel:! Thanks!
EDIT
After deleting the following files I am able to register new finger prints. After that I am able to unlock the device exactly once.
Code:
/data/system/locksettings.db
/data/system/user/0/fpdata
/data/system/user/0/settings_fingerprint.xml
marvingfx said:
Hi all,
Recently I received my new Xiaomi mi8. Yesterday I was finally able to unlock the bootloader after 15 days. After that I started installing custom roms. All seems to work quite well except for the fingerprint sensor.
The fingerprint sensor works fine on any Xiaomi rom. However, it does not seem to work on any other custom rom. When installing Lineage OS 16 I am able to register fingerprints in the setup flow. After that I am able to unlock the phone exactly once with the finger print. After that the fingerprint system stops working (there is no haptic feedback anymore as well when pressing your finger on the sensor). In logcat I see the following messages when I try to unlock with the fingerprint:
Code:
04-27 17:42:53.924 4316 4316 F linker : CANNOT LINK EXECUTABLE "/vendor/bin/hw/[email protected]": library "[email protected]" not found
04-27 17:42:53.926 4317 4317 F linker : CANNOT LINK EXECUTABLE "/vendor/bin/hw/[email protected]": library "vendor.
I have tried wiping everything multiple times (factory reset, format data, format dalvik + cache + system etc). I have tried flashing roms in a certain order (from xiaomi to custom). I have tried installing the latest firmware from
Code:
https://xiaomifirmwareupdater.com/
(latest stable and weekly). I have tried an older version of TWRP. Sadly, none of these steps worked in resolving the issue.
That's why I would really appreciate if someone could help me out in this :angel:! Thanks!
EDIT
After deleting the following files I am able to register new finger prints. After that I am able to unlock the device exactly once.
Code:
/data/system/locksettings.db
/data/system/user/0/fpdata
/data/system/user/0/settings_fingerprint.xml
Click to expand...
Click to collapse
Hi. How to delete this file? The fingerprint system stop working and i don't resolve

[ROM][UNOFFICIAL][10][Q]LineageOS 17.1 for z5c (suzuran)

Hi all:
Here is a LineageOS 17.1 ROM for Z5 compact (suzuran).
Download 2022-09-11
This is a 7z archive with the zip'ed rom and the md5 file in it. Please unpack this archive, copy the included two files somewhere to your device, reboot into TWRP and flash this zip file. Enable md5sum checking. The zip file itself is not signed, so you have to disable zip verification.
Kernel sources
Tree sources
Features:
OS Version: 10.0 (Q)
Kernel: Linux 3.10
Kernel 3.10.108
New: Android security patch level: 5 September 2022
Using sony blob's from stock version 32.4.A.1.54
Memory issues finally fixed!
Battery consumption significantly reduced! For further reduction, please follow these instructions.
Google Pay does not give an error when starting the app. This does not mean, that payment is working. I can't test it, because I don't use this feature at all. Please report if it's working or not.
Updated aptX encoder blobs.
P2P-Crashes fixed.
Important informations:
You should be familiar with general installation of custom ROMs.
Required for installation: TWRP 3.2.1 (pick the version from 2018-02-23!!!) There is a version 3.2.3 out there, but with that version I had problems to restore my backups. 3.2.1 is just working perfect for me!
OR use my self built TWRP-version 3.6.2!
This ROM needs a clean install, old /data may cause problems!
This ROM is NOT pre-rooted.
It is highly recommended that your device is running (or HAS RUN in the past!) the latest stock ROM from Sony (32.4.A.1.54) before flashing this ROM.
Otherwise the baseband files may not match.
Working:
Bluetooth
Camera; both built-in camera (Snap) and 3-rd party camera apps.
Snap may be a little bit laggy, please use 3-rd party camera app instead; for example OpenCamera. If you're running into errors, please report.
Enforced SELinux support (see attached screenshot)
Fingerprint
FM-Radio
GApps (pick this version: ARM64, 10.0, pico [tested])
German app AusweisApp2 working (see this post)
GPS
Headset
LiveDisplay (see attached screenshots)
Location services
Notification LED
Offline charging
Phone calls (see attached screenshot)
SafetyNet test passed successfully
Signed build
SMS
Torch
WiFi
These things are NOT (or badly) working:
Camera focus at low distances.
Encryption
Payment
Streaming (mirroring)
VoLTE
Maybe some more things are not working.
If you have problems with GApps:
Sometimes the SetupWizard of GApps crashes on and on. Then you have to boot into TWRP, mount system, and go into terminal, where you have to delete SetupWizard (see screenshots):
Code:
cd /system/system/priv-app
rm -rf SetupWizard
Reboot.
Use this rom at your own risk! It comes without any warranty! I'm not responsible for any damage! If you don't agree with that, don't try to flash this rom in any way.
Benefits:
Added F-Droid and UnifiedNLP! If you don't want this, simply de-install it.
I've set maximum speaker volume to a higher value.
I've increased microphone gain.
I've changed the microfone gain to avoid echo in phone calls.
Changelog
Troubleshooting:
If you're running into an error, please search in this thread if this error is already posted, before you post it again!
If not, I need a LOG to see what went wrong. Without a LOG I can't help you!
A LOG can be fetched by connecting the device with an USB cable to your PC and then by typing these commands line by line:
Code:
adb root
adb shell logcat -b all -d > logcat
Send my this LOG file via PM.
If you think this could be a SELinux related issue, please try to set the device to permissive mode first.
If the issue is gone, I need the policy file too (plus LOG). Fetch it by typing this line in a terminal:
Code:
adb pull /sys/fs/selinux/policy
If you stuck in a bootloop you can fetch a LOG with this trick:
Press the power button and the volume up button together until the device shuts down.
HOLD the power button.
Release the volume up button and press the volume down button immediately after releasing the volmue up button.
The device should start into TWRP recovery.
Tap on "Advanced", then on "Terminal" and enter these commands line by line:
Code:
cd sys/fs/pstore
cp * /sdcard
Send me the copied file(s), if any, via PM.
Hi Bernie,
First things first : Thank you so much for your amazing work on this device.:highfive:
So hard to find a good, compact and up to date smartphone.
So i tried your Los17.1 and i just noticed another issue : ram usage.
Without nor the gapps neither other apps installed, the system is using 1.6go ram (even the keyboard can take time to appear once you launch an app)
On your Los14.1 (i tried with the last one you created, a few days ago) : it would be something like 0.8go ram (so everything run smoother) still without gapps and other apps / settings.
Maybe, now our days, 3go ram is mandatory for android + gapps + 3rd party ...
Ryu--X said:
So i tried your Los17.1 and i just noticed another issue : ram usage.
Without nor the gapps neither other apps installed, the system is using 1.6go ram (even the keyboard can take time to appear once you launch an app)
Click to expand...
Click to collapse
I know about that. I've tried with gapps and I can confirm that ram is running out of free space. Sometimes the system is not responding any more (screen is flickering and it seems that nothing happens) and I have to restart it (press power button quite a long time until power menu appears).
It is indeed far away from being a daily driver... :angel:
Another issue: It seems that location services (gps) are not working.
Does anybody confirm that?
Although Bernard warmed us that this ROM is not precisely ready yet, I tried to give it a go, Twice, already. At each time, some variations: with and without gapps (Pico and Nano), via the recommended TWRP and the 3.3.1 one. The result is always the same: after the language selection, my phone reboots on the 'Just a sec', endlessly. I have to restore a nandroid backup, on order to have a working phone again.
Sent from my Xperia Z5 Compact using XDA Labs
Berni-0815 said:
It is indeed far away from being a daily driver... :angel:
Another issue: It seems that location services (gps) are not working.
Does anybody confirm that?
Click to expand...
Click to collapse
I can confirm that unfortunately GPS isn't working.
By the way, i saw many other good roms on many devices ... that had an alpha rom far worse than this one
casouzaj said:
Although Bernard warmed us that this ROM is not precisely ready yet, I tried to give it a go, Twice, already. At each time, some variations: with and without gapps (Pico and Nano), via the recommended TWRP and the 3.3.1 one. The result is always the same: after the language selection, my phone reboots on the 'Just a sec', endlessly. I have to restore a nandroid backup, on order to have a working phone again.
Sent from my Xperia Z5 Compact using XDA Labs
Click to expand...
Click to collapse
i didn't have this behavior on my tests, but i usually let the system start and wait for few minutes before using it (especially on 1st boot).
Also, i always reboot once after the 1st boot.
Hope it will help
casouzaj said:
after the language selection, my phone reboots on the 'Just a sec', endlessly.
Click to expand...
Click to collapse
Clean install?
That should not happen...
Ryu--X said:
I can confirm that unfortunately GPS isn't working.
Click to expand...
Click to collapse
You have to enable google's location service in location settings. With that, maps is working with correct location; but I don't know if the location comes from gps, wlan or network. It's raining since many days and I don't want to stand outside in the rain and wait for gps connection... :angel:
I've tried to install f-droid and their location services; no better results...
By the way, i saw many other good roms on many devices ... that had an alpha rom far worse than this one
Click to expand...
Click to collapse
Yes, I know. The problems are always the closed-source binaries from qualcom and sony that are not properly working on LineageOS versions > 14.1
We're working on it but I'm not able to say if we can fix these issues.
BTW: Is anyone able to make an outgoing call successfully?
Berni-0815 said:
Clean install?
That should not happen...
Click to expand...
Click to collapse
Yup,, every single time!
Sent from my Xperia Z5 Compact using XDA Labs
As I said, that should not happen...
Berni-0815 said:
BTW: Is anyone able to make an outgoing call successfully?
Click to expand...
Click to collapse
i tried both calling and receiving a call without issue.
Just a pop up saying mobile network is unavailable ,at the end ,when i hang up (but it's wrong, network is still available)
Ryu--X said:
i tried both calling and receiving a call without issue.
Just a pop up saying mobile network is unavailable ,at the end ,when i hang up (but it's wrong, network is still available)
Click to expand...
Click to collapse
Weird! At my device this popup comes in the moment when trying to make an outgoing call. And this call is not started! The other end does not ring!
Could you please tell us, which preferred network type is set in *#*#info#*#* "Phone info" and in "Mobile network settings" (see screenshots)?
I'm not on any aspect a Dev but I give you all my energy on continuing the developpment of this ROM.
Any other support available ?
Berni-0815 said:
Weird! At my device this popup comes in the moment when trying to make an outgoing call. And this call is not started! The other end does not ring!
Could you please tell us, which preferred network type is set in *#*#info#*#* "Phone info" and in "Mobile network settings" (see screenshots)?
Click to expand...
Click to collapse
Here it is !
And you can make an outgoing call sucessfully? The other end rings and you can make a call?
Berni-0815 said:
And you can make an outgoing call sucessfully? The other end rings and you can make a call?
Click to expand...
Click to collapse
Yes exactly , both ways are ok (incoming and outgoing).
Ryu--X said:
Yes exactly , both ways are ok (incoming and outgoing).
Click to expand...
Click to collapse
Hmmm. Then is must be a problem with my german providers (with their apn I think); I've tested two: T-Mobile and O2. With both I can't make outgoing calls...
New version out; see 1st post
Berni-0815 said:
Hmmm. Then is must be a problem with my german providers (with their apn I think); I've tested two: T-Mobile and O2. With both I can't make outgoing calls...
Click to expand...
Click to collapse
Pretty strange, indeed.
The phone i tested with is on another provider than my z5c.
I got to say that i checked the apn before making my tests, and they were good.
I will retry with the new version tonight .
Thanks
The APN shouldn't matter for regular calls unless you're using Wifi calling or VoLTE, maybe disable both and see if it works.

[ROM][UNOFFICIAL][12][S]LineageOS 19.0 for z5c (suzuran)[ALPHA]

Hi all:
Here is a LineageOS 19.0 ALPHA ROM for Z5 compact (suzuran).
Download 2022-03-12
This is a 7z archive with the zip'ed ROM and the md5 file in it. Please unpack this archive, copy the included two files somewhere to your device, reboot into TWRP and flash this zip file. Enable md5sum checking.
Kernel sources
Tree sources
Features:
OS Version: 12 (S)
Kernel: Linux 3.10
Kernel 3.10.108
New: Android security patch level: 5 February 2022
Using Sony blob's from stock version 32.4.A.1.54
Important informations:
You should be familiar with general installation of custom ROMs.
Required for installation: TWRP 3.2.1 (pick the version from 2018-02-23!!!)
OR use my self built TWRP-version 3.6.0!
This ROM needs a clean install, old /data may cause problems!
This ROM is NOT pre-rooted. For rooting you can use Magisk.
Working:
Audio
Bluetooth
Fingerprint
FM-Radio (maybe it needs a few restarts before it's working)
German App AusweisApp2 (needs extended length NFC data; default in LineageOS 19.0)
LiveDisplay
Location services (see screenshot)
NFC
Notifications
Notification LED
Offline charging
Phone calls
Reboot into recovery and bootloader
Sensors
SMS
Sounds
WiFi
Please tell me...
Please keep in mind: This is an early ALPHA version and in permanent development status.
These things are NOT working (or badly working):
Camera
Encryption
Payment
Streaming (mirroring)
Maybe some more things are not working.
Use this ROM at your own risk! It comes without any warranty! I'm not responsible for any damage! If you don't agree with that, don't try to flash this ROM in any way.
Benefits:
Added F-Droid and UnifiedNLP! If you don't want this, simply de-install it.
I've set maximum speaker volume to a higher value.
I've increased microphone gain.
I've changed the microfone gain to avoid echo in phone calls.
Changelog
Troubleshooting:
If you're running into an error, please search in this thread if this error is already posted, before you post it again!
If not, I need a LOG to see what went wrong. Without a LOG I can't help you!
A LOG can be fetched by connecting the device with an USB cable to your PC and then by typing these commands line by line:
Code:
adb root
adb shell logcat -b all -d > logcat
Send my this LOG file via PM.
If you think this could be a SELinux related issue, please try to set the device to permissive mode first.
If the issue is gone, I need the policy file too (plus LOG). Fetch it by typing this line in a terminal:
Code:
adb pull /sys/fs/selinux/policy
If you stuck in a bootloop you can fetch a LOG with this trick:
Press the power button and the volume up button together until the device shuts down.
HOLD the power button.
Release the volume up button and press the volume down button immediately after releasing the volmue up button.
The device should start into TWRP recovery.
Tap on "Advanced", then on "Terminal" and enter these commands line by line:
Code:
cd sys/fs/pstore
cp * /sdcard
Send me the copied file(s), if any, via PM.
One last request:
Please, do not ask about problems for which my ROM is not responsible.
From now on I will only react to problems that I can reproduce and that are caused by my ROM.
I'm sorry for that, but I'm developing this ROM in my spare time and I still have a normal life.
The SIM card recognition works now; please stay tuned.
Currently I'm fighting with a crash loop while trying to enter SIM PIN.
Seems this is going to be a longer fight...
Berni-0815 said:
Currently I'm fighting with a crash loop while trying to enter SIM PIN.
Seems this is going to be a longer fight...
Click to expand...
Click to collapse
Hello Berni
For a short time, I tried rom with a spare device.
I also installed NikGapps.
First, it doesn't recognize the sim.
I tried rebooting several times, but it doesn't recognize it.
Also, I can't move the app icon.
The safety net was fine with Magisk.
Please do its best. 
I haven't uploaded my latest changes because they are too unstable!
norabitox said:
I can't move the app icon
Click to expand...
Click to collapse
That's not a bug, that's a feature!
Long-press on an empty part of the screen and tab on "Home settings" and switch the first switch ("Lock layout") to the "on" position.
The logic behind this feature is reverse, so don't wonder.
Berni-0815 said:
That's not a bug, that's a feature!
Click to expand...
Click to collapse
Is that so
Thank you
New version out; see 1st post.
Now working:
Phone calls
SMS
WiFi
FM-Radio (maybe it needs a few restarts before it's working)
LiveDisplay
Offline charging
Notification LED
I could flash your android 12 version. recovery is changed to stock recovery, I reflashed twrp.
Welcome Screen was flickered, after 2 reboots I could create my profile on my z5 compact.
I had a lot of crashed on homescreen.
Call and sms are working.
Weird! I don't have any crashes! Could you please grab and send LOGs?
good work, does gapps work?
Thanks will try out this rom after awhile
Please don't forget: This is a very early ALPHA version! Don't expect any miracle!
And if possible, grab LOGs and search them for fatal errors (" F " <- a blank, a capital letter F and a blank) and for messages like "dlopen failed: cannot locate symbol".
I'm using "grep" for that:
Git:
grep " F " logcat > logcat.fatal
grep "dlopen failed: cannot locate symbol" logcat > logcat.symbol
...or like that...
Hi! Could you port this rom on sony Z5 premium?
I'm only building for suzuran (Z5 compact E5803, E5823)!
Please ask @Joel16 for further assistance.
He's the maintainer for Z5 premium.
Berni-0815 said:
I'm only building for suzuran (Z5 compact E5803, E5823)!
Please ask @Joel16 for further assistance.
He's the maintainer for Z5 premium.
Click to expand...
Click to collapse
Ok THX!
arpias said:
Ok THX!
Click to expand...
Click to collapse
Just an FYI until it gets into more of a 'beta' phase I won't be building android 19 for Z5P.
Joel16 said:
Just an FYI until it gets into more of a 'beta' phase I won't be building android 19 for Z5P.
Click to expand...
Click to collapse
Ok Joel, i'll wait for it, THX in advance!
New version out; see 1st post.
Android security patch level: 5 January 2022
Stability improvements: Removed IMS and VoLTE stuff due to too much weird errors.
New version out; see 1st post.
Sensors now working

Categories

Resources