yashsingh1/xdaforums huggingface dataset:
[One (M8s) General] fraggz99:
How do I make the system.img a flashable rom zip? Ive followed this guide up to flashing boot.img (in my case boot_signed.img) but system.img fails (diesnt even start flashing) http://blog.syedgakbar.com/2013/02/android-installing-system-images-using-flashboot/
[One (M8s) General] ckpv5:
In all my posts above, I never said to fastboot flash system.img as it won't work on your S-On device.

What I said was make a flashable ROM zip that you can install in TWRP.

You need to make a system dump out from the system.img then make a ROM zip.

Example screenshots

After you save all extracted files .. make a flashable ROM zip that can be installed in TWRP.

I don't have a M8s so I'm not sure what tool that you need to extract the system.img ..

maybe you can ask any M8s ROM developer to help you to make a flashable rom zip out of system dump as I believe this is bit complicated for you.
[One (M8s) General] fraggz99:
Oh I misunderstood, so just extract everything from system.img then put it in a zip? or is there more to it
[One (M8s) General] ckpv5:
Just tested a decrypted M8s system.img and the same tool that I used as in the screenshot able to extract it.

You need to put them in a flashable zip not just simply zip it. You need to ask someone familiar in making ROM for M8s .. maybe [MENTION=732043]voidzero[/MENTION] can help you .. try asking him in PM.
[One (M8s) General] root-expert:
In TWRP there's an option of flashing .img files. I don't if HTC's imgs will work though. Or else you'll need an updater script to fash the img file.
[One (M8s) General] fraggz99:
I put system.img on a usb for otg, it detected it but only has boot and recovery as flashable partitions in twrp
[One (M8s) General] ckpv5:
Actually, that also in my mind that I guess may work but I did not mentioned it before because I don't have the chance to test it yet.

This won't break anything, whether it will be successful or fails.
[One (M8s) General] ckpv5:
How can it detected boot & recovery ? To install an .img file, you don't use restore menu but install menu.

When select install menu, in the menu you select images in the sub-menu then only you can install image file.

It may work and it may not, don't have time to test on my M8 and I don't even know whether this should work ... so do it on your own risk.
[One (M8s) General] fraggz99:
Yes I went to install, tapped images, selected system.img and it asked which partition to flash, boot, or recovery...

Ill need to find a way to make a flashable zip
[One (M8s) General] ckpv5:
I see .. it means TWRP only can install boot or recovery images not system.

Last thing from me .. if you're successfully install the ROM, when doing OTA, select install later. You need to copy the OTA zip because you'll need the stock recovery from the OTA zip to proceed with installation.

Good luck.
[One (M8s) General] fraggz99:
Ah so I cant use the old vodafone 1.11.161.1 recovery from the RUU site? Ill Look around for how to make a flashable zip
[One (M8s) General] ckpv5:
Yes you can.

But if 1.11.161.1 is more than one version lower than your current firmware version, you'll get stuck on 2nd OTA because the lower version OTA unable to update/downgrade your firmware due to S-On.

My advice is always use the one from intended OTA.

1.11.161.1 OTA to 2.11.161.1 - use 1.11.161.1 or 2.11.161.1 stock recovery (recommended 2.11.161.1)

2.11.161.1 OTA to 2.xx.161.x - sue 2.11.161.1 or 2.xx.161.x stock recovery (recommended 2.xx.161.x)

If you're familiar with linux, you can make ROM flashable zip with this tool :

http://xdaforums.com/chef-central/android/kitchen-superrs-kitchen-t3202296
[One (M8s) General] fraggz99:
Time to make a ubuntu VM then.
[One (M8s) General] fraggz99:
Got onto lollipop using a zipped system from your instructions, got the OTA but trying ot extract firmware.zip says it cannot be opened as an archive, I have a stock recovery for this version thoguh so should I just use that recovery then try get the recovery from the next (which will be marshmallow) ota?
[One (M8s) General] ckpv5:
Use 7-zip to extract the firmware.zip

It's ok to use the stock recovery that you already have for this OTA but for the 2nd OTA if any, you'll need the one from OTA zip.

Can you upload the firmware.zip .. this will help a lot of people .. I'll put it in my thread here : http://xdaforums.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860
[One (M8s) General] fraggz99:
yeah I tried to extract it using 7zip but it wont even open in 7zip: http://prntscr.com/df7vv1

And I just tried applying the OTA and it booted to android system recovery, errors are as follows:

E:Error in @/cache/recovery/block.map (status 7)
[One (M8s) General] ckpv5:
Upload the firmware.zip .. I'll extract it for you.
[One (M8s) General] fraggz99:
https://drive.google.com/open?id=0Bx154LbMszG1VWtxTVZmQ2c2NVU
[One (M8s) General] ckpv5:
Which version lollipop that you installed ? Because the firmware.zip that you uploaded is for 1.11.161.10 instead of 2.11.161.1

Maybe it is 1.05.161. 5 ?

modelid: 0PKV10000
cidnum: VODAP001
cidnum: VODAP102
cidnum: VODAPE17
cidnum: VODAP304
mainver: 1.11.161.10
btype:1
aareport:1
hbootpreupdate:12
DelAbsolute:1

Here the extracted recovery.img : https://drive.google.com/file/d/0B4jGj3SfskzMU21hYXZJWlpucDA/view?usp=sharing
[One (M8s) General] fraggz99:
The lollipop was 5.0.2, the RUU was 1.11.161.1. The next OTA will be marshmallow, thanks for the recovery though.
[One (M8s) General] ckpv5:
I thought that you have 1.11.161.10 RUU as on OP

0PKVIMG_M8_QL_UL_L50_SENSE60_Vodafone_UK_1.11.161.10_Radio_1.0.U20410.1@50408_15.00_016_F_release_45 0235_combined_signed.zip
[One (M8s) General] fraggz99:
The uncrypted one didnt have the 0 at the end, whether it matters or not I dont know but the OTA is still failing with an error in cache/recovery/block.map

could it be the bootloader being unlocked?
[One (M8s) General] ckpv5:
Can you put here all errors ? Don't think that is the only error. Something about fingerprint or something about unexpected content. A screenshot is better if you have other camera or phone.

Don't think because bootloader unlocked, you need to relock bootloader only when fastboot flashing RUU or firmware.
[One (M8s) General] fraggz99:
thats the only error given. E:Error in @/cache/recovery/block.map, if theres a log anywhere I can get for you just let me know.
[One (M8s) General] ckpv5:
The only thing that I know about this error is when you have lack of free space in internal storage .. try copy out all your files from internal storage and make it at least 16gb free.

Other than that .. I have no idea when there is no other error prior to that.
[One (M8s) General] fraggz99:
Ill do a factory reset in twrp, then reflash the recovery and try again
[One (M8s) General] ckpv5:
I maybe wrong, factory reset won't affect internal storage unless you select wipe internal storage in TWRP.

The only thing that I'm worry is as I always mention in M8 threads .. more than two version lower than current firmware, OTA won't work when it is S-On.

So I guess it is due to the firmware from the OTA unable to proceed because it can't downgrade. Anyway .. that's why I ask you to test using the recovery from OTA zip because I assume the failure is due to wrong recovery version.

I expect your case is lollipop -> marshmallow (only one version lower), not

lollipop -> lollipop -> marshmallow (two version lower)

because you said you have 1.11.161.1 -> 1.11.161.10 -> 2.11.161.1 (this is two version lower)

EDIT :

[MENTION=7250681]fraggz99[/MENTION]

Can you post the fastboot getvar all of current status ? I believe I found TWRP nandroid backup for you.

This will save you all the hassle ... as your device is may actually 3 version lower with current 1.11.161.1 ROM

1.11.161.1 -> 1.11.161.10 -> 1.21.161.1 -> 2.11.161.1
[One (M8s) General] fraggz99:
Here you go (took out imei and SN for obvious reasons)

C:\adb>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 3.19.0.0000

(bootloader) version-baseband: 1.0.U20410.1@60201

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main:

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) serialno:

(bootloader) imei:

(bootloader) imei2: Not Support

(bootloader) meid: 00000000000000

(bootloader) product: m8ql_ul

(bootloader) platform: hTCBmsm8939

(bootloader) modelid: 0PKV10000

(bootloader) cidnum: VODAP001

(bootloader) battery-status: good

(bootloader) battery-voltage: 0mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: 0b9a12e3

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

(bootloader) mfg-name: 0001

all: Done!

finished. total time: 0.007s
[One (M8s) General] ckpv5:
Your radio version is Marsmallow, correct ? The software version is 2.11.161.1 ?

If this is correct, here is the TWRP backup that you can restore

https://www.androidfilehost.com/?fid=24591020540823096

I believe you know the routine on how to restore a nandroid backup
[One (M8s) General] fraggz99:
I cant see why thats not the one, since the 11.161 bit of the version seems unique to vodafone UK. Ill reflash twrp and try it

What twrp was this taken with or should I use 2.8.6.0. for compatibility?
[One (M8s) General] ckpv5:
I don't know about TWRP for M8s (remember, I don't have M8s only M8).

Since you managed to restore the EU backup that I linked before, the same one should do the job just fine.
[One (M8s) General] fraggz99:
thanks, Ill get it and try get the ota and recovery files (iif there is an ota available)
[One (M8s) General] ckpv5:
As there is no 2.11.161.1 stock recovery available, you need the stock recovery from the next OTA (if any).

Gotta go now .. good luck
[One (M8s) General] gioman14:
FIX FOR HTC ONE M8S data problems*!!!

IF you experience problems with data usage and dont want to go back to stock for your original baseband version or to turn s-off DO THIS!

For everyone that couldnt solve the issue, im currently in HTC One m8s, CM12.1: (https://ruu.lalleman.net/HTC_M8S(QL_UL)/)*,*TWRP recovery (http://src.voidzero.net/CM-12.1/htc_m8qlul/unofficial/)*with a baseband version for USA, while im in europe... soo, my data connection didnt work n i couldnt find the right carrier.*

The reason for this all is that the cm12,1 version is for american carriers or something

What I did what fixed it:

- First, i set up right APN for my*carrier (make shure you do this for yours)

- Put the network operators option on automatic

- Download:*http://xdaforums.com/oneplus-one/development/radio-updated-modem-radio-files-oxygen-t3072516*(make sure you download whole firmware*as .zip)

- Put the zip on your phones main SD, so we're the rom is written on.

- Then go into twrp recovery mode and go to mount and CHECK system

- Then go to instal and instal the zip file, (DONT check zip file signature verification)

- After do dalvik n cache wipe

- Then reboot

it'll probably has to instal gapps first or something but that will happen automaticaly while booting

Im kinda new to forums so plss spread this fix if it works for people

---------- Post added at 09:13 PM ---------- Previous post was at 08:54 PM ----------

FIX FOR HTC ONE M8S data problems*!!!

IF you experience problems with data usage and dont want to go back to stock for your original baseband version or to turn s-off DO THIS!

For everyone that couldnt solve the issue, im currently in HTC One m8s, CM12.1: (https://ruu.lalleman.net/HTC_M8S(QL_UL)/)*,*TWRP recovery (http://src.voidzero.net/CM-12.1/htc_m8qlul/unofficial/)*with a baseband version for USA, while im in europe... soo, my data connection didnt work n i couldnt find the right carrier.*

The reason for this all is that the cm12,1 version is for american carriers or something

What I did what fixed it:

- First, i set up right APN for my*carrier (make shure you do this for yours)

- Put the network operators option on automatic

- Download:*http://xdaforums.com/oneplus-one/development/radio-updated-modem-radio-files-oxygen-t3072516*(make sure you download whole firmware*as .zip)

- Put the zip on your phones main SD, so we're the rom is written on.

- Then go into twrp recovery mode and go to mount and CHECK system

- Then go to instal and instal the zip file, (DONT check zip file signature verification)

- After do dalvik n cache wipe

- Then reboot

it'll probably has to instal gapps first or something but that will happen automaticaly while booting
[One (M8s) General] lorenzino93:
Hello to all. I am an italian member. My English is not good and I excuse me for that.

I want to root my HTC M8s, but I don't understand! Someone is kind enough to explain to me?

Info phone:

Android Version: 6.0.1

HTC sense version: 7.0

Software Number: 2.20.401.1
[One (M8s) General] ckpv5:
Have you solve your problem ? Need help ?
[One (M8s) General] jonke11:
[MENTION=830797]ckpv5[/MENTION] yes mate, everything is good now
[One (M8s) General] fraggz99:
[MENTION=830797]ckpv5[/MENTION] should also express my gratitude for all your help, you are the reason my phone can return to stock firmware and I cant thank you enough for helping me out, I now keep my backups in google drive incase of another hdd fail
[One (M8s) General] gioman14:
Help given

Yoo, I can help ya with that, first of all it is very important you make sure your device is indeed an m8s and not an m8. Theres a lot of misunderstanding between these models. The first mistake that can be made is updating the WRONG custom recovery and custom ROM. If you look in my comment a bit higher you can find all the right downloads for m8s. If you downloaded all these reply to me.
[One (M8s) General] lorenzino93:
I have rooted my htc one m8s!!! But when the phone restart the modified is annulled! :o Solutions?
[One (M8s) General] root-expert:
You mean after a reboot you don't have root anymore?
[One (M8s) General] aaho:
Did you find the RUU for this?
[One (M8s) General] ckpv5:
You won't find this RUU in M8s section.

Check the M8 section for the RUU .. they have both 4.18.708.12 and Marshmallow 6.16.708.1 RUU
[One (M8s) General] irndru_:
Accidentally deleted OS

Can anybody provide me with the stock rom? I accidentally deleted my OS and backup.

The stock rom isn't available from the htc website & no custom roms support the phone yet. I am panicking - please help!
[One (M8s) General] Captain_Throwback:
Can someone that's on software version 1.03.401.11 please pull the following file for me?

/system/lib/modules/texfat.ko

I'd like to include native exfat support into TWRP and need that file to do so.

I'm also in the process of building a custom kernel from the 1.03.401.11 HTC Dev source to use in recovery that supports NTFS and F2FS. It also disables system write-protection. I'll upload a flashable zip of the kernel once it's built for people to try out as well.
[One (M8s) General] El-Conkistador:
The custom kernel will result in screen freeze . Especially on the latest version of the ROM. To override freezes must turn off and on the screen with the power button, but this is not a stable solution . I also compile the kernel through sources to disable the write protection system .

I wish you good luck in your work
[One (M8s) General] Captain_Throwback:
You're using the original source with the newest version of the ROM, though, right? At any rate, I'll upload mine for you (or people that are still on the original version) to try anyway.

Do you have a system dump or backup of the 1.03.401.11 software available from which you can pull the module I asked for?

EDIT: Here's my kernel source, if anyone's interested: https://github.com/CaptainThrowback/kernel_htc_m8ql/commits/custom

EDIT 2: And attached is my custom kernel for people running 1.03.401.11 software. Flash at your own risk, as there may be issues, as [MENTION=6701903]El-Conkistador[/MENTION] already stated. I'll update the recovery once I have the texfat module.

EDIT 3: Also I forgot to mention I added init.d support to the ramdisk (if you have busybox installed) and a workaround for Titanium Backup to see external storage.

MD5: 5decc2d46e8f421db38dd979793cd615
[One (M8s) General] PatarNoster:
Hi Team

Thank you so much for starting this thread, i find myself again in the same box as i did with the LG G3 at release with no support at all from anyone... took awhile to get the bootloader, root & CM.

Just a quick few questions, i have got the recovery running on the device, thought i did it a bit differently than the instructions. Let me know if anyone is having a hard time ill write up a tutorial on how i did it.

So... is there a way to get root on the device? From recovery im not able to actually root the device., did i do something wrong lol...

Secondly why the major difference between the m8 and m8s not letting same development... the CPU ?
[One (M8s) General] Captain_Throwback:
Rooting should be as simple as flashing SuperSU in recovery. Just make sure you make a stock backup first, and use the Beta version of SuperSU.
[One (M8s) General] PatarNoster:
Haha... I tell you what it worked with the beta version of super SU. So now i am rooted... dont know what to do next....

Thank you for that.
[One (M8s) General] DACATA:
could you pls explain how you get a stable root version ? any link to the beta SU for M8s ? :good:
[One (M8s) General] Jackropon:
[MENTION=6701903]El-Conkistador[/MENTION] Have you made any progress with the RUU? I will make a donation once its up. Looking forward to it.
[One (M8s) General] Dabman:
anyone has a dump of last system? because mine is corrupted. and is not possibility to recover from mine backup
[One (M8s) General] PatarNoster:
I searched around (its not linked in supersu website)

https://download.chainfire.eu/740/SuperSU/BETA-SuperSU-v2.49.zip

After the recovery i flashed this package and it works. (Make sure all updates to Play Service is done)
[One (M8s) General] Captain_Throwback:
Better to link to the thread ;) (to make sure you always get the latest)

http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

P.S. Has anyone been able to pull that kernel module or try the kernel I posted yet?
[One (M8s) General] PatarNoster:
My bad thanks.
[One (M8s) General] El-Conkistador:
hi

I am in the final Version 1.11.401.2 .

I am trying to upload the RUU 1.03.401.11 . We must wait (1.94Gb * 2)

For your Kernel whether in version 1.03 or the latest kernel used is same version. But the freeze problem is still present. We have the same problem ;)
[One (M8s) General] Captain_Throwback:
So that makes me wonder if a recovery that uses that kernel will have the same problem. I wonder why that's happening? Unfortunately without the device, I really can't troubleshoot, so you'll be on your own to figure it out.
[One (M8s) General] El-Conkistador:
For information : In your github Custom Kernel M8QL_UL, you have an error with the symlink for skeleton64.dtsi (You rebuild the symlink to skeleton.dtsi)

skeleton64.dtsi :

/*
* Skeleton device tree in the 64 bits version; the bare minimum
* needed to boot; just include and add a compatible value. The
* bootloader will typically populate the memory node.
*/

/ {
#address-cells = <2>;
#size-cells = <2>;
cpus { };
soc { };
chosen { };
aliases { };
memory { device_type = "memory"; reg = <0 0 0 0>; };
};

EDIT : Ruu are uploaded. Enjoy it !
[One (M8s) General] tzutzu78:
Are you referring to the texfat file? attached and renamed as .txt so that upload is possible
[One (M8s) General] Captain_Throwback:
I changed the symlink to link to the skeleton64.dtsi in arch/arm/boot/dts, because the way it extracted caused a broken link. The content of the file I linked to looks to be the same as yours:

/*
* Skeleton device tree in the 64 bits version; the bare minimum
* needed to boot; just include and add a compatible value. The
* bootloader will typically populate the memory node.
*/

/ {
#address-cells = <2>;
#size-cells = <2>;
cpus { };
soc { };
chosen { };
aliases { };
memory { device_type = "memory"; reg = <0 0 0 0>; };
};

Where do you see an error?

EDIT: This is the patch where I fixed it: https://github.com/CaptainThrowback/kernel_htc_m8ql/commit/7ed1ef87cdbbc78d2d6f0e33e5c5572a82af01ba
[One (M8s) General] El-Conkistador:
Your initial Skeleton :

/*
* Skeleton device tree; the bare minimum needed to boot; just include and
* add a compatible value. The bootloader will typically populate the memory
* node.
*/

/ {
#address-cells = <2>;
#size-cells = <1>;
cpus { };
soc { };
chosen { };
aliases { };
memory { device_type = "memory"; reg = <0 0 0>; };
};

My Skeleton64 :

/*
* Skeleton device tree in the 64 bits version; the bare minimum
* needed to boot; just include and add a compatible value. The
* bootloader will typically populate the memory node.
*/

/ {
#address-cells = <2>;
#size-cells = <2>;
cpus { };
soc { };
chosen { };
aliases { };
memory { device_type = "memory"; reg = <0 0 0 0>; };
};
[One (M8s) General] Captain_Throwback:
skeleton and skeleton64 are two different files. I'm not sure why you're comparing the two? Either way, the files I'm using are straight from the source. I don't see how mine is different from yours.

I just posted you the file contents of my skeleton64.dtsi. What does that have to do with skeleton.dtsi?

EDIT: These are the two files being linked to in my source:

skeleton.dtsi

skeleton64.dtsi

Are you saying those are different from what you have?
[One (M8s) General] AdUser:
How did you it??
[One (M8s) General] AdUser:
Recovery and root for v. 2.20.401.1:

Download and unapck twrp_m8s(qlul).zip

Boot into fastboot (hold Vol - and Power for 5 second)

Connect GSM via USB-cable to PC

Open "flash_twrp.bat" for flash or start "boot_twrp.bat" (for direct boot into TWRP for flashing your files, root, MoAB).

Files:

sendspaceDOTcom/file/qet4zf - twrp_m8s(qlul).zip

sendspaceDOTcom/file/2p4lrz - UPDATE-SuperSU-v2.79.zip - root

sendspaceDOTcom/file/ynzlze - MoaAB_ADBlocking_10202016_R1.zip - fresh AdBlock hosts-file

Tnx for xxxxxKENNIxxxxx from 4pda.ru
[One (M8s) General] bilal.fanatic:
Is the RUU server down?
[One (M8s) General] Jurius24:
Hello everybody! I need help. My TWRP backup is broken (system.emmc.win is 0KB). Can someone give me a TWRP backup. I have CID: T-MOB101. With RUU can not restore ends with error 155. Sorry my english is not so good:angel:.

I would be happy for any help me. Thanks in advance
[One (M8s) General] Jurius24:
Hello everybody! I thank you. But I got it.:good:
[One (M8s) General] ChaquiLois:
TWRP

So far where's the link of the latest twrp recovery. Can't find it, could someone repost it or what. Thankyou
[One (M8s) General] jeroen_13:
http://src.voidzero.net/
[One (M8s) General] ChaquiLois:
I tried flashing that twrp and it's successful but when i got into clicking recovery. It goes "Entering recovery..." for a matter of seconds and restarts my phone. Does not direct into the recovery. Help? Sad
[One (M8s) General] root-expert:
Use htc's fastboot. Download it from the same site.
[One (M8s) General] ChaquiLois:
I tried that too. Still got the same problem. Maybe I did something wrong? Can you give me step by step on how to install them? Maybe I'd just did the wrong thing when using the fastboot or the method of my flashing.
[One (M8s) General] root-expert:
1) Power off your phone

2) Boot into bootloader (hold vol down + power button)

3) Select fastboot

4) Connect your phone to your pc

5) open terminal and type "fastboot flash recovery path/to/recovery.img" (without quotes)

Replace the path/to/recovery.img with your path
[One (M8s) General] ChaquiLois:
What do you mean with terminal? Do you mean click fastboot (the application that I have downloaded) then enter the type "fastboot flash recovery path/to/recovery.img?

Okay, tried clicking that but it says it's missing the Adb(something) .dll file. So the thing that I'd done is that I dowload that adb file then copied it to the folder of the fastboot. Then open cmd, type cd Downloads, cd fastboot-win (the folder from the site), then fastboot flash recovery recovery.img. Is that a wrong method? Btw I also copied the twrp file on that same folder.