yashsingh1/xdaforums huggingface dataset:
[Wing, P4350 General] htc43owner50:
thank you kraftey:D

it worked! the phone reached the today screen after I popped out the memory card.. That is really bizar.. it would be nice of HTC came with a update for this
[Wing, P4350 General] Vogal:
My p4350 have the some problem !

I have tried 2 diferent Roms , one of them the Ruu , and have the same problem ! Only with the memory card out it start :/ Im thinking send the Htc to the repair center ...
[Wing, P4350 General] duprade:
Is it looping when the memory card is in? But when you remove the card it boots normally?

If that's the problem, you probably have something installed on ur memory card that's causing the loop... try this

take out ur memory card,

Try using a file explorer (like resco or total commander)

and go into your Windows directory and rename a file called

omap850_sdhc.dll into omap850_sdhc.dll.old then soft reset your phone and it should start working fine.
[Wing, P4350 General] Ayerthon:
Hi I'm having the same problem.

Now I see the File but it wont Rename. Everytime I Change de name it pops back to its original name.
[Wing, P4350 General] duprade:
install total commander or an alternate file explorer ... don't use the built in one.
[Wing, P4350 General] Vogal:
Im using a pdaviet Rom, resco explorer and tottal commander dont allowed me rename that file :(
[Wing, P4350 General] umchriswho:
If it doesn't work, first try a hard reset.

If that doesn't work, try reflashing.

If none of the above work, all you can do is hard-spl.

Hope it helps.
[Wing, P4350 General] duprade:
delete the file... and soft reset.
[Wing, P4350 General] taz357:
Wierd folders on my Herald & Laptop

my herald storage card & sync folder have weird folders that have unrecognizable characters for folder names and I cant erase them in either place. what are they and how do I get rid of them???

Thks ahead

Note: here's the name of the folders:

¦ì-²ñ++.âÅÜ

<¬2Ñ`~"V.<.R

-4¦4n.ë.--+

B¥iÖçs.5n
[Wing, P4350 General] ivanmmj:
Reformat your storage card. It's corrupted.
[Wing, P4350 General] taz357:
just tried-adapter for laptop wont read it but it work on the phone.
[Wing, P4350 General] taz357:
Does best buy,circuitcity or radio shak have card readers 4 micro sd??
[Wing, P4350 General] ivanmmj:
Office Depot does. I don't know about the other ones.
[Wing, P4350 General] duprade:
I have this thing, and I bought it at BestBuy
[Mate 8 Q&A, Help & Troubleshooting] nhaixin69:
May sound odd but when I try to disable the lock screen password I find that the "none" feature was blanked. How to solve this?
[HTC 10 Questions & Answers] Prinz069:
Good morning,

I tried to revert back to stock as I had to send my 10 to service.

So, I took an old NAND (which was working fine when updating firmware) and restored it in TWRP. I'm S-On with unlocked bootloader.

NAND went through but then I was stuck on boot screen.....

Power + Vol down brought me back to "stock!!!recovery. From there to bootloader and then back to TWRP.

Getvar all showed me nothing, just lines without any values.

I finally flashed the MM Viper rom with a full wipe and it booted again.........with all apps and setting.

I have no clue what happened. I only want to get back to stock.
[HTC 10 Questions & Answers] :
same problem as you, no idea why
[HTC 10 Questions & Answers] Prinz069:
Glad, I'm not the only one facing that issue. Sad we don't know what it caused.

Maybe the NAND backup does not harmonize with the newer firmware? No clue.

But now I can't handle that chaotic system.
[HTC 10 Questions & Answers] Kyuubi10:
Are you on N firmware, or MM firmware?

Try find RUU for your firmware, flash that, it will clean reset your phone back to everything stock.

Btw the "stock recovery" you found by pressing power + vol down, is not recovery at all. It is download mode (same thing as fastboot mode.)

Newer HTC devices will have this enhanced Download mode from now on.

If you can find an RUU zip then just place it in SDcard and reboot to Download mode and you can easily flash the RUU without needing to run a program on your computer.

I prefer this because I use Linux at home, and RUU.exe won't work on linux.
[HTC 10 Questions & Answers] Prinz069:
MM firmware, but Im s-on
[HTC 10 Questions & Answers] Kyuubi10:
Perfect, it will be very straight forward then...

Find RUU for your firmware, make sure mid and cid match.

Once you flash that, relock your bootloader and send it back to HTC for service.

Your warranty won't be void.
[HTC 10 Questions & Answers] Prinz069:
Cant read out cid as getvar shows now values
[HTC 10 Questions & Answers] Kyuubi10:
Then make an estimated guess.

You are from germany, so your phone would probably be an european variant right?

Could be a GSM unlocked variant, or a carrier unit.

Find what version your phone is, and find the RUU for that version and hope that the CID/MID matches. :)
[HTC 10 Questions & Answers] Prinz069:
What about the non working getvar command? Ill post a screenshot later.
[HTC 10 Questions & Answers] Kyuubi10:
That i do not know, i just hope your phone is not hard-bricked.

Try to RUU until something happens.

Good luck haha
[HTC 10 Questions & Answers] DroidShift79:
You can check your CID onscreen when in download mode.

To get there Start device with Power + Vol- pressed.

As far as I know you then could try a CID/MIP matching RUU, that has to be same or newer version then the one you're running to flash that with S-ON. But don't nail me on that.
[HTC 10 Questions & Answers] Rolo42:
When you say "stuck on boot screen", what, exactly, does that mean? For how long? First boot can take 20+ mins easy before hitting the "configuring app X of Y" screen.

Download mode tells you your CID, MID, firmware version, etc.

Since you're sending it back in for service, yes, RUU it (via SD card zip). It's easy and thorough.
[HTC 10 Questions & Answers] dj_chapz:
Boot into download mode and read your firmware. If you are MM/Germany you probably have 1.95.401.X firmware (same as mine - MM/Ger/Unlocked).

Go to RUU thread and download RUU zip that is exactly or higher firmware as yours.

Rename as instructed in that thread (2PS6IMG.zip or something like that) and put it on your SDcard.

Reboot Download mode, it will detect the zip and ask if you want to flash it.

Confirm and let it reboot.
[HTC 10 Questions & Answers] Prinz069:
Thank you guys, you're all awesome...wish we could have a couple of drinks together:good:
[HTC 10 Questions & Answers] Kyuubi10:
Perfect, you have a ".401" phone.

It's an unlocked version, same as mine. (and most lol).

You could try running RUU.exe...if it doesn't work, use TWRP to mount the sdcard (internal, not the external one) and transfer the RUU.zip to your phone.

Go back into download mode and flash RUU there.
[HTC 10 Questions & Answers] Rolo42:
There's an RUU decrypter tool to extract the zip elsewhere in this forum.
[HTC 10 Questions & Answers] :
[RESTORE STARTED]

Restore folder: '/external_sd/TWRP/BACKUPS/FA65XBN06916/1.95 Backup'

Skipping MD5 check based on user setting.

Calculating restore details...

I:InfoManager file '/external_sd/TWRP/BACKUPS/FA65XBN06916/1.95 Backup/boot.info' not found.

I:Restore file system is: 'emmc'.

I:InfoManager file '/external_sd/TWRP/BACKUPS/FA65XBN06916/1.95 Backup/system_image.info' not found.

I:Restore file system is: 'emmc'.

Restoring 2 partitions...

Total restore size is 4784MB

I:Restore filename is: boot.emmc.win

I:Restore file system is: 'emmc'.

Restoring Boot...

I:Reading '/external_sd/TWRP/BACKUPS/FA65XBN06916/1.95 Backup/boot.emmc.win', writing '/dev/block/mmcblk0p59'

[Boot done (2 seconds)]

I:Restore filename is: system_image.emmc.win

I:Restore file system is: 'emmc'.

Restoring System Image...

I:Reading '/external_sd/TWRP/BACKUPS/FA65XBN06916/1.95 Backup/system_image.emmc.win', writing '/dev/block/mmcblk0p62'

Truncating string cache entries.

Truncating string cache entries.

I:Error writing destination fd (No space left on device)

This is the error I got for restoring the backup, can some explain the error for me?
[HTC 10 Questions & Answers] Prinz069:
Could it be that?
[HTC 10 Questions & Answers] Prinz069:
My Build is 1.95.401 when I check in Settings, But Downloade Mode says OS is 1.30.401.
[HTC 10 Questions & Answers] dj_chapz:
Then you can flash pretty much any RUU zip to go back. Best bet would be the first newer RUU than 1.30.
[HTC 10 Questions & Answers] Prinz069:
A very big thanks to Black-FR who put a lot of spare time and efforts in helping me to fix my system.

We flashed the old stock RUU as I've been on 1.30.401 via download mode. I pulled four OTA's which were in total 1.2 GB, flashed recovery and then the Viper N Rom.

Thank you mate, couldn`t have done it without your support!
[HTC 10 Questions & Answers] Black-FR:
Cheers... I'm glad that it worked in the end, without any real hiccups.
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
A new tool has just been released to backup TA using the Dirty Cow exploit. After that, you should be able to unlock bootloader, flash recovery, flash su and restore TA. Then your device should be rooted with DRM retained.

I don't have a XC so I'm unable to test.

http://xdaforums.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
I tested it on an Xperia X Compact running 34.1.A.1.198 and it seems to work, see my post here
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
Thanks!

But according to another post, actually it's impossible to keep root after TA is restored. Do you know if it's true?
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
That's correct. But it's important to have the TA backup for restoring full functionality.

There might be a way to use the previous DRM patches combined with flashing only the TA unit for the device key in order to have full stock functionality with root. Also would need a custom kernel for the latest stock firmware update.
[Sony Xperia X Compact Guides, News, & Discussion] JenItols:
*Edit*

For those who are unable to navigate modern forums (like me) there is a downloads tab in the post that will have the files you need to backup TA.
[Sony Xperia X Compact Guides, News, & Discussion] tlxxxsracer:
I had the same difficulty finding where to download. lol!

but worked like a charm for me :)
[Sony Xperia X Compact Guides, News, & Discussion] realtuxen:
Add firmware v.34.1.A.1.205 to the list. :)

http://xdaforums.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236/page7

(I have no idea why my browser crashes if I point it directly to my post lol)
[Sony Xperia X Compact Guides, News, & Discussion] JenItols:
I just was able to pull a copy of TA from the Customized CE1 (Central Europe) v34.1.A.3.49

When next version (hopefully Nougat) is available I plan to load the known compatible version 34.1.A.1.198 and compare checksums to verify. However, I did get a file with 34.1.A.3.49 which has the November 1st android security updates.

*edit*

After reading it appears that TA changes every boot. However, when the time comes to update software I will revert back to known version with compatibility and then re-pull TA.
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
Now that we can have a backup image of TA, can we use this tool to repack the kernel and restore DRM functionality?

http://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
- Yes, I think we can. As long as the TA unit address for device key has not changed then it should work.

- After some rest when I have my Wits about me I am going to attempt it
[Sony Xperia X Compact Guides, News, & Discussion] GaryFisher88:
Guys,

could someone please tell me step by step, how to restore TA?

EDIT - know, after restoring TA I have a password option - cant get over it? any ideas?

Ok... done :)

I can confirm, it works - backup and restoring :)
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
So...

This is an outline of how I have managed to get root with devicekey back into the TA partition.

NOTE:

- I am only interested in running rooted stock sony firmware so for me this is OK for the moment.

- I am looking into why FIDO_KEYS come back as unprovisioned, everything else seems fine.

Follow this at your own risk

- Install latest stock firmware via flashtool 34.1.A.3.49

- Backup TA Partition

- Unlock bootloader using Sony website

- Extract kernel.elf from kernel.sin using Flashtool

- Create root kernel using this tool

ggow@workstation:~/Desktop/rootkernel_v5.0_Windows_Linux$ ./rootkernel.sh kernel.elf boot.img
- Unpacking kernel
Found elf boot image
Kernel version: 3.10.84-perf-g2cfe3ef
Found appended DTB
- Detected vendor: somc (Sony), device: kugo, variant: row
- Unpacking initramfs
- Detected platform: 64-bit
- Detected Android version: 6.0.1 (sdk 23)
- dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] y
Disabling dm-verity
- Sony RIC is enabled. Disable? [Y/n] y
Disabling Sony RIC
- There is no TWRP template for kugo. Install anyway? [y/N] n
- DRM fix is unsuppported/untested for model kugo. Install anyway? [y/N] y
- Install busybox? [Y/n] y
- Creating new initramfs
- Creating boot image
- Cleaning up
Done

- Create devicekey which is flashable via flashtool

ggow@workstation:~/Desktop/rootkernel_v5.0_Windows_Linux$ ./flash_dk.sh TA_F5321_QV705K140B_20161208-1905.img devicekey.ftf
- Extracting device key
- Creating FTF file for device F5321
- Cleaning up
Done

- Flash devicekey.ftf via flashtool

- Boot device into fastboot and flash boot.img

- I haven't flashed TWRP instead I booted it by:

fastboot boot twrp.img

- Flashed SR4-SuperSU-v2.78-SR4-20161115184928.zip

- Reboot device
[Sony Xperia X Compact Guides, News, & Discussion] tlxxxsracer:
Fantastic news! This is major. So in theory we should be able to get more rom availability now?

Android pay gets broken, right?

Will root now
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
Should see new ROMs eventually surfacing :)

You're correct Android pay doesn't work with a rooted device
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
Dump question. I just downloaded the latest firmware using XperiFirm and created a FTF file using FlashTool. But FlashTool always show the following errors.
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
When creating your FTF, did you include loader.sin ?
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
In fact, there's no loader.sin in the download folder. I tried to download several firmwares using XperiFirm and they're the same.
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
I've never tried creating a custom FTF, so I'm not sure. I downloaded the UK version of 34.1.A.3.49 and was able to flash that successfully.

Have you unlocked your bootloader?

Just thinking FTF may be signed by Sony?

Maybe with a locked bootloader you can't flash custom FTF?
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
Do you have the link where you downloaded the UK .49 firmware?
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
I downloaded it via XperiFirm
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
Just got it fixed. It turned out to be flashmode driver incorrectly installed. Flashtool installer didn't install it successfully. I had to extract the driver files and install them manually. Now my brand new XC is rooted and device key restored!
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
Good ðŸ˜ƒ

Are you FIDO_KEYS showing as provisioned?
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
Yes. Do you know the impact of this?
[Sony Xperia X Compact Guides, News, & Discussion] itandy:
Do you know if it's safe to flash TWRP as well?
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
It's safe to flash it, but you probably won't be able to access it because the boot.img will need to be modified to load recovery from FOTAkernel.
[Sony Xperia X Compact Guides, News, & Discussion] baz1:
How did you got past password screen?
[Sony Xperia X Compact Guides, News, & Discussion] GaryFisher88:
I did a clean flash (with all wipes) by flashtool
[Sony Xperia X Compact Guides, News, & Discussion] realtuxen:
you could also try this, it's on a regular x but the method should be somewhat similar:

http://xdaforums.com/showpost.php?p=69972315&postcount=20

basically he just dd's the TA partition back and the password goes away at next boot.

dont ask me if it works, and be careful 'playing' with TA.
[Sony Xperia X Compact Guides, News, & Discussion] baz1:
Problem is that I'm trying to unlock bootloader without doing wipe, like I did wit z1c, z3c and z5c. But now internal memory is encrypted and after unlocking bottloader phone asks for password. The password I am entering for normal boot is not working. If I relock bootloader, the password starts to work.

Also I can't boot to twrp and dd partition (phone just hangs when I try to boot to twrp), so I am now stuck on locked bootloader without DRM keys, which is sucks, because xperia camera is not working anymore :(

Seems like doing wipe is the only way :(
[Sony Xperia X Compact Guides, News, & Discussion] DannyWilde:
Exactly same problem as I had. I also tried to avoid a factory reset. But cause of encryption this seems not to work. The only way out is a full flash of your firmware. After that you will be able to flash custom kernel and your DRM keys. Everything will be fine, but your data will be lost. So save everything as good as possible.
[Sony Xperia X Compact Guides, News, & Discussion] tlxxxsracer:
Wiping data is normal after flashing twrp.

I thought unlocking the bootloader wipes your phone anyways
[Sony Xperia X Compact Guides, News, & Discussion] DannyWilde:
?? Does that mean all data is lost if I flash recory via fastboot??

If you unlock bootloader via flashtool, there is nothing wiped. I did so in order to loose not all data but i failed.
[Sony Xperia X Compact Guides, News, & Discussion] tlxxxsracer:
Flashing recovery doesn't wipe data, but usually you have to wipe data to get past password. Dont quote me though
[Sony Xperia X Compact Guides, News, & Discussion] DannyWilde:
Okay, i misunderstood....
[Sony Xperia X Compact Guides, News, & Discussion] nialv7:
After running the backup script.

Service -> Security shows:

Blobs: generic error!!

HUK: generic error!!

I never unlocked this phone before. What happened?
[Sony Xperia X Compact Guides, News, & Discussion] DannyWilde:
Did you flash androplus kernel? Did you check before flashing backup?
[Sony Xperia X Compact Guides, News, & Discussion] baz1:
I did a wipe (just entered wrong password 25 times) and everything works well, fido keys are shown as provisioned.
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
Would you mind looking at this post and letting me know if you did anything differently?

My FIDO_KEYS are showing as not provisioned.
[Sony Xperia X Compact Guides, News, & Discussion] baz1:
I did almost the same but with a few differences which should not be important:

Installed via OTA update

Unlocked via flashtool (using key from sony website)

I included SuperSu into kernel using this tool too, but left RIC enabled since I'm not going to modify system.

I haven't flashed into system anything.
[Sony Xperia X Compact Guides, News, & Discussion] DannyWilde:
So you got patched stock kernel and recovery on your phone?

I tried so, but i couldn't install TWRP...
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
With the method I outlined, you won't be able to have recovery installed. The boot.img would need further modification to enable starting recovery from the FOTAKernel partition.
[Sony Xperia X Compact Guides, News, & Discussion] DannyWilde:
Okay, that's what i though.
[Sony Xperia X Compact Guides, News, & Discussion] dhchris:
The right sequence is not quite clear to me.
[Sony Xperia X Compact Guides, News, & Discussion] ammarr:
How large is devicekey.ftf supposed to be? I'm getting a 1kb file.

Edit: nevermind, that's how big it is supposed to be according to http://xdaforums.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605

Can someone clarify how a 1kb devicekey.ftf is able to restore the TA backup? Or is there another step to restoring the TA backup?
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
- You can reflash the TA partition just fine however...

- The rootKernel tool won't work because some things have changed in the ramdisk.

- I also just built the 34.2.x nougat kernel sources and cannot get it to boot. The previous mm kernel I built worked fine.

EDIT: I now have the drmfix working by copying the libdrm.so files manually to system/vendor/lib and lib64, setting file permissions to rw, r, r. Then in the ramdisk I set the LD_PRELOAD env variable in the kernel to libdrmfix.so.

My source compiled kernel still isn't working, when it does I'll try creating a .zip package of the whole thing. I wanted to look at the CPU lag. The nougat rom doesn't seem as snappy as the marshmallow version.
[Sony Xperia X Compact Guides, News, & Discussion] ammarr:
Is there a guide on how to restore the TA partition (on MM) after unlocking bootloader and root? [MENTION=5749760]ggow[/MENTION] I used your guide to create and flash the rootkernel and devicekey.
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
You can restore it by dd'ing the ta.img backup back to the TA partition or you might be able to use TWRP to flash it.

I haven't tried to flash it back so can't tell you the detail.
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
I got the compiled kernel working, will put a flashable zip together shortly after Xmas. Then I'll look into if anything is going on with the cpu

EDIT: I checked the cpu, seems to be ok. Used cpu-z and kernel adiutor

All cores, big and little seems to be active and I have Antutu benchmark of 77452
[Sony Xperia X Compact Guides, News, & Discussion] Kianush:
Ohhh, finally some one other than me mentioning nougat not being as snappy as MM

Thank you man I was alone there...
[Sony Xperia X Compact Guides, News, & Discussion] realtuxen:
another user reported that if he used the camera app and ran cpu-z directly after the 2 big cores where active, however after 5 mins of idle they turn off which could point to them being off unless there is load instead of running a default of 883Mhz idle like in MM. that sort of behavior could cause lags (turning them off and on only when there is load and depend on the 4xa53 as main processors, totally counter intuitive if sony did this). a single a53 is very slow, 1 a72 core would easily beat 4xa53.

edit: with a little deciphering this post also points to the same behavior. does the lag go away if a MM kernel is used as seen elsewhere?

cant wait till all this xmas craziness is over.
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
Attached is a screenshot of what I'm seeing running my Genesis Kernel v1.01 after 5 minutes
[Sony Xperia X Compact Guides, News, & Discussion] realtuxen:
Thanks. That is strange.

The small cores even seems to be clocked at their highest, they land at 691 MHz when idle in MM. But you probably already know that.
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
They do drop lower, however I think they peaked when taking the screenshot.
[Sony Xperia X Compact Guides, News, & Discussion] realtuxen:
hmm.. could it be the encryption on file level I seem to remember reading about in nougat maybe.

btw nougat just arrived here today (noba) and its v. 34.2.A.0.273 I wonder what differs , it does not even say nougat or any system improvements on the update screen only that 'a system update is available' (oh now it does, multiple windows and promise of longer battry are the only 2 new points) heh. installing now.
[Sony Xperia X Compact Guides, News, & Discussion] ggow:
If your on unlocked bootloader, best thing is to install the update via Flash tool. It will retain your data and device key / ta partition. Then boot recovery and I install Genesis kernel which includes the DRM fix.