yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wiQbold:
yes I will do so too, but this weekend I ruu d it and give it my 'personal touch' and now I have to do it again... F...

I do not wan t that all the googletrash will boot up with the device..

and if I rename the 'trash apps' and do not delete it from system, will it also break the verity?

Is to get ota, the only problem?

and can I deactivate apps before first boot?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 5m4r7ph0n36uru:
As soon as you start manipulating the system partition the check won't pass any longer. This no OTA will be possible any longer. It's caused as well by the new block based OTA that checks the md5 of your system partition and as soon as you start messing with it the md5 will change.

---------- Post added at 09:31 AM ---------- Previous post was at 09:14 AM ----------

Would be nice to know if it just seems or dies indeed. Will try it myself and have a look at it. Hope the RUU method is really of any help here.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wiQbold:
I d ruu d it again

boot up

enforcing

reboot to download

flash twrp

boot up

enforcing

reboot to recovery

Say Yes to change system

Boot up

logging

so I will get logging every time I use a custom recovery?

Or did I have to say no? but then I couldn t flash SuperSU?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I'll probably investigate the matter further, but later, all the messing around was nasty ;)

Say No to change System the first time around,

then flash SuperSU 2.72, it removes the verify flag and dm-verity from boot.img...

once that's done you can change system all you want, the SuperSU modified boot.img will no longer trigger a verity check on system.

EDIT: if needed, you should enable the KEEPFORCEENCRYPT flag, so that in case you wipe/format data, it will re-encrypt ... if it doesnt you'll loose radio

Note to all

: btw, this

may

also have triggered Factory Reset Protection (since that's one of the partitions heavily modified), so just be careful; FRP isnt a partition "to be taken lightly"!!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wiQbold:
Sorry, one last question..

Did that mean the file '.supersu' in cache with

KEEPFORCEENCRYPT=true?

or from 'topjohnwu' the supers zip?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
With SuperSU 2.72 you can use the .supersu file in cache

worked fine for Captain_Throwback here

and myself here

adb shell

echo KEEPFORCEENCRYPT=true>>/cache/.supersu
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] goodtimes50:
Regarding the recent update, what does this mean for a non-developer? Do we have anything to worry about when following the guide in this sub (i.e. http://xdaforums.com/htc-10/how-to/guide-root-optionally-s-off-radio-t3373025)? I'm getting ready to root and flash a custom ROM and the update freaked me out a bit...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 5m4r7ph0n36uru:
As promised I'll report back on the mater of verity restore to enforcing, if it accidentally has been set to logging.

RUU worked fine for me. Have been able to flash SuperSU systemless after echoing KEEPVERITY=true and KEEPFORCEENCRYPT=true, and still verity ist set to enforcing after several reboots. All working well. So no problem any longer on my end.

Thanks for helping investigate this problem mate
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wiQbold:
yes it worked, also for me, till the moment I gave twrp the permission to writeaccess to system.

but if there is non problem then ota, it is ok.

But what means logging? who is logging me and what will be logged??

and why did I have to verify a new googleaccount with phonenumber?

and some settings are diffrent then in enforcing mode?

:eek: :confused:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
most likely you tripped FRP (Factory Reset Protection), i noticed it's one of the partitions that got screwed up during my testing (amongst others)

now that I'm back to stock, I'm probably gonna pull partitions again and compare stuff... see if / what the remaining damage is.... though I highly recommend people dont go "flashing" or "modifying" partitions, unless they know

exactly

what they're doing, especially on this phone
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wiQbold:
so I use a a fresh googleaccount to be safe that nothing get lost. But what is with my other mail account?

could they delete the Accounts or maybe lock the device?

but if you use xposed, you will also get the logging stage? or am I wrong?

Thanks that you do the research. Hopefully you can use your decice now.

It is a great device, even that it is just an expensive nexus..

Ps: I ve debranded it from tmob germany. and recognized that the preload partition was smaller after I ruu d it. and I am on SuperCID
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
1) Can't say much about Factory Reset Protection, but it's not something to be taken lightly.... usually full RUU should/could/would fix that

2) yes, you can modify system as much as you want, but

before

you do, just make sure "verify" is disabled in fstab, as is done by custom ROMs, and/or SuperSU
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wiQbold:
Thanks. So I have to go back enforcing. Flash a custom stock rom and do my changes.

and it will stay enforced?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
or just wait till we figure out what's going on, and if it's "possible" to reset the flag without ruu'ing

but in either case, you need to have your boot.img changed .... the boot.img is what has the verify flag for system partition
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] dweigle07:
I might be reading into this too much but... how does one reformat data and stay encrypted... I've between away for years im rusty since m7 ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] rickd88:
If I'm correct, when you wipe the encryption in TWRP and reboot, the system re-encrypts on boot.

Scared hell out of me first time, but did work.

It's happens in background when "Android is updating 2 of 126..."
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] wiQbold:
Thanks it still show enforcing.

even if I Installed xposed.

With getprop | grep verity, it still shows enforcing..
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] anndrenaline:
Unlocked model. If i root and install gravity box, can i still update via OTA?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 5m4r7ph0n36uru:
System partition gets changed by this, so no. Block based OTA causes this in general beside the other things written here.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] duowing:
I went back several pages and tried to catch up. Currently on the 1.53 firmware. On 1.21 I backed up system image and boot. I rooted, but hadn't installed xposed. Saw the 1.53 OTA came out so I reverted the System Image and Boot. I took the OTA from completely stock, then made a system image and boot backup. I flashed the modified SuperSu image from topjohnwu, then slowly set everything up and then did end up installing xposed. Running the getprop | grep verity also shows enforcing, I thought that it would change because I've installed xposed? Does SuperSU changing verity then by default cause it to stop logging, so it ends up passing the check and it thinks I have an ok System Image? I'm sure it's probably something simple that I'm just not comprehending here.

Also just so I'm not missing anything, the modded supersu from topjohnwu is only setting the KEEPENFORCEENCRYPT flag to true, so the KEEPVERITY would then be set to false by default and disable the system verifying itself?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] topjohnwu:
Never use KEEPVERITY, if it's not handled correctly, you will result in soft brick and completely break the ability to receive OTAs.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jamaiquino:
I think I have an issue, been trying to search for this and maybe I'm not using the right keywords

When I s-off and the encryption comes up, then I reboot to recovery to do the wipe. I only see 'format data' where the 'wipe the encryption'. I did the format and rebooted...got my supersu BUT, upon a reboot, that same encryption page comes up asking for a password. I did the same steps and got back, but why am I not seeing this "wipe the encryption" in TWRP
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jamaiquino:
is there another way to bypass this
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Tiffany84:
Have you tried booting into TWRP, going into the file manager, navigate to data/system and deleting locksettings.db?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Are you sure you're on TWRP 3.0.2-4, and using the "Format Data" button in the Wipe Menu? The one that requires you to type "yes" to confirm the format? If you're doing that, it should take care of it.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jamaiquino:
Yup. 3.0.2.4 and I formatted data, typed in yes. Did that after s-off. I had to do it every time I rebooted the phone after I flashed viper 1.0 (which, I did a wipe prior tof also). I went back to stock and it seems I'm ok (but the engineer in me won't accept defeat)

---------- Post added at 08:10 AM ---------- Previous post was at 08:09 AM ----------

This I haven't tried. Will look into that today. Thanks

What does this file do if you don't mind?

---------- Post added at 08:15 AM ---------- Previous post was at 08:10 AM ----------

Also, why do it in twrp as opposed to in a root explorer

update:

I looked around, maybe you thought I had issues with the lockscreen, which i dont. That encryption is what i had an issue with.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] itsmelutfor:
Thnx for the info
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] swerff:
Excuse my repost if this question has been asked.

This whole encrypt thing. If I don't care about Ota's and such, just wanting CyanogenMod on it with an unlocked bootloader, is this worry needed?

I'm probably going to dump this m7, battery gets stupid hot, but cm11 is flawless and I'd like to stay with htc.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
The encryption mystery was recently solved: http://xdaforums.com/htc-10/development/teaser-decrypted-device-mobile-network-t3394437

So you don't need to worry about it either way :rolleyes:.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] swerff:
Oh nice. But after some more searching I see really no good Cyanogen work yet. So it's still a bust. Guess I'll shop for a battery.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] CrazyCypher:
I dont really understand completely what was weird about it in the beginning and what changed now, but if I may ask... I am still waiting for my phone to arrive and after that I want to root and install xposed and also be able to install OTAs, but at the same time have encrypted phone like it is stock...is this even possible? :) Is it better to have it unencrypted like before MM? All latest phones are default encrypted correct?

Thank you for all the answers, I appreciate it.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
As long as you don't touch /system, yes, it's possible. It's still more secure to be encrypted, now we just have a choice. And yes, encryption is the default.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] CrazyCypher:
Oh, thank you for quick answer :) So when I receive my 10 and I want to root and install xposed, be encrypted and have OTAs, what do I have to do? I want to do everything before I start to use my phone so I dont have to restore any data or anything...So I unlock bootloader, then I flash TWRP, then install systemless SuperSU(modified to not decrypt data) and then install systemless xposed and that is it? :) After that when I boot my phone it will be encrypted and also be available for OTAs? Or if I dont plan on plashing anything else I have to flash stock recovery to receive OTAs? :)

Thank you very much, I really appreciate it :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You'll need to flash back to stock recovery to receive OTAs, and you can't make any modifications to /system. I'm not sure why you're rooting (or if you're just rooting to use Xposed), but typically the reason people root is to modify /system.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] CrazyCypher:
Yes, this is the first time I am planning on rooting just to use root+xposed :D I know that I'll just end up modifying system, but yeah.... :D Ok, for example if I do the procedure above and I also backup stock system and leave the TWRP... and after a while I modify system because I delete some apps, etc... when OTA is available I only restore system and then flash stock recovery and my data will be intact after performing OTA?

If I decide not to modify system but to use systemless SuperSU and systemless xposed and even flash custom kernel (ElementalX has written it does not modify the system), this things still allow me to perform OTAs because they dont modify the system, right? :) I think everything is getting more and more clear, thank you very much for all the explanations, I appreciate you taking time to reply :)

Edit: One reason to modify system just came to my mind: hosts file which will be modified with AdAway :D So I guess I will modify it :D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
You don't need to modify system for AdAway. There is a systemless method.

Everything else you said is accurate.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] CrazyCypher:
Wow I didnt know that... I only knew there are some other ad blocking options but with all of them there is an app in the background that is constantly running... Do you mind pointing me in the right direction about systemless AdAway? :) Other than that, you really cleared everything for me.. Thank you, I really appreciate it :) Now there isn't much to do except to wait for the phone to arrive... :D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
It's in the OP of the AdAway thread here on XDA. A Google Search on "systemless AdAway" should yield the result you want.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] CrazyCypher:
Thanks, I will take a look :) I was just making an edit but I'll ask you here as you already answered my previous post :D

Maybe could you tell me what do you modify system for? :) Maybe you'll give me some good tips&tricks I didn't remember or think about and would be really useful :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I don't ;).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] CrazyCypher:
Haha :D Ok, thanks! :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ThatGuy94:
I'm not sure what is causing it, but my data seems to be real inconsistent on my phone. I successfully rooted it and flashed the proper supersu with forcedecrypt off and data works for a little bit and then it randomly stopps and says no service. After rebooting, it will either keep saying no service or it will eventually start working again but the data will be extremely slow.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] chazall1:
ve experienced exactly what ThatGuy94 had stated. For me I am on the latest LeeDroid Rom, unencrypted. with Clumb kernel. I switched my kernel the Elx 0.05 . No issues for about a day. I then lost signal. I went back to the Clumb Kernel and I have had no issues with signal loss 36 hours so far.

Thanks
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ismailonrails:
Convert to TW x.xx.701.x HTC 10 from US unlock

Hi, I need to ask if we can convert US HTC 10 1.80.617.1(which I'm running now) to Taiwan version of software and also get the Update directly from HTC? One feature is missing from US variant which is "Vibrate on call connect/answer".. I had almost all HTC phones and they vibrates when someone calls but my HTC 10 don't and I've asked number of people from various regions and they confirmed it vibrates when they call and other answer.. Initially I thought it will be fixed in 1.80.xxx.x update as I'm facing this from 1.53.xxx.x update but it didn't and 1.80.401.1 users says it vibrates.. BTW does your 1.80.709.1 vibrates right ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] anndrenaline:
I'm S-on, trying to flash a firmware zip in RUU mode but i get
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] jollywhitefoot:
You mean this? I'm 1.80.617.1.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ismailonrails:
No not that one

No it's different. That option makes phone vibrates when someone calls you. But when you call someone and waiting for then to answer and when they press yes or green button or say answered call it makes your phone vibrates to give hyptic feedback that other side of caller answered the call and now you can stick your phone to your ears so dial your other number if you have from HTC and then accept the call and then notice if your phone HTC vibrates. Well my all HTC vibrates but except for this one I am also running 1.80.617.1 software and it does not vibrates but guy with 1.80.401.1 said me he tested this it works for him. It's very useful feature which once you have you really gonna miss if you call people often and waiting for then to pick phone then instead of phone on your ear you keep in hands and your phone will tell you that now you should put phone to your ears cuz other side have picked your call.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
Hey guys, quick question:

I'm using systemless root, only thing I changed in /system is that I replaced stock mail application with one that skips exchange security (in /system/priv-app). Now I'm getting a system update notification. Does that mean it didn't detect the small modification I've made in priv-app and I can go ahead and update? Or is the check done after I press the update button and will lead to the whole verity set to logging stuff mentioned in OP?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Verity check is done before updating in Download Mode. Just try it out if it works ;) if not it will Abort and no harm done.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] afuller42:
you can download the update anytime, now installing it is where the problem will come it. youll need the system untouched and the stock recovery to install an OTA, downloading it will work on even the most rooted, modified system out there.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
I understand I'll need stock recovery in order to make the firmware flash. But not having to restore the system image would safe some time, but I just want to make sure I won't break anything.

Is it safe to try just like Haldi4803 said?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] afuller42:
nothing will break, the install will just fail
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Qevinator:
Thanks guys!

EDIT: yeah, it failed :) Red triangle. Restored system image, after that no problems.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Cro Cop:
One short question

If I relock my bootloader for warranty purposes, then flash everything stock like day 1, and the bootloader says "relocked", not "locked" like before, will my warranty be valid or ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] andybones:
I think you'd be fine, however this is just a small opinion.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Terraalpha:
Hi all

I want to receive an OTA on my rooted HTC10,Cid 034.Europe.

The System img. and Boot are restored from Twrp and I have flash the stockrecovery back.

But it's not working!

It appear this Message "System corrupt....... "

What's wrong?

Please help!

Sorry for my bad English [emoji6]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] osama bhatti0:
If i just unlock my htc 10 bootloader and just root it and dont flash twrp just unlock its bootloader and root it without flashing twrp so i will have stock recovery. Then will i be able to install otas.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
And how do you plan on rooting without flashing TWRP? :confused:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] osama bhatti0:
I think there will be other way like in older htc devices i used m8 and desire x and one xl they didnt need twrp for root root file could be pushed using command prompt anyways if there is this method i will but most important question is will i be able to install otas after getting bootloader hnlock and if i root (if there is way) without installing twrp.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
No, there is no other way to root besides installing TWRP. If you go read the FAQ in the TWRP thread, everything regarding OTAs is explained there in detail.

There's no reason not to install TWRP - it can install the system part of the OTA just fine (provided your system is untouched). You just need to manually flash the firmware, which is as easy as renaming the file and putting it on the root of the SD card.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] osama bhatti0:
Yes captain but sir people tried to do it and they failed because in the thread to which i posted my question they say theres no way anyways i will try this method. Thank u sir now i gonna take the risk haha.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Terraalpha:
Hi captain

When I unlock the bootloader no chance to receive an OTA on my HTC10 ?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Unlocking bootloader has nothing to do with being able to receive/install an OTA.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Terraalpha:
I restored the System img. and Boot from Twrp, then i have flashed the stockrecovery.

But it's not working!

What's wrong?

Please help!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mattie_49:
If you uninstalled any carrier items before you made your backup it's not possible.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
http://xdaforums.com/htc-10/how-to/guide-how-to-ota-receive-corrupt-message-t3378187
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Terraalpha:
The problem is already solved! [emoji6] [emoji106]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] alicine:
interesting ,
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] swerff:
Any reason all twrp restores fail?

I unlocked, twrp, did a full backup of everything that was oem/stock, and those rare safely copied elsewhere. The I wiped everything, then formatted data.

Flashed lineage.

Booted back into recovery. Did a backup. Wiped /system and /data.

Attempted to restore the backup I just took moments prior. Towards the end it if the restore it says unable to mount /system.

Twrp informs and insists no os is installed.

Attempted to reboot is confirmation. No os.

Ideas?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] drob311:
Format data, flash a sense based Rom, reboot to system. After reboot to system, reboot to recovery and restore sense based backup. Works the same if you wanna restore los from sense.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] swerff:
I think I'm following your explanation.

Why can't I restore a lineage backup from lineage?

What is causing this? How can I restore my backup that initially came with the phone?

I have to restore backups without wiping?

Sent from my pme using LineageOS
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] drob311:
Whatever os you wanna restore, sense or los, you have to be on that os for the restore to be successful. I don't know why it's like that.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] swerff:
Do i have to boot the rom first?

Can I wipe everything, flash sense rom, then restore my sense based backup, all those steps without leaving recovery?

Same for lineage?

Sent from my pme using LineageOS
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] drob311:
I never tried doing it all in one recovery session. Give it a shot and post your results.