yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] Catfish78:
Hello,

there are some alternative stores. If you find out how it works without, you won't really miss gapps i think.

Regards
[Galaxy S II Android Development] leitefresco:
Hi

1. What Open GApps did you install?

2. Does your GPS works with Waze or do you need to to have installed Open GApps?

Thanks
[Galaxy S II Android Development] rickmar:
Hi,

I installed GAPPS (nano). No I didn't installed Waze whatsoever.

The battery drains just by leaving the phone with screen of...

NOTE: can't install AMPERE (not compatible with S2)

Regards
[Galaxy S II Android Development] rINanDO:
Hey everyone,

It has been a while but I have updated LOS 16.0 for our ancient phone. No changes but only updated sources and patched kernel image for Magisk v20.3. I was quite busy getting RIL stable in LOS 17.1.

Build #21 2020-03-20

Overall state: Stable

Android build: 9.0.0-r46

Required recovery: TWRP 3.3.1-1

- Updated sources

- Updated boot-image for Magisk v20.3

Known issues:

- Call recording only records microphone

Please report if there are more issues.

Downloads

i9100-LOS-16.0-Emulated-Storage.pit

i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5

i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.img

Download LineageOS 16.0 SU (arm) addon/removal here

lineage-16.0-20200320-UNOFFICIAL-i9100.zip

lineage-16.0-20200320-UNOFFICIAL-i9100_boot_magisk.img
[Galaxy S II Android Development] :
So This is the last update(EOL ) of this rom?
[Galaxy S II Android Development] Kongedam:
why do I not have any google apps, I have installed ARM 9.0 stock
[Galaxy S II Android Development] rINanDO:
No, I will update the ROM monthly, but focus on issues on 17.1 to get it stable as LOS 16.0.
[Galaxy S II Android Development] leitefresco:
[MENTION=2222292]rINanDO[/MENTION]:

Hi

Build #21 with open_gapps-arm-9.0-pico is working fine.

I only have a problem with GPS... I am unable to make Waze work.

I must be doing something wrong!

Thanks

------------------------//--------------------------

I fix the GPS using GPS Reset COM - GPS Repair, Navigation & GPS info
[Galaxy S II Android Development] thomascito:
How do I do the repit to downgrade to android 7.1.2

Hello rINanDO,

thanks for that great piece of work. Works stable. Only thing is that everything is a bit slow.

Can you help me with the repit?

I used Odin 3.07 in the first step:

Odin hung when I repit to 2GB stockpit for Saber (https://xdaforums.com/member.php?u=5811506) and flashed TWRP 3.1.0 (twrp-3.1.0-0-i9100.img.tar)..

I went on with Odin 3.14.4:

I tried repit without flahing that gave a pass. Then I went on just trying to flash my TWPR 3.1.0-0, here resulted a fail.

----

<ID:0/005> SetupConnection..

<ID:0/005> Initialzation..

<ID:0/005> Set PIT file..

<ID:0/005> DO NOT TURN OFF TARGET!!

<ID:0/005> Get PIT for mapping..

<ID:0/005> Firmware update start..

<ID:0/005> NAND Write Start!!

<ID:0/005> SingleDownload.

<ID:0/005> RQT_CLOSE !!

<ID:0/005> RES OK !!

<ID:0/005> Removed!!

<ID:0/005> Remain Port .... 0

<OSM> All threads completed. (succeed 1 / failed 0)

<ID:0/005> Added!!

<ID:0/005> Odin engine v(ID:3.1401)..

<ID:0/005> File analysis..

<ID:0/005> Total Binary size: 7 M

<ID:0/005> SetupConnection..

<ID:0/005> Initialzation..

<ID:0/005> Get PIT for mapping..

<ID:0/005> Firmware update start..

<ID:0/005> NAND Write Start!!

<ID:0/005> SingleDownload.

<ID:0/005> recovery.img

<ID:0/005> FAIL!

<ID:0/005>

<ID:0/005> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)

---

Thanks for your reply, kind regards,

Thomas
[Galaxy S II Android Development] Mark-Weiss:
Nandroid Backup settings

Hi there,

What are the correct settings please

I tried to Restore awhile ago and lst the lot.

I have v9.0.0 by rINanDO installed.

EFS - No ?

Boot - Yes

Recovery - N ?

Cache - N

System - Y

Data(excl storage) - N

Misc - N

Non-emulated Storage - N ?

Thanks.
[Galaxy S II Android Development] rINanDO:
Hi Thomas,

I'm not sure what you want to do. Back to stock?

Regards
[Galaxy S II Android Development] rINanDO:
You mean restore via twrp? Normally system and data should be enough. Clean cache.
[Galaxy S II Android Development] Mark-Weiss:
Installing Magisk onto v9.0.0

Hi rINanDO.

Thanks for your TWRP Backup settings.

I'm having trouble working out the exact procedure for installing Magisk onto my s2.

I tried the standard way at...

>> how-to-root-samsung-galaxy-s2-i9100-in-2019-easy-guide/ (was a link here, but XDA didn't like that??)

No success there.

I've located your scripts at

>> /android_device_samsung_galaxys2-common/

I've worked out what a Terminal Emulator is.

That it follows old DOS style commands.

Back in the 1980s i used to know all that.

I get to the right directory and ran the shbootimg_magisk.mk script.

Then the prompt changes to #

No idea what to do next.

No idea if this is totally the wrong track.

I lot of people refer to edits at..

>> android_device_samsung_galaxys2-common

I have no idea on that page?

Only that it seems to highlight code updates.

No info on imprementation.

Have i missed a page that explains it all?
[Galaxy S II Android Development] rINanDO:
I explained it globally in LOS 16.0 forum but not in detail. You don't have to run the script unless you want to build the ROM yourself from scratch and build a kernel (zImage) with the Magisk-modified ramdisk integrated on top.

Normally you flash the LOS-17.1.zip and flash the Magisk_boot.img on top in TWRP. Reboot and install the MagiskManager.apk (from Magisk site) and your all set.
[Galaxy S II Android Development] thomascito:
Hello rINanDO,

I was trying to go back to the original partitioning, as you described in your post, but I did no know how.

Finally I resolved it using ODIN with a i9100-stock.pit and a stockrom-tar-file I found in one of the archives.

Afterwards I flashed crDroid 3.6, which now works very smoothly.

Thanks for your efforts!
[Galaxy S II Android Development] hulahala:
Will there be a fix to have Widvine DRM working? In LOS14.1 it was OK
[Galaxy S II Android Development] aversa0791:
Problem with the modem, Internet

Dear rINanDO!

Thank you for the wonderful firmware! I installed Build #21 2020-03-20. As on the firmware Build #14 2019-07-07 there is a problem with the modem, poor Internet connection. I tried different modems XXMS2, XXMS3, XXLS6, XXLS8, XXLS9, XXLQ6, but the pages in the browser do not load periodically, although there is an H+icon. What is the solution to this problem? I have read various forums, but have not yet found a solution to the problem. Maybe someone here has already found a solution to this problem? I live in Russia. Sorry for the English, I use a translator.
[Galaxy S II Android Development] :
A newer version of android pie is out(r54).

Pls update the (last update)pie rom.

Thanks.
[Galaxy S II Android Development] rINanDO:
I never focused on drm. Which apps working fine using drm in LOS 14.1?
[Galaxy S II Android Development] rINanDO:
Hi, in the past I had this also with my provider. I had to remove the IP proxy in the APN settings if I recall correctly. I hope this helps.
[Galaxy S II Android Development] aversa0791:
I tried different providers. I didn't find the IP proxy in the APN settings. Where is the IP proxy configuration located?
[Galaxy S II Android Development] rickmar:
Root S2 LineageOS 16.0

Hi there,

can anyone tell me how do I root my S2 with LineageOS rom in it?

I only remember years ago rooting my device using SU and all that, but i've revived the S2 and don't know how it works now :P

Thanks in advance

Rick
[Galaxy S II Android Development] hulahala:
e.g. joyn (Streaming app with live TV), or in Kodi there are a few addons wich require DRM.

DRM Info and PhoneInfo can be used to Show the actual state of DRM levels
[Galaxy S II Android Development] Balthazar22:
Install as per the instructions on the first page, then use Magisk - just search XDA for topjohnwu. :)

(PS. stick to the links from the XDA thread, don't use any websites of the same name, as they're not from the developer!)
[Galaxy S II Android Development] rickmar:
Thanks for the response. I look in first page and got to the links: Download LineageOS 16.0 SU (arm) addon/removal here and lineage-16.0-20200320-UNOFFICIAL-i9100_boot_magisk.img

My questions are:

1 - should I flash the SU addon?

2 - or the Magisk image boot? which one? Magisk or SU (or both?)

3 - If I flash SU addon then can it be removed as well, if I want?

or i'm getting this wrong?

Thanks,

Rick
[Galaxy S II Android Development] guest4711:
The su-addon does not work on this version so don"t flash it. Flash Magisk Image boot.
[Galaxy S II Android Development] rickmar:
Ok. so just flash it normally in TWRP right? just for curiosity theres is a way to unroot? or just flash again the ROM?

Thanks :)

Rick
[Galaxy S II Android Development] guest4711:
To unroot flash the ROM (dirty).
[Galaxy S II Android Development] speedjoe24:
installing Build #21

... only 1 problem: I was unable to install GApps because it goes into "loop boot" the first time it is turned on. I solved it by installing "NanoDroid-microG-22.6.20200208". Everything works. Thanks a lot Rinando.
[Galaxy S II Android Development] Little Rooster:
some issues ...

Again I want to post some issues which are not mentioned in the discription:

1. HDMI out doesn't work. (There is no output signal.)

2. System integrated Cast to chromecast (screen mirror) doesn't work. (It connects to chromecast and in the same second it disconnects.

3 Chromecast streaming in integrated ChromeBrowser doesn't work, too. (very improtant!!!)

4. In some Apps the ChromecastButton even doesn't show upB] (in most 3rd party app it's working fine)

6. When powered off and connected to AC, problems to boot. (It always changes between original green battery logo and new white battery logo, but doesn't boot.)

7 Sometimes, when powered off and then connect to a charger the device starts booting.

8. Error message "system UI stopped". (after boot, or when waking up the device)

9. Sometimes the screen keeps black (but is on) after boot. (I think the UI keeps sleeping)

10. Proximity sensor does not work for my 3rd party apps. (works only with system phone app)

11. A lot of downloads in the background. I don't know what it is (not Playstore app updates) but it slows the device down.

13. Badges Counter doesn't work on Email / WhatsApp etc. (I am using Nova Launcher, I don't know if it works with the integrated Launcher)

My Recommendations / solved issues:

5. huge battery drain when powered off (tested on three S2)

12. "Find my device" admin rights re-enable itself.

1. I have disabled all "Google emergency services" with the app "Servicely"

Since then issue No 5 +12 seems to be solved (pico Gapps are installed)

2. I have installed Universal GMS Doz. (An alternate way to stopp Google service wakelocks)

3. I have uninstalled around 20 useless system apps. (I'm not sure which of these apps are from the System, and which maybe came with pico Gapps)
[Galaxy S II Android Development] d_borghi:
hi all,

i've installed this good rom 1 week ago.

all works well, but it's lagging very much. it's normal, do you find this too?

is there any solution?
[Galaxy S II Android Development] Little Rooster:
I have disabled all energy managing options. This helps mostly. But some times it's still lagging for a few while after waking up., or when any invisible unknown downloads going on in the background.
[Galaxy S II Android Development] arntgur:
Back and recent-apps not working on a single click.

- lineage 16.0, Android 9, April 19, 2020

- S5 SM-900T

Filed more details on the ticket: https://gitlab.com/LineageOS/issues/android/-/issues/781#note_331424907
[Galaxy S II Android Development] danny3458:
Is there a way to install magisk in this rom?
[Galaxy S II Android Development] TriboDoP:
By flashing the.. ........ boot_magisk.img from the downloads in op?
[Galaxy S II Android Development] niccokunzmann:
Hi, I am using the 20191006build and it works fine since. Recently I Trier Bluetooth and it alwas switches oft again. I think, I can try updating the system to the lässt image and try again it Bluetooth works. I do not really know how to debug this, yet. I could look into that, too. BTW I write this from may GT-I9100 ;)
[Galaxy S II Android Development] danny3458:
Thank you! I missed that file! :D

By the way. This rom is very good (I'm using pico gapps), but I have got a problem login in the facebook and messenger app.

I've received this error: "RuntimeException: Failed to local inject class with binding ID....." when I tried to login to my facebook account. I'm not using any sim card in the phone.

I also didn't tried facebook lite. I guess I'm stubborn and I want to know if this antique phone can handle such a big app like facebook in this rom. :D

---------- Post added at 04:09 PM ---------- Previous post was at 03:46 PM ----------

I flashed that img file which replaced TWRP recovery with another recovery. When I try to update it will make me do it from adb and there is no magisk module in the system apps. Is there a method on how to use that recovery to install magisk?

---------- Post added at 04:52 PM ---------- Previous post was at 04:09 PM ----------

Which magisk zip file should I use with the the "boot magisk recovery" image? I tried to flash through that recovery menu a lot of magisk zip file versions but all ARE UNSIGNED and it wouldn't flash. Is there a signed or custom magisk zip file for that recovery menu?
[Galaxy S II Android Development] danny3458:
Nevermind, that magisk image had to be installed from TWRP as an image to the boot partition, not the recovery as it is mentioned in the file name. I found that by my self. Magisk is fully functional right now! :D
[Galaxy S II Android Development] TriboDoP:
Thats fine!
[Galaxy S II Android Development] rINanDO:
Thanks, I just fixed drm in LOS 17.1.
[Galaxy S II Android Development] hulahala:
Are you going to fix it in LOS16 as well?
[Galaxy S II Android Development] rINanDO:
Yes eventually, but I'm focussing on LOS 17.1 and it gets pretty stable now.
[Galaxy S II Android Development] elsd78:
GPS wakelocks

Hi rINanDO et al,

Thanks al lot for your great work ! I am having Pie on the S2 after all these years...

And it works like a charm. Running smoothly without GApps, but with microG instaead. Even FM radio is working through spiritFM2.

Meanwhile I encountered a strange behaviour related to GPS and battery drain.

According to battery monitor apps like Gsam, the CPU is prevented from going into deep sleep by tons of wakelocks from "GnssLocationProvider". They occur almost every second and are keeping the CPU utilisation up to 100 %. The strange thing is that this only occurs after having used GPS for the first time after reboot. After having a location fix, the GPS appears to run all the time, even with location switched off. When a GPS monitor app like GPSTest is used at this state, it shows active but greyed out satellites all the time, but no position. After switching location on, the position is provided without any delay (as long there is sufficient reception).

I remember that the SIRF IV GPS was promoted with a special power saving 'always on' mode. In this mode it tracks satellites contiuously in the background at low power. This matches to the present behavoir. The problem is the wakelocks, draining the battery in a few hours. I tried to block the wakelocks with Wakeblock, but the CPU utilisation still remains. Sometimes the phone crashes and reboots. At present, the only workaround is to reboot the phone (sometimes even with taking out the battery) to reset the GPS. Then the wakelocks are gone until the next use of GPS.

I wonder if there is any workaround for stopping the process causing the wakelocks or even reset the GPS receiver at runtime. I tried several parameters in sirfgps.conf and gps_debug.conf without success. I tried fresh and clean installations (with magisk only) on two i9100 devices. With or without SIM. Same story.

Do you have any ideas ?

Regards
[Galaxy S II Android Development] rINanDO:
Thanks for this important information. I didn't know this about Sirf. I will check this behavior.
[Galaxy S II Android Development] nuwandai9100:
Will the "Upgrade from Samsung stock ROM to Build #14 and higher using ODIN 3.07" upgrade work with any ROM based on a stock ROM? I have JellySnap v7.0 installed which is based on stock.

https://xdaforums.com/galaxy-s2/dev...rak47-16-02-14-jys-r-v7-0-2themes-bz-t2483709
[Galaxy S II Android Development] migo1979:
Hi, if you follow the instruction then it should work. I had problems with the pit file but I found a working 1.5 6 GB pit file.

First of All THANKS FOR THE GREAT ROM... That is the first custom ROM for me which runs pretty stable and a special kernel is also available!!!

I have a problem to install MicroG with working paid apps function. Can somebody help me and write a short description in which order I have to install it, please?

I want to use the ROM with magisk+MicroG(working paid apps)+custom kernel...:good:
[Galaxy S II Android Development] migo1979:
Hi,

I've improved my battery life by undervolting the CPU. I did benchmark tests for each voltage (not 100-300MHz) and for me it's stable now. Usually it should not make a big difference but I've the feeling that there is a BIG difference now and I'm really suprised. Before the phone was sometimes empty over night but now it's great. Maybe it was caused by too high voltages...

By the way, in TWRP the CPU temp was increasing to ~55°C and higher... Could it be that the CPU settings in TWRP are not okay?

If somebody would like to test it, here are the parameters (values in round brackets are the default kernel values):

1400MHz - 1280mV (1325)

1300MHz - 1230mV (1300)

1200MHz - 1180mV (1275)

1100MHz - 1145mV (1225)

1000MHz - 1110mV (1175)

0900MHz - 1075mV (1125)

0800MHz - 1040mV (1075)

0700MHz - 1005mV (1025)

0600MHz - 0970mV (1000)

0500MHz - 0935mV (0975)

0400MHz - 0900mV (0975)

0300MHz - 0880mV (0975)

0200MHz - 0860mV (0950)

0100MHz - 0860mV (0950)
[Galaxy S II Android Development] Catfish78:
Hello,

how did you do it? With laptops, undervolting does increase the battery running time, too. And much less heat. Most of the machines have to be tested again and again for the lowest possible voltage settings, because of tolerances in cpus. So i think this will be the same here, too, for minimising power usage. The left lifespan of our ancient phone could be more than under standard circumstances.

Thanks and regards
[Galaxy S II Android Development] migo1979:
Hi, I'm using TALU's LOS16 Magisk Kernel...

https://xdaforums.com/galaxy-s2/development-derivatives/talus-custom-kernel-lineageos-16-0-t3996021
[Galaxy S II Android Development] Lucas_Skyline:
Hi guys, I need some help to go back to Stock 4.1 or any Rom running Android before 6 (maybe CyanogenMod 13). Root is very important, but I guess I can have it on both. Some questions for the easiest way to do it:

1. Do I need to repit for stock?

2. Do I need to repit for Cyanogen 13?

3. Is there an easy way to format data/system and just flash any Android 5 or 6 Rom on top of this one?

4. Is there an easy way to format data/system and just flash any Android 4.1 custom Rom, made of top of the 4.1 stock (like JεℓℓySℵα℘ ROM in this forum)?

Thank you all so much!
[Galaxy S II Android Development] Darksilencio13:
Hello Lucas_Skyline, i've also tested LineageOS 16.0 (it worked very well), but because of the bad battery life, i followed this tutorial to reinstall the stock rom 4.1.2 : https://xdaforums.com/galaxy-s2/help/guide-tutorial-samsung-galaxy-s2-i9100-t3609160

On the first page : "Update 2-2-2019: The only downside I see is that you need to repit if you want to go back to stock or CM-15.1 or less."
[Galaxy S II Android Development] bersem:
If u want the Stock Partition table so repit it to Stock. I have used on my S2 1GBsystem6GBdata Pit file with stock Rom beacuse i had to much apps. If u need more Apps to be installed so use the modified Pit file...

Yes u can Format System and data, cache and dalwik too, flash CM13 or else build with gapps, but im not sure that u need to change system file on internal storage because of emulated storage and TWRP modified for this..

To be Safe, copy your files from internal storage to PC.

Regards !
[Galaxy S II Android Development] Cj.k.z:
Can someone help me? I did everything and the ROM works fine but if I install pico gapps I get a lot of lagss everywhere and the phone heats up?? Without gapps it's perfect. Please help I need gapps
[Galaxy S II Android Development] JacobsMess:
If I try to install anything beyond Build #14 2019-07-07 I get stuck on the lineage booting screen, the image plays but nothing happens....

If I drop back to Build 14, it works again...

Also, is the repit done by means of the PIT file or is this another step?

I used the PIT file in Heimdall (working on Linux) and selected the "repartition" check box.

Sorry, I'm a bit of a noob.
[Galaxy S II Android Development] bersem:
Disable animation for better performance !

---------- Post added at 11:00 PM ---------- Previous post was at 10:56 PM ----------

Folllow the steps described in OP ! Its for everyone also for noobs. Explain what u did ( step by step ) ?

We will help..

EDIT: You have to repit and flash emulated storage twrp at same time ( together )

Regards !
[Galaxy S II Android Development] JacobsMess:
Thanks for the reply,

I'd followed the instructions on the OP but i'll outline here....

Using Heimdall on the Utilities page I select the PIT file from the OP (i9100-LOS-16.0-Emulated-Storage)

Select re-partition

Add Partition files extracted from i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar

These go to Recovery for recovery.img and kernel for zimage

Start heimdall

Boot to TWRP

Wipe - > format Data-> 'yes'

advanced wipe then wipe System, Dalvik, Cache, Data & non-emulated storage

Flash 20200320 from OP links (trying to run it without Magisk and Gapps at first in the hope that I can get it all working then add them later)

wipe cache, reboot

Just run again with fresh downloads and the bootscreen is hanging.

most recent working ROM I've got so far is 20190811
[Galaxy S II Android Development] TriboDoP:
Hi

I flashed the android 10 rom (which is the same procedure as this rom) using linux heimdall command line:

heimdall flash -- repartition -- pit emulated.pit -- KERNEL boot.img -- RECOVERY emulated recovery.img

boot.img is extracted from the rom you want to flash.

Then wiped according to the op and installed via emu-twrp the rom (from micro-sd.

Booted fine.

I hope this information will help.
[Galaxy S II Android Development] JacobsMess:
Tried this with the Magisk image file for the boot image and the TWRP image file for the recovery partition in Heimdall and it still seems to be hanging.
[Galaxy S II Android Development] TriboDoP:
Hi

Strange. And you used exactly the commands i mentioned above and flashed the emulated pitfile, the boot.img and the emulated twrp in one go?

Because this worked perfectly for me and others.

Maybe describe exactly and detailed what you do when flashing so people here can possibly help you.

Regards!

---------- Post added at 12:05 PM ---------- Previous post was at 11:46 AM ----------

Hi again i looked again at your post and read that you added some extracted pitfiles. No idea why because as mentioned just flash the downloaded emulated pitfile as it is followed by boot.img and emulated twrp recovery. Nothing else.