yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] eldraan:
Thanks for this. To manually install these afterwards, I know that I can get the first 2 from the Play Store (Google Text-to-Speech app and Google Search app), but do you know how I can install the last one, 'Speech' ?
[Nexus 4 Original Android Development] voron00:
These are offline speech files i beleive, they are not in play store. You can remove that exclude but im not sure if they will fit.
[Nexus 4 Original Android Development] eldraan:
OK. I've just had a further look into this. Having already installed the Google app, I see that if I go into system settings for language and input it's possible to enable 'Google voice typing'. And if you go into its settings, there are options for 'Offline speech recognition' and you can download additional languages there (it already has offline files matching the system locale). So I believe this means I now have the same thing as what would have been installed by the 'Speech' package in the nano gapps.

---------- Post added at 07:39 PM ---------- Previous post was at 07:04 PM ----------

It's a shame that the system partition on the Nexus 4 is so restrictive. Unless the Google Search app is installed as a system app, the option to use 'Ok Google' for the Google Assistant whenever the screen is on is greyed out.

More information here:

https://xdaforums.com/g5/help/google-assistant-voice-match-greyed-t3749568

The workarounds mentioned in that thread sound a bit convoluted. Normally, the easiest way to get the Google app installed as a system app is to install nano gapps. But unfortunately, even if I exclude GoogleTTS and Speech in gapps-config, leaving Google enabled makes the nano gapps too big to install. :(
[Nexus 4 Original Android Development] kainomed:
use / test : magisk

https://xdaforums.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589
[Nexus 4 Original Android Development] kainomed:
I installed the "Google" application via the playstore and the voice assistant works well for me.
[Nexus 4 Original Android Development] pxrave:
maybe you can add the system resize script to los?

i know it was posible for the very old samsung galaxy s i9000 on latest los
[Nexus 4 Original Android Development] eldraan:
Yes, it works well for me too. The problem I was describing, which you chose to reply to, is that you can't say 'Ok Google' to access the assistant when you're just on your home screen, or whenever your screen is on. If you believe I'm wrong about this, can you please post your screenshot of this settings page (see the attached image), from inside the Google Assistant's settings. As you can see, on my device 'Access with Voice Match' is greyed out, but I'm interested to see yours if it is not greyed out for you. Like I said in my previous post, the Google app needs to be installed as a system app in order for the 'Ok Google' functionality to be available.
[Nexus 4 Original Android Development] Ryder.:
Voice match doesn't work. I can't enable or disable it. So i can't use google assistant. What can i do? It's because of pico gapps?
[Nexus 4 Original Android Development] alecxs:
thats not a good idea because data partition will resized too. but if someone know how to create a flashable zip for resizeing, users can decide
[Nexus 4 Original Android Development] plantroon:
I have the following question: Does Android/Google Pay work on this ROM on Nexus 4?
[Nexus 4 Original Android Development] hobbittr:
Cannot use hidden SSID on Wi-Fi

Currently running lineage-15.1-20180521-nightly.

OTA updates have gone smoothly.

I prefer hiding my Wi-Fi SSID for security as we live in an apartment complex.

PROBLEM: Wi-Fi always drops or will not connect on my home network unless I show the SSID.

I tried this:

Disable wifi and Bluetooth scanning in

Settings - > Security & Privacy - > Privacy - > Location - > Scanning

UNCHECK Wi-Fi & Bluetooth scanning

No success. Is this a "feature" of Andoid 8 or a problem to be sorted out by Lineage?

Battery drain seems much higher than when I rant Lineage 14. Any suggestions?

Thanks to the dev team.
[Nexus 4 Original Android Development] moriel5:
I have no idea as to your issues, as I am running an old build of CRDroid (based on LOS 14.1), with the SINAI-N4 kernel (I am waiting for compatibility with LOS15.1), however there is no security gain by hiding your SSID, only a little privacy, due to most people (that would try) not even trying to connect to your network.

I too prefer hiding the SSID (even though my family lives in a private home, or whatever it is called (currently, I only remember the name in my native language), however I do not expect any security out of it.
[Nexus 4 Original Android Development] hobbittr:
Hiding the SSID does help keep us "off the air" when sniffers are browsing or driving by. We live in Turkey and this happens occasionally around apartment complexes. What "they" do not see, "they" may not try to hack. Otherwise, yes, of course, you are correct.

"Private home" is good where I come from. :good:

I would like to know why this ROM build will not connect to a hidden SSID.

Many Thanks for the reply.
[Nexus 4 Original Android Development] angmet:
Open GApps crash

I have still problems with open gapps despite trying everything that is suggested above.

I installed lineage-15.1-20180521-nightly-mako-signed.zip and open gapps pico (arm, 8.1) with the config file and it keeps crashing immediately after boot (at the setup wizard, this is a clean install). I am using the latest twrp recovery.

What could I possibly be doing wrong? Also, attemped flash without gapps and rom works perfectly and runs smoothly. Kudos to the dev!!
[Nexus 4 Original Android Development] moriel5:
I can certainly understand what you mean, despite the fact that I do not live in Turkey.

While this kind of thing does not happen as often to random individuals in my country (due to it being considered a liberal country), it does happen (not just around apartment buildings, they do not limit themeselves in what they do, only how much), and more than people would like to think (in a similar vein, though on a lesser scale, to what was in communist Russia).
[Nexus 4 Original Android Development] kainomed:
yes it's the same, in fact the assistant works ... but not the voice command (ok Google) ?
[Nexus 4 Original Android Development] hobbittr:
OK Google Voice Command

OK Google voice command works on my Nexus 4.

---------- Post added at 19:24 ---------- Previous post was at 19:20 ----------

Currently running lineage-15.1-20180521-nightly.

OTA updates have gone smoothly.

In addition to not "seeing" a hidden SSID, my N4 locks up when I turn Location Services on. I am forced to hard restart the phone and have to be very quick to access the Settings to turn Location off or else it will lock up.

Anyone else having this problem?
[Nexus 4 Original Android Development] hobbittr:
Locked up after OTA

Updated today to lineage-15.1-20180528-nightly, the OTA was no problem but the phone locked up upon reboot. I had to force shutdown and restart a couple of times before it started working OK.
[Nexus 4 Original Android Development] pxrave:
omni have the needed patches for lvm

adjust our system partition

https://xdaforums.com/find-7/orig-development/ref-lvm-partition-remapping-t2865843
[Nexus 4 Original Android Development] eclipsoid:
Wifi-Hotspot not selectable

Hi,

I have noticed that my wifi-hotspot can not be enabled. Configuration is accepted, but activation does not work. Can anybody check if this can be reproduced? Thanks!
[Nexus 4 Original Android Development] kainomed:
finally the voice command also works for me ... for the detection of wifi, I entered my ssid for it to connect (yet the network was not hidden)
[Nexus 4 Original Android Development] eldraan:
Please can you post the screenshot from your Nexus 4 that I was asking for earlier (Google Assistant -> Settings > Phone). Please see my one attached as an example. I want to see your setting called 'Access with Voice Match'. If it's not greyed out in your screenshot, I will be very interested to know how you got it working.

I think you are confusing 'OK Google' available when the Assistant is open, with 'OK Google' available whenever your screen is on.
[Nexus 4 Original Android Development] DCCentR:
Phone start turning itself off randomly, while it sleeping. I'll leave my phone sitting somewhere, I go back to pick it up and it's completely off. Battery levels are fine.

Reminds me a bug with deepsleeping on CM 14.1 nightlies.

Also sometimes it stuck on shutdown(preparation to reboot) animation when I click buttons: reboot device/reboot to recovery. I had to force shutdown phone to make it work again.

lineage-15.1-20180528-nightly
[Nexus 4 Original Android Development] Sam Nakamura:
I yesterday updated to the latest official build of lineageOS 15.1 and still have a FC when going to settings/system/buttons...

Is it just me or is it a general bug? Just thought I ask before flashing clean...

Log attached:

https://drive.google.com/file/d/1yFd0_4Vu28BAyMUpaYaj-lU8B0cYcq0k/view?usp=drivesdk
[Nexus 4 Original Android Development] n0b0dy666:
No such issue on my end. Removing Magisk would be my first step.
[Nexus 4 Original Android Development] rogers11:
This happened to me on two devices while updating to 15.1. It seems to be an incompatible setting from the buttons menu (maybe Power menu). I had to wipe to get rid of it.
[Nexus 4 Original Android Development] nefescalanadam:
With last build i get this bug too.. And wifi dropouts
[Nexus 4 Original Android Development] Sam Nakamura:
All right, clean flash time I guess...
[Nexus 4 Original Android Development] Sam Nakamura:
If anyone is interested in flashable "android go GApps", this just worked for me clean flashing latest build...

https://androidfilehost.com/?w=files&flid=270259

It installs Google Go (search lite), Maps Go, Gmail Go, Files Go, etc. and auto updates them through Playstore (no longer sideloading needed)
[Nexus 4 Original Android Development] Sam Nakamura:
By the way, clean flashing solved the FC issue and no Wi-Fi drops so far...
[Nexus 4 Original Android Development] kino13:
I can confirm this, unfortunately I did not set up the logcat correctly, so no idea what happened. I went back to 14.1 as I use the phone as a wake up alarm and it failed three times this week.

Battery is fine (replaced recently) and this didn't happen with nougat.

Regards
[Nexus 4 Original Android Development] voron00:
Can you try lineage-15.1-20180514 nightly or below also [MENTION=9142708]DCCentR[/MENTION]. Could be something in latest updates. I don't have such issue though.
[Nexus 4 Original Android Development] bedfojo:
On the black screen of death issue, there was indeed a similar problem last year.

A few files were in the wrong place.

The files at

/system/etc/firmware/tzapps.*

should be at

/vendor/firmware/

Solved by commit to android_device_lge_mako number/179987.

I don't know if it could be the same problem.
[Nexus 4 Original Android Development] kainomed:
indeed, the voice match is disabled (grayed out) and OK Google only works when the voice assistant is started
[Nexus 4 Original Android Development] el_charlie:
Ok google everywhere needs OpenGapps nano which are too big for the free space available on Mako. I really hope there's a way to do a resize of the system partition that doesn't break on updates of LOS.

Cheers!
[Nexus 4 Original Android Development] Sam Nakamura:
This is pretty surly a GApps "issue", Google Assistant as part of the Google App is in Nano and upward versions included, not in the Pico variants...

I think this needs a little tinkering with a custom package that includes Google App, this would basically need a gapps-config that includes Google App but excludes other packages to stay in the given partition size - not sure if this is actually possible without re-partitioning...

https://github.com/opengapps/opengapps/wiki/Advanced-Features-and-Options
[Nexus 4 Original Android Development] nefescalanadam:
unfortunatelly didnt worked for me
[Nexus 4 Original Android Development] DCCentR:
Didn't know when I can check this, not at home for 2 weeks

:(
[Nexus 4 Original Android Development] Sam Nakamura:
More precisely please, did you clean flash?

Got still the buttons FC or Wi-Fi drops, or both?
[Nexus 4 Original Android Development] hobbittr:
Re-installed 14.1 too many problems

I decided to re-install 14.1, OS 15 was too unstable.

Under 15 the Play Store did not update any of my installed apps even though they were backed up to Google. I had backed them up locally and installed them as "unknown sources." Then, I could not get Play Store to update any apps as downloading consistently failed. I did all the "tricks" such as remove cache and data from Play Store, etc. etc. but without success.

Also the problems I previously mentioned, locking up with Location Services, not recognizing hidden SSID, faster battery drain.

I will try again after a few more releases.

Thanks again to voron00 and those of you who are adding your comments.
[Nexus 4 Original Android Development] Sam Nakamura:
You can force to restore via terminal emulator

SU

bmgr list sets

you'll see a bunch of alphanumerical strings associated to the device model, first entry is the most recent, choose accordingly

bmgr restore "enter alphanumerical code"

Google starts to restore your set of apps immediately...

I personally did not have to use this workaround, all fine on my end, probably a GApps issues on your side, check a different package maybe...

15.1 is a great user experience so far, I'm personally not affected by any annoying bug, actually no bug at all, well I however don't use a hidden SSID
[Nexus 4 Original Android Development] hobbittr:
Many thanks, I will give this a try if it happens again.
[Nexus 4 Original Android Development] Crowx1:
Latest build I occasionally lose all network connection that requires a restart to fix.
[Nexus 4 Original Android Development] nefescalanadam:
yeah i did clean flash but got still fc and wifi drops. Waiting for the next build with fix.
[Nexus 4 Original Android Development] LegitimateGrapes:
Is it worth upgrading from 14.1 to 15.1 now after a month? Or should I come back after a year? I heard about battery drain problem when it was first released, is it still a problem?

Will 14.1 still receive any further updates?
[Nexus 4 Original Android Development] Crowx1:
Yes high battery drain still in latest build. Gone back to 14.1 for now.
[Nexus 4 Original Android Development] Sam Nakamura:
What does clean flash mean for you?

You should wipe all but internal storage, then flash ROM and GApps (open GApps <105mb and mind the GApps work for me) - still no Wi-Fi drops, no more FCs and no unusual battery drain... I'm absolutely satisfied :good:
[Nexus 4 Original Android Development] sule_krug:
I have none of these issues people are reporting... WiFi drops only when multiple AP's are available so it jumps from one to another WiFi ap...I wish that sound is not so low ...and it would be nice to have some control over sound ...other than that it works great ...I used magisk so occasionally shows toast message that it has stop working ,but just dismiss toast msg and it works....and what's up with weekly being late ...sorry had to ask ..thanks voron00
[Nexus 4 Original Android Development] :
Yep, it's being late but it's on its way: https://jenkins.lineageos.org/job/android/
[Nexus 4 Original Android Development] Crowx1:
15.1-20180606 build still has high battery drain and mobile runs way hotter than 14.1, checking CPUZ I see 2 cores active all the time boosting up to max speed even when idle, with 14.1 three cores will sleep and one will run at lowest clock. The biggest bug is resuming from sleep to a black screen.
[Nexus 4 Original Android Development] hobbittr:
I fetched terminal emulator.

Tried SU "not found"

Pardon the noob question but how do I get to su and beyond?
[Nexus 4 Original Android Development] Sam Nakamura:
You obviously need root, su calls root privileges in terminal / cmd - sorry for not clearly mentioning this...
[Nexus 4 Original Android Development] taw62:
I'm using 15.1 since the early unofficial builds and I never even considered going back to 14.1. In my opinion, battery life has very much improved with Oreo (at least during idle).

The only issue I have since one of the last builds (most probably 5/28) is that trying to turn on WiFi after flight mode makes the phone freeze and a restart necessary. Can anyone else confirm this?
[Nexus 4 Original Android Development] Crowx1:
You must have a very special nexus 4....
[Nexus 4 Original Android Development] sijben:
Yes, same here. After flight mode wifi is broken.
[Nexus 4 Original Android Development] :
Nope, I can't confirm. WiFi is turning on after leaving flight mode without any problems. I've just tested it.

LineageOS 06/06/2018 and OpenGApps without any specialties
[Nexus 4 Original Android Development] hobbittr:
Thank you, my bad (duh), of course I needed to turn on root access.

The solution sort of worked. It did automatic updates for five of six apps this morning. The sixth app did not auto-update. I attempted to update it manually without success. It shows "Downloading..." but eventually times out. If it does auto-update of all apps eventually then that is success of a kind.
[Nexus 4 Original Android Development] Sam Nakamura:
It's not necessarily solution to force auto updates but to restore your set of Playstore apps after clean flashing, if you set it up as new device, had any problems with the setup wizard / restoring of your apps or simply decide later on to restore, there are a few possible reasons this could become helpful...

Restoring your set of previous installed apps is usually only on first setup possible, except you call the inbuilt Google backup manager directly via the described method - just to clarify :)
[Nexus 4 Original Android Development] CAOSandres:
Hi, so far the performance is great, many congratulations, just a couple of questions: Is it possible to activate Ambient Display and the possibility of changing the clock position in addition to changing the battery icon directly from the configuration?

PD: sometimes, when I restart the phone, a second network bar appears with no signal as if it were a dual band phone.
[Nexus 4 Original Android Development] Sam Nakamura:
"notification access" in settings, apps, special access is missing for me, can anyone confirm that?
[Nexus 4 Original Android Development] :
Nope, I can't confirm, it isn't missing for me
[Nexus 4 Original Android Development] eclipsoid:
Yes, this also happens on my phone. Additionally, wifi hotspot is disabled. I am switching back to 14.1.
[Nexus 4 Original Android Development] Sam Nakamura:
That's really weird, hmm... It's not even listed in "special access" :confused:

Edit: found it to be an issue created by the "low memory flag enabler" magisk module, uninstalled it and voila - back to normal...

Tanks for checking on your end!
[Nexus 4 Original Android Development] Holzhacker:
With the newest 15.1 builds (from 2018-05-21 on) I've got a problem when re-enabling WiFi. The SystemUI just stops responding when I try to enable WiFi after disabling it first.

If I then try to shut down or restart the phone, this just hangs in the shutdown/restart page - I have to force shut down the device.

If I don't dis- and re-enable WiFi, shutting down or restarting works without problems.

Since I was in holiday, I had the 2018-05-14 version on my phone for several weeks where this never occured. I just upgraded directly to 2018-06-06 and this problem was absolutely reproducable. So I went back the version over 2018-05-28 and 2018-05-21 to finally land at 2018-05-14 where the bug does not show up.

Anyone else experiencing such things?

I also found another problem regarding Google Maps and GPS.

If I enable the device only location mode (GPS only) and start Google Maps, it never gets any location info. Even when I'm outside and wait several minutes.

If I then start the app "inViu GPS-details" I can see that only then it starts searching satellites (as the number of visible satellites goes up starting from 0).

Even then it takes about a minute to get a location (Google maps finds the location from this point on now, too).

One more thing I noticed in inViu GPS-details: There are several GLONASS satellites visible, but I never saw that one of these was actually used. Only GPS satellites were used. I don't know if this is a normal behaviour.
[Nexus 4 Original Android Development] p3terr:
Yes, this is really bad, WIFI signal suddenly stops ( this is a common issue with every rom I guess). Can't use airplane mode or turn back on WIFI.. system UI force closes.. settings force closes.. the only option is to reboot, I don't know what to do.. probably go back to another ROM but i don't know which one.
[Nexus 4 Original Android Development] NeuesS5:
I have the same problem
[Nexus 4 Original Android Development] realx3m:
Tried to reproduce the wifi bug and enebling/disabling works just fine.Enabling WiFi after disabling Airplane mode also works without an issue for me.

I went with a full phone wipe through ADB( boot, cache, recovery, system, userdata).

I did first flash it with the latest 5.1.1 factory image before i flashed Lineage 15.1 through TWRP.

Fastboot flashed factory bootloader, radio, system, boot,recovery. After first boot on factory 5.1.1 google rom, fastboot flashed TWRP recovery and went straight to 2018-06-06 nightly.

If you decide to go through all these steps, make sure you check if storage size is reported correctly before you flash TWRP, as you will need to clear cache and do a factory reset via factory recovery in case space is missing.

On another note, is anyone aware of a compatible kernel for Mako that supports undervolt under LineageOS 15.1?
[Nexus 4 Original Android Development] Sam Nakamura:
I haven't noticed any problem with Wi-Fi whatsoever, it's all just fine...

There's a custom kernel from [MENTION=7970097]sudokamikaze[/MENTION] called SINAI-N4 but it never reached the point where it was officially compatible with lineageOS 15.1 (it might work anyway - no idea), it's however compatible to AOSP / unlegacy android Oreo and supports underclocking, unfortunately this kernel is no longer maintained and it doesn't look like anything is coming in future... But who knows ;)

Sorry for the OT voron00, I'll stop right here!
[Nexus 4 Original Android Development] xandebastos:
Slimport

Someone have success with slimport after change from lineage 14 to 15??
[Nexus 4 Original Android Development] Holzhacker:
I upgraded now from 2018-05-14 to 2018-06-11 and the WiFi bug is still present on my device.

I tried several things (disabling Bluetooth, Location services, using "DISABLE WIFI"/"ENABLE WIFI" from the Development Tools->Connectivity.

It all came to the same result: Wifi could not be enabled and restarting is only possible with force shut down.

I created a bug report (the function under Development tools) after the SystemUI freeze, but could not find any hints.

If a developer wants to look at it, I'd send it via PM.

I want to avoid to totall clean flash again as it's a lot of work (installing and e.g. re-certifying my banking apps...).

I completely wiped the phone already before upgrading from 14.1 to 15.1.

I had the latest official 5.1.1 ROM on the phone before I went to Cyanogen in the first place, so I don't expect any advantage of this way over a clean flash.
[Nexus 4 Original Android Development] Holzhacker:
I just found out that the WiFi scanning option in the Location settings affects the WiFi disable/enable bug.

Enabled Wi-Fi scanning: WiFi disabling and enabling works without problems.

Disabled Wi-Fi scanning: SystemUI freezes when disabling/enabling WiFi.
[Nexus 4 Original Android Development] sauravsaka:
Lineage os 14 how to enable network traffic speed meter
[Nexus 4 Original Android Development] Sam Nakamura:
This is the lineageOS 15.1 thread, please choose the right thread for your question...

Thank you!