yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Download & Installation

Download ROM:

Android File Host

FTP-Server from [MENTION=9542156]dhacke[/MENTION]

Download Drivers:

OEM (Tama) binaries

Please use the the OEM build which came before my last release, unless otherwise written.

GCAM Camera App:

Suggested GCams But GCAM's aren't usable at the moment until a camera hardware resource budget bug got fixed in the OEM binary blob.

Installation with a recovery:

fastboot flash oem_a oem_*.img

fastboot flash oem_b oem_*.img

Flash the ROM in a recovery

Reboot into recovery just to make sure you're on the new slot

OpenGapps

Dual Sim Patcher

(In case a modification prevents your device from booting) fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Flash the ROM without a recovery:

Extract the payload.bin from the .zip file

Extract the .img files with the Playload Dumper

fastboot flash boot_a boot.img

fastboot flash boot_b boot.img

fastboot flash dtbo_a dtbo.img

fastboot flash dtbo_b dtbo.img

fastboot flash system_a system.img

fastboot flash system_b system.img

fastboot flash vbmeta_a vbmeta.img

fastboot flash vbmeta_b vbmeta.img

fastboot flash vendor_a vendor.img

fastboot flash vendor_b vendor.img

fastboot -w (Wipes your internal storage and the userdata)

Continue with the normal installation
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
News

01.10.2020

18.08.2020

14.07.2020

20.06.2020

06.06.2020

11.05.2020

14.04.2020

18.03.2020

01.03.2020

25.02.2020

24.02.2020

18.01.2020

11.12.2019

30.11.2019

24.11.2019

04.10.2019

03.10.2019

02.10.2019

29.09.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
29.09.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] SakthivelNadar:
First woohoo!!!! :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] ozamyatin:
There has been an update of SW binaries today

UPDATE1

Managed to boot android 10 with SW binaries ver. 1b from 1st October after flashing vbmeta from twrp section with command fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img. Device: Dualsim akatsuki 9436

UPDATE2

Still very unstable - after booting and turning the screen off to sleep, the phone goes into recovery and asks to wipe data / factory reset. So it is basically unusable at this point.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] dhacke:
But it least it boot once?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you for your test! :)

What's the crash log in the/sys/fs/pstore/ folder right after boot after the crash happened?

(A second boot after the crash would delete the pstore logs)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
02.10.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
03.10.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
04.10.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Mazurik:
The same thing...

Was using your OmniROM version on my XZ2 (h8266) and had many problems, like the sound from dynamic or the speaker making a craking noise during the phone calls. Tried this ROM using the tama 10 img, and as you've said, the system booted as android but then stopped responding to any action, even after repeated restart. Basically it was working before going to sleep mode... btw camera wasn't booting at all. Hope you'll find the way to fix all of the bugs=)) Good luck to you!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Camera will be added in OEMv2 :)

Which problems you had aside from the work in progress camera and the cracking noise (which can be reduced by use the speakers limited at 70% max volume)?

The SODP team will fix them for sure :)

Thank you :)

We just need bug logs from random phone usage error with an instruction how to reproduce the bug.

This month was mainly to get the phone booted with Q and the new 4.14 kernel.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Mazurik:
Forgot to mention...

Btw, when checked the phone model - instead XZ2 (h8266) - it was XZ3=)))

My friend, I need your advice! From your perspective, which custom ROM would work without bugs for XZ2 h8266 while waiting for your stable versions? Tried Existenz yesterday v10 for .151 and honestly feel it as not my kind of stuff, and liked OmniRom better=))) What about Lineage? its the only one I haven't tried before=) What ROM is your favorite?!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Aye I recommend OmniROM here

I use it as daily driver.

The SonyAOSP mostly gives you a plain AOSP experience

The LineageOS is outdated, but a newer SODP based one (by the SODP members) is om the todo list for the entire tama platform. :)

Be aware that the camera is not in a good state and the upcoming camera updates are only appearing on the upcoming OEMv2 (4.14 kernel) which is not stable enough for daily usage.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Mazurik:
Thx 4 u response=)

Thx a lot Bro :cool: I'll probably try to flash the OMNIrom again and hope that the bug with cracking sounds during the phone calls will disappear while keeping the dynamic around 70%. Before asking, I've checked your suggestions under OMNIrom not to rush for updating to 4.14 until its stabilisation=)

Thx a lot for your releases, hope you did well on your exams=)))
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
For those are curios the next update will come after OEMv2 (hardware drivers; which has no ETA).
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
https://developer.sony.com/develop/open-devices/latest-updates

OEMv2 got released

Added camera, sound calibration, sensors. Also fixed keymaster and Adreno.

The ROM also got stability updates and enhancements.

The next release I will publish will contain a better camera and fixes against the sound issues (compared to my android 9.0 builds with kernel 4.9).

The XZ2, XZ2c & XZ3 are on a good way thanks to the Sony Open Devices Developers (Volunteers and Sony Employees). :D
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
24.11.2019
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
I think I bricked the phone with latest rom.

There was no problems after booting system, all worked fine.

Then some time later I noticed that can't wake up phone by pressing power button.

And now no one combination works for me (no effect, no led indication ): +/power, -/power, charging...

Sad :|
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] HMNiLK:
Looks like an OEM v4 issue. OEM v3 flashes successfully (but wont boot as you already stated above).

EDIT: Problem is fixed using a different USB cable.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
18.03.2020

PS: Uploading
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rant_palas:
Is it just me or is everybody else finding the OEM build to not be compiled for this SODP build? The SODP build is 10.0.30 and the OEM on the website is 10.0.7.1 and if I try to find other builds in the past months, it only directs me to the 10.0.7.1 build.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] nickholtus:
OEM V5 compatible?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Ahh, you mean OEMv5

It probably won't work.

There are shiny new optimizations in the new OEM wish should require a new build.

And thank you, I didn't recognize that it is now public available. The news feed bot I use seems dead again.

I finish the TWRP first for SODP custom ROMs (a single decryption error is left) and then I look that I can publish AOSP and LineageOS as ZIP together with the TWRP Dual Sim Patcher.

(And remove OpenGAPPS from LineageOS)

Edit:

Meanwhile feel free to download OEMv4c

https://developer.sony.com/develop/open-devices/downloads/software-binaries
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] rant_palas:
Luckily, I kept an archive of my own, but I see now that it seems that they are getting their archive in order.

Maybe when you get to recompile the ROM with the latest OEM, it is gonna work.

But hey, great job as always on what you are doing. Can't wait to have a functional official TWRP release on this here phone, because it just a wonderful piece of hardware.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
14.04.2020
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] L1e":
Hi MartinX3. Does OEM v5 include a fixed camera resource budget?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly this wasn't part of the included camera fixes.

But it may come with OEMv6 :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Hey Guys,

first of all again thanks for all your work.

I have an apollo dual sim and had AOSP Pie installed. now I wanted to upgrade to 10. But unfortunately it is not working. I installed stock fw rev. H8324_Customized DE_1313-6204_52.1.A.0.672_R3C and booted it once. Then I unpacked the img files from the zipped AOSP fw and installed according to page 1 of this thread. After some back and forth trying I was now able to boot into TWRP. Then I installed the dual sim patch and after rebooting into bootloader the binaries (v5a from sony website). But when I try to boot the AOSP ROM (either with dual sim patch applied or not) I'm running into bootloop after sony logo (sometimes also stuck at sony logo). During installation I see only two errors (maybe related): When installing any zip in TWRP (ROM or Dualsimpatch or gapps,...) there is always the error "Failed to mount '/odm' (Invalid Argument)" and I cannot mount the OEM partition in TWRP.

Does anyone have the same issues or has a potential solution? Thanks for your help...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Raphos:
Hi,

From what I understand, you had to use this TWRP version for .672 (XZ2 ONLY). The official MatinX3 version isn't ready for this firmware.

I've post here what I did for LOS installation and .618 firmware with more details if you want...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bluep:
Thank you Raphos for the input. Now it's working, simply because I'm a bloody idiot: Everytime I installed the rom I flashed the binaries as zipped file instead of unpacking the img. Once flashing the right file everything works fine. I assume it would have taken me weeks to find my error without your link...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] madcow_mda:
Will the 960fps slowmotion work on this rom? Or will that only work from official firmwares due to the drm keys?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Raphos:
Hi,

You're welcome ! It happened to me once :laugh:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Depends if the support gets added in the OEM blob

But it requires the usage of a special ram chip in the camera.

Which maybe doesn't get supported.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bertus_f:
Hi Martin,

Many thanks for making it possible to download AOSP 10 for my Sony Xperia XZ2C. I followed the steps (also thanks to Raphos) and AOSP 10 works like a charm!

After a couple of days building the AOSP myself, I stopped. My Mac (from 2009) is too old for this and my Dell laptop (i5, 8gb mem, Ubuntu 18.4) gave harddisk problems after a couple of hours (input/output errors). So I looked further and found this site! I have a couple of questions about your build:

- This is not a 'pure' AOSP build from Sony, can you say which cherry-picks you have included?

- I miss some images (recovery and userdata) that Sony includes; I can live without a userdata image, but why not including the Sony recovery image?

- When I boot my Sony, I get a message about the unlocked bootloader: "Please lock the bootloader". This is very annoying. Can I get rid of this message (e.g. temporary lock the bootloader?)

Greetz, Bertus
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Hi bertus,

thank you very much and you're welcome. :)

1. I just build the pure SODP AOSP here

That's my build script

https://github.com/MartinX3-Android...d-10/ROM/CUSTOM/XPERIA_TAMA/SonyAOSP/build.sh

2. You mean in my OTA zip file?

The userdata doesn't get included by the AOSP OTA zip generation

https://source.android.com/devices/tech/ota/tools

But you can do

fastboot -w userdata

The recovery partition got removed since google introduced A/B partitioning.

https://source.android.com/devices/bootloader/system-as-root

3. Sadly no, Sony introduced bootloader relocking with the Xperia 1 / 5.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bertus_f:
Thanks Martin! Clear answers. I don't see cherry-picks in your build script. It seems to me that you are using the 'pure' AOSP sources from Sony.

Another question: the battery is draining fast when I'm not using my phone. When in standby mode, the battery is draining 30% at night when not in use. I have an older phone (Wileyfox Swift 2) on AOSP which is having the exact same behaviour. Is this normal behaviour for the AOSP build? And is it fixable with an App (like Greenify) or editting Build.prop with energy saving properties?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
you're welcome

Due to a bug the device can't go into the deep sleep

Fell free to add a bug tracker entry if there is not already one :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Is there's news for supporting google camera with new oem v6?

I tried this one and camera is still far away behind the stock.

But forgot to test it on google camera support before rolling back to stock :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The support for the KUMANO got added.

The TAMA plattform is the next. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
11.05.2020
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Sungfive:
Why it is so difficult to develop for the XZ2?

Isn't Sony (except for the DRM stuff) developer friendly?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Which difficulties?

We have SODP based ROMs, TWRP and soon a STOCK based LineageOS as well.

The only missing thing is volunteer power.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Sungfive:
I was only seeing there are some problems in developing rom for XZ2 (expecially for the camera implementation).

Yes, probably is only due lack of people working on it
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Yes, every problem is just caused by lack of people.

Since SODP doesn't generate money for a company, the amount of paid sony employees is limited.

Plus QCOM doesn't want to share some stuff to an open source project. >.>"

And would DCMA open source code, if a sony employee writes it, who may had read the closed source QCOM stuff before.

So if you would help writing open source code (or maybe apply as sony employee for the closed source part) it would be nice. :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Sungfive:
Hahaha sure. I work mainly with c++ but for example I don't know Java at all.

Anyway I'm glad the situation is better than I had expected :p
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Perfect, you could help in kernel development. Muahaha :silly:

But not everything is Java in Android

Like

https://github.com/sonyxperiadev/device-sony-common/tree/master/hardware/health

It's just hard to find volunteers, most people just want results :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bertus_f:
Hi Martin,

I just installed your latest build: android 10.0.0_r34 with the latest OEMs. Thanks again!

The camera seems better than in the previous build, but I have to take a better look if that is really the case.

The sound is the same as before: at start it is fine, but after a couple of seconds, there is distortion in the sound.

And I have another problem: wifi doesn't work on my XZ2C dual. I tried 3 different networks, but I cannot connect to any of them. Even when I forget the network and reconnect again filling in the actual password. The message is: password incorrect (but it is correct, really). LTE is working fine, so I have a data connection, but wifi would be even better... Any tips?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please fill a bugreport with

logcat -b all

directly after it say, that your password is incorrect.

Here everything works. :)

Another reason would be, that you use maybe a MAC-Filter on your Router.

Since Android 10, each WIFI connection has a MAC randomization enabled by default.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] bertus_f:
It was my fault; I had to reboot my router (2 networks) and now wifi works again!

The third network I tried, was via a hotspot on another phone. That wasn't working either, but after a reboot it worked too!

Guess I have to reboot all my devices, after every Android upgrade :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] adwinp:
[BUG]

Testing on a H8266 results in a massive battery drain - no deep sleep.

I believe this is in the vendor partition. Same with your release of LOS.

For reference, Sjll's LOS properly goes into deep sleep.

[FEATURE REQUEST]

Would you consider enabling WFD/wireless display in the next releases?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please report this bug report and feature request in the SODP bug tracker and check if they're not already existing there.

The Sjll's Los is based on the stock firmware with kernel 4.9 and without the camera RAW feature

This Los is based on the SODP firmware with kernel 4.14 and with the camera RAW feature

Both ROMs don't share code.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Is oem v7 will work with r33?

Because I don't see r34 on github :confused:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
This update sadly doesn't contain the camx ressource budged fix.

For the OEM compatibility is probably a recompilation needed due to hal/kernel changes. (I will do that with the next security patch level).

But feel free to try it with the current build. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Looks like our charging / battery issues may be fixed with the next update release.

https://github.com/sonyxperiadev/kernel/pull/2268#issuecomment-633976775
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Seems latest v7 blobs not working with latest r35 aosp. Same with v6.

Infinite android logo :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
i think it is better to stay with my OEMv6 builds and wait for the June Patch, then it should definitely boot with OEMv7, if you did no mistakes. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Good news for the sleep/battery level/charging issues.

They're probably fixed soon and are mostly caused by the same root issue.

Plus way less battery drain as a side effect.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
With this change the XZ2C lost 8% battery in more than 11 hours.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Could someone give me a benchmark comparison about the GPU performance on the kernel 4.9 and 4.14?

If there is a difference, it will, depending on how much the difference is, become a higher priority issue.

But if the performance is on the same level, it's fine.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So, with the newest changes which will come into the next build, we have a deep sleep battery drain of 0.1%/h with activated WIFI and mobile.

Better than SODP kernel 4.9 and if I remember correctly the same as stock.

So in theory multiple days of battery life are possible.

And the GPU performance is the same like on SODP 4.9 and stock.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Tested the Quick Charge fix.

The Quick Charge by Qualcomm is a deprecated technology to fast charge phones, which needs a closed source userspace component (HVDCP).

It got replaced by the open USB Power Delivery standard, which is the default one since the XZ3.

The QC support got now removed from the kernel completely.

Means the QC charger will charge your device at 5V@~1.5A. (Depending on the charge curve and battery temperature).

The next update will include this fix.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The next update probably fixes the slow LTE speeds, as well.

So it will also act as a public test with the different mobile provider of the users.

Delayed for OEMv8 this month.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
06.06.2020
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] TunerCP:
How's the Gcam situation in the latest build?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The fix in the camera hardware budget system may come in OEMv8
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] logan123456:
has the battery drain issue been fixed in v7 and also the quick charging
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shofiulazzamm:
Why is it written stable when there are so many bugs on the op?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] orapyt:
As far as I know, stability is not about the number of bugs; it is about how often there will be updates/changes.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shofiulazzamm:
I think you are mistaking update frequency with firmware stability
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Thank you for reminding me to remove the known bugs in the OP. ^^
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shofiulazzamm:
Hey can someone help me how to install this rom?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] adwinp:
I'd like to come back to the topic of wireless display/screencasting - is this a feature you'd be working on enabling?

Wifi-Direct connectivity is there (I'm able to establish a connection to my projector via wifi), but Wireless Display doesn't seem to be an available option when entering deepter into the screencasting settings.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please add a issues ticket in the sodp bug tracker with the feature request template :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please follow the first page manual :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shofiulazzamm:
I am not able to find twrp that works with the new update, plus I am coming back after many years to android my knowledge is pretty low
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shofiulazzamm:
fastboot flash oem_a oem_*.img

fastboot flash oem_b oem_*.img

cam someone tell me where I can find these?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Please follow then the instructions on the first page or wait until I release the next TWRP. :)

In the download section on the first page. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shofiulazzamm:
fastboot flash oem_a oem_*.img

fastboot flash oem_b oem_*.img

I honestly cant find it or idk how to flash it if I downloaded it :I can someone gimme a little more info
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
5 text lines above it is the download link. :P
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shofiulazzamm:
:( ya I can see it but idk which one to download and how to flash it :( I downloaded the sw binaries for the tama and there was just 1 img file in it
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
just in fastboot mode like it is written there :)

fastboot flash oem_a oem_*.img

fastboot flash oem_b oem_*.img

where the oem_*.img is the big image file :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] shofiulazzamm:
I did that and I when rebooting it went into recovery and gave me a corrupted file message
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
So you did flash every .img file on every partition including the OEM partitions and you get a corrupted error message?