yashsingh1/xdaforums huggingface dataset:
[LG V40 Questions & Answers] cmichaelt:
Probably my final update. Due to you mentioning DLLs, I decided to update mine in case something got over written over the last three to four months. Tried to flash the KDZ. No luck, flash a different laf_a and laf_b and it completed the flash. Booted to stock, did all the steps to get back to having Lineage OS. The only error I have which is pretty major is my IMEI is "0". So just gotta figure out how to fix that, I found a copy of my IMEI value by sheer luck. Thanks for your help. Immensely helpful.

Edit: If I am lucky and have made a TWRP backup of my phone with the stock ROM from months ago, is it possible to restore my IMEI from that?

Edit 2: To answer my own question: Yes, yes it is possible and I am so thankful for making that back up. The only remaining issue is that when Lineage OS is loaded up, I am prompted with a message saying "There's an internal problem with your device....." I can live with just click through that after this. I am amazed at how recoverable this device is. I was on the verge of looking for another phone.
[LG V40 Questions & Answers] cloud1250000:
would you mind sharing how you made those backup? i'm looking into backing up the v35 at&t android 10...
[LG V40 Questions & Answers] herb9876:
Sure

put your phone into edl mode for me its hold power and volume down wait for the reboot then tap volume up as fast as i can.

open qfil tick "flat build" and make sure storage is set to ufs.

click browse and select your particular firehose file

under the tools menu select "Partition Manager" then click ok

right click the partition you want to backup then select "Manage Partition Data"

select "Read Data..."

the backup will start and status will show below in the status box and also show you where exactly the file was saved on your computer.

i just did that 94 times for each partition leaving out "user data".. hope this helps
[LG V40 Questions & Answers] cloud1250000:
oh okay, you're insane! thanks for that :)
[LG V40 Questions & Answers] slebeau1988:
Anyone willing to do this on a T-Mobile V40 and share it?
[LG V40 Questions & Answers] lexih:
Hi guys!Does anyone have backups of their partitions on the lg v40 under sprint?
[LG V40 Questions & Answers] anotherdj:
Herb, would you happen to have a script to rename all those files ReadData_ufs_* by their corresponding labels? Am dumping Sprint firmware.
[LG V40 Questions & Answers] lexih:
I welcome anotherdj, I myself am not good at this, but I can tell you about the instructions using python, if you understand this, it will help you https://github.com/bkerler/edl#for-ufs-flash
[LG V40 Questions & Answers] anotherdj:
Stock Sprint Pie (20g) Partitions

Stock Sprint LM-V405UA ROM version Pie 20g (V405U20g). Dumped with QFIL after factory reset.

[Mirror 1] [Mirror 2]

V405U20g on slot A.

partitions patched to remove identifying details:

ftm // wiped IMEI, S/N

IMEI 15 bytes at offsets 0xD000, 0xE00044 replaced with "012345678901234"

S/N (serial number) 14 bytes at offset 0x12000 replaced with "DUMMYSERIALNUM"

carrier // Contained phone #, so I deleted databases on filesystem under carrier/apps, carrier/omadm

Partitions not included:

userdata

drm (includes SIM card ICCID and wifi MAC) // drm is an ext4 partition, you can create a blank one of right size, loop-mount it and copy stuff into it yourselves

modemst1

modemst2

fsg

els // encryption stuff

encrypt // encryption stuff

Everything else included: slot A partitions and common partitions.

Per steadfasterX salt.vars

# known to be dangerous to flash (in terms of locking/unlocking state and device specific data
# like IMEI etc
export PDEVICE="@(devinfo|drm|misc|modemst1|modemst2|persist|persistent|sns)"

Per N4cr2k: "skipping modemst1&2, fsg, eri (so i don't mess up my imei)"

---------- Post added at 08:52 AM ---------- Previous post was at 08:47 AM ----------

@lexih - thanks for the heads up, man! I already dumped partitions by Windows QFIL before I saw your message. Will try it out this week - looks super-useful :good:
[LG V40 Questions & Answers] lexih:
thank you, success and respect to you!!!
[LG V40 Questions & Answers] lexih:
in general, such a thing: I tried to put a backup from the sprint that yesterday I posted the respected Anotherdj and does not install, more precisely, everything is installed, but the size of OP_a / OP_b does not match the size of the partition as a result of the absence of the OP folder, it seems there are messages here on how to fix this problem, but it's difficult and it's not clear! how to solve this problem, who will tell you? I think that those who made crossflash will not be able to roll back to the sprint without creating rawprogram0.xml / patch0.xml! in general, I need help installing this backup
[LG V40 Questions & Answers] lexih:
According to the item "partition manager raw address feature" - what values should be entered to equalize the size of OP_a, b and the partition?the range to enter is from 0-6 or 0-1 and what other data needs to be entered to correctly edit the location and size?
[LG V40 Questions & Answers] N4cr2k:
You need to edit the GPT partition table to resize the any partitions, OP_a,b are no exception. This can be done by hand, the layout is well documented. Or if you can get an existing GPT that has the sizes you need, its probably easier to just flash that.
[LG V40 Questions & Answers] lexih:
ok!Thank you! I just flashed each batch by pre-installing the open kor 409n firmware (the size op_a.b is larger than that of the sprint, this made it possible to install the op_a sprint) now I have a full-fledged lg v40 sprint !!! Thank you all, good luck !!
[LG V40 Questions & Answers] anotherdj:
[MENTION=2980801]lexih[/MENTION] The Sprint dump I posted does include GPT partition layouts for all LUNs, I believe - those fh_gpt_header*, fh_gpt_entries* should be it.

That bkerler/edl you suggested does describe itself as capable of generating rawprogram0.xml, rawpartition0.xml. Lemme run it when I find time...
[LG V40 Questions & Answers] lexih:
Thanks for clarifying! regarding the creation of rawprogram0.xml, rawpartition0.xml - it would be great, because in fact it will be a stock firmware! we look forward to your results on generating rawprogram0.xml, rawpartition0.xml
[LG V40 Questions & Answers] Alibaba0101:
Anyone have a backup for ATT 30c? somehow my slot A does not boot and just stays onthe lg v40 splash screen.

Already restored abl_a and boot_a from b but that didn't seem to make any difference. Any suggestions would be greatly appreciated!
[LG V40 Questions & Answers] AsItLies:
This is a link to att30c boot with twrp injected.I'd suggest to flash it to boot_a and see if it boots. Having twrp in it shouldn't stop it from booting, assuming that's enough.

If it's not enough, here's what may be the problem: You have att phone, you have had it for awhile. It has had updates? Then if that's the case, when you restored abl and boot from other slot, you restored the previous versions.

I have 30c files (I think, they may be 30b - have to look), try above, if that doesn't work let me know which ones you tried to restore as it looks like that may be prob.

cheers
[LG V40 Questions & Answers] Alibaba0101:
Thanks, i think i killed slot a which had 30c on it. It wouldn't let me apply the 30c boot image above because the size was too large. I am running on slot b which still has 30b and was able to root it by extracting boot_b and patching it. It takes a long time to do anything with this phone since every time you want to try something you have to 9008 and qfil the engineering bootloader to get into fastboot.

If you do have a backup of att 30c would appreciate it. Is there a way to get fastboot back on the att phone with a 30c bootloader?
[LG V40 Questions & Answers] AsItLies:
I'll look to see shortly.

The thing most people do is flash the v35eng abl to the unused slot abl. Then use twrp to switch slots, boot to bootloader, use v35 eng fastboot. Then, in fastboot, set the other slot active and fastboot reboot.

You can also get a 'watered down' version of fastboot by erasing the laf. You'd then get to that fastboot by going to download mode. But to get DL mode (lgup) back, you'd have to reflash the original laf partition. iirc the 'watered down' version at&t gives is pretty good, what it won't do though is lock or unlock the bootloader. Pretty sure it can flash a partition and set active slot, etc.

cheers
[LG V40 Questions & Answers] AsItLies:
Sorry, just checked, my att Q is 30b. If I see 30c somewhere I'll post in this thread. I'd guess you could just do the update again? to 30c?

cheers
[LG V40 Questions & Answers] Alibaba0101:
Many Thanks!

I can't seem to get twrp to boot at all so I haven't been able to flash it. I just get the lg v40 splash screen every time I try it. So right now every time i want to try anything i boot to 9008, apply engineering laf, boot to fastboot, try changes and then reapply stock pie laf (since it doesn't appear to boot with engineering bootloader at all in pie).

I may try to delete laf and see how that works but the stock att laf does not give me any fastboot commands whatsoever, it just reboots back to the OS.

In case anyone else needs root without twrp, here is a general guide:

MUST BE BOOTLOADER UNLOCKED ALREADY

Boot to 9008 and use QFIL to backup active boot partition (boot_a or boot_b) - note backup location and filename

change the boot filename.bin to boot_a.img or boot_b.img so you don't mix it up with the others

boot to the os and copy the boot.img file over to the phone

use the magisk app to patch the boot.img file (disabling preserve encryption)

boot back to 9008 and use qfil to write the patched boot.img file to active slot boot_a or boot_b

boot back to the os and verify the magisk app that you are rooted
[LG V40 Questions & Answers] manjr:
I'm not an IT or very tech-savvy person but I'm really new to unlocking bootloader on an LG phone. This is my first time and I happen to face this as you were! But mine is v35 I think the method to recover is partially the same.

Can you share your step-by-step solution on how you recovered yours?

I really appreciate you!
[LG V40 Questions & Answers] RioBlazer:
Hello guys I know this thread is old thread. But can I get att stock firmware. I just cross-flashed mine without unlocking and now my sim card is locked. I cant find its kdz anywhere. I tried restoring the backup I got from a guy on telegram. But when I try to restore it via QFIL. It gives firehose error.

Thanks for the Help in advance.
[LG V40 Questions & Answers] AsItLies:
You'll never find an at&t kdz, it doesn't exist. Neither does one for sprint.

so the next step is to figure out why you're getting a firehose error, what it is specifically, and try to fix ea error until you can get the backup installed with qfil.
[LG V40 Questions & Answers] RioBlazer:
Well i get the error as "

Download Fail:FireHose Fail:FHLoader Fail:Process fail"​

I just backup my files using the same file and and unlocked the bootloader using same file. But i cant flash the backup.

I tried some fixes

1: Run qfil from installation folder as administrator.

2: Reinstalled qfil and lg drivers.

3: Spme other fixes that i found online but i can't remember them right now.

Can it be a firehose file error or might be that backup files are currurpt?

Really appreciate your help. Thanks!
[LG V40 Questions & Answers] eddie24902005:
Anybody still have AT&T partition? The links were removed ..... :( Thanks and appreciate for your help!
[LG V40 Questions & Answers] Giorgi-geo:
Horrible_AT&T_Android_Q_build.7z

drive.google.com

This is the latest ATT backup I could find. Last security update is dated 2020-04-01
[Xiaomi Redmi Note 7 Questions & Answers] Mxnoel:
Hi, so I just bought a Redmi Note 7 (Global Version, 64/4), and I'm facing some issues especially with the front camera. In fact, it seems to be unable to focus, so when trying to take a selfie, even in a short distance, the picture is taken unfocused and blurry. Is this common or should I be thinking on getting a replacement? I'm also facing keyboard lag in the edges but I've read that it is a common problem in Xiaomi phones and it should be fixed in next updates. Thanks!
[Xiaomi Redmi Note 7 Questions & Answers] chemimoco:
Most phones front facing cameras have a fixed focus distance. The sharpest focus is usually at an arm's length, try testing this with good lighting. As for the keyboard, I haven't had any problem with my phone.
[Xiaomi Redmi Note 7 Questions & Answers] Gonime:
Do you use any screen protection?
[Xiaomi Redmi Note 7 Questions & Answers] Mxnoel:
I don't, and the phone is just two days old
[Xiaomi Redmi Note 7 Questions & Answers] Mxnoel:
after checking with goog lighting and some distance the pics come with good detail and focus, thanks for the advice!

As for the keyboard, I've seen many people complaining about the same, the letters next to the edges (q, a, p, l) lag as hell and writing fast is impossible. I think it should be a sofware error, because Pocophone suffered something similar, but I can't be sure
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ananjaser1211:
This is great to see, ive been curious on how you fixed SS back on Note 5 nougat for a while now, ill give it a go on my N5 running pie.

Thanks for sharing :good: god bless
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Kill-Switch:
Nice find mate,Keep it up :)
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] SypeR_:
Nice finding mate, can i try the implement this method on [MENTION=4637718]ananjaser1211[/MENTION] 's Refined Nougat for N4? ?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Deleted member 6973536:
Is great, but I don't know how to do it ?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] KassemSYR:
nice !Good job!!!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] henok.gk:
Massive thanks mate!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] lâm1990:
Great! [MENTION=5715837]khongloi113[/MENTION] welcome back!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] danicadanicadanica:
Nicee
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
Great job mate, working perfect... View attachment 4794516
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] SHKOMAGDID:
Can someone just post the edited secure folder because i dont know how to even decompile it?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
Secure Folder doesn't needs to be edited...
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] SHKOMAGDID:
So why it didnt work i just edited the build.prop then what should i do?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
There is only 2 files to edit on the guide, build.prop and services.jar, is not much long to read...

Add back knox files you debloated (idk exactly which are required and which not, for testing I just added all knox stuff), edit prop, edit services, and done :good:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] SHKOMAGDID:
And heres the problem i dont know how to edit it maybe any guides?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] sazuke0703:
What's tools you use decompile service.jar?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
Apktool
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] sazuke0703:
Link apk tool please I decompile has eror.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] vaibhavnegi:
Can anyone please share their edited Service.jar?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] 白い熊:
Did you patch via option III.? I.e. just adding the line, or which way?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rcnitropowered:
Some proof
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] jay185:
what should I change it to? am on a stock rom note 8 exynos
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rcnitropowered:
You have to be root or have a custom recovery
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] jay185:
Yep I do have it. The build.prop is what I am talking about. You mentioned that I need to manually edit it. But change it to what?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] louforgiveno:
change ro.config.iccc_version=3.0 to

ro.config.iccc_version=iccc_disabled
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rcnitropowered:
Yes

You got health working? Change time from 1 to 0 there few post back I got a pic of that part

---------- Post added at 03:13 AM ---------- Previous post was at 02:56 AM ----------

Crash few times form me while setting up, won't let me finish and when finish it reboot the phone till I quickly sent a pic to the secure folder and now it's working perfectly
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] jay185:
I'll give it a shot.

---------- Post added at 03:53 AM ---------- Previous post was at 03:28 AM ----------

Secured folder still isn't asking for password when locking even after replacing it with your services.jar and editing build.prop
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] louforgiveno:
Which services.jar did you use?

Not sure what you mean when you say you used "My" services.jar....i didn't do this mod on my note 8.....i have done it for the Note 10+ Sm-N9750....
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rcnitropowered:
Go to setting apss, look for secure folder delete data restart and try again
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] jay185:
Still the same. Secured folder won't lock nor accept my initial password for it. It just opens without asking for anything.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rcnitropowered:
Even after reboot?

In settings you can set the time to block the app, try to mess with that might work
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
Did you already try this?:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] jay185:
Nope. Just add the word true to floating features?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
If this feature is currently in false, change to true. If it doesn't exist, add the whole line
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] jay185:
Can show me the line that I need to set to true.

---------- Post added at 01:44 AM ---------- Previous post was at 01:40 AM ----------

I have this added before the last line in floating features

<SEC_FLOATING_FEATURE_KNOX_SUPPORT_UKS>TRUE</SEC_FLOATING_ FEATURE_KNOX_SUPPORT_UKS>
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] jay185:
The last lineView attachment 4877355
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] louforgiveno:
Did you look through the .xml to make sure there wasn't already that line added and maybe set to False?

It's all alphabetic {sec floating feature} ["A's"] then [B's] etc....you'll go to the [K's] for knox heading

SEC_FLOATING_FEATURES_KNOX.....
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] jesvi:
same here , i too have the same problem in oreo

---------- Post added at 03:34 AM ---------- Previous post was at 03:25 AM ----------

doing this works only till the next reboot and after a reboot it reverts back and again the bug occurs as usual
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] jay185:
Still no go.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] zeroktal:
Switch to VN-rom, it's fixed there.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] panchovix:
Just passing by to say really thanks, this worked on S8+, Chilean Stock firmware with November Security patch, the line on floating_features.xml was a must to make the pin work again each time
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] starbucks2010:
@khongloi113 any fix for the secure folder in Android Q (S10+)? I made the modifications requested in Pie build.prop + smali line added) but still getting this error:

2019-12-23 21:00:11.150 5123-5123/? E/epmd: Mount DE ERROR

2019-12-23 21:00:11.150 5123-5123/? E/vold: error mountKnoxCmd containerId(153) isSdpSupported(1) mType(3)

2019-12-23 21:00:11.160 1947-2625/? D/KnoxNameSetting: error: provisioningTaskError

2019-12-23 21:00:11.176 1947-1947/? E/KnoxLog: showErrorDialog() : Failed to create Secure Folder.

Thanx.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] louforgiveno:
I assume you also checked/edited Floating Features xml?

Also, have you tried using an older version of Secure Folder?

I'm not on android 10 btw....just some suggestions....i did see dr.ketan mentioned he wasn't able to get it working yet either....not sure what he has tried as a workaround
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] starbucks2010:
Yes, this line is on true on my vendor/etc/floating_features.xml (<SEC_FLOATING_FEATURE_KNOX_SUPPORT_UKS>TRUE</SEC_FLOATING_ FEATURE_KNOX_SUPPORT_UKS>)

I tried also another version of SecureFolder app and the problem persist.I get to the point of checking my fingerprint then I get th message that cannot create the secure folder.

Something else must have changed in Q I guess.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rcnitropowered:
Use smali patcher worked for me
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] starbucks2010:
You use secure folder in Android Q by patching services.jar with smali patcher? Are you sure you're not on Pie?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rcnitropowered:
Have you tried? The original patch it's for oreo, just give a try, and first delete data from apps-secure folder

Have replace the line on the build.prop the ice version from 3.0 to iccc_disabled
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] starbucks2010:
Yes, I tried it but is not working. Same as many mods from Pie that don't work on Q anymore.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mauricio teles:
After root my phone i lose secure folder and i want to get back again, but i don't know how to do that, if someone can help me, i wold be very grateful.

i have patched build.prop already, but i don't know how to edit services.jar.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] louforgiveno:
Did you also install TWRP? If not you should, and create a backup VERY IMPORTANT....

If you're using a SNAPDRAGON device AND ANDROID 9(only) , Once you have made a backup you can test using the services.jar from here (Follow steps exactly to avoid any unstable system)

https://xdaforums.com/showthread.php?t=4002947
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mauricio teles:
No, i'm using exynos galaxy a50 (a505gt) with twrp, and i got here through the credits in JetBlackUI rom for my device, this rom has secure folder patched but i don't want all the mods that come in it, i just wanna patch secure folder.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] dorjan1976:
Same for me S8 November security patch , thank you .. with that service.jar working a bit smooth but is ok.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Rami3361:
Has anyone managed to get it to work on android 10?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] tomatolei:
Does anyone know how to fix the security folder in the latest oneui 2.0?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rcnitropowered:
Use smali patch this post is abandoned by the OP
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] zeroktal:
I cant find a smali patch after 2017? And nothing to do with secure folder? You got a link?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rcnitropowered:
https://xdaforums.com/apps/magisk/module-smali-patcher-0-7-t3680053/page466
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Denver3D:
Any update for android q ?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] unknowns300:
How about android nougat?