yashsingh1/xdaforums huggingface dataset:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] philje123:
I had some problems previously with a banking app not working.

I had to use Magisk hide as well as using the option in Magisk manager to rename the .APK to a random package.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Hmm strange. I've had this issue only when I rooted my phone. With no root no issue's....
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] lozohcum:
In my case OTA broke the camera so I wouldn't recommend to use it, you never know what may happen.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] phalsgun:
I am on previous build 8-7 of this ROM. I just tested SHAREit , had no problem turning on hotspot and Bluetooth by itself in receiving mode
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Subho166:
Mine is working flawlessly in latest build also.No problem here at all.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] pootie_tang:
I'm on the 3rd nightly build of this ROM, flashed with original TWRP 3.2.2-0.

Since then, I've learned there is a modified TWRP for LOS, so I flashed that.

LOS OTA fails, as well as trying to flash anything from recovery, as mounting of /vendor fails. Backup also fails @ system image phase. Both were true for the original TWRP as well, after flashing LOS 15.1.

TWRP 3.2.3-0 has been out for some time now, which fixes the OTA update, but there seems to be no LOS version in sight.

Can I safely use the original TWRP to flash the latest LOS 15.1 nightly via OTA or should I wait until the LOS version of TWRP is out for the P2?

I'm extremely hesitant, seeing as I can't even backup now.

Thanks very much for any input you have!

UPDATE: After some investigation, I got the latest LOS 15.1 nightly & successfully flashed it via LOS version TWRP 3.2.2. Be advised that Magisk & Xposed will have to be reinstalled. I used the latest betas for them but as per my previous post, they still cannot be installed systemlessly as /vendor fails to mount in TWRP.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Samanvith:
Running pubg just for 30min heats up to 42c and drains batter heavily..I didnt find this issue in any custom ROM I used
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mido hamdy:
What is the best way to calibrate battery after installing the latest nightly?

P.S, I'm rooted.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
there is no such thing as calibrating the battery.

all you can do is reset the battery usage stats to fix prediction and usage statistics.

there are countless apps on the play store that do it under the false claim to "calibrate the battery".
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] philje123:
I read earlier in the thread that face unlock wasn't working. I too found it to be very hot and miss. Sometimes it would work but took a few seconds and other times not at all.

I went through the process of improving it a couple of times and it's working perfectly now.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Tahir Baig:
Is it necessary that the stock ROM (s251) should be rooted when flashing Lineage for the very first time?

P.S- this is the first time that the phone will be flashed with a custom ROM.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nilsk123:
No. Just follow instructions in the first post.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
No, all you need is an unlocked bootloader and have the TWRP listed in the wiki to be installed.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] yourmine20:
Any idea how to install dolby atmos on treble ? Please help!!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nozav:
Absolutely not, you don't even have to root your phone after flashing lineageOS (I didn't).
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] htunze:
I will try to build. Why not. scoccer is over, the night is long.

I hope it wont take days. Nobody has experience? Round about?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] philje123:
Omg. I nearly just did a wee with excitement!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] celoxocis:
no need to build it yourself. build is in progress.

also your unofficial build won't be signed by lineageos private keys. meaning you won't be able to dirty flash from Unofficial>Official.

build on Oreo base depends on a lot of factors. not just core counts/clocks and RAM but also the drive speed of your target sources.

but you can expect a build time of 4.5h-5h.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] emrecan3321:
building... :o

https://www.lineageoslog.com
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] htunze:
OK, than I know how long It can take. thank you celoxocis

Perhaps i'm a litte bit naive and ask silly questions.

I thougt about a virtualbox ubuntu 16.04, install listed packages and see next day what happens.

once tried to compile openwrt , a small router os like that and used it for my router. I was very proud to use my own home rom and told every visitor. My wife is very anoyed and say, I just used the source. anyway.

But of course I prefer and the official rom ...

perhaps I try it for fun for myself...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
It's still Tuesday..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Spazturtle:
To enable Treble and the vendor partition do we only need to flash the modified TWRP or is the partition part of the ROM?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
Again it disappeared !!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] bevvare:
Are you saying it's possible to dirty flash from unofficial LOS 15.1 to the official build once it's released?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nothingman1976:
I think it's a successful buildView attachment Screenshot_20180710-235646.jpeg
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] timurw:
https://mirrorbits.lineageos.org/fu...neage-15.1-20180710-nightly-kuntao-signed.zip
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] htunze:
yo. mike or highway and all other. cu on cm15.1 ! :laugh:

thank you all
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] 911-Future_Maker:
The build is live, congrats. Watch out to not break the server by downloads now.:laugh:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sunando:
It indeed is

Thanks Mike and everyone involved in taking P2 to official LOS 15.1 :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kielbek:
Building ROM by yourself is fun, can confirm. I was cherrypicking some features from other ROMs and other useful patches into cm13 back when I had G2 Mini. However I was building it on Google Cloud v-machine (Ubuntu 14, 4 vCPUs [Xenon, ? GHz per CPU], 16GB of RAM, SSD 500GB and Hi-Speed connection). In this configuration I was able to build working OS in about 3-4 hours from scratch? (Preparing workspace, repo sync ~20 minutes, first successful clean build ~ 2h). Ofc when I learned how to resolve all problems I've encountered so far when configuring everything (Back then I had big problem with Gello browser).

If you want to do some experiments and you've got SSD with at least 200GB(?) then why not. If you want just to build clean LOS with your username on it then it's a waste of resources in my opinion.

Google cloud offered free credits few years ago but now It's probably free for a year. Check it out if you are interested:

https://xdaforums.com/chef-central/android/guide-how-to-build-rom-google-cloud-t3360430
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] htunze:
Nice! Its flashed. Magisk 16.6.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] htunze:
PS cm15.1 encrypted ext4 without asking. But its OK. Hello Kielbek.

Thank you for your tipps. I've an AWS free1 year but i didnt know Google has also offers.

Now i'm motivated . If its so easy ...

Torrorow New Day.

Kielbek sounds german ... Bin aus Hamburg.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nothingman1976:
After one hour of usage, no problems after dirty flashing 15.1 over 14.1

Good job!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sunando:
Same here ... Zero force close ... But can you confirm if 'am/pm' is visible or not in 12hr clock on the dashboard.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Where to find lineage os twrp??
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] atrirocks:
I can't install the latest update via ota. The twrp shows no internal storage and i can't find the zip manually. Please help me......
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] XHunter:
I'm also facing the same problem.

Then I exported the zip file into internel storage via updater.

Then I have to reboot again to recovery and flash the zip.

I think the problem occurs due to the secure startup!!.( Not sure about it)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] blofse:
So my OTA update works, seems to keep root, safety net etc. I came from another 8.1 ROM, and I did not flash internal storage as part of the original install but flash everything else bar boot. Hope that helps!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] atrirocks:
Where exactly did you get the zip. I mean i can't find where it is stored after downloading via ota
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
If the update isn't working you could try downloading the latest from here.

https://download.lineageos.org/kuntao
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] XHunter:
Go to settings> System> About Phone> LineageOS updates>Download the latest zip file(Dont press install after Downloading> Click & Hold on the zip file name>

From there you can find three options> Click on Export.

Now go to file manager > Internel Storage> Find the folder name " LineageOS updates"

Now there you can find your exported zip file of the LineageOS.

Now reboot to recovery & Install zip file

That's it!!...?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] bigralph62:
everything is fine except for the power save button.

Unfortunately I am new and I can sin of inexperience, moreover I wrote this post in Italian, and translated with google translator, for which you forgive mistakes.

I tried to carefully follow the steps to install the new rom ... but after each installation at restart the phone would emit a long vibration, black screen with the notification led lighting up.

After several installations, in this state, with fastboot I flashed the "boot.img" file only and finally the system started up and now everything is fine except for the power save button.

Does anyone know how to restore functionality?

Thank you all for the excellent work
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Chillmann:
Power save button isn't working in any custom rom. And probably never will :(
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mido hamdy:
after installing LOS 15.1 ( clean install ) coming from LOS 14.1, im experiencing very low in call volume !

i modified the values in mixer paths.xml but with no results . earlier in LOS 14.1 when i modified those values, it made all volumes high.

any suggestions coz im not the only one who experinced this ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Liacon:
No powersaving button, but now you can go in power saving mode from the quick setting, just pressing the battery icon.

The slide button it's a powerfull antistress thingy now.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Frasp:
Hey, so... I've run into a bit of trouble. Basically I can't do anything with the data partition. Not mount, not remove encryption, not change FS to ext4 etc. Did oem unlock today, flashed the twrp in the wiki.

Somehow, lineage still installed, but no gapps so figure I'll have to flash it again...

Tips..? :crying:

---------- Post added at 09:45 PM ---------- Previous post was at 08:53 PM ----------

I did some magic, and now I'm at AP Fastboot Flash Mode (Secure). Adb devices isn't finding anything, and TWRP is gone ^^

---------- Post added at 10:32 PM ---------- Previous post was at 09:45 PM ----------

Managed to flash back to stock android 6. Think I'll wait a bit til I try this again...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kielbek:
You've managed to install Lineage on you own and have enough knowledge so I will try to help.

Quick tutorial for you:

1. When you're in that Fastboot mode you metioned, you can flash custom recovery with command: "fastboot flash recovery RECOVERY_IMAGE.img".

There's 2 scenarios how you enter it:

Scenario 1: Phone is completely off.

- While phone is off, hold Volume Down button and then connect your device using USB cable to PC (try to use original USB cable if you can) and fastboot mode will appear.

Scenario 2: You can't completely shutdown your phone because there's no way to boot the system and do it from power menu (bootloop for example).

- Connect you phone to your PC with USB cable and hold POWER button until screen will be completely black. It will take about 10 seconds. When the screen is black instantly push and hold your Volume Down button and release POWER. Fastboot screen should appear. If not - try again.

From here you'll able to flash TWRP.

2. TWRP from Lineage Wiki is not capable of formating /data partition due to "bug" so if you want/need to format your /data partition you must use Official TWRP. You can do this by entering fastboot mode and typing command I provided earlier. In this case: "fastboot flash recovery twrp-3.2.3-0-kuntao_row.img".

After that you should disconnect your USB cable and select "Power Off" using Volume Up/Down buttons and accept using POWER button.

Now you can enter TWRP by holding Volume Up + Volume Down at same time and while holding them you should start holding POWER until Lenovo logo appear. After Lenovo logo will show up you can release POWER and keep holding Volume Up + Volume Down until you see TWRP.

Use official TWRP ONLY to format your /data partition. You should do this by entering Wipe menu > Format Data > typing: yes

After doing this reboot to bootloader (fastboot mode) from TWRP menu (or like I wrote before) and flash TWRP from Lineage Wiki like you did first time flashing Lineage or read point 1. then reboot to newly flashed TWRP and flash your Lineage.

Remember to flash gapps before booting to Lineage this time! ;)

3. Remember that ADB is not working while phone is in fastboot mode. You can use only fastboot commands here.

Props for trying to figure out yourself how to resolve the problem you had. Most people here would not do that and spam this thread instead.

Funny story at the end:

When I was checking TWRP buttons and I was in the Wipe menu, I unlocked screen after it went black but because TWRP unlock slider is laggy I thought that I didn't unlock phone screen so I slided Factory Reset slider and got my phone reset XD. That was epic fail. Thank god I have pretty actual backup of my /data partition :cool:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Frasp:
Thanks for an excellent answer :)

What you're saying is that all I need to do is to follow the guide and not worry about red ugly warnings about the data partition?

So basically, what threw me, was all the red warning messages regarding the data partition. I think I retried flashing lineage since I thought it failed, and around here I probably forgot to reflash gapps...

After booting back to twrp, i tried to format/wipe some more. Since it kept failing, I figured I'd just try to restore my backup and look for another twrp to install. The restore failed which left me in fastboot after rebooting.

From here, I tried flashing twrp a few times, but it kept saying something about recovery not availabe in boot/on device or something? Rebooting after flashing didn't make me end up in twrp either.

After this, i flashed all the systemparts etc to restore to android 6. After flashing boot and the images your're supposed to flash, fastboot said something about boot not available on device (and x not being available/existing on device(?) for the other images except for the systemparts). But it worked in the end :eek:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Today my phone dropped..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kielbek:
To be honest I haven't encountered such problems since I unlocked my bootloader (05.08.2018) but It's mostly because I'm on LOS 15.1 since that day. I tried few Universal-image Treble ROMs out there but Official ResurrectionRemix pissed me completely off and I went back to LOS and not gonna change it for a while. Although I've did some f***ups in that time and I had the opportunity to see on my own what problems people had with that Lineage TWRP (from wiki).

I did this quick guide because it looked for me that you've panicked a little and did something bad because u wasn't aware of that bug with formatting /data through LOS TWRP.

What I told you is basically what you should do next time when you get in the similar trouble again.

I mean you need to care about these red warnings BUT next time when you forgot to install your gapps or did something weird with the ROM and you will need to remove decryption to start fresh you shouldn't format /data partition using this TWRP provided in Wiki. Red errors will appear here everytime and could broke your phone like they actually did somehow. Instead you need to flash official TWRP I provided in link, format your /data by entering "Wipe" menu > tapping "Format data" > confirming by typing "yes". If TWRP didn't throw up any red error when it ends, you could flash back TWRP from Wiki and then ROM, gapps again. If official one threw you an error then you should reboot to recovery and try again. Sometimes it mounts partition wrongly. If you somehow forgot which TWRP are you using right now then you should look at top of the main menu on version. 3.2.2.0-20180709 = LOS TWRP which isn't capable of formatting /data right now and 3.2.2.0 or 3.2.3.0 only = official one which you should use ONLY for formatting /data while on Treble ROMs. I hope it brightened up the situation a little for you.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] JohnKoffee:
Has someone managed to get Magisk to work ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] MrJackTR:
Can we get lineageos 16?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] blofse:
Yes but only on time. Currently we have just got this one so I think it will be some time off...
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Damn...:eek:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
But the good bit was nothing happened, the back cover had a small crack.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] tr4usut2:
Bluetooth calling on 0814 build seen not stable. Some time working, sometime not working. Is there any build for stable bluetooh calling, tks.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Then you've has much luck you know
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Yup very lucky.

Colorpur Lenovo P2 Cover - Wooden Slices Blue Printed Back Case https://www.amazon.in/dp/B06W5NZZW2/ref=cm_sw_r_cp_apa_i_K6-DBbH2JQ16T
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
Can anyone recommend a good wake lock detector?

I keep getting awake screen off time. Something is keeping to lower CPU constantly on, but I can't figure out what it is. I've tried Better Battery Stats and GSam and nothing obvious is showing.

Only getting about 7 or 8 SOT and getting about 3.4 % drain per hour with this wake lock (I assume it's wake lock)

When I restart the phone I get between 1 and 1.5 % per hour until he wake lock kicks in again.

It's quite frustrating. Been trying to figure out what it is for about two weeks. Did a full wipe and reflash.

Don't have SU or magisk installed and nano gapps

Thanks.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] dadodaja:
+1

I have noticed when I leave the home WiFi area to lose deep sleep
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
Yeah I thought I noticed something like that.

Do you use Spotify? I have a feeling it's this causing it, but it's not showing up in and wake lost lists or alarms etc. This is when it's not in use. When it is in use then it keeps the phone awake which is expected.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] dadodaja:
No, I do not use Spotify...

something else makes a problem
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] YoYoRishi:
Hey andy use magma kernel it will fix your problem maybe, give it a try.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
Thanks. I'll give I a try and see.

I'll report back as I bet everyone is on the edge of their seats.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
So I tired that and my phone just booted to bootloader(?). Not sure what the problem was but I'll not try it again.

Had to flash LOS back to get the phone to boot.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] YoYoRishi:
So you dirty flashed the kernel, you should've done a clean flash but ok thanks for trying anyways.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Tahir Baig:
I am currently running another aosp ROM(rooted) with official twrp 3.2.2 and planning to move to LOS on my P2.

From a few posts back I have come to know that LOS requires another twrp.

So I wanted to make sure my transfer to LOS is as smooth as possible without any problems or bootloops.

A few questions to ask-

1. How do I first change my twrp to the Lineage twrp from wiki?

2. After the latest safety net api change, is there anyone who has tez/Google pay working on their unrooted LOS in the latest build? (I wanted to know if tez works on an unmodified/unrooted Stock LOS as I am not going to root LOS and use it stock)

3. Any other things to take care of or keep in mind before or during the installation process.

P.S- The ROM I am currently on is rooted but I don't plan to root LOS and use it as stock as possible.

Regards!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Muza786:
Feature request

Please bring stock applock into the ROM.

Also improve ambient display capabilities to detect removal from pocket and other gestures of possible
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
I think you could be right switching from WiFi to mobile data is causing a kernel wake lock issue.

First screen shot is after leaving the house, from WiFi to mobile data with large kernel wake lock time.

The second is a restart just on mobile data. Reduced lock time.

I'll try are log a jira. Maybe after tomorrow's update, if the issue is still present.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
Not sure why the images are not attaching.. hopefully attached here.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DS-1:
Anyone knows how to remove no mobile signal notification?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
Anyone having problem with no incalls ringtone sound on Bluetooth headset? Everything else works fine, like media and notification sound.

- I have turned on option for that in developer settings;

- Device has checked box for phone calls.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Mr.Pike:
I have one strange issue. After every system (re)start, LOS tells me the SIM is locked. But it doesn't ask for the SIM PIN. Instead I have to enter airplane mode - this is when I get the PIN prompt. Then after disabling airplane mode, everything works fine.

Might this be a compatibility issue with my SIM card?

I'm on the latest nightly. No root. Clean install. (It was the same behaviour after upgrading from 14.1 though, but I wanted to make sure an did a clean install.)

Otherwise really great experience with LOS 15.1 so far! :good:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
I have the same issue.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] pit98:
Drain battery problem..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
I logged a bug when moving from WiFi to mobile data the phone does not go into deep sleep.

For now if you move from WiFi to mobile data try restarting your phone. Works for me.