yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500, V General] HardLight:
OS2SD for any rom ​

As I see there is many P500 users interested to put their ROM to sd card, so I'm providing this tutorial how to make any rom bootable from sd.

Requirements:

Linux or cygwin for Windows

Boot.img tools

Modified updater-script

Modified fstab

Correctly partitioned sdcard (Guide)

TWRP-OS2SD or TWRP-MULTI

Steps:

Replace updater-script in your's ROM zip with provided. It will probably work with all kitkat based roms. If not the idea is mounting /system on sd card so change all "mount("yaffs2", "MTD", "system", "/system");" lines with "mount("ext4", "EMMC", "/dev/block/mmcblk0p2", "/system");" in original updater-script

Extract bootimg-tools.zip and paste boot.img from your rom in same foder

Open terminal or cygwin, locate folder with boot.img tools and type "./extractboot boot.img"

This will create out folder. Replace fstab.p500 and init.qcom.rc in out/ramdisk with provided (they might need rework on older roms)

In terminal type "./packboot"

Now rename boot_new.img to boot.img and pase it to rom zip

Flash rom zip with one of provided TWRP versions
[Optimus One, P500, V General] bigsupersquid:
should probably work back thru 4.0 but froyo/gingerbread init won't mount any sd partitions before boot is completed.

just curious, why this partition layout?

I used p2 for /data until wiping it by accident several times swapping my sd to a phone with pre-os2sd recovery.

of course, I've modded my own os2sd partition map several times now experimenting, and the order doesn't seem to matter.

and i was wondering, could you post your twrp modifications for internal/os2sd hybrid? i had one kinda working but it was glitchy.
[Optimus One, P500, V General] HardLight:
I used this configuration to keep swap working if enabled, because default is p3. Also p4 for /data because it not used by anything else, so it's safe. I think you are right, order doesn't impact performance. Will send you config of twrp then be on pc.
[Optimus One, P500, V General] bigsupersquid:
I'm not seeing any other ROMs of this style floating around.

The only reason I didn't leave p3 for swap is that it wasn't being used yet when I started with the os2sd stuff. I tried sticking it on p2 (instead of the stubby sd-ext I had there to satisfy the odd this-or-that which demanded sd-ext,) and that worked ok, but I hadn't set sd-swap as a default in any builds.

since you're building similar stuff now, maybe I'll drift mine into your partition map in the interest of some sort of unification. and I'd like to match up the twrps, too.

especially if the sd-swap is working well on the p500.

everybody who's been dealing with my versions for any length of time now since it came out in February, is used to having to upgrade recovery and deal with incompatible backups from earlier releases anyway.

thanks for your contributions.
[Optimus One, P500, V General] msilwal322:
Thank You

Thank You for posting the guide as requested. :) Awesome, now I will try to make some ROMs bootable in sdcard, and try them in my phone. :D
[Optimus One, P500, V General] danielboro:
i think that you are wrong

i have a gingerbread installed on SD (and kitkat CM11 by mukulsoni on internal)

i used Multirom manager 5.1 by arnab321 based on work by Tassadar

http://xdaforums.com/showthread.php?t=1828151

HardLight: can you make this procedure work like the one in Multirom ?

it allows me to have GB and KitKat installed at the same time, both are bootebel using the same recovery and im only a boot away from moving from one to the oder
[Optimus One, P500, V General] bigsupersquid:
multirom has preinit of its own, runs before GB init, and uses busybox to mount sd folders. It also mods init.rc to not mount the MTD partitions.

it would have to be recoded because, among other things, init.rc doesn't mount the filesystems anymore, it's moved to init.qcom.rc or init.device.rc (init.p500.rc or init.thunderc.rc in the current OS2SD versions.)

to use OS2SD like multirom, it would have to bind-mount folders or filesystem images from the card instead of mounting partitions directly, unless android can 'see' more than 4 card partitions now. It used to be limited to 4 back in GB.

Plus unless kexec is working every OS installed has to work with the kernel in the boot.img for tasssadar's original code (the app you're using is reflashing a new boot.img every time you change OS's, which will eventually trash your boot NAND memory,)
[Optimus One, P500, V General] danielboro:
ill start at the end

flashing boot is no worse then flashing a new rom but its less work and less time

i like GB for the speed and batt use but from time to time i need to run ting that wont work on GB(at list not on the 1 i chose after trying ~12 rom`s)

having kitkat installed and using multirom to change is faster

so, any chance of implementing the bind-mount option?

prite please

:fingers-crossed:

:D
[Optimus One, P500, V General] HardLight:
Just install your GB rom to internal memory and cm11 OS2SD to sd card, then make two flashable zips (or backups) of both roms boot.img and flash them respectively to rom you want to boot. Just keep in mind that GB won't be able to use sd-ext, because it's os2sd system partition.
[Optimus One, P500, V General] danielboro:
this is way i was hoping for the mount-bind

at the moment GB is on P2, swap on P3 and kitkat uses P4 as /sd-ext

i have some limited knowledge, ill try to see if i can do something wen ill have the time

any pointer on how i can use mount-bind ?

all the work on developing the p500 helps extend it life

thanks

p.s.

what is the MULTI in TWRP-MULTI?
[Optimus One, P500, V General] xdema:
the multi can flash os2sd & normal rom, so you have not to change between recoveries
[Optimus One, P500, V General] function06:
ThAnKs

Thanks alot for this guide.....:D
[Optimus One, P500, V General] nomancoolboy:
have anyone tried it on an ICS rom ?
[Optimus One, P500, V General] nomancoolboy:
getting this error using cygwin

maybe it doesnt work with cygwin , i am trying to make genetICS 9.1.6 OS2SD compatible ..
[Optimus One, P500, V General] bigsupersquid:
For starters , you need Perl installed for that script.

Second, ics don't use fstab, you'll have to change init.rc

And maybe even recompile init with a delay inside, like on GB.

otherwise init may not mount the card partitions.

The easy way to run ICS from card is tasssadar's multirom. You can find the thread buried in this forum.
[Optimus One, P500, V General] manu3193:
I'm using HardLight's GenetICS 9.1.7 with the OS2SD mod. It's the most stable and smoothest with long battery life and 1.5GB in the data partition for my apps. Also successfully made it with Hephappy's ICS Plus simply modifying the updater-script inside the zip and search the mounting points in the 'init.rc' and 'init.qcom.rc', then just have to modify the lines following the first post.

Greetings from Costa Rica!

Enviado desde mi LG-P500 usando Tapatalk
[Optimus One, P500, V General] ibub:
[MENTION=4974969]HardLight[/MENTION]

This is twrp-multi, renamed to boot.img. I have previously extracted recovery images this way using apktool.

eric@eric-Vostro-1500:~/bootimg-tools$ ./extractboot boot.img

Page size: 2048 (0x00000800)

Kernel size: 2803424 (0x002ac6e0)

Ramdisk size: 2294087 (0x00230147)

Second size: 0 (0x00000000)

Board name:

Command line: mem=471M console=ttyMSM2,115200n8 androidboot.hardware=p500 no_console_suspend

Writing boot.img-kernel ... complete.

Writing boot.img-ramdisk.gz ... complete.

gzip: ../../boot.img-ramdisk.gz: not in gzip format

cpio: premature end of archive

Any other tools needed to make this work? (ubuntu 14.04)
[Optimus One, P500, V General] nomancoolboy:
Can you share the modified files to be replaced in the rom.
[Optimus One, P500, V General] eldamobo:
hi all - thanks for these instructions. I tried to apply these to cm-9.1.5-GenetICS-Final-P500+gapps.zip and cm-9.1.7-GenetICS-HardLight-p500.zip.

In those roms I had to update the updater-script (I had to remove the format command otherwise the install would fail - but i figured that should be ok since the ext4 partition can be formatted externally - if i remember to do it).

I also updated the init.rc in the (mount mtd partitions section), but no updates to the init.qcom.rc

Each time I try to install a ROM, the device gets stuck at the LG boot logo.

I get the same problem with those zip's installing from TWRP MULTI's "Internal" mode. So I suspect something else is wrong...

interestingly, the only zip I can install successfully is the cm11.0.0-20160101-os2sd-ext4-p500.zip. Works like a charm, just dies in a matter of hours with Wifi on.
[Optimus One, P500, V General] bigsupersquid:
roms not built for kernel swapped system/userdata (kitkat only built this way, and not older kitkat versions) will flash to the wrong partition and won't boot.

change your updater-script to switch system and userdata for older roms to flash correctly with the twrp-multi in internal mode.
[Galaxy S II Q&A, Help & Troubleshooting] aboycalledanuj:
Hello,

I recently tried updating a Korean Galaxy S2(250S model). Unfortuantely odin was stuck in the middle and since then the phone is not getting power on. I tried download and recovery modes but no luck. But while putting it on charge the battery is getting charged(without any display on the screen) and the phone is heating up very quickly.

I tried making USB jig by own with 301K resistor but no luck then also.

Looking to get some quick suggestions...

Thanks.
[General Questions and Answers] Kobro:
is there a keyboard that is also a keylogger and will let me see what has been typed on a device using that keyboard?
[General Questions and Answers] zelendel:
Keyloggers are an invasion of privacy and illegal. As such not allowed to be talked about here.

Thread closed
[G3 Q&A, Help & Troubleshooting] ohadb2:
Hi,

I uses an Israeli widget of popular news site.

I tried to put the widget at the center of my screen but I can align it only to left side or to the right side.

The widget is 2x4 and I can't resize the widget (Like I do with gmail\calendar widget).

Anyone know how to stretch the widget or how to center it?

I added a picture to show how it's looks, but it is in Hebrew so sorry for that.

(I painted an arrow to mark the widget)

Thank you !

Ohad.
[G3 Q&A, Help & Troubleshooting] dex.:
if you are rooted then use g3 tweaksbox and change the LG launcher homescreen to a custom grid size with a width of 6 rather than the default 5.
[G3 Q&A, Help & Troubleshooting] ohadb2:
Thanks for your reply.

My LG isn't rooted. Any other idea without root it?

Thank you again.
[G3 Q&A, Help & Troubleshooting] shook187:
use Nova launcher
[G3 Q&A, Help & Troubleshooting] ad78:
No need to have a 3rd party launcher. Just tap and hold the widgets and from there you can see all four corners. Put your finger in there and you can drag what size you want
[G3 Q&A, Help & Troubleshooting] ohadb2:
I know this option, But on this specific widget I don't have the four corners and change the size.
[G3 Q&A, Help & Troubleshooting] shook187:
You gotta use a third party launcher, there's no way around it
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pablete:
Hi All

I used the unlocker v2a and it worked great, but since then I just realized that sometimes my phone looses the GPRS or 3 G signal and put an x (but it still has signal GSM because the phone works). It happens when it looses the signal (i.e.: in the tube), after going to open air again it gets GSM signal but it keeps the x on the G or 3G space. I go to "Flight mode", the activate it, and the de-activate it to get the phone function working again and then it starts working well (with G or 3g symbol) again. I don't know if I explained myself properly. Hope it's nothing related with the unlocker and just a temporary and strange behaviour.

Thanks for your help
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
Upgrade your radio to a non patched one if you are not happy with the patched radio. BTW, the issue should not be related to the unlocker.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pablete:
Just don't know

Hi POF,

I just said that it's a possible issue, but don't know!

If nobody is having a similar issue I assume that isn't related to the unlocker!!

Do you reccomend to update the radio to a non patched one?, which one?

Thanks a lot
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
In vodafon spain I'm quite happy with 1.16 :)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pablete:
I'll follow your advice

Ok, I will stay with 1.16. One stupid question: is it possible that this Radio version works better when using Vodafone than with Movistar? I'm using both sim cards.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
You can flash the unpatched 1.16 i'ts linked on the wiki.

I'm also using both... voda contract and movistar prepaid... Haven't used movistar for data dough, but it's just fine for calls.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pablete:
Stupid guy

POF, sorry for bothering.

1)The unpatched version is better (or more stable) than the patched one?. If yes I'll upgrade. I'll follow your reccomendation. You're the master! :eek:

2) After reading the Wiki still not clear if I should start from Bootloader mode or not!

Thanks
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
1: should not be any difference, but just to make sure your problem is not related to the unlocker, flash the unpatched one.

2: It doesn't matter... but I always prefere to start from bootloader and with activesync disabled, it can avoid problems some times.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pablete:
Weird Things happened after unlocking my phone

i All

Maybe I'm paranoid, but after using the 1st unlocker and the the Version2a one I notice some strange things:

- In Today screen, the unread messages show wrong info (my mail is empty and it keeps saying I've got 2 messages!)

- Sometimes the 3G connection starts alone (Push email disconnected and ActiveSync on manual updates)

- It gets blocked sometimes and I must soft-reset (in the past it worked very well)

- After recovering the lost signal, it doesn't recover the 3G or G symbol (it puts X), but it has GSM signal.

My question is:

- Is there any solution without hard-reseting?

- Is there any good ROM and/ or RADIO that will fix my issues?

Thanks!!!
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
I joined your two posts in one, there is no point in opening a new thread.

Again, your problems have nothing to do with the unlocker, I really don't understand why you keep insisting on that.

Hard reset and set up your settings correctly, this will fix your issues.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pablete:
?

POF

Sorry for opening a new post.

I'm just saying that it all started after using the unlocker, don't take it persoanlly!.

If nobody has issues with it it's clear it's not related with your program. If I do Hard Reset I will loose all my programs, right?

You say, set up your settings correctly. How do I do that?

Will it remain unlocked?

Thanks
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
Yes

By searching your problems and trying to find the cause... see below:

http://xdaforums.com/showthread.php?t=280091

http://xdaforums.com/showthread.php?t=227517

http://xdaforums.com/showthread.php?t=260465

http://xdaforums.com/showthread.php?t=283153

http://xdaforums.com/showthread.php?t=261283

http://xdaforums.com/showthread.php?t=283400

http://xdaforums.com/showthread.php?t=264379

http://xdaforums.com/showthread.php?t=270294

http://xdaforums.com/showthread.php?t=253519

http://xdaforums.com/showthread.php?t=274254

http://xdaforums.com/showthread.php?t=280383

http://xdaforums.com/showthread.php?t=280383

http://xdaforums.com/showthread.php?t=283104

I leave this one for you... won't do all _your_ work :-P

Yes, it will remain unlocked forever.
[G3 Themes and Apps] XxZombiePikachu:
Hey everyone so I am bringing to you a mod that I have been working on for the g2, it is a simple mod that can arrange icons and even theme them to look differently. Hopefully everyone enjoys the mod and whatever may be in stored for the future.

The Screenshots:

G3 Stock and IOS Icons

G3 L Icons

Download links and instructions can be found in the second post

Future Updates Include:

-Any Request?

Any Bugs

- NO BUGS That I Know of

A big thanks goes to:

[MENTION=4734434]shooterlgk[/MENTION] and [MENTION=5075873]uknowme4me[/MENTION] who have done all the testing and made it possible for me to bring you guys this mod.

[MENTION=4315551]Ticklefish[/MENTION] and [MENTION=5240311]rastigo[/MENTION] for there tools, guides and the help they have provided to me in the g2
[G3 Themes and Apps] XxZombiePikachu:
Important Information and Download Links

Instruction Please Read

How To Restore:

Since the mod is made to support all of the g3 models it would be a rather difficult to maintain a bunch of systemui restore zips, so instead I designed one restore zip which anyone can use:

-download the odex or deodex version depends on your rom:

odex systemui restore zip

deodex systemui restore zip

-unzip on your pc or phone

-copy your lgsystemui.apk and lgsystemui.odex(if your rom deodex this won't be there) into system/priv-app

-rezip and now you have a flashable restore zip

IF YOU DO NOT BACKUP YOUR SYSTEMUI THEN DON'T COMPLAIN IF SOMETHING GOES WRONG

How to install:

It is recommended to have custom recovery to be able to use the mod but if you don't then you can just extract the systemui and replace yours with it:

-using root explorer delete you systemui.apk/odex

-copy the modded systemui and add rw-r--r-- permissions

-reboot and enjoy

Download Links

Stock Icons (uses stock icons)

Stock

Center Clock

IOS Style

IOS Icons (uses ios icons)

IOS Style

L Icons (uses android L icons)

Stock

Center Clock

Date on the Left

IOS Style

THIS IS YOUR DEVICE SO YOU DO WHAT YOU WANT WTH IT, I CANNOT BE HELD RESPONSIBLE IF SOMETHING GOES WRONG
[G3 Themes and Apps] CheesyNutz:
nice work im glad to see more and more modding going on
[G3 Themes and Apps] Upstreammiami:
Please add a percentage battery
[G3 Themes and Apps] XxZombiePikachu:
battery witch percent on inside? will consider it I still have work to be done on the g2 version which needs support for the different rom bases but afterwards will bring more stuff over here
[G3 Themes and Apps] Upstreammiami:
Yes..... Thanks
[G3 Themes and Apps] zmeeed1:
How to install? I installed to recovery, but nothing changes
[G3 Themes and Apps] KiNG OMaR:
Is it possible to remove the ugly gray gradient in the status bar? Solid black or even solid gray would be much better.
[G3 Themes and Apps] Pure+:
Installation instructions?

Sent from my LG G3
[G3 Themes and Apps] ria4life:
Cant seem to get it working...IOS7 theme

deodexed..using g3 tweakbox
[G3 Themes and Apps] shooterlgk:
Just flash in recovery
[G3 Themes and Apps] XxZombiePikachu:
To install you must have custom recovery and it is a simple flash and done

Will take a look the layout doesn't specify a specific color for the statusbar, just calls out to an image but should not be hard to implement a mandatory color on statusbar and as mentioned in op I do not own a G3 so don't know much about it

Hey what are you using g3 tweaksbox for, I do not own the g3 and the person who did all testing never had any problems on both odex/deodexed systemui, he also did not use xposed but until now O have never had any problems using the mod in combination with xposed on the g2
[G3 Themes and Apps] The Kid Cassidy:
Okay G3 851, flashed IOS styles pack...nothing changed except my normal icons are on the left. Flashed Left icon style pack and same thing? I have G3 tweakbox and I know you don't need that with this mod. But just in case that could be the culprit I turned off status bar mods then flashed but still nothing...wish I knew why?

Everything I do or have is custom.... Period.
[G3 Themes and Apps] XxZombiePikachu:
the styles packs are designed to only move the icons around and you need to flash the icon pack if you want the ios icons; the reason for this is because not everyone including myself like the ios icons but like the ability to have a different looking statusbar, shooterlgk who was the main tester tested the mod using d851 t-mo variant so the mod should work for you no problem if it isn't working than pm me with your framework folder and the lgsystemui.apk/odex and I will get to the bottom of the problem
[G3 Themes and Apps] The Kid Cassidy:
Okay, sorry makes sense now...thought they were included in all zips just moved around via name of zip. Thanks bro!

Everything I do or have is custom.... Period.
[G3 Themes and Apps] XxZombiePikachu:
no worries I had forgotten to put a little explanation into how they work(I had to do same in g2 thread when I rebased mod to use vrthemer to be able to support more roms without needing so many zips) but I added some info and it will help with anyone who has any further confusions
[G3 Themes and Apps] p70shooter:
Just tried this on my d855 but flashed in recovery and no change. Have got xposed and tweakbox running don't know if that makes a difference.

Edit Just uninstalled xposed and flashed again but still no change.
[G3 Themes and Apps] cnn888:
not that i don't appreciate what the op had done, don't get me wrong. i do like the idea of making your android "different".

but i just look at it as a sad thing to see. i mean if you want ios theme, if you love the ios theme, why don't you get iphone instead?

nice to see the creativity though... :D
[G3 Themes and Apps] The Kid Cassidy:
This mod only over writes the stock icons so you need to change your status bar icons back to stock in tweakbox....otherwise tweakbox over rides. Found this out myself last night.

Everything I do or have is custom.... Period.

---------- Post added at 08:58 AM ---------- Previous post was at 08:49 AM ----------

I understand what your saying but while droid reigns supreme to the iPhone....the iPhone does have a few nice things like the signal dots...they look slick! And all this does is change the stat bar icons..not the whole phone.

Mods like this are brilliant because you can combine the best of both phones and don't have to settle for one or the others limits.

Everything I do or have is custom.... Period.
[G3 Themes and Apps] cnn888:
ofcourse dude, no offense intended.
[G3 Themes and Apps] PC400:
Support lollipop?
[G3 Themes and Apps] teddy beer:
Any chance to have icons similar to latest cm rom??
[G3 Themes and Apps] PC400:
Please, could you create one version for lollipop?

Pack name, iOS Style.zip

Thanks!

I am using chupa chups 4.2.
[G3 Themes and Apps] phillymade:
Like the mod, but it will not work on VS985 (Verizon) on stock rooted 4.4.2

Any suggestions on how to make compatible?
[G3 Themes and Apps] deo_T90:
+1 plss :p
[G3 Themes and Apps] ajmeireles2015:
I flashed the theme IOS for CloudyG3 2.2 but he dont working.

Cant support the Lollipop or this rom?
[G3 Themes and Apps] big88moe:
Is it possible to make a mod with stock g3 icons and center clock (normal clock without date) and circle mod with 1% increments? If you do that would be super awesome :D
[G3 Themes and Apps] jbudness:
I'm sorry I just tried this on my VS985 running Jasmine 4.0 and it done the same thing that everyone is speaking about. I got the systemui fc loop. Any ideas as to what I'm doing wrong because I would love to use this mod.

Sent from my VS985
[G3 Themes and Apps] daredavel:
Doesn't work on my CloudyCat6 1.0 rom (LG G3 F460S)
[G3 Themes and Apps] QSR1:
Work for G3 Dual?

Thanks for beautiful work!

I have read the 1st and 2nd post but i could not find the device models. Please tell that for which models and android versions these systemui will work?

As far as i know, systemui is specific for device model as well as rom. Will it work for my G3 dual D858HK (Kitkat, 10D)?

Thanks very much!
[G3 Themes and Apps] diam_84:
Any lollipop update?
[G3 Themes and Apps] Benholder90:
Is this supposed to work for g3? Intalled zip in twrp and nothing happened
[G3 Themes and Apps] Imperiuz:
update pls
[G3 Themes and Apps] Mercz23:
Can i flash ios style on flumics 5.0 rom ?