yashsingh1/xdaforums huggingface dataset:
[G4 Android Development] steadfasterX:
As written in the OP: doing it before is the correct way, yes.

You can still do so but this requires to boot to Android or fastboot boot twrp.

Then just replace the recovery file here:

(when pushing the following in TWRP mount Data before)

(when pushing the following in Android you need to execute "adb root" first)

adb push twrp-3.1.1-1-g4.img /data/media/0/UEFIESP/partition_recovery.img
[G4 Android Development] Spaceboy60:
select WIPE -> "Format Data" button

That'll wipe my whole internal storage, right?
[G4 Android Development] Spaceboy60:
Ok, tried installing AICP on one of the slots. Upon boot I get a blue crash screen. Is there any logs I can upload or any ideas why this is happening?
[G4 Android Development] steadfasterX:
well many..

1) UsU'd or not? Which model ?

2) data and cache "format" done? If yes do it once again just to be sure.

3) if UsU'd: baseband pkg flashed?

4) do you know how to make an insecure kernel? not "building" but unpacking the ramdisk (then some props adjustments needs to be done which I can tell you) and re-packing?

5) with an insecure kernel you can use "adb shell dmesg" plus "logcat -b all" to grab the logs on boot

-
[G4 Android Development] Spaceboy60:
1. Not. H815

2. Did that a second time. Now BIG issue: AICP has disappeared from the boot menu, I can't boot my original ROM (goes black and goes straight back to efidroid), twrp isn't bootable (goes black and then goes back to efidroid again). Am I going to have to reflash stock or is this rescueable via fastboot/adb?? Any suggestions?
[G4 Android Development] daiskun:
Enable the file Explorer option in efidroid, put a twrp image on the sd card, search for it and try to boot from there. If you can, flash you stock boot img and twrp and then try to install efidroid again
[G4 Android Development] Spaceboy60:
What directory would the sdcard be in as I can't find /mnt or /storage or/sdcard etc.
[G4 Android Development] steadfasterX:
Just Flash TWRP to Recovery Partition in fastboot
[G4 Android Development] Spaceboy60:
Thanks, all good as far as twrp goes. In terms of my main OS that won't boot, I guess restoring a backup from a few weeks back is my only option? I tried wiping cache/dalvik which made no difference. It was booting fine till I did the wipe data in twrp for the AICP rom I was trying to install.
[G4 Android Development] steadfasterX:
Not sure what happened there but you can try to format userdata in fastboot or TWRP then try to boot again. It will obviously wipe all your internal storage ofc.

Or restore a backup ofc
[G4 Android Development] Spaceboy60:
Ok, that didn't go so well! After doing a format data in twrp, upon restart the option for booting my rom is gone and so is twrp.

Tried flashing twrp again from fastboot but kept getting an error. However I managed to do a fastboot boot twrp and after a restart both bizarrely reappeared (didn't reflash trwp).

Anyway, had to do a restore in the end. Bit of a nightmare, teach me to backup more often from now on.
[G4 Android Development] Spaceboy60:
No, but seen since guides on unpacking and re-packaging so can give it a go.

I did download a different ROM, no blue screen errors, but it never finishes booting, just shows the ROM logo spinning and no welcome screen ever appears.
[G4 Android Development] steadfasterX:
extract the boot image and the ramdisk within (personally I use AIK on Linux).

change the default.prop of the ramdisk so the following is on top:

ro.adb.secure=0
ro.secure=0
ro.debuggable=1
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=adb

important: some of the above may exists in that file: remove (just) them so you just have the above definitions plus the other stuff

package the ramdisk and create the boot image afterwards.

boot into efidroid

select fastboot -> select the correct slot

fastboot flash boot <insecure boot image file>

adb logcat -b all

while booting

share the output by http://bpaste.net (dropdown there to "never")

.
[G4 Android Development] Spaceboy60:
OK, got AIK. Made the changes in default.prop and repackaged.

Tried booting, get following error:

target reported max download size of 4294967295 bytes

sending 'boot' (535811 KB)...

OKAY [ 26.421s]

writing 'boot'...

(bootloader) INFO: redirect flash to Multiboot ROM

FAILED (remote: data size exceeds partition size)

finished. total time: 27.258s

I need to increase SYSTEM or DATA partition?
[G4 Android Development] steadfasterX:
Lol no! Your boot image size is too big. You packaged wrong it seems
[G4 Android Development] Spaceboy60:
Is 24.3 MB (24,940 KB). Same size as original.

Used repackimg to repack and then winrar to add to the zipped ROM
[G4 Android Development] steadfasterX:
Huh? I told you to use fastboot not adding it to the zip.

As you written before when doing fastboot it have that error:

sending 'boot' (535811 KB)...

Which is NOT 24.3 mb.. So why it says 52 MB? Are you sure you send the correct file in fastboot?
[G4 Android Development] Spaceboy60:
Oh, my bad, didn't read it 100% correct. Added it to rom and flashed that lol.

Anyway, will try again. Post log later hopefully.
[G4 Android Development] Spaceboy60:
https://bpaste.net/show/2473bfc41965
[G4 Android Development] steadfasterX:
Well yes. Repackage it again but this time change the cmdline from

androidboot.selinux=enforcing

to

androidboot.selinux=permissive

I started a while ago to make selinux policies for efidroid but it's not that easy and so atm no ROM which has selinux set to enforcing will boot.
[G4 Android Development] Spaceboy60:
I add that to default.Prop? Cause only selinux line I have is ro.Build.Selinux=1
[G4 Android Development] steadfasterX:
No when you unpack by AIK you should find a file name with the word cmdline within . this one has to be changed accordingly.
[G4 Android Development] Spaceboy60:
Done that, reflashed boot: Now AICP logo shows then I get blue crash screen.
[G4 Android Development] steadfasterX:
Logcat again
[G4 Android Development] Spaceboy60:
[android@fwul Desktop]$ adb logcat -b all

* daemon not running; starting now at tcp:5037

* daemon started successfully

- waiting for device -

Nothing else happen, just stops there!
[G4 Android Development] steadfasterX:
Is it still the insecure kernel? So the one where you modded the default prop? Or do you have unpacked the original boot image for the cmdline change? If so do the default prop changes again plus the cmdline change
[G4 Android Development] Spaceboy60:
redone it all, still same problem

also tried flashing the previous one we got a logcat from, same issue

I am using a different PC. Could it be a USB problem? The logcat command you do while in efidroid before starting the OS right?

I did get one message from the newly repackaged boot.img upon reboot:

previous boot failed:

cmdline didn't contain a valid 'android.boot.hardware, no such file or directory

But I didn't touch anything in the boot.img-cmdline file other than adding androidboot.selinux=permissive to the end of the file. The file still contains: androidboot.hardware=qcom
[G4 Android Development] steadfasterX:
Share the whole content of that cmdline file. The error means you may changed it not correctly
[G4 Android Development] Spaceboy60:
console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=31 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 msm_rtb.filter=0x37 boot_cpus=0-5 lge_monitor_thermal.enable=1 buildvariant=userdebug androidboot. selinux=permissive
[G4 Android Development] steadfasterX:
It seems there is a space between

androidboot. and selinux but that's not correct.

androidboot.selinux=permissive is without any space.
[G4 Android Development] Spaceboy60:
ok, will change that. What about the "cmdline didn't contain a valid 'android.boot.hardware, no such file or directory" error? Is there anything else i need to change in that file?
[G4 Android Development] steadfasterX:
Just change that. It should be fixed after this
[G4 Android Development] Spaceboy60:
Ok, thanks. It boots anyway! Only issue is the setup crashes constantly. Maybe I need to format data again?

Edit: Formatting Data didn't help, setup crashes all the time so can't complete it to get to the rom
[G4 Android Development] steadfasterX:
Flashed gapps?
[G4 Android Development] Spaceboy60:
Thought I had, Maybe I hadn't. Anyway all good now. Thanks for all the help. Much appreciated :)
[G4 Android Development] steadfasterX:
If you are really thankful then consider to use the thanks button ;)
[G4 Android Development] VmasterL:
I've got efidroid working quite well on my usu'd h812, my home rom is atomic os h811, and I have aex in the other slot, also h811!!
[G4 Android Development] Spaceboy60:
Are you using the latest AEX posted a few days back?
[G4 Android Development] VmasterL:
Yes. I have yet to configure my wifi MAC address.
[G4 Android Development] Spaceboy60:
Ok, tried installing it as my Primary OS along with Gapps and Magisk on my H815, but for some reason it booted but never completed the boot (logo just kept going round for around 30 minutes, before I ended up pulling the battery)
[G4 Android Development] VmasterL:
Ok, I don't have magisk installed but gapps are installed, but a lot of apps crash, like music and phone, so I won't be using it as a daily.
[G4 Android Development] Spaceboy60:
Ok spoke too soon, after formatting data cause of wifi/hotspot issues, upon reboot: Phone has stopped, Google has stopped, Gallery has stopped, Android setup has stopped.

Reinstalled, flashed gapps, same errors after boot.
[G4 Android Development] VmasterL:
same here
[G4 Android Development] steadfasterX:
You boot it as a secondary ROM right?

Grab a logcat as before on boot with an insecure kernel
[G4 Android Development] Spaceboy60:
doesn't start logging till setup screen appears (insecure kernel is installed in /boot)

Also is there anyway to log it straight to a text file as the command window in FWUL only allows you to go up a certain distance (i.e there is stuff above that you can't scroll up to).

Logs attached.
[G4 Android Development] Spaceboy60:
https://bpaste.net/show/aea47d593ae8
[G4 Android Development] steadfasterX:
Yes :

adb logcat -b all > logcat.txt

A reason why you don't see anything until the setup screen comes up is maybe because the logcat service dies several times like the others. You should open another terminal while booting and do this:

while true; do adb shell dmesg -c; sleep 2;done 2>&1 >> dmesg.txt

Ctrl+C when you see the setup screen.

So at the end you should have a logcat.txt from the one terminal and a dmesg.txt from the other.

Share them separately by http://bpaste.net and set the expiry to never or at least 1 month for each.

EDIT:

ok at least something interesting already:

Please paste your

/data/media/0/multiboot/[YOUR-ROM-NAME]/multiboot.ini

.-
[G4 Android Development] Spaceboy60:
[config]

type = android

name = AICP

description =

[partitions]

system = system.img

cache = cache.img

data = data.img

boot = boot.img

firmware = firmware.img

misc = misc.img

raw_resources = raw_resources.img

Will bpaste the results of the other two commands later.
[G4 Android Development] Spaceboy60:
Dmesg:

https://bpaste.net/show/23a7dbdb0aa7

AND

Logcat:

https://bpaste.net/show/27652c5f383a
[G4 Android Development] steadfasterX:
Thats odd. The logcat is very small and does not contain much useful info. The dmesg shows the same backtraces as the logcat before so I guess the logcat service died as well.

from what I saw in the previous logcat I would guess there is an issue with the data and/or cache partition. At the moment you mount both as looped which is recommended but well.. we can try to use the cache partition not loop mounted. test again and if it still failing the same for the data partition -> which is more likely the issue at all.

.
[G4 Android Development] Spaceboy60:
Dumb question, but how do I mount each as non looped? LoopedSystem +BindOther in efidroid Manager? Or is there another way?
[G4 Android Development] Spaceboy60:
Ok advice about achieving this would be welcome
[G4 Android Development] steadfasterX:
Open efidroid manager in your primary ROM

Create a new ROM slot

Press the tab PARTITIONS and choose "LoopSystem + BindOther".

Press the tick in the top right corner to finish the setup * (or read the next lines as you might want to disable selinux as well for this slot)

Reboot to efidroid -> boot TWRP in this new ROM slot

in TWRP format only system (no need for cache/data as we changed the partition mounting) in Wipe -> advanced.

Install your ROM

wow I just realized we have the option to override the cmdline direct in efidroid!

That's really cool as for example you do not need to touch any ROM which is selinux=enforced anymore :)

I just tried it out on the latest LOS oreo build which is enforced and it works like a charme..

In the tab "REPLACEMENTS" click the floating plus button and add a new cmdline override:

Name = androidboot.selinux
Value = permissive

This will ensure selinux is always off for this ROM slot (which is a requirement in efidroid atm)

.
[G4 Android Development] Spaceboy60:
Well, I installed a stock based rom that wouldn't boot b4 and it works great.
[G4 Android Development] VmasterL:
Thanks for that new build btw!, I am trying to boot lineage off of my ext. sd card. It shows up on app, but not on the actual bootloader menu. I am assuming that it is not mounted at bootloader menu, do you know how to mount it?:confused:

Thanks, Lukas
[G4 Android Development] steadfasterX:
If I remember correctly the SD card must be formatted as vfat. How it is is formatted at the moment?

keep in mind that booting from SD card is always slower and it can reduce the life of the SD card dramatically
[G4 Android Development] VmasterL:
Ok will keep in mind, it is formatted as sdfat, I was just trying it out - might reformat it, Thanks

And how does the uefi device booting work? I have a OTG adaptor for booting from usb if thats what it is.
[G4 Android Development] Spaceboy60:
No need for otg adapter. Just like Windows dual boot or Grub or any other Linux bootloader that you select the OS you want to boot.
[G4 Android Development] Spaceboy60:
OK, big problem. Uninstalled efidroid and now in a bootloop and can't enter download mode. When I try to go to recovery via hardware keys instead of going to TWRP it just goes back to the LG Logo and starts bootlooping. Bricked device? Any ideas?
[G4 Android Development] steadfasterX:
how do u uninstalled?

what about fastboot? flash your boot image, twrp and system, then boot directly into twrp

.-
[G4 Android Development] Spaceboy60:
Using the efidroid app.

Couldn't get into fastboot mode either.

However I got lucky . Held the volume up button while connecting to the computer: this time I kept holding it for a couple of minutes, it kept rebooting to the LG Logo continuously, however after 5 or 6 reboots it suddenly went into download mode. Wasn't gonna chance my luck at this point. Used lg Bridge and all good, back up and running.
[G4 Android Development] steadfasterX:
Omf ... Well. I stopped with efidroid 2 years ago bc of the ramdisk size error mentioned here:

https://xdaforums.com/showpost.php?p=76730420&postcount=51

This error made it impossible to build newer TWRP releases including a fully UsU compatible one.

The dev of efidroid said he need to rewrite big parts if not everything to fix this and other errors. There is no fix or workaround for it avail. Unfortunately he completely abandoned the rewrite which is really bad but .. It turns out I found a workaround.. Booted TWRP 3.4 already but nothing else tested. Still some work to do like kernel stuff etc but the good news are it will be possible :)
[G4 Android Development] myphoneisweirdlol:
Hi, I tried this but when I went to the manager app, it said I had no root even though I flashed supersu.
[G4 Android Development] MAJESTiM:
Download the latest version by opening the "Downloads" tab of this thread (requires to open this thread in a browser)

This link is not working ether
[LG Stylo 3 Questions & Answers] asialove2013:
Hello, Sorry, I was blocked to access the XDA forum from China for a while. Sorry

Hi, anyone has a working LG LS777? I am trying to dump firmware for LG LS777 phone.

Please contact me ,I will pay you.
[LG Stylo 3 Questions & Answers] 0xi9en123:
I have one, I'm on it right now. I'll help ya out. It's the boost variant
[LG Stylo 3 Questions & Answers] jmgordon27:
Anyone know how to root the LG LS777 yet? I've tried many methods over the past few weeks and am still unsuccessful
[LG Stylo 3 Questions & Answers] asialove2013:
Hi, PM me with your email, so i can send you tools
[LG Stylo 3 Questions & Answers] 0xi9en123:
Done
[LG Stylo 3 Questions & Answers] mystica555:
Yo, I also picked up today a Stylo 3 from Boost and would be happy to help you out. Used to work for radioshack back in the day and even a crappy little wireless store that's still in business, even though the Shack has all but dried up. Seems smaller is sometimes better eh?

Let me know what you can offer, as I'm all about rooting this thing and making it do fun stuff. Already tryin to cellmapper around the area where nobody has yet on Sprint.
[LG Stylo 3 Questions & Answers] AntnyG:
I would like to give Root a try. Type boost 7.0

Reply: those tools sound great. Please expand my Knowledge on that boost type 7.0
[LG Stylo 3 Questions & Answers] bakerd62:
Good luck with rooting success on this phone. Alot of lg phones are looking scarce for root. Especially the LG tribute HD and other prepaid LG Android 6.x.x devices. It's crazy how locked up theses phones are. Check for access to the bootloader.
[LG Stylo 3 Questions & Answers] joncuellar17:
I jus got this phone 3 days ago.

---------- Post added at 01:46 PM ---------- Previous post was at 01:34 PM ----------

As I purchased this phone from Sprint I noticed it was missing the default player my other LG phones had. It comes preloaded with "Amazon Music" which is useless. I also noticed it came preloaded with "Google Messenger" as the default Messaging app. I have owned the LG Stylo, LG Stylo 2 Plus, and LG Aristo and what I loved about them was the customizability the messaging app had with chat bubbles and wallpapers. I know there is apps like "Go SMS" but I like the default better. What I loved about the Music Player app was how when you listened to a song, the album artwork would be a blurred background of the app. I tried using an app saver to save the apps to storage and sending through Bluetooth. When I installed it went through the install and then I get the message "Application is Corrupt". I may sound stupid but since they both had same OS version, are both LG, I thought it might have worked. Am I doing something wrong? I don't mind installing a random app for my music from the market, the issue is they all have ads. I tried to find one where if I paid a fee, it would remove them, but I had no luck finding one. I still rather use the original LG apps. Thank you.​
[LG Stylo 3 Questions & Answers] screamingwizard:
LS777

Do you have working tools on this device? I have one google locked and one that I am trying to reload the firmware

Thanks in advance
[LG Stylo 3 Questions & Answers] asialove2013:
hi

Yes, I can dump files from a working LG G6, It should work on LG LS777 model too.
[LG Stylo 3 Questions & Answers] quyen1993:
Can you send me the original rom for LG stylo 3 ls777 is not

Gmail: doimatbuon1993

---------- Post added at 02:22 PM ---------- Previous post was at 02:19 PM ----------

Can you send me the original rom for LG stylo 3 ls777 is not

Gmail: doimatbuon1993
[LG Stylo 3 Questions & Answers] n00b-xda-disciple:
What tools do i need for the stylo 3 ls777? Im willing to do whatever it takes to get progress.
[LG Stylo 3 Questions & Answers] joseph_b2:
Thanks in Advance.

[MENTION=535343]all[/MENTION]

Ever since the death of my LGG3 I have felt so "powerless" on the Stylo 3. The device itself is great. But not having access to log files, system info. and the modest improvements that Xposed provided is a major let down.

I have never been one to do custom roms or such things, but appreciate and acknowledge the value of being able to use Titanium to back up my device.

So thanks for everything and I look forward to seeing what wonders will be revealed for the Stylo 3 in the near future.

Regards,

Joe
[LG Stylo 3 Questions & Answers] imjehh:
If you can find way to root the Stylo 3 I'll gladly donate to you...

I'm sure obtaining root will help out many others as well
[LG Stylo 3 Questions & Answers] n00b-xda-disciple:
I talked to my friend who developed roms for the Samsung S3 I used, and he said we will have to unlock bootloader through adb to do amything. This thing is locked down tight. If we as a community can figure out that piece of the puzzle, we can achieve great things for the phone.

This device is way faster then the s3 I had but I really miss having [MENTION=4310299]bilgerryan[/MENTION] 's Wicked X Bare Bones. My processor was croaking and I cracked my screen so I upgraded. S7 still high dollar or I would have bought it. The stylo 3 is a superb phone and hope we can accomplish alot in the next year or two. Cheers!
[LG Stylo 3 Questions & Answers] imjehh:
The s3 was so much fun because of all the roms, overclocking, kernels...there was so much customization available and the wicked x rom was awesome.

How would we unlock the bootloader on this device? Custom roms can come later but let's first get root access first...any devs that can help out here?

I don't mind donating to the cause...
[LG Stylo 3 Questions & Answers] TheMadScientist:
its not that the bls are locked on these devices they are signed

without a decryption key or a bypass like g2 g3 loki and bump there is no chance the lg g4s and many other lg devices do not have any root insight which sucks. i just got a cricket varient and kinda like it
[LG Stylo 3 Questions & Answers] TheMadScientist:
so more than likely a root is going to be achieved with a modified aboot or laf

not sure yet i got the cricket stylo 3

and was able to sucsessfully pull the build prop and edited a few things but as of rite now cant push it back to device .
[LG Stylo 3 Questions & Answers] Strzelewicz:
Lg style 3 root

Hi can you please help me with rooting my lg stylo3 from t mobile thank you.
[Xiaomi Mi 4C] ysop:
flashed newest build.(AICP 4/14 and RR 4/8)

I only can use LTE.

cdma don't work.

as a result,SMS don't work,and I can't call anyone.

How to fix it?:confused:
[Xiaomi Mi 4C] RMB666:
me,too.why?
[Xiaomi Mi 4C] ysop:
Find one way to fix it:

Clean flash rr 4/13 build.

If still don't work,clean flash rr 2/25 build,then update to 4/13 build.

DO NOT flash gapps.

After reboot, confirm that cdma works,then reboot to recovery to flash gapps(if you need gapps)
[Xiaomi Mi 4C] pgool:
This doesn't solve the problem. As the new build is lack of options to set preferred network type to CDMA like in the old builds. I don't know why , but the developer just removed those types for choosing from. Only 4G, 3G, 2G options remains, but none of them is CDMA type. As a result, we cannot use China telecom SIM on the latest build.

I really hope the developer can bring the feature back for us to choose more network type as before. Because I think many of the Mi4C users are Chinese and many of them need CDMA. Now I just stopped upgrade this rom. I 'm currently on 0214 build.
[Xiaomi Mi 4C] pgool:
I just flashed the latest build, 0418, the network types are all back! You can choose CDMA without any problem:cool:

Thanks AndropaX!
[Xiaomi Mi 4C] hV0nC7:
emmm，i can use:)

You must chang the setting...

The China Telecom SIM must put in SIM1.

If you used double card,the SIM2 must use the GSM modem.
[Xiaomi Mi 4C] ysop:
Thanks for your answer, but it's a old question...Now 7.1.2 work, but 8.1 this issue exist.
[Xiaomi Mi 4C] hV0nC7:
I can use it in 8.X by this setting:)

My English is bad:(
[Xiaomi Mi 4C] ysop:
好的我在假期后试试，谢谢啦
[Xiaomi Mi 4C] hV0nC7:
Ok.Happy Spring Festival!