yashsingh1/xdaforums huggingface dataset:
[Huawei Ascend G6] filipinne13:
Hello everybody,

I'm new user on this forum :) please forgive me for my english as I am Belgian.

I try to make a backup of my Huawei G6-L11 with Android SDK.

I am on Xbuntu 14.04 (I am not a specialist but I use it for some months). I have installed the packages android-tools-adb and android-tools-fastboot and also android sdk.

My phone is connected to the PC via usb and the debug mode is active.

I followed the next steps in a terminal

The problem is that I unlock the phone but the backup does not begin. Why? What can I do to begin it?

I really need to do this operation as I can not make any upgrade, any changes on my phone as the memory is full :eek:

Thanks a lot for your help
[Huawei Ascend G6] persona78:
Use ADB, need root
[Huawei Ascend G6] filipinne13:
Hello,

Thanks for your reply :)

I have tried with root and it does not function :eek:

I followed the steps I saw here https://memo-linux.com/android-utiliser-adb-pour-faire-une-sauvegarde-complete-de-son-smartphone-ou-tablette-sur-pc-sous-gnulinux/

And I can do the first steps, the problem is that the phone is not locked as it should be and the backup does not begin :(

Other solution?

Thanks a lot
[Huawei Ascend G6] filipinne13:
Hello,

I become completely crazy with my problem :silly: I can't do it:(

I tried a lot of manipulations in order to do the backup and I found something interesting. In a file I had to create in /etc/udev.rules.d/ with the name 51-android.rules, I saw that the product ID seems change every time it is connected/disconnected of the PC. It was 1054, 1037 and also 1051. I suppose it make some trouble... Is it possible to blok it, ?

ATTR{idVendor}=="12d1", ATTR{idProduct}=="1051", MODE=”0666"

Thanks a lot.
[Huawei Ascend G6] persona78:
Hi!

With the phone ON, with root, plug USB, choose MTP, tuurn ON debug mode, it will pop up a window in phone requesting permissions to connect YOU MUST GIVE IT, need 2GB free in your sd card, use ADB and type this:

adb shell "su -c 'dd if=/dev/block/mmcblk0p4 of=/storage/sdcard1/rpm.img bs=4096; dd if=/dev/block/mmcblk0p5 of=/storage/sdcard1/tz.img bs=4096; dd if=/dev/block/mmcblk0p1 of=/storage/sdcard1/sbl1.img bs=4096; dd if=/dev/block/mmcblk0p11 of=/storage/sdcard1/modem.img bs=4096; dd if=/dev/block/mmcblk0p9 of=/storage/sdcard1/modemst1.img bs=4096; dd if=/dev/block/mmcblk0p10 of=/storage/sdcard1/modemst2.img bs=4096; dd if=/dev/block/mmcblk0p2 of=/storage/sdcard1/sdi.img bs=4096; dd if=/dev/block/mmcblk0p6 of=/storage/sdcard1/aboot.img bs=4096; dd if=/dev/block/mmcblk0p19 of=/storage/sdcard1/recovery.img bs=4096; dd if=/dev/block/mmcblk0p23 of=/storage/sdcard1/system.img bs=4096; dd if=/dev/block/mmcblk0p18 of=/storage/sdcard1/boot.img bs=4096; dd if=/dev/block/mmcblk0p24 of=/storage/sdcard1/userdata.img bs=4096; dd if=/dev/block/mmcblk0p21 of=/storage/sdcard1/cache.img bs=4096; dd if=/dev/block/mmcblk0p20 of=/storage/sdcard1/cust.img bs=4096; dd if=/dev/block/mmcblk0p12 of=/storage/sdcard1/fsg.img bs=4096'"

Now you have your ROM images in sd card. You will need a flash zip to flash it if you need it.

You can use this one, only need to paste the images inside.

RomBackup.zip

https://mega.nz/#!n5plABBT

Key:

!L5EVKRl6AnTyr24IrhwPacxU_DbO7t2moVVzw9gOOT4

Use TWRP to flash it: http://xdaforums.com/ascend-g6/general/twrp-3-0-0-0-g6-lte-devices-t3378495
[Huawei Ascend G6] filipinne13:
Hi Persona78,

Thanks a lot for your quick answer :)

As I understand what you explain in your answer, you proposed me to flash the ROM of the phone but that is not my aim. I only want to make a backup for after try to increase the internal memory. I do not want to root the phone so I found on Internet the ADB program.

I plug the phone which is ON, I plug it with the USB cable, choose MTP transfer protocol, turn it on debug mode and agree with the pop up on the phone. Everything is good until the time when a message should appear to UNLOCK the phone in order to backup. This message does not appear :( as the phone is already unlocked and as it get blocked, no message appears. Whatever, the backup does not begin!

Thanks a lot.
[Huawei Ascend G6] persona78:
Hmmm, all apps I know to do backup use root.

You can use CWM or TWRP to backup, but they don't backup cust, and I don't know if recover to images default size.

The only way I know is fashing default ROM.

---------- Post added at 09:54 AM ---------- Previous post was at 09:50 AM ----------

I have a L11 rom, modify by me, resided and if you create in sd card a primary ext4 partition it wil send the apps to sd card automatically.
[Huawei Ascend G6] filipinne13:
Hello Persona78,

Finally, I made a manual backup by drag and drop and also with Mybackup which do not use root.

I made a reset of the phone with the manufacturer's parameters but I would like to use one other rom as they do not have any update for this model:( but it seems to be complicated to do it. I do not know how to backup the manufacturer's rom as I met a problem after. I think I would not be possible for me to root, unlock, extend the sd card with Gparted (as I work under UBUNTU 14.04 LTS), and make the update with the new rom, as I am not so talented with computer science.

Thanks a lot.
[Huawei Ascend G6] filipinne13:
I tried and finally I have used Gparted in order to split the sd card. I have now 4 partitions

- swap partition (29 mb),

- fat32 partition (6.35 Gb)

- ext4 partition (23.34Gb)

:)
[Huawei Ascend G6] persona78:
try one of my versions

You can try one of my versions.

Read first to know what you get if you flash it!

https://www.facebook.com/Huawei.Ascend.G6.L11.Kit.kat.B370/?ref=bookmarks
[HTC 10 Guides, News, & Discussion] topjohnwu:
How to Use The TWRP Backups​

The zip file you download has the following structure:

A.BB.CCC.D.zip
|--boot.emmc.win
|--system_image.emmc.win
|--recovery.log

Every device has an TWRP directory in your internal/external storage with the following structure:

Storage Root
|--BACKUPS
|--(Your Device ID)
|--(Backup Name, any name is OK)
|--boot.emmc.win
|--system_image.emmc.win
|--recovery.log

If you don't have a similar folder structure, backup a small file in TWRP (eg. boot), TWRP will create the structure for you.

After extracting the TWRP backup downloaded above, remember to put the files into a correct place so TWRP can detect the backup files.

How to Manually apply OTA Updates​

Before we get started, note that in order to install OTA, you are required to have

100% unmodified system (can be restored from TWRP backup provided in OP)

Stock recovery (can download from OP)

It is not required to have the exact matching recovery to manually apply OTAs, recoveries that aren't too many versions away should function the same, and thus accept OTA flashings

Place your OTA file to external sdcard, and reboot to stock recovery (if you don't have SD Card use adb sideload instead, search the web for simple instructions):

adb reboot recovery

After booting to the recovery, you'll see a large exclamation mark on the screen.

Press the power button, then short press volume up + volume down to activate the HTC recovery menu.

Use your volume keys to navigate through items. Navigate to "Apply update from SD card", and press power button to select.

Navigate to your file and press power button to apply

The recovery will now install the OTA.

After reboot, the recovery should automatically install the firmware for you.

How to Get The Firmware For a Particular Version​

Download the OTA zip of the version you're interested in. Inside the zip, it will contain a zip called "firmware.zip".

This zip contains a portion of the firmware, you can flash it by rebooting into download mode and use this command:

fastboot flash zip (path to zip)
[HTC 10 Guides, News, & Discussion] Stephen:
I see you said that HTC does not support fastboot. How did you install twrp? Also we found on the Nexus 6P that fastboot was having issues and a newer version was found and worked. Have a look in this thread: [GUIDE] Unlock/Root/Flash for Nexus 6P should be newer versions of fastboot that work with Android 6.
[HTC 10 Guides, News, & Discussion] ckpv5:
I believe he said unable to fastboot boot twrp in order to backup the stock recovery and fastboot flash twrp is not a problem.

[MENTION=4470081]topjohnwu[/MENTION] thanks for your contribution
[HTC 10 Guides, News, & Discussion] topjohnwu:
What I mean is the 10 cannot use the fastboot boot XXX.img function, the image was sent successfully but it is stuck at the cmd line showing "booting". I had to flash the TWRP directly to recovery in order to make it boot up.

And about the fastboot version, I always keep two versions of fastboot in my computer, one is directly from Android Studio (which will automatically update to the latest version), and another is from HTC Dev website. It seems that several HTC specific commands on newer HTC devices requires the HTC Dev fastboot to work. Just keep this in mind.
[HTC 10 Guides, News, & Discussion] Stephen:
Ah ok, I had read it that you could not get fastboot to communicate to the device at all! Odd that the command did not work to allow temp boot. Could possibly be a bug in TWRP.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Nothing to do with TWRP. HTC disabled fastboot boot on the A9 as well. It doesn't even work with the stock recovery.
[HTC 10 Guides, News, & Discussion] Stephen:
Thats good to know thanks! Last HTC I had was the m8, It is a shame they have disabled that feature, it was very useful.
[HTC 10 Guides, News, & Discussion] rav101:
Is this the unlocked version or a region specific one? On old HTC phones, I thought the unlocked version was .401???

There has been talk of 1.21.x, 1.22.x to 1.24.x having been pushed as well. Any chance to check for updates or is that off table now that twrp has been installed?
[HTC 10 Guides, News, & Discussion] ckpv5:
.401 htc Europe unlocked version

.709 htc Asia - Taiwan unlocked version
[HTC 10 Guides, News, & Discussion] rav101:
Thanks for the info.
[HTC 10 Guides, News, & Discussion] topjohnwu:
I will update this post as soon as I receive an update, since I do serious backups for my phone before messing around. And as long as I still have my 10 (which will likely be two years), I will keep maintaining this thread. I hope people can help adding content to this thread by sharing their own backups, so users may find a way back to stock for OTAs.

The Taiwanese carriers are following the international standards, and there are no sim lock / region lock / bootloader lock BS (like China and US), so consider this version nearly the same as an international one.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
That's confirmed by the Model ID (2PS620000) and device ID (pmeuhl) being the same as the Europe/Int'l variant. It seems that there will be only 3 total variants of the 10 (at least the one with the S820) once they're all released.
[HTC 10 Guides, News, & Discussion] rav101:
Much appreciated buddy, and I will be up for providing back ups. Though with the European unlocked version, I dont think there will be any shortage of backups for that model...
[HTC 10 Guides, News, & Discussion] blueberry60:
[MENTION=4470081]topjohnwu[/MENTION]

Could you possibly to test this HTC 10 Deodexed Rom on your device ?

1.21.709.2 Base

Used sparse_dat perm type for more efficient space usage

Unpacked boot.img and repacked keeping ramdisk

Added init.d support

Added insecure boot

Disabled dm-verity and forceencrypt

Debloated

Deodexed with oat2dex method

Zipaligned all apk and framework apk files

hc10_deodexed_marshmallow.zip

MD5: 4653b96454365206111760d4f641e81c
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
If you built this ROM with [MENTION=5787964]SuperR.[/MENTION]'s Kitchen, be aware that on the A9, sparse_dat ROMs wouldn't flash at all - they would just get stuck. Set_metadata had to be used to produce a working ROM. Also, I'm assuming you removed the device assert too? Because the current available version of TWRP doesn't have the proper device name in there. I'll be updating it today, most likely.
[HTC 10 Guides, News, & Discussion] blueberry60:
Kitchen showed device assert as " htc_pmeuhl " and I corrected it as " htc_pmeuhl,htc_pmeul "
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
There is no htc_pmeul, and like I said, those asserts won't work at all with the currently released TWRP. I am in the process of updating it now.
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Posted an updated TWRP in the TWRP thread: http://xdaforums.com/htc-10/development/recovery-twrp-touch-recovery-t3358139/post66393936

[MENTION=4470081]topjohnwu[/MENTION] you should update to this version for the device asserts to be correct :).
[HTC 10 Guides, News, & Discussion] datafoo:
FYI be careful.

that exe in the rar content locked and hijacked my system.

Doing a full format win10 reinstall right now. I was fargin pissed!
[HTC 10 Guides, News, & Discussion] demi9od:
Pretty dirty that they made the spyware the legitimate looking link, and the real download looked like a spam link.
[HTC 10 Guides, News, & Discussion] rogiebear07:
I flashed TWRP, but I decided I want to go back to stock to get updates. Flashing the appropriate stock recovery for my device still gives me the corrupt error on the update page. How do I get back to stock? Do I need to wipe my device?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Happy to help!

Remember that you also have to flash the firmware.zip from the 1.53.517.5 OTA to be fully up-to-date. I didn't include the other firmware pieces in my zip so that it would be compatible with both S-OFF and S-ON devices.
[HTC 10 Guides, News, & Discussion] demi9od:
You only need to flash the firmware if you don't take the OTA automatically though right? I flashed your zip, booted with stock recovery, was prompted and downloaded/installed the OTA, then re-TWRP and re-SU. No need to flash firmware then?
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
In that case, the only thing the OTA would've installed was the firmware, so you *should* be good. If your radio/baseband version matches the one from the 1.53.617.5 update, then you're up to date.
[HTC 10 Guides, News, & Discussion] demi9od:
Baseband/Radio 1.0.U010071@60419.3_45.00_F
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
Looks like you're good :).
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
No, I think you need to flash stock boot.img, too.

Download and unzip this file

https://drive.google.com/open?id=0B8OH6sFjVE1lUGdXZXlUQURkNjg

Place the img file (1.53.617.5-boot.img) in your fastboot folder

boot the phone to download mode

flash the boot image using "fastboot flash boot 1.53.617.5-boot.img" (no quotes)

Reboot

Please let us know if this works for you to get the OTA. Thanks!
[HTC 10 Guides, News, & Discussion] cauqazn:
delete
[HTC 10 Guides, News, & Discussion] buko_s:
Can you go back to stock recovery and check if a OTA available?

If yes, share it here please.

thx
[HTC 10 Guides, News, & Discussion] Nosferatu.:
Very informative thread.

Just to make sure I understand things correctly. I'm on USA 1.21 and want the newest firmware ONLY. I'm assuming this is where a majority of the tweaks are correct (better Wifi/Camera/etc.)?

With that said I don't want to do a full system wipe to install the firmware. I'm running that LeeDroid ROM and I'm S-ON. Can I just extract the firmware.zip file and load up an ADB prompt and flash it through download mode or no? If I put it on an external SD card and label it 2PS6IMG.zip what's that going to do?

So in short...I want upgraded firmware, I'm on custom ROM right now. How do I upgrade the firmware on the device?

Am I stock restoring stock partitions (via TWRP) and stock recovery (via flashing from PC), accepting update, then restoring TWRP and my other partitions?
[HTC 10 Guides, News, & Discussion] 5m4r7ph0n36uru:
Only my point of view, but to be sure I always restore an untouched system image of the stock ROM, as well as stock boot. Afterwards I flash stock recovery that belongs to my ROM and FW, take the OTA just then I restore my previously backuped custom ROM.
[HTC 10 Guides, News, & Discussion] rsa 329:
This did not work for me. Still shows corrupted
[HTC 10 Guides, News, & Discussion] buko_s:
What version was before 1.21 on your device?
[HTC 10 Guides, News, & Discussion] demi9od:
You can't flash firmware only with S-On, and if you Sunshine S-Off you will have to format anyways. LeeDroid might have a way to get around it at some point, I haven't been keeping up with his ROM for the M10 yet, though I ran it for the M8 for the last 6 months.

2PS6IMG.zip on an SD card will flash 1.53 system, recovery, and boot. Basically everything updated by the OTA except firmware. For me at least from there, it let me download and install the OTA which took care of the 1.53 firmware.
[HTC 10 Guides, News, & Discussion] Nosferatu.:
it's what came with the phone USA 1.21
[HTC 10 Guides, News, & Discussion] Captain_Throwback:
This is incorrect.

Signed firmware can be flashed when S-ON, through RUU mode.
[HTC 10 Guides, News, & Discussion] jollywhitefoot:
Thanks for testing.

So to be clear, you:

1) booted to TWRP, went to mount menu and put system as read only

2) restored system image backup

3) booted to download mode and flashed the boot.img I provided

4) rebooted to system and tried to OTA and it still said corrupt

Does that about sum it up? Did you restore stock recovery as well? [MENTION=1162986]Captain_Throwback[/MENTION] said that wasn't needed on his device, but wouldn't hurt.

For me, I flashed the entire new firmware.zip and then was able to take the OTA, so I guess it's more than just re-flashing stock boot.img.
[HTC 10 Guides, News, & Discussion] rsa 329:
That is correct. Where did you find the firmware.zip?
[HTC 10 Guides, News, & Discussion] mikhuramet:
your wellcome

it will do everything
[HTC 10 Guides, News, & Discussion] gauravbhawsar:
run ruu..back to stock, but th issue is it still says s-off & unlocked..??
[HTC 10 Guides, News, & Discussion] Kisakuku:
An RUU will neither return your handset to S-On status nor relock your bootloader. You have to do both manually.
[HTC 10 Guides, News, & Discussion] drago10029:
how do i get cid and mid for my phone? fastboot getvar all and the other command OP listed aren't working, thanks.
[HTC 10 Guides, News, & Discussion] yldlj:
Make sire you are in the correct mode. I cant remember if its download or bootloader mode.
[HTC 10 Guides, News, & Discussion] ziand:
Hi,

You can return to Full stock with S-ON and Locked. I offer you to use SunShine to return your bootloader in locked because you already paid 25$.

But just not to get a "brick", remember:

- first return your original CID and MID if you have changed them.

- you have to flash your RUU before each operation to S-ON (>fastboot oem writesecureflag 3).

Also, after each using Sunshine and in the end when you already have full stock, you need to flash RUU again for successfully OTA updating in the future. So keep your RUU beside, on your sd.

Once, I did it by this way.
[HTC 10 Guides, News, & Discussion] drago10029:
tried adb, fastboot and bootloader mode. nada
[HTC 10 Guides, News, & Discussion] yldlj:
Try an app in playstore. Whats ypur software number?
[HTC 10 Guides, News, & Discussion] drago10029:
I got the cmd working thanks! I was the HTC specific fastboot (didn't work) using android sdk fastboot worked :(
[HTC 10 Guides, News, & Discussion] BillTheCat:
Which of these files is the most updated MM for the 10? I'm not ready to go to Nougat because I need to run Xposed. Not sure which file or RUU I need.

Thanks!
[HTC 10 Guides, News, & Discussion] yldlj:
Whats your cid?
[HTC 10 Guides, News, & Discussion] BillTheCat:
Duh. Wow, it's been a while since I did this sort of stuff.

So, I have HTC__621 (Intl factory unlocked) and am downloading 1.92.709.1_twrp.zip now, but since I'm S-Off, and will likely not be able to take an OTA, is there a later MM file I should be looking for?

Thanks!
[HTC 10 Guides, News, & Discussion] yldlj:
Try finding an RUU would be the easiest way. Or you can take the OTA file but I think you will need to flash the firmware seperatly. Remember OTA are incremental so you need to take every one up to the latest. That's why RUU will be best. Also I'm pretty sure 1.98 is the latest MM ROM
[HTC 10 Guides, News, & Discussion] Scramjet:
You'll be able to install OTAs as long as your /system is untouched, meaning S-OFF or an unlocked bootloader doesn't matter.
[HTC 10 Guides, News, & Discussion] yldlj:
Or have twrp installed, it won't flash the firmware.
[HTC 10 Guides, News, & Discussion] BillTheCat:
Downloading an RUU for 1.96.617.20 which corresponds to the firmware I'm seeing in bootloader.

I guess I'll have to take the OTA first, then apply Xposed this time, then. Didn't think to do that on the M9 two years ago.

Yep, I'm TWRPing like a Beyonce video.
[HTC 10 Guides, News, & Discussion] yldlj:
So your firmware is US unlocked but your cid is TW. I don't think the RUU will work as it goes by your cid
[HTC 10 Guides, News, & Discussion] BillTheCat:
Negative - FW was International Factory Unlocked.

I presume by using the RUU, I'll have to reflash TWRP and SuperSU for root, yes?
[HTC 10 Guides, News, & Discussion] yldlj:
RUU will wipe EVERYTHING. Firmware. 617 is US unlocked.
[HTC 10 Guides, News, & Discussion] BillTheCat:
Roger that. But the SD card will remain untouched, yes?
[HTC 10 Guides, News, & Discussion] yldlj:
Ex SD card yes
[HTC 10 Guides, News, & Discussion] BillTheCat:
Ack. Ok, I'm at 1G into 1.7 download. I'll report back if there are any problems. Wish me luck!

Thanks!!!
[HTC 10 Guides, News, & Discussion] yldlj:
I still think your downloading the wrong RUU for your cid. You need x.xx.709.x
[HTC 10 Guides, News, & Discussion] BillTheCat:
Yep, you're right. Where would I find that? Or, would it just be easier to use ADB and change my CID to 00000000 (or something like that)?

ETA - Where to find an RUU for x.709.x, that is...

---------- Post added at 11:05 PM ---------- Previous post was at 10:34 PM ----------

So, as I'm thinking about this - would it not be smarter to go Super CID and change to 11111111 so that I can flash the North American RUUs, or would that brick me for sure?
[HTC 10 Guides, News, & Discussion] yldlj:
Yes you can do that just be careful going from N to MM. Also you will need to change MID because US is different.

I found 1.92.709 ruu for you. If you use this you could take one OTA update to be on the last MM ROM

https://www.androidfilehost.com/?w=files&flid=74636
[HTC 10 Guides, News, & Discussion] BillTheCat:
Update - nearly midnight here. About five attempts to flash CID: HTC__621 | MID: 2PS620000 1.92.709.1 (by [MENTION=4470081]topjohnwu[/MENTION]) per the first page, but TWRP throws an error that the file is not properly formatted. Instead, I changed my CID to 11111111 and tried flashing RUU_PERFUME_WL_M60_SENSE80GP_NA_Gen_Unlock_1.96.617.20 but it fails with an error also.

Should I get out of this, I think it would make sense to go with a WWE or NA stock ROM. I've tried the 'De-brand' thread with no success (per above), so help figuring that out would be appreciated.

Any suggestions would be helpful because I'm hosed right now. Thanks!

---------- Post added at 12:06 AM ---------- Previous post was at 12:02 AM ----------

No, I want to stay on MM for now. Been having a helluva time trying to get this to work out. I must have really screwed something bad.

I have trouble figuring out what combination of CID/MID I would need to go with a WWE or NA RUU of MM for the 10. I have this file now:

RUU_PERFUME_WL_M60_SENSE80GP_NA_Gen_Unlock_1.96.617.20

So I presume it's for North America - which is fine - but it seems the MID isn't playing nice. Can you help me figure this out?
[HTC 10 Guides, News, & Discussion] yldlj:
The zips in the op arnt ment to be flashed you need to extract the zip. Mid for US is different. Either change your mid to the US one and flash the ruu or Download the 1.92.709 ruu zip I posted in my last post. Rename the zip to 2PS6IMG.zip, place the zip to external SD card,boot to download mode and press up to flash.