LineageOS 11.0
LineageOS is a free, community built, aftermarket firmware distribution of Android 4.4 KitKat, which is designed to increase performance and reliability over stock Android for your device.
Code:
#include
/*
* Your warranty is now void.
*
* I am 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 me for messing up your device, I will laugh at you.
*/
LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.
This is LineageOS 11.0 for LG Optimus One OS2SD edition based on androidarmv6 jenkins builds. I made this edition to solve lack of space in our P500 and and improve phone performance because many todays MicroSD cards are faster then this phone internal storage. What it does, it mounts /system and /data on SD card ext4 partitions, so this way you can have as many space as you want to install apps and flash untrimmed gapps without using any a2sd mods, link2sd, manual symlinking or dalvik2cache.
What's working:
- Supports all android 4.4 (KitKat) features
- Fully functional camera (preview, taking photo, recording video, panorama)
- Full H/W acceleration with new adreno drivers, 3D modelling (yamato)
- Hardware decoding of videos, Youtube HQ videos
- Internet sharing (Bluetooth tethering, USB tethering, Wi-Fi hotspot)
- Calls, SMS, MMS, 3G/2G, Mobile data, Data limit
- Loudspeaker in call, Manual network search
- Usb mass storage, Usb debugging
- Wi-Fi, Bluetooth, Bluetooth headset, A2DP (Bluetooth Music), Car dock w/BT
- GPS, Sensors, Lights, Touch screen
- Funny SIM (128k USIMs)
- Browser, GMail, GPlay
- Youtube LQ/MQ/HQ
- Offmode charging
- Wi-Fi wakelock because of the old bcm4325 wireless driver
- Swipe in stock keyboard because of missing armv6 libs
- FM Radio (bcm4325 FM chip is depends on bluez-hcitool)
- After Wi-Fi hotspot reboot is required to use Wi-Fi
Installation instructions:
I am not responsible for lost data or dead SD card, do this at your own risk.
- Backup all you data with Titanium Backup or alternatively use "Migrating to new file system without loosing data" method
- Backup all SD card contents to PC
- Flash TWRP recovery (20161230 or later)
- While in TWRP go to Advanced>Partition SD Card and use default partition sizes or adjust it depending on your needs.
Also you can do partitioning on computer.
Use exact order and recommended partitions sizes as listed below
- FAT32 primary for /sdcard
- ext4 primary for /system (448 MB or more)
- linux swap primary for /swap (64MB or more)
- ext4 primary for /data (1024 MB or more)
MiniTool Partition Wizard (Windows):
- You need to start with one partition formatted with fat32 (or unallocated space to create fat32 partition and skip 2 step):
- Right click the fat32 partition and use Move/Resize tool to shrink that partition:
- Right click on unallocated space and select Create. Following this create ext4, swap and again ext4 partitions:
- After that you should end with this configuration (partitions sizes may differ) then hit Apply:
- You need to start with one partition formatted with fat32 (or unallocated space to create fat32 partition and skip 2 step):
- Click the fat32 partition and resize it to shrink partition:
- On unallocated space create create ext4, swap and again ext4 partitions:
- After that you should end with this configuration (partitions sizes may differ) then hit Apply:
- Copy all SD content from PC back
- Flash latest Rom and Gapps
- After system booted restore your data with Titianium Backup or alternatively use "Migrating to new file system without loosing data" method
Important! For f2fs rom make sure you have /data partition formatted with f2fs.
Instructions:
Note /data will be formated! Follow method above to backup data.
In TWRP Go to Wipe>Advanced Wipe select Data. Then Repair or Change File System>Change File System>F2FS.
Note: To reverse /data back to EXT4 do the same as above except select EXT4 in last step.
Migrating to new file system without loosing data:
What do I need to migrate without loosing data?
How to perform a migration?
- ADB installed on your PC (somehow adb in recovery working only on linux for me) or use Terminal emuliator on TWRP
- sdcard with enough memory to backup whole your /data partition
How to perform a migration?
- Reboot to recovery.
- Go to Mount menu and make sure that /data and /MicroSD are selected.
- Open Command Line (Windows) or Terminal (Linux/OS X) on your PC or Terminal emuliator on TWRP
- Type: adb shell and press ENTER (skip this if you are using Terminal emuliator on TWRP).
- Type: tar -cvpzf /sdcard/data.tar.gz /data
- Wait until operation will finish. If you see any error, it means you don’t have enough free space on your SDcard.
- Perform steps to format /data to new file system.
- Go to Mount menu and make sure that /data and /MicroSD are selected.
- Now type: tar -xvpzf /sdcard/data.tar.gz -C /
- If previous step didn’t produce any error, reboot your phone and check if it’s boot succesfully. If yes, you can safely remove data.tar.gz file from your SD card.
- Done. You have migrated to new file system without loosing your data!
Recommendations:
- Use Class 6 or even Class 10 SD card for best performance
- CPU settings: SmartassV2 480-748 MHz
- I/O Scheduler: I've read that for emmc devices (sd card) best choice is SIO, but Deadline is also very good, please leave your feedback
Screenshots:
DOWNLOADS
Thanks to:
LineageOS for sources
AndroidMeda, Conn O'Griofa and other members of androidarmv6 for bringing KitKat to P500
skinbark, bigsupersquid for help on OS2SD mod
XDA:DevDB Information
LineageOS 11.0 OS2SD, ROM for the LG Optimus One P500
Contributors
HardLight
Source Code: https://github.com/os2sd
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.0.x
Based On: LineageOS
Version Information
Status: Stable
Created 2014-10-17
Last Updated 2019-03-14
Last edited: