FORUMS

[ROM][UNOFFICIAL][10.0.0][r27][I9100] LineageOS 17.1 [ALPHA]

492 posts
Thanks Meter: 3,717
 
By rINanDO, XDA Ad-Free Senior Member on 21st December 2019, 12:20 AM
Post Reply Email Thread
Code:
/*
** Your warranty is now void.
**
** We are not responsible for bricked devices, dead SD cards,
** thermonuclear war, or you getting fired because the alarm app failed. Please
** do some research if you have any concerns about features included in this ROM
** before flashing it! YOU are choosing to make these modifications, and if
** you point the finger at us for messing up your device, we will laugh at you.
**
**/
Hi all,

This port was a hard one! In Q it is mandatory to use System-as-root. Real pain in the neck, because our S2 as a Ramdisk within the zImage... and our embedded recovery... and IsoRec recovery. Anyway, I found a way after almost about a 1000 forward ports from several kernels in 5-6 attempts in our ancient 3.0.101 kernel. It finally boots and a lot of stuff is working. So let's ship the very first build of LOS 17.0 on Samsung Galaxy S2 (i9100).

For all of these builds you NEED ISOlated-RECovery because I had to eliminate the embedded (.cpio) ramdisk-images in zImage.


Upgrade from Samsung stock ROM using ODIN 3.07
lineage-17.0-20191220-UNOFFICIAL-i9100.zip to your Micro SD-card before flashing.
Pit: i9100-LOS-16.0-Emulated-Storage.pit
PDA: i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5

1. Boot your phone into Download-mode (Volume down + Power/Standby + Home and hold for 10 seconds).
2. Start ODIN 3.07 on your PC.
3. Connect your phone via USB to your PC.
4. Press volume up on your phone, ODIN should detect your phone.
5. In ODIN:
Auto Reboot : unchecked
Re-Partition: checked
PIT : i9100-LOS-16.0-Emulated-Storage.pit
PDA : i9100-LOS-16.0-Emulated-Storage-TWRP-3.3.1-1.tar.md5
6. Press Start.
7. After succesful flash, reboot phone into Recovery:
- Press Volume up + Power/Standby + Home and hold for 10 seconds.
The phone shuts down.
- Repeat Press Volume up + Power/Standby + Home and hold for 10 seconds
Phone boots in recovery TWRP 3.3.1-1.
8. Swipe to Allow Modifications
9. In TWRP 3.3.1-1 you need to format partions
- Wipe -> Format Data -> Type [yes]
- Wipe -> Advanced Wipe -> Select:
* Davik / ART Cache
* Cache
* System
* Non-emulated Storage
-> Swipe to Wipe
10. Install LOS-17.0 + Gapps or MicroG
To prevent "Uncryption unsuccessful" error of GAPPS at first start:
- Reboot to recovery and Wipe -> Format Data -> Type [yes] again
11. Boot System

Source code:
https://www.github.com/lineageos
https://www.github.com/rinando

Current state:
Working:
- LiveDisplay
- PowerHAL
- Audio, including headset, bluetooth
- Wifi
- IMEI
- Touchkeys
- Camera Pictures
- Camera Videorecording
- Hardware encode/decoder
- Display
- Sensors
- BLN
- RIL (Phone/SMS)

Not working/know issues:
- GPS not working, is hanging on native_init (is disabled in this build)
- Display has vsync issues and glitches
- HDMI (support broken/removed since CM 10)
- Selinux is permissive
- No SU
- No Magisk
- SIM Pin on RIL is currently disabled
- RIL works fine but crashes 1 or 2 times a day.

Build #4 2020-02-11
!! NOT SUITABLE FOR DAILY DRIVE !!
Overall state: Unstable
Android build: 10.0.0-r27
Required recovery: TWRP 3.3.1-1

Changes:
- Fixed notification LED via BLN
- Disabled some crashing services
com.google.android.mdh/com.google.android.mdh.service
com.google.android.gms/com.google.android.gms.herrevad.services.Lightweig htNetworkQualityAndroidService
- Updated sources

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
lineage-17.1-20200212-UNOFFICIAL-i9100.zip

Build #3 2020-02-05
!! NOT SUITABLE FOR DAILY DRIVE !!
Overall state: Unstable
Android build: 10.0.0-r23
Required recovery: TWRP 3.3.1-1

Changes:
- Fixed RIL
- Updated sources

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
lineage-17.1-20200205-UNOFFICIAL-i9100.zip

Build #2 2020-01-12
!! NOT SUITABLE FOR DAILY DRIVE !!
Overall state: Unstable
Android build: 10.0.0-r18
Required recovery: TWRP 3.3.1-1

Changes:
- Moved to LOS 17.1
- Fixed AKM-sensors, rotation and other stuff now works
- Addressed some selinux denials (Build is still permissive)
- Reworked audio_policy_configuration.xml which fixed the following issues
Video recording audio quality
Audio to bluetooth devices
Audio to headphone/-set
- Wifi
Updated some wifi kernel patches.
Now using LOS Legacy Wifi HIDL v1.3 which fixed some connectivity 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
lineage-17.1-20200111-UNOFFICIAL-i9100.zip


Build #1 2019-12-21
!! NOT SUITABLE FOR DAILY DRIVE !!
Overall state: Unstable
Android build: 10.0.0-r11
Required recovery: TWRP 3.3.1-1

Working:
- LiveDisplay
- PowerHAL
- Audio (Speaker is working, other stuff like Bluetooth, headphone/-set not working)
- Wifi (works but unstable)
- IMEI
- Touchkeys
- Camera Pictures
- Camera Videorecording (low quality audio, possibly due audio_policy_configuration.xml)
- Hardware decoder
- Display (but with, vsync issues and glitches)

Not working:
- Rotation (not working, akmsensor is working)
- RIL (runs but doesn't work)
- GPS not working, is crashing (is now disabled in this build)

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
lineage-17.0-20191220-UNOFFICIAL-i9100.zip


XDA:DevDB Information
[ROM][UNOFFICIAL][10.0.0][r27][I9100] LineageOS 17.1 [ALPHA], ROM for the Samsung Galaxy S II

Contributors
rINanDO
ROM OS Version: Android 10

Version Information
Status: Testing

Created 2019-12-20
Last Updated 2020-02-12
The Following 68 Users Say Thank You to rINanDO For This Useful Post: [ View ] Gift rINanDO Ad-Free
21st December 2019, 12:23 AM |#2  
OP Senior Member
Thanks Meter: 3,717
 
More
** reserved **
The Following 14 Users Say Thank You to rINanDO For This Useful Post: [ View ] Gift rINanDO Ad-Free
21st December 2019, 03:06 AM |#3  
linusdan's Avatar
Senior Member
Flag Salvador, BA
Thanks Meter: 1,038
 
More
* Pretending to be surprised *
Galaxy SII: Best buy of my life!
Congratulations on your resistance to scheduled obsolescence!!!
And there I go test and collaborate with what I know
The Following 20 Users Say Thank You to linusdan For This Useful Post: [ View ] Gift linusdan Ad-Free
21st December 2019, 08:52 AM |#4  
Junior Member
Thanks Meter: 4
 
More
Where is Android 10.0 gapps I can download?
Can you give a link?
21st December 2019, 09:56 AM |#5  
FaserF's Avatar
Senior Member
Flag Munich
Thanks Meter: 2,153
 
Donate to Me
More
Wow, I wouldn't really have thought that we would ever see Android 10 on our Galaxy S2.

Great work!
The Following 2 Users Say Thank You to FaserF For This Useful Post: [ View ] Gift FaserF Ad-Free
21st December 2019, 09:58 AM |#6  
Senior Member
Flag KrakĆ³w
Thanks Meter: 1,188
 
More
Quote:
Originally Posted by roynatech

Where is Android 10.0 gapps I can download?
Can you give a link?


NanoDroid

BiTGApps - downloads

Opengapps.org - beta downloads

Test and share your insights.
It is too early for android 10 custom rom to work well with custom gapps. Maybe in the middle of next year.
The Following 9 Users Say Thank You to ze7zez For This Useful Post: [ View ] Gift ze7zez Ad-Free
21st December 2019, 11:19 AM |#7  
Junior Member
Thanks Meter: 4
 
More
I installed BitGapps, and it is working fine.
.
.
What is your build cycle for Lineage OS 17?
The Following User Says Thank You to roynatech For This Useful Post: [ View ] Gift roynatech Ad-Free
21st December 2019, 01:05 PM |#8  
Senior Member
Thanks Meter: 99
 
More
Wohoooo awesomwe
The Following User Says Thank You to bersem For This Useful Post: [ View ] Gift bersem Ad-Free
23rd December 2019, 07:55 PM |#9  
betexino's Avatar
Senior Member
algiers
Thanks Meter: 59
 
More
years ago I had traded a moto 5inch screen with a wood finition att to m'y sister's s2
This device & his xda's life is something so sweet , so many things to learn so many nice devs who spent her energi since ics , JB etc
It was and still nice to be there . so exited to boot up l17 .... Mucho gracias OP
The Following User Says Thank You to betexino For This Useful Post: [ View ] Gift betexino Ad-Free
25th December 2019, 05:13 PM |#10  
Senior Member
Thanks Meter: 77
 
More
Quote:

.
Instructions on how to build Lineage 15.1/16.0/17.0 for i9100 here
.

Thank for pointing. I try to make build according your instruction and get an error:
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f5e394a4000, 65536, 1) failed; error='Not enough space' (errno=12)

Could you, please, give me any idea how many memory I should have for building?
The Following 2 Users Say Thank You to ran000 For This Useful Post: [ View ] Gift ran000 Ad-Free
25th December 2019, 08:52 PM |#11  
OP Senior Member
Thanks Meter: 3,717
 
More
Quote:
Originally Posted by ran000

Thank for pointing. I try to make build according your instruction and get an error:
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f5e394a4000, 65536, 1) failed; error='Not enough space' (errno=12)

Could you, please, give me any idea how many memory I should have for building?

I'm building via VMWare Ubuntu with 13GB of mem and 6 virtual core on a i7 Quad core hyperthreading CPU. When I have too much browsers open, then I get similar error (mostly during metalava compile). It took about 4 hours for first build. Using ccache 25gb about 1:50h.
The Following 8 Users Say Thank You to rINanDO For This Useful Post: [ View ] Gift rINanDO Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes