FORUMS
Remove All Ads from XDA

[DEV][Discontinued] - VNS-L21/22/23/31 [EU] Toolkit [0.0.0.12] All-in-One

700 posts
Thanks Meter: 650
 
By k1ll3r8e, Senior Member on 4th August 2016, 07:46 PM
Post Reply Email Thread
Announcement from k1ll3r8e: This project is powered by my AndroidCtrl.dll
This project is not longer maintained!
-
For a new version of this project (P10 Lite Toolkit) have a look at this thread.

The latest build of this project is still available.
---

But anyways, i'm not responsible for any damage done to your device!

Quote:

Pls, before u upgrade ur single-sim to dual-sim, READ THE INSTRUCTIONS!
According to this post i strongly recommend that u check if your device is SIM-unlocked, before u flash any SIM upgrade! It's not guaranteed that u encounter the same issue see this post there were no problems after the unlock on an already flashed device.

Quote:

!WARNING!
According to this post and an personal encounter of that behavior, there are a few devices which ends in an "black screen" after an "dload" based firmware update. - The only solutions to fix this "black screen" problem are currently the "Service-Center" or DC-Phoenix.
(For the DC-Phoenix solution see this post, there's everything explained and linked.)
-
Since i was informed about this problem i searched the web for 2 things...
1) Why this happens?
I found no answer so far... (i think, the update script went wrong or something couldn't be written during the update...)

2) Which devices/builds can encounter this problem?
So far i saw, its "LxxC02Bxxx", "LxxC440Bxxx" and some other maybe.

Tested Devices
Huawei P9 Lite [VNS-L31] [SINGLE-SIM]
Huawei P9 Lite [VNS-L21] [SINGLE-SIM]

Requirements
Platform: x86/x64 (Windows)
Frameworks: min. .NET 4
(Installed ADB/Fastboot driver)

Download
Mirror: XDA-DevDB

Oeminfos
Mirror: GoogleDrive
Mirror #1: My FTP
(Legend: DS = Dual-Sim | SS = Single-Sim)

Special THX goes to
@rgomesf for uploading the L31C432B130-FULL update!
@cybero2912 for sharing the...
...L31/L21-C432B151-FULL update links (HiCloud)
...L21C432B161-FULL update links (HiCloud)
@OldDroid for the permission to use his awesome TWRP
@miz_pimp for the links (Rollback L31C185B300 & Update L31C185B150) and info's
@SevenSlevin for the links to L31C432B385
@Chisetdel31260 for all the info's, links and tests (1, 2, 3, 4)
@Miss Montage for all the tests and confirmations
@kingjiji for the tests on P10 Lite
@witgit for the tests on P10 Lite


and for the oeminfo's & custom.bin's
@tw1st3d83 (VNS-L21 dual-sim C66)
@EasySR (VNS-L21 dual-sim C432)
@steven81 (VNS-L31 single-sim C109)
@SevenSlevin (VNS-L31 single-sim C432 & C113)
@Billy141 (VNS-L22 dual-sim C636)
@LuxZg (VNS-L21 single-sim C432)
@wakaru (VNS-L31 single-sim C440)
@mishuseby (VNS-L21 single-sim C02)
@oss_mosis (VNS-L23 dual-sim C605)
@radwan020 & [Farouk Nasri] (VNS-L31 dual-sim C185)

XDA:DevDB Information
VNS-L21/22/23/31 [EU] Toolkit, Tool/Utility for the Huawei P9 Lite

Contributors
k1ll3r8e

Version Information
Status: Stable
Current Stable Version: 0.0.0.12
Stable Release Date: 2017-08-14

Created 2016-08-04
Last Updated 2018-04-05
Attached Thumbnails
Click image for larger version

Name:	vns_tk_disclaimer.png
Views:	73342
Size:	119.9 KB
ID:	4183717   Click image for larger version

Name:	vns_tk_packages.png
Views:	73180
Size:	111.4 KB
ID:	4183718   Click image for larger version

Name:	vns_tk_bootloader_1.png
Views:	72710
Size:	101.5 KB
ID:	4183719   Click image for larger version

Name:	vns_tk_bootloader_2.png
Views:	69222
Size:	97.8 KB
ID:	4183720   Click image for larger version

Name:	vns_tk_bootloader_3.png
Views:	67120
Size:	88.8 KB
ID:	4183725   Click image for larger version

Name:	vns_tk_recovery_1.png
Views:	65866
Size:	83.2 KB
ID:	4183726   Click image for larger version

Name:	vns_tk_recovery_2.png
Views:	64492
Size:	95.4 KB
ID:	4183727   Click image for larger version

Name:	vns_tk_recovery_3.png
Views:	63446
Size:	78.8 KB
ID:	4183728   Click image for larger version

Name:	vns_tk_root_1.png
Views:	63440
Size:	65.3 KB
ID:	4183729   Click image for larger version

Name:	vns_tk_root_2.png
Views:	62122
Size:	88.7 KB
ID:	4183730   Click image for larger version

Name:	vns_tk_dual_single_sim_1.png
Views:	60448
Size:	92.0 KB
ID:	4183731   Click image for larger version

Name:	vns_tk_dual_single_sim_2.png
Views:	47952
Size:	157.2 KB
ID:	4183732   Click image for larger version

Name:	vns_tk_dual_single_sim_3.png
Views:	45198
Size:	123.2 KB
ID:	4183733   Click image for larger version

Name:	vns_tk_dual_single_sim_4.png
Views:	43476
Size:	78.6 KB
ID:	4183734   Click image for larger version

Name:	vns_tk_tweaks.png
Views:	41966
Size:	78.4 KB
ID:	4183735   Click image for larger version

Name:	vns_tk_unbrick_1.png
Views:	40662
Size:	100.8 KB
ID:	4183736   Click image for larger version

Name:	vns_tk_unbrick_2.png
Views:	39646
Size:	98.8 KB
ID:	4183740   Click image for larger version

Name:	vns_tk_help.png
Views:	39418
Size:	61.8 KB
ID:	4183741   Click image for larger version

Name:	vns_tk_about.png
Views:	38970
Size:	61.2 KB
ID:	4183742  
The Following 97 Users Say Thank You to k1ll3r8e For This Useful Post: [ View ] Gift k1ll3r8e Ad-Free
 
 
4th August 2016, 07:46 PM |#2  
k1ll3r8e's Avatar
OP Senior Member
Flag Delmenhorst
Thanks Meter: 650
 
Donate to Me
More
How - To
[Q:01] My device is not recognized by the toolkit?
1. Make sure NO adb-server is running!
2. U need to start ur device in android with enabled USB-Debugging! (see the screenshot)
(Only in adb mode my toolkit can detect ur device!)
3. Make sure that u granted adb access on ur device!
(A popup will appear on the device and asks u to grant access.)
Try also to restart the toolkit after u granted access on ur device.

U can also check the device state by opening a cmd/terminal prompt and typing:
Code:
cd path\to\the\toolkit\adb
adb devices -l
check if ur device is listed as follows:
XXXXXXXXXXXXXXX device product:VNS-L31 model:HUAWEI_VNS_L31 device:XXXXXXX
XXXXXXXXXXXXXXX device product:VNS-L11 model:HUAWEI_VNS_L31 device:XXXXXXX

XXXXXXXXXXXXXXX device product:VNS-L23 model:HUAWEI_VNS_L23 device:XXXXXXX

XXXXXXXXXXXXXXX device product:VNS-L22 model:HUAWEI_VNS_L22 device:XXXXXXX

XXXXXXXXXXXXXXX device product:VNS-L21 model:HUAWEI_VNS_L21 device:XXXXXXX
XXXXXXXXXXXXXXX device product:VNS-L01 model:HUAWEI_VNS_L21 device:XXXXXXX

USB-Debugging

If ur device can't boot into Android or still didn't get detected, well, just deactivate the "Device Check" on the "Disclaimer" tab. And follow the description.

[Q:02] I updated to the LxxC432Bxxx/LxxC900Bxxx build, and now my device is shown as L01/L11 what should i do?
1) If u are on LxxC900Bxxx simply flash the LxxC432Bxxx build over it. And proceed with the following part.

2) If u are already on the LxxC432Bxxx, just follow the instructions under Dual-Sim, except the update to the LxxC432Bxxx, and proceed with the upgrade. After that, follow the steps written right under the Upgrade button.

[Q:03] What does the Lxx Cxxx Bxxx mean?
The L21/L22/23/L31 is the device model, the Cxxx is the region/operator identifier and the Bxxx is the build number.

Here is a short list about the regions/operators
ID (Cxxx) = Region/Operator | custom.bin (content)
----------------------------------------------------------------------------------------------------------------------------------------------------
C02 = Vodafone
C10 = Russia
C21 = Telefonica / O2
C40 = Czech Republic Telefonica / O2
C55 = Italia TIM
C66 = VIPmobile | vip/rs
C86 = Spain Yoigo
C109 = Amena/Orange
C112 = Latin America
C113 = Wind/Italy | wind/it
C121 = Türkei
C123 = Switzerland
C150 = T-Com | dt/de
C151 = India
C185 = North-Africa/Middle-East | hw/meafnaf
C209 = Asia (Pacific)
C212 = Iusacell/Nextel
C249 = Serbia Telekom
C432 = Nordic-European | hw/eu
C470 = Asia (Pacific)
C605 = Colombia
C637 = Spain
C636 = Asia-Pacific | hw/spcseas
C675 = India
C706 = New Zealand
C900 = GLOBAL

More comming soon...

Big THX for some of those "identifier" goes to:
@lost3
@baduncle

[Q:04] I want share my custom.bin & oeminfo, what i need to do?

U can get the files via the "Dual-/Single-SIM -> Export" tab or u can do the following steps (root required).

Open an terminal/cmd prompt and navigate to ur adb installation or the toolkit directory (path/to/the/toolkit/adb) and type the following commands.
Code:
adb shell
su
cat /data/custom.bin > /storage/emulated/0/custom.bin.bak
dd if=/dev/block/platform/hi_mci.0/by-name/oeminfo of=/storage/emulated/0/oeminfo.img.bak
exit
exit
adb pull /storage/emulated/0/custom.bin.bak custom.bin.bak
adb pull /storage/emulated/0/oeminfo.img.bak oeminfo.img.bak
Now u have 2 files, the custom.bin.bak and the oeminfo.img.bak just zip them and upload them to GoogleDrive or DropBox, etc. and share the link in this thread.

[Q:05] How can i avoid the factory-reset after the boot-loader unlock? (Work only on B130 or below)

1. When u confirmed the dialog with Yes and the device shutdown, start immediately pressing and holding [Vol- Power] until u see the boot-loader screen again. (The device must stay connected to the PC)
2. Now u need to flash the TWRP recovery to avoid the auto factory-reset.
3. Reboot ur device and boot into android with an unlocked boot-loader and without losing ur data.

[Q:06] How can i manually boot into a specific mode?

Bootloader:
[device] = Turn the device off - Connect it to the PC - Press and hold: [Vol-]
[adb] = adb reboot bootloader
[fastboot] = fastboot reboot bootloader

E-Recovery:
[device] = Turn the device off - Connect it to the PC - Press and hold: [Vol+]
[adb] = N/A
[fastboot] = N/A

Recovery:
[device] = Turn the device off - Disconnect it from the PC - Press and hold: [Vol+ Power]
[adb] = adb reboot recovery
[fastboot] = N/A

Normal Boot:
[device] = Power button / Power button menu
[adb] = adb reboot
[fastboot] = fastboot reboot

Update Mode:
[device] = Turn the device off - Disconnect it from the PC - Press and hold [Vol+ Vol- Power]
[adb] = N/A
[fastboot] = N/A

[Q:07] Does the Dual-Sim upgrade survive an OTA?

Yes, the Dual-Sim modification will stay until u flash another oeminfo.

[Q:08] I upgraded to Dual-SIM and there is only one IMEI shown?

That's absolute normal... Because, u had a single-sim device before, so the device hold only one IMEI and the 2cd sim will use the same IMEI as the 1st sim.

[Q:09] How can i craft my own package for the toolkit?

Well, that's pretty simple - Just open a text-editor like notepad++ and create a new xml file with the following content:
Main object
Code:
<Package xmlns="urn:Package-schema" id="UR_PACKAGE_ID" product="VNS-Lxx" author="UR_NAME">
...
</Package>
Now u can decide what a kind of package u want build:

Single-/Dual-SIM
Code:
...
<sim>
    <version>LxxCxxxBxxx</version>
    <type>Dual-SIM or Single-SIM</type>
    <custom>custom.bin</custom> (The real filename)
    <customMD5>CUSTOM_BIN_MD5</customMD5>
    <oeminfo>oeminfo.img</oeminfo> (The real filename)
    <oeminfoMD5>OEMINFO_MD5</oeminfoMD5>
    <author>THE_FILE_PROVIDER</author> (The user from which u got the sim settings)
</sim>
...
Recovery-Stock
Code:
...
<recovery_stock>
    <version>LxxCxxxBxxx</version>
    <file>recovery_stock.img</file> (The real filename)
    <md5>RECOVERY_MD5</md5>
    <author>MANUFACTURER_NAME</author> (Should be Huawei)
</recovery_stock>
...
Recovery-TWRP
Code:
...
<recovery_twrp>
    <version>Lxx - TWRP x.x.x-x</version>
    <file>recovery_twrp.img</file> (The real filename)
    <md5>RECOVERY_MD5</md5>
    <author>MANUFACTURER_NAME</author> (Should be the user which compiled the image)
</recovery_twrp>
...
SuperSu
Code:
...
<superSu>
    <version>x.xx (xxxx-xx-xx xx:xx) EMUIx.x</version>
    <file>superSu.zip</file> (The real filename)
    <md5>SUPERSU_MD5</md5>
    <author>MANUFACTURER_NAME</author> (Should be the user which created/modded the zip)
</superSu>
...
U can use the 4 parts (sim, recovery_stock, recovery_twrp, superSu) all together or u can just build a package which hold only 1 or 2 components. The file it self must be saved as UTF8.

U can use the attached "package.xsd" file to validate ur package.

Now we come to the package structure, create a zip file with the following content:
Code:
./package.xml
./custom.bin
./oeminfo.img
./recovery_stock.img
./recovery_twrp.img
./superSu.zip
the files may vary, depending on what kind of package u build. Take care that the checksum's match with the provided files.

[Q:10] I get always "Software Update Failed!" what should i do?

First of all, check ur current build number LxxCxxxBxxx after that check the rom/update u downloaded. If ur version is greater/newer as the package u have, u can't install the package. In that case u "can" flash another oeminfo which is from an lower version.

For example: U have an L31C432B160 (device) and a L31C432B130 (package) u can't install this package via the default Huawei recovery, maybe it will work with TWRP (never tested it myself).

How to fix: Get u a package of the current installed firmware or a newer version. Or, downgrade ur oeminfo to a lower version and flash the package u have.
Attached Thumbnails
Click image for larger version

Name:	usbdebug.png
Views:	11072
Size:	29.9 KB
ID:	3835768  
Attached Files
File Type: xsd package.xsd - [Click for QR Code] (2.8 KB, 568 views)
The Following 19 Users Say Thank You to k1ll3r8e For This Useful Post: [ View ] Gift k1ll3r8e Ad-Free
4th August 2016, 07:46 PM |#3  
k1ll3r8e's Avatar
OP Senior Member
Flag Delmenhorst
Thanks Meter: 650
 
Donate to Me
More
Changelog
DD.MM.YYYY | (A) = Added | (C) = Changed | (D) = Deleted | (F) = Fixed | (R) = Recoded | (U) Updated
----------------------------------------------------------------------------------------------------------------------------------------------------
28.05.2017
[U] The toolkit images (coming soon)
[U] The pkg.L31C432B370.zip (added the superSu.zip)
[F] A Few UI freezes
[R] The UI and dialogs
[R] The complete root (Tab)
[A] Dual-/Single-SIM -> Export (Tab)
[A] Unbrick (Tab)
[A] Support for Nougat
[A] Support for L23 - Thx for the oeminfo + custom.bin + firmware goes to @oss_mosis

-- Not working --
The OTG under "Tweaks" currently only work on MM, i still working on it to get it also in N working.


22.02.2017
[U] The toolkit images (coming soon)
[F] A few UI freezes and minor bugs
[C] The dual-/single-SIM guide
[A] An application manifest that request administrator permissions. This will fix the startup crash on Win 8.x and up. Because, if we have no admin permissions, we can't deploy the needed adb/fastboot binaries nor create any file or folder, like the backups.
[A] Tweaks, Double-Tap & USB-OTG (currently only on MM)
[A] Package-System, Package-Management - To make the toolkit a bit more flexible

22.02.2017 - 23:17
[F] Missing text string on the Bootloader -> Relock tab which caused the toolkit to crash.


27.09.2016
[U] The toolkit images (coming soon)
[A] L22C636B140 Recovery
[A] Dual-Sim upgrade for L22

[U] The recovery (huawei) view and the dual-sim (upgrade) view. I removed the buttons and added a combo-box.

[F] A bug which causes the device to be busy during the reboot dialog


.: History :.

01.09.2016
[U] The toolkit images
[A] Ability to lock the bootloader (oem relock)
[A] Ability to flash a custom/backup custom.bin & oeminfo
[A] Ability to disable the device check


19.08.2016
[U] The toolkit images
[A] All functions for the VNS-L21
[A] The L21C432B130 recovery
[F] The Dual-Sim guide, aligned it to the VNS-L21


09.08.2016
[U] The toolkit images
[A] Detection for an running ADB-Server
[A] The ability to flash an individual recovery (with md5 sum check)
[F] The Dual-Sim guide, i explained it now with a bit more details
[A] A solution if u end in an Factory-Reset loop after the firmware update


07.08.2016
[A] Detection for the L11 bug


06.08.2016
[A] More debug messages e.g. wrong device state, no connected device etc.
[F] The unzip issue on some machines (oeminfo.img is now unzipped)
[U] The guide how to flash the firmware


05.08.2016
[U] Updated the dual-sim guide, according to the L31C432B130 update!
[C] The [Asia-Pacific] stock recovery to the [L31C432B130] recovery
[A] The links to the L31C432B130 update


04.08.2016
1st Release

The Following 10 Users Say Thank You to k1ll3r8e For This Useful Post: [ View ] Gift k1ll3r8e Ad-Free
5th August 2016, 01:35 AM |#4  
BadWolfYe's Avatar
Senior Member
Flag Zaragoza
Thanks Meter: 526
 
Donate to Me
More
The DualSIM its my method?
5th August 2016, 03:02 AM |#5  
k1ll3r8e's Avatar
OP Senior Member
Flag Delmenhorst
Thanks Meter: 650
 
Donate to Me
More
Quote:
Originally Posted by BadWolfYe

The DualSIM its my method?

It's the same method as on the P8 Lite, u need an oeminfo.img from an dual-sim device. Then u need a full firmware package which u can flash. I used for example the [Asia-Pacific] coz it was the only firmware available. Now, with the new L31C432B130 update i use this firmware, cos it's the Europe version for the device.

Regards,
Sebastian
5th August 2016, 07:58 AM |#6  
Member
Flag Naples
Thanks Meter: 18
 
More
Nice work! Can't be a problem flash a dual sim firmware over a single sim device?
5th August 2016, 08:40 AM |#7  
k1ll3r8e's Avatar
OP Senior Member
Flag Delmenhorst
Thanks Meter: 650
 
Donate to Me
More
Quote:
Originally Posted by Zeph1990

Nice work! Can't be a problem flash a dual sim firmware over a single sim device?

I did the steps my self, on my P9 Lite [Single-Sim] and i had no problems. So far i know, only the oeminfo.img decides which phone u have, a single-sim or dual-sim. Also the [Asia-Pacific] build is a "single-sim" build which has dual-sim functionality inside, coz when u upgrade ur device to dual-sim with this rom, u have a dual-sim rom after the upgrade.

I made the same with the EU rom, reverted back to single-sim, installed the rom and reverted back to dual-sim no issues!

Hope that helps u

Regards,
Sebastian
The Following 2 Users Say Thank You to k1ll3r8e For This Useful Post: [ View ] Gift k1ll3r8e Ad-Free
5th August 2016, 10:08 AM |#8  
BadWolfYe's Avatar
Senior Member
Flag Zaragoza
Thanks Meter: 526
 
Donate to Me
More
false in the P8 Lite no OEMFILE needed... in P8LITE with FULL FIRMWARE its good...
But in P9LITE its needed de "private OEMFILE"...
5th August 2016, 04:23 PM |#9  
k1ll3r8e's Avatar
OP Senior Member
Flag Delmenhorst
Thanks Meter: 650
 
Donate to Me
More
Quote:
Originally Posted by BadWolfYe

false in the P8 Lite no OEMFILE needed... in P8LITE with FULL FIRMWARE its good...
But in P9LITE its needed de "private OEMFILE"...

Well, i'm wrong? Seems u can't read?
Have a look at this thread specialy this post!

PS: If u have ever inspected the oeminfo with an hex-editor, u must had seen that it contains the curver or the verlist img (part wise) from the update package... (the oeminfo is a chunk divided file so far i can see, it includes more as only 1 build info...)

Edit:
Just to respond to ur "Is that my method?" maybe u've got "ur method" from here?^^

Regards,
Sebastian
The Following 2 Users Say Thank You to k1ll3r8e For This Useful Post: [ View ] Gift k1ll3r8e Ad-Free
5th August 2016, 08:02 PM |#10  
Senior Member
Thanks Meter: 156
 
More
I think that @BadWolfYe meant this method: http://www.htcmania.com/showpost.php...35&postcount=2
He probably didn't invent all of it, but he put some effort into research and writing the tutorial in Spanish and English
The Following 2 Users Say Thank You to Miss Montage For This Useful Post: [ View ] Gift Miss Montage Ad-Free
5th August 2016, 09:41 PM |#11  
k1ll3r8e's Avatar
OP Senior Member
Flag Delmenhorst
Thanks Meter: 650
 
Donate to Me
More
Quote:
Originally Posted by Miss Montage

I think that @BadWolfYe meant this method: http://www.htcmania.com/showpost.php...35&postcount=2
He probably didn't invent all of it, but he put some effort into research and writing the tutorial in Spanish and English

Hi Miss Montage,

to end the discussion who invent which "wheel". I can only say the following things, i got my device on 02.07.2016 from t-mobile. Since that day i have read about how to unlock the dual-sim. I also called Huawei Customer Service and spoke there to some technical guys. I have tried my self a lot different ways to get dual-sim unlocked. I started my research here on XDA and on Android-Hilfen (see the links i have already posted, and i have a lot more to read about...). Finally i found a link to this ROM which i used until yesterday and a collection of 2 different oeminfo's on some chinese website. I compared them and don't tried to flash the oeminfo's, coz i don't wanted to brick my device! Then i found this post here on XDA and asked for a partition backup of an dual-sim device, to compare the partitions with mine. And got this response. I compared the file with the both i already had and one of them matched with md5 checksum. So i started research where this file comes from and found after hours this post as linked here.

There i got the confirmation that the file and idea i already had don't brick my device!

So, sry, but i have not copied any other work!
(And if u want say so, then at least ALL CREDITS go to this post coz, there are the logic what u have when to do^^)

I hope that make some things clear...

Regards,
Sebastian
The Following 2 Users Say Thank You to k1ll3r8e For This Useful Post: [ View ] Gift k1ll3r8e Ad-Free
Post Reply Subscribe to Thread

Tags
bootloader, dual-sim, recovery, root

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes