[ROM] [7.1] [Unofficial] [S4] [HBOOT2.16] LineageOS14.1 HTC One S Ville [2018-08-20]

Search This thread

pavel.bosco

Senior Member
Oct 18, 2014
168
147
Moscow
Credits to Matt Mower who helps me very much in getting the thing compiled and then works,
and credits to the whole team who made this new version

1485441423-d158376b14838637b696a4bdd1edd699.png
Pros:
  • it starts
  • phone calls works
  • wifi works
  • calc works
  • camera works
  • mobile data works
  • gyro/compass works
  • gps works
  • fm radio works
  • su app is included
Solved/Fixed:
Cons:
  • built-in chromium browser fails to play youtube. but chrome and youtube apps from playmarket do it w/o problem
  • there are some outstanding permission denials exists, not critical at all. but let us know if something fails
  • proximity sensor turns on while on lockscreen.
  • themes support doesn't upgraded yet to 14.1 branch

DOWNLOAD LINK

lineage-14.1-20180820-UNOFFICIAL-ville.zip


SCREENSHOTS
1484953901-3ba0783e69e837fec2f7c377ecc6a340.png


Working Devices:
- Ville S4 (HTC One S with S4 only!)

Working hboot:
- 2.16 (only! see below)

Working Recoveries:
- TWRP 3.0.N1-0

Working gapps:
- ARM, 7.1, micro
you can choose the size that better fits to you, I prefer micro.

If you are on CM13, and wish to migrate ensure you use correct TWRP, then just wipe, install Lineage, gapps (all links are above), reboot and you are fine. Your apps will gone. Your sms will gone, but your pics/video/music, everything on /sdcard will stay.

WHY & HOWTO get to HBOOT 2.16 from stock ROM, or any other HBOOT 2.15 ROMs:
Why doesn't this work on HBOOT 2.15? Because it uses different partition sizes. Moving to HBOOT 2.16 will give more space on /sdcard, no jokes, really.
If you are ready to go, then
consider the topic from 1st link in quote to get guide how to install HBOOT 2.16, and 2nd link to get the RUU zip.
and you can use more recent recovery, 3.0.M5 (link above), instead of 2.8 mentioned in the guide.
It does and it exists right there: https://xdaforums.com/htc-one-s/general/guide-how-to-install-hboot-2-16-time-t2898605
OP link to firmware zip file is dead but see post #22 for the ZIP file: https://xdaforums.com/showpost.php?p=63384790&postcount=22
The CM13 OP contains an install guide just under the homescreen that could be copy / pasted in this thread. It explains how I got SuperCID, S-OFF, 2.16, TWRP, F2FS..

I include original instruction (credits to Setlaz!):

I unlocked bootloader, root, changed recovery a very long time ago so I won't talk about this as I don't remember anything from it.
But for people already using Custom ROM, here we go:

1. Get SuperCID
http://xdaforums.com/showthread.php?p=26516911#post26516911
Step 7, CWS__001 was HTC__203 for mine (depends on your operator) and at offset 0x214
You need to use an Hex editor for that. On Ubuntu I used Bless Hex Editor

2. Get S-OFF using Facepalm S-OFF
http://xdaforums.com/showthread.php?t=2155135
IMPORTANT: Need to revert to at least CM11 or you will get stuck with the following error when doing last step:
Code:
adb shell su -c "/data/local/tmp/soffbin3"
error: only position independent executables (PIE) are supported.

3. Get HBOOT 2.16
http://xdaforums.com/htc-one-s/general/guide-how-to-install-hboot-2-16-time-t2898605
Link is dead, see post from kdd998 on page 3:

That contains radio 1.20.
Of course, change commands from the tuto with the proper firmware name from kdd988.
If you encounter Error99 instead of Error92 stop the process, return to fastboot and do the following:


4. Get TWRP 3.0.M2
Download TWRP for Ville: http://android.cmphys.com/twrp-ville/
Code:
fastboot flash recovery recovery_name.img

5. Wipe everything and format partition to F2FS
Boot to TWRP and wipe/format
If you do not format, you may encounter "Unable to mount /cache" error

6. Push ROM
Use adb sideload or adb push

7. Push Gapp package

8. Install
ROM and Gapps

9. Enjoy
:good:


XDA:DevDB Information
[ROM][7.1.2][Unofficial][S4][2.16] LineageOS14.1 HTC One S Ville, ROM for the HTC One S

Contributors
pavel.bosco
ROM OS Version: 7.x Nougat

Version Information
Status: Snapshot

Created 2017-01-19
Last Updated 2018-08-20
 

The Setlaz

Senior Member
Jan 6, 2010
217
116
Thanks for that! :good: I was actually building as well last night!
But I tried the new audio HAL commit: lots of error related to qcom AudioPolicyManager.cpp Might be good to feedback that to Matt.

Anyway, do you know if network data works? Folks with M7 seem to have issues that may be caf-ril related.

Seems the common-proprietary files need to be fixed as well: widevine and libfmjni caused me some troubles too.
I had to add libfmjni.so in the common-proprietary-files.txt and replace all the widevine stuff by what was in the 13.0 branch.
How did you solve it on your end?

For the Camera, I saw a commit not to use Snap because it crashes when switching from front to back in video mode... If that's the only problem, I would say screw that. The front camera is so ****ty on ville, I wonder who actually uses it!
 
Last edited:
  • Like
Reactions: ardax and boriszms

pavel.bosco

Senior Member
Oct 18, 2014
168
147
Moscow
Thanks for that! :good: I was actually building as well last night!
But I tried the new audio HAL commit: lots of error related to qcom AudioPolicyManager.cpp Might be good to feedback that to Matt.

Anyway, do you know if network data works? Folks with M7 seem to have issues that may be caf-ril related.

Seems the common-proprietary files need to be fixed as well: widevine and libfmjni caused me some troubles too.
I had to add libfmjni.so in the common-proprietary-files.txt and replace all the widevine stuff by what was in the 13.0 branch.
How did you solve it on your end?

For the Camera, I saw a commit not to use Snap because it crashes when switching from front to back in video mode... If that's the only problem, I would say screw that. The front camera is so ****ty on ville, I wonder who actually uses it!

I used this patch from Matt
https://review.lineageos.org/156740

but then it fails in bootlop, failed to initialize touchscreen bottom keys
so I switched back to older toolchain, by Matt advice, and it works
Add these lines to ville's BoardConfig.mk:

KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/$(HOST_OS)-x86/arm/arm-eabi-4.8/bin
TARGET_KERNEL_CROSS_COMPILE_PREFIX := arm-eabi-

and also I added
+#Radio
+BOARD_HAVE_QCOM_FM := true

to boardconfig.mk of msm8960 common, or else fmradio.apk missed fmjni.so

Matt did a fix for camera, building it now, with some additional fix to enable works on latest toolchain
 
  • Like
Reactions: boriszms

The Setlaz

Senior Member
Jan 6, 2010
217
116
  • Like
Reactions: boriszms

pavel.bosco

Senior Member
Oct 18, 2014
168
147
Moscow
Damned, mine didn't build with that :rolleyes:



I sorted that one by adding the libfmjni.so to the common-proprietary-files.txt and run s4-common/extract-files.sh .

Do you use TheMuppets repo for DRM / widevine?

yes, I do, it doesn't build without them, all that widevine stuff was added by Matt to s4-common of TheMuppets

I tried browsing with wifi turned off, and it works, so mobile data transfer works, if this is that you asked for
 

The Setlaz

Senior Member
Jan 6, 2010
217
116
Pavel,

Would you know if GPS works as well?

I think it would be good to indicated which version of TWRP to use (probably 3.0.2?) - and link to TWRP as well as OpenGapps.

I might ping you later on if I don't manage to get it to build on my end. :good:
 

pavel.bosco

Senior Member
Oct 18, 2014
168
147
Moscow
Pavel,

Would you know if GPS works as well?

I think it would be good to indicated which version of TWRP to use (probably 3.0.2?) - and link to TWRP as well as OpenGapps.

I might ping you later on if I don't manage to get it to build on my end. :good:

GPS works, can confirm, camera is also fixed now, both front and back are working fine ;)
I'll post a new image with camera fixed in an hour, need to test a bit.

will add more tips to the post later on
I used TWRP 3.0.M5, same as for CM13, by Matt Mower
https://android.cmphys.com/twrp-ville/

upd:
uploaded new version
camera fixed, works
 
Last edited:

Fear of Oneself

Senior Member
Jan 6, 2012
121
8
Toronto
I plan on testing this tomorrow. Will post back with my findings

EDIT: Flashed it today, no major issues. However you can't enable root for applications via the dev settings? It only supports adb or 'none'. I would attach a screenshot but I can't from the xda app. Jan 19 build. (will likely be updated though)
 
Last edited:

Flippy498

Retired Forum Moderator
May 21, 2014
3,061
2,399
OnePlus Pad
OnePlus Watch 2
Will this work with hboot 2.15 or is 2.16 required?

Thanks!

Please re-read the Thread title. Thanks! ;)

@pavel.bosco: Can you maybe add a link to one of the guides* which explain how to install the latest 4.x firmware on your One S to the OP? Otherwise many users might only flash hboot 2.16 (which is only one file) and not the whole firmware. These users will probably face a lot of bugs and lags due to their phone's firmware not being completely updated and you'll therefore receive bug reports that have nothing to do with your rom.

* This one's probably the easiest one since an unofficial RUU gets used.
 
Last edited:

The Setlaz

Senior Member
Jan 6, 2010
217
116
I've managed to successfully build it as well last night :good: Install went smoothly, I haven't run into any issue so far. ROM is super-smooth and everything seems to work (except FM but Matt is on the case)

A few customization settings still missing - or haven't found them yet - such as Lockscreen customization or screen color correction but that will come later in the year.

Overall experience is very good. Not planning on going back to 6.0.1 at the moment. :good:
 

pavel.bosco

Senior Member
Oct 18, 2014
168
147
Moscow
I've managed to successfully build it as well last night :good: Install went smoothly, I haven't run into any issue so far. ROM is super-smooth and everything seems to work (except FM but Matt is on the case)

A few customization settings still missing - or haven't found them yet - such as Lockscreen customization or screen color correction but that will come later in the year.

Overall experience is very good. Not planning on going back to 6.0.1 at the moment. :good:

good news is that all changes are merged now, so I build again to test them
fm probably will works too
there are also some last minute changes in permissions, basing on yesterday test I did on the device, they are merged too
I personally misses themes support ,but it's not ville specific, it's still not merged from CM13
phone works, no reboots or something, all good.

as per guides @Flippy498, I will refer to CM 13.1 thread, there is no difference, and fullfill everything later on, as before today it was more or less experimental version and I epxected the people who didn't know how to do it, will not do it, now all is merged, it's easy to 'open it wider'
 
  • Like
Reactions: Flippy498

matu89

Senior Member
Feb 4, 2014
158
12
Wow , cant believe that the ville got android 7 .
How is the battery life ?

Sent from my HTC One S using Tapatalk
 

Flippy498

Retired Forum Moderator
May 21, 2014
3,061
2,399
OnePlus Pad
OnePlus Watch 2
Working hboot:
- 2.16 (only!), hboot 2.16 original and modded without Red Warning Text: here

This is exactly what I wanted to prevent with my last post. :p Flashing only one of these hboots won't completely update the firmware of the One S. The firmware consists of many more files than the hboot and it's not enough to only flash that sinlge file. ;) If the hboot is updated to 2.16 but the rest of the firmware is still on version 3.x users will face many lags and bugs while they're using this rom since firmware 3.x isn't compatible with it. It's a general problem here in the One S forum that people are only looking at the hboot version of the phone and not at the whole firmware. Some time ago, I mentioned these facts in the CM13 thread, as well. C.f.: The discussion that begins (more or less) with this post.

@The Setlaz & @matu89: I'd actually say that my battery lasts a bit longer since I changed from CM13 to Lineage. :p
 

pavel.bosco

Senior Member
Oct 18, 2014
168
147
Moscow
This is exactly what I wanted to prevent with my last post. :p Flashing only one of these hboots won't completely update the firmware of the One S. The firmware consists of many more files than the hboot and it's not enough to only flash that sinlge file. ;) If the hboot is updated to 2.16 but the rest of the firmware is still on version 3.x users will face many lags and bugs while they're using this rom since firmware 3.x isn't compatible with it. It's a general problem here in the One S forum that people are only looking at the hboot version of the phone and not at the whole firmware. Some time ago, I mentioned these facts in the CM13 thread, as well. C.f.: The discussion that begins (more or less) with this post.

@The Setlaz & @matu89: I'd actually say that my battery lasts a bit longer since I changed from CM13 to Lineage. :p
agree, I know that you mean. actually the part which is missed, I believe, is re-partitioning the device. I suppose it will not be even possible to run the hboot 2.16 w/o changes in partitions. Long time ago I migrated to 2.16 using full leaked RUU, which make a factory reset (it's inevitable, for re-partitioning), I believe there is a post about it somethere in the forum
Don't you think that switching from 2.15 to 2.16 deserves a separate full fledged topic? ;)
 

Flippy498

Retired Forum Moderator
May 21, 2014
3,061
2,399
OnePlus Pad
OnePlus Watch 2
agree, I know that you mean. actually the part which is missed, I believe, is re-partitioning the device. I suppose it will not be even possible to run the hboot 2.16 w/o changes in partitions. Long time ago I migrated to 2.16 using full leaked RUU, which make a factory reset (it's inevitable, for re-partitioning), I believe there is a post about it somethere in the forum
Don't you think that switching from 2.15 to 2.16 deserves a separate full fledged topic? ;)
It is possible to run hboot 2.16 while the rest of the firmware is still on version 3.x. That's actually the whole problem. With S-OFF you can simply change single files of the installed firmware without needing to update/downgrade the whole firmware.

I agree with you that updating to firmware 4.x shouldn't be the main topic of this thread. I guess simply deleting the link to that post which only contains the hboots is more than sufficent since you refer to the update guide in the CM13 thread further down in the opening post. Sorry, for all the off-topic. It was only meant to prevent you from having to deal with bug reports that have nothing to do with the rom itself. ;)
 
  • Like
Reactions: pavel.bosco

The Setlaz

Senior Member
Jan 6, 2010
217
116
Don't you think that switching from 2.15 to 2.16 deserves a separate full fledged topic? ;)

It does and it exists right there: https://xdaforums.com/htc-one-s/general/guide-how-to-install-hboot-2-16-time-t2898605
OP link to firmware zip file is dead but see post #22 for the ZIP file: https://xdaforums.com/showpost.php?p=63384790&postcount=22

The CM13 OP contains an install guide just under the homescreen that could be copy / pasted in this thread. It explains how I got SuperCID, S-OFF, 2.16, TWRP, F2FS..
 

Top Liked Posts

  • There are no posts matching your filters.
  • 37
    Credits to Matt Mower who helps me very much in getting the thing compiled and then works,
    and credits to the whole team who made this new version

    1485441423-d158376b14838637b696a4bdd1edd699.png
    Pros:
    • it starts
    • phone calls works
    • wifi works
    • calc works
    • camera works
    • mobile data works
    • gyro/compass works
    • gps works
    • fm radio works
    • su app is included
    Solved/Fixed:
    Cons:
    • built-in chromium browser fails to play youtube. but chrome and youtube apps from playmarket do it w/o problem
    • there are some outstanding permission denials exists, not critical at all. but let us know if something fails
    • proximity sensor turns on while on lockscreen.
    • themes support doesn't upgraded yet to 14.1 branch

    DOWNLOAD LINK

    lineage-14.1-20180820-UNOFFICIAL-ville.zip


    SCREENSHOTS
    1484953901-3ba0783e69e837fec2f7c377ecc6a340.png


    Working Devices:
    - Ville S4 (HTC One S with S4 only!)

    Working hboot:
    - 2.16 (only! see below)

    Working Recoveries:
    - TWRP 3.0.N1-0

    Working gapps:
    - ARM, 7.1, micro
    you can choose the size that better fits to you, I prefer micro.

    If you are on CM13, and wish to migrate ensure you use correct TWRP, then just wipe, install Lineage, gapps (all links are above), reboot and you are fine. Your apps will gone. Your sms will gone, but your pics/video/music, everything on /sdcard will stay.

    WHY & HOWTO get to HBOOT 2.16 from stock ROM, or any other HBOOT 2.15 ROMs:
    Why doesn't this work on HBOOT 2.15? Because it uses different partition sizes. Moving to HBOOT 2.16 will give more space on /sdcard, no jokes, really.
    If you are ready to go, then
    consider the topic from 1st link in quote to get guide how to install HBOOT 2.16, and 2nd link to get the RUU zip.
    and you can use more recent recovery, 3.0.M5 (link above), instead of 2.8 mentioned in the guide.
    It does and it exists right there: https://xdaforums.com/htc-one-s/general/guide-how-to-install-hboot-2-16-time-t2898605
    OP link to firmware zip file is dead but see post #22 for the ZIP file: https://xdaforums.com/showpost.php?p=63384790&postcount=22
    The CM13 OP contains an install guide just under the homescreen that could be copy / pasted in this thread. It explains how I got SuperCID, S-OFF, 2.16, TWRP, F2FS..

    I include original instruction (credits to Setlaz!):

    I unlocked bootloader, root, changed recovery a very long time ago so I won't talk about this as I don't remember anything from it.
    But for people already using Custom ROM, here we go:

    1. Get SuperCID
    http://xdaforums.com/showthread.php?p=26516911#post26516911
    Step 7, CWS__001 was HTC__203 for mine (depends on your operator) and at offset 0x214
    You need to use an Hex editor for that. On Ubuntu I used Bless Hex Editor

    2. Get S-OFF using Facepalm S-OFF
    http://xdaforums.com/showthread.php?t=2155135
    IMPORTANT: Need to revert to at least CM11 or you will get stuck with the following error when doing last step:
    Code:
    adb shell su -c "/data/local/tmp/soffbin3"
    error: only position independent executables (PIE) are supported.

    3. Get HBOOT 2.16
    http://xdaforums.com/htc-one-s/general/guide-how-to-install-hboot-2-16-time-t2898605
    Link is dead, see post from kdd998 on page 3:

    That contains radio 1.20.
    Of course, change commands from the tuto with the proper firmware name from kdd988.
    If you encounter Error99 instead of Error92 stop the process, return to fastboot and do the following:


    4. Get TWRP 3.0.M2
    Download TWRP for Ville: http://android.cmphys.com/twrp-ville/
    Code:
    fastboot flash recovery recovery_name.img

    5. Wipe everything and format partition to F2FS
    Boot to TWRP and wipe/format
    If you do not format, you may encounter "Unable to mount /cache" error

    6. Push ROM
    Use adb sideload or adb push

    7. Push Gapp package

    8. Install
    ROM and Gapps

    9. Enjoy
    :good:


    XDA:DevDB Information
    [ROM][7.1.2][Unofficial][S4][2.16] LineageOS14.1 HTC One S Ville, ROM for the HTC One S

    Contributors
    pavel.bosco
    ROM OS Version: 7.x Nougat

    Version Information
    Status: Snapshot

    Created 2017-01-19
    Last Updated 2018-08-20
    10
    #uploaded new version
    lineage-14.1-20170212-UNOFFICIAL-ville.zip
    Changelog for ville
    Changelog for msm8960
    Changelog for s4-common
    Changelog for frameworks_base

    not too much changes at ville specific level.
    I hope next version will include changes from next AOSP release android-7.1.1_r21
    probably much more fixes/enhancements, currently not merged yet https://review.lineageos.org/#/c/160504/

    bug resolved: then you open battery stats several times from drop down quick tiles panel, it wouldn't crash any more.

    I updated the recovery info in OP with latest version information, prepared/built by MDMower.
    9
    Hi guys,

    New build with January 5 security patch. Download available on AFH
    #Tested
    7
    Hi guys,

    New build with October 5 security patch. Download available on AFH
    #Tested
    6
    Hi guys,

    Here's the all fresh Android 7.1.2 for Ville: lineage-14.1-20170414-UNOFFICIAL-ville.zip
    #Tested