yashsingh1/xdaforums huggingface dataset:
[Fire TV Q&A, Help & Troubleshooting] Y2Bogus:
I got the latest update yesterday and was looking forward to trying the the new usb functionality. I had a couple of pre-formatted Sandisk Cruzer Blade 4GB sticks. They were already formatted as FAT32 so I inserted one of them. The Fire TV picked it up right away and spit back a message telling me that to use the drive, I'd have to format it as FAT32. I figured maybe windows did something odd with the formatting that the Fire TV didn't like, so I let the Fire TV format the drive itself.

It formatted, saw all 4 gigs, and everything looked fine. I moved some apps to it and everything looked like it was working as it should. I wanted to test putting some media on the drive to see if vimu or kodi could play files from the USB, so I ejected the drive (yes, I did it the right way by going into the options and waiting until I was told it was ok to remove it). I removed the stick, put it into my PC and moved some episodes of Bob's Burgers to it.

I then plugged it back into the Fire TV and again was told that I needed to format the drive because it wasn't FAT32. Again I thought windows did something funny to the formatting, so I let the Fire TV format it again. Again everything looked fine afterwards. I redownloaded the apps I lost from formatting and moved them again to the drive.

To troubleshoot, again I ejected the drive, and after a few seconds, I plugged it back in. Once again, it told me I needed to format the drive to FAT32. At this point I was getting annoyed, and thought maybe one of the apps I moved to the card was the culprit. So I formatted again, and again everything looked fine. This time I did NOT move anything to the drive, and I again ejected it. After ejecting it, I plugged it back in and once again, it wanted to format the drive to FAT32.

Thinking I might have a bad flash drive, I pulled a second sandisk cruzer fresh out of its package, never having been inserted into a windows pc or any pc, and I plugged it into the Fire TV, Again it wanted to format it to FAT32. So I let it format, all looked well. I ejected it, plugged it back in, and again it wanted to format.

Is this how it's supposed to work? Are we supposed to have to format a drive every time it's inserted?
[Fire TV Q&A, Help & Troubleshooting] AFTVnews.com:
No, that's not how it's supposed to work. My guess is there's something odd about that brand of drive. See if the drive has a hidden partition or try an entirely different brand of drive.
[Fire TV Q&A, Help & Troubleshooting] HeXDeMoN:
Well thats better then a PNY 32gb I have I put it in say to format it , I hit yes , it asks to format , I hit yes .. and on and on it goes. It never actually attemps to format it. I have no problems using a external hard drive or any other flash drive but just this one 32gb flash drive it constantly asks to format till I hit no. I ended up using a 16gb microsd card with a usb adapter, works fine... would rather use the 32gb but whatever..

So it obviously has some quirks depending on brand .. try a differnt brand.
[Fire TV Q&A, Help & Troubleshooting] cd2022:
I use a 32G SanDisk Ultra fit formatted in FAT32 with Partition Magic and FTV never complained.
[Fire TV Q&A, Help & Troubleshooting] Y2Bogus:
I tired an 8gb kingston stick I had, and it seems to be working. I really hope they work on the compatibility issues.
[Fire TV Q&A, Help & Troubleshooting] HeXDeMoN:
oh trust me I tried that and various other programs. The firetv just doesn't like this PNY flashdrive .
[Xperia SP Android Development] nosedive:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you
* getting fired because the alarm app failed. Please do some research if you have any
* concerns about features included in this ROM before flashing it!
* YOU are choosing to make these modifications, so choose wisely.
*/

introduction

features apart from offical cm11

cm build system optimizations

> O3 optimization level, strict-aliasing and no debug information

rom built with gcc 4.8 toolchain by SaberMod

f2fs support in ROM and Kernel

> kernel supports dynamic generation of fstab in ramdisk

> rom comes with tools needed for setting up f2fs

> philz recovery included and supports f2fs

kernel features

kernel built with gcc 4.9 linaro toolchain, -O3 + graphite optimizations

kernel version 3.4.72

cpu governors included: tripndroid, intellimm, intelliactive, dancedance, lazy, bluactive, smartmax, interactive, hyper, ondemand, wheatley, intellidemand, lionheart, performance

cpu frequency from 189-1728 MHz

VDD control enabled, undervolted by default

cpu hotplug: qcom mpdecision + msm_hotplug by myfluxi

usb fast-charge

io schedulers included: noop, deadline, cfq, sio, sioplus, fifo, zen, row, fiops

dynamic fsync enabled

tcp congestion: westwood, reno, bic, cubic, htcp, vegas, veno, yeah

supports lz4 but is xz compressed for smaller size

supports exfat

supports frandom

vfp hardcoded on neon

f2fs

f2fs is another file system tailored for flash storage in phones and was developed by Samsung. of course, wikipedia is your friend ;)

see this informative thread about f2fs here

basically it will improve internal storage performance and access timings. that turns into a more fluid experience

included mods

no cm updater (original cm roms are not compatible)

dpi set to 280 (i like it smaller)

requirements

unlocked bootloader (lbl is untested)

fastboot knowledge if something goes wrong

empty internal sdcard (will be wiped during conversion)

willing to face dragons

credits

Google

CyanogenMod

FXP

pbeeler

Cl3Kener

uberlaggydarwin

Jaegeuk Kim

XDA:DevDB Information

CM11 - F2FS support - O3 - GCC4.8, ROM for the Sony Xperia SP

Contributors

nosedive

Source Code: https://github.com/nosedive

ROM OS Version: 4.4.x KitKat

ROM Kernel: Linux 3.4.x

ROM Firmware Required: unlocked bootloader

Based On: CyanogenMod

Version Information

Status: Stable

Created 2015-04-02

Last Updated 2015-04-04
[Xperia SP Android Development] nosedive:
installation instructions

the following procedure will erase the internal sdcard, be sure to have a backup of your personal data and apps (Titanium Backup works fine)

reboot your phone to recovery and flash the zip

reboot recovery again

> leave cm recovery and enter philz recovery which is included

go to "wipe and format options"

> "custom format options"

> "toggle f2fs <-> ext4 migration"

> "format /cache" with f2fs

> "format /data and /data/media (/sdcard)"

don't forget to flash gapps package of your choice

reboot your phone to start setup

compatible kernels

currently no other kernel supports f2fs - at least, not from another dev.

this is the link to my customized kernel for Xperia SP

use at own risk, it still not finished and polished yet

if something unexpected happens, flash original boot.img from my cm zip file via fastboot
[Xperia SP Android Development] nosedive:
downloads

2015-04-01_22-05-16_cm_huashan.zip - md5 cbb390bcb2c6d5b9b82ac9ea24e37076 - changelog

2015-07-15_08-17-03_cm_huashan.zip - md5 43bc739f06506948a1d2f652ca114b6c - changelog
[Xperia SP Android Development] nosedive:
Screenshots
[Xperia SP Android Development] nosedive:
2015-04-01_22-05-16_cm_huashan.zip - md5 cbb390bcb2c6d5b9b82ac9ea24e37076

CHANGELOG:
* initial build
* cm synced until 1st april 2015
* see [URL="http://www.cmxlog.com/11/?ct=1427846399000#ct"]cm official changelog[/URL]
[Xperia SP Android Development] supermax3:
if was lollipop
[Xperia SP Android Development] nosedive:
maybe soon?

:D
[Xperia SP Android Development] TheAvengingTITAN:
I know this might sound like a noob question to you... but do you mind explaining what f2fs is?
[Xperia SP Android Development] Araib93:
From what I've read it will speed up our device and add that smoothness found in moto g etc. But thats just my guess I can be wrong. May be the OP can tell more..

Verified
[Xperia SP Android Development] nosedive:
sure :D

f2fs is a different filesystem format. like windows supports fat32 or ntfs, in unix based desktop os like linux the preferred filesystem is ext4 (sometimes also xfs) .. most of our androids use ext4 .. samsung started using f2fs filesystem for their androids with performance benefits and soon after f2fs was ported to nexus tablet (i think it was nexus 10) which sufferes from poor disk speeds.

sure, this won't make a race car out of a vw passat, but how about a passat with 200hp :fingers-crossed:

yes, work flow seems to be more fluid. but i don't see big differences with benchmarks :laugh:
[Xperia SP Android Development] Zygmus:
What version of CWM should I use?
[Xperia SP Android Development] blackloaders:
Use philz recovery (within the kernel) . you can flash it with flashtool
[Xperia SP Android Development] Steebee:
Did someone test this promising ROM on locked bootloader? Would be awesome to try. ;)
[Xperia SP Android Development] wax911:
Amazing

Wow, never thought I'd see f2fs on the xperia sp. I've used this partition format on my N7 and it does yield some good results. Great work, you rock. Will test this out when I have time :good:
[Xperia SP Android Development] matsas:
Could someone explain it? There is not such as menus in CWM like "wipe and format options". ANd what step is the ROM installation?

after the wipes i guess in step 4, before flash gapps
[Xperia SP Android Development] nosedive:
yes true.

> download the zip and install the zip in recovery

> again reboot the recovery (not the system) or shut the phone down.

> go to recovery again by pressing the vol-down during boot (you know how to do that right ;)

> you should now be in philz recovery - the background is now pink instead of grey

> toggle migrations and follow the conversion steps

if you want to check if you were successful, start terminal emulator and type: "su" and grant superuser access, then type "mount" and at the bottom of the output you should read f2fs for /cache and /data

in case you do not read the f2fs somewhere, you still have an optimized roms and kernel. both were built with gcc 4.8 :cool:

good luck
[Xperia SP Android Development] ramcool789:
The Rom is really great, never seen any rom so smooth. App switching is so much smoother and faster. But i don't know why i keep getting weird reboots :confused: (maybe because i'm using xposed?)

Overall this rom is great!

Also, i would like some guidance on how can i bring Font, navigation bar dpi etc back to cm normal, sometimes everything seems too small :cyclops:
[Xperia SP Android Development] cojii:
[MENTION=1090313]nosedive[/MENTION] Thank you so much for your hard work, however i am not able to test it in 100%, Because Philz doesn't display "wipe and format options". After i flashed ZIP and rebor Philz doens't show needed option. I also flashed kernel with Flashtool, flashed flashed "2015-04-01_23-30-08_kernel_msm8x60_ndED_huashan_defconfig.zip" too, reboted etc.

I'm using unlocked bootloader.
[Xperia SP Android Development] jeremy4465:
Possible ART bug

Today I was curious to see if ART works, on my phone it doesn't but I don't want to say it like a bug because it may work on other people's phones, could someone else test that ART works/doesn't work for them?

Also I couldn't get logcat's because I was out and about and I kind of need my phone
[Xperia SP Android Development] ramcool789:
Nope, it does not work :)
[Xperia SP Android Development] jeremy4465:
Alright, thanks for checking it wasn't just me
[Xperia SP Android Development] cojii:
> i downloaded the zip and installed the zip in CWM recovery

> i rebooted recovery by clicking reboot to recovery

> i pressed the vol-down button few times during boot (i know how to do it ;)

> i was in philz recovery 6.41.6, and yes the background was pink instead of grey

> there wasn't any "wipe and format options" or "migrations

After many attempts with different recoveries, etc the result is the same. Also after booting the system terminal is everytime crashing.
[Xperia SP Android Development] nosedive:
Are you sure you flashed the correct file?

The included philz is 6.59.0

from what rom/kernel are you coming?
[Xperia SP Android Development] xyyxpp:
Can't detect headphone
[Xperia SP Android Development] cojii:
I tried to flash "2015-04-01_22-05-16_cm_huashan" with usage Philz / CWM from CM12.1 and Final Solution ROM AOSP CM11.

I also full wiped phone with TWRP and then flashed boot.img from "2015-04-01_22-05-16_cm_huashan" using Flashtool.

And flashed "2015-04-01_23-30-08_kernel_msm8x60_ndED_huashan_defconfig" after i installed your rom, and before.

To sum up, i tried many different methods and everytime with same result.
[Xperia SP Android Development] cojii:
Finally I managed to make it work. I flashed .ftf then flashed included kernel with flashtool and flashed ROM with Philz version 6.59.0. I guess that i messed something with recovery before.

Now i've got some comments. The minimum brightness is too high (or i just used to CM12.1), the volume bar is too low, the ram management is just average, there are not enought Governors, I/O Schedulers. To be honest XSP with f2fs still hangs, however this rom is smother than any other (waiting 10sec to start chromium and type something in adress bar drove me nuts).

BTW Can i somehow transfer message & dialer app from LP?
[Xperia SP Android Development] dic1911:
just flashed yesterday, till now everything is fine

but no convert option for ext4 to f2fs in philz

(my philz is still old ver.

can someone post the new ver. cpio file so I can replace the old one?

thanks
[Xperia SP Android Development] cojii:
do it same way i did it. or tell me where are these files placed.
[Xperia SP Android Development] nosedive:
nice work

what .ftf did you take to get the desirable result?

have you flashed the custom kernel after flashing the ROM?

I am curious about [MENTION=6158341]cojii[/MENTION] tutorial :D
[Xperia SP Android Development] antr34:
any chance f2fs come to stock rom?
[Xperia SP Android Development] nosedive:
probably not. you need changes in kernel and Rom, conversion of filesystem is needed and stock rom would not support that :(
[Xperia SP Android Development] nosedive:
f2fs finally found it's way into cm12.1 kernel

so there will be official support in cm12.1 for f2fs - great news for everyone ;)

kernel commit

big thanks to uberlaggydarwin and Kim Jaegeuk :victory:
[Xperia SP Android Development] headbon3:
[MENTION=1090313]nosedive[/MENTION]

Im on your rom right now...in case i want to go back to ext4 (w/ an ext4 rom), should i do the custom format options again for data and cache partition, but this time from f2fs back to ext4.
[Xperia SP Android Development] nosedive:
absolutely correct.

you need to re-register ext4 filesystem, and that's what I would do

be sure to have a backup in case you want to restore your old data.

:D
[Xperia SP Android Development] prabhav.3892:
This Hell of A Rom got unnoticed! No Bugs,Lags at all.

Perfect Ram Managment,Fluid UI Experience, 500+ Ram on first boot.

F2fs is working good too.

No lags while installing apps from play store.

A must try for everyone.

Great Work by the Developer!:victory:

---------- Post added at 03:54 PM ---------- Previous post was at 03:44 PM ----------

[MENTION=1090313]nosedive[/MENTION]

Are you still working on the kernel compatible with f2fs you mentioned in the OP?

Coz you feel a lack of Governors,Usb Fast Charge and other features.
[Xperia SP Android Development] luutuananh:
[MENTION=1090313]nosedive[/MENTION] Is this project continue? Because it's work very good on our devices.
[Xperia SP Android Development] nosedive:
[MENTION=4518479]luutuananh[/MENTION] [MENTION=4832613]prabhav.3892[/MENTION]

yes, I'm still working on this.

I created a couple of stuff that I want to preset in a separate kernel thread as I haven't compiled cm11 no more since the file in OP

BUT: if you want to try, there's a (almost) new kernel zip with some awsome features

have fun and stay tuned ;)
[Xperia SP Android Development] prabhav.3892:
what is this zip..i dont understand..it's to be flashed in recovery..and what does it do?
[Xperia SP Android Development] nosedive:
the zip file is a kernel update only. The new kernel is compiled with sabermod 4.9.3 and graphite enabled. It has tons of governors, schedulers and battery options, undervolting and voltage control, another hotplug control, fast charge and memory optimizations. Further this is bumped to Linux 3.4.72

It is still missing some more options that I will add probably this evening and open a separate thread

You can flash the zip in kitkat and lollipop, because it does not change the ramdisk :)
[Xperia SP Android Development] Furrydaus:
Finally a kernel developer steps up with a kernel that doesn't modify the ramdisk @.@
[Xperia SP Android Development] nosedive:
Hello Furrydaus, its an honor for me

Feel free to use it :)
[Xperia SP Android Development] Furrydaus:
I don't intend on using though. Its nice to see more innovative and stable kernels being published :)
[Xperia SP Android Development] sambastrakan:
Hello,

My external sdcard is not visible in philz neither with a file manager after boot. Any solution ?

Thank you.

[EDIT]: Also saw this in logcat: E/MP-Decision( 231): Error setting a sleep mode for secondary cores - -38

I think when I put the phone to sleep.

[EDIT2]: having a reboot with antutu during CPU's FPU performances test
[Xperia SP Android Development] Furrydaus:
An update. The updater script hangs Philz causing it to crash. You probably need to check the updater binary or your overall flashing mechanic. It seems to be really inefficient right now. And probably broken
[Xperia SP Android Development] prabhav.3892:
Works like a charm for me.
[Xperia SP Android Development] Furrydaus:
Is that true? Is your filesystem formatted as f2fs or not? I'm leaning towards f2fs being the culprit of this problem
[Xperia SP Android Development] prabhav.3892:
mine is f2fs.
[Xperia SP Android Development] nosedive:
hm..

what cwm do you use for flashing? what rom are you coming from?

I use this zip already for 4 months without troubles..

the kernel update zip does not touch the system nor data partition

it dumps /dev/block/platform/msm_sdcc.1/by-name/Kernel , then unpacks the image, replaces zImage with the one from the zip, repacks the boot.img and writes it back using dd

all operations are done in /tmp

your signature states you are on lbl?

this rom was not built for lbl
[Xperia SP Android Development] sambastrakan:
Nope, my signature is wrong, will correct it...

I am unlocked and fully installed your rom (twice to make sure). I'm back to Mrsteve rom with williams kernel.

I made a clean install and no external sdcard at all : invisible and unmountable in philz (I also tried twrp by flashing it in fota partition and no sdcard too).

After boot still no ext-sdcard. lokks like a problem in ramdisk ...

I also tried your last kernel and no ext-sdcard too.
[Xperia SP Android Development] nosedive:
which type of partitions are on your SD?

external sd-cards should be mounted in /storage/sdcard1

internal is in /storage/emulated/0

did you look there also?
[Xperia SP Android Development] sambastrakan:
Sdcard formated extfat. Perhaps it's the reason. My partitions are standard i think. /storage/sdcard1 folder exists but is empty. Back in mrsteve cm11 ext-sdcard is back. In my rom texfat.ko is loaded in kernel before launching a recovery. May be that....
[Xperia SP Android Development] nosedive:
looks like support for exfat is missing..

I will investigate!
[Xperia SP Android Development] NicestRudeGuy:
is this cm11 lag free ?
[Xperia SP Android Development] luutuananh:
Best version of cm11 is here.
[Xperia SP Android Development] NicestRudeGuy:
link of latest build plz :) ?
[Xperia SP Android Development] nosedive:
looks like support for exfat is missing.. i will add it to the kernel
[Xperia SP Android Development] nosedive:
i will update sources and push a new build this night

the new kernel will also be included
[Xperia SP Android Development] Kordius:
I can't wait new version ^ ^
[Xperia SP Android Development] NicestRudeGuy:
thanx bro waiting :)
[Xperia SP Android Development] nosedive:
bad news: ROM is delayed as upstream updates cause build errors .. looks like kitkat needs more patching for gcc 4.8

I'm on it.

there's another kernel update for now.

changes are support for exfat [MENTION=3378323]sambastrakan[/MENTION], intellidemand governor, fast charge and build optimizations.

the link is here
[Xperia SP Android Development] prabhav.3892:
[MENTION=1090313]nosedive[/MENTION]

could you do Paranoid Android with all these optimizations we never had PA with UBL and it has got some really cool features which CM lack.

Apart from this,it would be nice if you could add some optimization for increasing touch sensitivity its not as smooth as lollipop Roms.
[Xperia SP Android Development] Kordius:
Yeaa increasing touch sensitivity is really great idea.
[Xperia SP Android Development] francescohtc:
this kernel will work only with this rom or with CM Official too?

EDIT:

Tried, it works, i will test today... thanks.
[Xperia SP Android Development] Kordius:
[MENTION=1090313]nosedive[/MENTION] I know " Don't ask about ETA" but any progress in work ?

And.. WOW !! We get 3.4.72 kernel O_O

It is possible that we get last 3.4.10x or higher ?
[Xperia SP Android Development] sambastrakan:
I just made a try but I'm stuck on "run kernel updater script"....

what I did:

- enter philz

- factory reset

- flash rom

- flash kernel update

I let the script ran about 5 min before reset but I think it's too long no??

Another strange thing like in any cm11 lbl or ubl:

- io and sqlite perf are low

- RL Benchmark SQLite app does the test in 22 seconds with stock rom and stock kernel. with this rom and custom kernel or with mrsteve cm11 (lbl stock kernel) it takes about 55 secs. And with mr steve cm11 with williams kernel bench is done in 22 secs like on stock rom.

- So, there is something wrong somewhere ...

thanks
[Xperia SP Android Development] nosedive:
update on 15/07 with fresh sources

:rolleyes:

i tried lp couple of weeks

please define your benefits of kk vs lp . I want to evaluate the importance for - still - building kitkat ROMs

acknowledged with high priority

kernel is still .72, but there are new governors to play with

currently testing 3.4.104
[Xperia SP Android Development] prabhav.3892:
doesit have any optimizations for touch
[Xperia SP Android Development] sambastrakan:
I still does not have access to my ext-sdcard (exfat format) with this new version ...

- Baseband is xxxxxx-16, perhaps a good idea to update with xxxxxx-21

- RL Benchmark SQL is now better: 26 secs (22 on stock)

- About lolillop, I think I'll stay on kitkat. I don't like lp ...

[EDIT] Antutu is crashing: screen becomes yellow and dark then it reboots. Nothing in logcat, and it's not the temperature.

Thanks !
[Xperia SP Android Development] Kordius:
Without USB Mass Storage ? :crying:

Phone reboot when start AnTuTu, but is really fast, thx c:
[Xperia SP Android Development] luutuananh:
Just flash it over your older version of this ROM and it gonna work, right?
[Xperia SP Android Development] NicestRudeGuy:
link for new rom
[Xperia SP Android Development] headbon3:
@ OP

Any fix for auto brightness SLOW response to ambient light? Also the minimum brightness is still too bright especially on dark environments, causes too much eye strain. Or can you direct me where in file system needs editing?

Tnx, great rom though :)
[Xperia SP Android Development] dic1911:
just use lux, it's not a resource exhausting app
[Xperia SP Android Development] headbon3:
Excuse me but why would you prefer a 3rd party app to control auto brightness settings when you have already in built (though it doesn't work the way it should). Also, having LUX app to run in the background causes some applications like Walkman to stop playing whilst browsing Tapatalk. Disabled LUX and all worked well. I also checked the memory consumption of lux and its a whooping 28mb...could be acceptable if it's below 10mb. Our SP has less 1GB ram and i don't intend to waste it, not to mention the poor memory management our phone brings :(