yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] HardLight:
SD partitioning guide

Here is SD partitioning tutorial for OS2SD Rom.

Mini Partition Tool (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:

GParted (Linux)

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:

Thanks rhar**** for pictures.
[Optimus One, P500 Android Development] HardLight:
OS2SD guide

Made OS2SD guide for those who are interested in this project :D

Also new nightly is uploaded.
[Optimus One, P500 Android Development] MagusWRM:
Oh I finally installed this amazing rom! I almost got my phone bricked in the first steps, but thanks to [MENTION=4974969]HardLight[/MENTION] my P500 is back to life! :D

Using a class10 SD and boy it does boot really fast compared to others CM10-11 roms!

Great work, I can't wait to taste it more but it's late (4am here) and I'm falling in the keyboard :p
[Optimus One, P500 Android Development] MagusWRM:
Using this ROM for two days in a row, installed all apps, no need to restart it yet still working without big lags.

All features working as expected (camera, wifi, etc), only a small lag sometimes when listening to music (using poweramp and ogg files), but hey it's a 600mhz phone :p (oc 672mhz)

In a resume I'm going to keep this ROM as my default for a long time.

Thanks again to [MENTION=4974969]HardLight[/MENTION] for this amazing work :good:
[Optimus One, P500 Android Development] xdema:
could you confirm that the camera app need 4-5 second to show what the camera see at first start?

:good: battery performance: 2d 11h with data (2g) always on and 1h of gps :victory:
[Optimus One, P500 Android Development] MagusWRM:
Yes it does took sometime extra for the first opening, I believe the camera-app it's a bit heavy because of gps, it does took more time to show gps usage from the first time.
[Optimus One, P500 Android Development] nomancoolboy:
Does our p500 fully utilize the ultra SDcard speeds ??

Going to get one .. Especially for this rom
[Optimus One, P500 Android Development] kprsnt:
Thats not art

We dont have art runtime

Its disabled and there is no libart.so file in Lib folder

For u its loading again on delvik

If u go back to settings and see U should know....

I already done this on at earlier stages of cm 11(when camera is working)...

---------- Post added at 10:40 AM ---------- Previous post was at 10:35 AM ----------

all the apps will take time to start in os2sd build..

I know it because i have used it long time ago.. (my sd card 4 and apps starting too slow )

One of the best thing about this os2sd rom is

Battery was tooooo good on this rom

For me It takes around 2.5 days to discharge 60% of my battery.. (when every one got around 1 day for full charging)

So now it'll give more than that....

---------- Post added at 10:42 AM ---------- Previous post was at 10:40 AM ----------

I dont think so...
[Optimus One, P500 Android Development] Alucad:
I'd like to ask something. And sorry if is something stupid but, does this rom work on the P505? just wondering if someone knows or just tried.

And sorry again for asking this
[Optimus One, P500 Android Development] ibub:
I think that , due to the assert statement in the updater script , it will not flash to your device. Probably best to compile it using your device tree.
[Optimus One, P500 Android Development] ftaios:
Thank you!!!

Can anybody install xposed on last update?
[Optimus One, P500 Android Development] josehbermudez:
Signature spoofing support?

Hi, thanks [MENTION=4974969]HardLight[/MENTION] for your hard work still developing ROMs for this old but lovely device.

I'd problems trying to get working last gapps in OP. Then I read and tried about microG here in XDA as suggested in this thread with no success, specifically for apks that use Google Cloud Messaging ("Push-Notifications") as Whatsapp, Facebook lite, telegram and others.

Unless I misundestood, an inbuilt signature spoofing support is needed. As this rom is CM based, I asume it has not such native setting.

The other way microG's thread suggests is to use Xposed with fakegapps module, but AFAIK 4.4.4 (SDK19) is not Xposed supported.

Thanks so much in advance for your attention and lights on this issue.

Sorry about my bad english
[Optimus One, P500 Android Development] josehbermudez:
Hi, have you tested that? please read my post #334 in this thread.

I did. And as I see, unless not having a spoofing signature patch in this rom, we can install microG and blankmarket for getting many apks from playstore but we cannot use apk like whataspp or similar, and will need a deodexed rom.

The other mentioned to use microG is Xposed, but cannot find a compatible one while AFAIK 4.4.4 isn't supported.

Maybe I'm drowning in a glass of water...

Really apreciatte any coments or lights about

Sorry for my bad english

Regards
[Optimus One, P500 Android Development] moriel5:
No I did not, as I run a setup that does not include the Play Services, not even microG.

You can try deodexing this ROM, and then patching it with Needle or Tingle.

That sounds rather odd, if the module still contains dalvik code, perhaps you can modify the APK to run under API19 (KitKat).

Your english is fine, don't worry.

And we all need to improve ourselves, in every area.
[Optimus One, P500 Android Development] josehbermudez:
Hi, can you see this?

Main problem I see is that my usb is fully broken...

Thanks to you all
[Optimus One, P500 Android Development] moriel5:
From what I can see, you just need to install Xposed from the installer (you need to give it root permissions), and while you're at it, why don't you install the unofficial materialized version?

And I had just checked the module, it should run fine on Android 4.1+, so it should run fine on your setup.

About USB, you can access your phone through ADB via WiFi, just enable it from the developer options.
[Optimus One, P500 Android Development] josehbermudez:
Thanks [MENTION=5358804]moriel5[/MENTION], remember that I wanna be able to signature spoofing ( through Xposed or patching) over an OS2SD updated (4.4.4) version of this rom.

Enviado desde mi Moto E mediante Tapatalk
[Optimus One, P500 Android Development] moriel5:
Sorry, I was talking about FakeGApps, which is the spoofing module, each time I had said "the module".

The installer is an app you already have.
[Optimus One, P500 Android Development] josehbermudez:
I guess so... Will try Xposed over CM OS2SD again. If failed, will try to deodex and patch the rom

Enviado desde mi Moto E mediante Tapatalk
[Optimus One, P500 Android Development] josehbermudez:
flashing Xposed over CM11 OS2SD failed

EDIT: Tried flashing Xposed V33 and SolarWarez over CM11 OS2SD and failed. Please see message on Xposed installer.

Found this, supposed to be a known issue, but can't see solution
[Optimus One, P500 Android Development] moriel5:
Why are you trying to flash SolarWarez's Xposed?

It's only compatible with MIUI.

You need to flash the normal Xposed, which you can do directly from the app.

First remove SolarWarez Xposed, and then install the normal one from the Installer.
[Optimus One, P500 Android Development] ftaios:
Doesn't work after Nov. patch...
[Optimus One, P500 Android Development] josehbermudez:
SolarWarez has a normal version. Not working on OS2SD. I tested too the v33 from rovo, not working on OS2SD. With normal ROM both worked flawlessly.

I'm Disappointed, because xposed was the easy way to get signature spoofing.

As my USB is broken I don't see any ways to deodex OS2SD ROM and later patch it.

I'm done. Thanks a lot.
[Optimus One, P500 Android Development] moriel5:
Don't give up yet, I'll upload here a (slightly) older version of tophonju's systemless Xposed (pre-Magisk), and you can try that first.

You'll have to flash it from the recovery, though, and I stronly recommend you to use the unofficial Materialized Xposed Installer (I'll upload it as well).

I'll do it in a few hours, when I'll be on my Doogee X5 Pro.

---------- Post added at 05:52 PM ---------- Previous post was at 05:50 PM ----------

Then we'll need to wait for rovo89 to release an update for compatibility.
[Optimus One, P500 Android Development] moriel5:
Thanks for updating me, [MENTION=5260097]ftaios[/MENTION].
[Optimus One, P500 Android Development] josehbermudez:
Well, at this stage, trying something different will worth the time. I'll wait for the uploads and try. Thanks so much for cheer me up.
[Optimus One, P500 Android Development] josehbermudez:
I insisted looking for a different way and start learning on deodexing this OS2SD rom in order to try patching it (spoof signature)with tingle later. I've tried first Android-Kitchen with no success because of CMHome apk is the only one app that cannot be deodexed, and later used SuperR's-kitchen (both kitchens are here in XDA's Chef Central) and seemed to succeed but infinite bootlooping. So, there is my noob question: Is there any reason to Android-Kitchen not able to deodex CMHome apk ? Is there a way to get log when flashing the rom? remember my USB port is broken.

Thanks in advance... any advice or comments will be fully appreciated

P.S.: I know I'm getting so far from the target of this thread, but sincerely I've read a lot (and test a lot) this last 3 weeks and still can't find a solution or a definitive (" cannot be done") answer.
[Optimus One, P500 Android Development] uns8816:
deodexed_cm-11.0.1-20161229-OS2SD-p500.zip, download and try to install

https://drive.google.com/open?id=0B0isFv6nFz_qR3hoS2lBVDFrR2s
[Optimus One, P500 Android Development] HardLight:
Play services

Hi [MENTION=5252269]josehbermudez[/MENTION] [MENTION=5358804]moriel5[/MENTION],

If I understand correctly we need later GMS version to be able to use certain apps (e.g. Whatsapp) and for that microG can be used, right?

If so I'll try to build rom with signature spoofing patch to avoid troubles installing xposed and fakegapps module.

Also could you confirm that GMS version 5.4.89 (from gapps-4.4.4-20161215-OS2SD-p500.zip) is working fine unless you need some newer versions of gmail, hangouts, whatsapp etc.?
[Optimus One, P500 Android Development] josehbermudez:
Oh man thanks so much for sharing! I'll try it asap...

Enviado desde mi Moto E mediante Tapatalk

---------- Post added at 06:11 PM ---------- Previous post was at 05:48 PM ----------

Oh [MENTION=4974969]HardLight[/MENTION]! Thanks so much for taking time to answer. For me it's a real big but good surprise and a pleasure to hear from you.

An Yes, as I see, a signature spoofing enabling would be a top mod that will improve this great ROM for a lovely but old device as P500. I've tested microG with normal versions(not OS2SD) and Xposed/Fakestore/Blankstore and runs smoothly even with old versions of WhatsApp.

Without Xposed on OS2SD isn't that easy, signature spoofing patch is needed to get microG working. Maybe you want so see this and several post around it in this robuser007's thread.

I doubt that newer app versions will easily work because of Google's lack of support for armV6 old devices. That's been clearly said on microG and other Marvin's threads. Media apps like WhatsApp, Lite, telegram or YouTube sadly rely mostly on Google. I tested f-droid and some apps like telegram works, faceslim(FBook) works and some YouTube players works but a widespread app like WhatsApp isn't available. Our devices to stay fully alive will need microG and other FOSS compliments in order to get advantage of those especific apps.

And yes gapps-4.4.4-20161215-OS2SD-p500.zip work well for apps that don't need cloud messaging. When you download WhatsApp or YouTube of course you get the newer version an it installs but fails immediately.

Sorry about my bad English.

Again, thanks much for you attention.

Regards

Enviado desde mi Moto E mediante Tapatalk
[Optimus One, P500 Android Development] josehbermudez:
Thanks so much again [MENTION=4974969]HardLight[/MENTION], [MENTION=1365240]moriel[/MENTION], [MENTION=5627087]ale5000[/MENTION] and [MENTION=5884745]uns8816[/MENTION] !!!!

Deodexed rom worked flawlessly. Patched signature spoofing with Tingle (quick and no issues) using ADB through WiFi as my usb port is broken. It's a happy day since a month of reading and trying a lot of things and some people and Dev's advices and suggestions. Installed microG/GsfProxy/BlankStore, logged in with a google spare account and succeed to install whatsapp without fail (it's running while I write this). Performance is a bit laggy but because now it's a deodexed rom. I asume odexing can be done with superR's kitchen; will try this later.

That's why I love to be part of XDA: collaboration, effort, learning, success.

:laugh: :good::good::good::good::good:
[Optimus One, P500 Android Development] HardLight:
LineageOS 11.0

20170316 build uploaded!

Changelog:

Download

Android File Host | XDA
[Optimus One, P500 Android Development] ibub:
Oh my god! LineageOS for the O1. That's really cool. ;)
[Optimus One, P500 Android Development] xu3sno:
Can't find file 20170316 build on download link you've provided! All is just cm builds from last year!

Hope you can provide ROM for installing on internal memory, too, and TWRP v3.1.0 for p500.

Many thanks bro!

Have a great day!
[Optimus One, P500 Android Development] ibub:
Try again brother. I just now downloaded it. :beer:
[Optimus One, P500 Android Development] xu3sno:
I have clicked on AFH link! My bad! :p

Should be on XDA link actually!

No downloaded just fine!

Thanks bro! Long time no see! :D

Have a great weekend! :cool: :beer:
[Optimus One, P500 Android Development] josehbermudez:
Yeah [MENTION=4974969]HardLight[/MENTION] you did the trick! Thanks so much again...and LineageOS [emoji106] [emoji106] [emoji106] .

Can't wait to get home to download!

Enviado desde mi Moto E mediante Tapatalk
[Optimus One, P500 Android Development] HardLight:
LineageOS 11.0

20170325 build uploaded!

Changelog:

Download

Android File Host | XDA
[Optimus One, P500 Android Development] ftaios:
Funny little typo in "about phone"; shows patch level as March 1st 2016 :o
[Optimus One, P500 Android Development] mns123:
Is it f2fs?
[Optimus One, P500 Android Development] moriel5:
Sorry for not having been online for quite some time, however this is great news, especially the part about the signature spoofing!

Keep it up!
[Optimus One, P500 Android Development] mns123:
Tried it. But unable to sign in to Google, even after flashing Gapps. Error message: "There was a problem communicating with Google servers. Try again later."
[Optimus One, P500 Android Development] ibub:
I also had the same results using the latest gapps with clean install of both cm-11 and LineageOS. Previous version of gapps I could sign in, but force closed during sync. Possibly play services tried to automatically update. I went to Google play and tried to install an app and verification failed.
[Optimus One, P500 Android Development] mns123:
The funny thing is that when I try to install an older version of Google Play services, it fails to install saying there is not enough space!
[Optimus One, P500 Android Development] ibub:
Were you trying to install from play store, or was it a copy that was stored on sdcard?
[Optimus One, P500 Android Development] xu3sno:
Hi bro,

Long time no see :)

Please, check /system/priv-app out! Are PrebuiltGmsCore.apk, GmsCoreSetupPrebuilt.apk and GoogleServicesFramework.apk already there?
[Optimus One, P500 Android Development] ibub:
PrebuiltGmsCore yes

GoogleServicesFramework yes

GmsCoreSetupPrebuilt maybe.

I have GoogleOneTimeInitializer
[Optimus One, P500 Android Development] mns123:
No, I don't have GmsCoreSetupPrebuilt. Rest all there.

Flashed again. Used Gappslight and signed in Ok.
[Optimus One, P500 Android Development] josehbermudez:
Dear brothers, I really suggest reading and using microG instead gapps. Just try older apps versions from uptodown or f-droid until finding the working ones Some specific apps like YouTube are not working at all but you can find similar ones that do work. Just be patient and try one by one.

I successfully installed telegram(f-droid), lite, WhatsApp tweetcaster youtubeMate (uptodown) and many more from blankstore. Recommend trying OsMand (f-droid) instead Maps.You'll find problems or FC with google dependant apps. Was impossible to run Instagram. I'm still thinking that google simply is not supporting old arm devices neither do actual apk devs.

Recent Hardlight's work opened the way to do it (deodexed it's OS2SD rom and patched it for signature spoofing for us) and worth it to try [emoji6] microG. Marvin's and ale5000's threads are well and easy explained.

Peace for you all [emoji106]

Enviado desde mi Moto E mediante Tapatalk
[Optimus One, P500 Android Development] mns123:
[ROM][4.4.4] LineageOS 11.0 for LG Optimus One [OS2SD]

I just wanted to try a Lineage OS 11.0 for LGP500.

I am now back on my internal rom. Thanks anyway.
[Optimus One, P500 Android Development] HardLight:
LineageOS 11.0

20170422 build uploaded!

Changelog:

Download

Android File Host | XDA
[Optimus One, P500 Android Development] bigsupersquid:
You are awesome at keeping this legacy device updated!

I really need to get my head together and get my build machine back up and sync your repo for the optimus v/s.
[Optimus One, P500 Android Development] maxim.pashuk:
Hi all

I follow this thread and sometimes I update rom on my device, and always all things was fine.

I decided to install 20170422 build on my device instead of previous build 20161229.

After successful flashing with TWRP 3.0.2, I am getting an error

"com.android.systemui has stopped" many times.

I tried "adb logcat *:w" and get an detailed error:

"java.io.FileNotFoundException: res/drawable-mdpi/status_background.9.png"

I am not sure how to deal with this message, I am not an android developer.

Am I the only one who get this message?

I tried reinstall rom several times - formatting sd card, partition through gparted and partition through TWRP, f2fs and ext4 as filesystem for /data - the result was always the same

Can somebody help me with this?
[Optimus One, P500 Android Development] Crashoverride1993:
Is this for the lgl34c?

Or is the algorithim getting mine wrong

If its the same why is it saying lp500

This is a lgl34c
[Optimus One, P500 Android Development] ibub:
Wrong device. Not the same. Don't try to flash this to lgl34c.
[Optimus One, P500 Android Development] bikeride34:
I know it's been a month, but I need some help getting this working. Here is what I did first:

Flash the latest TWRP OS2SD recovery here

Attempted to use the recovery to partition the SD card

At which point it gives me an error (Error 4 I think) making the FAT partition and leaves the partition table empty. The only way to get the SD card accessible again is to sideload AmonRa and partition it from there.

Next thing I tried was to partition the SD card with GParted. Just the SD card plugged into my computer, not the phone mounted as a USB drive. Putting the SD card back in, I could not seem to mount it or select a zip on it. So I had to use AmonRa to partition the card again, install TWRP 2.7.0.0 for sideloading support, sideload the TWRP OS2SD recovery and repartition the SD card on my computer. I did all of that and it seemed to go smoothly. Plugged the SD card back in and sideloaded LineageOS. The installation completes "successfully", with errors mounting partitions to /system and /data, and the ROM doesn't seem to boot.

I think the problem might be that for some reason not all the partitions are /dev/mmcblk0p1, /dev/mmcblk0p2, /dev/mmcblk0p3, and /dev/mmcblk0p4. The mounts I see in fstab.p500 are /system mounted to /dev/mmcblk0p2, /data mounted to /dev/mmcblk0p4, and /cache mounted to /dev/mmcblk0p8.

Whether or not this is the problem, why can't I mount the SD card properly and how do I fix this?
[Optimus One, P500 Android Development] ibub:
Mount os2sd system and os2sd data and use the file manager in twrp to see if the partitions got flashed. If they are indeed populated, then the os2sd boot.img may not have been installed. Without this boot image os2sd doesn't work. On the other hand, If system got flashed to internal system partition, then you may have installed it while in internal mode instead of os2sd mode. You can also check your partitions from wipe > advanced wipe menu > repair partitions , to see if they are formatted to the proper file systems (system and data are ext4).
[Optimus One, P500 Android Development] bikeride34:
Are there separate Internal/OS2SD modes in the latest recovery,

lineage-11.0.1-20170422-OS2SD-p500.zip? If so, how do I change the mode?
[Optimus One, P500 Android Development] ibub:
Sorry, I forgot I use the previous twrp-multi which has both modes under the advanced menu. But you should still be able to view the os2sd partitions from the file manager. And I was mistaken about data format. It's f2fs, not ext4.
[Optimus One, P500 Android Development] bikeride34:
Also, I've been using a gpt partition table in GParted, is this correct? msdos can only have one primary partition.
[Optimus One, P500 Android Development] ibub:
Sounds familiar, but I really don't remember. It's been a couple of years since I used gparted to partition this SD. Did you find file systems in those partitions?
[Optimus One, P500 Android Development] bikeride34:
First, I partitioned the SD card on my computer using GParted. It's gpt with, in this order, a 7 GB FAT32 partition for sdcard, a 500 MB ext4 partition for /system, a 357 MB swap partition, and a 7 GB f2fs partition for /data.

Next, I put the SD card in and sideloaded the latest TWRP (I had a different, older version of TWRP trying to get a different rom before getting a reply here).

Finally, I rebooted into the latest TWRP and sideloaded the latest build of LineageOS. I didn't install from SD card because I know from trying it before that even though the computer can read and copy files on it, the phone cannot when put in USB mode with this partition scheme. When flashing the rom, I got the messages:

mount: failed to mount /dev/block/mmcblk0p2 at /system: Invalid argument
unmount of /system failed; no such volume
mount: failed to mount /dev/block/mmcblk0p4 at /data: Invalid argument
unmount of /data failed; no such volume
script succeeded: result was [/system]

Rebooted into the recovery again to make sure everything was refreshed. It warned me that there was no OS installed, I continued anyway. In the mount menu I was able to mount the /system and /data partitions, but not SDCard. Looking through the file system, /system is populated all right, it seems. /data is only populated with an empty lost+found folder, however. /boot is unpopulated, I'm guessing that's where the boot img should be.

This is interesting. Following your advice, I went to repair file system to look at the partition details. /system was the proper size, about 7 GB, and the proper filesystem, ext4. However, /data was only 484 MB and using the ext4 filesystem, when I had originally formatted it in GParted as f2fs. So I'm guessing that flashing /system went okay, but flashing /data did not.

EDIT: Looking at the SD card from the computer, the partition scheme remains the same, but /data is unpopulated.
[Optimus One, P500 Android Development] ibub:
Data filesystem won't be built until after first successful boot. /boot won't show as a file system, because it's been compressed into an image. You could copy boot.img from the LineageOS.zip and use twrp to install it by selecting "install image" in the install menu. After selecting boot.img be sure to select to install to boot. I had a similar problem once and boot.img fixed it.