yashsingh1/xdaforums huggingface dataset:
[Galaxy Note II N7105 Android Development] html6405:
/*
* 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.
*
*/

Hi,

here you can find my version for the Samsung Galaxy Note 2 LTE on LineageOS 16.0.

At first I want to thank @ChronoMonochrome for his work, this is based on his his version from here:

https://xdaforums.com/t/rom-unofficial-9-0-0-lineageos-16-0-beta-2-01-2020.4028601/

I've fixed some bugs and will give further support via OTA updates.

This ROM is only tested with N7105, so maybe you could to give me a feedback if it does or does not work with all the different Note 2 LTE variants.

It theoretically should fit for:

SGH-I317

SGH-I317M

SCH-I605

SPH-L900

SGH-T889

SHV-E250S

SHV-E250K

SHV-E250L

SC-02E

GT-N7105/N7105T

SGH-T889V

SHV-E250S/E250K/E250L

SC-02E (SGH-N025)

Here you can see how far everything is working:

Spoiler content hidden.

Spoiler content hidden.

Spoiler content hidden.

If you are going to use Gapps,

I recommend to use the pico package!

https://opengapps.org/

For the others, you can use microG if you want, I've enabled signature spoofing.

Do you like my work?

Than you can simply hit the thanks button and consider to spend me a coffee or a beer,

I'm doing this in my free time and it also costs a lot of money to buy hardware.

donate

Spoiler content hidden.

Spoiler content hidden.

Spoiler content hidden.

Wanna improve your sound configs, control your charging current and more?

Now you can use my app to access boeffla sound and other configurations, there will follow more functions.

Exynos4 Kernel Manager - Apps on Google Play

Functions like cpu overclocking, cpu governor change and virtual memory tweaks

play.google.com

XDA:DevDB Information

[ROM][9.x][N7105/T0LTE][BETA] LineageOS 16.0, ROM for the Samsung Galaxy Note 2 LTE

Contributors

html6405

Source Code: https://github.com/html6405

ROM OS Version: 9.x Pie

ROM Kernel: Linux 3.x

ROM Firmware Required: TWRP 3.3.0

Based On: LineageOS

Version Information

Status: Beta

Created 2021-04-17

Last Updated 2022-04-20
[Galaxy Note II N7105 Android Development] html6405:
*reserved
[Galaxy Note II N7105 Android Development] html6405:
Update 18.04.2021:

Fixed some more selinux denials.
[Galaxy Note II N7105 Android Development] html6405:
Update 19.04.2021:

Implemented exfat filesystem into kernel.

Only via OTA.
[Galaxy Note II N7105 Android Development] FieryFlames:
Works on SGH-I317, not tested much other than getting to homescreen
[Galaxy Note II N7105 Android Development] darkherman:
all well tested on my I317, everything works as it should for daily use,actually GPS I use it with mobile data but let's see if it works,but the rom feels 10/10 for daily use it needs,call listen loud as it should

everything nice @html6405
[Galaxy Note II N7105 Android Development] darkherman:
I must say that I found a good bugs and is when the device has many time on the screen goes black and as it is suspended for about 30 seconds and then in status says that the simcard is not available.

also another detail the webview system has problem does not navigate web and does not play video,this happens in browsers based on Chrome and browser that I can navigate is firefox that uses geckco view,but the videos does not play and play is like damaged video,

I do not share logcat because I do not have pc for now

But I do not complain the effort is great to make a rom for this device.
[Galaxy Note II N7105 Android Development] html6405:
This problem could be selinux related, maybe a rule is missing and a logcat could point me to the solution.
[Galaxy Note II N7105 Android Development] darkherman:
I will send you the logcat when I get the error, it takes about 2 hours.
[Galaxy Note II N7105 Android Development] darkherman:
edit

well after all I know how to get rid of the bugs, just change the system theme and press repeatedly the back and menu capacitive button and the screen turns black then the device screen is shown on but without simcard.
[Galaxy Note II N7105 Android Development] Keyjeyelpi:
I can't log in with any google account as it shows an error before getting to the log in page. I'm using the SHV-E250K.View attachment 5316527
[Galaxy Note II N7105 Android Development] html6405:
Which Gapps did you use and you could try to login later .
[Galaxy Note II N7105 Android Development] Keyjeyelpi:
I used your recommended pico gapps. I did try after an hour and even rn, but it's still the same error.

PS. It's a bug found on @ChronoMonochrome 's build as well.
[Galaxy Note II N7105 Android Development] html6405:
I'm not facing this bug if I do a factory reset, you could try an older gapps package.
[Galaxy Note II N7105 Android Development] Keyjeyelpi:
What do you mean by factory reset? Do you mean deleting the data and clearing the caches? I think the bug only occurs on the Korean models.

Note:

I've tried the havoc OS rom for the Note 2, and the google log in works, but the signal is dead. Maybe that can be used as a reference?
[Galaxy Note II N7105 Android Development] html6405:
I mean if I start from zero on my n7105, I can login into google without any problem's.

This could be, but is the rest working? Wifi etc is usable?

What we could try is to change the fingerprint, maybe this will help.
[Galaxy Note II N7105 Android Development] html6405:
Update 25.05.2021:

Security patch update 05.05.2021

Included logic for the SHV-E250S, SHV-E250L and SHV-E250K

Update is available via OTA.

​
[Galaxy Note II N7105 Android Development] Keyjeyelpi:
Wi

Wi-Fi is only available after flashing the Wi-Fi murata zip file.
[Galaxy Note II N7105 Android Development] Keyjeyelpi:
Sure thing. Thank you for the update. Downloading it right now. Will post the edit here.
[Galaxy Note II N7105 Android Development] html6405:
Ah ok, yes it could be, that these devices are using the murata chipset, maybe I could create a logic for this.
[Galaxy Note II N7105 Android Development] Keyjeyelpi:
The update didn't fix the Google login problem. It still persists.

Also, I double checked, the it was actually the SHV-E250L. Not K. Sorry for the confusion.
[Galaxy Note II N7105 Android Development] html6405:
Hmm ok strange, could you do a logcat while trying to log in?

But is your wifi really working with the murata fix?
[Galaxy Note II N7105 Android Development] Keyjeyelpi:
Yes, the wifi is working with the murata fix, but gets reset every update. I made a mistake about the model of the phone. I was actually using shv-e250l, not shv-e250k.

Here's the log by the way.

I can't seem to upload the logcat here. Here's a link for it.
[Galaxy Note II N7105 Android Development] html6405:
Ok, than the update couldn't change anything.

We could retry it.
[Galaxy Note II N7105 Android Development] Keyjeyelpi:
So, for those using the Korean models (SHV-E250K/L/S), @html6405 figured out that the Google login problem was due to having multiple serial number. The update was pushed, but make sure to have the Wi-Fi murata fix to flash after as the bug still persists.
[Galaxy Note II N7105 Android Development] julian67:
I installed this on my GT-N7105 t0lte. It's very nice but the GPS is really messed up. It's not just that it can't get a fix, but it struggles to find even one sat when I know from other devices that there are 24 GPS & GLONASS above me. I'm sorry to sound negative because in other respects this is a really nice ROM, I like it a lot and am very impressed that you are making it. Thank you! I know different people have different requirements and expectations but I think GPS working is too fundamental in a smartphone to ignore. I like to have the Note II as a backup due to it having swappable battery, and the original firmware is now so old that the apps I need for train and bus tickets can't be installed, so I'm really hoping that this Lineageos 16 can get somewhere close to daily driver status.
[Galaxy Note II N7105 Android Development] jacobo060805:
Does it work for note II GT N7100, because I've been using another lineage and if this works I'll switch to yours. Thanks
[Galaxy Note II N7105 Android Development] Keyjeyelpi:
GT-N7100 has it's own custom roms (it's actually more updated than the custom roms for GT-N7105).
[Galaxy Note II N7105 Android Development] html6405:
I'm sorry but I don't own this device, RIL and GPS wouldn't work with this version.
[Galaxy Note II N7105 Android Development] Overghuhx:
thank you it's very good ,but i can't update ota stuck on twrp ,sorry i use google translate
[Galaxy Note II N7105 Android Development] html6405:
Because you're not using my TWRP, just update it before.
[Galaxy Note II N7105 Android Development] Overghuhx:
thank you very much ,i can't find your twrp ,where can i find it
[Galaxy Note II N7105 Android Development] html6405:
https://xdaforums.com/t/rom-9-x-n7105-t0lte-beta-lineageos-16-0.4263527/post-84855301

(LINKS)
[Galaxy Note II N7105 Android Development] solem79:
Can someone pls upload WIFI murata fix.zip for shv-e250s. I get wifi issue after flashing the rom
[Galaxy Note II N7105 Android Development] html6405:
wifi-fix-murata.zip | by Comico for Galaxy Note 2

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com
[Galaxy Note II N7105 Android Development] html6405:
Update 02.07.2021:

Fixed macloader, no more need of the murata fix.

Included a script to resize the data partition automatically for encryption, untested.

Security bulletin 05.06.2021
[Galaxy Note II N7105 Android Development] html6405:
Update 11.08.2021:

Fixed some more selinux denials

Security bulletin 05.08.2021
[Galaxy Note II N7105 Android Development] html6405:
Update 17.08.2021:

Updated button behaviour
[Galaxy Note II N7105 Android Development] GoldenChaos:
@html6405 First of all, thank you for your continued work on this rom. I was recently given a Note II LTE (AT&T model) for development/tinkering and this has made it into something usable.

Three questions:

It seems like there is a bug with pen input where it’s triggering taps/gestures on hover, which causes the screen to behave erratically when using the pen. Could the pen hover feature be disabled until this is fixed?

A lot of apps from the store fail to install, including an update to the Google app. Is this to be expected? Is there a way to know which apps will install and which won’t?

At the same time, some apps or combination of apps seems to put the system into a soft restart loop. The only thing that gets me out of it is going into Safe Mode and uninstalling the apps, but the system also seems to just start crashing like this after I install a certain number of apps. Sometimes uninstalling the app that triggered the loop doesn’t fix the issue and my only option is to factory reset. My question: How can I help you troubleshoot the cause(s) of this restart loop issue?

Again, cheers and thank you for all the hard work!! :D
[Galaxy Note II N7105 Android Development] html6405:
I'm sorry, but this is not possible on an easy way.

Hmm I don't have any problems, could you give me an example? I would try if I can install this app.

Hmm strange, I'm also not facing this weird issue, also for this would an example be great to test.

You could enable USB-Debugging and create a logcat for me, maybe then I can see what's happening.
[Galaxy Note II N7105 Android Development] GoldenChaos:
No worries. Is fixing the pen hover issues planned? I've never actually used one of these before and I'm curious about the pen haha. Not a big deal though.

The most recent Google app update as well as Gboard, Google Calendar, and Discord are a few big ones, but I'd say about 30% of the apps I normally use don't install. I was going to provide a bigger list but for some reason the current and failed downloads have cleared themselves from the Play Store while I was writing this, haha.

I don't know exactly which app caused the issue this time because I queued up a whole bunch of downloads after this last factory reset. But the device is now definitely stuck in the restart loop, so here's the logcat of the initial boot, the first crash, and then a subsequent crash in the loop. Let me know if I can provide or test anything else!

Worth noting that after looping for about ten minutes it'll just boot to recovery.

EDIT: Was able to get the log file attached by compressing it @html6405 :)
[Galaxy Note II N7105 Android Development] html6405:
The pen is a pointer for the system, what do you excatly want to have fixed?

We have to change the android framework, if we want to change the behaviour of the hovering.

JavaBinder: java.lang.OutOfMemoryError

You're running out of memory! There are really many apps starting,

are you using a bigger gapps package than pico?
[Galaxy Note II N7105 Android Development] GoldenChaos:
For some reason I had flashed with MindTheGapps, I have no idea why! Flashing with OpenGapps Pico seems to have *mostly* solved the restart loop issue, but not entirely. I was now also able to install *most* apps, but still not the Google app and a few others. These 6 apps still failed to install after flashing with pico gapps:

- Google

- Gboard

- Android Accessibility Suite

- Discord

- Google Fit

- Wikipedia

They won’t install in safe mode either. What can I do to troubleshoot this next?

This could simply be because I don’t know how it’s supposed to work, but currently hovering with the pen acts as if the pen is touching the screen and it seems to not know the difference. This results in undesired scrolling and the tapping of unwanted elements. I’m fairly certain that hovering with the pen should only move the selection indicator (shown as a translucent white box) around and not actually pan/scroll/tap on elements while hovering. This also makes it impossible to navigate scroll views with the pen since it scrolls on hover and not on pen down.

Tl;dr: hovering is acting like pen down and this is causing a bunch of unwanted inputs!

EDIT: After using the Pico Gapps installation for a while it just ended up with the out of memory loop :(
[Galaxy Note II N7105 Android Development] html6405:
This is not normal, maybe your Pen is defect, hovering doesnt act like touching.

Hmm strange, how much RAM memory does your device have? Maybe less then the international version.

I will try them out.
[Galaxy Note II N7105 Android Development] html6405:
What should I say, they are all working.

Maybe it's better if you start with a clean installation and pico gapps.
[Galaxy Note II N7105 Android Development] GoldenChaos:
On the pen topic - it does seem like perhaps the issue is with the tip of the stylus. It doesn’t seem to be stuck or jammed, though. If I fiddle with the tip of the pen I can get it to behave correctly for a short time (a few seconds). So I guess it’s not a software issue, which is a bummer.

This was a clean installation and pico gapps :(

I fully wiped and re-flashed everything again even afterwards and got the same results.

Maybe the AT&T US model really is different somehow. System info is telling me this model has 1.8GB of ram. A fresh install with nothing added is averaging about 620MB of memory usage (34%).
[Galaxy Note II N7105 Android Development] html6405:
Ok this is good.

You could try to logcat when you try to install an app, but really strange, I guess no one else is facing these issues.
[Galaxy Note II N7105 Android Development] GoldenChaos:
Well, I like this device enough to try and figure out what's going on, haha. Hopefully we can figure it out :)

Worth noting that I also tried with the Nano Gapps package and that actually was more successful at installing more apps from the store (Gboard was able to install, though it failed a few times first).

I checked the logcat for one of the failed installs, in this case Discord because it has never successfully installed in any of my tests, and the Out of Memory error seems to be a symptom of something deeper. The device is definitely not out of memory. Here's the errors I got when installing:

08-20 14:55:28.791 2327 2391 E filemap : mmap(74637312,27986224) failed: Out of memory
08-20 14:55:28.791 2327 2391 E system_server: Failed to mmap file 'resources.arsc' in APK '/data/app/vmdl101546237.tmp/base.apk'
08-20 14:55:28.791 2327 2391 E system_server: Failed to open 'resources.arsc' in APK '/data/app/vmdl101546237.tmp/base.apk'.
08-20 14:55:28.818 2164 2427 E : Couldn't opendir /data/app/vmdl101546237.tmp: No such file or directory
08-20 14:55:28.818 2164 2427 E installd: Failed to delete /data/app/vmdl101546237.tmp: No such file or directory
08-20 14:55:28.825 3770 3770 E Finsky : [2] uag.onReceive(15): Error -504 while installing com.discord: INSTALL_FAILED_INVALID_APK: Failed parse during installPackageLI: Failed to load APK at path /data/app/vmdl101546237.tmp/base.apk: Failed to load asset path /data/app/vmdl101546237.tmp/base.apk
08-20 14:55:29.484 2516 2822 E bt_btif : register_notification_rsp: Avrcp device is not connected, handle: 0x0
08-20 14:55:29.484 2516 2822 E bt_btif : register_notification_rsp: Avrcp device is not connected, handle: 0x0
08-20 14:55:29.491 2179 2194 E OMXNodeInstance: setConfig(0x41b5b6c0:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
[Galaxy Note II N7105 Android Development] html6405:
Ok there isn't much to see, theoretically it also could be a RAM problem, do other ROM's run fine?
[Galaxy Note II N7105 Android Development] GoldenChaos:
I hadn't tried any other roms, but I just gave the 7.1.2 crDroid build w/ nano Gapps a shot and I'm having no issues whatsoever other than, well, being stuck on android 7.1.2 :p

Everything so far has installed properly. Google app updated fine, even Discord installed.

So... I'm not sure what the problem is, but it's got to be a bug with something. What're the next troubleshooting steps I can do? Will do whatever you need to figure this one out.

btw I was able to fix the pen!! I gave it a good flick near the tip and that unstuck whatever had been stuck 😂
[Galaxy Note II N7105 Android Development] brian667:
yes... got some strange behavior.

I have used a roger sgh-i317 for test. I assume I only will got HSPDA signal as I am in NZ

the problem I see sometimes cannot register the network as said SIM is no inserted.

other issue is the program(google map, sportify) will suddenly said broken.

I am new. Let me know how to play with logcat and check the issue.
[Galaxy Note II N7105 Android Development] html6405:
You could create a bugreport,

try to install an app and with:

adb bugreport

all logging information will be packed to a zip file.

Maybe I can see more then.

This could be a hardware problem.

When does this happen, are you using the latest gaaps pico?
[Galaxy Note II N7105 Android Development] brian667:
while I am using stock/ cyanogenmodroms 13. I can make a call and have data transfer.

I have seen the log on the phone. gapps pico must be use for install which due to lack of space of /system after Rom installed.
[Galaxy Note II N7105 Android Development] GoldenChaos:
Here's the bug report I generated. This was a fresh flash with nano Gapps (the only way for me to get the Google app). The only thing I did was complete the initial setup, sign in to Google and attempt to both update the Google app and install the Discord app. Both failed as usual, so hopefully this bug report is useful!
[Galaxy Note II N7105 Android Development] html6405:
I'm sorry but I only find:

out of memory in combination with the google apps installations.

Could you check with Diskinfo if the swap is working?
[Galaxy Note II N7105 Android Development] html6405:
Or could you take a screenshot?
[Galaxy Note II N7105 Android Development] GoldenChaos:
DiskInfo is saying that the swap is working, but I don't think that's entirely the case. I've definitely seen this value be 0 in SmartPack before, because I remember wondering why the swap would be 0. I remember trying to set it to 400 and the device crashed.

Here's the screenshot in any case (sorry that it's a ****ty photo, the device was being buggy so I couldn't export a screenshot):

View attachment 5392689

Another thing that makes me think it could be the swap is that I'm sometimes unable to download files. Every browser will throw a "Cannot find SD Card" dialog and ask where to save the file, but when I select the directory it once again says it cannot be found.

Additionally, while testing with Pico Gapps I encountered a new, potentially related bug where I am eventually signed out of all Google services on the device and it can no longer authenticate with the play store, giving the generic "something's wrong" error. The option to add a Google account disappears from settings entirely and I can't sign in. The only way to sign in again is to factory reset. So far Pico Gapps has been way less stable than nano for me, and my guess is it's because of whatever the underlying issue is.
[Galaxy Note II N7105 Android Development] GoldenChaos:
Update: I don’t know what exactly triggered it, but after a certain point the swap size started decreasing on its own until it was down to zero. The next time the device crashed sent it into the restart loop. I was able to clear out running processes in safe mode and escape the loop. I pulled DiskInfo open, and what do you know… the swap is just completely gone:
[Galaxy Note II N7105 Android Development] html6405:
Holy sh.., I have no idea what's going wrong with your device.

Is the swap there again after a reboot?

I really hope your eMMC is not buggy.
[Galaxy Note II N7105 Android Development] GoldenChaos:
If that were the case, how would the crDroid 7.1.2 rom run just fine? It never crashed or had any of these swap issues.

I’m still pretty certain this is a bug, but if you’re truly out of ways to debug then I guess I’ll just run 7.1.2 :(
[Galaxy Note II N7105 Android Development] html6405:
It would be interesting if others are facing the same issues with the same device.

Theoretically these devices are all identical, so it should work. I only own a n7105 and this one is working fine.

I really have no idea at the moment what should be wrong, I just see that it's falling out of memory, this could be if the swap get lost. (The swap is on the eMMC, sometimes they are the reason)
[Galaxy Note II N7105 Android Development] brian667:
finally got the logcat. I saw some error always missing some file. and then once youtube run to a threshold. then it will kill the process.
[Galaxy Note II N7105 Android Development] html6405:
Could you send me your SN (shown in the settings) as PN? I wan't to check if it's shown correctly.
[Galaxy Note II N7105 Android Development] html6405:
Update 09.09.2021:

synced with LOS sources

some Kernel work

Fixed aptX support

fixed BT headset mobile call
[Galaxy Note II N7105 Android Development] brian667:
interesting. it has all 0 . 00000000000. my unit is SGH-I317
[Galaxy Note II N7105 Android Development] html6405:
Is it 0000000 or is ther any other sign like a / or anything else? If your SN is zero, than it got deleted in the efs.

But this shouldn't be the problem.
[Galaxy Note II N7105 Android Development] brian667:
i have clone a efs now. however still got same issue. youtube and some apps will suddenly shut its function.
[Galaxy Note II N7105 Android Development] html6405:
But were you able to sign into your google account?
[Galaxy Note II N7105 Android Development] brian667:
I have signed in to google account. all google apps runs with account
[Galaxy Note II N7105 Android Development] brian667:
actually I have put spotify and other apps. all got same issue as program halted or close unexpectedly.
[Galaxy Note II N7105 Android Development] html6405:
I can see that there are hundred's strange error's in your log,

but I have no idea why they are there...

Did you install the system clean?