yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] gaurast:
Build #4 2018-12-15 - first impression & one more bug

Just installed Build #4 2018-12-15 after lanchon repit to 1.5GB System. Initial set-up (fresh install) was laggy, started looping quite stubbornly on the 'restore from' and on the 'checking updates' screens, showing 'graphical glitches' as advertised, but eventually worked. I restored prefs and apps from the cloud from the set-up wizard and eventually got it to a usable config.

As already mentioned by others, damn' well done for this stage. Keep it up!

As for issues, so far I DID get the 'unstoppable notification sound' when first plugging into a USB cable to a PC (i.e. a "charging device"), as others reported on a previous build, but only the FIRST time. I was not able to reproduce it again yet. Weird...

Remaining with USB, I still do not get any notification when plugging into a PC, as I already flagged for LOS 15 on i9100. (I do get the notification saying 'USB is charging this device' with click-thru to settings on LOS 14.1 for the i9100 and on LOS 15 for the S5 a.k.a. KLTE). ADDITIONALLY, here I noticed the USB options panel under 'Settings -> Connected Devices' has ALL options grayed out. "Use USB for... No data transfer" is selected, but can't be changed.

Hope this helps.
[Galaxy S II Android Development] bersem:
Clean flash with OpenApps pico on my second S2.

Much faster and stable as latest build. [emoji106] [emoji106]

Screen resolution still not fixed. Batery drain still high on WiFi usage [emoji20]

Great work [MENTION=3742928]rlnanDO[/MENTION][emoji106

EDIT: HW-Overlays deactivated fixed resolution Problem.

Gesendet von meinen GT-I9100 LOS 16.0 using XDA-Developers Legacy app
[Galaxy S II Android Development] bersem:
some screenshots
[Galaxy S II Android Development] rINanDO:
Hwoverlays.... I will check that. Thanks for the hint!
[Galaxy S II Android Development] bersem:
If i change the Screen resolution to small the phone lags ( no icons, settings are accessable and statusbar - pull down works ) very only reboot helps.

After reboot all are fine but statusbar ( clock, battery %, wi-fi etc. ) is hidden (only pull down works ). Deactivating HW-Overlays brings statusbar back. It must be deactivated after every reboot.

Btw. ROM is very faster and usable. Sometimes freezes , lags ( reboot helps ) and "battery drain" on Wi-Fi usage.

Great work [MENTION=3742928]rlnanDO[/MENTION]

Respect for your hard work !

Br !
[Galaxy S II Android Development] Kraiye:
Pie on an S2!

Just nuts... I love the idea!

:D

Haven't much time to play lately but will give it a go down the track.

Great work.
[Galaxy S II Android Development] infinion:
With no external sd card and no pc conectivity, vers 4.1.2 ,got some kind of root with kingroot next with mobile odin pro flash CWM-SuperSU-v0.97.zip for proper root ?.sugestions on the way to lineage 16
[Galaxy S II Android Development] joam280:
Some small tutorial and partition files.I want to install this rom and always error ?

Thank you.
[Galaxy S II Android Development] bersem:
https://xdaforums.com/galaxy-s2/help/preparing-clean-loss-data-installation-t3712409

same procedure but only:

use latest LOS 16.0 ALPHA flash file and gapps arm 9.0 pico to flash this ROM

https://opengapps.org

backup your current ROM !

---------- Post added at 08:10 PM ---------- Previous post was at 08:01 PM ----------

i think thats not possible without sdcard :confused:

you have to wipe your phone before flashing..
[Galaxy S II Android Development] joam280:
A thousand thanks, got [emoji6]

Enviado desde mi Redmi 5 Plus mediante Tapatalk
[Galaxy S II Android Development] churchner420:
Good work mate. Does Magisk work now with the new HWC?
[Galaxy S II Android Development] bersem:
[MENTION=3742928]rlnanDO[/MENTION] 10GB storage use System??
[Galaxy S II Android Development] bersem:
It lags last days. Look at ZRAM.
[Galaxy S II Android Development] [Oxydeme]:
Please keep in mind that this stuff is still under Alpha stage.

Dev is doing all he can do to improve his ROM and make it as stable and fast as possible.

That's not the only one he works on.

Just be patient :)
[Galaxy S II Android Development] bersem:
Of course. You are right :good:

Respect to [MENTION=3742928]rlnanDO[/MENTION] and all other devs here on xda :good:

Sorry for OT !
[Galaxy S II Android Development] rINanDO:
Hi all,

I got a little update. I hope you all enjoyed Xmas and if I'm to busy to post here this year, happy new year to you all!

It is all because off hwc issues. There is a memory leak after the screenshots fix. It eats memory and if surfaceflinger doesn't crash first, you will have low memory problems and lags. I got a fix but it is still in test. After a while of use the phone soft boots with corrupt display because of memory allocation issues. The high resolution status bar issue is a separate issue. Something with allocating memory with less than 32 pixels height can't use overlay I suspect... Don't know why... Disabling overlay works, but consumes cpu and battery because we bypass the gpu this way.
[Galaxy S II Android Development] prateekjain2003:
I salute you for not loosing hope on S2... Sadly i lost hope and moved to S8 and OP6T.. I had 3 S2 devices and were my first Smartphones.. I took it to CM 14 i think then just dumped it..
[Galaxy S II Android Development] Catfish78:
Don´t loose hope, just tell us your problems here, maybe someone could help.

Regards
[Galaxy S II Android Development] prateekjain2003:
Its too late.. screen broke on 1 phone.. motherboard on another.. the third phone i still have lying somewhere on CM 14 or so.. and i will have to do a lot of research on how to upgrade it to latest software..

So.. better to leave it at that..
[Galaxy S II Android Development] Catfish78:
10 minutes work changing the board from one phone to the other. Doing this stuff here is for us all, for developement. I think the i9100 is a very easy to reflash phone, and still does a good job, thanks to Rinando and some more helping ones - thanks to them all.
[Galaxy S II Android Development] Minas90:
Hi guys,

My S2 is super slow, can the old battery be the cause? Please recommend where to buy a quality battery?

Or Android 9 is not ready yet?
[Galaxy S II Android Development] rINanDO:
New build is up!

I'm using this build a couple of days now stable as daily drive. HWC still needs work, but at least it doesn't crash after a while and doesn't 'leak' memory. Therefore I find it BETA worthy.

Happy testing!

Build #5 2019-1-13

Overall state: Stable-ish

Android build: 9.0.0-r30

Updated sources

Fixed high-res display statusbar issue

Fixed memory leak and crash in hwc

ZRAM set to 200MB

Applied GO config for 512mb devices

Known issues:

Graphical glitches

Download here: lineage-16.0-20190112-UNOFFICIAL-i9100.zip
[Galaxy S II Android Development] chhapil:
Do you use it with or without gapps?
[Galaxy S II Android Development] bersem:
[MENTION=2222292]rINanDO[/MENTION] Did you tested the high-res display status bar issue?

Dirty flashed from latest build. I have screen flickering on every tap on high-res. After deactivating HW-Overlays flickering goes away.

Can you check this?

EDIT: RAM ( not ZRAM ) is fully loaded even though all APP`s are closed and data traffic monitor on status bar not working.

It lags very on star-up, it think to many services and APP`s starting at boot and also file manager crashing..

Maybe i have to wipe before and flash clean ROM or ?

Great work :good: On this build the phone "flies". Many thanks for your hard work !
[Galaxy S II Android Development] Alexander Maison:
I am having a major problem.

Dear [MENTION=2222292]rINanDO[/MENTION],

I have recently tried to flash this ROM onto my phone, and consistently have problems, I am very much a noob, and so would appreciate the help.

I purchased the device, flashed my PIT file (1.5GB System, 6GB Data) and then proceeded to flash ISO-REC TWRP 2.8, where I flashed 'kernel-Lanchon-20160406-cm-13.0-i9100'. Then I flashed the TWRP 3.0.2.0.img and flashed the very latest ROM that you released, as when flashing GAPPS along with the ROM, it goes into android setup instead of Lineage setup and constantly crashes. So I flashed without GAPPS, and no matter which version of the ROM I flash, after setting the device up, it will crash soon afterwards. The screen goes black, and it brings me to a screen that says 'Android is Starting...' with moving progress bar. Then I am brought to a lock screen where I can see through to the home screen, then when I unlock the phone, I can't interact with the home screen, though I can swipe down, where I am again brought to the lock screen with a white clock and there I can still swipe down and get the regular swipe down menu with WiFi/BT icons, though when I go into settings from there, I can't interact with the settings. Then follow a load of crashes, and ultimately I just turn the phone off. Also throughout the whole thing, the wallpaper upon setting it up is like a starry sky, yet after it all crashes, it is just black. I have followed all the instructions as best I could, and my device is indeed a GT-I9100. Any help would be greatly appreciated.

Kind Regards, Alex.
[Galaxy S II Android Development] bersem:
Look back at my post 114.

Good luck !

Br !
[Galaxy S II Android Development] Catfish78:
Hello,

maybe a corrupt download? This seems to occur very often. I prefer downloading with android at this moment.

Regards
[Galaxy S II Android Development] Alexander Maison:
[MENTION=5677277]bersem[/MENTION], [MENTION=8941925]Catfish78[/MENTION]

Thank You both for your fast replies,

Though my problem is not with installing or booting the ROM. I have followed all the instructions, downloaded and re-downloaded the ROM, as well as trying to flash older versions. I still can't fathom exactly what the problem is. I wiped the Cashe, Dalvik Cashe, Data, System, and I installed the pico version of GAPPS. Still, it always glitches and crashes. Is it my version of TWRP perhaps? I've tried ISO REC 2.8 and 3.0.2.0.

Kind regards, Alex.
[Galaxy S II Android Development] bersem:
Use the files and instructions provided in the thread and do it all again.

We hope it's a GT-I9100. Look what's on the sticker behind the battery and what do you see on boot logo.

I remember that in my case the Intial-Setup crashed several times.

Good luck !
[Galaxy S II Android Development] ran000:
All successful install cases I know have used lanchon-repit facility ( lanchon-repit-20170115-system=1.5G-data=4G-sdcard=max-preload=min+wipe-i9100.zip ), but not flash PIT file. I suggest to you to follow this ( many times tested ) way.
[Galaxy S II Android Development] Alexander Maison:
[MENTION=3331444]ran000[/MENTION]

Where I can I find this file, may I please have a link to it? Thank you.

Kind regards, Alex.
[Galaxy S II Android Development] guest4711:
See https://xdaforums.com/android/software-hacking/tool-lanchon-repit-data-sparing-t3358036/post66344372

There you will find a download link and the link to the documentation. You can rename the file to suit it to your requirements...
[Galaxy S II Android Development] Alexander Maison:
[MENTION=8010004]guest4711[/MENTION], [MENTION=5677277]bersem[/MENTION], [MENTION=3331444]ran000[/MENTION]

I've followed everything by the book. I restored the PIT size and OS back to stock, then flashed TWRP 3.0.2.0, flashed the 'lanchon-repit.zip' which I can confirm went as it should. (followed video by RipCityBassWorks: https://youtu.be/Tga9qjFaVZI) wiped cache/dalvik cache and Data, flashed the kernel-Lanchon-20160406-i9100, rebooted recovery, flashed the ROM and GAPPS, and I STILL can't get it to work. Because I can't get it through the setup no matter what I do. The guy in the video did. I just can't. I've no idea where I went wrong.

Please help!!!!

Kind regards, Alex.
[Galaxy S II Android Development] bersem:
Can you now try this:

1. Boot into Recovery

2. Make wipe

3. Flash kernel lanchon https://drive.google.com/file/d/1yQACuiObxaaEtGkC1KkHIPrBC_qJQUbf/view

4. Flash isorec TWRP https://drive.google.com/file/d/1Bq3KNvnwX1bni3k5fAW5618rRmmadwaT/view

5. Reboot Recovery ( then you are in isorec recovery )

6. Make full wipe again

7. Flash lanchon repit file ( incl. second from tmp folder )https://drive.google.com/file/d/1SZZy2nlwaZh2tHhM_iAk7pesmJkcLVn7/view

8. Make wipe again

9. Reboot recovery

10. Flash latest BETA ROM and Gapps arm pico 9.0

11. Reboot System

Do you use ExtSD for flash? Which file system format do you use on data, int. storage, cache.. ?

Good luck
[Galaxy S II Android Development] rINanDO:
Yes I tested high resolution. In r30 we got 4 Display Sizes. I use the smallest now... If you still got issues you probably have a different scenario.

The display does flicker. Still WIP. It has something to do with HWC overlay and blending. When I turn off overlay, then we have vsync issues like we have in los 15.1. But maybe that is better than the flickering.

About full memory, can you post your meminfo? That will give more info what is wrong with your RAM.

su

dumpsys meminfo
[Galaxy S II Android Development] bersem:
Yes, I use the same smallest screen resolution as you. Shortly after touching an area, the screen flickers ( very short ) on as you say. But when I disable HW overlays everything is normal.

Again many thanks for you hard work.

Best regards !
[Galaxy S II Android Development] Alexander Maison:
[MENTION=5677277]bersem[/MENTION]

Yes, I flashed the firmware with an ext SD card, I formatted them as EXT4 I think.

Also thanks for all the help you've all been giving me, it's greatly appreciated :)
[Galaxy S II Android Development] rINanDO:
New build is up again ;)

I investigated the flickering and since the hwc-code is getting more sense for me, I managed to merge some code from our old HWC 1.0 which determined HWC_overlay support.

I don't see any flickering anymore and I hope that the glitches are gone! But that is for you guys to check if I fixed it right.

The little downside is that we have the same v-sync issues like in LOS 15.1, but now with HWC 1.4.

Happy testing!

Build #6 2019-1-14

Overall state: Stable-ish

Android build: 9.0.0-r30

Updated sources

Fixed graphical glitches

Known issues:

V-sync not working properly like in LOS 15.1

Download here: lineage-16.0-20190113-UNOFFICIAL-i9100.zip
[Galaxy S II Android Development] rINanDO:
I checked your file, but I don't see strange things in your meminfo.txt. My guess is that dex2oat is still doing things lagging your S2 at startup. Give it a day of 2 because Orea/Pie optimizes your apps (by usage) during charge when reaching full charge. About the flickering, I uploaded a new build. The flickering should be gone :D
[Galaxy S II Android Development] bersem:
But where to download ? :confused: :D
[Galaxy S II Android Development] vdhero:
For real? You can't see the name of the zip in yellow? It's a clickable link.
[Galaxy S II Android Development] bersem:
Yeah, but error 404. The file was removed..

Btw. We are going to OT.
[Galaxy S II Android Development] vdhero:
It's working for me
[Galaxy S II Android Development] rINanDO:
Sorry, I removed and uploaded a new file. It should be fine now.
[Galaxy S II Android Development] Catfish78:
Hello,

tested again today. Getting e1001 and error 7. I am anxious to reflash stock, because of the possibillity to loose imei. LOS 15.1 is running well.

Regards
[Galaxy S II Android Development] bersem:
Yeah i can confirm that :good: :good: :good:

No flickering anymore :good:

Time to go officially?
[Galaxy S II Android Development] PcmciaKai:
Does anyone else have the issue that no file manager can see files or folders on the internal/external storage? :o
[Galaxy S II Android Development] ran000:
Please, try to long press "Files" icon standard File Manager and select "SD card" from pop-up menu.
[Galaxy S II Android Development] PcmciaKai:
Long pressing the "Files" file manager only shows "Images", but upon pressing that it actually opens! :o Thanks for that!

However, this means that other installed apps do not have the power to access your storage properly. This got confirmed after I now could install the APKPure app which can't do anything because it asks me to check the Storage permission (which I have given obviously).
[Galaxy S II Android Development] Edhuin1:
Works pretty good, although I can't seem to change the mode from charging to transfer files over usb, it's all greyed out.
[Galaxy S II Android Development] PcmciaKai:
Noticed the same, but in developer options you can change the default USB setting, which will then work out!
[Galaxy S II Android Development] Edhuin1:
Ah yeah found it, thanks! I checked dev options before but must have missed that one, works perfectly fine now.
[Galaxy S II Android Development] Alexander Maison:
So am I really the only one that can't get past the setup screen in any of the builds? No matter what I do and indeed through the ROMS updates, the setup is in a cycle of continuously crashing. Deleting the setup.apk just makes things worse...

Thanks, [MENTION=2222292]rINanDO[/MENTION] anyway for your continued work on this device, I have seen this ROM work in a video and it seems to work very well. If you could help me on the issue it would be really appreciated.
[MENTION=3331444]ran000[/MENTION]
[MENTION=5677277]bersem[/MENTION]

(I tried the things that you mentioned in your previous posts, and still, no success. I downloaded and flashed all the files provided by you, wiped the phone, installed the ISO REC TWRP 3.1.0, used the lanchon-repit again, so I'm kinda lost.)

Kind regards, Alex.
[Galaxy S II Android Development] guest4711:
What happens if you pull out the simcard before powering on the phone and don't give it access to internet (ignore WiFi) before setup is done? And if you leave the system language on English?
[Galaxy S II Android Development] Alexander Maison:
[MENTION=8010004]guest4711[/MENTION] I never let it connect to the internet, and in fact, I could not anyway, as it crashes whether connected to the internet or not. Furthermore, this is phone was purchased for testing ROMS, and so I do not have a sim card in the device.

Kind regards, Alex.
[Galaxy S II Android Development] MaddogIT:
I was blocked in an endless setup first time that installed pie but was because I didn't wiped all but made dirty install.

When I wiped all and reflashed I went though setup without problems.
[Galaxy S II Android Development] guest4711:
Did you do a very clean install (wiping system, data, cache before installing and cache & dalvik afterwards)? See the report @ https://xdaforums.com/galaxy-s2/development-derivatives/pie-i9100-t3850588/post78678970
[Galaxy S II Android Development] Alexander Maison:
[MENTION=8010004]guest4711[/MENTION] I did a very clean install, wiping system, cache, dalvik cache and data prior to flashing. But I didn't do it after flashing the ROM as I didn't think it was necessary. Thank you, I will try this.

Kind regards, Alex.
[Galaxy S II Android Development] JaLoou:
Thanks to Alexander Maison for his very useful posts helpful to people avoiding buggy ROMs.

Hope he will be able to continue to report about bugs in this custom ROM and provokateur accounts on XDA will not be able to ban him villaintly.
[Galaxy S II Android Development] Alexander Maison:
Well, I can confirm that wiping everything before flashing, and then both cache partitions after flashing do not make a difference, the setup still crashes. Thank you to everyone that has been helping me with this, I'm sorry if I come across as a nuisance but I don't understand how ROM development, or indeed troubleshooting ROM issues work.

If anyone knows what to do, or what I've probably been doing wrong, please leave a reply, and tell me what I should do. Also, once again, [MENTION=2222292]rINanDO[/MENTION], this is a super cool project you have made, and this is in no way a criticism, it's just for me at least, the ROM continuously crashes when trying to set it up.
[MENTION=5677277]bersem[/MENTION]
[MENTION=8010004]guest4711[/MENTION]
[MENTION=3331444]ran000[/MENTION]

Thanks for all the advice and help :)
[Galaxy S II Android Development] JaLoou:
Sorry, I have a question:

Is the "standard file manager" implemented in this ROM with its attractive 'Files' icon, which the users constrained to use, is actually just renamed and simply new-iconed CM File Manager of recently exposed Cheetah Mobile money fraud?
[Galaxy S II Android Development] bersem:
:confused: :confused:

Are you sure that it is a GT-I9100? Check it again.

Try to connect to internet before doing any steps in the setup. Use the first opportunity to connect to the internet if possible. Try many times

Maybe you'll find an older version of Gapps 9.0 pico somewhere and try it.

After booting, leave the device for a few minutes on the initial setup before trying anything.

Somewhere I read that a missing permission in the system can be the cause.

Lastly, this is what I found:

And the very last one: hardware damage???
[Galaxy S II Android Development] Catfish78:
Hello,

today i´ve tried it again - with this description (in german language, sorry - please use a online translator if you want to read it):

https://forstner-mcr.de/how-to-lineageos-16-0-auf-dem-samsung-galaxy-s2-installieren/#respond

After two non-working setup-turns with flashed GAPPS 9.0 nano, i´ve re-downloaded it, this time with md5-file, and LOS 16.0 #14. Well, this time i did not connect to Wi-Fi in system setup on the first run, and until now (play store is automatical restoring my apps after Wi-Fi-connect in running system), it seems to work. I´ll tell more later.

The earlier described permanent sound after unplugging USB and replugging it happens to me, too :) .

Thank you for your great work, Rinando!

Edit: for now i did not understand whats happening... i can see my IMEI, when i click on it, it dissapears. My phone card has no phone number (i got it today, my old one was no nano sim), and there´s no mobile network... try it tommorrow again.

Edit 2: it seems to rely on the sim card, same thing in another phone.

Regards
[Galaxy S II Android Development] OllieW:
Hi there, I've also installed the new LOS16.0 (20190113) image on my i9100 and encountered the same problems - the setup wizard will hang up when connection with wifi is established, but it seems to work with mobile connection or when wifi wizard will be skipped. I used the OpenGapps Pico (20190114) and made a clean install (full wipe - all partitions with ext4 except internal sd with fat).

Afterwars I installed WhatApp from Google Play and the app permissions will be overridden: Although there is no permission for WhatsApp to access SMS, I will fetch the activation code automatically. And restoration of an Google Drive backup fails (no progress and abortion after some minutes). I don't know if these are specific LOS16.0 or i9100 bugs - WhatsApp itself won't support custom ROMs..
[Galaxy S II Android Development] anton-:
The FM radio is not working in this rom. It was working in the official Lineage 14.1 for example with this app: https://f-droid.org/en/packages/fm.a2d.sf/