yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] rpgslayer_redtelko:
cnc-bootloader

When you need fastboot but just can't get to it

So I was working with my phone trying to see what I can do with it. I got it rooted (via towelroot) installed busybox, SuperSu, the usual. Then I installed custom recovery and then installed a script to enter recovery via VolDown+Power. It softbricked the phone gave me a LG Security Error. I fixed it and thought hey? Why not create an exploit that forces the phone into bootloader mode.

There sadly is no common access to bootloader mode and so unless you softbrick there is no bl mode. Until cnc-bootloader (command and conquer bootloader) is released (now lol). This exploit creates a backup of the boot partition then erases it. I am also developing a computer gui to make it easier and safer. It uses a slightly different method of doing it and it can be a lot safer too, so if you aren't comfortable with this then I'll post a link when I release it. (NOTE: This gui is released by Trident-Dev. It is not open source.) So heres how it works

Download the cnc-bootloader exploit and run with root permission on your device.

It will then make a backup called boot.img and erase your boot partition.

WARNING: Make sure to backup boot.img to your computer before you reboot. This is the only way to exit bootloader mode

Then just reboot your phone like n0rmal and it should be in a bootloader loop!

(This can be fixed by reflashing the backed up boot.img)

The exploit is available on GitHub at (Give me some time to get these 10 posts down and I will post the link. I have it up on Androidforums.com so yea. Just search for rpgslayer redtelko there and it will be one of the only threads you will see

More information is available in the README.md file and stay tuned for the release of our GUI version!
[Upgrading, Modifying and Unlocking] leond:
I would like to try this on my Sprint LG G4 to unlock bootloader. Please provide the link.
[Upgrading, Modifying and Unlocking] LancerV:
https://www.codeaurora.org/projects...unds-checking-when-flashing-sparse-images-cve

Based of this?
[Upgrading, Modifying and Unlocking] mikel_oho:
your account on github doesn't exist.
[G4 Q&A, Help & Troubleshooting] asian_xl:
Just wonder, I used to have CM12.1 in my old Note2 and having a G4 for 2 months that no root access is painful.

I read EU can unlock, what about Asia G4?
[G4 Q&A, Help & Troubleshooting] mickliq:
You can root it. No BL unlock yet.
[G4 Q&A, Help & Troubleshooting] asian_xl:
Sorry, how do I root it? mind share a link?
[Galaxy S6 Edge Q&A, Help & Troubleshooting] TheMathMan:
Hi all

Now that some apps like Snap Camera and ProShot can kick out RAW files as .dng is there a way of getting the Gallery app to show them natively without an app like Lightroom?

Thanks
[G2 Original Android Development] Snuzzo:
For LG G2​

Welcome to Desolation Rom!! Our goal is to provide users with a unique staple in android development which aims at stability and optimizations with what we feel is the perfect amount of features. We hope you enjoy this rom as much as we have enjoyed working as a great team building it.

Features:

Optimizations:

* 4.8 Google Prebuilt ToolChain for Rom

* Christopher83's 4.9.x Linaro ToolChain for Kernel ( more info VISIT HERE! )

* Layers 2.1 Support

* Strict Aliasing

* 03 Optimizations

* Krait Optimizations

* Various Speed Optimizations

Rom Specific Tweaks:

* Custom Battery Styles and Options

* Clock And Date Customizations

* Boot Animation Options ( Boot Selection Still a work in progress)

* Slims Navigation Customizations

* Hardware Key Support

* SlimPie

* Heads Up Options

* Network Traffic Options

* Notification Drawer Tweaks

* Power Menu Options

* Recent Apps Options

* Custom Carrier Label

* DPI Changer

* Expanded Desktop

* Notification LED Color Changer

And much more to come

Instructions:

1. Download the Rom and Gapps and place in the root of your internal storage

2. Boot into TWRP. (Making a backup before flashing is always recommended)

3. I always recoomend clean flashing coming from any rom. To do so go to Wipe and swipe to perform a factory reset. I also personaly go to advanced wipe and checkmark all but internal storage and wipe there too.

4. Flash ROM and Gapps under Install

5. Reboot and enjoy.

Downloads:

Rom: Download Here!

Gapps: Download Here!

Special Thanks:

@ SlimRoms (For Navbar Customizations, Hardware Key Support and SlimPie)

@ BitSyko Team (For Layers support)

[MENTION=2915683]BaNkS[/MENTION] (For Gapps)

@ Google (For the Android Open Source Project)

@ All of the Open Source Community

@ All of our testers

Sources:

Rom: DesolationRom

Device: DesolationRom-Devices

Moderators: If there is trolling, bashing or any high negativity please feel free to do as you wish.

We are a Drama Free group and would like to keep it that way. That being said if you have any issues you can ask in Q&A section or by PM'ing me personally and will do what we can to resolve any issues or concerns. PLEASE if you have any bugs that you are on a clean flash of the rom and provide proper logs or we cannot help you. To be fair, Just saying "oh this or that happenned fix it" does not help us. So help us to help you and provide these. Thanks.

Also feel free to join our g+ community Here for other rom related stuff.

XDA:DevDB Information

DesolationRom, ROM for the LG G2

Contributors

Snuzzo, REV3NT3CH, liquid0624

Source Code: https://github.com/DesolationRom-legacy/platform_manifest

ROM OS Version: 5.1.x Lollipop

ROM Kernel: Linux 3.4.x

ROM Firmware Required: 4.4 Bootloader

Based On: AOSP

Version Information

Status: Stable

Current Stable Version: RC0

Stable Release Date: 2015-07-31

Created 2015-07-31

Last Updated 2015-07-31
[G2 Original Android Development] Snuzzo:
Reserved
[G2 Original Android Development] Snuzzo:
How-To for Boot Animation Selections:

Prerequisite:

Boot Animation must be in a pure zip format

How-To:

Make directory on internal storage name "desobootanimations" and place zip file there or use AOSP "Download" pre-made directory.

"desobootanimations" directory will override the use of "Download"

Place prebuilt zip in one or the other, it should now show in custom settings under Desolated Core->Boot animation->Boot Animation Selection

Your selection will stay static even if deleting the selected file off storage. It will revert back to "Stock" upon flashing, clean or dirty.
[G2 Original Android Development] genesixxbf3:
First
[G2 Original Android Development] Black_Eyes:
Another AOSP ROM :D :D

Thanks [MENTION=3419683]Snuzzo[/MENTION]
[G2 Original Android Development] L0nelyE4rth:
Downloading and will report back. Thanks for your work.
[G2 Original Android Development] J:
Awesome work from the Deso and Deso OT team! Thanks for the effort Snuz & crew.
[G2 Original Android Development] vrwmiaris1:
have a good start fellas
[G2 Original Android Development] jmccau1:
Here we go! Thanks guys!
[G2 Original Android Development] modest.young:
LP bootstack???

Little noobish question, does this ROM require LP Bootstack? I guess not, I didn't find it in OP.

Thanks for you work!
[G2 Original Android Development] Mashed_Potatoes:
Downloading. This ROM is CM-free?
[G2 Original Android Development] Snuzzo:
Caf source for kernel. Requires 4.4 aboot.

[EDIT]

I'm confirming compatibility with a 4.4 aboot

As much as it can be.
[G2 Original Android Development] Mashed_Potatoes:
Okay so i got it up running and everything is working great, except double tap to wake
[G2 Original Android Development] Snuzzo:
You would have to enable it. Use kernel adiutor if you want it.
[G2 Original Android Development] TaRsY:
Caf source requires LB bootstack with 4.4 OR 4.2 aboot.

If kernel is bumped, 4.4 and 4.2 aboot is able to boot it.

4.2 aboot also supports old aosp roms from kk or jb times and older caf based roms.

To avoid confusion let users stay on lp bootstack with 4.2 aboot (called loki lp bootstack). That's my suggestion. 4.2 aboot can't cause issues but users flashing/updating wrong bootstack/bootloader and whatever can. Saying 4.4 aboot needed means coming from stock 4.4 rom is OK, in this case they don't have the lp modem etc, and issues coming again.

Tapatalk-kal küldve az én LG-D802-el
[G2 Original Android Development] Snuzzo:
You misread out of context. Check Q & A yourself before replying and also check device source which is also linked here dated 7/25.
[G2 Original Android Development] TaRsY:
That commit means kernel is built with bump: signed with lg key used in both 4.2 and 4.4 aboot. So a bumped boot img will pass 4.2 and 4.4 aboot security check. This is why 4.4 aboot is NOT a must to be able to use caf roms with that commit.

4.2 aboot has the mentioned benefits. Able to install and boot loki roms too. While on 4.4 aboot loki'd updater script will fail while executing loki script.

With this I just want to help users to see, every caf kernel based rom has the same prerequirements before install to avoid useless bootstack flashing back and forth, and common questions asked again and again. Not to mention the bricked devices.

Tapatalk-kal küldve az én LG-D802-el
[G2 Original Android Development] Snuzzo:
Again you do not need to correct me and I thank you for your post(s).
[G2 Original Android Development] TheUnladenSwallow:
A lot of people imply that the 4.4 aboot is a much cleaner method, however this isn't technically true, what's cleaner is bump over loki and other than slight graphical differences in use the 4.2 and 4.4 aboot are identical (for the user). There isn't a major advantage of a 4.4 bootloader over a 4.2, other than it's technically newer and probably has a couple under-the-hood improvements. Anyways ROM seems interesting, gonna check it out later tonight, sorry for OT.
[G2 Original Android Development] b1g.p0ppa:
Awesome ROM. Very snappy and everything works great--provided that I set Device Only for GPS. Not sure if it's what I've installed or what but after googling my fingers off I came across https://jira.cyanogenmod.org/browse/BACON-3810. I was getting Google Play service crashes all over the place and by setting my Location Services to Device Only that has all gone away. I don't know if my experience is related to that issue, but it feels like it from here.

Anyway, this is an awesome ROM and thank you for sharing!

EDIT: And the phone is completely cooled even whilst on usb charger. Wasn't that way--on or off charger--prior to location svcs change. Still open to the idea that it's all placebo.
[G2 Original Android Development] b1g.p0ppa:
Logcat captured whilst experiencing crashes. Hope it helps, I can see errors but do not know whether they're germane to my hypothesis.
[G2 Original Android Development] TheUnladenSwallow:
[MENTION=3721939]b1g.p0ppa[/MENTION] Noone else has reported the issue thus far so I'd try a clean install with different GAPPS, there's a chance it's ROM related but it's unlikely (full disclosure I haven't installed the ROM yet nor have I read the logcat).
[G2 Original Android Development] b1g.p0ppa:
Thanks bro, but I thought of that. I tried two clean installs with tk gapps then one clean with banks' and had them all go south. Each time I restored from TiBu, but increasingly pared back apps related to anything Google. Same results every time. This last time w/ banks' gapps it did it again, but changed location services to device only and it is still running super clean. I'm not a Dev so am in no way asserting I am correct, but evidence is mounting....
[G2 Original Android Development] elheffe:
I had the same Google play services errors. Setting location to device only slowed them down for a while but then they come back with a vengeance. I clean installed 3x with 3 different sets of gapps (originally with the ones from the op). I was up to a Google error every 2 seconds when I finally reverted to my backup.

I noticed the errors were likely related to apps trying to get the device location. Weather apps and kijiji created major Google services errors. Sometimes they would fail to identify the location entirely and others they would eventually get the location but then still fire out errors.
[G2 Original Android Development] TheUnladenSwallow:
OK, nm.
[G2 Original Android Development] L0nelyE4rth:
I can't voice setting on Google Apps and Google Services error when I use Maps. Using OpenGapps Aroma 7/29.
[G2 Original Android Development] LidaFlorida:
Which kernel use with this ROM? Render r12 and Llama doesn't work - stuck on the LG logo after flashing.
[G2 Original Android Development] Snuzzo:
Currently none others will work.

Everyone please start using Q & A. Thanks in advance.
[G2 Original Android Development] Asiier:
Awesome ROM If you could add floating windows would be great :D

---------- Post added at 02:51 ---------- Previous post was at 02:44 ----------

Well actually there is one Kernel that you can use

https://www.androidfilehost.com/?fid=24052804347784946
[G2 Original Android Development] mavishow:
Nice rom, There is a problem(gps-maps , google play stop) outside the above-mentioned cost.
[G2 Original Android Development] Snuzzo:
[MENTION=6187429]Asiier[/MENTION] Llama is caf based as well. It still won't boot as our ramdisk is different than what he uses.

[MENTION=4250239]mavishow[/MENTION]

I'm truly believing it to purely on Google's end tho.
[G2 Original Android Development] mavishow:
Smooth fast battery drain, thanks rom.
[G2 Original Android Development] Asiier:
Oh my bad

And maybe SlimSaber boot.img?
[G2 Original Android Development] Snuzzo:
At this point, test it. Pull a backup prior and just restore if it doesn't work right. I've only done minimal testing.

Even though I work at a slower pace than most I'm still working on a customized kernel to bake in.
[G2 Original Android Development] jamesd1085:
Not necessary... Very smooth and stable...it's also nice to not have to flash bootstacks constantly when switching from deso to stock...thank you for this Snuzzo
[G2 Original Android Development] mavishow:
Please forecasts. When a new build?
[G2 Original Android Development] Snuzzo:
I'd rather give you bigger updates. Not soon. Also please refrain from asking ETA. Just enjoy what's there for now.
[G2 Original Android Development] DaveHTC200:
Loving the ROM! Thanks to the team!!
[G2 Original Android Development] kieranc88:
Bit of a noob but can anyone post a detailed flashing process for this rom, what do I need to flash to be able to use this rom on d802
[G2 Original Android Development] undeadking:
Glad to see you back bud! [MENTION=3419683]Snuzzo[/MENTION] Gonna give this a flash and see how it goes, Thanks again
[G2 Original Android Development] Snuzzo:
Read first post.
[G2 Original Android Development] Feyerabend:
The rom works really well. It has the most responsive dt2w among those other aosp roms in my opinion. 0 problems for now. Thank you very much for your work!
[G2 Original Android Development] REV3NT3CH:
We are happy to say your welcome bud! And Thank you!

Sent from my Nexus 6
[G2 Original Android Development] anbinhv:
Glad to see you back [MENTION=5037435]REV3NT3CH[/MENTION]
[G2 Original Android Development] REV3NT3CH:
I may not own or really dev much anymore for the g2...but none of you all are forgotten...thanks for everything..Snuzzo here is a great dev and I look up to him..even though I wasn't the one to deliver this work of art to you that I promised would happen. He did...and for that...I'm forever thankful as well...the old REV3NT3CH everyone knew that was positive is back...however I now work on and maintain the Nexus 6...Thank you all G2 users who remember and stuck by me...your loyalty and friendship meant and still means a lot.

Sent from my Nexus 6
[G2 Original Android Development] Snuzzo:
[MENTION=5037435]REV3NT3CH[/MENTION] what your missing is that it was an ideal based from you the original mastermind.
[G2 Original Android Development] REV3NT3CH:
Yea...what you said lol

Sent from my Nexus 6
[G2 Original Android Development] kieranc88:
Getting in call ui force closes. Installed ROM and gapps on top of kk baseband , tried pa and banks gapps but problem persists (clean install).
[G2 Original Android Development] Snuzzo:
Fix will hit the next build. For now disable reverse lookup in dialer settings.
[G2 Original Android Development] kieranc88:
Will reflash and try that.

Also if I flash banks gapps I can't get past the lollipo restore set up screen it doesn't matter if I click set up as new device or not it just won't do anything unless I choose to restore all apps but this is not a problem with pa gapps.
[G2 Original Android Development] Lawlrus:
Banks 8-1 works fine for me.
[G2 Original Android Development] kieranc88:
They're the ones I've used. Strange???
[G2 Original Android Development] Choristav:
8-1 also worked for me. Sorry I can't help you debug it, but I can confirm they work just great.

Thanks guys :).
[G2 Original Android Development] Snuzzo:
anyone having problems with Bluetooth? Has it been working OK for you?
[G2 Original Android Development] Lawlrus:
Working fine for me.
[G2 Original Android Development] DaveHTC200:
Fine for me also! Connected to car and moto360
[G2 Original Android Development] Snuzzo:
OK I did an upstream to it. Next build double check things.
[G2 Original Android Development] DaveHTC200:
The battery life is amazing on this, however I seem to get an issue with *alarm* holding most things awake.

Clean flash with recommended gapps.

Is this something unique to me?
[G2 Original Android Development] Lawlrus:
Use the built in wakelock blocker.
[G2 Original Android Development] DaveHTC200:
I have thought of that, just couldn't find much info about blocking *alarm* I imagined it could be important ?
[G2 Original Android Development] Lawlrus:
It isn't. And shouldn't mess with your alarms, works fine for me.
[G2 Original Android Development] b1g.p0ppa:
No problems at all vs980. Perfect really!
[G2 Original Android Development] Snuzzo:
OK again made some changes. Report back either way for me please on the next build.
[G2 Original Android Development] DaveHTC200:
Looking forward to the next build :)

Will slim dim be added? I could see it in the sources
[G2 Original Android Development] Snuzzo:
Yes. Were also working to get ambient display at 100%. That's feature wise tho. There's a few smaller items that the next build will address.
[G2 Original Android Development] Snuzzo:
Today's weekly is up. Check downloads in first post.
[G2 Original Android Development] mavishow:
Rr go test desolation
[G2 Original Android Development] kieranc88:
Checked for d802 download and latest build is July 31st?? Also does latest build fix Google services force close and dialer in call ui, thanks.
[G2 Original Android Development] Snuzzo:
Location services; no. In call ui; yes. See a few posts back. All of the download links are in the OP.
[G2 Original Android Development] kieranc88:
So how do I stop all the Google play services error? Thanks.
[G2 Original Android Development] Snuzzo:
Turn off location services or use device only mode.
[G2 Original Android Development] DaveHTC200:
Is there any formal changelog other than looking at sources?
[G2 Original Android Development] Snuzzo:
Other than flashing About ->Software->View Changelog. No not at this time.
[G2 Original Android Development] kieranc88:
So can GPS apps like Google or here maps work on this ROM because I can't get a GPS fix.
[G2 Original Android Development] Snuzzo:
Regarding Bluetooth: any updates? Works better? Worse? Same?

Until the problem is resolved. Only some apps.
[G2 Original Android Development] kallell:
Is there a gravity box version that works with this android version? i'd like the nav bars to be even smaller if possible.
[G2 Original Android Development] Lawlrus:
Use google to search for xposed 5.1.1?

Not going to get much help installing an app that has a high possibility of breaking said ROM.
[G2 Original Android Development] sayedam:
Really good rom is fast and have a great battery life.hate all caf and cm12 based rom so pure aosp is the way to go keep it up i hope your rom become more popular cause deserve it :) btw waiting for very eagerly for an update the location bug an i hope the best for you.
[G2 Original Android Development] Rosted:
I have a crash of the settings app. It can be replicated by the following steps: Settings -> Accounts -> Google (-> crash)

I've also registered unintended behaviour when applying custom actions for the navigation buttons. It can be replicated by adding a long press action such as "last app" to fx recents. By doing that a longpress at recents will activate both the short press and long press actions.

Hope it's alright that i done provide a logcat.
[G2 Original Android Development] Snuzzo:
Reflash please as I cannot replicate it to grab a log.

Well aware of said bug. For now the only fix i can think of is to add the last app shortcut as a new navbar target. We're looking into it.
[G2 Original Android Development] Snuzzo:
Going to be postponing the build this week. Have other projects going also.
[G2 Original Android Development] WORF84:
Try Ultimate Dynamic Navbar ?
[G2 Original Android Development] Snuzzo:
I've not forgotten about everyone. I will be putting out some small build notes in the next weekly. Stay tuned!

:)
[G2 Original Android Development] Snuzzo:
New builds up check first post.

Build notes:

New color picker! Check settings->deso core->status bar for notification accent color options. Small bug, Color will update on the notification after next, but once custom color is set it sticks.

Any self made content for boot animations that anyone would like to add to the boot animation list. Just send me a private message, I'd gladly add it.

PS: MMS got the materialize
[G2 Original Android Development] mavishow:
Thanks guy
[G2 Original Android Development] Snuzzo:
Welcome always! :)
[G2 Original Android Development] DonQuixote77:
Thanks!

I'm trying out your ROM for the very first time, and I'm quite impressed. It runs great, none of the "no data" issues I've had with some of the CM-based roms.

At the risk of sounding like a noob, I'm having trouble finding the switch to enable dt2w. Could someone point me in the right direction please?

Thanks again!
[G2 Original Android Development] Snuzzo:
Their isn't one(I do have an idea for it tho). Must use a 3rd party kernel app, something like Kernel Adiutor.
[G2 Original Android Development] DonQuixote77:
Is there a tried and true fix to the "Google play services had stopped" message?
[G2 Original Android Development] anbinhv:
Thanks! But the link in the op still link to the 31st July build.
[G2 Original Android Development] Snuzzo:
[MENTION=6691517]DonQuixote77[/MENTION]

Currently and unfortunately not. I'm still looking through logs and trying things locally. Only way to get around it is to use device only or disable location.

No it doesn't ;)
[G2 Original Android Development] WORF84:
I assume you're using BaNkS GApps as suggested in op.

This message appears on many ROMs and devices.

Try flashing the ROM first, boot android, reboot to recovery, flash gapps.

Maybe you need to do a clean flash but try half clean. wipe dalvik cache, system and cache. Flash system and gapps again.

TK GApps and OpenGApps are 2 other options.

I prefer OpenGApps and I use Pico package because of the very low download size 35MB. OpenGApps are usually daily updated and further compressed within the zip.
[G2 Original Android Development] Snuzzo:
[MENTION=4886472]WORF84[/MENTION] Are you getting the location services FC on our ROM? If not what combination are you using? I have tried multiple items myself, our team just settled on using a widely known gapps package.
[G2 Original Android Development] WORF84:
I'll let you know in a few days, haven't tried the latest build.

But I did use OpenGApps Pico package on the first release and it was working flawlessly for me.

I'm on D802
[G2 Original Android Development] Snuzzo:
[MENTION=4886472]WORF84[/MENTION]

Link please if you dont mind. I have yet to restore up to the latest build(Clean flash to test some items)