yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] rINanDO:
New build is up!

Build #12 2019-5-11

IMPORTANT: You need to migrate to emulated storage using TWRP 3.1.0-EMU-MIGRATION-M-20170318

See opening post for detailed installation instructions.

Overall state: Stable

Android build: 9.0.0-r37

Updated sources

Fixed Headphone volume control (selinux denial)

Set ZRAM to 350MB

Tweaked ActivityManager settings

Added back SamsungDoze (thanks to [MENTION=8145312]linusdan[/MENTION])

Fixed preview crash camera/video in Snap

Flashlight wakelock fixed (Fixed in kernel thanks to [MENTION=5695278]ChronoMonochrome[/MENTION])

Known issues:

None (But that can't be possible) Please report :)

Downloads:

TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip

lanchon-repit-20170115-system=1.5G-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip

lineage-16.0-20190510-UNOFFICIAL-i9100.zip
[Galaxy S II Android Development] bersem:
[MENTION=2222292]rINanDO[/MENTION] thanks

Works fine
[Galaxy S II Android Development] michelrs:
I downloaded TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip again and the result is the same
[Galaxy S II Android Development] rlawoehd187:
Thanks for your great works.

But I found one problem...

This is deadly to me.

If I install this ROM after booting, the system will stop and my phone will be rebooted continuously...

Currently, my phone is out of communication module and it seems to be a problem since 8.0 version
[Galaxy S II Android Development] rINanDO:
Are you able to get a logcat or kernel log?
[Galaxy S II Android Development] guest4711:
Did you perform a clean flash (wiping system, dalvik, cache and data)?
[Galaxy S II Android Development] rlawoehd187:
I have a lot of error codes on my phone...

There is too much of a log to post to a post.

I'm sorry, but can you give me your email address?

Thnks:o

---------- Post added at 06:24 AM ---------- Previous post was at 06:15 AM ----------

Of course I tried everything I tried. I did not work with xda but I have basic Android common sense.

I am now embarrassed ...

I do not see anyone who has the same problem with me ...

I'll try to ask the forum as you said.;)
[Galaxy S II Android Development] bersem:
Battery discharging overnight since last build. Can anyone confirm?

Thanks
[Galaxy S II Android Development] xdalurker1:
Please add this to fix radio problem

driver Si4709_driver.so lives in /vendor/lib/modules/ on this and previous 9.0.0 releases, but FM radio app spiritF expects it to reside in /system/lib/modules

Would it be possible to have a copy of the driver in that directory so that every time a new release is published there would be no need for this script that I wrote:

tsudo
/system/bin/mount-o remount,rw /system
mkdir /system/lib/modules
cp /vendor/lib/modules/Si4709_driver.so /system/lib/modules
/system/bin/mount -o remount,ro /system

Thanks again for all your exceptional work!
[Galaxy S II Android Development] snsnse:
Coming from emulated storage, what would be the appropriate lanchon-repit command/file name for reverting back to stock rom partitioning? I tried

lanchon-repit-XXXXXXXX-system=0.5G-data=2G-sdcard=max-preload=0.5G+wipe-i9100.zip

but that gives me an error "the new partition size is estimated to be too small to hold the current contents of the file system by 681 MiB".

I tried this using official twrp 3.3.0, not TWRP 3.1.0-EMU-MIGRATION-M-20170318. Any hints are much appreciated.

Thanks a bunch!
[Galaxy S II Android Development] :
You would probably need to format all partitions and then try Lanchon's repit
[Galaxy S II Android Development] preclix:
baterry drain overnight me too. And in previous build some installed apps got lost. (firefox and more) after new install via google play, everything back (tabs, history etc.). Maybe an emulated storage error?
[Galaxy S II Android Development] snsnse:
Ah, yes, I assumed a stock repit would wipe all partitions anyway, but I see now that this only applies to preload.

Thanks!
[Galaxy S II Android Development] SethGeckoXDA:
Had this problem on LineageOS-14.1 with F2FS partitions. Do you use F2FS or ext4?
[Galaxy S II Android Development] hagadus:
Only one CPU (core) works ( cpu- z )!!!? Whats wrong? The Remix Oreo build works with two core! this build works fine otherwise :) thx !
[Galaxy S II Android Development] c4st:
Thank you very much for your work ! I have a question/request. In your 8.1 ROM the menu and back keys were glowing if one had unread messages. Does that function still exist in this ROM or can it be implemented ? Cheers.
[Galaxy S II Android Development] hagadus:
I'm not a programmer. cheers too.
[Galaxy S II Android Development] Pedro_paul:
Good rom! Works fine but have some lag....version 5/11
[Galaxy S II Android Development] johngraber:
For Build #12 2019-5-11,

lineage-16.0-20190510-UNOFFICIAL-i9100.

WiFi HotSpot works and connects, but after continuously downloaded 1800 MB there is no Internet on the connected laptop.
[Galaxy S II Android Development] rINanDO:
You mean BLN. Hmm I don't know yet. I will check this. It probably broke.
[Galaxy S II Android Development] rINanDO:
Nothing is wrong. It is selinux blocking CPU info for untrusted apps.
[Galaxy S II Android Development] cikenkari:
my review:

I just bought new battery to ressurect my i9100 into this PIE. hooray!

it is so nice to have PIE on this ancient device, but using gapps make the phone unuseable as it very slow (i can survive with no google).

the status bar icon of airplane mode and wifi cannot show together as it combine as a dot.

There are two Gestures menu on the sub of System.

Display seems less contrast or it maybe sign of deteriorate of my lcd.

Charging is very slow (this might be due to new battery, i dunno)

Thanks
[Galaxy S II Android Development] anon1811:
I flashed the latest build following the instructions and was surprised how smooth Android 9 runs on the S2. If I find any bugs (so far none!), I will report them here. Thanks a lot [MENTION=2222292]rINanDO[/MENTION] and all contributers!
[Galaxy S II Android Development] lallolu:
That is a battery killer.
[Galaxy S II Android Development] dkgr_ser:
I wouldn't say so! It drains battery in case it is implemented using a wakelock, by keeping the CPU awake as long as the LEDs are on. Otherwise, the things that consume energy are only the LEDs themselves and I highly doubt that some mW of energy consumption could even be noticed.

However, I would like to ask if its viable to use the phone with this android PIE ROM. I mean with GApps, Facebook Light, Viber, Instagram etc. installed, as a normal every day device. I'm currently using Dirty Unicorns ROM based on android 6.0, and I ask because it's going to take several hours to repartition and reinstall everything just to try. If it doesn't even worth the try, I won't.
[Galaxy S II Android Development] 0bex:
Thanks for this great ROM. I'm using it on my primary phone.

However, I can't share files via USB cable or tether to my computer. I get an IP address but I can't reach Internet.

I also have tried to install an FTP server and I can connect and list files over wifi, but I only get zero sized files.

Do you have any suggestions?
[Galaxy S II Android Development] sajjads24:
hi

how install TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip on i9100 ?

please help me
[Galaxy S II Android Development] SethGeckoXDA:
Which recovery do you currently use?
[Galaxy S II Android Development] DevisG79:
So, my heart is broken. I drained the battery. Now I can't charge it anymore. I tried 4 different batteries. No one charges. I assume it's not the battery. I can't get the device to boot. What to do now?
[Galaxy S II Android Development] sajjads24:
i am installed twrp-isorac 3.1 for los 14.1 now from this guide :

https://xdaforums.com/galaxy-s2/help/guide-tutorial-samsung-galaxy-s2-i9100-t3538601

so how install twrp-emu-migration 3.1 for los 16 ?

Is there a difference between twrp-isorac and twrp-emu-migration ?
[Galaxy S II Android Development] DevisG79:
First you have to install twrp-emu-migration 3.1, then you have to repit to 1,5 GB System partition. Read the first page. [MENTION=2222292]rINanDO[/MENTION] has explained all perfect on how to migrate to LOS16.
[Galaxy S II Android Development] SethGeckoXDA:
Download twrp-emu-migration linked in OP (either directly via phone, or via PC + copy to phone via USB), remember where you put the file. Reboot to recovery. Go to "Install" and find the twrp file you downloaded. Install it and proceed with installation as mentioned in OP.
[Galaxy S II Android Development] sajjads24:
1. Boot into recovery.

2. Install TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip from "Micro SDCard".

i have problem with step 2 from first post TWRP 3.1.0-EMU-MIGRATION not install for me !?

---------- Post added at 12:53 PM ---------- Previous post was at 12:52 PM ----------

1- i am copy twrp-emu-migration on external memory and install stock rom 4.1.2 on i9100 and go to stock recovery mod and install twrp-emu-migration from external memory but show error and not work!

2- i am install philz recovery on i9100 after install twrp-emu-migration but show error and not work !

3- i am install CWM recovery on i9100 after install twrp-emu-migration but not work !

4- i am install twrp-isorac 3.1 on i9100 after install twrp-emu-migration good install and not show error but after reboot not work !

please help me just for install twrp-emu-migration step by step or send guid link ?
[Galaxy S II Android Development] DevisG79:
[MENTION=6239019]sajjads24[/MENTION] You are probably doing something wrong.

You have to be on isorec kernel and then you can install twrp. Kernel is included in lineageos 14.1 rom. I would recommend you to read this https://xdaforums.com/galaxy-s2/help/preparing-clean-loss-data-installation-t3712409

If you succeed with that than you can go on with Los 16.
[Galaxy S II Android Development] sajjads24:
i am install LOS 16 on i9100 with TWRP-3.1.0-0-recovery-the.gangster-IsoRec-i9100.zip it's work fine for me.:):good:
[Galaxy S II Android Development] DevisG79:
I don't think the recovery you mentioned is for emu storage or am I wrong!?

So, how have you been able to flash LOS16?
[Galaxy S II Android Development] linusdan:
It will work with [MENTION=6005084]ripee[/MENTION] builds.

Otherwise, bootloop says hi.
[Galaxy S II Android Development] ripee:
That's correct. The official twrp does not support emulated storage because most roms do not support it. I run lineage builds without emu storage that work with the official twrp, just to play around with my old i9100.
[Galaxy S II Android Development] Edhuin1:
Flashing works fine for me on the latest twrp version, 3.3.1.0, using rINanDO's builds.
[Galaxy S II Android Development] Klaerchen:
Works suprisingly good!

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

today I installed your LOS 16 for i9100, and it works surprisingly good! Your description for the necessary preparations (re-pit, formatting, installation etc.) was perfect, there was no trouble in following all steps. Thanks a lot for this great piece of work!

So far I did not see anything broken.

I have a little problem, when I connect via USB to the PC (Windows). The PC recognizes the i9100 at once, but only the charging mode is active. And there is not the usual hint in the status bar about changing from charging to file transfer.

After I changed the default USB mode in the developper settings to "file transfer", then both SDcard (internal, external) are accessible from the PC.

So, do you have an idea, how to bring forward this hint in the status bar? It's only nice to have! It's not a security issue, because when USB is connected to the locked phone, then only charging mode is active. Only after unlocking, the mode changes automatically to file transfer.

Have a great time,

Klaerchen
[Galaxy S II Android Development] rINanDO:
Hi Klaerchen,

Nice to hear the ROM is working fine. The hint in status bar is indeed missing. I didn't check this how it worked in previous versions of Android. I don't customize LOS. Just trying to go with their flow to keep this old device working. Hopefully someone fixes this common issue in LOS.
[Galaxy S II Android Development] msh2050:
---------- Post added at 11:23 PM ---------- Previous post was at 11:21 PM ----------

[/COLOR]

I will try this guide because if I Install TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip from "Micro SDCard".from "Micro SDCard" then rebooting to recovery will give me black screen
[Galaxy S II Android Development] rINanDO:
New build is up!

Nothing really done, just updated sources.

Build #13 2019-6-11

IMPORTANT: You need to migrate to emulated storage using TWRP 3.1.0-EMU-MIGRATION-M-20170318

See opening post for detailed installation instructions.

Overall state: Stable

Android build: 9.0.0-r40

Updated sources

Known issues:

None (But that can't be possible) Please report :)

Downloads:

TWRP 3.1.0-EMU-MIGRATION-M-20170318.zip

lanchon-repit-20170115-system=1.5G-data=max-sdcard=min+wipe-preload=min+wipe-i9100.zip

lineage-16.0-20190611-UNOFFICIAL-i9100.zip
[Galaxy S II Android Development] hagadus:
Wow, New build. Fine, thx!
[Galaxy S II Android Development] JaLoou:
Hello.

Please, let someone check seriously a sound saved by the camera at videorecording with this custom ROM.

It records a stereo sound to a video with left and right channels provided correctly?
[Galaxy S II Android Development] zookh:
I installed the latest build. Recorder app crashed when recording audio. Also Whatsapp voice call is not working as it crashes upon connection.
[Galaxy S II Android Development] rINanDO:
Can't reproduce this. Both apps are working on my daily drive phone. Please provide a logcat.
[Galaxy S II Android Development] rINanDO:
I think it is a common recording issue. Possibly driver issue. I tried wave editor app to record something in stereo (which records in stereo on s7) and it records in mono even when stereo-option is enabled.
[Galaxy S II Android Development] js-xda:
I moved today via clean install and the manual provided in the OP to [MENTION=2222292]rINanDO[/MENTION] LOS 16.0 build (20190611) and, so far, I am pretty happy with it. It took me ages to get a ROM onto the device which was not corrupted. But it worked in the end.

Just for information: I can confirm this behavior but I am fine with the workaround as I require USB file transfer only seldom.

I can't reproduce either. Quality is not perfect but it records.

Two other observations linked to the move from LOS 14.1 to 16.0:

Funny enough, LOS claims that I could use LTE ... where I am pretty sure the device is missing the right hardware to do so. ;) Also GSM Arena supports the hardware aspect. But I am using anyway WiFi only.

I am pretty sure that LOS 14.1 used only 2,4 GHz WiFi while it is now connected via 5 GHz - nice!
[Galaxy S II Android Development] JaLoou:
Thank you for the answer.

But sorry you are wrong due to it is not a common issue.

For instance, Galaxy S2 with the latest original Samsung's firmware (Android 4.1.2) records a stereo sound with left and right channels provided correctly to a video.

Samsung has open published its code sources (include drivers) for GT-I9100P. May it can help.

Please, fix the issue with a correct stereo sound recording to a video in your ROM.
[Galaxy S II Android Development] js-xda:
As mentioned above, I moved today to LOS 16.0 and tried actually first to use your build and the newest TWRP 3.3.1. The later worked fine but I could not manage to flash either of the two June builds (20190614/20190615). Both gave me - with multiple attempts to transfer the file to the device - the below error:

Failed to map file: /.../lineage-16.0-20190615-UNOFFICIAL-i9100.zip
Flashing zip failed.

As this error is different from the one when the MD5 is not OK, I assume it could be a different reason but not sure. Could you maybe provide also MD5 of your builds to ensure that the downloaded one is at least the one that you provided? Would you have any other clue what could be the cause?

Also, if I would want to move from rINanDO's build with emulated storage to your's, what is from your point of view the "right" PIT file?
[Galaxy S II Android Development] ripee:
The official TWRP does not support emulated storage because most roms do not support it either, and I was going for as much universality as possible.

You can use any pit file you wish, but I used the 20170115 lanchon repit zip with this file name: "lanchon-repit-20170115-system=1.5G-data=5G-sdcard=max+wipe-preload=min+wipe-i9100.zip". This gives you around 8GB of internal storage (for user files) and the rest for apps.

To try my builds, extract the boot.img file from the rom zip of any one of my builds, flash the official TWRP from within the emulated TWRP, reboot recovery, flash boot.img into the Boot partition, then flash the rom zip as normal, along with any gapps package you wish. Wipe cache and dalvik if you wish as well to avoid any bootloops, then of course reboot system.

To go back to rINanDO's builds, just flash the emulated TWRP as per his instructions.
[Galaxy S II Android Development] js-xda:
Thank you for the prompt and extensive response!

That was clear to me - I used also your TWRP with your build and respectively the ones provided by rINanDO.

OK, I missed the part about the boot.img - keep forgetting that the S II is kind of special compared to more modern devices.

And I guess, I need to change here again the boot.img with the one that I used already for LOS 14.1 and have still installed at the moment therefore.
[Galaxy S II Android Development] zookh:
Did a fresh install and the issue is gone. Thanks.

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

I want to reduce brightness level especially for night mode, it is not low enough. Even I disabled Auto brightness and moved the slider to lowest position but it won't dim enough which is a strain especially at night. Daytime brightness is okay.
[Galaxy S II Android Development] Hubalu:
Switching mobile network disables SIM card

Hi and thank you for this awesome build for our good old S2.

It works very well, I just face one issue that was already present on LOS 15.1.

If I manually select the mobile network, the settings app resets to the main activity of the app and my SIM card is locked (latest at the second attempt).

Any ideas why this happens?

On LOS 15.1 I had the issue that after a network search, an empty list is shown although I was in reach of several networks.
[Galaxy S II Android Development] c0d3r!pp3r:
Hey Buddy,

Can you please let me know from where you have found a battery? My phone is rock solid, only 1 small dent that's not even visible and no broken screen... Never bricked... So i'm wondering to give it a new life with new battery..

P.S.: i'm running pie build 9 by rINanDO.
[Galaxy S II Android Development] rekotc:
I got the last two ones at quality cellular parts dot com, they've been working nicely. You could give it a try :)
[Galaxy S II Android Development] rINanDO:
Hi,

I can reproduce the error. The cause is probably due depricated ril-commands. I need to innvestigate which one exactly and try to implement a workaround in HAL.
[Galaxy S II Android Development] vidara:
Encrypted device

If your device was encrypted prior to following the installation steps in OP you might run into some issues like I did. You'll notice if your device was encrypted if you get asked to enter a passphrase when entering TWRP even after a factory reset. What fixed it for me was flashing the official TWRP and then do a factory reset. After this the instructions in the OP worked fine for me.

Vidar
[Galaxy S II Android Development] Brollo:
Hi,

I got it now working on my s2.

But its pretty laggy. Any idea what i did wrong?

Cheers
[Galaxy S II Android Development] chello123:
Trobles with during installation TWRP.zip - Status 7

Hello, I'm trying to upgrade from stock rom 4.1.2, build number: JZO54K.I9100XWLSD (stock XEZ without ROOT) to LineageOS 16. Unfortunately, I am not successful during TWRP installation. I still same mesage:"This package is for "galaxys2,i9100,GT-I9100,GT-I9100M,GT-I9100P,GT-I9100T,SC-02C" devices: this is a "". E:Error in /tpm/sideload/package.zip (status 7)

If I try to remove a code section by this procedure, I get a "E: singnature verification failed" error

https://xdaforums.com/showthread.php?t=2522762

Anyone have ideas? Thank you for reply
[Galaxy S II Android Development] pocketrule:
Are you trying to flash TWRP from stock recovery? That won't work. Fastest way is to flash TWRP from a computer with Odin.
[Galaxy S II Android Development] chello123:
I tried with (rooted) CWM recovery, installation complete but no effect after restart. Odin only works with * .tar files. I tried older version of twrp-3.1.0-0-i9100.img.tar with *.tar package. After start in Odin with error "Complete (write) operation failed". Should I use a different installation method or another root ?
[Galaxy S II Android Development] samarium:
I don't know anything about using Odin, I've used heimdall command line in the past instead.

If you are loading a recent twrp img, then you will also need an recent boot img since iirc twrp will be isorec requiring compatibile boot img.

after you have loaded them both then boot into recovery and run the launchon repit script, possibly from ext sdcard which will probably complain and relocate to /tmp, from which you will have to rerun from that location

then I would reboot into recovery again, wipe system and format data, and then install latest i9100 pie rom.

if that boots OK then flash gapps if required
[Galaxy S II Android Development] Hubalu:
I managed now to register with the network that I like (I live close to the border and the phone always wants the foreign network).

Now I'm in the manual mode but everytime my phone restarts, the SIM card is blocked.

Maybe this helps you as it may be easier to detect the wrong command at start-up.
[Galaxy S II Android Development] pocketrule:
How do you restart? You should restart directly in recovery. If you restart normally, it could happen that the rom overwrites the recovery with the stock ROM again.
[Galaxy S II Android Development] chello123:
Hello, I understand, install from zip sdcard it need root. I have two phone i9100. First I tried with CWM 6.0.1.2 and second CWM 6.0.5.1. Yes I tried restart recovery in advanced directory. I progressed by this video tutorial

youtube.com/watch?v=PIYA2r87V6s

But still same, no effect to both phone. Still included CWM after restart to recovery.

I tried repete Odin with this tutorial

droidthunder.com/root-install-twrp-recovery-galaxy-s2-i9100

I used the attached files: twrp-3.1.0-0-i9100.tar.md5 and used Odin3 v3.12.7.

But still same error "Complete (write) operation failed"
[Galaxy S II Android Development] sajjads24:
hi

can i video rec via camera with x264 & x265 codec on lineage 16 ?

i need camera mod foe x264 & x265 for lineage ?
[Galaxy S II Android Development] sajjads24:
hi

call recorder not work !

how fix call recorder ?
[Galaxy S II Android Development] rINanDO:
Thanks for your input. If you mean the speaker is not recorded, only your voice you are right. It is a driver issue which I not understand.