yashsingh1/xdaforums huggingface dataset:
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] Meticulus:
LineageOS 14.1 is a free, community built distribution of Android 7.1, (Nougat) which greatly extends the capabilities of your phone, tablet or PMP.

​

#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

These are LineageOS 14.1 builds are for the Huawei P9 Lite | Honor 5c | Honor 7 Lite | Huawei GT3 | Huawei GR5 mini. It may cause all the things in the disclaimer to happen, or steal your girlfriend while you are busy flashing ROMs.

GPL:

kernel: https://github.com/Meticulus/android_kernel_huawei_hi6250

Warning: Currently, this ROM is in ALPHA.

Notice: These are not "official" LineageOS builds.

PLEASE STAY INFORMED!

No one likes to repeat themselves over and over again.

Latest Development Activity: here

Development Blog: here

Thread Etiquette:

I am not your personal tech support/customer service!

Don't post in here just to get me to notice or help you!

If all you do is complain then I never help you. That's my choice.

If you are helpful and contribute to development by testing or helping out others, I am more likely to help you.

If I tell you to take your conversation out of this thread, it's because you are OFF TOPIC. So don't respond, just continue somewhere else!

If you try to tell me what to do or how I should be, then I HATE YOU! I can't help it. I HATE THAT!

If you don't read what I write then when you don't understand I laugh at you!

Please do not ask your n00b questions here. Use the Q & A Thread here

Please do not quote the OP!

Examples of what not to post here:

Download | Screen Shots | Changelog | Known Issues | Install Instructions: meticulus.co.vu

Gapps [arm64 | 7.1 | you choose]: here

XDA:DevDB Information

LineageOS 14.1, ROM for the Huawei P9 Lite

Contributors

Meticulus, dady000

Source Code: http://github.com/Meticulus

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.10.x

ROM Firmware Required: Meticulus Development's TWRP/ Unlocked Bootloader

Based On: CyanogenMod, LineageOS

Version Information

Status: Alpha

Created 2017-01-26

Last Updated 2017-02-12
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] StefanSpiegel:
will it be possible to dirty flash this over your last cm13 build?

you wrote: LineageOS 14.1 is a free, community built distribution of Android 6.0 (Marshmallow)...

I think it should be 7.1 right? ?
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] Meticulus:
Yes, you are correct, it should be 7.1. I suspect that dirty flashing over CM13 will not work but I have also not attempted it. ;)
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] befiq:
Video or Screenshots ?

Wysłane z mojego HUAWEI VNS-L21 przy użyciu Tapatalka
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] Meticulus:
There is a short video on my blog; 2nd post. I can not get the screenshot page above to load properly so I can post screenshots... I'll continue to try... ;)
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] StefanSpiegel:
just tried it... dirty flash over cm13 and flash new gapps works... :good:
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] Meticulus:
WIFI BUG

FYI: Just noticed a crash in Wifi. Doesn't happen until trying to connect.... :(
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] NoMercyWWE:
Edit: OK worked, now...

Had nothing to do with the Rom but with Google nearby

I will Report Bugs as soon as i find them.

Anyway good Work so far ?

Had no luck tells me to Unlock my other device to Transfer data..even when I click on cant Do this now..
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] dady000:
Great news, do you plan on releasing the sources?
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] mchtt:
Working perfectly on my L31 ? thanks a lot for your time and efforts !

Everything is smooth like butter .

---------- Post added at 07:26 PM ---------- Previous post was at 07:08 PM ----------

Only issue I got so far is the camera that is not working 25_01_2017 build and screen rotation not working yet due to sensors as mentioned.
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] ndroid1562:
Are these the only bugs or did anyone recognize other bugs?
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] mchtt:
Issues are noted here: http://www.meticulus.co.vu/

You may prefer the cm13 release for the moment as a daily driver.

Another bug i saw:

If i install another keyboard and then disable the stock one, the keyboard does not appear anymore in some apps until i re enable the stock one even if i'm not using it.
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] Nicofisi:
Hello!

Do you publish the code somewhere? :) Because I only found this http://www.meticulus.co.vu/p/blog-page.html and there is little to no activity in the last few weeks
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] mchtt:
Thread Etiquette:

Please do not ask your n00b questions here. Use the Q & A Thread here https://xdaforums.com/huawei-p9lite/help/lineageos-14-1-q-t3545372
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] Meticulus:
Yes, but not at this early alpha stage. ;)

P.S. Wifi + All sensors will be fixed next build...

Edit: Can you please edit your previous post and remove the "quote of the original post or (OP)". Thanks...
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] dady000:
BTW I looked into the FM Radio again. This time I decompiled the apks and frameworks and found out that they are using modified FM Framework which looks something like this. The FM JNI library then registers those functions. So we can't use the stock JNI because it can't find the framework. Then they have created some service which communicates with the FM radio. The FM app then just calls the commands from the service. I didn't find any traces of QCOM FM radio so we have some BCM probably. So after I found out they have heavily modified all the opensourced code I stopped because we would need to reverse engineer a lot of things and it is not worth it in my opinion.
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] Meticulus:
Reverse engineering is not the only option. Provided we could find the kernel driver, a user space driver could probably be written from scratch. I have some experience with FM kernel driver with my YP-G70. It had an "Si7102" (I think) FM chip. Although I was never entirely successful, I did try several times to write a user space driver for it. I was able to control the chip pretty well but I could not figure out how to integrate the audio output. ;)

P.S. I finally wrote that sensors lib, I've been talking about since the beginning of CM13. Afaict, It works perfectly and that is how I fix the sensors.
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] dady000:
Yeah the audio output.. They have some functions in the library like set_fm_volume probably used for that. I'm not sure if we could use it.
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] Meticulus:
Fingerprint Fixed

Will be in next build.... ;) I did find it rather difficult to get through enrollment though... ;)
[Huawei P9 Lite ROMs, Kernels, Recoveries, & Other ] Coolyou:
So any chance of having Stock camera optimized or we are going to have Google camera?
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
So as it seems the underlying issue was all in these batteries of note7 and the aggressive design of the phone chassis itself - leaving little to no gaps for battery, probably not enough space for battery front and back either so batteries easily got squashed inside of the super-slim factor phone design chassis while wearing phone in tight pocket like situations and due to the fragile nature of the battery it just got affected, damaged and caught on fire like explained in latest samsung reports.

Here is the deal, I will get equivalent original samsung battery from S7Edge model etc, same 3600mAh capacity (providing the thickness is same or less than that of Note7) and with necessary modification (if applicable) to the battery terminal flex connector so it clips right in to the Note7 PCB just like original Note7 battery did, I think this should be excellent workaround for dangerous Note7 batteries!

I of course would try to perform various tests before final assembly of the phone with new battery mod in it, such as full discharge and recharge, also recharge while heavily loading phone with benchmarks, and also attempt multiple fast charging routines monitor how phone behaves with the new battery, that is - all these tests are to be done on phone fully disassembled in the worst case scenario if phone battery still would get caught on fire during the testing I would at least salvage the phone from disaster that otherwise would be inevitable when testing phone fully assembled.

Your thoughts?
[Note 7 Themes, Apps, and Mods] Thevendren:
I would say you should give it a go. But isn't the S7 battery bigger ? How about trying to go with the S7 non edge battery instead ? Plus I thought that some battery were not soldered properly and made a short circuit to happen ?

Source I read : https://www.cnet.com/news/samsung-galaxy-note-7-return-exchange-faq/
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
Im yet to find out about the battery dimensions/size. while s7edge appears ~1mm thinner to my observation makes me think battery design should be similar or lesser in thickness and I really expect it to be no taller/wider but that is to be confirmed later when I take it apart(if it comes to that).

If batteries do fit, all I need to do is to unwrap the shield of the note7 battery where PCB is soldered to +/- terminals and replace battery connection pcb the same way back to s7e battery.

I think s7e battery would be the best candidate as for 3600mah capacity vs 3500mah note7 capacity, even if phone some way tries to charge this battery further than 3500mah as per physical capacity of the battery it should be "safe" I think.

Where if the battery installed would be ~3000mah etc, note7 battery terminal PCB chip would probably try to achieve 3500mah capacity and charge may again result in innevitable fatality, that is unless note7 battery pcb chip registers battery capacity 3000mah as wear and tear and adopts to charge only to 3000mah without actually overcharging it.

Had some hobby experience playing with iphone 4 4s 5s batteries in the past where I would swap around pcbs with batteries and phone would work, not ideal because I didnt pay much attention which went where but it did work to great extent.

I too see that the defects ratio was not definite and more so it was one in many many thousands that had bad soldering or manufacturing practice etc missing protective layers and so on, as I observe my note7 battery is always very cold never hot even cooler than that of s7 edge so I think analogy goes to be correct, but still I rather not take much chance with it if you know where Im going with this - "WHAT IF..."
[Note 7 Themes, Apps, and Mods] GarnetSunset:
So basically no chance eh? :P
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
Well, whatsup with that straight "face to the wall" so well thought trough pessimistic comment?

Do you not have life to live meantime? :)
[Note 7 Themes, Apps, and Mods] MrBaltazar:
It seems as if the flex cables are different and the note 7 battery is narrower.

I'm disappointed there hasn't been an aftermarket manufacturer that has created a "safe" battery replacement yet.

I'm using a Verizon Note 7 that I reflashed with AT&T firmware. Since the IMEI is not an AT&T IMEI, I haven't had to worry about "green battery" or "killswitch" updates coming to the phone. Still worried daily that my house will burn down or something, however.
[Note 7 Themes, Apps, and Mods] jopa7:
I think no company will provide an aftermarket battery because the market is very small. That eventually would happen if Samsung refurbished all Note7's and reintroduced them in the market. Mine (have 2) are working flawlessly without any issues
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
Im not certain about sizes yet, it could be alot due to optical ilusion, as s7e and n7 are little different layout, etc - battery in the s7e is seated little further to the left (meaning more toward the center of the phone) and the camera on s7e at least to me from the first glance when compared to n7 looks more further to the right side which creates illusion of s7 battery to be wider because of its positioning. I may be completely wrong, just wanted to throw that in there though.

Also, battery from note4, S5 can potentially be used too, of course its core would need to be stripped and de-soldered from the old PCB and after that you have a naked battery pack that is still permanently safely sealed with two (positive and negative) terminals exposed ready for soldering with original note7 battery PCB and connection, providing we get enough room inside battery compartment. it all can be utilized, and even more, maybe note5, maybe s6 s6edge s6edge+ s7 and other similar sized samsung batteries of recent production years have similar measures that will make it a good potential donor? I'd say even if one can find battery of similar but not larger in size and capacity battery from any other manufacturer it should also work by the same methods of DIY, of course obviously acknowledging that the use of quick/fast-charge can be detrimental suicidal step in a way of charging the phone after any such DIY, even if it was samsung approved battery, fast charge is a fast-lane of premature battery wear/overheat and failure, such as explosions.

Here is my observations, I own few of these Note7. I have never ever once used fast charging on them knowing what it does and how it physically affects batteries, never ever had I used it on my note5 s6 s6e or s7e, I rather have my phone charge longer rather than let battery prematurely wear out sooner, and nobody knows what if S6 S7 batteries undergo the same quality testing like note7 batteries did and it was just a great matter of luck to a slight degree that not so many s6 s7's had exploded in the past due to quick charge technology used. Of course, alot of what I said is speculation, but just take that for a minute and let it sink in, think about it. Its certain - not everything that ever happens is publicized.
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
Ok, according to my research (call it bro-science) as it was internet based on official reported measurements of devices, I picked some stripped down samsung phones (notes and S series), adjusted these pics to represent real manufacturer reported dimensions in photoshop and measured batteries in the pictures. So far I can give rough estimates and the best to my knowledge these measures may not represent exact measures of the batteries but actual measures should be less or equal than what I have figured out. Only thing left to question is the thickness of the batteries:

We have here a patient, in a name of: Note7, this battery measures 99mm x 38.5mm

Other models I have looked at were:

S7edge 96mm x 41mm ( [MENTION=6116382]MrBaltazar[/MENTION] > you were correct regarding battery size there, its too wide )

S7 88mm x 37.5mm (looks like ideal candidate for now, especially providing extra headroom for DIY work on the top of the battery which may not come out as neat as from manufacturer)

S6 99.5mm x 46mm (too tall & too wide)

Note5 108mm x 42mm (too tall & too wide)

Note4 93mm x 39mm x 5.5mm(also seems like an ideal candidate plus its 220mah more in capacity vs S7 3000mah battery)

S7 Active 91mm x 40mm (this would be interesting @ 4000mAh ... I just am almost certain - thickness of this battery got to be greater than note7 or note4/s7 candidate battery... a strong guess)

I feel note4 may be real good choice if S7 battery thickness is more than that of Note7, and note4 battery turns out to be slimmer or the same thickness after being stripped as Note7 battery ... especially after removing the top plastic trim that holds gold plated battery terminals with battery pcb and unwrapping first layer of label with NFC antena, that should shave off additional ~0.2-0.5mm from the whole 5.5mm note4 battery thickness.

So thats that, some food for thought
[Note 7 Themes, Apps, and Mods] GarnetSunset:
Alright first off,

HOLY ****ING ****

Second off,

That's amazing

Third off,

**** you ;P

Keep up the good work mate! If you can find a system you can replicate let me know, I would LOVE to try it.
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
Im sure it will all work well, keep an eye out here, this actually drives me somewhat to do this. Most interesting is testing under load once all is done.

I was thinking more, and I believe S7 3000mAh battery is the best choice regardless of anything (unless S7 Active battery magically fits just the same, but its unlikely given its huge capacity it must be much thicker, but I am not sure 100% yet anyway). S7 and Note7 is of the same period/same production line, so if anything it should work the best, even with quick/fast charge when needed, as I thought today it still would be a very good feature to use if one is stuck in an emergency situation such as airport and needs a quick sufficient charge in short time - if fast charge works well - its there to use, otherwise I would still be against using it every-time, for longevity of course.

another interesting trick would be to remove Note7 battery and have it X-Rayed to see if any dangers are underlying like those explained by samsung, should be visible under high-res x-ray imaging, but I dont have access to that(yet) so I will still keep the note7 battery cell for a while until maybe I get access to such equipment.
[Note 7 Themes, Apps, and Mods] MrBaltazar:
Sounds like the Note 4 battery might be the ticket. I'd be willing to try this out if I knew how to attach the note 7 flex cable to the note 4 battery, as well as disassemble both batteries.

---------- Post added at 10:07 AM ---------- Previous post was at 10:03 AM ----------

Please keep us informed on your endeavors into battery exploration.

---------- Post added at 10:12 AM ---------- Previous post was at 10:07 AM ----------

I am actually almost tempted to order a s7 battery and see if the connection is the same on the note 7 PCB. Then it's just a matter of bending the flex cable into place
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
Connectors all look identical for S6 Note5 S7 S7E , what worries me most I think the most is its the way pinouts can vary on them model to model, as I remember there's not only Positive/negative terminals , look here:

other connections are also important, and most important that it is not going to get connected in reverse which I dont want to even try, thats too precious loss if I fry anything on note7 pcb, try go and get another one of those note7 pcb's nowadays ahaha, let alone note7's !

So, all in all we can try and measure terminal voltages on both Note7 vs S7 and compare how it looks on multimeter, then try position it accordingly and expect it to be straight fit, then if all works well and flex is actually long enough - solution is found, no need anything to solder I suppose just plug in, bend flex a lil bit where necesary, making sure no sharp edges are exposed to the bent flex, no excessive pressure applied on bent flex cable before/after assembly, and for most part that the battery is right thickness and not squished in there, then its all green-lights and good to go, but just by the visuals it looks that note 7 has somewhat longer flex, and oposite facing angle, look here:

S7:

Note7:
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
I did not realize it would be this difficult to find authentic original non-replica s7 battery... lots places sell those but if one has half functioning brain its clear as day these are non-original... However, I did find some note4 original in samsung retail packaging and all papers batteries, which I think rather go with, which is almost local too vs. importing another second best from China/Hong Kong... so that's that... My only hopes in buying note4 battery, if its truly original and new unused not charged unabused piece is that if it will still actually hold 3000+ mah capacity off the shelf ... hope it will. I mean after all it would be dormant for 2~3 years or more, and batteries do get old and sometimes just prematurely die also...

Will keep you posted

Night
[Note 7 Themes, Apps, and Mods] manu_b:
I Tried Note 5 battery. Its bigger in terms of Length and width. As mentioned before flex cable is different and male/female end of connectors have been interchanged.

Out of desperation disassembled old battery and took the battery circuit out. Soldered Nokia BL-4C 3.7 V 840mah battery. Voltage of battery at full charge ~4.1V. Charging stops at 100%. I was thinking of installing something like old rom to limit charge to 60%. I will be installing wireless charging battery for the battery backup.

Its quite fun to play with it. :):)

http://ca.crackberry.com/samsung-wireless-charging-backpack/4A123A24419.htm
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
now that looks interesting ... https://www.xda-developers.com/repo...rbished-galaxy-note-7-with-a-smaller-battery/

replacing old chassis with thicker one to accommodate 3200mah battery? :) oh samsung
[Note 7 Themes, Apps, and Mods] GarnetSunset:
Please please please let me know if you have any success. And if so, please send me a link to a battery I can buy (S7) so I can attempt this too :)
[Note 7 Themes, Apps, and Mods] GarnetSunset:
Woah! Best of luck! I think the refresh is nice but eh.
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
Alright, organized myself S7 original battery, should be about a week or so before it will hit me... I just really hope it is original authentic one and it is beautifully removed from old galaxy S7 (not bent warped etc...), since its used but in excellent condition (or at least so expected to be) I hope it will be like this, and if its thickness and rest of the measurements is a GO, good stuff, if not, I will order Note3 battery.

This battery and LDU Note7 should arrive at the same time next week (I estimate roughly...)

So thats that...
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
while still waiting for my packages, I was just randomly pondering trough some ideas, which are worrying to some extent.

#1 what if the donor part - the note7 battery PCB interface chip is going to try and force newly mounted battery (which would be S7 3000mAh battery) to charge all the way to 3500mAh as per standard note7 battery specs? That would lead to fatal consequences once again, almost bizare when come to think of it (not saying I am not thrilled to try hahaha!)

#2 what if it will charge battery to its maximum capacity as designed (for S7 battery it would be 3000mAh) and then stops charging as intended, but then when usability goes, what if the battery meter measuring is all messed up and it doesnt read battery % correctly? lets say if it stays stuck at certain % or moves down when discharging in a skewed fashion...?

#3 I was thinking if it was an option to remove charging IC controller from S7 battery charging PCB interface and solder it over in a place of Note7 PCB chip? just to have it all 100% done right(if the two of the above prove to be truth)

I am really anticipating it will all be fine and quick charge will work also, really excited to start working on this.
[Note 7 Themes, Apps, and Mods] roadriano:
Hey I am following your thread. Good stuff ! Im looking forward to the test. :)

I have a Note 7 (replacement model) used only 2 days when I got it .. and didnt used it since. Now I look forward on the battery swap. :D:D

Keep up the good work :good::good:
[Note 7 Themes, Apps, and Mods] Mr.Ultimate:
Thanks man, I believe the more genius minds would join this tech-trip the better it would be ... :) thanks for following me on this