yashsingh1/xdaforums huggingface dataset:
[HTC One A9s Questions & Answers] fenixus:
Thanks, I missed that post, this thread went HOT, lots of posts flowing while I was away :)

Thanks buddy, I wasn't able to test it by "fastboot boot" as it looks like our phones don't support this mode.

I'm eager to just flash it, but need to confirm software revision, can you post the Software Version of your system?

Mine is 1.01.401.7

Also, where exactly did you get the original/stock/untouched boot.img from? Thanks!
[HTC One A9s Questions & Answers] Captain_Throwback:
He already posted that too: https://xdaforums.com/one-a9s/development/hi-build-custom-recovery-maybetwrp-t3528325/post73951106

And it looks like the version is 1.01.401.9, which should work fine for you.
[HTC One A9s Questions & Answers] fenixus:
gotcha. I made a ninja edit above LOL as I noticed that after I posted my initial reply.

Minor soft ver difference shouldn't be an issue for kernel, I am going to patch his stock boot.img with my version of Magisk Manager just to be on safe side tho, will compare MD5 later to see if they are identical.

*** EDIT ***

It worked here as well, rooted! :D
[HTC One A9s Questions & Answers] Jesus David Otero:
the first boot.img file isnt patched, the second is....
[HTC One A9s Questions & Answers] fenixus:
yup, I downloaded both and patched the first one using my Magisk Manager, then compared MD5 checksums on one generated by you and one generated by me, they were identical.

Rooted A9s here finally, thank you people, I got what I needed really (wanted to retrieve one of saved WiFi passwords) and also learned something new in process, that's why I love xda forums :D

Cheers people, never give up :cool:
[HTC One A9s Questions & Answers] dobrydiler:
Hi ! Someone is working on create recovery ? I want to try build own but I never compile any recovery or custom rom...
[HTC One A9s Questions & Answers] Jesus David Otero:
Anyone was working in this recovery but, I thing that he couldn't create a funtional recovery and he abandoned the callenge
[HTC One A9s Questions & Answers] dobrydiler:
Could you or any one can explain why he can't create recovery ? We don't have kenel sources ?
[HTC One A9s Questions & Answers] dobrydiler:
I found this kernel sources https://github.com/elephone-dev/P9000-Kernel from elephone p9000 with helio p10 this same as htc a9s And also i wrote to htc dev support and asked for sources to ours a9s
[HTC One A9s Questions & Answers] :
They won't answer you, unfortunately. Don't know how useful those sources can be. At least it's something to work with
[HTC One A9s Questions & Answers] forart.eu:
Hi everyone, I don't own a P10-based device, but the suggestion is to ask others owners/devs to join forces:

https://en.wikipedia.org/wiki/List_of_devices_using_Mediatek_SoCs#MT6755_.28Helio_P10.29

Of course, Elephone P9000 sources is the way to go (they do also already have official TWRP: https://twrp.me/elephone/elephonep9000.html), but there are many maybe-useful repos @ GitHub:

https://github.com/search?o=asc&q=MT6755&s=updated&type=Repositories

https://github.com/search?o=asc&q=elephone+p9000&s=updated&type=Repositories

Hope that helps, or at least inspires.
[HTC One A9s Questions & Answers] dobrydiler:
But we steall don't have Vendor files and kernels have diferent configurations i think we must wait for sources from HTC :(
[HTC One A9s Questions & Answers] forart.eu:
You do need so-called "bloob" files (read proprietary-peripehals' drivers), to *build* custom android ROM.

There just are 3 ways:

Ask HTC to release sources (some seems already available here: https://www.htcdev.com/devcenter/downloads)

Copy from another vendor's sources;

Extract from HTC stock rom (but means that needs to be compatible and - of course - you can't compile them)

EDIT: there's some tools that may help you such as Android Blob Utility but dunno if works and how.

Hope that helps.
[HTC One A9s Questions & Answers] dobrydiler:
And this is main issue we don't have sources form HTC and HTC don't want to share it I asked them many times... Maybe will be good to get "sources" from stock rom but we can't edit them and I'm not good in creating rom but I can learn it ;)
[HTC One A9s Questions & Answers] forart.eu:
Since A9s uses Mediatek-soc the problem could not be HTC itself, but (chinese) device peripheals manufacturers...

Anyway to obtain a custom ROM you can both grab already-compiled bloobs from official stock ROM or collect sources from different devices (or a mix of both practices).

My suggestion is to keep in touch (even here in XDA forums) with other clone-devices owners/mods/devs.
[HTC One A9s Questions & Answers] dobrydiler:
I write to HTC and they want from me some info about my phone maybe they give me sources... But now I try to compile rom with compiled sources but this will be hard form me I never do that but I try
[HTC One A9s Questions & Answers] bigrammy:
Advanced Tester only!

Hi can someone [MENTION=7924994]Jesus David Otero[/MENTION] anyone do a quick test of this recovery. Download HERE

Since the touch function is broken while in recovery I/we had to resort to a version of cwm recovery as that still used the buttons. :good:

Hopefully it will boot on your device but to be honest I never tried it on 6.0 mm and had to do some hacking to get it working fully on 5.1

Anyway give it a whirl and see what happens and report back :fingers-crossed:

EDIT 2: Ok I have just been testing My old recovery's on 6.0 and the good news is I have a working Philz recovery but to save hours of testing on your device and my time I need some info via adb shell from your rooted system.

I need the output of these cmd's

adb shell

su

ls -al /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name

Just some background for those intrested.

To cut a very long story short :eek:

The touch not working is a OLD problem which plagues many Mediatek devices and is caused by the kernel touch driver (GT9xx) which by design kills the touch while in recovery mode. Nothing can be done about this without editing the driver and recompiling the actual kernel (not the boot.img) believe me we tried for months to find a workaround to no avail.

Hence we had to bring forth the old cwm based recovery's that still could be used with the buttons Philz and Carliv's both of which still have touch also.

Bringing these recovery's to MM 6.0 is pushing their limit since they were made for KK 4.4.2/4.4.4 but it seems to still work. :fingers-crossed:

Just to be clear I do not have your device but curious to see if it works for yours. :fingers-crossed:

It's based on the boot.img posted earlier in this thread.

EDIT 1: BTW It will not work with encrypted data so if you have the stock boot.img with forcencrypt set chances are it wont boot just incase anyone needs reminding.
[HTC One A9s Questions & Answers] Jesus David Otero:
Im sorry, I dont speack english, so, I didnt understand to all what you say...

Y cant see the download link and...

Some tips before to flash this recovery?
[HTC One A9s Questions & Answers] bigrammy:
Please use adb commands provided in the above post and tell me what it says.

I will then give link and instruction to test the recovery.
[HTC One A9s Questions & Answers] Jesus David Otero:
Wait me pls :'v

my PC dont recognice my device in bootloader, i dont know why :C
[HTC One A9s Questions & Answers] bigrammy:
You do not need to be in bootloader for adb.

Just normal system with /system/settings/developer options/ and enable usb debugging

You need to make sure you give adb shell root privileges when prompted.
[HTC One A9s Questions & Answers] Jesus David Otero:
ok, there it is :D
[HTC One A9s Questions & Answers] bigrammy:
:highfive: Thanks give me 1 hour to fix things up.
[HTC One A9s Questions & Answers] bigrammy:
recovery tests

[MENTION=7924994]Jesus David Otero[/MENTION] [MENTION=4474827]fenixus[/MENTION]

Flash with fastboot same as you did your modded boot.img

fastboot flash recovery v1-htc-a9s-philz-recovery.img

If successful flash then reboot to recovery.

Then Answer these questions

1. Does it boot?

2. Are there Any errors?

3. Do the buttons work? ( Volume UP Volume Down and Power Button to Select Home button?? )

4. Does adb work? ( When connected to pc with usb cable )

5, Does the Micro SD card show on your PC? ( When connected to pc with usb cable )

Test v1 download: v1-htc-a9s-philz-recovery.img
[HTC One A9s Questions & Answers] Jesus David Otero:
NOU :c

when i selecet recovery mode option, my device freeze

yeah, it boots

yes, the PC recognice the SD card

yes, the adb works
[HTC One A9s Questions & Answers] bigrammy:
Sorry I do not understand this statement :(

Do you mean the buttons do not work while in the recovery?

Using adb shell again

cat /cache/recovery/last_log
[HTC One A9s Questions & Answers] Jesus David Otero:
ohhhhh

something needs permissions
[HTC One A9s Questions & Answers] bigrammy:
You do not need to be in recovery to get the output.

Do it from normal system as you did before.

Many thanks.
[HTC One A9s Questions & Answers] Jesus David Otero:
No men, I wasnt in recovery :"u
[HTC One A9s Questions & Answers] bigrammy:
:laugh: OK sorry.

adb shell

then

su

(you forgot to type su) then

cat /cache/recovery/last_log

For most things in adb shell you need root ( su ) you will notice the curser changes from "$" to "#" which means you have root user privlages

It is very late here in the UK so I must go to sleep now I will look again in the morning.

Thanks for testing.
[HTC One A9s Questions & Answers] bigrammy:
Anyone???????
[HTC One A9s Questions & Answers] dobrydiler:
Give me 1h i must do factory reset and I can flash your recovery :p

BTW. When you done can you publish git repo with sources ?
[HTC One A9s Questions & Answers] bigrammy:
There are no sources for this device. :rolleyes:

The recovery use's the stock kernel hence why you have no working TWRP recovery for this phone.

I am TRYING to get your device a functional recovery you can use with the phones buttons like this Philz recovery.

Please try give as much detail as you can about what does and does not work also don't forget to grab the recovery log the command for which is posted above.

Thanks :good:
[HTC One A9s Questions & Answers] dobrydiler:
I can't go into recovery by bootloader but if i can get by adb

I can use volume buttons

But cache is clear but show log work in recovery and i found logs in tmp folder Link

Back button no work

I can't do backup "Error can't mount backup path "

If you don't understand something or you want more info write ;)
[HTC One A9s Questions & Answers] bigrammy:
Ok thanks.

The problem seems to be the mounting of your /data partition so Is your data encrypted :confused:

If it is the recovery will be unable to mount it correctly.

The stock boot.img will automatically encrypt your data with no warning.

If you flashed the modified magist boot.img then this feature has been disabled but you would still need to perform a

Format

of data and not just a wipe so a format would delete everything on your internal storage photo's music etc etc.

So my question is Have you ever formatted data since you installed the Magist boot.img?

EDIT: I am not too sure about how you enter recovery from the bootloader maybe that is a HTC thing :eek: For 99% of MTK devices Volume UP plus Power button puts you directly into recovery while Volume Down plus Power puts you into bootloader. Sometimes it is required to attach the USB lead then quickly use the Volume Up and Power button. But like I say it's likely a HTC thing so you would need to continue to use adb or a app such as Quick Boot.

As a temporary fix for backups you could change your default backup location to your Micro SD Card.

From Recovery Main Menu. /Recovery settings/Save and Restore then choose Micro SD Card

Some other options are described in the Philz Recovery Thread. HERE Please remember not all options will be available due you dont have touch working so things Like aroma file manager can become difficult as its designed for touch. :(
[HTC One A9s Questions & Answers] dobrydiler:
I use RUU file because i have broken revocery so I install recovery on stock Phone Now now i have boot.img from magist but where i must do format ? in recovery ?
[HTC One A9s Questions & Answers] bigrammy:
Backup everything you value on your internal sdcard!! It will be lost forever.

Enter fastboot and flash your magist boot.img

fastboot flash boot boot.img

then

fastboot format data

Now reboot to system It will take a longtime to boot maybe 10 minutes + so be patient. :o

Do not set a lock or setup fingerprint as I THINK these encrypt your data again.

You can now boot to recovery and hopefully data will mount OK this time. :fingers-crossed:
[HTC One A9s Questions & Answers] dobrydiler:
I do it tomorrow sorry
[HTC One A9s Questions & Answers] bigrammy:
Ok no worry. :good:

Be sure to re read my previous post #92 as I edited it.
[HTC One A9s Questions & Answers] dobrydiler:
I found this kernel source for Helio P10 https://github.com/GearLabs/android_device_cyanogen_mt6755-common?files=1 maby will be usefull
[HTC One A9s Questions & Answers] bigrammy:
Still not useful without the Kernel source for your Actual device which HTC NEED's to give you.

I do not know why they do not release this for you and this has nothing to do with MediaTek BTW before the haters arrive. :rolleyes:

This type of behaviour is usual from small Chinese company's but I would not expect this of HTC it's very bad form on their part. :mad:

Even if you had everything you need you would still require a dev with the device to compile it all and debug it which from what I have seen and the response I have received on this recovery you simply do not have any. :(

The Order of things are normally

1. bootloader unlock ( This has been achieved well done! )

2. Custom recovery ( Still a work in progress due to a lack of users with basic/advanced skills ) Not you btw

3. Kernel source (HTC needs to give it to you)

4. helpful sources like the one you linked

5. A super dev with the device in hand ( None so far that I can see )

6. LineageOS
[HTC One A9s Questions & Answers] dobrydiler:
So we can only create recovery and nothing more witout sources and rom Dev with this device :/ I do format phone asap when I back to home
[HTC One A9s Questions & Answers] dobrydiler:
Hmm i have error

Formatting is not supported for file system with type ''.
[HTC One A9s Questions & Answers] bigrammy:
Sorry for the late reply I missed your post :(

Hmmm,

Maybe try fastboot format ext4 data :confused:

or fastboot format data ext4

I am not very familiar with HTC fastboot cmd's :o

Maybe [MENTION=1162986]Captain_Throwback[/MENTION] could advise you better with this command.
[HTC One A9s Questions & Answers] sabpprook:
I've build a TWRP recovery, please have a test

https://github.com/sabpprook/twrp_b...load/1.0.0/twrp-3.2.1-0-e36_ml_unofficial.img

fastboot flash recovery twrp-3.2.1-0-e36_ml_unofficial.img

Please let me know if you get any issues from TWRP recovery.
[HTC One A9s Questions & Answers] dobrydiler:
Did you fix touch screen in this recovery?
[HTC One A9s Questions & Answers] sabpprook:
I do not have this device, please give it a try and figure it out. :)
[HTC One A9s Questions & Answers] dobrydiler:
[MENTION=3924647]bigrammy[/MENTION] i tried to format data and i get this error "Warning: data type is , but ext4 was requested for formatting. Couldn't parse partition size '0x'." command used "fastboot.exe format:ext4 data"

[MENTION=4375068]sabpprook[/MENTION] i flash recovery my screen was dark for a moment but it start to work !!! i try to backup data :D Thanks

Can you describe how you do that ?

[MENTION=309187]edit[/MENTION] Thanks all in this recovery work expect one small issue - battery % does not display correctly always 50% but that is unimportant because its unnecessary expect this all work thanks again :D

So now we waiting for sources code
[HTC One A9s Questions & Answers] sabpprook:
All I've done is patch the stock kernel to let touch work in recovery mode and build TWRP recovery.

Thanks [MENTION=1162986]Captain_Throwback[/MENTION] for the guide to do patch on stock kernel.
[HTC One A9s Questions & Answers] bigrammy:
Could you please explain how or what you did or just link to the guide :confused:

I would love to know the work around for this touch problem as it affects many Mediatek devices using the GT9xx touchscreens. :fingers-crossed:
[HTC One A9s Questions & Answers] sabpprook:
The discussion start here

https://xdaforums.com/htc-10/develo...h-recovery-t3358139/post71568437#post71568437

Did you add this into BoardConfig.mk ? It will also affect touch.

https://github.com/sabpprook/android_device_htc_e36_ml/blob/android-6.0/BoardConfig.mk#L46

BOARD_RECOVERY_SWIPE := true
[HTC One A9s Questions & Answers] bigrammy:
Thanks for this and thanks to [MENTION=1162986]Captain_Throwback[/MENTION] too :good:

This makes for some very interesting reading indeed. It had crossed my mind before but I would never of figured that out and certainly would have had no idea how to implement it. :eek:

THANK YOU!! :highfive: :highfive:

[MENTION=7003329]dobrydiler[/MENTION]

I contacted HTC regarding the Kernel source for this device and was linked to the A9 source which we all know is a different device all together so I asked Again but got the same reply :rolleyes:

They have the E9 kernel source up which is also MediaTek Helio SoC so I see no reason why they cant provide it. :confused:

I do not have the A9s myself so I cant be bothered chasing them down but maybe you should pester them for it as they should not be selling it in the UK without it been available after this length of time.
[HTC One A9s Questions & Answers] dobrydiler:
I write to support many times I bought my phone in Poland and local support told me they send my request to anther people but stil nothing ( i writed 2-3 month ago ) i try to write to English support but they told me they are form store and they not have access to dev stuff :(

So i can write to HTC but can you tell me where ?

And i can to try compile rom but i'm new in this

edit

I write to htc by this site https://www.htcdev.com/contact like always but this time i select English support and my location as England maby this time they give me sources

[MENTION=3924647]bigrammy[/MENTION] where i should write to htc because on htcdev site they didn't answered me
[HTC One A9s Questions & Answers] Mirko2208:
Can anyone help me and give me clear instructions on how to root my phone with magisk manager and all the files and stuff
[HTC One A9s Questions & Answers] Jesus David Otero:
https://xdaforums.com/one-a9s/how-to/root-htc-a9s-magisk-t3680322

;)

My first thread
[HTC One A9s Questions & Answers] Mirko2208:
Alright but the problem is I don't have PC at my disposal
[HTC One A9s Questions & Answers] dobrydiler:
[MENTION=3924647]bigrammy[/MENTION] [MENTION=1162986]Captain_Throwback[/MENTION] I have my a9s but I still not get source code maby do you now how to get source code from htc which is unpublished on dev site
[HTC One A9s Questions & Answers] bigrammy:
I have requested it a few times now but just get the same old reply which simply directs me to the HTC dev site :rolleyes:

There is a number to call so not sure if you would get any further if you spoke to a actual person.

Here is the actual response from HTC.

Buy a Sony next time as they release the kernel source codes for all their devices. :D
[HTC One A9s Questions & Answers] dobrydiler:
I got this message too :/

Wysłane z mojego HTC One A9s przy użyciu Tapatalka
[HTC One A9s Questions & Answers] :
Everything seems to be working fine. Even with encrypt data.

Many thanks.
[HTC One A9s Questions & Answers] Jesus David Otero:
OK I could acces to TWRP

TY so much :v
[HTC One A9s Questions & Answers] htc_unenthusiast:
Feeling Hopeless

Ok so I am a bit late to the party, but I recently had a run in with this HTC One A9s. I am really new to the HTC scene, but they definitely gave me the same response as most others when asking for kernel source.

I did some checking around on their dev website and can see the HTC U Play kernel source is somewhat similar. I tried burning in a copy of this kernel after appending the A9s device tree but got zero output outside of a blank bootloader screen and a watchdog reset. Does anyone have suggestions on how to get any debug output after it jumps to the kernel? I checked last_kmsg once it reboots but it is always blank or contains messages from the recovery boot. Any input is appreciated!
[HTC One A9s Questions & Answers] bigrammy:
Similar does not = the same sadly as the hardware attached to the CPU is different like the screen for instance. :(

I do not own a HTC MediaTek based Device but on nearly all other MediaTek devices I do own they leave a "project config" file in /system/data/misc/ this can be very informative as to what drivers they used for that build LCM, Camera's etc etc.

So compare/diff that file from both devices and see the differences they set. If your lucky they will of used the same MediaTek source code to compile for both devices and the drivers needed for the A9s will be contained in the U kernel source. :fingers-crossed:

BTW does the U Play get regular OS updates??
[HTC One A9s Questions & Answers] htc_unenthusiast:
Unfortunately I do not have access to a U Play. I was really hoping there would be accessible UART so I could see how far the U Play kernel gets on the A9s (if anywhere) and then go from there, but so far I am not sure how debugging happens on the A9s. Thanks for the heads up on the project config file. I will look and see if there is one in that location.
[HTC One A9s Questions & Answers] bigrammy:
In the Kernel source have a look through the /kernel/arch/arm64/configs they may well have left the A9s's build config in there if they used the same MediaTek source code ALPS "ro.build.fingerprint=alps/x/x/x/release-keys" to build for all their mt67xx devices which is very likely if they are the same Android Version.
[HTC One A9s Questions & Answers] htc_unenthusiast:
I didn't see any config files that correspond to the devices codename which I pulled from this list:

github jaredrummler/AndroidDeviceNames/blob/master/json/manufacturers/HTC.json

I am relatively sure something is going wrong even before it gets to start_kernel(). I am wondering if there are any changes I can make that alert me how far it is getting.
[HTC One A9s Questions & Answers] bigrammy:
Hi,

What you need is the system.img of both devices then look in /system/data/misc/ or /system/vendor/data/misc for the ProjectConfig.mk

If you then compare them you will see what changes they made when configuring the HTC U compared to the A9s look for things regarding

CUSTOM_KERNEL

as these will of been passed to the alpine_kernel/arch/arm64/configs/htc_alpine_uhl_defconfig

Here is a example of the ProjectConfig.mk on pastebin pulled from my Xperia XA (mt6755)

Also check the /system/build.prop of both devices and look for these lines.

[B]ro.mediatek.version.branch=[/B][COLOR="blue"]alps-mp-n0.mp103.tc9sp[/COLOR]
[B]ro.mediatek.version.release=[/B][COLOR="Blue"]alps-mp-n0.mp103.tc9sp-V2.43_cci55.64.sm10.n_TMP1[/COLOR]

Blue alps Is the MediaTek source code used to compile that particular ROM. If they match between your A9s and the U then you at least stand a chance of compiling a kernel with all the correct drivers using the U kernel source code https://github.com/Corsair11/htc_alpine_kernel.

The Android Versions and Partition scheme are also important so it would be better if they matched too.

Getting any kind of logs from the kernel of the HTC U would be a miracle. :laugh:

If you get to the stage of the boot animation then there is a chance kernel logging would of started.

It would save you a great deal of time if you had someone from the HTC U camp to assist with info regarding their device.

I hope this helps :D