LineageOS on Samsung Galaxy S2 i9100

13.06.2017

Following are notes how the mobile phone was installed and configured.

General information

Technical details can be found here

Download

ClockworkMod is the boot ROM. PhilZ-cwm6-XWMS3-FOP-5.15.9-signed.zip
LineageOS is a custom ROM. General information & Download & SU Addon
IsoRec Kernel: kernel-Lanchon-20160406-cm-13.0-i9100.zip & TWRP Recovery: recovery-Lanchon-IsoRec-TWRP-2.8.7.0-20160113-i9100-(by-arnab).zip
TeamWin Recovery Project boot ROM (newer than ClockworkMod): twrp-3.1.0-0-i9100.img
Partition expand: lanchon-repit-20170115-system=1G-data=same-sdcard=max-preload=min+wipe-i9100.zip

Install ClockworkMod

Copy PhilZ-cwm6-XWMS3-FOP-5.15.9-signed.zip to external SD card on mobile phone. Boot into stock recovery (VOLUME UP + HOME + POWER). Select apply update from external storage. Select the ZIP file. Finish: Root access and ClockworkMod installed.

Install LineageOS

Erase phone

Before install a new ROM we have to fully erase all data.

Flash Kernel & Recovery

Phone is erased and in recovery mode.

Partition

Phone has IsoRec Kernel and at least TWRP 3. It is in recovery mode. This is needed to expand system partition from 512 MB to 1 GB.

ROM

Phone is in recovery mode.

Reset flash counter

Disable the yellow triangle on boot screen.
Install the app Triangle Away and run it with root privileges. It's not necessary to install a SuperSU app (there's already available in this ROM).
Select Reset flash counter and confirm the dangerous operation message. After short time, a message says the flash counter has been reset.
Reboot the phone into download mode and check the state. The app could be uninstalled when everything is done.

System configuration

This chapter describes system configuration after new installation.

First start

Wizard appears. Select Language English (United States). Define time zone Amsterdam, Berlin GMT+2:00. Connect to Wi-Fi network. Turn off cellular data. Don't allow apps to use your location. Don't help improve LineageOS but enable privacy guard. Setup a security pattern. Finish.

SD card

Set up SD card as a portable storage.

Wi-Fi

To save energy disable notification about public networks. Second give a hostname.
Settings | Wi-Fi | Configure Wi-Fi. Disable Network notification
Settings | Wi-Fi | Advanced Wi-Fi | Wi-Fi Direct. Rename Device

Bluetooth

Define mobile phone name for bluetooth connections.
Settings | Bluetooth. Turn On Bluetooth.
Action key | Rename this device.

Data usage

Define the amount of data usage according to your contract.
Settings | Data usage | Click on graph | 512 MB
Settings | Data usage | Billing cycle | Monthly starting 1

Disable broadcast messages

When phone connects to another GSM cell a notification appears.
Settings | More | Emergency broadcasts | Uncheck all

Display

Settings | Display | LiveDisplay | Check if everything is like on the screenshots
Settings | Display | Rotation settings | Check all rotation modes
Settings | Display | Screen saver | Off
Settings | Display | Ambient display | Off
Settings | Display | Display size | Smaller

Notifications

Settings | Notifications | Settings icon | On the lock screen | Hide sensitive notification content

Sound

Settings | Sound | Link ringtone & notification volumes | Disable
Settings | Sound | Increasing ring volume | Enable
Settings | Sound | Also vibrate for calls | Enable
Settings | Sound | Phone ringtone Themos
Settings | Sound | Default alarm ringtone Argon (it's not the same as for notification)
Settings | Sound | Other sounds | Disable all options

Battery

Settings | Battery | Battery saver and performance | Automatic power saver | 5%

Gestures

Settings | Gestures | Double-tap to sleep | Off

Buttons

Settings | Buttons | Long press for torch | On
Settings | Buttons | Power menu | Sound panel | On

Security

Settings | Security | Screen lock | Define a pattern
Settings | Security | Screen lock (settings icon) | Make pattern visible | Off
Settings | Security | Screen lock (settings icon) | Automatically lock | 15 seconds
Settings | Security | Screen lock (settings icon) | Lock screen message | Put in complete address
Settings | Security | Screen lock (settings icon) | Display music visualizer | Off
Settings | Security | Screen lock (settings icon) | Display media cover art | Off
Settings | Security | Unknown sources | On

Privacy

Disable collection of statistic data.
Settings | Privacy | LineageOS statistics | Stats collection | Off

Status bar

Settings | Status bar | System icons | Time | Show hours, minutes and seconds
Settings | Status bar | Clock position | Centre
Settings | Status bar | Battery percentage | Inside the icon

System profiles

Settings | System profiles | Add Home and Work
Settings | System profiles | Home | Wi-Fi | Home network
Settings | System profiles | Home | Lock screen mode | Disable lock screen
Settings | System profiles | Work | Wi-Fi | Work network
Settings | System profiles | Work | Alarm | 0
Settings | System profiles | Work | Media | 0
Settings | System profiles | Work | Notification | 0

Languages & keyboard

Language and keyboard settings
Settings | Languages & input | Languages | Add English (Switzerland) and remove all others
Settings | Languages & input | Spell checker | Off
Settings | Languages & input | Current Keyboard | German (Switzerland)
Settings | Languages & input | Virtual keyboard | Android Keyboard (AOSP) | Languages | Disable Use system languages & enable only German (Switzerland)
Settings | Languages & input | Virtual keyboard | Android Keyboard (AOSP) | Preferences | Disable Vibrate on keypress & Voice input key
Settings | Languages & input | Virtual keyboard | Android Keyboard (AOSP) | Appearance & Layouts | Theme | Holo White
Settings | Languages & input | Virtual keyboard | Android Keyboard (AOSP) | Appearance & Layouts | Customised input styles | Remove all
Settings | Languages & input | Virtual keyboard | Android Keyboard (AOSP) | Text correction | Disable Block offensive words & Auto-correction
Settings | Languages & input | Selector icon | Off

Activate developer options

Select Settings --> About phone. Tap on Build number seven times.

Developer options

Various settings: unlock advanced restart options, give root access, define hostname, speed up device
Settings | Developer options | Enable Advanced restart
Settings | Developer options | Root access | Apps and ADB
Settings | Developer options | Device hostname XXX
Settings | Developer options | Window animation scale | Animation off
Settings | Developer options | Transition animation scale | Animation off
Settings | Developer options | Animator duration scale | Animation off

OS updates

Set OS update check to monthly.
Settings | About phone | LineageOS updates | Check for updates Monthly

Home screen settings

Long press on desktop | SETTINGS | Disable Scroll wallpaper
Long press on desktop | SETTINGS | Drawer style | COMPACT
Long press on desktop | SETTINGS | Drawer colour | DARK
Long press on desktop | SETTINGS | Disable Fast scroller
Long press on desktop | SETTINGS | Disable Search bar

Background image

Set background image in home screen. Use a picture with 480 x 800 pixels.
Long press on desktop | WALLPAPERS | choose spacefun_rsz.png | SET WALLPAPER

Alarm clock

Clock app | alarm clock icon (top left) | Delete all alarms
Clock app | alarm clock icon (top left) | Add new | Select monday - friday, check REPEAT, uncheck VIBRATE
Clock app | alarm clock icon (top left) | action key | Home time zone | (GMT+2:00) Amsterdam, Berlin
Clock app | alarm clock icon (top left) | action key | Settings | Snooze length | 7 minutes
Clock app | alarm clock icon (top left) | action key | Settings | Gradually increase volume | 5 seconds
Clock app | alarm clock icon (top left) | action key | Settings | Flip action | Snooze
Clock app | alarm clock icon (top left) | action key | Settings | Start week on | Monday
Clock app | alarm clock icon (top left) | action key | Settings | Timer ringtone | Timer

Dashboard

Define icons and widgets for the dashboard.
Long press on desktop | WIDGETS | Calendar
Define icons from the app drawer according to the screenshot below.

Apps

Because there's no repository on the phone, first install the app F-Droid. It's available here: https://f-droid.org
Package Description Download
920 Editor Text editor F-Droid
AdAway Block advertisements F-Droid
AntennaPod Advanced podcast manager and player F-Droid
AquaMail Pro Email with push functionality. Also sync with MS Exchange. Can shrink pictures Internet
Barcode Scanner Scan and create 2D and QR codes F-Droid
ConnectBot SSH and local shell client F-Droid
dict.cc Translator Internet
Document Viewer Viewer for many document formats. PDF, DjVu, XPS, Comic Books, FictionBook F-Droid
Ghost Commander Dual-panel file manager F-Droid
Ghost Commander - Samba plugin Access files on the network F-Droid
Ghost Commander - SFTP plugin Access files over SFTP F-Droid
KeePassDroid KeePass-compatible password safe F-Droid
MoneyBalance Track group expenses F-Droid
OsmAnd~ Offline/online maps and navigation F-Droid
Rehearsal Assistant A voice/sound recording tool F-Droid
SatStat GPS, sensor and network status F-Droid
Share via HTTP Share pictures, musik and videos F-Droid
Shazam Detect music songs Internet
Swivel Mobile VMware VDI access Internet
Wake On Lan Send Wake-On-Lan magic packets F-Droid
WhatsApp Messenger Internet
Wifi Analyzer Shows the Wi-Fi channels around you Internet

App configuration

This chapter describes applications configuration.

320 Editor

Use night theme.
Preferences | Highlighting And Color Scheme | Color Scheme | night

AntennaPod

Settings | Select Theme | Dark
Settings | Headphones Disconnect | Off
Settings | Continuous Playback | Off
Settings | Auto Delete | On
Settings | Update Interval or Time of Day | SET TIME OF DAY | 21:30
Settings | Parallel Downloads | 2
Settings | Automatic Download | On
Settings | Automatic Download | Episode Cache | 10

AquaMail Pro

Add account who was once activated and install AquaMail Pro with unlocker app. Only AquaMail is responsible for Email. The default Email app service will be disabled.
Settings | Look and feel | Colour theme | Dark, including messages
Settings | Conversations | Conversations combining | Off
Settings | Messages notifications | Sound | Default notification sound
Settings | Apps | Email | Disable

Browser

Browse to favourite webpages and add them

Calendar

Copy On time.mp3 to /storage/sdcard0/Notifications
Settings | General settings | Show week number | On
Settings | General settings | Sound | On time
Settings | General settings | Vibrate | On
Settings | General settings | Pop-up notification | On
Settings | General settings | Default reminder time | 15 minutes

ConnectBot

SSH connection to server XXX. DNS name could not be resolved!

dict.cc

Language Packs | German | Download Vocabulary | Big

F-Droid

Settings for app repository.
Settings | Automatic update interval | Weekly
Settings | Only on Wi-Fi | On
Settings | Automatically download updates | On
Settings | Theme | Dark

Ghost Commander

Disable confirmation and activate root mode.
Settings | Confirmations | Off
Settings | Miscellaneous | Automatic root mode | On


Add favorite locations

Messaging

Settings | Swipe to delete | On

OpenConnect

Add a new profile

OsmAnd~

Follow the given instructions to download maps.
Switzerland
World overview map
Baden-Württemberg
Lombardy
Piemonte
Trentino-Alto Adige
Veneto

Contacts

Sort by last name.
Settings | Sort by | Surname
Settings | Name format | Surname first

Phone

Sort by last name.
Settings | Display options | Sort by | Surname
Settings | Display options | Name format | Surname first

KeePassDroid

The database file format V1 (.kdb) has the ability the select an icon on every entry. V2 don't. Copy password file to /storage/sdcard0/keepass/
Unmask passwords
Settings | Application | Mask password | Off

Wake On Lan

Wake | Define settings

WhatsApp

Action key | Settings | Top | Grab a photo, define a name and reset all status, simply write -
Action key | Settings | Account | Privacy | Last seen | Nobody
Action key | Settings | Account | Privacy | Profile photo | My contacts
Action key | Settings | Account | Privacy | Status | My contacts
Action key | Settings | Account | Privacy | Read receipts | Off
Action key | Settings | Chats | Wallpaper | No Wallpaper
Action key | Settings | Notifications | Conversation tones | Off
Action key | Settings | Data usage | When using mobile data | No media
Action key | Settings | Data usage | When connected on Wi-Fi | No media
Action key | Settings | Data usage | When roaming | No media
Action key | Settings | Contacts | Show all contacts | Enable

Hints

Screenshot

To save a screenshot hold volume down + power key for a moment. The screenshot goes to /storage/sdcard0/Pictures/Screenshots/

Backup

User data

MyPhoneExplorer is an easy tool for doing backups. Important are calendar and contact entries.
When doing a restore, all entries will be deleted from phone. In the second step, copied back.

Full system backup

Backups everything. Usefull after setting up a new system or to test a new ROM.