yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] hinxnz:
The file is a text document and should be rw-,r--,r--

/system/etc/hosts

To set the permission with terminal

su
chmod 644 /system/etc/hosts

Once host file is updated it should be roughly 1mb using default urls in adaway, as you probably know a reboot is sometimes needed if ads have been cached. If ads are showing in browser afterwards, clear your browser's cache.

Edit: I have also came across some cheeky apps that revert your hosts file back to allow ads but I can't recall what apps they were...
[HTC Sensation] andy hall:
Just out of intrrest, did you reboot after the hosts file update?
[HTC Sensation] htw1:
OK. after full wipe CM11 and fresh install, the power menu putton seems works ! but ..... :( now the proximity sensor is not working .. how can I chceck it - maby there is enable disable funcioin in ROM ( I have clean it) ?

I have bad luck becouse the rom is great - super fast ..
[HTC Sensation] Jeanz Sensation:
Yea I have done all this. Applying update, rebooting, setting permissions etc.

I opened this website ads-blocker.com where you can test if ads are being blocked. The website asks you to see if ads are appearing on their website. For me, I can see ads with adaway disabled but with adaway enabled, I can see "The page cannot be displayed" warning for every ad.

Edit: I have also wiped cache/dalvik cache through recovery.
[HTC Sensation] hinxnz:
You can get an app that can test your sensors and also calibrate the proximity sensor which could fix it, not sure of the name of the app and haven't experienced this myself but have read about others that have done so.

Some websites block you for using ad blockers, I can't test this site with stock browser as I don't have it installed, I only have firefox and I use noscript which blocks java scripts so ads aren't showing for me on that site and I have no warning message. The site could be luring you into downloading their ad block software, sorry if a trusted site. Check a site like ebay or even this site xda for ads showing.

---------- Post added at 01:07 AM ---------- Previous post was at 12:16 AM ----------

CPU Input Boost script

I was asked how to enable cpu input boost, well it's already kinda enabled but not really because of the time set for it.

So I'm sharing the script I made for whoever wants to use it, input boost will be set to 1 second, frequency will remain default @ 1134MHz.

CPU input boost ramps the CPU to 1134MHz for 1 second when you touch the screen, making things like scrolling more fluent.

Just call the script in terminal emulator with su permission, for example place boost.sh on root of sdcard and enter:

su
/sdcard/boost.sh

Download - https://mega.co.nz/#!uNdFSB5I!YvMHRh9HIDNWSzpwUsVoNma3gFiNrAG8fG3GuqVTBrk

How to remove script:

su
rm /system/etc/init.d/90boost
reboot

Edit: Updated script for those getting errors due to system mounted as read only.
[HTC Sensation] DomagojX:
I accidently installed wrong gapps package (micro) insted of (pico), so is there any way to remove micro gapps and install pico on the current rom or do I need to do full wipe?
[HTC Sensation] Jeanz Sensation:
I have tested quite a few websites now and it seems like most of the ads are being blocked. Although not completely but there appears to be a blank space where the ad should have been. Previously, even this blank space was not visible.

However, I have installed APK extractor app which still allows ads when I close it. Previously, it didn't.
[HTC Sensation] hinxnz:
Use a root file explorer, navigate to /system/addon.d/ and delete the gapps script, I think its called 70-gapps.sh

Then flash ROM without wiping and then flash pico gapps.

Yeah not sure what's going on there, try wiping caches for the apps that do it. I've ran out of suggestions. Using a proxy could cause this possibly.
[HTC Sensation] mcfouch:
[MENTION=4521238]DomagojX[/MENTION] Only format the system partition in recovery, flash again the ROM and gapps package you need, eventually with your personalized .gapps-config to strictly fit your need.

Clean cache and dalvick.
[HTC Sensation] htw1:
Something is wrong. I have phone call and the quality was very bad, but I do not cancel my conversation, and suddenly I had I crash and system reboot (first time on this ROM). Then proximity sensor began to work.

I have installed CM11 14.02 - full wipe, I'm S-OFF, I use 4EXT Recovery (test 8), Gapps PICO MODULAR from 15.02.

Generally I'm using of thous apps what can you see on screenshots.

I wolud like to help more, so I can do a log - aLogcat app will be good for this?
[HTC Sensation] bastei:
Note that with the help of /etc/hosts you can only block whole domains of known ad-servers. If the server the ad is loaded from is not contained in the standard list of AdAway (or in one you added) the ads won't be blocked. Also, if the server is connected via direct IP, AdAway can't do anything for you.

Try the following:

You can add some more hosts sources.

You can log DNS requests with the help of AdAway.

Use a firewall like AfWall+ additionally. It is based on iptables and allows blocking internet access per app.
[HTC Sensation] ashu01:
I have ext4 partition on my sd.

Just wanna know is there any diff bw f2fs and ext4 ... Any performance diff..??

And which kernel you are using ??
[HTC Sensation] tom0769:
This would be a quite a good starting point to leran about differences.
[HTC Sensation] ashu01:
Can you give me some link how to format in f2fs for our sensation..

And f2fs is formatted on internal partitions but not on sd..??
[HTC Sensation] zybach:
New build is running smooth compared to previous build but still I get FC's for games after 2-3mins particularly Kritika.Reverting back to Kitkat until this is fixed.Thanks for continuously working on this ROM. :)
[HTC Sensation] Saakshath:
Games work fine in f2fs partition.. FC in ext4 partition..:)
[HTC Sensation] hinxnz:
[MENTION=4775292]htw1[/MENTION] logs may help to find out what's going on and there are many threads on xda how to collect them, you can also use an app instead if easier. You are the only one that I know of to report proxmity sensor issue on this ROM so it could be a faulty sensor and like I said others have fixed this after calibrating it. I think [MENTION=4184142]Jonny[/MENTION] was one who did this for his sisters phone if remembering correctly.

[MENTION=4978417]Jeanz Sensation[/MENTION] I also recommend AFW+ for blocking internet access for apps but no good if the app needs a internet connection to work. If you want you can add this collection to your blacklist, just extract the hosts file from the zip to your sdcard which you download from the thread I linked, then open adaway, open menu, choose your lists and in the blacklist section, open menu and choose import, select the hosts file you extracted to your sdcard and wait to all domains are added, this will take roughly 2.5 hours as it is huge! After adding them, scroll down your blacklist and either uncheck or longpress and delete hosts-file.net and then you need to apply adaway again.

Probably a quicker way to add them is to split the file using terminal in Linux with code below after moving hosts file to your home folder or you could probably do this with a program in Windows too. But this will split the file into about 10 files named xaa, xab, xac and so on, then you can add them one by one after moving them to sdcard. Splitting the file would probably be alot quicker because I think adaway can't handle large files very well because maybe of how it organizers the domains, the file has over 100000 entries and limiting it to 10000 per import would be less organizing than in just the one go. I've also attached the split files if you want to try this way.

Edit: Just realized you could probably just add http://adblock.mahakala.is to your Host sources instead and whitelist hosts-file.net which would be even easier and quicker. I totally missed that link, lol.

split -l 10000 hosts

Also if anyone used my CPU Input Boost script and got errors, it will be because your system is mounted as read only.

I'll update my post soon with new script to include this but for now you can enter this in terminal emulator before executing script.

Edit: Post updated with new script.

mount -o remount,rw /system
[HTC Sensation] little_lerroyy:
I would highly recommend anyone who isnt using F2FS make the switch if they want their phones to feel young again. The actual performance difference is when loading of apps and certain elements within those apps. In general its a fatastic performance boost for the old phone with little ram which constantly has to close and re-open apps a lot of the time. I would have to honestly say after the most recent CM12 build, few kernel and governor tweaks, F2FS filesystem and running at 1.8GHz, I've never had any ROM that has worked this fast, even over CM11.

Im currently using Ivanichs kernel repo, slightly modified for overclocking. I can only seem to get it to 1.836Ghz, I cant seem to get 1.89 and 1.944 GHz to engage like it does in Sultanxda 3.016 kernel. Last night Ive tried getting a 300MHz and 320MHz GPU overclock (266Mhz default) to work will a little trouble, but i think i will get there.
[HTC Sensation] zybach:
Hmmm I'll try this over the weekends,have to S-off my phone first to be able to use TWRP.wish there's a way to do it in 4ext :(
[HTC Sensation] francesco totti:
Hi. I change system partition's file system to f2fs successfully but when i install the rom it changes to ext4 again! is it Ok?
[HTC Sensation] hinxnz:
How did you know it changed back to ext4? Not the case here, after flashing ROM, data is still f2fs.

You can see if data is mounted as f2fs by entering code below in terminal emulator

cat /proc/mounts | grep /data
[HTC Sensation] francesco totti:
Data remains f2fs but system reverts back to ext4!
[HTC Sensation] hinxnz:
That is correct f2fs is only enabled for data and cache in kernel.
[HTC Sensation] Saakshath:
f2fs in cm11?

Does latest cm11 rom supports f2fs partition?
[HTC Sensation] hinxnz:
Check fstab.pyramid in root directory for two entries for data, one should be ext4 and the other f2fs if only one (ext4) then no it doesn't.

su
cat /fstab.pyramid | grep /data
[HTC Sensation] ashu01:
I am not much aware of f2fs..

Could you please suggest me how to format my phone in f2fs and I am using 4ext recovery..
[HTC Sensation] little_lerroyy:
You cant do it with 4EXT recovery, you need to flash TWRP 2.8.X.X recovery in fastboot to do this. You can get the recovery from Ivanichs google drive. https://drive.google.com/folderview?id=0ByQSZtXbeaVpRllRQ3BnSEcxVGs&usp=sharing#list

You need to change the filesystem under "advanced wipe" for only /data and /cache, nothing else. Flash Ivanichs latest CM12 build and you will have an awesome phone.
[HTC Sensation] Burth67:
TWRP Recovery and Chargeing

@ Ivanich: wil the phone charge when off with this TWRPrecovery ?, if not could you implement it, so it charges when off, just like 4EXTRecovery.:fingers-crossed::fingers-crossed:
[HTC Sensation] zybach:
After doing this would this change recovery to TWRP?and is this possible for S-on devices?
[HTC Sensation] tom0769:
I think it's time to open a separate thread for all f2fs related points with clear step by step description of how to do this.

Maybe you made some good experiences with f2fs and pushing your phone to it's edge with overclocking.

But it should be mentioned that there's a risk of corrupting partitions and everyone who's willing to test f2fs should have some basic knowledge on what he is actually doing.

Also overclocking can work on some devices, while others might have (serious) problems.

Squeezing the last few Mhz out of CPU/GPU will definately not leed to much performance boost and there's a risk of breaking your phone.

F2FS is a quite new file system but not yet fully sophisticated.

If you google for it, there are some promising articles and benchmarks, but also some other comments.
[HTC Sensation] little_lerroyy:
Well said.
[HTC Sensation] Jeanz Sensation:
Thanks [MENTION=1909299]hinxnz[/MENTION]. Will try your method later today to see if it fixes the ads issue.

Also, I am changing the governor speed to "Conservative" but after every reboot it goes back to "On Demand". Is there a way to permanently change it?
[HTC Sensation] mostafagh:
wifi problem

hi dear

thanks for your rom

i have a problem with wifi sometimes after reinstall the rom ,its work well but after 2 or 3 days , i cant connect to wifi

I think the problem is related the country's

how can i solve that?
[HTC Sensation] jhdez83:
You have to flash wifi.zip in recovery mode, then when restarted install WRCFix_manager open with SU and press install bottom, restart and should be fixed.
[HTC Sensation] mostafagh:
thanks for your answer

but its frized in during turnning wifi-on :(

No other method for solving that?
[HTC Sensation] tntnt:
X2 in this :)
[HTC Sensation] tom0769:
Since you obviously have dealt quite a lot with this so far, how about you starting a new thread for those tweaking things :thumbup::cool:
[HTC Sensation] little_lerroyy:
When I get a free moment I we I'll be more than happy too.
[HTC Sensation] rayjack10:
Can someone help me with steps to flash the TWRP recovery via fastboot. Thanks
[HTC Sensation] Bastaerd:
fastboot flash recovery recoveryfilename.img
[HTC Sensation] Burth67:
TWRP Recovery

I found a bug I think when I power off the phone, and then try to power back on again, it doesn’t boot op anymore, and I even can’t enter TWRP recovery. I have to pull the battery. :confused::confused:
[HTC Sensation] ssonik:
http://xdaforums.com/showthread.php?t=1222968

i. Make sure you have the Android SDK installed

ii. Connect your phone to your computer

iii. You've already installed the latest firmware

1. Download recovery image from here: https://drive.google.com/folderview?...p=sharing#list

2. Reboot phone into bootloader (you may need to select fastboot)

3. Execute this command: 'fastboot flash recovery "path\to\recovery.img"'
[HTC Sensation] rayjack10:
Please can you give me the link to yr overclocked kernel. Thanks

---------- Post added at 12:58 AM ---------- Previous post was at 12:41 AM ----------

How do I change the file system cuz mine is still showing ext 4. I've installed the twrp recovery wipe data via advanc wipe. Thanks
[HTC Sensation] hinxnz:
I just tried setting governor to conservative and enabled

set on boot

in performance settings, rebooted and it works fine here.

Edit: Ok just had a proper look and CPU1 not changing when switching governor, only CPU0 is.

You can use an app for example trickstar mod or set up an init.d script, for example with code below and reboot to apply it.

su
mount -o remount,rw /system
touch /system/etc/init.d/90cpu
chmod 755 /system/etc/init.d/90cpu
echo "#!/system/bin/sh" > /system/etc/init.d/90cpu
echo " " >> /system/etc/init.d/90cpu
echo "#CPU Governor" >> /system/etc/init.d/90cpu
echo "echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" >> /system/etc/init.d/90cpu
echo "echo "conservative" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor" >> /system/etc/init.d/90cpu
echo " " >> /system/etc/init.d/90cpu
mount -o remount,ro /system
exit

Download twrp from this link only! No zip so don't need to extract and this version is safe to use.

https://drive.google.com/folderview?id=0ByQSZtXbeaVpRllRQ3BnSEcxVGs&usp=sharing#list
[HTC Sensation] rayjack10:
Does this work on only kitkat rom cuz I only tried on the CM12. Could that have been the problem? Maybe I'll try it on thw kitkat version. Thanks
[HTC Sensation] hinxnz:
Just powered off my device and it booted up fine when I powered it back up.

Edit: Seeing you didn't add all information regarding your issue, eg. twrp version and where you powered off from etc. You may get an incorrect answer, it still works fine here in O/S and recovery but I'm not on the latest version of twrp, I'm still on 2.8.4.0, r11 I think.

Twrp should work with flashing any rom, it's just a recovery so in my mind you can be s-off or s-on (if s-on use htc dumlock option), ivanich's cm12 supports f2fs on data & cache only, not sure bout cm11 supporting f2fs.

Edit: To change file system enter twrp & select Wipe, then select Advanced Wipe, then select the Data checkbox, then select Repair or Change File System, then select Change File System. Do the same for Cache if you like. After this has been done flash CM12, then gapps if you like too.
[HTC Sensation] rayjack10:
Fastboot not working on my system I installed the recovery via pg58img.zip method I replaced the recovery inside the zip. But when access the recovery there's no option for repair or change file system. Can you also help me with the r11 version of twrp I've tried both the r12 n the new one available there still no option for changing file system. An runing on the latest cm12 build. Thanks

---------- Post added at 02:22 PM ---------- Previous post was at 02:02 PM ----------

Working now it was xda theme that caused the fix and change file system to be hiden. Thanks and please I need help on how to install Ivanichs kernel the slightly modified version for overclocking.
[HTC Sensation] Burth67:
F2FS support

Hi [MENTION=4329165]ivanich[/MENTION] does CM11 have F2FS support now?:confused:
[HTC Sensation] bastei:
http://xdaforums.com/showpost.php?p=58949923&postcount=1449

https://github.com/ivanich/android_device_htc_pyramid/blob/cm-11.0/rootdir/etc/fstab.pyramid
[HTC Sensation] axierr:
No file_contexts detected

Hi guys,

first of all, thanks for your great work!

I'm having issues with CM12 Lollypop ROM. I can install and boot CM11 KitKat ROM without problem, but when I do it with CM12, the phone keeps rebooting constantly.

When I install from sdcard a warning shows saying "no file_contexts detected ..".

¿What I'm missing here?

Thanks in advance,
[HTC Sensation] tntnt:
Is your recovery 4EXT v1.0.0.6. RC3 build: 8?

The warnings are normal. Just wipe and install, let it boot, it takes time.
[HTC Sensation] axierr:
Yes it's exactly that version, there is a problem with it?

¿What version is recommended?
[HTC Sensation] andy hall:
Are you S- On or OFF

What firmware and hboot are you running?

I have installed this ROM using 4ext no problem
[HTC Sensation] sly68:
Recommended setup for CM12

Hi iguys,

I use your CM11 ROM, but I want to try CM12 ROM. I have 32 GB SD card. What size of first fat32 pariton and second partition do you recommended to me ? Which type fs of secondary partiticoon ext4 or f2fs do you recommended to me ?

Next which application mount2sd or links2sd is most stable with

CM12 ROM ? Finnaly, could you please sent me shorti install instructions for ROM and which type gaps (mini, mucro .)

and which version of TWRP recovery is most stable for f2fs setup ?

Thnx for your great job [MENTION=4329165]ivanich[/MENTION]

Thanks for your advice.
[HTC Sensation] axierr:
S-ON and hboot 1.27, I've been using the previous version of this ROM for months, and I can flash and run CM11 with Kit Kat, but after installing CM12 it reboots two consecutive times on HTC screen and then it boots from the recovery.
[HTC Sensation] andy hall:
You do not mention which firmware you are on.

Are you saying it shows the HTC screen twice and then goes into recovery

OR

it shows the htc screen twice but will boot from recovery?

Which recovery?

I take it you already know about using fastboot to flash the boot image seperately as you are s-on

Or you can try using 4ext and smart-flash for s-on

My experience is that come what may you have to run the latest recovery to get a clean install.
[HTC Sensation] mc4ren:
I'm running fine with CM12, f2fs (in cache and data) and turbocache. My only problem is that the clock and weather widget (cLock, which is lock clock app from CM) is force closing the Launcher3 every time I place it in the home screen. Any suggestions? Thanks
[HTC Sensation] andy hall:
I had a similar issue on first boot, changed the launcer to nova reboot and all worked.
[HTC Sensation] Heloooo:
Anyone got md5 for the latest 20150220 build?
[HTC Sensation] Maroni_rr:
f2fs

I am running cm12 with f2fs (cash and data) + sd-ext (2gb ext4) + swap (512mb) and Senny is noticeably faster, totally no issues so far! THX Ivanich for the great ROM and recovery with f2fs possibility! Respect!
[HTC Sensation] sungkyumo:
Is this pre rooted rom?

thank for keeping my phone alive.

I am new here. (actually i registered here today)

I did following the steps.

1. Download and install the latest 4ext recovery from HERE (you must have v1.0.0.6 RC2 or newer installed)

2. Download the ROM and Gapps (Google apps)

3. Reboot to recovery

4. Perform a full wipe (you should only need to do this if this is your first time installing the ROM)

5. Flash the ROM zip

6. Flash the gapps zip

My phone is working well.

But My phone was not rooted when i checked my phone.

I just wonder if most of the roms are pre-rooted or not.

thank you.
[HTC Sensation] andy hall:
It is in the thread,

Settings. Developer options root access

Change it to apps and adb

(might be in security)
[HTC Sensation] bjf182:
Did a full rebuild based on the Feb 20th ROM with F2FS and performance is fantastic. New daily driver.
[HTC Sensation] rayjack10:
Sorry guys its been quit a long I did all these hacking stuff, I've been busy with lectures and my project just returned back to xda, pls wanted to know if to use link2sd or a2sd which one is safer n will mount faster the sd-ext n swap. Sorry for asking a noob like question like this. Thanks
[HTC Sensation] Maroni_rr:
Currently i am using Mounts2SD application, but I am considering additionally try delta-roh's TURBO DATA MOD V1.04

THX
[HTC Sensation] adamagic:
audio balance issue

Hi Guys,

I've flashed cm11 to my sxe and since then I'm suffering of some extraordinary balance issue on my entire system. The right speaker of the headphone doesn't provide sound whatsoever. This must have come along with the custom rom, since it was working on stock utterly good. I've also tried three pairs of headphone before I've posted here.

Any advice on this?

Thanks in advance.
[HTC Sensation] axierr:
I just installed TWRP 2.8.5.0 and I can't see F2FS support on Change File System.

What I'm missing? Nevermind, I wasn't using ivanich TWRP version!

My CM12 with F2FS feels slow and laggish sometimes... is this normal?

With CM11 It works very well.
[HTC Sensation] Leiouflying:
About updata recovery

I think you must updata your phone's recovery to 1.0.0.6 REC3++:)

---------- Post added at 12:28 PM ---------- Previous post was at 12:05 PM ----------

This system is too slow. I can not do anything after I'v already install another app. Except system app ,the other app are all very slow ,I must wait black screen very long time. And the multi task usually let system stuck. When I don't install any app, I open 'phone' app, I need to wait for the button. Because it just only showed frame. I need call some body, is not frame!

This is this system bug----too slow.

But this system can let we 'eat' lollipop, very great!

---------- Post added at 12:35 PM ---------- Previous post was at 12:28 PM ----------

I've already installed Google app, opened Smart Lock. But when I will set trusted face, my phone give me error trusted face is stopped. Why is it. Who can tell me how can I open the trusted face?
[HTC Sensation] hinxnz:
This is not a system bug, ROM aren't slow, it's how you set the ROM up and you must of mucked up somewhere, it's a easy process, try again.

Facelock comes with gapps so could be an issue in itself and not ROM and if you think it is, post logcat after playing with it and describe what you did.
[HTC Sensation] ChimeyJimmey:
My consecutive try to migrate to LolliPop has failed miserably again.

The problem for me in not the lagging and slow work, it's bearable IMHO, but several unforgivable issues that I'm experiencing with it:

kills processes randomly, probably depleting memory resources - alarm clock, for example - which renders the device unreliable.

Kills PowerAMP process randomly - not acceptable, as well.

Nevertheless,

f2fs data and cache partitions seem like significant improvements.

But I'm reverting again to 4.4.4 with sd-ext and Links2SD.