yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Android Development] bikeride34:
Thank you! That got it to boot! Flashed GApps too, but there are still problems.

/data is only 500 MB. It should be 7 GB. How do I fix this?

There's no cellular. I guess there's a baseband zip that I'll have to flash?

And Unfortunately, Google Play Services keeps crashing. I guess that's not a related problem, though.
[Optimus One, P500 Android Development] ibub:
Hey, that's great! Yeah, GAPPs has been a problem, but there are alternatives posted late in this thread. Just reflash system without gapps. Baseband zip might not flash to the os2sd system. If it doesn't, then you will have to unzip it and copy the contained lib files, overwriting the existing files (in /system/lib, I think). The portion of your /data might be able to be recovered via gparted. Run it in Linux, it's better.
[Optimus One, P500 Android Development] bikeride34:
It seems that all of the flashing went wrong. The first partition was intended to be /sdcard, the second was intended to be /system, the third was intended to be swap, and the fourth was intended to be data. Instead, the first partition is /system, the second seems to be /data, the third is swap (as intended), and I don't know what the fourth is because I can't browse it on my computer, but GParted shows it being populated.

I know I said that /system was correctly flashed to a 7 GB partition in a previous post. I was confused.

I have attached photos.
[Optimus One, P500 Android Development] ibub:
Yeah, gparted is also showing the partitions out of order. /dev/mmcblk0p1 should be vfat, /dev/mmcblk0p2 shows last in the list as f2fs. This is system, and explains why you are actually able to boot. /dev/mmcblk0p3 listed second shows as ext4 but should actually be swap. /dev/mmcblk0p4 (third on the list) shows as swap but should actually be data. So I'm betting that all of the data structure is written to swap, and gets washed away on every power down or reboot. WOW
[Optimus One, P500 Android Development] bikeride34:
This does, however, reflect the order that I created the partitions in GParted. I started with a 7 GB partition at the beginning, next a 7 GB partition at the end, and finally the two in the middle. I didn't think that would have an effect on things. Plus, doesn't it vary from system to system whether a partition is shown as /dev/sda1 or /dev/sda2? I was expecting that phone would put the first partition on the disk as /dev/mmcblk0p1, the second as /dev/mmcblk0p2, etc... Why would it not do that?

Rebooted the phone, apps I downloaded are still on there. Data is persistent, on the second partition of the sdcard. Maybe the partition scheme the installer expects has changed from OP? /system on the first partition, /data on the second, swap on the third and /sdcard at the end?

Also, to confirm, is the sdcard partition supposed to be FAT32 or VFAT?
[Optimus One, P500 Android Development] ibub:
Yeah, It looks as if the partitions were numbered in the order that they were created. My fat partition is listed in twrp as vfat.
[Optimus One, P500 Android Development] HardLight:
LineageOS 11.0

20170704 build uploaded!

Changelog:

Download

Android File Host | XDA
[Optimus One, P500 Android Development] HardLight:
LineageOS 11.0

20170718 build uploaded!

Changelog:

Download

Android File Host | XDA
[Optimus One, P500 Android Development] windmane:
deleted
[Optimus One, P500 Android Development] hemanth_ryu_hayabusa:
open gapps problem

Guys i cant flash open_gapps-arm-4.4-pico-20171006.zip with lineage-11.0.1-20170718-OS2SD-p500.zip , any idea , 1 am on 1 GB sdcard (lol) .

##############################

_____ _____ ___ ____

/ _ \ | __ \ / _ \ | _ \

| / \ || |__) | |_| || | \ \

| | | || ___/| __/ | | | |

| \ / || | \ |__ | | | |

\_/ \_/ |_| \___| |_| |_|

___ _ ___ ___ ___

/ __| /_\ | _ \ _ \/ __|

| (_ |/ _ \| _/ _/\__ \

\___/_/ \_\_| |_| |___/

##############################

Open GApps pico 4.4 - 20171006

- Mounting /data /system

- Gathering device & ROM information

awk: /system/etc/permissions/android.hardware.camera.front.xml: No such file or directory

awk: /system/etc/permissions/android.hardware.camera.xml: No such file or directory

* Incompatible GApps Currently Installed *

This Open GApps package can ONLY be installed

on top of an existing installation of Open GApps

or a clean AOSP/CyanogenMod ROM installation,

or a Stock ROM that conforms to Nexus standards.

You must wipe (format) your system partition

and flash your ROM BEFORE installing Open GApps.

******* GApps Installation failed *******

- Copying Log to /sdcard

- NO changes were made to your device

Installer will now exit...

Error Code: 40

cp: can't stat '': No such file or directory

cp: can't stat '/system/default.prop': No such file or directory

cp: can't stat '/data/local.prop': No such file or directory

cp: can't stat '/build.prop': No such file or directory

- Unmounting /data /system

Updater process ended with ERROR: 40

I:Legacy property environment disabled.

Error installing zip file '/sdcard/open_gapps-arm-4.4-pico-20171006.zip'

Updating partition details...

...done
[Optimus One, P500 Android Development] niral.naik:
Wanna sell LG p500 call me +91-9429992192
[Optimus One, P500 Android Development] HardLight:
LineageOS 11.0

20171108 build uploaded!

Changelog:

TWRP 3.1.1

Download

Android File Host | XDA
[Optimus One, P500 Android Development] linuxgeex:
This is really brilliant.

My new phone went for a saltwater swim so I fired up my old LGP500 and decided to install CM, found this thread with LineageOS still being updated, installed the MULTI TWRP and flashed this ROM.

I'm not 100% certain that I partitioned the SD correctly because it complained about /data while installing, but GParted showed all the correct partitions in the correct order, and it booted fine. In Settings->Storage I don't see any management options for SD-EXT, but it all seems to be running fine so far.

Next step: getting GAPPS / microG and some useful apps installed.

Could you update the first post with latest GAPPs link and maybe some words of wisdom/experience with the switch to microG? My previous phone was still in support so the Play Store worked just fine.

A different CM11 ROM I flashed came with GAPPs and I was able to log in, get my contacts, but everything in the Play Store complained about compatibility. So any ideas re: alternate appstore or comments about microG plus sideloading would be great... I realise you don't get many new users any more but you never know maybe others will migrate here from other CM11 ROMs and seeing that they can get access to some working apps would probably encourage them. :)
[Optimus One, P500 Android Development] linuxgeex:
Going from locked Froyo LG P500 to LineageOS 11.0 - Part II

Okay, so I downloaded gapps-4.4.4-20161215-OS2SD-p500.zip

o "unfortunately, the process com.google.process.gapps has stopped" - while running setup.

o back button a few times, cancel google account setup steps, developer mode, performance, swap on, try again fingers crossed.

o "There was a problem communicating with Google servers. Try again later."

o Reboot, fingers crossed again.

o "Unfortunately Google Play Services has stopped" - before I can even get to the account settings. [ok] and proceed with account setup anyhow.

o "There was a problem communicating with Google servers. Try again later."

o Open browser, google search "lol cats" comes up fine.

Wipe all partitions, re-flash, try GApps_4.4.4-20150511-OS2SD-p500.zip.

o regular crashes after setup but at least it syncs my contacts.

o setup->apps->downloaded->uninstall updates, then disable both

o now phone is stable, but no play store.

o backed up, I'll try adding microG tomorrow.
[Optimus One, P500 Android Development] josehbermudez:
Guys go directly for microG. Hardlight customed this rom hardly enough to get OS2SD, deodexed and patched with signature spoofing to get it ready for microG. Beyond that, he is always updating the rom with last android security patches. Do no hesitate. Check this thread completely, there are links to Marvin' s microG thread or simply google it here on XDA and follow strictly the instructions.

You'll need to clean flash everything. Get a good 16GB class 10 microSD.

For apps to get working you'll have to use a try/fail process one by one. Look for older versions and try until you get the one is working. Remember playstore apps developers are focused just on high end phones. Old phones have old processors and compatibility is not always checked.

That al said, Enjoy your tiny P500 old monster bring back to a real new life!

Enviado desde mi Galaxy Tab 2 mediante Tapatalk
[Optimus One, P500 Android Development] HardLight:
It is really great that our old phone still gets some new users and I am happy that this project helps to keep it alive. :)

Thank you for sharing your experience with steps for installing this rom. If you don't mind to put some your time into making somewhat a guide (maybe with part of how to set up microG on this device) I would gladly reference it in the OP for future newcomers.

By the way, I am not sure why did you need libgstk_exp.so, libpbmlib.so, and libwms.so from stock rom, because these libs are included in LOS build and calling, sms and data is working here, maybe your baseband version is different...

It is very important to choose fast sd card for this project, as you did. Flash storage in p500 is slower compared to high/mid end sd cards that are on market today. (Side not 12GB /system partition is a bit overkill :) )

About microG, I totally agree with [MENTION=5252269]josehbermudez[/MENTION]. MicroG is only way to get Google services working on p500 nowadays. I will say it can be tricky to set it up, but it's absolutely worth it.

Here are some short insights:

remove all gapps (wipe system and flash rom again)

install f-droid and add microg repo (https://microg.org/download.html) it will be useful for future updates of microg

follow installation guide on wiki https://github.com/microg/android_packages_apps_GmsCore/wiki/Installation

important first install older version of Services Core 0.2.4-81 (https://microg.org/fdroid/repo/com.google.android.gms-10545451.apk) because there is issue adding google account on newer versions on kitkat. Read https://github.com/microg/android_packages_apps_GmsCore/issues/368 for more info. After setting account program must be updated to latest version.

choose fake store for play store imitation and Yalp Store as true replacement (also can be found on f-droid)

as location backed you can use MozillaNlpBackend (easier to setup) or LocalGsmNlpBackend (local database, no data needed)

Good luck!
[Optimus One, P500 Android Development] Sofos:
I installed TWRP 3.1.1-0 but can't install the latest ROM, got errors during installation:

Failed to mount /data (No such device)

Failed to mount /system (No such device)

What can I do with that?
[Optimus One, P500 Android Development] josehbermudez:
Are you following all steps of the OP? Have you partitioned your class 10 microSD as described?

Enviado desde mi LGLS450 mediante Tapatalk
[Optimus One, P500 Android Development] ibub:
Looks like I missed a new build earlier this month (20180306). Might need to give it a go. ;)
[Optimus One, P500 Android Development] jayc137:
Glad to still see some activity on this forum. Is anyone still using this as their primary device?
[Optimus One, P500 Android Development] josehbermudez:
Remember using microG Bro... No Gapps unless you like google. Works like a charm... No google registration needed. Use yalp store directly... Regards...

Enviado desde mi LGLS450 mediante Tapatalk
[Optimus One, P500 Android Development] zavan:
Instead of suggesting only why don't you make a working guide on how to install microg succesfully for P500?
[Optimus One, P500 Android Development] OldPhoneNewPhone:
SSL Problems

Hi, thanks for this awesome ROM! I just flashed it using lineage-11.0.1-20180306-OS2SD-p500.zip and twrp-3.1.1-0-p500.img. So far, it looks great, but I'm having some difficulties. Every https website in the broswer comes up with the error "This certificate isn't from a trusted authority". I've tried the default browser and Lightning browser, with the same results. When I try to set up gmail or outlook.com accounts using the default apps, I get the error "couldn't establish connection with server". I installed F-Droid and I get "Error getting index file". I beleive these are all related issues, that the phone is not able to establish a secure SSL connection. Based on some google searches, I made sure that my date and time settings were correct.

I went into TWRP and wiped everything and re-installed the zip, but that did not help.

Any ideas?

Thanks!
[Optimus One, P500 Android Development] OldPhoneNewPhone:
I solved the issue, sort of. By copying the contents of the ca-certs file from the android git folder (I would include link but I need minimum 10 posts for link) into the folder /system/etc/security/cacerts/, which didn't even exist, I now can browse the internet normally, and F-Droid was able to update the repo, so that's great.

I wonder why I got this issue in the first place, however.

One other question. When I wiped this and reinstalled again, I did not install gapps, but google play store and services are still installed on my phone. Is this normal?

Thanks!
[Optimus One, P500 Android Development] ibub:
Gapps gets installed to /system, so would not get wiped with a factory reset. Formatting or wiping of system gets handled differently by installer script and binary used. cacerts folder not included was probably just a build error. But thanks, that was a good catch. I couldn't sign into Google using that last build with 3 different gapps packages, so maybe that will fix it. ;)
[Optimus One, P500 Android Development] niral.naik:
Any developments?

---------- Post added at 08:08 PM ---------- Previous post was at 08:03 PM ----------

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

20180508 build uploaded!

Changelog:

Download

Android File Host | XDA
[Optimus One, P500 Android Development] Love_Addict:
Dear OldPhoneNewPhone, please tell me how to fix ssl error. If you can contact you in a social network, please specify the name exactly or send to E-mail please. :highfive:.

vetalco007@gmail.com

Thanks you soon!

ROM is really fast and comfortable.

Thank you and HardLight!

(20180508 build)
[Optimus One, P500 Android Development] Olestas:
Guys, I have a problem with internet access as previous posters. Google play and browser says no certificate. Can this build be corrected to have correct certificates? Or someone explain how to add needed certificates easy way?
[Optimus One, P500 Android Development] ibub:
I have had success by simply copying cacerts folder from older lineage.zip version (2017), and then using Xplore File Manager to copy the folder directly into newest lineage.zip. Xplore handles this operation quite well, automatically repackaging the zip during the copy process. DON'T UNPACK THE ZIP. Copy folder directly into it using the path:

/system/etc/security/cacerts.

Then I rebooted to recovery and flashed the lineage.zip.
[Optimus One, P500 Android Development] Olestas:
Hmm, and I could get old lineage.zip where?

Thanks
[Optimus One, P500 Android Development] ibub:
The download link on the first post of this thread.
[Optimus One, P500 Android Development] QuantumAnant:
Damn!

I AM SPEECHLESS...

I was going to use p500 as a semi-daily-driver and saw this.

Thanks buddy!
[Optimus One, P500 Android Development] HardLight:
LineageOS 11.0

20180717 build uploaded!

Changelog:

Download

Android File Host | XDA
[Optimus One, P500 Android Development] SpookyGibson:
ROM flashing

Hi,

I have never flashed a ROM and I´m a bit confused. I was wondering which files of the lineage 11 should be put into which partitions of my SD card.

Thank you!
[Optimus One, P500 Android Development] techgeeknz:
I am quite surprised to still find active development and support ongoing for the LG Optimus One. Kudos to you, HardLight and the rest of the Android ARMv6 team.

SpookyGibson, you will need to first install TWRP custom recovery. There are a number of ways this can be done, but by far the simplest is:

1. Install "Android Platform Tools" (i.e. "adb" and "fastboot") and the universal Android USB driver on your computer.

2. Enable USB debugging on your phone.

3. Open a command prompt to the folder containing "adb", "fastboot", and "twrp-3.1.1-0-p500.img"

4. Type "adb devices". Tap the authorization message on your phone (if shown).

5. Type "adb reboot bootloader".

6. Wait for the message "Fastboot mode started" on the phone.

7. Type "fastboot boot twrp-3.1.1-0-p500.img"

If successful, your phone will temporarily load and boot TWRP. From there, you can make a complete backup of your phone (including the stock ROM and recovery), install TWRP properly, and then install LineageOS 11.0. I hope this helps, and welcome to the world of modding!
[Optimus One, P500 Android Development] SpookyGibson:
Hi techgeeknz, thanks a lot for explaining the TWRP process.

I also understand how to prepare and partition the needed SD card.

However what I do not really understand, which files need to be placed in which of the SD card's partions. Could you please explain that to me too? That would be great. Thanks.
[Optimus One, P500 Android Development] ibub:
The new ROM (lineage-11.0.1-20180717-OS2SD-p500.zip) will be copied to sdcard, which is the name of the primary FAT32 partition on your physical sd card. When you boot into twrp and choose this zip to flash, the recovery will automatically create directories and place all the system files into the directories on the second partition (/system) of your sd card. It will also flash a new boot image to /boot partition of your device. Since the boot image is what causes your system to be addressed at the second partition of your sd card, it is important to make a backup of your original boot image BEFORE flashing this ROM. Should any problems occur, you can boot into twrp and choose restore, and then choose your backup of your boot image to restore. This will allow access to the original ROM and data that will still reside on the original partitions of your device.
[Optimus One, P500 Android Development] ascattolini:
Hi,

I own a Lg Optimus One with LineageOS 11.0.1-20180306-OS2SD-p500 without GApps.

I am struggling with the following issues:

1) Whatsapp (version 2.18.92) says it will expire in 11 days. Every version > 2.18.92 I downloaded from apkmirror or from whatsapp website crashes (a message from the app says "oops: something goes wrong").

2) If I would try to upgrade Whatsapp using Play Store (I don't know if it will be ok), I should install GApps before. Can I still install GApps through TWRP without having to backup anything? Or cleaning data is mandatory for successful installation?

3) Trying the WATweaker to bypass Whatsapp expiration, but for some functions (expiration bypass is one of these) Xposed is required and I haven't still found any Xposed framework working on armv6.

What can I do? I have only this phone and I still need it for a lot more time. :crying:
[Optimus One, P500 Android Development] josehbermudez:
Bro please update your ROM to the latest release. Install latest microG release. Try again.

Enviado desde mi NX406E mediante Tapatalk
[Optimus One, P500 Android Development] ascattolini:
Does anybody successfully run latest whatsapp version on lg p500 with the newer lineageos?
[Optimus One, P500 Android Development] josehbermudez:
I have no longer this device. Despite of that a few advices:

Install microG, F-droid, repositories, yalp store and check from there backwards every single whatsapp version until find the last one that works for your device.

Remember Google is not eager to check apks running on older devices as optimus one.

Regarding your previous post. I assume you've installed microg. Hard light kindly enabled signature spoofing on this ROM. Then you only need to directly install microg and dependant apks on top of this ROM .

I must recommend stay on FOSS (far from gapps as possible) apks. There are alternatives to whatsapp. Even a FOSS telegram version.

Hope that this help you a little bit.

Enviado desde mi NX406E mediante Tapatalk
[Optimus One, P500 Android Development] zavan:
I wonder why HardLight didn't fix that yet. All 2018 images are "no internet connection" for some applications.
[Optimus One, P500 Android Development] ibub:
I took a little time to track down the source code which includes cacerts folder and its makefile:

https://android.googlesource.com/pl...4d22097346dd7849b92b9f36d0a0a7a8f3/CaCerts.mk

But since googlesource is included in android/manifest (as it must be) I don't yet know why cacerts (prebuilt) is not copied to the TARGET (/etc/security/Cacerts/
[Optimus One, P500 Android Development] the-her0:
Good to see that this device is less dead than I remembered.
[Optimus One, P500 Android Development] zavan:
Well I think this is a serious bug and must be fixed cause 2018 versions does not allow applications to have internet.

Except if this project has become just an autopilot compiling without checking if things are working or not.
[Optimus One, P500 Android Development] Bop4yN:
does anyone know how to turn it off?
[Optimus One, P500 Android Development] mikec_ca2:
hi,

First of, thanks for the hard work. I didn't realize that there are still new/updated rom for LG P500. Since I have some spare time during christmas, I have decided to experiment with this rom and see if I can re-use my dusty LG P500.

I have tried to flash 2018-roms, but due to the lack of certification I cannot login to my google account. I tried to use the "xplore file manager" hack by copying certificate from a 2017 rom to 2018, but the resulting zip failed to install.

several things I have tried so far:

- by installing just the rom and no gapp, the rom is indeed very fast and

- installing the rom with gapp (using links from the 1st post by OP) slows it down a lot. In addition, I always get the error message of: "unfortunately google play services has stopped"

- from time to time, I cannot login to play store because of it.

Is there a combination of which I can get a stable rom with access to Play Store?

regards,
[Optimus One, P500 Android Development] ibub:
I have used this method successfully
[Optimus One, P500 Android Development] FabianoT:
About security updates

Hi I'm thinking about updating and revive my old p500 with this Rom. Kitkat had lots of security vulnerabilities, is this rom updated to last security patches? which are the most recent security patches in this rom?

Thank you for providing kitkat to p500.

Regards
[Optimus One, P500 Android Development] FabianoT:
Only yo notify [MENTION=4974969]HardLight[/MENTION] that I think is the one with the answer to my previous post
[Optimus One, P500 Android Development] josehbermudez:
Why don't you just give it a try? That's you can do.

Last release is from July 2018.

Reading full thread isn't a big deal because isn't too long.

Hardlight, same as most of Devs, is always busy and involved in some different projects.

Remember P500 is really a legacy device.

Enviado desde mi NX406E mediante Tapatalk
[Optimus One, P500 Android Development] FabianoT:
Thank you,

surely I will, I thought this is a working ROM, it is surely far far better than the manufacter one.

I was just curious about the security level of OS patches, being an old kitkat 4.4.4, can you point me to a detailed changelog?

Regards
[Optimus One, P500 Android Development] josehbermudez:
as I wrote. Read full thread.

Post #472

Enviado desde mi NX406E mediante Tapatalk