yashsingh1/xdaforums huggingface dataset:
[ONE Android Development] dlhxr:
Switch Roms​

Just flash different boot.img to switch different roms.

Fastboot or recovery are both ok. Here is an example for recovery zip file.

1.updater-script in Install_2nd_kernel.zip

assert(getprop("ro.product.device") == "bacon" || getprop("ro.build.product") == "bacon" ||
getprop("ro.product.device") == "A0001" || getprop("ro.build.product") == "A0001" || abort("This package is for \"bacon,A0001\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
ui_print("Backup the Kernel in the Fisrt Rom");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
run_program("/sbin/busybox", "rm", "-rf", "/data/media/rom/1st.img");
run_program("/sbin/busybox", "dd", "if=/dev/block/platform/msm_sdcc.1/by-name/boot", "of=/data/media/rom/1st.img");
ui_print("Install Kernel");
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
ui_print("Done!");

2.updater-script in Restore_1st_kernel

assert(getprop("ro.product.device") == "bacon" || getprop("ro.build.product") == "bacon" ||
getprop("ro.product.device") == "A0001" || getprop("ro.build.product") == "A0001" || abort("This package is for \"bacon,A0001\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
ui_print("Restore the Kernel for the Fisrt Rom from Backup");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
run_program("/sbin/busybox", "dd", "bs=4096", "if=/data/media/rom/1st.img", "of=/dev/block/platform/msm_sdcc.1/by-name/boot");
ui_print("Done!");

Wipe Data​

Use zip files under recovery to wipe data. E.g. wipe system+wipe data+wipe cache

assert(getprop("ro.product.device") == "bacon" || getprop("ro.build.product") == "bacon" ||
getprop("ro.product.device") == "A0001" || getprop("ro.build.product") == "A0001" || abort("This package is for \"bacon,A0001\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
ui_print("Wiping data...");
unmount("/data");
run_program("/sbin/mkdir", "/realdata");
run_program("/sbin/mount", "-t", "ext4", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/realdata");
run_program("/sbin/losetup", "/dev/block/loop1", "/realdata/media/rom/data.img");
run_program("/sbin/mke2fs", "-T", "ext4", "/dev/block/loop1");
run_program("/sbin/mount", "-t", "ext4", "/dev/block/loop1", "/data");
run_program("/sbin/umount", "-d", "/data");
ui_print("Wiping cache...");
unmount("/cache");
run_program("/sbin/losetup", "/dev/block/loop1", "/realdata/media/rom/cache.img");
run_program("/sbin/mke2fs", "-T", "ext4", "/dev/block/loop1");
run_program("/sbin/mount", "-t", "ext4", "/dev/block/loop1", "/cache");
run_program("/sbin/umount", "-d", "/cache");
ui_print("Wiping system...");
unmount("/system");
run_program("/sbin/losetup", "/dev/block/loop1", "/realdata/media/rom/system.img");
run_program("/sbin/mke2fs", "-T", "ext4", "/dev/block/loop1");
run_program("/sbin/mount", "-t", "ext4", "/dev/block/loop1", "/system");
run_program("/sbin/umount", "-d", "/system");
run_program("/sbin/umount", "/realdata");
[ONE Android Development] dlhxr:
Acknowledgement​

xiaolu for his updated compiled mkboot files.

twistedumbrella for doing galaxy nexus version together with me and his help.

crayon for his busybox mount way to support HTC DHD multiboot, which inspired me a lot!

Most Frequently Asked Questions​

To be updated.
[ONE Android Development] bud77:
That's so much more complicated than multirom ... And this needs a custom kernel too

What are the benefits ?
[ONE Android Development] dlhxr:
It is complicated. The thread is how I realize the process and it is for developers. Developer for other phones can port it to their devices.

Actually, the process for MultiROM is even more complicated.

I am writing something to simplify it. Just like what MultiROM did.

e.g.

1. A rom switcher and image creation apk. Not very difficult to realize.

2. Linux script to modify kernels and updater-script. (Already done. Look at the first post.)

3. Something else which benefits the simplification.

Benefits:

1. It use images for system, data, cache partitions, which is cleaner.

2. It do not mess up the first rom and we need no modification to the first rom.

3. It does not need kexec support. (I think kexec is just to realize the rom selection when booting, but not very sure.)

4. It is compatible to all roms.

However, the project may not be used by many people But it worth trying it and sharing to others.:p
[ONE Android Development] rocker1904:
seems a bit long winded to me, I'll stick to multiROM
[ONE Android Development] droidrev71:
little bit of a backhanded comment!?!?!..unreal! if you would have read up he's going to simplify it.
[ONE Android Development] dansou901:
[MENTION=4111660]dlhxr[/MENTION]... Is it possible to multiboot 4.4 based ROMS with 4.3 based ones with this? It is the only feature I miss from Multirom, so maybe I'll give this a go!
[ONE Android Development] dlhxr:
definitely.

All roms are supportted only if you know well about my modification~

I successfully modified color os based on 4.3 in to image boot, even though the kernel of color os is a little complicated than everyone imagin:p
[T-Mobile LG G3] motoridersd:
Someone sent me a link to a thread where users are reporting cracks on their G3s. Most seem to be around the headphone or USB jacks.

http://www.androidauthority.com/lg-g3-cracked-casing-514460/

I don't have any there, but after reading the thread I started looking at my phone closely and found one right under the IR blaster at the top. It goes from the blaster to the end of the chrome bezel.

I've never dropped my phone, so this seems to have happened with normal use.

Anyone else notice any cracks?
[T-Mobile LG G3] wideasleep1:
No cracks so far thankfully..but every time I remove the battery cover I can feel the phone chassis flex and it makes me nervous.

Sent from my amazing LGG3!
[T-Mobile LG G3] helikido:
All of them start flexing after a small while.

Sent from my LG Gangster 3
[T-Mobile LG G3] witeboy07:
I have and accidentally started a new thread. I wonder if we can get a replacement for this?
[T-Mobile LG G3] xcaliburpcs:
Mine has that crack, USB is also hard to insert
[T-Mobile LG G3] CheesyNutz:
No cracks no lag no shuttering perfect screen
[T-Mobile LG G3] kurtis.austin2:
Cracks here. Same exact one as all the pictures. Through the mic on bottom of phone. Also one through infrared sensor on top of phone. Got this phone a month ago. Never dropped. Never gotten banged around or dinged on anything.

Should this be under warranty with it being a known issue and LG knowing about it?
[T-Mobile LG G3] CheesyNutz:
I would think so
[T-Mobile LG G3] fgarcia10:
Just happened to mine as well. I'm using the ATT version of the phone. I will try to see if they replace the phone.
[T-Mobile LG G3] jsauce75:
I just called LG and they told me it was physical damage and not covered under warranty. I emailed them as well and received the same response.

---------- Post added at 01:39 PM ---------- Previous post was at 12:46 PM ----------

I just got off the phone with Tmobile. They are sending me a replacement free of charge. Hopefully the new one doesn't develop the same issue.
[T-Mobile LG G3] Toneman07:
No crack yet, but i had the hardest time getting the USB in the phone to get it rooted. I thought I was going to break something. If it is warrantied just take a hammer to it and call it in to the insurance company? Just Kidding ...
[T-Mobile LG G3] darthyobert:
Mine has developed the Crack where the ir blaster is. The USB has been hard to plug in since day 1. Has to be at just the right angle. I'm calling T-Mobile too
[T-Mobile LG G3] motoridersd:
Nice! Do you have insurance or Jump!?
[T-Mobile LG G3] jsauce75:
I have jump, but it doesn't factor into the exchange. They're chalking up as a faulty device.
[T-Mobile LG G3] darthyobert:
T-Mobile is sending me a new one. The rep said that it was a known issue. No hassle
[T-Mobile LG G3] digitalpirate:
Nice just call t-mobile and they'll fix it?
[T-Mobile LG G3] darthyobert:
Yes they said it is warranty fix:)
[T-Mobile LG G3] JesseMT4G:
No issues here, thankfully.
[T-Mobile LG G3] Richieboy67:
I wonder how wide spread this issue is.

Is the thinking that these devices came this way unnoticed or that this happens spontaneously?
[T-Mobile LG G3] sn0warmy:
No issues here. Granted I use a TPU case and have the wireless charging back so I never use the USB port on the bottom.
[T-Mobile LG G3] mainevent3405:
Darn crack smh....

Noticed today that I have the hairline crack, same crack as being shown all over the web....to the left of the usb port in the middle of the speaker hole. Had a case on this since I purchased it in the store. Never took it off, never dropped the phone...ever! Had the phone since launch day. Took off case today and noticed the crack. Called Tmo and got a really cool rep. He has the same phone. Sent out a replacement free of charge to be received tomorrow! Think I am going to sell it while it's still new and get something else. This ruins the resell value drastically and I can't afford to wait till the new one forms the same crack in a few months.
[T-Mobile LG G3] siraltus:
No cracks here. My USB connector was difficult to insert a plug into at first but after a week of use it became smooth.
[T-Mobile LG G3] greenfishs:
Just got off the phone with t-mobile and said it wasnt a known issue. I don't know if you guys will have better luck but my rep went through the database and said nothing about cracks popped up. Seriously turned me off about LG quality control. Im going to call LG and see if things go better. Seriously disappointed :(.
[T-Mobile LG G3] cvsolidx17:
Can you post a picture of this crack?
[T-Mobile LG G3] digitalpirate:
I called them and the rep told me that it's a known issue but LG hasn't officially given them an official acknowledgment on what to do with that issue. The rep wanted me to call Lg and have them deal with it. I asked him "What happens if I call them and they bounce the issue back to you guys?" He told me it borderlines between faulty device and physical damage of the device and told me he would try to call LG. LG support hung up on him so he told me to go to a t-mobile store and get it inspected to make sure there is no other damage.

I went to the t-mobile store and the rep there read my account notes and checked out my phone then they overnighted me a phone for tomorrow. They charged me a 5 dollar processing fee. The rep on the phone warned me that if any other type of damage even if it was something that I couldn't physically see such as the screen damage from the inside I would be charged. I'm pretty confident I could fight a bogus charge like that.
[T-Mobile LG G3] WhiteiceDMSTech:
Just noticed move had the exact crack over the microphone port. What number did you all call and every did you all tell them exactly to get the free replacement?

Sent from my LG G3.
[T-Mobile LG G3] darthyobert:
Just called tmobile... No hassle at all. Have my new phone already
[T-Mobile LG G3] kurtis.austin2:
How!? I went into a store and they had no idea about this being an issue. Called customer care for me and they even had no idea about it. Customer care then said I had to take it up with LG.

Just called LG customer care and even they were saying it isn't a known issue. WTF? Told me I can send my phone in and if their facilities deems it a manufacturer defect, then they'll repair it for free. But if they say it isn't a manufacturer defect they want to charge me. They'll have my phone for like 2 weeks if I send it in. Leaving me without a phone. How the hell do I get tmobile to take care of this for me because lg sure isn't helping.
[T-Mobile LG G3] BACARDILIMON:
Ummm your phone over heats. It gets so hot it smells like burning plastic. So forth.

AWESOME G3
[T-Mobile LG G3] Richieboy67:
I haven't heard that one before. I think if everyone who has this phone has overheating issues with plastic smells there would be a recall or at least more posts about it. A few posts on forums does not mean it is a wide spread issue.
[T-Mobile LG G3] BACARDILIMON:
Have you been reading in the kernel threads. Everyone in those threads asking devs to change thermal throttles and many have complained about it. Many have called t mobile and got replacements. Mine is to be delivered in a few hours. But hey if you want to have a hairline crack on phone and be told when you trade it in that you broke it. Then that is none of my business.

AWESOME G3
[T-Mobile LG G3] Richieboy67:
Like I said, a few people posting in the forums does not mean it is an issue for everyone or even most. How many posted about this issue? Less then 50? How many thousands of devices have been sold?

You do not even have one yet and you are already complaining?

There are also many good reviews and posts on it.
[T-Mobile LG G3] BACARDILIMON:
um had one since day one thank you. either way like i said if u live in bubble stay in it. cool.
[T-Mobile LG G3] Richieboy67:
Thought you said you were getting yours today.

And your comment is just ridiculous. You are making it seem like it is the most terrible phone because less than 50 people out of many tens of thousands if not more are having an issue. To put it simply, The vast majority of people are not having the issues you are crying about.

Most new phones have some issues to sort out. Almost every phone I can think of including the Nexus 4 I still use today.

And I will repeat this again.. There are many people posting here saying they have no problems and love the phone. So who is living in the bubble?

And i do not have this phone yet so who knows? there very well could be some major issues with it but I will wait to see what the majority of people find and so far the majority is not complaining about smelling hot plastic and hairline fractures.
[T-Mobile LG G3] EduardoZ714:
Anyone know if i can get a replacement from tmobile if i dont have their insurance? I just noticed a crack on my microphone -_- if this happened naturally after maybe a year i would be somewhat neutral but I've had this phone for about a month! Didnt spend 600$ on something that was gonna crack by itself damn you LG
[T-Mobile LG G3] Derekwolfee:
http://xdaforums.com/showthread.php?t=2875512
[T-Mobile LG G3] abrcrmdl23:
Yeah tmo didn't help me. The lady on the phone said I would have to call lg. The lg woman was a moron and told lte the sand thing as the above person that I could send it in and if they deem it to be a defect they will fix it but if not they will charge me and that they didn't have any record of the problem being a known issue for the device. I am going to go into my tmo store tomorrow to see if they can help since I don't have insurance. For a 2 month old phone to get several noticable cracks is ridiculous. I didn't pay $600 to get a defective phone. Seriously thinking about getting a Moto x after this. When this happened top my nexus Google sent me a device before they looked at it. They put a hold on my card but at least I want out a phone for 2 plus weeks.
[T-Mobile LG G3] Richieboy67:
I am still trying to figure this out. Are you guys thinking your device came cracked and you didn't notice or that it cracked while plugging in your USB cable?
[T-Mobile LG G3] VonAmmo:
I just got off a call with tmobile and they won't help me after calling twice. First time I was transfered to LG and they wanted me to send in my phone to be checked out and be without a phone for a few weeks. 2nd time the guy wanted me to pay $175 through insurance. They all seemed oblivious to the issue. I give up which is what they were probably hoping for.

---------- Post added at 06:44 PM ---------- Previous post was at 06:37 PM ----------

I checked over my phone when I 1st heard about this issue and it was fine then about a week later the cracks started appearing out of nowhere. They are very fine cracks but they seem to be getting larger everyday.
[T-Mobile LG G3] Richieboy67:
I see these threads for many phones. I'm sure there are weak points that give way maybe under a little stress and that definitely should not happen.

Whether or not lg replaces them probably depends on the amount of devices effected.

Worst comes to worst just find something else wrong to exchange it. :D
[T-Mobile LG G3] alxn91:
Is Tmobile replacing the defective ones with new or refurbished units?\

UPDATE:

Received my replacement from Tmobile, came in a white box with no battery or back cover. I went ahead and contacted LG to try and verify if it was a new or refurbished device. I provided LG with the IMEI# of the replacement phone and within a few seconds they asured me that indeed the replacement phone was brand new.
[T-Mobile LG G3] Chance Ill:
Just noticed a crack along each side of the infrared sensor on top. Never dropped or mistreated my device at all. Damn.
[T-Mobile LG G3] Alix8821:
For your much?? I just switched to T-Mobile the last week in August... Cracking at bottom near microphone. Started off NBD, but it's getting worse. I anyways have a case on it too...
[T-Mobile LG G3] siraltus:
Is yours white, too? It looks like the white ones are cracking more than the black ones. Have had my black one for a month, no cracks so far.
[T-Mobile LG G3] Alix8821:
Ye mines white... How much it cost? Like i said, I'm new to T-Mobile. I dunno how they do this stuff. I DO have insurance, FYI
[T-Mobile LG G3] siraltus:
Based on how many whites are cracking vs. black, it appears as if the plastic they used on the whites is much more brittle than the plastic they used on the black ones.

How much what cost?
[T-Mobile LG G3] Alix8821:
The replacement... Obv
[T-Mobile LG G3] Richieboy67:
You had to send your old one back and they sent your replacement with no battery or back?
[T-Mobile LG G3] alxn91:
They only charged me a $5 fee, if I remember correctly. At first they had told me to call LG about the issue, LGs representative told me it would take anywhere from 1-2weeks turn around. Called T-mobile back and told them that the option LG offered was not good for me since I rely on my daily through the day. They then had me visit a T-mobile store to verify that the crack was not due to mistreatment from my side. I visited a corporate T-mobile store, they took a quick look at it then went ahead and processed the warranty exchange.
[T-Mobile LG G3] siraltus:
...why are you asking me this? I just said my phone has been fine so far.
[T-Mobile LG G3] markdapimp:
I'm thinking of buying a LG G3, From T-Mobile,

Lets say my G3 has a these cracks near the microphone and or the IR baster, Will LG Repair or replace it with a unit that doesn't crack?
[T-Mobile LG G3] Richieboy67:
I don't think this is that much of an issue aside from a few forum members. I also think that while some may just have cracks appearing there had to be a portion that dropped it. Not saying everyone is neglecting but surely some have.
[T-Mobile LG G3] Critical Detox:
Not at all, 2 days after I got this phone the very same cracks showed up in the exact spots as everyone else, design flaw.
[T-Mobile LG G3] Richieboy67:
I wasn't taking about you. I was just saying that at least some people with the crack most have dropped it. Meaning out of the thousands of g3s sold it is a very small percentage.
[T-Mobile LG G3] Chance Ill:
All the hairline fractures I've seen so far are identical and occurring in the same place. It's highly unlikely that neglect would cause this.
[T-Mobile LG G3] Richieboy67:
I've seen at least 2 that clearly have scuff marks and I have not spent much time looking at all.

I'm thinking it is most likely that circle case that is causing it and not the phone but I'm not sure.

Either way though the issue is only being reported by a relatively small amount of people. Either way though lg should make it right if it is design or their case.
[T-Mobile LG G3] WhiteiceDMSTech:
I have the exact same crack on mine and I use 2 different Spigen cases. I'm leaning toward design flaw of some sort since those of us who have the crack, or looks exactly the same length and direction wise.

Sent from my LG G3.
[T-Mobile LG G3] moehagene:
Im a little late to posting this is a design flaw and not neglect. My first G3 had a hairline crack at the microphone when the T-Mobile employee took it out of the box. My second and current G3 just developed a crack in the same spot. Tmobile is replacing this phone over the weekend.
[T-Mobile LG G3] WhiteiceDMSTech:
I now not only have the crack over the mic port, but also over the IR blaster. What number and/or department did you talk to that they know this is a issue and are replacing it for you? Thank you in advance.

Whiteice

*EDIT* NM, just called in and when I talked to the rep, I linked them to this thread about the issue and she hooked me up and waived everything for me.
[T-Mobile LG G3] kurtis.austin2:
I had the toughest time getting T-Mobile to resolve this for me without me having to send my phone to LG. Finally got a hold of a rep, on Twitter no less, who was willing to help me. She waived everything for me. She mde sure I was getting a brand new device and not a refurb. Picked up my new phone in store next day.
[T-Mobile LG G3] moehagene:
Is it possible to get a copy of that conversation? The store manager here is on vacation and the assistant manager refuses to do anything that doesn't involve me paying 50 bucks for a loner phone while .i e is being replaced by LG
[T-Mobile LG G3] Ness7386:
Cracks!

Yes, I have a crack at the bottom near the mic and one at the top near the ir blaster. T-Mobile told me it was a known issue, but I should wait until LG decides how they're going to handle repairs or replacements because if I requested a replacement through T-mobile or Assurion, I would have to pay the $175 deductible. He then suggested I call LG. The rep at LG said this is the first she heard of this problem & that she would make a note of it in my acccount. LG offered no resolution. Poor customer service from both of them.
[T-Mobile LG G3] mzrdisi:
Add me to the list. I have small cracks forming near the IR Blaster and another one near the front facing camera. I have no dropped my phone and take care of my stuff. I basically treat this thing like it's my child. (Sad, but true. :o)

https://plus.google.com/u/0/1152294...6068417135103709858&oid=115229482036345532695

They are trying to insinuate they aren't aware of this issue and neither is LG.
[T-Mobile LG G3] digitalpirate:
Just looked at my phone today and notice that the replacement T-Mobile sent me now has formed cracks like the first one. Starting to think the white ones have an issue. Anyone's replacements cracked? I really babyed this phone to 2nd time around too.
[T-Mobile LG G3] chivamex10:
a few weeks ago i noticed a crack on the mic and was like wtf. I don't do cases but I hadn't dropped it once.

Should I replace it? I'll go HAM if they deny a JUMP further down the road for this. Also it might go from bad to worse cos their replacements are refurbs.

With HTC using metal for quite a while now, along side samsung and even motorola I can take a wild guess and say the LG G4 will have metal as well. Had they lowered the mic hole I don't think we'd have this problem. The placed it where the silver and white buttcrack meets.
[T-Mobile LG G3] mzrdisi:
I was informed my jump would be denied and I'd have to pay $175 for a replacement via insurance claim. They also tell me to contact LG but LG denies there is a problem.
[T-Mobile LG G3] chivamex10:
Oh hell NA
[T-Mobile LG G3] digitalpirate:
I'm probably gonna jump to a new phone , they replaced my first one for free and it lasted a month till the cracks cameback. The rep on the phone I had the first time told me to call lg and I told him that I didn't want to call lg because they might ask me to call t-mobile back so he ended up calling for me and they hung up on him. From their the rep just issued me a warranty replacement.