yashsingh1/xdaforums huggingface dataset:
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Hello folks!

Here is another minor kernel update. I reverted all the binder changes that were brought over to our lineage-16.0 kernel during merging of the lineage-17.1 branch from rinando i9100. It seems that some changes from lineage-17.1 brings over the RIL crashing issue to lineage-16.0 which is not to be expected. I was unable to identify any suspicious changes except for these binder changes. RIL has been crashing frequently on my side since my June 2020 build, even worse it crashed 3 times yesterday and I missed my intern placement interview call. Although very busy but I went ahead and come up with this kernel update, hoping that RIL won't crash anymore as it shouldn't crash on lineage-16.0.

Should RIL crash (shows No Service) and you are in a rush, do not reboot your phone. Instead, try to toggle on and off and on the mobile data, then turn off and on the airplane mode. Just try to play around with the mobile data and airplane mode. This will save you from a reboot.

Thanks and have a nice day!
[Galaxy Note GT-N7000 Android Development] :
Hi Lee,

Why there is a magisk img file on all of your kernels zip is it something special.

---------- Post added at 09:24 AM ---------- Previous post was at 09:23 AM ----------

Did the rom install on your phone.
[Galaxy Note GT-N7000 Android Development] oldcuriousbee:
I have 4.0.4 version on my phone can I install this?

Hi I am new . I have Samsung GT N7000 with Android version 4.0.4 , kernel 3.0.15-N7000XXLRI-CL811902 and build number IMM76D.XXLRI .Can i install this ROM if so pl tell me the procedure.
[Galaxy Note GT-N7000 Android Development] User_99:
Ever read the first op?
[Galaxy Note GT-N7000 Android Development] :
I beg you not to install this rom from ics they have a emmc corruption bug which will destroy your / data partition and if that happens you will have only 2% chance of recovery so please upgrade to Android Jelly bean and install it from there. And here is the video tutorial from stock rom;- https://www.youtube.com/watch?v=jS_qbti_lg8&t=568s&ab_channel=ExploreGadgets
[Galaxy Note GT-N7000 Android Development] waro470:
Hey, I've been using this ROM since yesterday, and so far so good!

Wow, thanks for the heads up! Would that be the same reason why some Samsung phone would just die at some point, e.g. Samsung S3?
[Galaxy Note GT-N7000 Android Development] :
No the galaxy note 1 is not affected by this issue the /data corruption issue was a issue with the stock ics kernel of the galaxy note this happened when someone tried to erase the Emmc on a stock unsafe ics and the phone will hang there and after rebooting the /data partition was rendered unusable. And the galaxy note don't suffer from Sudden death Syndrome like the galaxy s3 and note 2.
[Galaxy Note GT-N7000 Android Development] lee.wp14:
That's for magisk support, as usual if you want to use magisk then you flash the boot_magisk.img for magisk support. Magisk support means the kernel is already magisk patched, you don't have to flash magisk anymore (and you can't too), you just install da Magisk Manager and you are good to go.

Glad the rom works well for you!

So... a brief introduction here, regarding the emmc brickbug that we have here on i9100 and n7000.

There are some (maybe most) of the emmc chip which has faulty embedded firmware. The firmware on the chip is unable to process MMC_CAP_ERASE command properly which is being used by some update binaries and recoveries. After receiving MMC_CAP_ERASE command, the firmware is unfortunately unable to process it properly and will mess up the whole chip (not sure if we can call this as a destroy) and result in a broken emmc chip (semi-recoverable in some cases, by avoiding the bad/damaged blocks in partition table).

So there's no way to actually fix the firmware on the chip, but developers fix it on kernel side, initially bypassing the MMC_CAP_ERASE. However afterwards some other fixes are being introduced which allows bringing back MMC_CAP_ERASE that seems to be required for trim operation. Not pretty sure on this, just my findings when I dig thru the commits last time.

So, in overall, the emmc is not safe. But the kernel that we use protects the chip. Apart from this, we don't really have an issue with our models. Personally what I consider fatal is the Samsung Galaxy Note 4... that is a production stage issue, where all the emmc suffer from heating issues and die at a point, which means a totally dead phone. And the only way to fix is replace the emmc or motherboard entirely. You may lookup on this, there's even a court filling regarding this matter just years ago.
[Galaxy Note GT-N7000 Android Development] waro470:
Oh, that was very instructive. Now, I understand even how Samsung gained a reputation for making phones that slow down over time or just plain die.
[Galaxy Note GT-N7000 Android Development] :
Which chip do you have i have the safe chip and i never bricked in wiping on unsafe kernels.

Here is more info on the emmc lockup issue ;- https://xdaforums.com/showthread.php?t=1644364
[Galaxy Note GT-N7000 Android Development] lee.wp14:
So.. for those who are following my updates in this thread, you may recall that I have a minor kernel update days ago that I intended to fix the RIL crashing issue.

Apparently, that is not working, and now I have identified the actual commit that causes the problem (which I have been looking for since initially but I overlooked it). I have my RIL running fine for more than 48 hours now with a new build (i seriously will jump sea if it still fails xD).

EDIT: RIP me but the RIL crashes right after 72 hours. I really need to take time to figure out the underlying problem.

So here is the fixing commit:

https://github.com/hikuii/android_k...mmit/68210a296115116ac11f9fcf31a967e687c9fe16

This commit is from lineage-17.1 and is only needed on lineage-17.1, as on los17 we need to hexedit our RIL blob for RIL to work.

So here I 'release' a new build, I'm sorry but I really have no time for a proper release update post.

This build has the following changes:

1. Reverted to old camera driver

2. Reverted to old audio configuration

3. enabled zram at about 384mb (half of total ram) with lz4 compression and dual compression stream (since we have a dual core)

4. obviously, chase off the RIL issue by reverting the related commit

5. Correct the google media codec path (using non-lowend configuration)

The files for this release are being placed in google drive. This is a clean release, however I plan to delete and rebuild when I have time after I finished my exam.

As usual, only tested booting and working with basics functionality. A clean release means a clean build (yes for compiling we also have something like a dirty build, just like how you dirty flash).

Thanks and have a nice day!
[Galaxy Note GT-N7000 Android Development] :
Hi Lee

Greetings

I have found a Android 10 based rom on your Google drive named as "POSP" which I have given screens hots for why you didn't made a thread for that rom I recently installed it on my phone and it seems to be working. I think people might be more interested in the rom.
[Galaxy Note GT-N7000 Android Development] joam280:
I would be happy to try it, could you pass the direct download link?

Enviado desde mi GT-N7000 mediante Tapatalk
[Galaxy Note GT-N7000 Android Development] :
First open the Google drive link and go to n7000》potato and here is the rom file the steps are the same as the pie rom.

https://drive.google.com/file/d/10FMdv04yNEPgS4Hmx-Kgjf5Po4JNuKnQ/view?usp=drivesdk
[Galaxy Note GT-N7000 Android Development] joam280:
let's try it [emoji6]

Enviado desde mi SM-N910F mediante Tapatalk
[Galaxy Note GT-N7000 Android Development] lee.wp14:
That's quite sometime already haha... I'm not really impressed with the graphical performance and also the RIL problem (and also I don't know how to fix the GPS but now should be able because rinando seems to fixed it on i9300), thus I decided not to publish it.

Furthermore, I can't build one shot with my laptop because in Android 10 you need at least 16GB to compile or else the build will fail halfway due to low memory. My laptop only has 8GB of RAM.

Android 9 build time: 2.5hours

Android 10 build time: 5-8 hours, every time have to fail at least 1-3 times only can build finish

So it's not really convenient for me to build Android 10, plus the performance is not so promising. I decided that Android 9 should be the most practical one to maintain.
[Galaxy Note GT-N7000 Android Development] :
It seems to be working alright without gapps and the recovery is non-functional in this build but otherwise is cpu hotplug is enabled on the Android 10 build because i'm getting much better battery life than on pie. I am currently using it on my phone and it's fine for light usage.
[Galaxy Note GT-N7000 Android Development] :
How is your phone running? Mine is fine without gapps.
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Maybe there is something to do with the CPU governor, it is using PegasusQ. CPU Hotplug is disabled.
[Galaxy Note GT-N7000 Android Development] Zomer123:
Lol Will flash this tomorrow
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Proceed with caution guys....
[Galaxy Note GT-N7000 Android Development] :
If you want here is the video tutorial from stock rom

https://youtu.be/jS_qbti_lg8
[Galaxy Note GT-N7000 Android Development] :
Hi Lee

Recently a friend of mine flashed your ROM on his GT-N7000 he was using the stock ROM and the ROM installed perfectly fine but then after the phone booted a lot of apps kept crashing so he decided to go back to stock ROM with Odin and in the stock ROM it exhibited the same issue and now it is unusable every second apps keep crashing and then the phone freezes and automatically reboots and gets stuck on Samsung logo for about 20 minutes. Is there a way to fix this.
[Galaxy Note GT-N7000 Android Development] Zomer123:
Even Q runs on Note 1!

Hi Argood. Just wanted you to know... Android 10 runs on Note 1.
[Galaxy Note GT-N7000 Android Development] user1712:
Tested POSP ROM is not stable. To many crashes.

How can I start the recovery mode because this ROM doesn't support it?

Via ADB shell or Buttons it's not more possible.
[Galaxy Note GT-N7000 Android Development] :
I know that I posted this a few days ago. Also it is extremely unstable and has broken recovery, Ril, GPS and abnormal standby battery drain. So , I think Pie will the last custom rom our beloved galaxynote wI'll be getting.

---------- Post added at 02:31 PM ---------- Previous post was at 02:29 PM ----------

You will need to flash a recovery using odin and you will be able to go to recovery. It will make this ROM unbootable if you do so.
[Galaxy Note GT-N7000 Android Development] Zomer123:
Recovery

I use TWRP and it works. ROM boots and I can go into recovery using buttons.....
[Galaxy Note GT-N7000 Android Development] :
This doesn't work on my phone. If I try to go to recovery it will boot into OS instead of it.
[Galaxy Note GT-N7000 Android Development] user1712:
Thx for your help. I flashed TWRP via ODIN and Lee's ROM via TWRP and it works stable again.
[Galaxy Note GT-N7000 Android Development] darkdragon-001:
This is interesting! I was still running an old version (some time 2019) and having random reboots since August and since a few days also RIL is crashing. I came back here to see if a new version fixes these problems. I am also running microG setup (without Magisk). So maybe there was some update in the Google Apps (even via PlayStore) which causes these issues? Or just my eMMC giving up...
[Galaxy Note GT-N7000 Android Development] lee.wp14:
So you are running a 2019 build and the RIL is crashing too?

And did you turn off low_ram config? Because it actually makes the reboot more frequent on my side. It have been 3 days without reboot on my side compared to last time where it will reboot at least once everyday.

Really hope it's a problem with the ROM so that I can fix it...
[Galaxy Note GT-N7000 Android Development] darkdragon-001:
At least it shows an "x" near the reception. I did not change low_ram config. Further I can't see notifications any more since a few days.

So memory corruptions are likely, I guess? Maybe I should reinstall. Is it enough to boot to TWRP, wipe system and install lineageos zip to do so?
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Yeah, you may try so. Or maybe there's something up with the microg.. we don't know too.

Normally for the RIL, if it shows no service then definitely is the RIL crashed. If it shows X then it should be no data or no internet.. isn't it?
[Galaxy Note GT-N7000 Android Development] darkdragon-001:
Yeah data is deactivated. But when I enable it, it disables itself immediately. So I expect some crash to be happening...

One more clarification: Does the lineageos zip include the boot image as well or do I need to flash it separately?
[Galaxy Note GT-N7000 Android Development] lee.wp14:
That is interesting..... indeed looks like a crash.

Yes, every zip already includes a boot image. Just that the additional boot image is for those who perfers to have magisk patched kernel.
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Hello folks.

Here is another bootimage that I hope could have fixed the RIL crashing issue.

Basically, what I did is that I revert the kernel back to lineage-16.0 branch from rinando and apply my changes on top of it. So this kernel has no lineage-17.1 commits (which I have been cherrypicking los17 commits to our los16 sources all the while). the cpu governor was configured to ondemand, so you should experience better battery life at the cost of having slower performance.

I just consulted rinando and seems like kernel shouldn't be a cause of the RIL issue unless there's upstream source changes related to binder (which imo is unlikely since it's already android 11 now). However who knows if the unrelated is related. So I just go ahead and rework the kernel from a fresh lineage-16.0 branch from i9100.

I seriously don't know what went wrong since I almost reverted all lineage-17.1 changes on my side :( Sorry folks, my capability is not enough ._. but I will try my best to resolve this.

So far it's already 9 hours on my side. If the RIL is up for 3 days, we are good to go. This kernel is magisk-patched and there's only magisk patched. You are fine to use even if you don't use magisk.
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Note for GAPPS users:

Google has been doing crazy since past few days for running the Play Store indefinitely in the background for no reasons. This is not a ROM specific problem as it occurs on other device, and also it happened to a bunch of chromebooks (you may google on it). Since our device is a slow device, the weird Play Store behavior has caused a 100% cpu utilization all the time which causes excessive heat, compared to my Note 4 which is at~40% cpu utilization.

How to Identify:

If your device suddenly heats up a lot without running anything, use something like a process monitor or htop command. Check for:

com.android.vending:download_service

If this line tops the list, please make sure you are on any of the latest minor kernel update that I have posted on xda to ensure your device has proper thermal throttling!!!

Till google resolves this rather disgusting behavior, the only workaround is:

1. Disable the download service of playstore (and enable it only when you want to download apps, because you can't download apps without it)

2. Disable playstore entirely (and enable it only when you want to use playstore)
[Galaxy Note GT-N7000 Android Development] goodwu:
Hi lee.wp14,

I saw you have enabled zram, but swap is not enabled so I can't use zram as swap.

Could you please enable swap in kernel config?

Thanks for your great work!
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Yes no problem, I will enable it back. Thanks for notifying! Will be ready within few hours. (Sorry... can't make it in hours because I cleaned the whole output directory to make some space for swap as I'm having exam. I need to rebuild the whole thing. Will get it done asap. )
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Build 20200928

Greetings to everyone. Hope you all are still doing well.

Here is a new build with the latest September 2020 security patch, and also fixes the RIL issue.

CHANGELOG

- general: upstream updates, ASB 2020-09

- frameworks/base: upstream updates

- kernel: revert lineage-17.1 changes, enabled swap (thanks to @goodwu for notifying)

Regarding to the RIL, indeed some lineage-17.1 kernel changes causes the RIL issue to happen on lineage-16.0, therefore I have reverted back to the initial lineage-16.0 kernel. XT_TARGET_HL (hop limit/TTL mod) is not enabled and will be enabled on next release. Should you require this feature, please notify me and I may compile a minor kernel update with the config enabled.

Thanks and have a nice day!
[Galaxy Note GT-N7000 Android Development] user1712:
Hi Lee, many thanks for the new ROM.

It's very quick but USB Tethering is not more working on my devices.
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Probably I missed some configuration on the kernel. Will check on it. Thanks for notifying!
[Galaxy Note GT-N7000 Android Development] :
A big thanks to you for your contribution.
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Probably this is not a really good news.

So, exam is now finished and I moved across states and settled down in a rental room for my internship which lasts for 3 months starting from now.

However!!! I left behind all 2 of my n7000 in my dad's car QAQ I have migrated to N910G as my daily driver thus that's the reason it was left behind due to carelessness.

Which means, I can't test my builds at all in this 3 months. I think I'm not going to release blind builds for the time being as there's an amount of risk involved since there are users that still use n7000 on a daily basis. And also, without a n7000, I can't generate magisk boot image.

Really sorry guys! I think there won't be any updates for the time being. Will continue work on this rom when I got back my n7000. Sorry if this disappoints you, really thank you all for using this rom all the while, your patience and support.
[Galaxy Note GT-N7000 Android Development] tuxayo:
Hi :) thanks for your work!

IIUC, someone upgrading from the 2020-06-14 version don't need to additionally flash the kernel update that you published in the last months. Is that correct?

---------- Post added at 11:44 PM ---------- Previous post was at 11:38 PM ----------

lol how unfortunate, best wishes for your internship :good:
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Yes, you are correct. Just by flashing the latest version will do. As usual, you may flash boot_magisk.img additionally if you need magisk functionality.

Haha... I was kind of like 'goldfish memory' actually, I always forget stuffs.

Thanks. My internship is very nice. Doing laravel-based CRM web applications. Working environment is good and flexible (it's a startup). Felt like I'm having the best internship in my class :D
[Galaxy Note GT-N7000 Android Development] tranphu:
How about battery when wifi is always on?
[Galaxy Note GT-N7000 Android Development] lee.wp14:
As usual, might drain up around ~10% overnight, not really any improvement on wifi. Although there's one commit change on the kernel side.

But honestly, I compared with a stock S2 (OMAP variant) and it seems like the same behavior too. So, I'm not going to bother that anymore - will just assume this what we should expect on our old device.
[Galaxy Note GT-N7000 Android Development] :
Hi Lee,

I have made a rom installation video of this ROM on YouTube here's the link to watch it :- https://youtu.be/gMzCRWLgA7g

It is currently unlisted should I make it public?
[Galaxy Note GT-N7000 Android Development] growbag:
Wow - installed this today with the help of [MENTION=11003139]argood[/MENTION]'s video, and it's working perfectly!

Thanks a million for all the work you put into this [MENTION=6944026]lee.wp14[/MENTION]. What's really amazing is that it runs very well on such an old smartphone.

It took me about half an hour to realise that you have to scroll the entire bottom row of icons up in order to get to the app menu - I was going mad trying to find the file manager! And you change the wallpaper through the Gallery app (took me 2 bloody hours to work that one out!!).

I installed the MicroG app (https://microg.org/) because I want to try dumping google, but I don't understand how to get it working, if anyone can suggest a very simple setup tutorial I would be very grateful.

Another problem is that SELinux is deactivated - anyone know why, or how to re-enable it?

Thanks :).
[Galaxy Note GT-N7000 Android Development] :
I'm glad I was able to help you and sorry for my bad English I have a lot of trouble speaking it . You can also change the wallpaper with settings.

Also I have the same issue with the SELINUX status being permissive but it doesn't affect any features also when I installed the Rom and gone into settings the SELinux status was enforced but then i flashed supersu zip file then it got permissive .

Anyway

Please give me a like or dislikes it helps me know how good or bad my video is.
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Errr... because LineageOS will show it as disabled if the selinux is not on enforcing. It doesn't really matters if it is enforcing actually (and I'm not going to make it enforcing too xD). If any of your apps needs it to be on enforcing, then you may use magisk to spoof it.

Ah... about the wallpaper. Because the Lineage wallpaper app is damn laggy as it loads wallpapers preview in full res (imagine having 2-4 full res HD pictures on screen and we have such an old phone and we are scrolling through the pictures), so I replaced it with the AOSP wallpaper picker. It is accessible in Settings > Display.

MicroG you may use the flashable zip from ale5000 i think, and remember to use the haystack tool or use the nanodroid system patcher to make your system package signature spoofable. If you were to install every of the microg apps manually (like what I did) well ugh, it gonna waste you a lot of time, but that's a cleaner approach than using the zip. Basically the hard part is just that there needs to be some xml permission file in the system. But yeah I still recommend the flashable zip.

It's fine to be public, it should help the others a lot in installing. That's great!:)
[Galaxy Note GT-N7000 Android Development] ludskyrider:
Hello guys

i 'd like to flash this rom on a 16 Go GT-N7000

I have just changed the mother board after a hard brik trying to repit by myself

i am on

- android 7.1.2

- rom resurection remix Nougat android-7.1.2_r29 - NJH47F

- RR-N-v5.8.5-20171018-n7000-Final

- Band N7000XXLT3

- 3.0.31-Bauner-gff8fe81 benboispcRR#1 Wed Oct 18 12:50:31 CEST 2017

- teamwin recovery project 31.1-0

What do i have to do before following first page? Do i have to change something (firmware, base, kernel, recovery,...) before?

I'd like to have a repited working phone with this rom

please help
[Galaxy Note GT-N7000 Android Development] lee.wp14:
You are good to go. Just follow the instructions on first page.
[Galaxy Note GT-N7000 Android Development] ludskyrider:
But just a question please : about i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

It is a *.img

How do i flash it in recovery please?
[Galaxy Note GT-N7000 Android Development] :
Flash this cyagnanogenmod 13 kernel :- https://www.androidfilehost.com/?fid=24421527759881755

From your existing custom recovery and then you will have a twrp recovery that can flash .IMG files.

Hope this helps
[Galaxy Note GT-N7000 Android Development] lee.wp14:
Inside the Install section, at the bottom right there's a mode button that allow you to switch between Image and Zip. Choose Image and the .img file should appear. Select the img file and choose Boot, then flash.

He already have twrp 3.1.1 isorec, so he can straightway jump to the installation procedure.