• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[ROM][11.0][UNOFFICIAL] LineageOS-18.1 [PL2]

Search This thread

npjohnson

Recognized Developer
Finally got it working,... and realized I'm an idiot. When I reflashed TWRP after installing lineageos 18, i used the TWRP for android 10 again, and of course that won't boot. switched twrp image to the android 11 version after flashing lineageos to install mindthegapps, and everything went without problems. For those that have issues to flash twrp, first do:

Code:
fastboot flash recovery twrp-xx.img

this will throw an error, but it this means it succeeded.

Next do

Code:
fastboot boot twrp-xx.img
and it will boot.

And now I'm a happy lineageos 18 user. Thanks for the help everyone and the volunteer who made this build possible (y)

Edit: will exfat support be added in the future? Not allowed due to licensing

This is wrong.

>this will throw an error, but it this means it succeeded.

No, you don't have a recovery partition.

Your options are fastboot boot it like you did right after that, or flash it to the boot image and reboot the device.
 

ieperlingetje

Member
Oct 28, 2016
17
3
This is wrong.

>this will throw an error, but it this means it succeeded.

No, you don't have a recovery partition.

Your options are fastboot boot it like you did right after that, or flash it to the boot image and reboot the device.
It's weird for sure. If I do 'fastboot boot...' without first 'fastboot flash recovery...' (like you say should work), the phone remains stuck at the android one logo.
 

iffer42

New member
Jun 12, 2017
1
2
I noticed, that my device often runs out of memory, so i had a look into swap on zram. I found, that the files provided on the vendor partition contain entries for creating swap on a zram device:
Both /vendor/etc/fstab.qcom and /vendor/bin/init.qcom.post_boot.sh seem to do something for setting up zram and enabling swap.
After boot however /sys/block/zram0/disksize shows "0".
Can swap on zram be enabled automatically?

I enabled zram and swap manually:
Code:
echo 1 > /sys/block/zram0/reset
echo 2G > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0

Afterwards my device feels much more responsive, when switching between apps.

Except for doing these steps manually over the adb root shell, there remains one more thing, that might need tweaking: /sys/block/zram0/max_comp_streams should probably be set to 4 to allow usage of either the fast or the slow cpu cores.
 

broccoli_2k

New member
May 27, 2021
4
3
Firstly I wanted to thank all of the contributors for LineageOS and for the Nokia 6.1 version in particular. I've only been using this for a few weeks and it has been super easy to install, updates have all gone smoothly and my phone is mostly running very well with great battery life too (not a given on a second hand phone of this age).

I have one nagging problem with playing music, and playlists in particular. The default Eleven music player allows me to create a playlist but crashes and closes when I try to add a song to it.

I've tried Shuttle and Vinyl which seem to work but when you look at the playlist after adding songs, it is empty. Simple Music Player actually does work for this, so I've been using it (but it has other odd behaviours and it's not my favourite music player overall).

If anyone can help with this I'd be be very grateful but if not you still have my thanks for a great OS overall.
 
  • Like
Reactions: theimpulson

theimpulson

Forum Moderator / Recognized Dev / Dev Relations
Staff member
Firstly I wanted to thank all of the contributors for LineageOS and for the Nokia 6.1 version in particular. I've only been using this for a few weeks and it has been super easy to install, updates have all gone smoothly and my phone is mostly running very well with great battery life too (not a given on a second hand phone of this age).

I have one nagging problem with playing music, and playlists in particular. The default Eleven music player allows me to create a playlist but crashes and closes when I try to add a song to it.

I've tried Shuttle and Vinyl which seem to work but when you look at the playlist after adding songs, it is empty. Simple Music Player actually does work for this, so I've been using it (but it has other odd behaviours and it's not my favourite music player overall).

If anyone can help with this I'd be be very grateful but if not you still have my thanks for a great OS overall.
Thanks for the feedback. Can you please provide a logcat and steps to reproduce the issue?
 

broccoli_2k

New member
May 27, 2021
4
3
Thanks for the feedback. Can you please provide a logcat and steps to reproduce the issue?
Sure, the steps to recreate are simple:
1. Open the music app.
2. Select the three dots next to a song and choose the 'add to playlist' option.
Then it crashes.

I've attached a logcat file but let me know if you need anything else.

Thanks!

P.S. I have tried to attach the text file and it seemed to be successful but I can't see an attachment on this post. Is there another way you would like me to send this?

Another edit: I've tried a few times and the file isn't showing as attached to the post that I can see. This is the part of the logcat that from the crash, I'm not sure if you need any more but as it is a long file I've just copied out this part:

--------- beginning of crash 05-28 06:45:25.961 6514 6514 E AndroidRuntime: FATAL EXCEPTION: main 05-28 06:45:25.961 6514 6514 E AndroidRuntime: Process: org.lineageos.eleven, PID: 6514 05-28 06:45:25.961 6514 6514 E AndroidRuntime: java.lang.SecurityException: org.lineageos.eleven has no access to content://media/external_primary/audio/media/651 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:2373) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2357) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2340) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.content.ContentProviderProxy.bulkInsert(ContentProviderNative.java:573) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.content.ContentResolver.bulkInsert(ContentResolver.java:2230) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at org.lineageos.eleven.utils.MusicUtils.addToPlaylist(MusicUtils.java:1051) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at org.lineageos.eleven.utils.PopupMenuHelper.lambda$onMenuItemClick$0$PopupMenuHelper(PopupMenuHelper.java:362) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at org.lineageos.eleven.utils.-$$Lambda$PopupMenuHelper$Ya3f2d5UoZFaVt0jIhlMWJb1Kn0.onClick(Unknown Source:4) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:1250) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java:330) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java:1187) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java:3179) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java:4097) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7660) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
 
Last edited:
  • Like
Reactions: theimpulson

car1a

New member
Sep 26, 2014
2
1
I find the widget for music player is unresponsive. Work around has been to start the music app, choose my song, then return to widget. Only then can I pause, play, forward etc.

The mod is quite frankly....amazing. Not sure if it's the differences between Android 10 and 11 or just kick butt Lineage o/S but my battery life improved dramatically.

Crossing fingers for Android security level patch Magisk boot image.
 
  • Like
Reactions: theimpulson

theimpulson

Forum Moderator / Recognized Dev / Dev Relations
Staff member
Sure, the steps to recreate are simple:
1. Open the music app.
2. Select the three dots next to a song and choose the 'add to playlist' option.
Then it crashes.

I've attached a logcat file but let me know if you need anything else.

Thanks!

P.S. I have tried to attach the text file and it seemed to be successful but I can't see an attachment on this post. Is there another way you would like me to send this?

Another edit: I've tried a few times and the file isn't showing as attached to the post that I can see. This is the part of the logcat that from the crash, I'm not sure if you need any more but as it is a long file I've just copied out this part:

--------- beginning of crash 05-28 06:45:25.961 6514 6514 E AndroidRuntime: FATAL EXCEPTION: main 05-28 06:45:25.961 6514 6514 E AndroidRuntime: Process: org.lineageos.eleven, PID: 6514 05-28 06:45:25.961 6514 6514 E AndroidRuntime: java.lang.SecurityException: org.lineageos.eleven has no access to content://media/external_primary/audio/media/651 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:2373) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:2357) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2340) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.content.ContentProviderProxy.bulkInsert(ContentProviderNative.java:573) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.content.ContentResolver.bulkInsert(ContentResolver.java:2230) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at org.lineageos.eleven.utils.MusicUtils.addToPlaylist(MusicUtils.java:1051) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at org.lineageos.eleven.utils.PopupMenuHelper.lambda$onMenuItemClick$0$PopupMenuHelper(PopupMenuHelper.java:362) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at org.lineageos.eleven.utils.-$$Lambda$PopupMenuHelper$Ya3f2d5UoZFaVt0jIhlMWJb1Kn0.onClick(Unknown Source:4) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:1250) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java:330) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java:1187) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java:3179) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java:4097) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7660) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 05-28 06:45:25.961 6514 6514 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
The fix has been merged now. I assume the issue should be fixed with the next OTA.
 
  • Like
Reactions: Oswald Boelcke

npjohnson

Recognized Developer
I noticed, that my device often runs out of memory, so i had a look into swap on zram. I found, that the files provided on the vendor partition contain entries for creating swap on a zram device:
Both /vendor/etc/fstab.qcom and /vendor/bin/init.qcom.post_boot.sh seem to do something for setting up zram and enabling swap.
After boot however /sys/block/zram0/disksize shows "0".
Can swap on zram be enabled automatically?

I enabled zram and swap manually:
Code:
echo 1 > /sys/block/zram0/reset
echo 2G > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0

Afterwards my device feels much more responsive, when switching between apps.

Except for doing these steps manually over the adb root shell, there remains one more thing, that might need tweaking: /sys/block/zram0/max_comp_streams should probably be set to 4 to allow usage of either the fast or the slow cpu cores.
We can look into it!

EDIT: Oof - fix is merged lol - that was dead simple: https://review.lineageos.org/c/LineageOS/android_device_nokia_sdm660-common/+/311736

Next build will have proper ZRAM working! haha.
 
Last edited:

broccoli_2k

New member
May 27, 2021
4
3
The fix has been merged now. I assume the issue should be fixed with the next OTA.
Sorry for the late reply, I've now had a chance to install the latest system updates through the phone's updater. The problem is unfortunately still occurring.
Just to try something out I've moved one of the music files from my SD card to the phone's internal storage, and it will allow me to add that one to a playlist without crashing - but not when they're on external storage (although it has no problem with playing the songs from there).
 

theimpulson

Forum Moderator / Recognized Dev / Dev Relations
Staff member
Sorry for the late reply, I've now had a chance to install the latest system updates through the phone's updater. The problem is unfortunately still occurring.
Just to try something out I've moved one of the music files from my SD card to the phone's internal storage, and it will allow me to add that one to a playlist without crashing - but not when they're on external storage (although it has no problem with playing the songs from there).
Hi, apologies for the late reply, can you capture and post a logcat when the crash occurs?

Edit: This is an AOSP issue that has been fixed internally by Google but the fix hasn't been made public. A lot of applications have reported this issue as well. There is nothing except waiting for Google to release the fix.
 
Last edited:
  • Like
Reactions: broccoli_2k

broccoli_2k

New member
May 27, 2021
4
3
Hi, apologies for the late reply, can you capture and post a logcat when the crash occurs?

Edit: This is an AOSP issue that has been fixed internally by Google but the fix hasn't been made public. A lot of applications have reported this issue as well. There is nothing except waiting for Google to release the fix.
Ok I take it it's not much use me posting the logcat now in that case.

Anyway as mentioned before I did find a sort of workaround, so I'll carry on using Eleven most of the time, but if I specifically want to play a playlist instead of an album I'll just use Simple music player (it's not my favourite but it works well for this).

Thanks very much for looking into this.
 
  • Like
Reactions: theimpulson

MartJI.V.

New member
Jul 22, 2021
1
0
Hello, greetings to all, I would like to know if it is possible that this version of android 11 adapted to this Nokia 6.1 mobile the function of the internal memory increase by microSD (adoptable storage), why do I ask? For the reason that my The model only has 32GB of internal memory, leaving me only 15GB in which, I find that it is a bit limited, I would greatly appreciate this response from all of you.

Greetings to all of you, as well as the developer theimpulson for giving us the possibility of having a more updated version of android for the device in question.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi, apologies for the late reply, can you capture and post a logcat when the crash occurs?

    Edit: This is an AOSP issue that has been fixed internally by Google but the fix hasn't been made public. A lot of applications have reported this issue as well. There is nothing except waiting for Google to release the fix.
    Ok I take it it's not much use me posting the logcat now in that case.

    Anyway as mentioned before I did find a sort of workaround, so I'll carry on using Eleven most of the time, but if I specifically want to play a playlist instead of an album I'll just use Simple music player (it's not my favourite but it works well for this).

    Thanks very much for looking into this.
  • 3
    QaU8wTGXdFOb7hmyt9jnICrvdYfmO34aBM8qereCzyJCs4_LeN3AorUvGRjK6g0gljrnHGd_zlEfI2ug3JFbYh0jhiudkLT4qGqOK-Xf5YnBfeSMkFPZinfWlStX81TRTb7I55SmJYA


    About LineageOS
    LineageOS is a free, community-built, aftermarket firmware distribution of Android 10.0 (Ten) which is designed to increase performance and reliability over stock Android for your device. All the source code for LineageOS is available in the LineageOS GitHub repo and if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

    Official LineageOS website

    Downloads Links
    Official Website

    Google Applications (optional) :
    MindTheGapps (11.0, arm64)
    Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

    Flashing and updating

    LineageOS clean install :

    - Follow the instructions at Official Wiki

    About the builds
    - Device Side Sources are on official LineageOS org

    Issues and reports
    - Report issues only if you use the ROM kernel
    - If an additional mod is installed, make sure it's unrelated, and mention it
    - Make sure the issue wasn't discussed earlier in the threads
    - Share a log of the error and steps to reproduce it

    LineageOS available for PL2 also thanks to :
    - Google (AOSP)
    - The LineageOS Team
    - CodeAurora Forums

    Beta Testing Telegram Group | Not required but donations are welcome: Paypal

    XDA:DevDB Information
    LineageOS-18.0, ROM for the Nokia 6.1 (2018)

    Contributors
    theimpulson, npjohnson
    Source Code: https://github.com/LineageOS/android_kernel_nokia_sdm660

    ROM OS Version: Android 10
    ROM Kernel: Linux 4.x
    ROM Firmware Required: Latest stock firmware
    Based On: AOSP

    Version Information
    Status:
    Stable
    Current Stable Version: 18.0
    Stable Release Date: 2020-10-17

    Created 2020-10-16
    Last Updated 2020-11-12
    3
    Official builds will start rolling out soon. 1st post has been updated as required. The changelog can be seen here. Bug reports for the same are welcome on the official issue tracker.
    2
    Well..I just upgraded from 17.1 to 18.1 and all I can say is: This rom rocks!
    This is actually better than 17.1, especially the perfomance, battery life and camera quality (even tho I use Google Camera app from playstore).
    I really like the recent apps UI, it looks great and the fact that you can screenshot apps individualy makes it even better.
    I'm impressed.
    Gotta test it more
    2
    Thanks, with that version I was now able to flash lineageos. If someone can help: Now I stumble on another issue. Since TWRP flashes to the inactive partition, how can I install gapps? Because the only way I can boot twrp is with

    Code:
    fastboot flash boot....
    , but that overwrites the boot image again, so then lineageos won't start.
    Yes, that took me long time to decipher too last two weekends. Anyway, you "simply":

    1. Go to fastboot
    2. Boot TWRP:
    Bash:
    sudo fastboot flash recovery "$IMAGE"; sudo fastboot boot "$IMAGE"
    3. Install LineageOS
    4. Hit Back
    5. Hit Reboot
    6. Change slot
    7. Hit Bootloader
    8. Boot TWRP:
    Bash:
    sudo fastboot flash recovery "$IMAGE"; sudo fastboot boot "$IMAGE"
    9. Install gapps
    10. Install Magisk (if you want root)
    11. Reboot

    In words - you are i.e. on slot A, go to TWRP and install LineageOS. It will be installed to B. You then change slot, go to fastboot and enter TWRP again. This time you will be on B slot so you can continue with Gapps and others.
    2
    8 might not be enough - 16 is usually preferred.

    How many cores?
    I decided to set up a dual boot system instead. I'm building now and am at 93% !

    The first issue I had was sending the blobs to device/nokia instead of vendor/nokia. And the second issue seemed to be lack of resources.

    Thanks for all the help guys.

    Edit: Works!!!!