• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][4.4.4] LineageOS 11.0 for LG Optimus One [OS2SD][19.03.13]

HardLight

Senior Member
Nov 26, 2012
240
1,703
0

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
Known issues
  • 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.
  1. Backup all you data with Titanium Backup or alternatively use "Migrating to new file system without loosing data" method
  2. Backup all SD card contents to PC
  3. Flash TWRP recovery (20161230 or later)
  4. 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)
    Partitioning guides:
    MiniTool Partition Wizard (Windows):

    1. You need to start with one partition formatted with fat32 (or unallocated space to create fat32 partition and skip 2 step):


    2. Right click the fat32 partition and use Move/Resize tool to shrink that partition:



    3. Right click on unallocated space and select Create. Following this create ext4, swap and again ext4 partitions:




    4. After that you should end with this configuration (partitions sizes may differ) then hit Apply:

    GParted (Linux)

    1. You need to start with one partition formatted with fat32 (or unallocated space to create fat32 partition and skip 2 step):


    2. Click the fat32 partition and resize it to shrink partition:



    3. On unallocated space create create ext4, swap and again ext4 partitions:



    4. After that you should end with this configuration (partitions sizes may differ) then hit Apply:

  5. Copy all SD content from PC back
  6. Flash latest Rom and Gapps
  7. 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?

  1. ADB installed on your PC (somehow adb in recovery working only on linux for me) or use Terminal emuliator on TWRP
  2. sdcard with enough memory to backup whole your /data partition

How to perform a migration?
  1. Reboot to recovery.
  2. Go to Mount menu and make sure that /data and /MicroSD are selected.
  3. Open Command Line (Windows) or Terminal (Linux/OS X) on your PC or Terminal emuliator on TWRP
  4. Type: adb shell and press ENTER (skip this if you are using Terminal emuliator on TWRP).
  5. Type: tar -cvpzf /sdcard/data.tar.gz /data
  6. Wait until operation will finish. If you see any error, it means you don’t have enough free space on your SDcard.
  7. Perform steps to format /data to new file system.
  8. Go to Mount menu and make sure that /data and /MicroSD are selected.
  9. Now type: tar -xvpzf /sdcard/data.tar.gz -C /
  10. 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.
  11. 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:

sumansur2008

Senior Member
Jul 7, 2011
255
100
0
47
Kolkata
Does not boot!

Strange! I flashed couple of days back Androidmeda's "partitionsdcard"built from Jenkins, but failed to boot this ROM. I did a clean install in both cases!:crying:
 
  • Like
Reactions: xu3sno

mns123

Senior Member
Dec 13, 2007
205
40
28
God's own country
[ROM] [4.4.4] CyanogenMod 11.0 for LG Optimus One [OS2SD] [14/07/25]

Flashed the rom and it works perfectly well. ROM is smooth and fast as always.Thanks androidmeda.
Here is what I did:
1. Partitioned my 16GB Class 10 SD card as per instructions
2. Flashed the new recovery TWRP-OS2SD
3. Flashed the rom.
4. Rebooted and again flashed the Gapps-minimal(36MB!)

All fine. Playstore works, No FCs.
Partition info after Gapps:
/system 240MB / 394MB
/data 129MB / 1.68GB
/cache 1.15MB / 64.00MB
 

Attachments

Last edited:

xu3sno

Elite Member
Jun 12, 2012
1,829
1,872
0
UTC +11
As mns123 posted, cm-11 (20140725) OS2SD has succesfully been installed on my obsolete device P500. It's amazing. Even using SDCard Class 6, it's running smooth like butter (or silk) and fast (and furious) :victory: :cool: Be patient, the initial reboot take a quite time, circa 7 minutes.
I think @HardLight fooled the recovery that /system and /data in SDCard pretended as /system and /data partitions in the internal memory, apparently. Very clever :good: The question is, where's 412 MB memory device, anyway?

Configuration:
SDcard: 2GB, Class 6

Processor:
Min CPU Freq: 320 MHz; Max: 600 MHz; Governor: SmartassV2

Memory management: Swap on

Dev Option: Window animation scale: 0.5X; Transition animation scale: 0.5X; Animator duration scale: 0.5X


Pros:
Space running out is no longer a problem. You can install apps as many as you want. The limit is just the SDCard capacity :)

Cons:
Out of known issues, none. Except I have to buy a new 16 GB SDCard Class 10. Duh! No, just kidding! :)
 

Attachments

Last edited:

msilwal322

Member
Jun 25, 2014
16
1
0
Sarisfied till now

I have used this ROM for a day now, and this ROM has worked better for me than mukulson's CM11-v12 because, there was no insane battery drain in wifi standby.
 

xu3sno

Elite Member
Jun 12, 2012
1,829
1,872
0
UTC +11
Changelog:
  • Updated to last nightly
  • Increased read_ahead_kb to 2048 for better sd card read speeds
Firstly, thanks for the update. So it's based on 20140727 where ARMv6 enable and switch to ART runtime, isn't? :cool:
Suggestions:
1. Since OTA doesn't work, you may provide just the incremental.zip, whenever last nightly build is available. No need to download full size rom.
2. It will be helpful, if TWRP is capable "one fit for all" , one TWRP for all ROM! :cool:

Hey, you push me to buy a new Class 10 SDCard (16 GB maybe). Just kidding. :) The old one reserved for backup :(
 

casaprocida

Senior Member
Dec 18, 2012
271
70
0
Rome
I tried partitioning SD card using minitool partition, installed TWRP, ROM and GAPPs.
Try to do a dalvik/cache partition but I had failed, TWRP doesn't mount data partition.
I tried more time without success.

Minitool doesn't accept / before name in the labeling and then I try using data e system (instead /data and /system).
Tri to boot mobile, but It doesn't boot (I wait 20 minutes).
Any idea?
 

mns123

Senior Member
Dec 13, 2007
205
40
28
God's own country
Firstly, thanks for the update. So it's based on 20140727 where ARMv6 enable and switch to ART runtime, isn't? :cool:
Suggestions:
1. Since OTA doesn't work, you may provide just the incremental.zip, whenever last nightly build is available. No need to download full size rom.
2. It will be helpful, if TWRP is capable "one fit for all" , one TWRP for all ROM! :cool:(
+1
 
  • Like
Reactions: xu3sno

xu3sno

Elite Member
Jun 12, 2012
1,829
1,872
0
UTC +11
I tried partitioning SD card using minitool partition, installed TWRP, ROM and GAPPs.
Try to do a dalvik/cache partition but I had failed, TWRP doesn't mount data partition.
I tried more time without success.

Minitool doesn't accept / before name in the labeling and then I try using data e system (instead /data and /system).
Tri to boot mobile, but It doesn't boot (I wait 20 minutes).
Any idea?
Have no experience with Windows Mini Tool. Re-partition SDCard by using Linux (assuming you have a Linux box).
Here what I did as I posted previously.

Execute Terminal as root:

# fdisk -l will show sdcard, /dev/sdx
# fdisk /dev/sdx, follow the instruction to make partition in primary (p): vfat, ext4, swap, ext4.
formatting partitions
# mkfs.vfat /dev/sdx1 (for vfat file system)
# mkfs.ext4 /dev/sdx2 (for ext4 fs)
# mkswap /dev/sdx3 (for swap)
# mkfs.ext4 /dev/sdx4

Since Android based on Linux, making partition using Linux command is more accurate than Windows, IMHO.
 
  • Like
Reactions: casaprocida

HardLight

Senior Member
Nov 26, 2012
240
1,703
0
Firstly, thanks for the update. So it's based on 20140727 where ARMv6 enable and switch to ART runtime, isn't? :cool:
Suggestions:
1. Since OTA doesn't work, you may provide just the incremental.zip, whenever last nightly build is available. No need to download full size rom.
2. It will be helpful, if TWRP is capable "one fit for all" , one TWRP for all ROM! :cool:

Hey, you push me to buy a new Class 10 SDCard (16 GB maybe). Just kidding. :) The old one reserved for backup :(
Yes it's based on 20140727, but speculations about ART is wrong. Conn O'Griofa just switched to local androidarmv6 repo of art, not enabled it.
Also here is the commit message: I'm merging this now, but only because it's needed to test changes. I don't intend for ART to be included in builds.
About ota and incremental, I don't use them so probably all upcoming updates will be full zips.
You mean TWRP capable of flashing to internal and external? If yes, it would complicate some things but I will try :)

I tried partitioning SD card using minitool partition, installed TWRP, ROM and GAPPs.
Try to do a dalvik/cache partition but I had failed, TWRP doesn't mount data partition.
I tried more time without success.

Minitool doesn't accept / before name in the labeling and then I try using data e system (instead /data and /system).
Tri to boot mobile, but It doesn't boot (I wait 20 minutes).
Any idea?
Then partitioning you don't need to change partitions names, leave it blank. So after partitioning fat32 will have Removable Disk and other * names by default.
 

xu3sno

Elite Member
Jun 12, 2012
1,829
1,872
0
UTC +11
Yes it's based on 20140727, but speculations about ART is wrong. Conn O'Griofa just switched to local androidarmv6 repo of art, not enabled it.
Also here is the commit message: I'm merging this now, but only because it's needed to test changes. I don't intend for ART to be included in builds.
About ota and incremental, I don't use them so probably all upcoming updates will be full zips.
You mean TWRP capable of flashing to internal and external? If yes, it would complicate some things but I will try :)
Thanks for the enlightenment. I did flash 20140727 in internal (have not yet a new 16 GB Class 10 SDCard) :( using @Notonlyeyes CWM 6.0.5.3 TLS compatible. Go to Settings > Developer option > Select run time to ART > Warning OK > reboot successfully, without error notifications. Don't know if the ART enable or not, feel no different with previous system set to traditional Dalvik :silly:

TWRP, yes just one TWRP capable to flash any ROM (internal or external as yours) and restore nandroid backup. No need to swap between different version of TWRP, or between TWRP and CWM. Apology for so demanding :)

Wish you luck! :)
 
Last edited:

anhsmile

Senior Member
Nov 23, 2010
224
20
18
@HardLight: Can you make a TWRP support TLS flash all ROMs?
Because my sccard have class 4:(, not best for performance.
And I want use Link2SD to install many apps.
How is to increase /system not use OS2SD?
 

HardLight

Senior Member
Nov 26, 2012
240
1,703
0
New version

  • Uploaded latest nightly (20140729)
  • Made TWRP-MULTI version for flashing ROMs to internal and external memory.
    Regular roms flashes normaly to /system and OS2SD roms to /sd-system. Also there is /data for internal and /sd-data for external memory.
    Please note that /sd-ext and /sd-system are same partions.
    For the people who don't want experimenting flashing to external and internal with same recovery: TWRP-OS2SD version will still work on new roms.
  • Uploaded new gapps package for new recovery (also compatible with TWRP-OS2SD)

@anhsmile
I've already made it.
Download
 

xu3sno

Elite Member
Jun 12, 2012
1,829
1,872
0
UTC +11
  • Uploaded latest nightly (20140729)
  • Made TWRP-MULTI version for flashing ROMs to internal and external memory.
    Regular roms flashes normaly to /system and OS2SD roms to /sd-system. Also there is /data for internal and /sd-data for external memory.
    Please note that /sd-ext and /sd-system are same partions.
    For the people who don't want experimenting flashing to external and internal with same recovery: TWRP-OS2SD version will still work on new roms.
  • Uploaded new gapps package for new recovery (also compatible with TWRP-OS2SD)

@anhsmile
I've already made it.
Download
You're the man :good: You save my day, bro!
 
  • Like
Reactions: xdema and HardLight