yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] LordNerevar:
In order to make it work, I modified the frameworks_base storage_list.xml overlay file in the device tree. This tells the base what to use for primary storage. It's all set at compile time and I haven't come across a way to change it at run time. You may be able to hack around it with symbolic linking but I could see that being tricky with the multiple directories in /data/media. If you decide to roll your own ROM though, that file is what you'll need to revert along with fstab and possibly others in the device tree I'm forgetting. All of that is committed in my github.
[HTC Sensation] hinxnz:
You could use an init.d script and bind them, for example:

mount -o bind /storage/sdcard1 /mnt/shell/emulated/0
mount -o bind /storage/sdcard1 /data/media/0
mount -o bind /storage/sdcard1/Android/obb /data/media/obb

Something like this:

#!/system/bin/sh
(while [ 1 ]; do
BOOT=`getprop sys.boot_completed`
if [ $BOOT = 1 ]; then
mount -o bind /storage/sdcard1 /mnt/shell/emulated/0
mount -o bind /storage/sdcard1 /data/media/0
mount -o bind /storage/sdcard1/Android/obb /data/media/obb
exit; fi
done &)
[HTC Sensation] LordNerevar:
I figured you might know a trick or two. :) What do you think about including that in the ROM with an early exit test for /data >= 8GB?
[HTC Sensation] hinxnz:
Yeah I got a couple up my sleeve :D and yeah sounds good, the folders are created on sdcard1 when needed, unless you copy without overwriting them from internal first. In file explorers and on PC (MTP), both sdcard (internal storage) and sdcard1 will show only sdcard1.

I've mounted userdata too and mounted it to sdcard as well to access on PC, using an init.d script:

#!/system/bin/sh
(while [ 1 ]; do
BOOT=`getprop sys.boot_completed`
if [ $BOOT = 1 ]; then
mount -o remount,rw /
mkdir /storage/userdata
mount -o rw,discard,nosuid,nodev,noatime,nodiratime,inline_xattr -t f2fs /dev/block/platform/msm_sdcc.1/by-name/userdata /storage/userdata || mount -o noatime,nosuid,nodev,noauto_da_alloc,barrier=0 -t ext4 /dev/block/platform/msm_sdcc.1/by-name/userdata /storage/userdata
mkdir /mnt/shell/emulated/0/Userdata
mount -o bind /storage/userdata /mnt/shell/emulated/0/Userdata
mkdir /data/media/0/Userdata
mount -o bind /storage/userdata /data/media/0/Userdata
chmod 0777 /storage/userdata
mount -o remount,ro /
exit; fi
done &)

You can mount it on sdcard1 instead too if using sdcard1 as primary storage for example:

mkdir /storage/sdcard1/Userdata
mount -o bind /storage/userdata /storage/sdcard1/Userdata
[HTC Sensation] saldymhmd:
Anyone can help me? I'm planned to move to another rom. Already backup everything and formatted everything. But now my /data partition seems broken, it's only available 128MB. How to get back the /data partition as usual?
[HTC Sensation] LordNerevar:
What did you use to repartition/format and which recovery sees it as 128MB? 128MB sounds like possibly a swap partition but none of the recoveries I've seen would mistake a swap partition for /data.

Edit: Remember to revert /cache and /data to ext4 if moving to a ROM that doesn't support f2fs.
[HTC Sensation] LordNerevar:
Sounds like one of those app killers is killing a system process that is needed to poll/read the battery for status. You may want to uninstall those and see if the problem goes away after a reboot. If not, their damage is probably permanent and it will take a clean install to recover. While not as easy to setup, you may want to look into the permissions that can be modified on installed apps (Settings->Apps->(troublesome app)->Scroll down to Permissions (Modify button)). Hope that helps.
[HTC Sensation] andy hall:
Thanks for the idea, I acctually found that the GPS was keeping the phone awake for the whole time. will post some screenshots a bit later.
[HTC Sensation] Kameo:
Just flashed this to my Sensation.

Been struggling for 2 days with this issue : no signal/sim card detected... (while my sim is working in my other phones !).

For the record and anyone who faces this, just enable the sim card unlock with pin code and it will work (seems a weird bug with CM/AOSP).

Go to Settings > Security > UNLOCK SIM > Configure sim unlock > and check "Ask for pin code to use the phone".
[HTC Sensation] LordNerevar:
I've been able to build TWRP with /data/media support. A big thanks to [MENTION=4329165]ivanich[/MENTION]. His cm-12.1 repos were used to build this recovery. I haven't tested everything in this recovery, but the basics work well. Please post if you run into issues.

Edit: This recovery will allow you to do multiple things with /data/media that a normal recovery won't. It will allow you to access internal storage from your PC, wipe /data w/o wiping /data/media, backup /data w/o backing up /data/media and restore said /data.

Note: This recovery is only useful for /data/media ROMs (iow, ROMs with /data on SD-EXT). Please do not flash for "normal" ROMs.

recovery: here

md5sum:67f81b39cd51abc131e8b6266a89d4c3
[HTC Sensation] andy hall:
I could not find an individual APP to cause the issue.

The mods I made were to REMOVE DSP, music, exchange, and email apks, ADD adaway, cLock and viper4android. into the /system/apps folder. cLock as I prefer the widget.

at this point I had not bee fiddling with blocking things and GPS was running rampant, I have a feeling Clock was the issue, will try again later.

Just as a side question, is ther a reason not to use Mounts2SD, after installing I experienced GooglePlay Services FC's on the older version of this rom.
[HTC Sensation] LordNerevar:
For GPS on that version of the ROM, you might try the AGPS patch from here. I haven't used Mounts2SD or similar apps. Maybe somebody who's tried those with this ROM can help. Which GApps did you use?
[HTC Sensation] Kameo:
Tried to format a 16G sdcard to use the new storage methods but i keed on getting this error: "Unable to mount data".

So i can't go on...

Any idea how to fix this ?
[HTC Sensation] LordNerevar:
Are you seeing that error with the recovery I provided? I haven't tried it, but I could see doing a conversion with that recovery being problematic as it's looking for /data to already exist on the SD-EXT partition. Try doing the conversion as outlined here. Once converted then you can install and use the new recovery.
[HTC Sensation] Kameo:
No, it was with ivanich's one (r12). When i flashed your modified one, the phone vibrates then keeps on rebooting while trying to access recovery, so it's a no go for me.

I really wonder why it doesn't want to partitions this sdcard...
[HTC Sensation] andy hall:
have you tried doing the partitioning using 4EXT

also Ivanich TWRP is on R3 at the moment try that perhaps
[HTC Sensation] Kameo:
My bad, i was blind.

I was using v2.8.4.0-r12 instead of the latest v2.8.7.0-r2.

I ended up reflashing 4ext and it worked. I gave v2.8.7.0-r3 a try and it worked.

Thanks, gotta reinstall everything back.
[HTC Sensation] andy hall:
Thanks for the tip, I shall take a look at this when I have more time.

On the GAPPS front I honestly cannot remember.

I should have a more stable week coming up so shall report back later.

I have seen there are questions on the Mounts2SD thread about KK comparability shall wait and see.
[HTC Sensation] Splder:
so i flashed this Rom on my old sensation and noticed it has the google play services force close bug

so i would like to share some information

i first had this problem on my nexus 5 and when searching for a solution i found this post: http://xdaforums.com/showpost.php?p=60992525&postcount=596

and this points to the android_libcore

i flashed

Slim-pyramid-4.4.4.build.9.0-UNOFFICIAL-20150111-1119.zip

LordNerevar_gapps-mini-4.4.4-007.zip

which has the broken android_libcore

so i downloaded the Slim-pyramid-4.4.4.build.9.0-UNOFFICIAL-20150819-2107.zip WARNING: This beta release uses /data/media as the primary storage location

and took the system/lib/libjavacore.so file and with root explorer added it to my system/lib folder and this fixes the problem

iv attached the libjavacore.so simply unzip it and place it in you system/lib folder make sure you make a backup of your old libjavacore.so i renamed mine to libjavacore.so.bak

Warning by doing this there could be other hidden problems (E.G media store) but i have not had time to test it but it would be nice if we could get a new build that does not use /data/media with the up to date android_libcore so we can be 100% sure everything is working correctly
[HTC Sensation] LordNerevar:
Thanks for that information. I've been thinking of doing a "legacy" build that will be w/o the /data/media change but will have all the other updates of the latest build. This pretty much seals the deal. I'll work on that as i get time.
[HTC Sensation] cipher101:
Hey guys,

Thanks for the great Rom. I was on Vipers for last few years now so I had to flash new 4ext then this Rom.

Works nice and fast I love it. Volume is lower than I used to have so I wonder is there anything I can do to increase it somehow. ( I did enable bass boost on dsp but it' didn't do any changes - sounds same with or without).

Thanks again for keeping this phone alive.
[HTC Sensation] LordNerevar:
I don't know if it works with the latest released version of the ROM from January, but I'm planning to release an update soon and will confirm that ViPER4Android is working with it.
[HTC Sensation] LordNerevar:
Kind of odd timing, but it's been exactly 9mos since the last "stable" version of this ROM was released. I'm not sure what I've just spawn. :)

This version is compatible with the January 11th release and all other ROMS, so no special conversion of partitions is necessary. You can still configure cache/data as F2FS though if you so desire. For that, you'll need to use ivanich's version of TWRP (find the links to that and other installation instructions in the OP). Without further ado, please check out the latest and greatest version of this ROM in the 2nd post.

Cheers!
[HTC Sensation] TheCheshireMan:
Sweet! This should make my phone at least usable for the next few months :) (cm12 is still a no-go, unfortunately) thank you so much! I'll try it right away and report how it runs.

Update: works beautifully for me, everything's fine so far. Haven't tested any sd-ext mod yet though, which I might have to do soon.

Seems like the update fixed most of the stagefright vulnerabilities, too. "Stagefright detector" still flags it as vulnerable to a single one, CVE-2015-6602, which I guess is one of the newest ones discovered so I'm not really worrying about it.

No bugs found, no force closes or random reboots, stable as ever.
[HTC Sensation] LordNerevar:
GApps updated!

This update gets the phone back to working order. I didn't realize how dependent _everything_ is on play services! Bluetooth/GPS/etc are working much better with this update. Highly recommended.

Cheers!

LordNerevar_gapps-mini-4.4.4-008.zip

md5sum: 34edec1c36466c1bdac2cdf46d1b1472

changes: updated play store and play services
[HTC Sensation] gc2712:
This might be a dumb question but I can't find the setting to turn off software navigation keys so I can just use the hardware keys below that. :silly:

Thanks for the gapps updates too.
[HTC Sensation] LordNerevar:
Settings->Navigation->Navigation bar

You're welcome!
[HTC Sensation] gc2712:
Strange.... it was already selected as disabled but still visible. Had to enable and disable it a couple of times to get it to stick - which it now does. ☺

thanks.
[HTC Sensation] cervantes:
how can i install?

just flash?
[HTC Sensation] gc2712:
When making a phone call I often find the ringing sound is very distorted and subsequent voice call is garbled and unintelligible. In Google Hangouts Voip sometimes have various issues. - Microphone not working or sound not working. Either restarting app, or with phone calls, rebooting the phone will solve the problem temporarily. Is there a solution to these audio problems with this rom and are they ROM dependent and other roms don't have the audio problems?
[HTC Sensation] LordNerevar:
I haven't noticed that problem in quite awhile myself. Which version of GApps are you using? The "quick" fix for what I think you're describing was to enable/disable the speaker phone (usually only had to do that once - not for every call).
[HTC Sensation] gc2712:
I installed the latest mini gapps you released recently. I'll try the enable/disable speakerphone hack and see how it goes too, but if I recall correctly I did try that at the time.
[HTC Sensation] LordNerevar:
Do you have OK google enabled? That's been known to cause issues as well.

Google Settings -> Search & Now -> Voice -> "Ok Google" detection.
[HTC Sensation] gc2712:
Thanks for that suggestion, I'll give that a try tomorrow (I live in a mobile dead spot) and disable "OK Google". I never use it anyway.

On another previous question about the navigation bar, even though I have it disabled in settings as advised previously, it keeps coming back after reboot, but also when switching between screens. Very odd, but is there a solution?
[HTC Sensation] LordNerevar:
Possibly clearing data on Settings (Settings->Apps->All->Settings)? Obviously that will clear most of your ROM settings, so you might just want to wait to do a clean install when the next release comes out (should be soon).
[HTC Sensation] gc2712:
That will be easy advice to accept! :o Don't think I want to clear most ROM settings with another one in the pipeline. Very glad you are still working on ROM for this phone. I was given a hand-me-down Samsung Galaxy S4 recently which has crashed constantly and made me glad I still have my trusty HTC Sensation to keep me connected to the world. So thanks again.
[HTC Sensation] LordNerevar:
A new release with huge changes to bluetooth support is now available (see second post). Hopefully they'll be for the better for everyone. I know they are for me but I only have a couple bluetooth devices. Plenty of other changes listed in the second post including a minor version bump from the Slim team!

There is also an updated gapps package available (see first post for gapps link).

If anyone has tried bluetooth devices in the past and had problems, I'd like to hear if this release is any better.

Cheers!
[HTC Sensation] gc2712:
Can this update and the gapps be dirty flashed with just wipe of cache and dalvik?
[HTC Sensation] LordNerevar:
Yes.
[HTC Sensation] m3mmo:
Today I wanted to try this ROM because I always liked Slimroms and few months ago I was using official version and today I installed twrp and this ROM but every time my phone goes to sleep and I press power button to wake it my phone reboots!??It happens every time but if I set volume button to wake the phone it does not reboot.Any solution to this problem?
[HTC Sensation] LordNerevar:
I have not seen or heard of that one before. Very odd issue. Have you tried making a nandroid backup and then seeing if you can recreate this with a clean install of the ROM and GApps only?
[HTC Sensation] m3mmo:
Well that is the thing.I could not install anything.It was a clean install.First I installed the latest twrp from your link and then I wiped everything and then installed rom and gaps and I booted to desktop.And as soon as screen went black I pressed power buttton to wake it up and phone reboots :(
[HTC Sensation] LordNerevar:
Which TWRP version did you use? I see that ivanich is now doing cm13 TWRP builds. I haven't tried those although I wouldn't expect this issue. If anything they just wouldn't work at all. Anyways, I've been using TWRP-2.8.7.0-pyramid-f2fs-r2.img if you want to try that.

Is it possible that when you pressed the power button the phone came out of deep sleep and when you pressed the volume rocker it wasn't in deep sleep? In other words, was it off for awhile before pressing the power button and just a second or so when hitting the volume button? Coming out of deep sleep could explain the problem and may mean you have a device that needs to set the min cpu frequency to 384MHz.
[HTC Sensation] m3mmo:
As I already wrote, I folowed the link from second post to twrp download and I downloaded the last one on that list(2.8.7.0) and I think my phone was in deep sleep.Screen was off for a while and then I pressed power button.
[HTC Sensation] mcfouch:
All last builds listed on Ivanich's gdrive tagged "cm13" are really specific for his cm13 ROM.

Try with the release r9.

Hope that will help you.
[HTC Sensation] m3mmo:
I tried with that version of twrp and I raised minimum cpufreq. to 384MHz and still the same problem.
[HTC Sensation] tom0769:
2 ideas, that might be a problem:

1st

I had a similar problem too. When waking up the device i often got reboots.

Changed the battery and the reboots were gone.

2nd

Try another covernor (ondemand) and/or lower cpu/gpu frequencies. Use the kernel script in /sytem/etc/init.d to change it.

I've got 2 sennys and found out, that they do not behave the same.
[HTC Sensation] gc2712:
I have downloaded the Ivanovich TWRP r9 recommended for the upgrade to latest version of this ROM, but am not sure how to install it. Been Googling to no avail. Can someone tell me how to do this? I'm currently on 4Ext.

I think my real question is do I have to specify a partition to flash when flashing recovery image from hboot/fastboot? I know on other devices I have had to specify the partition exactly and I don't recall any more how I flashed 4Ext on my Sensation (The little grey cells failing I guess :( )
[HTC Sensation] LeopardsX:
Hi is there any chance of an upgrade to Android 5 ot 6 i forget what the latest is now, for this rom ?
[HTC Sensation] tom0769:
Reboot your phone into bootloader and connect it to your PC.

In a console window type

fastboot flash recovery recovery.img
fastboot reboot-bootloader

where "recovery.img" should be replaced by the name of your recovery.

This presumes that you have the drivers installed and fastboot is working. To check this type

fastboot devices

Your phone should be listed then
[HTC Sensation] LordNerevar:
I'm not sure what the future holds for Slim. Obviously the team is not dead, so we'll have to wait and see. :fingers-crossed:
[HTC Sensation] gc2712:
Glad to have it confirmed. I use linux for all flashing so I don't have the Windows driver hassles. Linux just works for this. Confident to go ahead now. Many thanks.
[HTC Sensation] Sensational_:
Hi, same reboot problem with my senny. I'm struggling to edit and save the init.d 89kernel file. Please could someone advise how best to do this?

Many thanks.
[HTC Sensation] LordNerevar:
If you don't mind, I'd like for you to try out a test build and see if it's any better. It has some changes to the in-kernel thermal code which was implemented a few months ago. I've just recently learned that code was linked to reboots in ivanich's CM ROM. Unfortunately, it only affects certain devices and mine is not one of them. Let me know and I'll upload a test build. Thanks!
[HTC Sensation] Sensational_:
Very happy to test for you.

Thanks, James
[HTC Sensation] kyler084:
Hi there @ LordNerevar , loving the rom , only stable rom i have found for my sensation :), many thanks. Please can you tell me if the latest build supports /data/media on sd-ext ? or is that only the much older test build that you released ? thanks

edit- if so is there any way of making the latest version use /data/media on the sd-ext as primary storage ?
[HTC Sensation] LordNerevar:
Glad to hear it's working for you! I actually planned on releasing another /data/media version, but I'm running into problems with TWRP. As soon as I get those ironed out, I'll upload another test build for everyone to try.
[HTC Sensation] Nasling6:
I have used your test build since sunday and the shutdowns are gone.

I also used the Turbo Data Mod by delta-roh and it works as far as I can tell.

The only problem is, that sometimes the phone switches off instead of restarting.

Thanks for your work, the rom is a lot of fun. :)
[HTC Sensation] LordNerevar:
I have noticed that as well. Not a huge issue but kind of annoying when you want to reboot to recovery. Thanks for confirming the random reboots are gone. Great first post! :)
[HTC Sensation] Sensational_:
Any progress with the test version Lord?
[HTC Sensation] LordNerevar:
Here's another /data/media testing version. I've changed the partition layout, so it requires my -r2 recovery (system is moved to the now unused internal data partition and cache is moved to the system partition). This recovery should also make it much easier to create a large data (sd-ext) partition. Be sure to remove any TWRP theme you have installed as it will overwrite my default theme which allows for an F2FS partition as well as increasing the size of the steps while partitioning the sdcard so that you don't have to hit + a million times to get a 30GB sd-ext partition. :)

The only known bug is that sometimes power off and reboot get reversed (meaning a power off can sometimes reboot and a reboot can sometimes power off). I'm pretty sure that is a kernel issue, but I haven't had time to track it down.

Let me know if you find any other bugs.

TWRP-2.8.7.0-pyramid-f2fs-datamedia-r2.img

Slim-pyramid-4.4.4.build.9.1-UNOFFICIAL-20160211-0903.zip

Cheers!
[HTC Sensation] andy hall:
Which partitions support f2fs? Is it everything except system?
[HTC Sensation] LordNerevar:
All 3 partitions (system/data/cache) can be f2fs or ext4.
[HTC Sensation] cheater42:
Xposed Framework doesn't work on the latest build (9.1) for me :( On the build which was released before (still SlimKat 9.0), it worked fine!

The German lines on the screen shot translate as "Xposed Framework is not compatible with your Android SDK version 19 or your processor architecture (armeabi-7a) (yet).

Gesendet von meinem Sensation mit Tapatalk
[HTC Sensation] kyler084:
having real issues, flashed your new recovery for data media, cannot copy the rom to the phone to install, when i try copy files to sdcard in recovery phone freezes and reboots half way through, any help would be appreciated, getting close to putting this phone in the trash .
[HTC Sensation] LordNerevar:
http://xdaforums.com/showpost.php?p=64327688&postcount=41

Assuming you're copying to "Internal storage", what SD-EXT size did you use? I recommend an SD-EXT size of 12GB or more and a SWAP size of 256MB. Also, you might try rebooting to recovery immediately after re-partitioning.

Edit: Make sure there are no issues with the cache partition as well as that can do bad things with recovery. If none of that helps, you can always examine the recovery log by doing "adb pull /tmp/recovery.log" from your PC.
[HTC Sensation] Sensational_:
Hi, I'm struggling to get the test rom installed. I managed to flash your updated twrp but then got mount errors when trying to install the test rom from the sdcard. Please could you take me through it step by step. Many thanks.
[HTC Sensation] LordNerevar:
Here's how I'd do it (with reboots for first time possible problems):

fastboot flash recovery <recovery.img>

reboot to recovery

Wipe->Advanced Wipe

Select Cache

Swipe to Wipe

Back to main screen

Reboot->Recovery

Advanced->Partition SD Card

Increment EXT Size to your desired size

Increment Swap Size to your desired size

Choose F2FS for the file system

Read the disclaimer about losing all of the data on your sdcard

Re-read disclaimer :)

Swipe to Partition

Back to main screen

Reboot->Recovery

Install as usual
[HTC Sensation] vtas:
hi, many thanks for this great rom! everything works like a charm!

default dpi of 200 is not suitable for my eyes and i changed it to 240 (build.prop). now all looks much more readable except one specific app that i have to use for my job. it is still looks like 200 dpi. even AppSettings Xposed module has no effect on it. while in ivanich's cm1X roms with default dpi of 240 this app looks like it should.

how can i manage this?
[HTC Sensation] Ulumia:
Vibration is very weak or turned off at all

Otherwise the best 4.4.4 ROM
[HTC Sensation] Ulumia:
12 GB /sd-ext :oops:
[HTC Sensation] ivanich:
This is probably an simpler way https://github.com/ivanich/android_...mmit/19b2f27d79c846ad42b6b9098b0a029899e20917
[HTC Sensation] wieman01:
Thank you. I have been a Linux user for many years, so this is really great help. At least I have now learned how to create init scripts in Android and where to make the changes relating to Wake.