yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] xdalurker1:
RIL Error caught in logcat with all buffers and max bufsize

Got build #18 installed and cache partition wiped. Set logcat to all buffers, and set buffer size to 1MB (max) on developer-options per your request. I'm using logcat reader app 1.7.1

I then went to work rebooting. After several reboots (5 or 6) which were normal, SIM recognized and service available, I managed to get a boot with 'no service' and immediately saved a catlog attached.

From what I read (very minimal understanding):

Line 4619 - SIM is recognized and counted

Line right after it is first E/RIL error

Things go down from there: line 5011: unsupported response code from RIL

Line 15766- Invalid RIL token

Hope this helps and THANKS for all your effort!
[Galaxy S II Android Development] 1victor:
Best rom

Hello! First of all (classic message) thank you very much for the hard work :D. Will you make builds with android 11, LOS 18? :) (When lineageos 18 will be released)
[Galaxy S II Android Development] xdalurker1:
Worst RIL error list in logcat

Today my S2 became barely usable because of RIL related errors and I think I caught a good number of them in the attached logcat!

Hope this helps
[Galaxy S II Android Development] bersem:
+1 and unbelieveable battery drain. 24h on charger.
[Galaxy S II Android Development] ze7zez:
The gsm network is on. Up time 102 h and still half the battery. :good:
[Galaxy S II Android Development] rINanDO:
Somehow I can't download link. 404 error. :(

I'm still investigating and maybe it is now kernel related. I had a few "no sim/service" messages and caught these logcat and kernel logs. (after 2/3 days) It is now not a libc-crash, but a RIL-reset.... According to the kernel logs our modem failed to suspend at some time and when being resumed it shuts down because it can't recover. Not a rild crash like before, but same behavior. I'm figuring out why this happens.

[21999.577466] c0 PM: Some devices failed to suspend
[21999.577529] c0 usb usb1: usb resume
[21999.577555] c0 s5p-ehci s5p-ehci: resume root hub
[21999.607007] c0 hub 1-0:1.0: hub_resume
[21999.607057] c0 hub 1-0:1.0: port 2: status 0507 change 0000
[21999.607170] c0 usb 1-2: usb resume
[21999.644772] c0 s5p-ehci s5p-ehci: port 2 resume error -110
[21999.644822] c0 s5p-ehci s5p-ehci: GetStatus port:2 status 0018c5 0 ACK POWER sig=j SUSPEND RESUME PE CONNECT
[21999.669803] c0 s5p-ehci s5p-ehci: port 2 resume error -110
[21999.669849] c0 s5p-ehci s5p-ehci: GetStatus port:2 status 0018c5 0 ACK POWER sig=j SUSPEND RESUME PE CONNECT
[21999.669901] c0 mif: usb_port_resume: 1287, 4
[21999.669934] c0 hub 1-0:1.0: port 2 status 0004.0507 after resume, -19
[21999.669968] c0 usb 1-2: can't resume, status -19
[21999.669994] c0 hub 1-0:1.0: logical disconnect on port 2
[21999.670298] c0 PM: resume of devices complete after 92.795 msecs
[21999.685599] c0 PM: Finishing wakeup.
[Galaxy S II Android Development] xdalurker1:
2nd try at attachment
[Galaxy S II Android Development] Ali djitey:
files system read-only

hi

how to fix files system read-only on this rom
[Galaxy S II Android Development] kisgeri:
BLN

Hi everyone! I just upgraded one of my S2's from LOS16 to LOS17.1 and made a clean install.

How to get work BLN? I tried the same as before: installed BLN mod 1.0.3, BLN mod addon and Synapse. Also granted superuser for it via magisk. But Synapse sais: No UCI support detected.

Any suggestions? Thanks
[Galaxy S II Android Development] rINanDO:
New build is up

Still on RIL... I hope I found the issue why suspend fails. I haven't caught any RIL libc-crash errors after these days. Only RIL silent resets.

According to kernel it failes to suspend. In the kernel I found a faulty conversion passing jiffies instead of ms in the suspend method. The same

fault has been made for the accelerator. This is fixed now. Lets hope this has fixed RIL... Please test (running now 2 days without problems). Thanks for you guys providing me

logs!

I have introduced a new method for more complete log(cat)s. You can use setprop persist.logcat.enabled 1. This will write maximum

of 10 log-files in /data/.logs. Logs are persisted when rebooting or crashes.

I stumbled on missing blobs in the logs about Bluetooth APT/APT-HD. I had no idea what this is. Seems to make audio quality improvements for

headphones. I don't have one... I used blobs from another device and according to the logs it is succesfully using them. So please let me know

this had any effect.

Regards!

Build #19 2020-09-27

Overall state: Stable

Android build: 10.0.0-r41

Required recovery: TWRP 3.4.0-i9100 for Android 10

Changes:

- Update sources

- Added blobs for bluetooth APT and APT-HD support

- Fixed conversion error for accelerator and ril suspend methods. Will this fix RIL?? please test.

Downloads

i9100-LOS-16.0-Emulated-Storage.pit

TWRP-3.4.0-i9100-Android-10.img

lineage-17.1-20200926-UNOFFICIAL-i9100.zip

lineage-17.1-20200926-UNOFFICIAL-i9100_boot_magisk.img
[Galaxy S II Android Development] rINanDO:
Like older roms you need to remount system-partition. You can use these commands from commandline:

adb root
adb remount
[Galaxy S II Android Development] Ali djitey:
adb says

ADB Root access is disabled by system setting - enable in Settings -> System -> Developer options

have root with magisk
[Galaxy S II Android Development] Szallinux:
Settings -> System -> Developer options -> rooted debugging
[Galaxy S II Android Development] bersem:
[MENTION=2222292]rINanDO[/MENTION] RIL is not solved. :( Yesterday i had an boot without network. Will make a log next time..

Regards !
[Galaxy S II Android Development] tonymonaghan0:
Is this build based on Android Go?

Was trying to set the Display over other apps permission for an app that I am developing and it says feature not available, this feature has been turned off because it slows down your phone? Thanks.
[Galaxy S II Android Development] elvisburdajs:
Any plans for Android 11? We need to show manufacturers that supporting even 10 year old device is possible! ???
[Galaxy S II Android Development] Ali djitey:
i am no show rooted debugging in Developer options
[Galaxy S II Android Development] OllieW:
I dirty flashed the new build and aptX-support seems to work correctly on my aptX bluetooth speaker - at least "HD Audio: Qualcomm aptX audio" is shown now and everything sounds clear so far. Unfortunately phone calls will be directed to internal phone earspeaker and microphone again like the builds before although the bluetooth output is selected. Switching between internal phone earspeaker and internal phone loudspeaker while phone call works flawlessly, but selected bluetooth device in hands-free mode will be ignored while phone call (music i.e. from radio station outputted on bluetooth speaker will be muted while phone call and plays again on bluetooth speaker after the call).

I will also analyse the RIL problems - last build was much more stable, but I also had some strange behavior (like SMS being notified much later than released). Activating logcat to maximum has to be done in terminal mode (developer settings) or in TWRP recovery?
[Galaxy S II Android Development] ChronoMonochrome:
Could the failed suspend be caused by those removed wakelock functions in libsec-ril.so?

Also, a while ago I made some hacks in fw/opt/telephony intended to fix no SIM card issue on boot (which was happening on t0lte and i9300 when booted in airplane mode):

https://github.com/CustomROMs/andro...mmit/0e758d53724867c5c26626e03f0b282008625b3e

https://github.com/CustomROMs/andro...mmit/bb4de1428329366f03f1aad3e08c79dfb0400788

It restarts the RIL daemon as soon as the network is unavailable.

Can this help anyhow?
[Galaxy S II Android Development] xdalurker1:
rINanDO, unfortunately, I got a RIL related 'no service' today (in the middle of a call...). This is using build #19

Having my priorities right, I first generated a logcat save and only then got back to my caller after a reboot ;)

Attached log file. We shall never surrender! Hope this helps.
[Galaxy S II Android Development] Szallinux:
??? Maybe install magisk kernel?
[Galaxy S II Android Development] rINanDO:
Thanks. I think this is a different issue. Ril-daemon restarts already after it stops. But then the framework doesn't reconnect to RIL. I had to remove set_wakelock because of binder issues. I saw this suspend error before hacking set_wakelock. My guess it must be something else.

By the way, has anyone still has battery drain issues when turning off the phone? (Hang on shutdown)
[Galaxy S II Android Development] rINanDO:
Yes you need magisk kernel. Forgot to mention.
[Galaxy S II Android Development] Ali djitey:
how to install magisk kernel ?
[Galaxy S II Android Development] bersem:
Download the .img file and Flash through TWRP to boot. Select .img and the file will be visible.

Regards !
[Galaxy S II Android Development] Ali djitey:
i already do that

but my fs is on read-only

i try cmd: mount / -o remount,rw not fix it
[Galaxy S II Android Development] xdalurker1:
I think you should go back to step-by-step instructions: See this:

https://xdaforums.com/showpost.php?p=83179691&postcount=398

Start with step 2 if you have TWRP (correct version!) installed.

Download mode=press volume Down+ Home button + Power button (hold 3 buttons pressed for 10 seconds)

Recovery mode (TWRP) =press volume Up+ Home button + Power button (hold all for 10 seconds)
[Galaxy S II Android Development] uni77:
i get that far but the old download mode comes up or a battery icon what am i doing wrong ?
[Galaxy S II Android Development] MaddogIT:
Uhm, for download mode is Volume down, for recovery is Volume up!

After that steps you need to enter TWRP not download mode again.
[Galaxy S II Android Development] xdalurker1:
Disconnect the charger. Take out the battery and put it back in again and start the procedure. When pressing the three buttons: for recovery (TWRP): press and hold buttons VolumeUp and Home, and press power button. For Download mode: press and hold buttons VolumeDown and Home, and press power button
[Galaxy S II Android Development] anton-:
Hi,

I am trying to use a Covid-19 exposure app without using gapps with this rom. Instead of gapps I am using microG installed with a F-droid repository. Everything looks working and I can activate all the options but I am not able to activate the "Exposure Notifications" that it is off all the time. The Covid-19 app complain that I have not google services installed, but there are confirmations that this app run with the last version of MicroG 0.2.12.203315.

Have somebody be able to activate "Exposure Notifications" with this rom? Thanks.
[Galaxy S II Android Development] mirhl:
https://github.com/microg/android_packages_apps_GmsCore/labels/🦠 Exposure Notifications

It has nothing to do with the rom.
[Galaxy S II Android Development] bersem:
Maybe this will solve your problem.

Regards !
[Galaxy S II Android Development] kurtn:
Yes you need 0.2.13 for 1.5.0 - and then check microG settings exposure notification: is there a currently broadcasted ID? Should look like a md5 tag. Maybe S2 is too old for sending low power Bluetooth beacons.
[Galaxy S II Android Development] anton-:
Thanks. I updated the MicroG version directly downloading the app from the repositories and now it looks that works. But after I activated the app the app crashed but I think it is maybe working in the background, so at least is it something.

The app is the official in Finland, Koronavilkku.

---------- Post added at 08:25 AM ---------- Previous post was at 08:17 AM ----------

I updated the version and now it is partially running. I can see the broadcasted ID but the app crashed all the time after the activation but I think it is working in the background but I am not sure yet.

The app is the Finnish one, Koronavilkku, and it worked without problems with the same old phone with the apps installed, (but with the gapps ,the phone was slow and not very usable). So it is not a problem of old hardware.

I have noticed also with the new versions of Firefox, I can not use them because they doesn't run anymore, I don't know why, maybe lack of enough memory.
[Galaxy S II Android Development] kurtn:
Could you please report the crash here?

https://github.com/microg/android_packages_apps_GmsCore/issues

I think Marvin is highly interested in logcat of non German corona apps.
[Galaxy S II Android Development] Harebal:
I wonder that covid is mentioned in this topic..
[Galaxy S II Android Development] leitefresco:
Hi.

I have 2 S2 with this rom working fine, both are rooted. The point is:

Install Firefox v82.1.1 from

https://www.apkmirror.com/apk/mozilla/firefox/firefox-82-1-1-release/

The two S2 crashes then reboots itsel only if Wi-Fi is on.

Install Firefox v68.11.0 from

https://www.apkmirror.com/apk/mozilla/firefox/firefox-68-11-0-release/

It works fine on the two S2.

What could it be?

Thanks.
[Galaxy S II Android Development] Lord_Byron:
Are you working on the RIL issues still?
[Galaxy S II Android Development] JaLoou:
It is a good proof that this custom ROM is actually Android OS v4.1.2 only because exactly Firefox v68.11.0 was the latest Firefox for Android OS v4.1.2.

APIs of newer Android versions are not implemented in this ROM and if some apps call they then it just crashes.
[Galaxy S II Android Development] K9100ii:
You don't know what you're talking about.
[Galaxy S II Android Development] Apex Predator:
I want you to become a dev, or hell, even a maintainer, just so you can see how it feels when people trash your work.

Do you have any idea how rare and wonderful it is to have someone like [MENTION=2222292]rINanDO[/MENTION] keeping a 9 YEAR OLD DEVICE up to date? Such things are not commonplace in this world anymore and should be appreciated.

Nothing wrong with a bit of feedback/constructive criticism (better yet, logs!) but you've been railing against everything since 7.1.2. Some may find it entertaining but it actually makes me mad.
[Galaxy S II Android Development] grishaiozhig:
Thank you for your great job! Its so crazy to have this rom, it makes s2 the most maintained device in the world, actually. Even more years kept up with droid version than HTC One
[Galaxy S II Android Development] MaddogIT:
Unfortunately JaLoou is more than just an critic user, read there https://xdaforums.com/galaxy-s2/help/bugs-official-lineage-os-14-1-galaxy-s2-t3649329/

Of course he is now completely outdated with his mad conclusions.
[Galaxy S II Android Development] JaLoou:
If APIs of newer Android versions are not implemented in this custom ROM then it is NOT up to date.

So, your quoted testament is logically incorrect, wrong actually and mislead people only.
[Galaxy S II Android Development] K9100ii:
You still don't know what you're talking about. Perhaps you should leave XDA, and do more productive things in your life?

[MENTION=4298067]Apex Predator[/MENTION], please don't feed the troll. It's pointless to validly argue with [MENTION=8356117]JaLoou[/MENTION].
[Galaxy S II Android Development] Enshiner:
Is individual isorec file need or not?

Hii, I have planned to install recent build from stock. Do I need to flash the isorec image individually or is it enough to flash PIT and mentioned TWRP directly through odin as mentioned by you?. :confused:
[Galaxy S II Android Development] MaddogIT:
Here you have a guide

https://xdaforums.com/showpost.php?p=83179691&postcount=398
[Galaxy S II Android Development] kalagani:
Hello Enshiner,

for me, on my S2 completely stock, it was necessary to install the "isorec" (Isolation Recovery) versions of this recovery and of the kernel

this in order to isolate the Samsung recovery as part of its Kernel, and avoid rebooting, always on this one and not on the "third party" recovery!

I made this french tutorial (free account is mandatory to see the hidden parts, sorry!)
[Galaxy S II Android Development] Enshiner:
Is flashing pit and twrp removes or corrupt the stock firmware then it will correct. Otherwise Isorec patch and kernals are required to isolate kernal and to install custom TWRP recovery through reocovery mode flashing. Is this correct or not?:rolleyes:

---------- Post added at 06:09 AM ---------- Previous post was at 06:05 AM ----------

did you flashed through odin or through recovery mode or through adb sideload or through official twrp app ? Which one you used to flash twrp.
[Galaxy S II Android Development] Tech-Hunter:
Magisk v20.4 support via optional kernel image ?
[Galaxy S II Android Development] ze7zez:
In the first post of this thread?
[Galaxy S II Android Development] Tech-Hunter:
Of course I tried: "lineage-17.1-20200926-UNOFFICIAL-i9100_boot_magisk.img"

and also seached in the ZIP for any KERNEL-Images...

Magisk v20.4 Manager says: "unsupported / unknown image format"

Even when it would work out, I'm missing information which way exactly I have to upload the patched KERNEL-Image... I give up after more than 2h

[IMG="Screenshot Samsung S2: Magist Error & Broadcast"]https://wp.me/aclwuZ-NV[/IMG]
[Galaxy S II Android Development] ze7zez:
Don't give up. You have magisk 21 and magisk manager 8.0.2 to try out.

I won't help you with this, because I don't need to use root.
[Galaxy S II Android Development] Tech-Hunter:
Magisk v20.4 is the proofed version in the article and it works fine on the phone...

I also DONT need root either - just because of CELL BROADCAST I would like to have root rights and disable the BROADCAST PROCESS.

Did you solved the CELL BROADCAST notification (cp. picture above) in any other way?
[Galaxy S II Android Development] kalagani:
Flashing under Linux

Hello,

pit is a new memory distribution because the old one doesn't meet the partition size level for the new ROM.

Without isorec patches, the S2 reboot on the Samsung recovery, never on the TWRP recovery, as far as I can remember!

My PC is under Linux so I didn't use ODIN but heimdall and adb tools.

In first time I used the lineage-15.1-20181010-UNOFFICIAL-i9100_SU_MicroG custom ROM,

Here is a translation of how I did it from the above link with it

note: the recovery, in fact the trwp3.1.0-0, once unzipped is simply called recovery.img while the kernel is called boot.img

In a second time I flashed a LineageOS 17.1 coming with another pit, isorec and recovery

Here also translation of how I did it from the above link with it
[Galaxy S II Android Development] sirozan:
If i remember correctly, on s2 you can NOT use the Magisk manager app to install Magisk.

You have to flash both the ROM (lineage-17.1-20200926-UNOFFICIAL-i9100.zip) and special Magisk image (lineage-17.1-20200926-UNOFFICIAL-i9100_boot_magisk.img) in TWRP in the same session before you reboot to system.

(to flash an image in TWRP, during install click on "install image" in the bottom right. select the magisk image and flash it to boot, not recovery)
[Galaxy S II Android Development] bersem:
All what u have to do are in the OP on first page. PIT and Recovery for Android 10..

Regards !
[Galaxy S II Android Development] ze7zez:
Settings -> Apps & notifications -> Advanced -> Emergency alerts -> [switch off] Allow alerts

More info: CellBroadcast

.
[Galaxy S II Android Development] stronkie:
Reboot on SD card format

Hi guys!

Not very experienced with custom roms but using the guide I was able to get the latest version running on my GS2. So far so good. (TWRP 3.4 and 9-26 rom version)

But when I try to format an SD card the GS2 reboots (when progress is at ~20%). SD card is a standard 1GB card and works well in other phone and laptop.

Any idea what seems to be the issue? (I am definitely not excluding the user here ;))
[Galaxy S II Android Development] teigaff:
I also installed newest version today with this guide. I formatted a 8GB Sandisk SD card. No problem. After 20% the process is quickly finished.

---------- Post added at 09:58 AM ---------- Previous post was at 09:51 AM ----------

How did you install microG? I followed this guide and want F-Droid app and microG installed.

F-Droid: OTA zip installed in TWRP. But in LOS it is not visible.

MicroG: I don't know how to install.

Thanks for your help
[Galaxy S II Android Development] anton-:
You can install MicroG with the F-droid app: "Aurora Droid" https://f-droid.org/en/packages/com.aurora.adroid/ You have to activate de MicroG repository from the list of repositories and then you can install the MicroG apps as normal app.
[Galaxy S II Android Development] rINanDO:
New build is up!

Hi everyone,

I have been busy at work and private so I hadn't got much time to release a new build. Since Lineage 18.0 there hasn't been an update above R41 anyway. I have updated the sources and I noticed the new version of Magisk. So we got the new Magisk v21.1 supported kernel here :). RIL is still dropping when it suspends after 4 or 5 days uptime on my daily drive phone. It happens rarely in my use and thereby I can't get logs and troubleshoot further (still trying though...).

I hope you all are still healthy in this Corona situation. Take care!

Build #20 2020-11-27

Overall state: Stable

Android build: 10.0.0-r41

Required recovery: TWRP 3.4.0-i9100 for Android 10

Changes:

- Updated sources

- Fixed audio on Bluethooth headset

- Magisk v21.1 supported kernel image

Downloads

i9100-LOS-16.0-Emulated-Storage.pit

TWRP-3.4.0-i9100-Android-10.img

lineage-17.1-20201127-UNOFFICIAL-i9100.zip

lineage-17.1-20201127-UNOFFICIAL-i9100_boot_magisk.img
[Galaxy S II Android Development] ze7zez:
The consolation in a pandemic is, for example, testing new ROMs while staying safe at home.
[Galaxy S II Android Development] jo-so:
NULL pointer dereference at virtual address 000001fc

I've installed the build #20 as a clean install (wipe of all partitions mentioned in the first post) and the app OpenFoodFacts (f-droid(dot)org/de/packages/openfoodfacts.github.scrachx.openfood/) crashes the kernel. When opening the burger menu the system restarts.

<6>[20733.594144] c0 mif: link_pm_irq_handler: gpio [HWK] get [0]
<6>[20733.594474] c0 s5p-ehci s5p-ehci: host_phy_resume
<6>[20733.629980] c0 mif: link_pm_irq_handler: gpio [HWK] get [1]
<6>[20733.682349] c0 mif: usb_port_resume: 1283, 4
<6>[20733.684357] c1 mif: IPC-RX(16): 7f 0e 00 00 0b 00 ff ca 07 01 03 ff 01 00 05 7e
<6>[20733.995698] c1 s5p-ehci s5p-ehci: host_phy_susp
<1>[20734.236234] c0 Unable to handle kernel NULL pointer dereference at virtual address 000001fc
<1>[20734.296864] c0 pgd = c283c000
<1>[20734.298628] c0 [000001fc] *pgd=00000000
<0>[20734.338551] c0 Internal error: Oops: 5 [#1] PREEMPT SMP
<4>[20734.342450] c0 Modules linked in: Si4709_driver
<4>[20734.346965] c0 CPU: 0 Tainted: G W (3.0.101-lineage-g57a94fbaace4 #3)
<4>[20734.354528] c0 PC is at rt_fill_info.isra.38.constprop.42+0x234/0x468
<4>[20734.360946] c0 LR is at rtnetlink_put_metrics+0xec/0x11c
<4>[20734.366237] c0 pc : [<c093e140>] lr : [<c08ea110>] psr: 60070013
<4>[20734.366269] c0 sp : c2807b00 ip : 00000000 fp : c2807b54
<4>[20734.378214] c0 r10: 00000000 r9 : c058546c r8 : c027d000
<4>[20734.383678] c0 r7 : c2807b24 r6 : df8ba180 r5 : c27d5dc0 r4 : d90c90a4
<4>[20734.390447] c0 r3 : 00000000 r2 : 00000000 r1 : d90c90e8 r0 : 00000000
<4>[20734.397220] c0 Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
<4>[20734.404598] c0 Control: 10c5387d Table: 4283c04a DAC: 00000015

You can find the full last_kmsg here: files.jo-so(dot)de/last_kmsg (I didn't know how to attach files in this forum.)

BTW: `adb logcat -L` doesn't work for me, should it?
[Galaxy S II Android Development] rINanDO:
I asume previous build #19 was working fine?
[Galaxy S II Android Development] jo-so:
I don't know. Build #20 was the first one I have installed. Until last weekend I had used LOS 14.1, but smashed it and had to install a new image. So I picked this one. Is a downgrade (20 -> 19) possible and would this help?
[Galaxy S II Android Development] SaudMujahid:
twrp 3.4.0 does not work

i tried alot to install after flashing the image you provided however it shows"unable to mount sd card" . i tried installing older coms with your twrp version but same error message and when i flash your old twrp 3.3.1 version everything seems to work just fine even the newer builds which clearly says to use the last version:/. any fix?