yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 Android Development (Snapdragon)] GerardSamija:
Okay. Spent a while reading up on 'stock' 6.0.x builds, and settled on this 6.0.1 build from NotaBene:

https://xdaforums.com/note-4/snapdragon-dev/rom-notabene-v1-0-t3577689

Took a while to boot up after a clean wipe, but setup went nicely enough, apps restoring from the Play Store. Lots of lag, as expected. The phone came to me with a kludge of a 6.0.1 ROM installed, loads of bugs, really laggy. This one is at least functioning as it should except for the delays on input. Might just run this for a while as I'm getting a bit bored of fighting with bugs. I'll keep an eye on updates from you ripee, and hope somehow the data disconnection problem gets found and resolved, as that alone would make it worth coming back to 7.1.2 provided everything else you've been getting right keeps working correctly.

------------------------------

Edit: Well, I guess I'm not that patient. An hour with 6.0.1 and I just couldn't stand the interface. I stayed with it and used data enough to know that the connection is rock solid with that ROM, so I can always go back to it if necessary. But I decided to bump back up to ripee's releases.

So I tried a wipe and installed 08/31, the second uploaded version. Also mini GApps from today and Super SU. With no data restored the SIM was not recognised, gave me a message asking me to insert a SIM during setup. So I restored my data and system folders and all my apps were in place etc, but the SIM still not recognised.

Went back to 08/28 and the SIM was just fine. Still is, half an hour later. Probably just another case like I've been seeing up to 08/28, after which SIM is broken for me - data works great for a little while then starts cutting out. But perhaps not. I'll see over the coming day or two, and I guess will continue trying daily builds and reporting.
[Galaxy Note 4 Android Development (Snapdragon)] cgi2099:
I believe this is verizon's current apn:

I haven't had a chance to try 8/31 but I just wanted to say thank you for all your hard work!

Josh
[Galaxy Note 4 Android Development (Snapdragon)] Kortex@XDA:
Hi ripee,

I flashed 0831 yesterday and since, I don't have fast charging in Kernel Adiutor, and charge is quite slow. I'm on n910f. Is it possible to bring this feature back?

Thx.
[Galaxy Note 4 Android Development (Snapdragon)] GerardSamija:
Just to follow up on my edit regarding data and the 08/28 build (last one to work with my SIM card) - after a couple of hours data is back to being very weak and inconsistent. Though it's saying 3G (Freedom Mobile doesn't allow 4G/LTE for older devices, blocks it somehow), I often get page load fails and mail poll fails. Switching data off and on again fixes it for a short while. So again, not an anomaly with my Note 4, seemingly a typical problem with Lineage this past week or more. Probably more, as I was having data cutting out with Lineage on my Note 3 with more recent builds too. Fortunately my daughter doesn't use cellular data so she won't have a problem with Lineage on that phone.
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
Yeah, I'm just gonna stick with the old repos and old kernel until you narrow it down, so build 0901 should have SIM.
[Galaxy Note 4 Android Development (Snapdragon)] GerardSamija:
Don't know that this helps at all, but under this series of ROMs an unusual thing has been happening with battery drain. Until two days ago I was using a three year old battery, then started using a new Samsung-manufactured battery. Results are similar (and yes, I know the new battery will take a week or so to settle in) in that drain is primarily due to cellular connectivity. Normally I've seen battery drain mostly coming from the screen with any Android device. Just now I've been using Dolphin-browser for about two hours, and here's the result, though I don't have always-on cellular data running and was using a good WiFi connection. Mobile standby taking 11%, far more than the screen or anything else, seems to point to a major activity level with something that should have been disabled while on WiFi for more than 90% of that time.
[Galaxy Note 4 Android Development (Snapdragon)] dsat53:
Hi,

there is still no SIM with 0831 and 0901.

How to use New N910F bootloader with previous modem? I have no odin, only heimdall on Linux.

Regards dsat53
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
No SIM on 0901 trltexx? I'm sorry, but you did something wrong.
[Galaxy Note 4 Android Development (Snapdragon)] dsat53:
Hi,

[MENTION=6005084]ripee[/MENTION]: it was a clean install, what can I done wrong?

Regards dsat53
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
So then it's a hardware problem or you could flash stock then lineage again.
[Galaxy Note 4 Android Development (Snapdragon)] GerardSamija:
Tried a few times to download the 09/01 version but keep getting this message:

Did you pull the ROM for some reason, or is this a hosting service error? Tried several times each via WiFi and cellular data connections.

Oops, never mind, just answered for myself. My eleventh attempt got a mirror. Will try 09/01 and see if SIM has reappeared.
[Galaxy Note 4 Android Development (Snapdragon)] JeremySS:
Can't download, saying no mirrors found. Did you pull the build or is it a website issue?

Edit: Nevermind, it was an AFH website issue.
[Galaxy Note 4 Android Development (Snapdragon)] dsat53:
Hi,

What a difference would make flashing a Stock-ROM?

Regards dsat53
[Galaxy Note 4 Android Development (Snapdragon)] GerardSamija:
Not being expert in these things, my guess from what ripee was saying is that a stock ROM might give a better baseband, kernal, or whatever components over which his ROMs might perform better. I'm not clear on how this would work as I was under the impression that modem, kernal, baseband, whatever, were included with each ROM, and as such any other previously installed versions of those would be over-written by a new ROM. Unfortunately it seems impossible to find any developer willing to spend a few minutes explaining this stuff; it seems we're expected to 'research' it for ourselves, often finding that there's no information out there to find about particular questions such as these.
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
It is explained in as much detail as necessary in the OP.
[Galaxy Note 4 Android Development (Snapdragon)] GerardSamija:
You mean this part, from the Q&A bit about device over-heating?

I can't find anything else in OP which explains why one ought to install Marshmallow first, and even item 4) quoted above doesn't explain it, it only suggests that one should do it "if all else fails." Hardly a declaration that it should be done first every time. And certainly doesn't explain why. This is what I meant in my previous post, about how it seems almost an inner circle type secret when these things get stated by developers.

In my line of work as a violin family instrument repairer, I explain things in detail to my clients. They are always grateful for the knowledge. It brings them new depth of understanding of how their instruments work, why certain kinds of repair are better than others, important information about care and treatment of their most precious objects. I have heard hundreds of times for my clients that other luthiers do not bother with such education, and are often very secretive about it. I find this puzzling. Isn't it our job, as experts in a field, to convey knowledge to others? Seems to me it is a responsibility. But perhaps I'm the odd man out in that regard. I enjoy open source information... and assumed that a developer involved in open source code distribution might feel the same way about it, philosophically.

---------- Post added at 12:36 PM ---------- Previous post was at 12:32 PM ----------

Dirty flashed 09/01 over 08/28 and after half an hour no connection problems, so the SIM card not recognised problem is fixed.
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
I mean read the entire OP, from the disclaimer to right above the sources links. The entire write-up was composed over a number of months based on the FAQ's of users so that devs and senior members wouldn't have to keep re-typing the same exact information hundreds of times.

Answering people's questions on XDA and helping them out is not my profession because I know almost nothing about software development or IT, I'm just an enthusiastic user who has the computing power to build lineage and the desire to run the latest code on my phone and share it with others. Had _mone not posted instructions on how to build, I'd never have been inspired to attempt it, as the instructions on lineage's website are lacking. But rest assured, in my day job, it's my responsibility to give the people I work with the most extensive amount of information so that they can make their own choices as to how they wish to proceed in their specific situations. In that regard the work of software developers is similar to mine.

However, getting back to the wonderful world of android development, there are some devs who don't share their work and act as if they're doing the community a favor by sharing builds. Thankfully, neither _mone nor fattire or anyone else currently involved with lineage development for the Note 4 in this thread is like that. Otherwise we'd all be up the creek without a paddle and relegated either to more feature-bloated and buggier custom roms or the horror show that is TouchWiz.
[Galaxy Note 4 Android Development (Snapdragon)] GerardSamija:
Okay, fair enough. For what it's worth, I did read every word of the OP, plus a number of pages of this thread, though not every single post, before attempting the first flash of one of your ROMs on my Note 4. I tend to do that with every ROM, because I'm always flashing my daily use phone and often without a backup device. I like to be thorough. The item regarding flashing Marshmallow (of whatever flavour for one's particular device model) seems only to have been mentioned in that response to the anticipated overheating questions.

I didn't expect you nor anyone else to offer the same answers to basic things about reasons for such advice in every place in the thread where someone asks. In fact quite the opposite; I suggested spelling it out in OP because that would be the obvious place to find such information, and would avoid having to type it over and over again. But since no explanation for why one would flash Marshmallow first is there in the battery/heating part, and since there's not even a suggestion to do this anywhere else in the OP, my point stands. It'd be better for you, a hobbyist, to save yourself the effort by at least posting a link to where someone has taken a bit of time to explain why flashing an older stock ROM first would be advantageous. There is a mention of stock Marshmallow under 'contributors' but I don't see how that in any way suggests users should flash such a ROM. It's more like the credits for a movie, not a step by step method, nor an explanation:

Not trying to be hostile, honestly! I am very grateful for your work in developing this, as I want my phone to function as best it can. Without work from good people like you I'd be tempted to buy a new $1000+ phone... and I'd really rather spend my money elsewhere, like on fun stuff for my kid.
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
I'd add [MENTION=3041959]fattire[/MENTION] to that list if it let me add more people. Anyway, I didn't think you were trying to be hostile but I see you still haven't read through all of the text that's there. I will only mention this simple reason for flashing stock when you run into major problems. It cleans the slate and ensures that lineage sees the partitions it needs to see without any rogue custom code from another rom being left over to conflict with lineage code or, for example, non-standard partition sizes created by another custom rom, which it's easiest to restore to the original sizes by flashing stock.
[Galaxy Note 4 Android Development (Snapdragon)] dsat53:
Hi,

[MENTION=6005084]ripee[/MENTION]: so the only intention of flashing a stock ROM is resizing partitions to their original size?
[MENTION=3317674]JeremySS[/MENTION]: I made a clean install of 0826 by _mone right away. Right after initial boot it automatically rebooted and then it works but did not recognize the SIM card.

As a cross check I made a clean install of RR 0811 as well and SIM is identified.

Regards dsat53
[Galaxy Note 4 Android Development (Snapdragon)] savvy1968:
Returning the device to stock is something everyone should do before flashing any Rom as it sets the device up properly and then you know that all partitions are correctly set and your device is on the latest firmware which is always a good thing when flashing Roms.
[Galaxy Note 4 Android Development (Snapdragon)] KhietND:
Thanks for great works !!!

There are some problems when flashing Lineage OS rom which I have experienced since flashing trltrtmo-0227. The latest I'm using is trltetmo-0826

- No SIM on update 0829, 0830, 0831, 0901:

- flash stock rom then those above but still no sim

- flash the latest firmware, baseband, kernel E2Q2 then flash those above: still no sim

- overheating then shutdown phone (version 0826)

- playing game about 30mins then freezing then shutdown

- turn on cellular data, send/receive mms, phone shutdown

- (sometimes) power off, take battery out (10+ secs) then put back, turn on phone: at the lineage loader screen, phone shutdown
[Galaxy Note 4 Android Development (Snapdragon)] mbr007:
lineage-14.1-20170901-UNOFFICIAL-trltetmo.zip, I can see data but setup failed at the end.
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
Starting with trltetmo build 0901, I went back to fattire's and _mone's original repos. If me builds from a week ago had SIM, September builds should as well. Try the WipeTelephonyProviderData zip in TWRP. If neither that nor flashing stock helps, ask fattire.
[Galaxy Note 4 Android Development (Snapdragon)] Graivite:
I am going to tell you my review of mone's build from 26th of August. It is as mone's says "test build". At first I had mixed feelings about it before even thinking about installing it.. It is something new, but it's only test build. Would it work just as ripee's builds? Is it going to crash every couple of seconds? Do wifi and data network work?

A quick info about my setup:

N910F, the newest twrp, zerolemon 10000mah battery and following bootloader and modem:

BL_N910FXXS1DQG5.

CP_N910FXXS1DQA1

I installed it yesterday morning with google pico gapps from 1st of September with 100% of my zerolemon battery. First different thing that I noticed after installing it from ripee's build is that it doesn't have inbuilt root. Okay, root from lineageos extras should work, but I don't need root for now I thought. Second different thing is stability and speed in toggles. Want to turn on wifi or data network? Two seconds and it's enabled and fully working, the same for disabling it. So where's the difference? i've got installed automagic premium, which is basically a tasker with better gui. One gesture for turning on/off data and another for turning on wifi on/off. On ripee's builds after disabling wifi and instantly enabling data network I had to wait couple of seconds to get a stable connection. In this "test build" total time with gestures from fully turning on wifi and turning on data it takes about 2 seconds, that's amazing!

Now, let's install Snapchat (that needs passed safetynet test and no root) and other apps. Okay, I do know from experience that I won't get Snapchat working from just logging in, I need to restore it over TB to get it working properly. I do know that from one test build from ripee's without root. But, it is a test build from mone's why shouldn't I test everything? Click, Snapchat, login, password and waiting for popup that there's problem with logging in. That was so obvious for me, I wasn't expecting anything besides that. But.... I logged in just normal like on stock touchwiz. I literally was starring at the screen with "wtf" face.

Next thing - zerolemon battery. There are a lot of possible fixes to get it metered correctly. I was expecting that I will have to reinsert the battery after quite some time to get correct reading of battery percentage. But wait, it is actually reading correctly. I didn't do anything. Just installed a rom as it is. And it's working just fine.

Bluetooth? Not a single problem. Car bluetooth, bluetooth headphones with microphone. Listening to music and answering calls were working just fine.

Final words? From the day before it is my daily driver. Fully working for me, fast and beatiful. Totally better than SlowWiz. Thank you mone's for that build.
[Galaxy Note 4 Android Development (Snapdragon)] AndyYan:
Not sure what I'm supposed to do about the defconfig part, but I reset the 2 repos mentioned and the build went smoothly. Device is not in hand yet but having a build that goes to the end is a good sign. Thanks for the guidance both from you and [MENTION=6005084]ripee[/MENTION] !
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
2 seconds versus a couple of seconds difference between my builds and his for wifi to change over to mobile data? No difference at all.

Bottom line, your experience differed by the absence of root in his builds. You can flash the root removal tool from lineage and you will have the same experience on my builds.

Perhaps the new kernel (also in my 0827 and later builds) handles bluetooth calls better?
[Galaxy Note 4 Android Development (Snapdragon)] werfewr3:
I am on same rom, came from stock. Did full wipe clean install. Its pretty stable but bluetooth audio has problems, videos sometimes dont stream in browser, LTE work only sometimes.
[Galaxy Note 4 Android Development (Snapdragon)] Graivite:
Indeed, it may have no difference to others, but it does have for me.

I wasn't able to succefuly login to Snapchat on your build even though I used the root removal tool before. I don't say your build are bad, they are superb and I kinda got used to restore Snapchat over TB. I don't want you feel bad Ripee. And I'm sorry if my words offended you in any way.

I use bluetooth a lot. In my car to listen to music over bluetooth, that includes Spotify, YouTube and I make a lot of calls. Everything is working perfectly. Bluetooth headset or in-car bluetooth. Doesn't matter.

LTE works everytime for me
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
I don't feel bad, I'm eager to get feedback about every little detail for educational purposes. _mone and fattire read your posts as well so they use your feedback in their development.

I suggest flashing the newest BL and CP as well.
[Galaxy Note 4 Android Development (Snapdragon)] trapntan:
Flashed 9/02 vzw build today and booted right up, but kept showing home screen with 'android is starting'. Had to reflash to get apps to show up.

Only China apns, and adding VZ apns won't stick, so then I can't select them. So, it seems to be working except for data so far.
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
So your SIM recognized such that you can make calls? I posted a newer 0902 trltevzw build around 2.5 hours ago, is that the one you flashed?
[Galaxy Note 4 Android Development (Snapdragon)] GerardSamija:
I flashed the earlier 09/02 this morning and it's behaving about the same as 09/01. Mostly fine, but data as before, initially solid then after half an hour or so dropping randomly requiring that I toggle data to restore the connection. Sometimes appearing to show full hard and top speed but pages not loading anyway. Will try second 09/02 trltetmo now.
[Galaxy Note 4 Android Development (Snapdragon)] trapntan:
Actually, I didn't try a call lol, don't use that feature on my phone much. I had no errors or messages about missing sim card or anything, just no data, empty triangle fir sjgnal.

The build was posted about 5:30am est, if there is a newer I'll try it later.
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
New Verizon build built with an actual Verizon device tree!

lineage-14.1-20170902-UNOFFICIAL-trltevzw.zip

A couple more points about the SIM bug

1. The WipeTelephonyProviderData zip is designed to clear this data from a restored NANDROID backup. If you go from one build to another by backing up and restoring, you will not have SIM unless you flash this little zip.

2. When dirty flashing, it's a good idea to wipe the Cache, System, and Dalvik partitions in TWRP but without factory reseting: (the first option after tapping the Wipe button on TWRP's main screen) or by wiping the Data partition. Wiping just those 3 partitions gives you the new build that you're flashing a clean slate. Of course you'd have to also flash Magisk/SuperSU and GApps after wiping System. This is how I flash each and every one of my daily builds and I've never had a problem with my SIM.
[Galaxy Note 4 Android Development (Snapdragon)] trapntan:
Wiping everything including internal storage gets me booted on these builds, but no data, no calls, no sim info in settings. Apns are Chinese, and vz apns disappear once you change MCC or MNC values.
[Galaxy Note 4 Android Development (Snapdragon)] fattire:
Okay after rebuilding for two days narrowing it down, I've located the issue with the SIM not working on the tmo builds w/the new repos/kernel. Namely it comes down to these two commits:

trlte-common: remove init.qcom.usb.sh

trlte-common: use same init.qcom.usb.rc as lentis-common

So for the TMO version of trlte, this script needs to be run or else SIM doesn't get recognized. By reverting those last two commits and building, I have SIM. With them in place, I don't.

Just to be sure, I also commented out the lines in init.qcom.usb.rc on the ramdisk that run the script

service qcom-usb-sh /system/bin/sh /init.qcom.usb.sh

class core

user root

oneshot

It boots without SIMcard, but if I manually run it:

trltetmo:/ # sh /init.qcom.usb.sh

SIM comes right back!

So there ya have it. We need that .sh (or at least its functionality) on the tmo device or no SIM.

ft
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
I'd just like to point out that fattire's script in the post above is unnecessary for my trltetmo builds because they are still being built with the old repos, which are unaffected by the above commits.

When the reverts of these two commits are pushed to GitHub, I will switch over to the new repos and my builds from then on will have SIM.

Edit: it looks like those two commits have been reverted. As a result, trltetmo 0904 will contain the new kernel.
[Galaxy Note 4 Android Development (Snapdragon)] hkris:
[MENTION=6005084]ripee[/MENTION] Ic you uploaded a new 0903 trltevzw rom. Is the data fixed on that version? Would love to run this rom, very smooth on wifi when I tried it.
[Galaxy Note 4 Android Development (Snapdragon)] ripee:
I have no idea, I don't have a trltevzw to test it. I incorporated ril-related code from trltespr because that variant also uses CDMA. All network-related frequency code also makes mention of Verizon, not China Telecom, so if you still get Chinese APN's, I have to dig deeper.
[Galaxy Note 4 Android Development (Snapdragon)] dsat53:
Hi,

Finally I figured out how to handle New N910F bootloader with previous modem and it works. SIM is now present. So I did not have to go via flashing a stock ROM first.

Thanks a lot so far to all of you who assisted with replies but first and foremost my thanks go to the devs for making all this available.

Regards dsat53