yashsingh1/xdaforums huggingface dataset:
[LG V30 Questions & Answers] runningnak3d:
Well, that was more of a pain in the butt than it needed to be, but repo is incoming once I clean up some of my debug code:

[swango:~/dev/kdztools/kdzextracted] master(+11/-8)* ± ../undz2.py -f G71010f_00.dz -l
[+] DZ Partition List
=========================================
0/ 0 : PrimaryGPT_0.bin (1363 bytes)
0/ 1 : PrimaryGPT_0.bin (277 bytes)
0/ 2 : PrimaryGPT_0.bin (277 bytes)
0/ 3 : PrimaryGPT_0.bin (335 bytes)
0/ 4 : PrimaryGPT_0.bin (2355 bytes)
0/ 5 : PrimaryGPT_0.bin (404 bytes)
0/ 6 : PrimaryGPT_0.bin (213 bytes)
1/?? : mpt (<empty>)
2/?? : drm (<empty>)
3/?? : sns (<empty>)
4/?? : ssd (<empty>)
5/ 7 : persist_13446.bin (743 bytes)
6/?? : misc (<empty>)
7/ 8 : ftm_21894.bin (75 bytes)
8/?? : power (<empty>)
9/?? : encrypt (<empty>)
10/?? : eksst (<empty>)
11/?? : rct (<empty>)
12/?? : fota (<empty>)
13/?? : srtc (<empty>)
14/?? : pstore (<empty>)
15/?? : els (<empty>)
16/?? : carrier (<empty>)
17/?? : persdata (<empty>)
18/ 9 : oem_a_77574.bin (738 bytes)
<snip>

and

θ78° [swango:~/dev/kdztools/kdzextracted] master(+11/-8)* 3s ± ../undz2.py -f G71010f_00.dz -s 20
[+] Extracting single slice^Wpartition!

[+] Extracting vendor_a_81670.bin to vendor_a.image
[+] Extracting vendor_a_114503.bin to vendor_a.image
[+] Extracting vendor_a_147206.bin to vendor_a.image
[+] Extracting vendor_a_147701.bin to vendor_a.image
<snip>
[swango:~/dev/kdztools/kdzextracted] master(+11/-8)* 130 ± cd dzextracted/
[swango:~/dev … ols/kdzextracted/dzextracted] master(+11/-8)* ± mkdir mnt
[swango:~/dev … ols/kdzextracted/dzextracted] master(+11/-8)* ± sudo mount vendor_a.image ./mnt
[swango:~/dev … ols/kdzextracted/dzextracted] master(+11/-8)* ± cd mnt
[swango:~/dev … kdzextracted/dzextracted/mnt] $ ls -al
total 208
drwxr-xr-x 27 root root 4096 Dec 31 1969 .
drwxr-xr-x 3 swango swango 4096 Dec 15 10:29 ..
drwxr-xr-x 8 root 2000 4096 Dec 31 2008 app
drwxr-xr-x 6 root 2000 8192 Dec 31 2008 bin
-rw------- 1 root root 8664 Dec 31 2008 build.prop
drwxr-xr-x 2 root 2000 4096 Dec 31 2008 carrier
<snip>

The quick and dirty is that the header changed -- which is why there was data in the pad (that is the zero padding at the end of the header to make it 512 bytes) -- so I defined those, and they also changed the compression from zlib to zstandard (you need version 0.9 or greater) NOT zstd.

Lastly, when the compress, they don't include the size in the zstandard header, so I just picked a value that was big enough to decompress the largest partition.

Again, I have a lot of cleanup to do, and then I will commit this. Eventually I will make it so you can pass something like --zlib or --zst so that one file can be used to extract both old and new format KDZs, but for now there is undz2.py :)

-- Brian
[LG V30 Questions & Answers] runningnak3d:
OK - thread and link are here.

Please let me know if you come across any KDZs that you can't extract, but please post the errors in that thread.

-- Brian
[LG V30 Questions & Answers] eduuk:
hey guys,

sorry but I didnt get the time to answer you. Took me an entire day to patch the python code. It's so so ugly code, so I would prefer not share it if anyone can code it better than me :)

There was a guy who was sending me private messages to do the same as me, and he got it too. The only thing to do is to change the algorithm and patch out asserts and other checks.

Please let me know if you can do it without my ugly code. Otherwise, I will share it of course.

---------- Post added at 12:54 AM ---------- Previous post was at 12:51 AM ----------

Yeah 0x200 bytes of header, i removed that first with dd and then I coded in python changing offsets. Sorry but I dont have the time of coding this properly.

---------- Post added at 12:59 AM ---------- Previous post was at 12:54 AM ----------

The best way is to do a pull request at the main repo https://github.com/ehem/kdztools

---------- Post added at 01:00 AM ---------- Previous post was at 12:59 AM ----------

Dude, did you read this by any chance? https://github.com/ehem/kdztools/issues

Cheers mate
[LG V30 Questions & Answers] Dvalin21:
Thanks for the answer [MENTION=9536711]eduuk[/MENTION], however Brian did a kdztool working that I was able to fully extract all the image files for the G710TM10n firmware for T-Mobile. Still with that said we still appreciate all your work!
[LG V30 Questions & Answers] eduuk:
Excellent! If you can, do a pull-request in the main repo ;)
[LG V30 Questions & Answers] love edition:
How to solve the problem bro [MENTION=3167089]runningnak3d[/MENTION]? plz help me :(
[LG V30 Questions & Answers] Mesba1247:
Then you can put a lot of "py" format files and make exe programs.

Or how to teach me to unpack KDZ because I want to extract wallpaper
[LG V30 Questions & Answers] LGFan23:
hello Brian, i have the LG V20 H990ds and i don´t know anything about programming. I don´t know how to patch the undz.py

i tried to extract the dz file like descriptet in this thread: https://xdaforums.com/t/guide-lg-v20-hard-unbrick.4244283/

i could extract the kdz file with the unkdz.py

but when i try to undz.py then i get the message: Error: extraneous data found IN pad

I am stuck. What can i do? Must i generate a completely new undz.py file? And how can i do this?

Matthias
[Android Software Development] Mihai.INdreias:
Today i created a build prop editor , written in c++.

Feautures:

-Simple to use

-For now it has 9 tweaks(more will be added soon).

Note:

-Do not use the "S8+ model number" option if u don't have a Samsung Phone , cause this can mess up your build.prop.

-The build.prop must NOT be in a zip/rar/7z.... etc file

Current version :Beta #1

I am a beginer into this , so more stuff will be added later :D

Download:

https://drive.google.com/open?id=1st3FzOFguvNNGfENuaXaLaGxu2cL8Z14
[HTC One A9] JS.zip:
Problem, bricked USB port.

The bad, can't connect too a computer or USB otg.

On latest stock.

The "good?" Charging works with none oem power brick and cable. I am also unlocked bootloader & s-off.

I remember old htc devices you could rename a file to something and use stock recovery, h-boot for example.

Maybe this could work with a root zip (SuperSU/magisk)

Anyone have an idea I could try.
[HTC One A9] Wonders_Never_Cease:
Double post

---------- Post added at 09:01 AM ---------- Previous post was at 08:59 AM ----------

If charges by non oem block and cable via usb port.. Its not the usb on phone...Possibly Flashify to flash recovery and Magiks afterwards
[HTC One A9] JS.zip:
Thank you very much for your reply.

I had forgotten all about Flashify, but unfortunately it appears not to work without root.

Also tried flashfire, but root is needed also.

Oh well stuck on stock it appears lol.
[Other SmartWatches] ALause:
New interesting watch whit big battery, 4G and NFC
[Other SmartWatches] sebj84:
yeah i got it looks ugly but lets see how it works... no developer option............... no build number shown....
[Other SmartWatches] sebj84:
is here somebody whos got the same? i really go a little mad on this one. i think it will need a custom made twrp. i've never done this.. help?
[Asus ZenPad 10 Questions & Answers] TaZeR369:
I was looking around but couldn't specifically verify if the root method posted in these forums will indeed work for the Zenpad 10" Z301M model specifically the one sold at this store?

http://www.canadacomputers.com/product_info.php?cPath=710_375&item_id=116986
[Android Q&A, Help & Troubleshooting] zJustSimple:
Hello,

For the past weeks I've been trying to port various ROMs (Same SoC and kernel, 3.18.19) to my MTK6580 phone. I've always went the copy-paste one by one route though they won't boot. I feel like I'm doing something wrong here, I've tried following ALL the guides I found. Could any kind person port me a Lineage OS, XOS or something else as long as I provide the stock rom? I just need it booting, I'll tweak it from there if it's needed. Thanks.
[Sony Xperia XZ1 Compact Questions & Answers] jinishpv:
hai guys i tried to unlock bootloader by official sony method by selecting xperia xz(because xz1c not listed) and got my unlock code by my imei,but when i hit the unlock command ,its not working, can someone please help me to unlock my bootloader i am on the version(47.1.a.8.49), one more doubt is as iam on the latest version(1st december 2017 security patch) does the twrp for the older security patch works for my version,because i didnt find the proper twrp for the latest security patch
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
Did you enable OEM unlocking in the developer options?

You know you're going to lose you camera right? I mean no pictures whatsoever.

No I'm not sure TWRP is working for December update yet.

You can't flash old version TWRP with new 47.1.A.8.49
[Sony Xperia XZ1 Compact Questions & Answers] BetaLyte:
There's actually a recently released DRM fix, which reportedly fixes the camera: https://xdaforums.com/xperia-xz1-compact/development/oreo-xz1c-drmfix-root-ricoff-t3727029

modpunk just updated TWRP with December security patch: https://xdaforums.com/xperia-xz1-compact/development/recovery-twrp-3-1-1-stock-security-t3706704
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
My mistake, it's only been out a day so I hadn't spotted it.

Looks like there's some success on the thread, but I'll hold back a bit before I jump.
[Sony Xperia XZ1 Compact Questions & Answers] BetaLyte:
Yeah, me too. sToRm// is taking a look at it, at will include it in XperiFix. But it's still important to notice, that it's a fix, and not a DRM backup / restore solution, so the original TA partition / DRM keys will still be lost and won't be recoverable.
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
Yes, it's a one way step and you're reliant on the developer bringing a new version of the fix each time there's a firmware update.

No offence to the developer, but I know nothing of M-Rom or aledoom, it would be good to know a little of their background before I open my phone to some software from a unkown forum.
[Sony Xperia XZ1 Compact Questions & Answers] lokio27:
Since nobody bothered to give an answer...

1. Go to the Sony Bootloader Unlock page here

2. Follow the steps for the Xperia XZ

3. Get the email, click the link, type in your IMEI

4. Follow the instructions on the page.
[Sony Xperia XZ1 Compact Questions & Answers] mhaha:
It looks more like you didn't bother to read OP's post.

He has already done all that, he's asking why the unlock command isn't working.

Unfortunately, up until recently, unlocking the bootloader on this phone is extremely unappealing, so like almost no one has tried unlocking it, and those who did probably didn't run into this problem, so no one was able to offer an actual answer.

The first reply actually provided some suggestions. If you bothered to read.
[Sony Xperia XZ1 Compact Questions & Answers] lokio27:
I couldn't find any help anywhere when I was looking for help on that, so I felt like a post was needed in general.
[Sony Xperia XZ1 Compact Questions & Answers] jinishpv:
problem solved

tried bootloaderunlock on my desktop pc and it worked,flashed latest twrp ,flashed drm fix every thing is working fine,anyone had sucess in magisk and viper4android?
[Sony Xperia XZ1 Compact Questions & Answers] OldBeurt:
Hi, I have maybe the same issue :

fastboot -i 0x0fce oem unlock 0xMyKey

returns only

...

and seems stuck : nothing happens.

So I would like to unlock my bootloader, but I cannot manage to do it (of course *#*#7378423#*#* then Service info > Configuration > Rooting Status Bootloader unlock allowed says Yes).

How did you manage to unlock your bootloader?
[Sony Xperia XZ1 Compact Questions & Answers] OldBeurt:
I did not find a proper solution. It is still impossible to unlock my XZ1c with my laptop. Fortunately, I did manage to unlock it using my (very) old former laptop (it’s 32 bits, I had to use the old ADB v23), and it worked like a charm.

I don’t know why it failed on my current laptop (either with my usual OS Linux, nor with Windows 10).
[Sony Xperia XZ1 Compact Questions & Answers] muhschaf:
Old thread is old? i don't care. because i want to say that looks like Sony finally give the XZ1c into the data base and there is a hot to guide over the Dev mode of the Phone. i will past the Sony guide to it here so this info will spread where it needed:

"To be able to unlock your Xperia XZ1 Compact, prepare it by following these steps:

Go into Settings > About phone and tap seven times on Build number to enable developer options.

From Settings, go into Developer options and enable OEM unlocking.

Warning:

Camera stops working on certain software releases.

Device protection features will not work on this device while this setting is turned on. Note: It will only be possible to unlock the boot loader for certain releases. You can check if it is possible to unlock the boot loader of your device in the service menu by following the steps below:

In your device, open the dialer and enter *#*#7378423#*#* to access the service menu.

Tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.

"

Source: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/

/€: Again, you guys are way to deep into the matter and i found several things that was never mention by any tutorial.

after several testings and also failings i will add: under windows 10, you have to check the Drivers double and make sure you use one that works!

EVEN IF IT APPEARS THAT THE DRIVER IS CORRECT IT MAY NOT THE CASE!

To check this you have to use "ADB DEVICES" and "FASTBOOT DEVICES".

Only if your device appears in the list IN BOTH (!) cases the driver setting is correct. This is very important.

Also you have to consider that after reboot into bootloader ("adb reboot bootloader") the device will NOT RECOGNIZE (!) by windows and appears as new device without any driver! (check Device Manager for this) so you can't access it in that state EVEN it was recognized before!

You have to install the Google Android USB Driver in this case. Also you have to check if the device appears still in both (adb, fastboot) lists.

Only then you can preform the Guides correctly!

summary: you have to install two (!) driver to get proper access to your device, one driver can only be installed in a certain state of your device (bootloader state) you have to make sure that your device is accessible in all states to preform your unlocking AND img pushing correctly.

Your bootloader is unlocked if on Power up the message appears "Your device has been is unlocked and can't be trusted. Your device will boot in 5 seconds"

...and now i go and found a way to get rid of the "non access on external cards for apps" _feature_ ...ands no all the tools and images and guides DON'T WORK.
[Sony Xperia XZ1 Compact Questions & Answers] mosbyxz1c:
So how did you manage to work this out? I have this exact problem. When the phone is in fast mode (volume up) it shows in the "fastboot devices" but not in the "adb devices". When it's turned on it does show up in "adb devices" but (obviously) not in fastboot devices...

As it is, when i try the "fastboot -i 0x0fce oem unlock 0x<insert your unlock code>" it tells me that it doesn't know command -- i. I have found nothing about this problem at all. nowhere. I'm tried to unlock the bootloader (settings, show it's possible) for 5h and haven't managed to do it yet... I'm really thinking about sending it back, this is just too annoying... please please help me...
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
Have you checked that your phone can be unlocked?

Some providers sell phones that can't be unlocked so that they don't have to deal with the warranty mess.

Open your phone and type *#*#7378423#*#* - then look under Service info\Configuration under Rooting status it should say Bootloader unlock allowed: Yes

If it says No, then you need to stop, there is no way round this.
[Sony Xperia XZ1 Compact Questions & Answers] mosbyxz1c:
I bought it straight from amazon without any carriers but yes it is allowed (that's what I meant with "settings show it's possible", sorry if that was unclear).

I just double checked, just to be 100% sure. And yes:

Rooting status:

bootloader unlock allowed: Yes
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
Presumably you've enabled OEM unlocking in the developer options?

Otherwise it's a driver problem, good luck with that.
[Sony Xperia XZ1 Compact Questions & Answers] Nerre:
I got the same problem, I just removed the "-i 0x0fc" part, so it became "fastboot oem unlock 0x<insert your unlock code>".

I think there may be a newer version of fastboot that lacks the -i option.
[Sony Xperia XZ1 Compact Questions & Answers] mosbyxz1c:
Thanks for trying to help.

Got a little hopeful but now i get a

FAILED (remote: Command did not succeed)

I'm going crazy... I'm really thinking about setting up a dualboot linux (or boot from usb). you guys think thats useful? I have no problems with drivers at least. If yes, ubuntu enough? I don't have a lot of linux experience..
[Sony Xperia XZ1 Compact Questions & Answers] muhschaf:
Your mention of "Volume up" button indicates that your try to reboot it per button pressing. Try to avoid that. Your device should reboot by typing in the fast boot command and press enter. then you have to check the driver state in the Device manager and their install the correct driver (Google ADB driver). Don't unplug your Phone during this.
[Sony Xperia XZ1 Compact Questions & Answers] Sexy scientist:
My device is not recognized in fastboot mode on "fastboot devices" command. I am not able to install google usb drivers in fastboot mode. I also needs to be mentioned that official sony developer website suggests that platform-tools 26.0.2 or older is required. I couldn't find it anywhere, so I am using 27.0.1.
[Sony Xperia XZ1 Compact Questions & Answers] Kofoedsan:
Have you installed the Google USB drivers?

https://developer.android.com/studio/run/win-usb

Download the zip and extract it, connect the phone in fastboot mode (the LED should be blue), then right click on the .inf file and install it.

Make sure device manager lists it as "Android Bootloader Interface" under the category "Android Devices".

You may have to right click on the phone in Device Manager and browse for a driver on your PC, then "Let me pick from a list" and find the previously installed driver in there.

Hope it helps.

Latest SDK platform is here as well

https://developer.android.com/studio/releases/platform-tools
[Sony Xperia XZ1 Compact Questions & Answers] Sexy scientist:
Here's your first thanks Kofoedsan. It really helped. Only "android" option was available in device manager when xz1c was connected in fastboot mode. But, when I updated drivers to "google usb drivers", "android bootloader interface" option appeared. When I typed "fastboot devices", my device was detected. But when I ran the fastboot, cmd says "-- i option is not recognized". I guess this is happening because I used latest platform tools 28.0.1 but on official page it says "Platform tools 26.0.2 or older is required.

Update: I found older platform tools on xiaomi firmware website and used them. Now, the command is being recognized but the output is "FAILED (remote command did not succeed)".
[Sony Xperia XZ1 Compact Questions & Answers] vofferz:
Have you enabled oem unlock in developer options?

You should also back up your TA partition before unlocking...
[Sony Xperia XZ1 Compact Questions & Answers] Kofoedsan:
Can you provide a screenshot of the CMD window?
[Sony Xperia XZ1 Compact Questions & Answers] Sexy scientist:
Yes, I have enabled oem unlock in developer options.

No, I haven't backed up my ta partition yet, because I can't find any helpful thread. My build is 47.1.A.5.51

---------- Post added at 12:05 PM ---------- Previous post was at 11:56 AM ----------

Microsoft Windows [Version 10.0.17134.472]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>d:

D:\>cd\softwares\tools_26.0.0-windows

D:\Softwares\tools_26.0.0-windows>fastboot devices
BH9XXXXXXX fastboot

D:\Softwares\tools_26.0.0-windows>fastboot -i 0x0fce oem unlock 0xXXXXXXXXXXXXXXX
...
FAILED (remote: Command did not succeed)
finished. total time: 0.047s

D:\Softwares\tools_26.0.0-windows>
[Sony Xperia XZ1 Compact Questions & Answers] Kofoedsan:
Have you checked with step 1 in the Sony guide to unlocking the bootloader?

"Check if the bootloader can be unlocked on your device"

Unless the unlock code is incorrect I got nothing.

I've not backed up my TA, as no such tool was available when I unlocked my phone, so I can't give any advice on that but if I had the option to backup the TA partition I'd do it in case I ever needed to resell/repair the phone.

EDIT:

When the phone is powered on, have you enabled USB debugging and allowed the PC to connect?

The Sony unlock code is case senestive, so be sure that it is entered correctly. Alternatively, try and change the letters to UPPERCASE and see if that works.

Furthermore, it is a good idea to remove the code you entered in your previous post as it is linked to your phones hardware number.
[Sony Xperia XZ1 Compact Questions & Answers] vofferz:
Follow the first post instructions to make TA backup:

https://xdaforums.com/xperia-xz1-compact/development/devonly-exploits-temp-root-to-backup-t3795510

If you unlock your bootloader before that, your drm keys are forever lost.
[Sony Xperia XZ1 Compact Questions & Answers] Sexy scientist:
Yes, my bootloader is unlock allowed in *#*#service#*#*

Yes, when my phone is on, it is connected as usb debugging on and MTP protocol.

I have removed the unlock code. Thankyou for informing me Kofoedsan.

I will try uppercase, but [MENTION=7803472]vofferz[/MENTION] is telling to backup ta partition first. I will try that. I have read in other threads that without my DRM keys, I will lose my camera.

The thread posted by [MENTION=7803472]vofferz[/MENTION] https://xdaforums.com/xpe...ackup-t3795510 does not support my build 47.1.A.5.51

I have found a thread supporting my build https://xdaforums.com/xperia-xz1-compact/development/oreo-xz1c-drmfix-root-ricoff-t3727029 but I cannot understand how [MENTION=6844550]M-Rom[/MENTION] is telling to flash twrp with bootloader still locked. I am not able to follow the instructions.
[Sony Xperia XZ1 Compact Questions & Answers] vofferz:
You have to downgrade your firmware to a supported one. Links are given in the thread I linked.

That other one you linked is not a backup method but a fix to get camera working if you haven't backed up DRM keys and lose them when you unlock.
[Sony Xperia XZ1 Compact Questions & Answers] Sexy scientist:
Oh, okay. Now I think I understand. This is a hefty protocol. I will hopefully try next weekend. Till then, I will keep my xz1c away from OTA updates as suggested by [MENTION=4418980]j4nn[/MENTION]
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
Honestly, if you're having this much trouble getting the right drivers on your computer, then I would say unlocking a phone is maybe not for you.

The forum has seen a great many 'I unocked my phone and now it's broke' posts.

The stock Sony phone is an amazing piece of engineering and there's not a lot you/we can do to make it better.
[Sony Xperia XZ1 Compact Questions & Answers] Sexy scientist:
Your advice is deeply appreciated [MENTION=4354390]Didgesteve[/MENTION]. I think so too. But everyone has to start somewhere.

Also, my volte is not working.
[Sony Xperia XZ1 Compact Questions & Answers] vofferz:
I don't think unlocking will help with VoLTE...

What I've read, some customizations have VoLTE enabled and some don't. It's possible to flash a different stock firmware without unlocking your device.

But yeah, you should consider why you want to unlock. If you absolutely need root, then it's the only option. Many things can also be done without.

Sony phones are not the easiest ones to root properly...
[Sony Xperia XZ1 Compact Questions & Answers] Didgesteve:
If you want to root your phone to enable VoLTE then you really are barking up the wrong tree.

Read up on Newflasher and Xperiafirm, these are all the tools you need.