yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] sny_tr:
Okay I think I can report some bugs. Hope I can help.

Live display. Whenever you turn the screen off (press power button) livedisplay just stops working. It will, still show itself as in the night mode but it won't work until you re-set it to auto/night mode.

Looks like screen casting not working. I tried to connect to a Samsung TV that I could always connect to but seems like it's not working on this build.

Just a reminder that there are no mods installed on my phone. No root no Xposed; just pure ROM and smallest gapps.
[Nexus 4 Android Development] voron00:
Screen casting bug is known, it was broken since nougat. There are no known solutions for it. It's some really weird bug with the hardware 720p encoder and our display color format. Because someone broke something years ago and i don't know what and where. I wasted too much time on it already and don't want to do it again. Added to known bugs list. There are some apps that can use software encoder for screen casting, those will work.
[Nexus 4 Android Development] _raydroid:
Yes, but you need to flash Magisk to use the Nanodroid Magisk module. Magisk modules are not APKs. Be sure to read up on Magisk. I don't use Nanodroid so I can't help you.
[Nexus 4 Android Development] Kastorpol:
to delete
[Nexus 4 Android Development] Kastorpol:
I confirn that problem still exists. Dialer is not working. What happened? Open dialer and select phone number -> long beep signal and phone is not responding --> phone is restarting
[Nexus 4 Android Development] _raydroid:
Can't confirm this problem I'm afraid.
[Nexus 4 Android Development] 7wells:
Any news about slimport working?

Which camera app do you recommend?

How long does the battery last if the Nexus 4 with LOS 18.1 is used for a few calls and a bit surfing per day?
[Nexus 4 Android Development] Cice96:
@voron00 I built crDroid 11.0 with your 18.1 sources but i still get SystemUI crashes.
[Nexus 4 Android Development] hazar1907:
Hello there.install the resize file from recovery mode

is it enough
[Nexus 4 Android Development] voron00:
I've decided not to continue with 18.1 because in my opinion it's not worth it, too slow and unstable.

Fresh 16.0 build with March security patches: lineage-16.0-20210311-UNOFFICIAL-mako-signed
[Nexus 4 Android Development] Cice96:
Reverting this commit solved the issue
[Nexus 4 Android Development] dookie23:
@voron00 Are you going to release LOS 17.1 (w/ March security patches) as well? Or 16.0 is a better option for mako in your opinion?
[Nexus 4 Android Development] voron00:
16.0 is better.
[Nexus 4 Android Development] KAMiKAZOW:
Sad to the them go. I've had nothing but good experience with your 17.1 builds, so the decision for 16.0 puzzles me a bit (I did not have the chance to try out 18.1).
[Nexus 4 Android Development] kjsu0:
Looks like he will not continue with 18 but already released 16 (with preference over 17) but didn't say that will never release it again. Maybe in the future.
[Nexus 4 Android Development] yagyaxt1068:
What about 15.1? I've had experience with both 15.1 and 16.0 on msm8226 and feel that 15.1 is just better for these devices.
[Nexus 4 Android Development] kjsu0:
General petition for LG to open source their phones (as they are shutting down production for good)
[Nexus 4 Android Development] voron00:
lineage-16.0-20210421-UNOFFICIAL-mako-signed

April security patch.

Also updated lineage recovery image.

TWRP image is updated to 3.5.2_9.0.
[Nexus 4 Android Development] woutercools:
First of, thank you for prolonging the life of my precious Nexus4.

Last weekend I flashed your previous version and I'm just about done configuring it to my liking.

Is it possible to update to this version without losing apps and configs?

And how do I have to do that?
[Nexus 4 Android Development] voron00:
It's possible to just flash over previous build, it should work without problems.
[Nexus 4 Android Development] woutercools:
Just flash from recovery without any wipes?

No reflash of GAPPS?

Should I take the risk? Is it worth it?
[Nexus 4 Android Development] voron00:
Just make backup in twrp and try it, if something goes wrong just restore from your backup. Yes just flash without any wipes. No need to reflash gapps.
[Nexus 4 Android Development] bpham1:
I'm running lineage-16.0-20210311, and am having issues with SOD. Switching from 17.1, which had been running very smooth for 3 months. I will try to get some logs next ime. This happens constantly.
[Nexus 4 Android Development] Ashwynn_Thorne:
Sorry if I sound naive, but why is 16.0 better? I need help understanding why since it's no longer supported. I get that there's problems with 18.1, but why is 17.1 troublesome?
[Nexus 4 Android Development] voron00:
It has mostly to do with frequent build failures due to low RAM for me, but also some features such as miracast are not supported in 17.1. I'll try to build a 17.1 tonight and upload it, but it will be untested.
[Nexus 4 Android Development] voron00:
lineage-17.1-20210426-UNOFFICIAL-mako-signed

17.1 build.
[Nexus 4 Android Development] Ashwynn_Thorne:
Ahh, I see, thanks for letting me know!

Woa!!! Thanks so much for that! I really wasn't fishing for that at all. That's so great though, thanks!
[Nexus 4 Android Development] mickeymk:
I am new to the forum, so please bear with me.

Is it still possible to flash lineageos 16 and GAPPS without repartition? I noted in the early posts that you could flash gapps pico version that excluded the text to speech.

Without trying to read all 31 pages, is that solution still viable?
[Nexus 4 Android Development] voron00:
Nope, repartition is mandatory now.
[Nexus 4 Android Development] Akhilesh S V:
Yes it is possible. After flashing LOS 16.0 delete System apps like Calendar, Calculator, Jelly, etc and flash Gapps Pico.
[Nexus 4 Android Development] sorkayi:
Thanks Your sharing.

It's work. and it only work with open_gapps-arm-10.0-pico

Thank your very much.
[Nexus 4 Android Development] Massedil:
Hello @voron00,

Thank you for your great work on the Nexus 4.

I have seen here that you solved a TWRP bug to allow decrypting data partition.

I tried with the TWRP built by you (3.5.2_9-0) without success :

I:Is encrypted, do decrypt page first
I:Switching packages (TWRP)
I:Set page: 'decrypt'
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
I:TWFunc::Set_Brightness: Setting brightness control to 114
I:Set overlay: ''
I:Set page: 'trydecrypt'
I:operation_start: 'Decrypt'
D:crypt_ftr->fs_size = 11167744
I:Using scrypt with keymaster for cryptfs KDF
I:TWRP keymaster max API: 1
I:Signing safely-padded objectcould not find any keystore module
Failed to init keymaster 0/1
E:Keymaster signing failedE:kdf failedW:failure decrypting master keyE:Failed to decrypt master key
E:Password did not matchFailed to decrypt data.
I:Set page: 'decrypt'
I:operation_end - status=1
I:Set page: 'trydecrypt'
I:operation_start: 'Decrypt'
D:crypt_ftr->fs_size = 11167744
I:Using scrypt with keymaster for cryptfs KDF
I:TWRP keymaster max API: 1
I:Signing safely-padded objectcould not find any keystore module
Failed to init keymaster 0/1
E:Keymaster signing failedE:kdf failedW:failure decrypting master keyE:Failed to decrypt master key
E:Password did not matchFailed to decrypt data.
I:Set page: 'decrypt'
I:operation_end - status=1
I:Set page: 'trydecrypt'
I:operation_start: 'Decrypt'
D:crypt_ftr->fs_size = 11167744
I:Using scrypt with keymaster for cryptfs KDF
I:TWRP keymaster max API: 1
I:Signing safely-padded objectcould not find any keystore module
Failed to init keymaster 0/1
E:Keymaster signing failedE:kdf failedW:failure decrypting master keyE:Failed to decrypt master key
E:Password did not matchFailed to decrypt data.

The good password unlock correctely LineageOS (version lineage-17.1-20210521-UNOFFICIAL-mako), but impossible to decrypt the /data partition in TWRP.

Do I do something wrong ?
[Nexus 4 Android Development] voron00:
Ahh, looks like it only works with 18.1 encryption, sorry.

Fresh 16.0 build with June security patches: lineage-16.0-20210617-UNOFFICIAL-mako-signed
[Nexus 4 Android Development] Massedil:
Thanks !

- How can I have a 18.1 build to try, please ?

- Will it work with 16.0 ?
[Nexus 4 Android Development] wartle.S:
I have built 18.1 but no radio/baseband.
[Nexus 4 Android Development] Massedil:
Is it possible to have a link to your build ?
[Nexus 4 Android Development] wartle.S:
I will be building a new build based on @voron00's latest device tree commit

But if you want to test, here it is:

ROM: lineage-18.1-20210609-UNOFFICIAL-mako.zip [new build is up!]

GAPPS-GO: antman_gapps-arm-11.0-go-20210609-mako.zip [new build is up!]

BUGS: no radio/baseband

Note: this is Lineage Go based thanks to @acroreiser for the GApps Go as Go related commits and @voron00 for keeping our mako alive.
[Nexus 4 Android Development] voron00:
My hard drive with linux/build setup has died today so i guess that will mark the end of developement of mako for me. This device has suffered enough already and i think 16.0 was the last usable version with decent performance. So build from June 17 was the last one from me. Maybe I'll see you around.
[Nexus 4 Android Development] wartle.S:
I'm sorry to read this. Thanks man for maintaining mako all these years.

Anyways, I have built a new Lineage 18.1 with Android Go.

Changelogs:

- June security patch

- Radio/baseband fix thanks to @voron00

ROM: lineage-18.1-20210708-UNOFFICIAL-mako.zip

GAPPS GO: antman_gapps-arm-11.0-go-20210708-mako.zip

Sources:

Device: https://github.com/wartle/android_device_lge_mako/tree/lineage-go

GApps Go: https://github.com/wartle/gapps_android_11_go

Credits:

@voron00

@acroreiser

Lineage OS team

Screenshots:
[Nexus 4 Android Development] blackmonk19:
Thank you for all the hard work over the years... 👍
[Nexus 4 Android Development] skoczo:
I have a problem with missing bluetooth address after lineage os installation. When i flash back to stock 4.2.2 i can see bluetooth address and bluetooth is working. Do you have any idea why i have this issue and how to fix it? Where bluetooth address is stored? On which partition?

In logs i found

07-27 11:51:56.448 1396 1396 F DEBUG : pid: 1226, tid: 1253, name: HwBinder:1226_1 >>> /vendor/bin/hw/android.hardware.bluetooth@1.0-service <<<
07-27 11:51:56.448 1396 1396 F DEBUG : uid: 1002
07-27 11:51:56.448 1396 1396 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
[B]07-27 11:51:56.448 1396 1396 F DEBUG : Abort message: 'Open: No Bluetooth Address!'[/B]
07-27 11:51:56.448 1396 1396 F DEBUG : r0 00000000 r1 000004e5 r2 00000006 r3 b3209790
07-27 11:51:56.448 1396 1396 F DEBUG : r4 b32097a4 r5 b3209788 r6 000004ca r7 0000016b
07-27 11:51:56.448 1396 1396 F DEBUG : r8 b32097a0 r9 b3209790 r10 b32097c0 r11 b32097b0
07-27 11:51:56.448 1396 1396 F DEBUG : ip 000004e5 sp b3209760 lr b39a4c03 pc b39a4c16
07-27 11:51:56.487 1396 1396 F DEBUG :
07-27 11:51:56.487 1396 1396 F DEBUG : backtrace:
07-27 11:51:56.487 1396 1396 F DEBUG : #00 pc 0005ec16 /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: 1c34385a63ae9f807822c87c6b4126d2)
07-27 11:51:56.488 1396 1396 F DEBUG : #01 pc 00005a1d /system/lib/liblog.so (__android_log_assert+176) (BuildId: e8dc42b680d3bfbe493b7e4247c0accd)
[Nexus 4 Android Development] voron00:
https://xdaforums.com/t/nexus-4-blu...rder-doesnt-exists-help.3316160/post-65355601
[Nexus 4 Android Development] skoczo:
Thanks. I will definitely try it.
[Nexus 4 Android Development] skoczo:
@voron00 Thanks for the link. I think that there is an error in those instruction as when i did everything it not work. I think that there is typo here. In instruction they say to create /persist/bluetooth/.btaddr but it should be /persist/bluetooth/.bdaddr With .bdaddr i hae now bluetooth address and bt app is not crashing. I figure it out thanks to your repo on github where i found this command BDADDR=`/vendor/bin/bdAddrLoader -f /persist/bluetooth/.bdaddr -h -x`
[Nexus 4 Android Development] darethehair:
So grateful for this! I had tried LineageOS 17.1, with matching GApps, but kept getting complaints that there wasn't enough space for GApps -- this 18.1 combo installed perfectly! :)
[Nexus 4 Android Development] Fif_:
Nice and thanks.

What's the difference between a lineage-go build and a normal lineage build? I'm not planning to install Gapps, but microg. Does that make any difference?

Also, with that build, GPS doesn't work, I get no location even after letting it acquire a six for several minutes...
[Nexus 4 Android Development] aarem:
Hi, where can I get the latest LOS 18.1 ROM build for installation on to mako?
[Nexus 4 Android Development] darethehair:
I am *so* appreciative for you doing this! It has taken me a while to develop my confidence to install alternate ROMs on my various Android devices, but the one I most wanted to be successful at was upgrading my dear old Nexus 4. Ultimately, I was successful! Now today, almost 2 months later, I wanted to donate my LineageOS-converted Nexus 4 to my mom, and remembered (with sadness) that the 'cell' part was not working (undetected SIM). From some Googling, someone suggested temporarily turning off the screen lock -- and it worked! I loaded it up with her favorite apps, and will present it to her as a gift :)

My next task is to pose this question: rumors of LineageOS 19 are swirling, and I am curious (seeing as there is no longer any *official* support for the Nexus 4) whether you intend to develop a new version for the Nexus 4 when the time comes? Thanks!
[Nexus 4 Android Development] Honkette1738:
did you need to repartition your phone to install it? also how does it run?
[Nexus 4 Android Development] darethehair:
Yes, I recall that being a requirement. It seemed to run OK, though I no longer use it myself since I have a Pixel 4a -- but I was very pleased that I could renew the life of my Nexus 4 in this way, since it is perfectly capable of being a nice compact smartphone! :)
[Nexus 4 Android Development] myxal:
EDIT - whoops, wrong thread.
[Nexus 4 Android Development] TheArt.:
Wow, thank you! This is maybe the latest OS version & security patch we can get on our Nexus 4. Unbelievable, I am going to flash it soon and I wondering if there is something (any bugs) I should be aware of.
[Nexus 4 Android Development] lethcore:
Thank you very much for the Lineage 18.1 with Android Go. (NEXUS 4) Pack

I have just received a brand-new NEXUS 4 from old stock and want to update it to android 11 for daily use.

What are the steps I need to take again?

It's been a while, and I'm hella rusty.

I have

lineage-18.1-20210708-UNOFFICIAL-mako.zip

antman_gapps-arm-11.0-go-20210708-mako.zip

Which are the applications I need to use to flash this again?

Thank you.
[Nexus 4 Android Development] lethcore:
Anyone? *bump*
[Nexus 4 Android Development] Waldold:
In a nutshell, first of all you have to unlock bootloader, secondly — to install any custom recovery (new TWRP or something else).

If you have difficulties with understanding of installation process, old installation guide from LOS is what you need to read firstly.
[Nexus 4 Android Development] lethcore:
Yea the bootloader is locked at the moment, need to sort that out first
[Nexus 4 Android Development] lethcore:
Well bootloader is unlocked and got TWRP installed

When i try to install Lineage 18.1 it gives me this

Updater process ended with ERROR 1

Error installing zip file /sdcard lkineage 18.1 etc
[Nexus 4 Android Development] lethcore:
Ok so i wiped advanced wipe cache data etc

and it keeps giving me this ERROR 1 thing the file doesn't seem corrupt it's downloaded from here and the zip is on the nexus 4 internal storage along with Google apps

Anyone help?
[Nexus 4 Android Development] lethcore:
So i'm stuck with installing the official rom (Android 8) for now.

Lineage 17 and 18 doesn't work they refuse to install

Any help or suggestions are welcome.
[Nexus 4 Android Development] Didgeridoohan:
To know exactly what went wrong while flashing the ROM in TWRP you'd have to post the recovery log (saved directly after the error occurs, no reboots in-between).

But, have you repartitioned your device as mentioned in the first post of this thread?
[Nexus 4 Android Development] lethcore:
Hey Did

`repartitioned` no I haven't? i never did that for Android 8 but i need to for Android 11?

The error is just "ERROR 1"
[Nexus 4 Android Development] Didgeridoohan:
Error 1 can mean anything... It just tells you that the flashing failed and the reason why it failed can be found in the logs.

Regarding repartitioning: always read the instructions. Go back and read the OP from start to finish...
[Nexus 4 Android Development] lethcore:
ok i'll give it another shot!
[Nexus 4 Android Development] lethcore:
ok i attach a log file for you

if that helps?
[Nexus 4 Android Development] lethcore:
Hmm i can't see it? even though i did attach it

ok try this

<6>[ 0.000000] Booting Linux on physical CPU 0<6>[ 0.000000] Initializin - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com
[Nexus 4 Android Development] lethcore:
Well, i got closer... it now says "Failed to mount cache" when i try and install Android 11/Lineage 18.1

I used the mako repartitioned as well
[Nexus 4 Android Development] lethcore:
Well closer it almost installed like 99% then it returns with that lovely RED TEXT ^ERROR 1^ again

This is starting to do my head in... i follow all tutorials like clockwork what am i doing wrong?
[Nexus 4 Android Development] lethcore:
ok i've done it lol yay
[Nexus 4 Android Development] voron00:
lineage-16.0-20211227-UNOFFICIAL-mako-signed.zip

December 2021 security patch. Also updated TWRP image to 3.6.0.
[Nexus 4 Android Development] voron00:
lineage-17.1-20211228-UNOFFICIAL-mako-signed.zip

lineage-18.1-20211229-UNOFFICIAL-mako-signed.zip

17.1 and 18.1 builds uploaded. Although i recommend sticking with 16.0 in case you for some reason still using this device (lol).
[Nexus 4 Android Development] blackriderz:
Hi Thank you for the hardwork, anyway is it support widevine L3 ?
[Nexus 4 Android Development] voron00:
L3 works, L1 is not.

lineage-18.1-20220106-UNOFFICIAL-mako-signed.zip

Fixed Tethering/AP.

Fixed encryption (don't use official TWRP)

Enabled Miracast (no HDCP support)

Enabled config_deviceSupportsWirelessCharging

LTE option is hidden again like in 16.0.

Overlay updates.

Lots of sepolicy fixes, etc.
[Nexus 4 Android Development] Akhilesh S V:
Just out of Curiosity, have you tried A12 on Mako 😄
[Nexus 4 Android Development] SkewedZeppelin:
Curious what was wrong with encryption?

edit: I'll answer myself: https://github.com/voron00/android_device_lge_mako/commit/1d97a1ea66d1689c6f68283cae397a67ff654228

Also thanks!
[Nexus 4 Android Development] voron00:
There is no hardware/msm8960 for lineage-19.0 yet.
[Nexus 4 Android Development] XPUser99:
Thank you so much for keeping this alive!

May I ask a few questions?

1. Is it necessary to repartition for LOS 16.0 if installing it without GApps?

2. The link to the TWRP image is broken. Is it necessary to use your image or can I use the official TWRP image for LOS 16?
[Nexus 4 Android Development] voron00:
Repartiton is necessary without it ROM won't install.

You can use official twrp but it has bug with reboot.
[Nexus 4 Android Development] SkewedZeppelin:
Maybe it is just placebo, but your recent work seems to make mako noticeably more responsive.

It is nice to see.

Thank you again @voron00 !
[Nexus 4 Android Development] bpham1:
Thank you for continuing support. I'm still rocking the same phone since launch, and never got the itch to replace it. 4 battery replacements later and it's still going strong.
[Nexus 4 Android Development] aarem:
How do I repartition? I will use LOS 18.1 without Gapps. Not sure if I can try microg with it.
[Nexus 4 Android Development] voron00:
[REPARTITION] Nexus 4 Repartition [MAKO] [8GB/16GB] [UA TWRP]

Nexus 4 Repartition No one is responsible for your actions except yourself. Everything written further may potentially brick your device, although risk is reduced to minimum. This repartition package offers 1.5G /system; a /vendor partition and...

xdaforums.com
[Nexus 4 Android Development] nefescalanadam:
Thanks voron for still updating this old device.
[Nexus 4 Android Development] aarem:
I am trying to get a microg version of this device. From the example here, https://github.com/lineageos4microg/docker-lineage-cicd it appears that i need the common tree. Where would I be able to get this information?
[Nexus 4 Android Development] voron00:
lineage-18.1-go-20220227-UNOFFICIAL-mako-signed.zip

Android Go edition to reduce RAM usage.

Install opengapps pico, then install google go app from play store.

Better to clean flash just in case.

Older builds moved to 'old' directory on gdrive.
[Nexus 4 Android Development] NobelLiu:
Thanks voron for for keep developing on this device !

TWRP 3.6 link still broken here, please help share again.

I am using TWRP 3.3 from [REPARTITION] Nexus 4 Repartition [MAKO] [8GB/16GB] [UA TWRP]

Which unable to boot to system right now.

Could you help suggest is 3.6 required for latest Lineage 18 Go version?

Update: Found in https://drive.google.com/drive/folders/1QcWJCgYqLsZGBOEqt6VTOnofv_VQElco thank you.
[Nexus 4 Android Development] pfederighi:
Thank you for the updates.

Would it be possible to unhide the LTE option in Preferred Network Type? There is little to no 3G service left where I live. The LTE band 4 service is pretty good, though.

In case it matters, auto brightness, which I almost never use, doesn't seem to work reliably in the Go edition. Everything else I've tried works well, though.
[Nexus 4 Android Development] Ashwynn_Thorne:
WOW! This not only upgraded the Android version, but it's way snappier! Thanks so much for keeping these phones working!!!!
[Nexus 4 Android Development] _raydroid:
Works quite decent. Thanks voron00!

For those wanting to use widgets or custom shortcuts, you'll need to use another launcher such as Shade. Also, I was attempting to use Fluid Navigation Gestures (FNG), but since Android Go doesn't allow the "Draw over other apps" feature, you will not be able to use this or any other apps that rely on this like NewPipe's picture-in-picture functionality.
[Nexus 4 Android Development] voron00:
Updates uploaded:

lineage-18.1-go-20220314-UNOFFICIAL-mako-signed.zip (R_asb_2022-03)

Lte option restored as requestted by pfederighi

TWRP image updated to 3.6.1.

Added lineage recovery image (Android 11 version).
[Nexus 4 Android Development] chaseadam:
Thanks again for all these builds! What is the difference between the TWRP posted to the google drive and the upstream https://dl.twrp.me/mako/ ?
[Nexus 4 Android Development] voron00:
Official twrp is built with very old config and kernel, it has bugs such as reboot doesn't work.
[Nexus 4 Android Development] chaseadam:
I noticed reboot didn't work with the "official". Made me think I had a problem with my flashing. Thanks!
[Nexus 4 Android Development] lukeprokopec:
I upgraded from LOS 16 to 18.1, and installed MindTheGapps. I wiped everything before installing. My device keeps turning off during the LOS logo animation. I just tried wiping everything and reinstalling again, and I'm experiencing the same thing. What did I do wrong?
[Nexus 4 Android Development] voron00:
try opengapps pico.
[Nexus 4 Android Development] lukeprokopec:
Yes, I switched to Opengapps Pico. Now I get past the loading animation, but the phone randomly shuts off. Thanks for the reply. I'd like to ask you, will you continue to push out the LOS 16 updates? I'm thinking of just sticking with that.
[Nexus 4 Android Development] voron00:
No, Los 16 no longer get security string updates, although some fixes gets backported it may no longer be complete. Last security patch for los 16 is Jan 2022.

Something is definitely wrong with your flashing, maybe install stock 5.1.1 fastboot rom and try again.