yashsingh1/xdaforums huggingface dataset:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kielbek:
This is not the reason of ROM failing as this refers only to safetynet api key implementation in apps that are using it. It's the reason why apps showing false results. ROM is passing SN fine. From time of this twitter post all apps developers who want to have their apps use SafetyNet need to get and put individual api key for each app. No key = no pass.

I recommend this simple app for checking SN attestation as I immediately contacted developer when google changed their API and he fixed it. It's actually showing correct result.

No ads and bs. It's open-sourced also.

View attachment 4581744
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Uniposka:
Is there any bug affecting LOS music player after the last update? I am noticing a strange behaviour: the songs don't start playing straight away when I press play, the player hangs at 0:00 and it takes unpredictably long for the sounds to start. The files are mp3s, usual ones I used to have before. Never had a problem with them. Skipping doesn't help.

Any clue about what's happening?

UPDATE: wiping cache and dalvik cache seems to have fixed the issue.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] phalsgun:
Yes this happened to me . The problem is it cant find util_functions.sh file at cache/adb/magisk . So it is stopping at the particular line at update-binary script inside magisk modules which is :

# Utility functions must exist

[ -f $MAGISKBIN/util_functions.sh ] || require_new_magisk

So it is firing This error written inside require_new_magisk() function.

It took lot of time for me to figure this out.

Finally flashing magisk uninstall.zip and reflashing magisk solved the problem.

---------- Post added at 01:47 PM ---------- Previous post was at 01:43 PM ----------

Yes exactly. I did the same - Locked phone , kept it in pocket , when took out it is restarting endlessly.

The one thing I could remember is messing with Gpu renderer options like 4* MSAA and default renderer the day before and exactly the logcat says error with opengl es api or something.

Only a fresh install helped get out of it.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Frasp:
You can use appninjas gps app, clone it, move to system apps using TWRP and then spoof your little heart out. It's what I did, works like a charm :) And no root needed, so no safetynet issues.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Thanks for your explanation but it does not clarify why the test is failing with other test apps or the one in magisk manager itself. I've tried the one you mentioned and is passes. The other ones are all failing.. Including without root it is failing.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] maslosky:
Hi guys, sorry if it has been answered, but this thread has become a MONSTER and it's hard to get one direct answer.

I'm going to make my first flash on Lenovo P2 (I've been doing a lot of changes on my previous P1 - P70 and P780.. but never P2). I'm on a stock rom, the newest build available - which TWRP should I flash first to get a smoth transition? I'm keen on doing everything "by the book" since I use my phone for work and won't have a couple of days to play around with it if I mess up something.

Also - should I remove the fingerprint and all other safety meassures before the flash (to avoid any encryption issues)?

Again, I know it's a noobie question, but there are some conflicting posts rolling around and I just need to get the story straight.

Additional note: some tips as for the best custom kernel for battery life would be appreciated as well :)

Thanks!
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kielbek:
Man, I already told you why. These apps are using safetynet like other SN apps (Pokemon, Google Pay or Netflix for example). They're checking if the the device passes attest the same way by sending requests with build fingerprints, selinux state etc.

Google changed it's API so now every app dev must get SafetyNet API key which is individual for every app package and bake it into the app if they still want to use that feature. The reason why other apps failing is because these are outdated and don't have that keys implemented yet. Yep, Magisk SN check is also outdated because topjohnwu was busy moving to new place which is REALLY FAR from his previous home and haven't had his build machine set yet when this happened.

Most apps will tell you that you're failing the test but Magisk is telling you that "request is invalid" and not showing crosses, right? It's because Magisk and app I posted are more precious when it comes to telling user what is happening.

Maybe you didn't knew that before but SafetyNet sample app was there before checks was implemented in Magisk. It was probably the first app of this kind and was popular among Pokemon GO players back when Niantic implemented SafetyNet into their game.

The developer reacted to my comment within 5 minutes after I post it on Google Play and fixed app within a day. I knew what's going on because I saw that twitter post which was posted before and passed it forward to speed up the app update process.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] VladSor:
:good:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DS-1:
I've tried your guide to install Lenovo camera but it didn't worked. What magisk release do you use? I have the vcustom one (magisk manager tells it is vcustom 16.0).
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Anyone installed latest update.?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
Yep
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] philje123:
Yep. Another smooth OTA update :)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] shatteringlass:
I wouldn't agree. I have lost support for fingerprints, which were otherwise working fine beforehand (20180821). I don't have the entry in Settings, but the key gestures are working fine. Nothing on the changelog tho, wtf.

Discard that, working ok after rebooting in safe mode and back to normal.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] joemar53:
My OTA doesnt work. After preparing system update, TWRP opens up. Then nothing happens.. Just quickly shows TWRP console texts some are red ( i suppose theres an error). Then nothing.. I just reboot again.

I am using TWRP from Lineage site
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] phalsgun:
Kindly you could have to take note of those errors and post here . Then one could help...:)

---------- Post added at 05:04 PM ---------- Previous post was at 04:54 PM ----------

Okay I just tried flashing it myself . I will try to debug it and troubleshoot it .

Will let u know then.

I faced the similar issue but this seems different.

Btw I am using magisk 16.6 beta

---------- Post added at 05:18 PM ---------- Previous post was at 05:04 PM ----------

Ehile installing Lenovo camera magisk module , it is checking for a file in data/magisk. The correct path should be data/adb/magisk:confused:

Thats why this error....
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] rogat92:
Me too, after device restarted to twrp, it just didn't do anything, I had to install the ota update manually instead. Then I got error like the screenshot I've attached, but the installation was successful
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Thanks for the clear explanation. That was not clear to me but now it does!

Thanks again!

---------- Post added at 11:16 PM ---------- Previous post was at 10:32 PM ----------

Same here OTA went smoothly

---------- Post added at 11:27 PM ---------- Previous post was at 11:16 PM ----------

Guys, i have a question.

I also use this phone for work but no mail configured ( yet). The company policy is when configuring mail you need to encrypt you device and to use an separate profile. With other words use AFW ( android for work). When configuring this it is required to encrypt the phone. This gave me issues with the previous version (14.1) in combination with OTA. I was unable to perform updates. ( OTA or manually).

Does anyone use this setup also and what are the results. Does it work and also the updates?

Hopefully someone can give me an answer.

Thanks in advance.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DS-1:
So the Lenovo Camera file needs to be modified?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] phalsgun:
The lock-n-reboot issue came back gradually even after fresh flashing rom.

I kept phone is my pocket and out of nowhere it started to reboot when I took it out.This is really frustrating.

For now there are only 2 in this thread facing this issue.

But this time log cat is showing different errors.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] 1lovedeep:
Quick quarry

Does this ROM include highwayster google can fix?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sunando:
Yes
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
Have you logged a jira?

If not might be worth logging one. Don't bug reports are picked up on this thread.

https://wiki.lineageos.org/bugreport-howto.html

I've not had the problem since a fresh flash.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] 1lovedeep:
Which Google cam should I download?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] ekeluo:
Pick here, I use the latest: https://www.celsoazevedo.com/files/android/google-camera/dev-serjo87/

Arnova8G2 v8.1 works well for me, both front and back after a few setting changes.

https://www.celsoazevedo.com/files/android/google-camera/dev-arnova8G2/

Video is still wonky tho.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mantavyask:
do i need to clear internal storage as official installation instructions says this will clear you files in internal storage. i dont think clearing data would clear internal media files.

well im upgrading to los 15.1 from dotos 7.1.2
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
No need to clear internal storage. Clearing data will clear ur apps not ur media files.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] phalsgun:
A quick question. How to clean flash a treble rom?...

What partitions to wipe?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] VladSor:
https://wiki.lineageos.org/devices/kuntao/install section Installing LineageOS from recovery - paragraphs 5, 6 and 7
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] phalsgun:
Sorry for not being clear.

Some threads I have seen to wipe /vendor partition too . Is it necessary?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] VladSor:
The vendor is only in the treble ROM.

I think you do not need
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Mrinmay Medhi:
Rom is great but I think graphics optimization is needed.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] YoYoRishi:
Okay guys i ak currently running LineageOS 15.1 microg version and i want to install magisk so how do you do that. I tried flashing stable(16.0) aswell as beta (16.7) but no success. All ends up with the updater error 1. The twrp i am using is official twrp 3.3.0 (i was able to flash the rom with no errors) .
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kielbek:
Wrong thread mate. This one isn't about MicroG version and MicroG's one isn't even treble-enabled. Ask in Q&A instead of spilling your questions to not related ROM threads.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Mrinmay Medhi:
Magisk working on los 15.1
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] suvam69:
Guys how is the ram management on the 3/32 Indian version with LOS 15? Please provide me with a overall review of this rom on 3/32 P2.. as i am planning to buy one from olx( for the amoled display and that mAh madness!!!)
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Nuaman:
Unable to flash g apps. After flashing GSI builds!!! Any fix?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Mrinmay Medhi:
In the latest build there is a deep sleep issue. Phone doesn't goes to sleep mode after charging to 89-100%
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] phalsgun:
While in los 14.1 RAM management is very poor and I need to restart frequently. Here Android system would take more than a gig easily and I couldn't have more than 3 apps running like Imbox , Chrome and File explorer.

RAM management is very good in los 15.1 , I faced no problem multitasking between apps and also without restarting for days along. Android system takes well less then 1gig and I always have more than a gig for both caching and free groups. So I would have around 700mb cache for fast opening of applications.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] MarcoLoves360:
Can't flash magisk give me an error can't mount vendor can someone help me please
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
I think Reverb of audiofx is broken, it does not give that hall like effect . Tried cleaning cache but of no use.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] EdwinDenny:
How to apply update the right way? I'm having ext4 data format. no magisk. And on los twrp. Does ota works fine?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Roshiz:
Hi, I have a problem with magisk, when I do the installation via twrp it gives me error 1. I would like to know if you too have the same problem, and how to solve it
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DS-1:
Is there any way to fix the path in the .zip?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
OTA works perfect, I must say I have F2FS for data. I assume that shouldn't be a problem.

---------- Post added at 10:33 PM ---------- Previous post was at 10:32 PM ----------

Do you have the correct TWRP version ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
There seems to be an issue when changing from WiFi to mobile data, or mobile data to WiFi.

Restarting the phone at each time seems to solve the issue.

I reported it, so hopefully it will get fixed in future updates.

For now I've just been restarting each time moving from or to WiFi.

I have to say that the battery life has also improve after the last two updates. Getting about three days use now when I was getting two days before.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
Seconded, used to get about 12-13 hours of SoT, now it's more like 17-18 hours.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sunando:
17 - 18hrs SOT ... You kidding right ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
Not really, I'm using L Speed coupled with Greenify though. The sleep mode issue causes me to loose over 10-15% if not connected to WiFi overnight due to which I haven't been able to get any proper screenshots of stats.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kielbek:
Why? 16-18h SOT was easily achievable on official 7.0 for me. My record was about 19h. Don't know about LOS because I haven't managed to get more than 16h yet personally. Usually it's 12-14h and I can't figure out what's eating battery so much.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] danielcepa:
confirmed

last version without this bug is the one from 2018 07 24 (using this now)

in the next build (2018 07 31), there were a lot of device specific commits, one of them must be the culprit.

its a very odd bug: when leaving a known wifi area device will not sleep. also tested by switching off home router.

to test use cpuspy with deep sleep detection/notification

to andyscuff: not findng the bugreport on Jira, wanted to confirm it.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
Wow impressive. Over how long total?

I'm just using as stock without magisk etc.

I'm getting about 9 to 10 hours SOT now and was getting about 7 before.

---------- Post added at 08:26 AM ---------- Previous post was at 08:22 AM ----------

The jira is https://jira.lineageos.org/browse/BUGBASH-2194

If you want to add to it (if you can) feel free
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] danielcepa:
thanks, commented and voted.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
Thanks. Installed CPUspy Material too.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
Managed to clock in 18h of SoT over a period of just under 2 days, with the main apps I use being Reddit, Spotify, YouTube and other streaming apps.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Roshiz:
I use the "twrp-3.2.3-0" version. What should I use?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] VladSor:
TWRP 3.2.2 (Los treble enabled) https://androidfilehost.com/?fid=5862345805528044694
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DS-1:
Shouldn't this reduce the life battery?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Roshiz:
Hi I have a problem with magisk.

I do the installation via "twrp-3.2.2" recommended by you and so far so good. When reboot goes into bootloop, I can only unblock it when I turn it on and open magisk menager says it is not installed. I also data EXT4. What should I do?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] rahulacharya029826:
Is this rom updated to pie??
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sunando:
On lineage OS wiki , links available on the OP
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
Here it is

https://androidfilehost.com/?fid=5862345805528044694
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] b50corei5:
You still have your p2?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Which magisk did u try. Official or from the link for Xiaomi device??

---------- Post added at 03:50 AM ---------- Previous post was at 03:35 AM ----------

When I tried magsik beta 16.6 , it went into vibration and blue led.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] salim0786:
Hi, should I download the official magisk 16.6 or some other. Too confused... ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
And what abt substratum for Oreo. It says it requires add on.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] imPro01:
Can i flash the rom with twrp 3.2.2 ??
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Flash los twrp 3.2.2 , then flash ROM. Don't flash on official twrp.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] salim0786:
For non rooted phones, it does require an add on
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] anilyarki:
Alert!

Flashing magisk is causing blue led black screen issue. I have tried 16.0 and 16.6, both failed. Also I noticed a lot of decrease in signal strength as compared to aosp extended 5.7
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Even I had tried both. Guess have to go with super su..
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] imPro01:
Hey can i use the los twrp for others rom?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Armaty:
This Rom is great . It is stable as hell. But it lacks customisation especially status bar one. That circle battery is gone. We cant disable that ugly potrait battery sign otherwise Percentage will also vanish. We cant move clock it is fixed at right with no option of Am/Pm . It is sad atleast for me.

So going back to last build of 14.1 for my little battery circle guy.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] devran eren:
Did anyone tried to change data format for magisk ? Just asking
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] shabab malik:
Try this Magisk. It should work.

Remember you have to flash it without first booting up the device. First install rom then gapps then this magisk.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Which??
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
The version of Magisk from here works for me :https://gist.github.com/Jerry981028/b6a7fdfcf1823325c2f94f83677fa554
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
:good:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] nothingman1976:
Not visibile but I use 24 hours style
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sunando:
This is bugging me though .... No am/pm indicator for 12hr clock
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] VladSor:
https://github.com/topjohnwu/Magisk/releases/tag/v16.7

First install Magisk-uninstaller-20180719.zip

Then Magisk-v16.7.zip
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] 1lovedeep:
is there any way to check whether fast charging is working or not while charging?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] danielcepa:
nope

used this little app for years on different roms and devices. quite handy for quick stats and troubleshooting

:good:
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DS-1:
Not cpuspy, I was talking about the bug you discovered.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
Pretty much, if I turn WiFi off the phone looses about 10-15% battery overnight.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Roshiz:
Which best camera you recommend to install?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mahmutpekkara:
Thx for this rom. Los 15.1 gives more performance/speed rather then stock rom?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
Yes it does reduce battery life. But you can work around it by restarting the phone when you join or leave WiFi networks.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] mahmutpekkara:
Also I think we need clarification. We should use f2fs or ext4 and use treble TWRP OR non-treble TWRP?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Kevindiepenmaat:
Guys, i have a question.

I also use this phone for work but no mail configured ( yet). The company policy is when configuring mail you need to encrypt you device and to use an separate profile. With other words use AFW ( android for work). When configuring this it is required to encrypt the phone. This gave me issues with the previous version (14.1) in combination with OTA. I was unable to perform updates. ( OTA or manually).

Does anyone use this setup also and what are the results. Does it work and also the updates?

Hopefully someone can give me an answer.

Thanks in advance.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] satej@123:
Guys should I update magisk to 16.7 is it okay to use or should I stick with 16.6?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] philje123:
Magisk 16.7 working fine for me.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
Magisk 17.0 works fine and fixes the broken safetynet test.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] 0101chaitanya:
Where to download magisk 17.0 from ?
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] andyscuff:
https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

It's the latest beta version.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] VladSor:
It's the latest Stable Magisk Version
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] 0101chaitanya:
Is it working with treble ROM ? Any bugs / issues so far
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] sunando:
Yes .. Magisk 17.0 working fine and safety net check is back.

But modules still don't work for f2s data
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] DarkHoundOne:
Modules will work on F2FS as long as you use the 'F2FS Loopback Bug Workaround' module.
[Lenovo P2 ROMs, Kernels, Recoveries, & Other Devel] Lyceus:
This was told so many time that I can't even count. Magisk module will not work with f2fs on 15.1 without specific module flashed in TWRP called " f2fs loopback bug workaround". It will be working fine on lineage 16 thanks to new version of f2fs. And I know that because of my special ability called reading comprehension.