yashsingh1/xdaforums huggingface dataset:
[Xperia SP Themes and Apps] salamkonaziz:
Hi

would u plz make it for android 4.3 ?

i think itsnt hard to port for 4.3

this app is awesome
[Xperia SP Themes and Apps] yunamunchy:
actually it is very hard. you can try illumination notification on stock.
[Xperia SP Themes and Apps] AdrianDC:
Hi !

I just got back in France but still not home, had no internet access at all so no way to check changes and update the patch.

I built a patch for the 16/08 and updated my phone, works fine so if you want to use it, go ahead.

If no major changes are made tomorrow or next days, the patch can be used on newer versions.

In fact, I first tried the 1608 ROM with my 0708 patch and it all worked fine.

As flashlight and the boot leds fix are now merged into CM, obviously these fixes are not present in the patches anymore ;).

Lights with Screen On has been merged into AICP by the way.
[Xperia SP Themes and Apps] riedenthied:
Would it be easy to make a "Lights with Screen On" patch for the latest unofficial build? It runs so much better on my phone than the nightlies that I switched back to them and won't go there for a while.
[Xperia SP Themes and Apps] AdrianDC:
Patches for Nightly 20 and 21/08 are released and working fine.

Changes in the OP, I'd like you to test out the touch screen and the HighTouchSensitivy.
[Xperia SP Themes and Apps] devilsworkshop:
I really like the idea of being able to enable true glove mode, but... your patch didn't change anything, and the high sensitivity option behaves just like it used to :p

The thing is, when the sensitivity of the screen is increased and the charger is plugged in, I get ghost touches all the time until I reduce the sensitivity. But then once I unplug it, I need to increase the sensitivity again. Does this happen for others, too?

I've set up a tasker task that runs this when the charger is plugged in:

echo 280 > /sys/devices/i2c-3/3-0024/main_ttsp_core.cyttsp4_i2c_adapter/finger_threshold

and this when the charger is removed and the screen is turned on. Running it whenever the screen turns on ensures that it never gets automatically turned off, like many have complained:

echo 150 > /sys/devices/i2c-3/3-0024/main_ttsp_core.cyttsp4_i2c_adapter/finger_threshold

Maybe similar functionality could be built into the ROM?

In other news, is it possible that you accidentally broke the data usage part of the settings app? Clicking the data icon in the quick settings panel shows a blank window where it should actually show the data usage, and the "Data Usage" option is missing from settings :silly:
[Xperia SP Themes and Apps] AdrianDC:
For HighTouchSensitivity, I'm checking diffent cases, differences in many use cases indeed.

For the Data issue, I don't think so because it works fine for me.

I'm on 22/08, patches are published too and includes Marcelo's last Color Calibration fix.
[Xperia SP Themes and Apps] Sibat Al Nistas:
Update OP?
[Xperia SP Themes and Apps] devilsworkshop:
The patch is in the same Mega folder that is linked to in the OP.

I'm on the 22/08 build now, and the data issue got fixed.

What exactly does your "High sensitivity" option do? Does it only change the value of /sys/devices/i2c-3/3-0024/main_ttsp_core.cyttsp4_i2c_adapter/finger_threshold?

Because changing the values in this file doesn't enable proper glove mode (like in stock).

Does this phone have dual digitizers (one with normal and one with extra-high sensitivity) or just one with a very broad sensitivity range? If it has two, then perhaps the high-sensitivity one needs to be enabled?
[Xperia SP Themes and Apps] mrhnet:
Although signal_disparity was 0 initially, it changed on its own to 136 after many hours. No idea how to reproduce it. (Checked with 21/08 nightly).

Any idea about which part of source code is responsible for assigning this value 136? Can we make it 0 there...??
[Xperia SP Themes and Apps] AdrianDC:
That is exactly what I was looking for.

You assure you have absolutely no other app like Glove Xperia right ? :)

I saw this once but not twice, so I had no proof it wasn't my fault trying values.

136 is not actually a random value, it's 1 with the checkup. 0 is 0.

I'll continue looking into the HighTouchSensitivity.

22 patch will work fully on the 23/08 build, but I'll release a patch later

that includes the latests changes to my commits.
[Xperia SP Themes and Apps] Dr.TheMaster:
hello, thanks [MENTION=2233641]Adrian DC[/MENTION] for your amazing work, I have a question, can I use this fix (22) on the 16th Aug build because it doesn't have lag and stability issues?
[Xperia SP Themes and Apps] skouarki:
Hi

I wanted to know why your patches aren't already merged to Cyanogenmod ? I mean it's working fine when we use them so why aren't they merged already. I follow the 3 gerrit and I'm not sure to understand what's the problem with them.

But what I can see is that you and Marcelo Reis are working hard for our devices and I wanted to thank you for that :good:
[Xperia SP Themes and Apps] AdrianDC:
Not at all, sorry. Too many changes involved, wouldn't risk it.

Good question ^^.

I've been working on them again yesterday with Michael Bestas,

and rebased to be merged sequentially without any problem.

Screen with Lights On will come first, then LED Brightness.

As for Multiple LEDs, should come last if everyone's ok.

For the brightness commit, I also updated the Oppo Find7 LibLights

to include the new feature, Michael will test it on his phone and confirm.
[Xperia SP Themes and Apps] Dr.TheMaster:
umm, do you think the lags issues are sill there in the latest nightly (23)?
[Xperia SP Themes and Apps] AdrianDC:
Check the changeslog. If nothing relevant, then no reason it changed.
[Xperia SP Themes and Apps] Dr.TheMaster:
well no changes in Huashan this build so I won't try it, I just saw your last edit, you mentioned LED fixes, are you going to merge High Touch fixes, I have tried your 21 fixes they were AWESOME, option = OFF > Great touch (nearly stock 4.3 experience).. Option = ON .. a whole new level of touch experience (just like stock glove mode)

so, any intention to do so? thanks :)
[Xperia SP Themes and Apps] mrhnet:
I'm sure no other apps.

Maybe if someone who has a downloaded source code can do a grep see which parts affect this.. something like..

grep -ir "signal_disparity" *

Just thinking... not sure about this.
[Xperia SP Themes and Apps] AdrianDC:
For the moment I keep it a test, I want to see users reactions,

but as mentionned earlier, also need to check the signal_disparity remains the same.

Otherwise it may explain why the option turns off automatically. Be patient ;) .

I know exactly where it is coded in our kernel drivers, don't worry ;) .

Already checked it but will need more time to find the issue.
[Xperia SP Themes and Apps] mrhnet:
Interestingly, GPU stays at 200MHz at idle after applying patch, compared to 320MHz before patching (checked in nightlies 21/8 and 24/8-patched with v.22/8). Good! :)
[Xperia SP Themes and Apps] AdrianDC:
Yes we achieved and tested that, and it'll be merged in the next kernel update.

Sorry for no releasing the 23 patches just yet, finishing to work on something first,

and the 22 patches will be working just fine, 23 doesn't include any related changes.
[Xperia SP Themes and Apps] Kaffeetrinker:
I had a lot of work to do the last three weeks, so I couldn't follow the threads completely. But for me, it seems like the GPU still reacts inverted. On heavy usage, the clock drops down to 128MHz.

It seems like 320MHz is just blocked.

It's build 0820 with your patch. But it was a very dirty installation due to build 0818's error. Did some down- and re-upgrading...

I don't know whether this information is helpful or not. The crazy flashing process my device went through could have "erased" something of your fixing-code, I don't know.

I just think someone with a clean installation of a newer build could check this and confirm - or not.

By the way, when has your FM-Transmitter fix to be flashed? Right after clean flash of a new rom or whenever I'm up to?
[Xperia SP Themes and Apps] AdrianDC:
When you talk about heavy usage, is it UI or 3D usage ?

Because the GPU idles at 320Mhz (or 200Mhz in the last patches),

but the UI itself runs mostly at 128Mhz for animations.

So playing around the UI within Kernel Aduitor will most of the time show 128Mhz.

What's interesting is the GPU frequency during benches and games,

there it goes directly to 400 Mhz and works just fine.

FM Transmitter fix has to be flashed after each new install / update to activate it,

I use CM Downloader so it is among the additionnal patches for me.
[Xperia SP Themes and Apps] Kaffeetrinker:
I experienced exactly what you describe with the UI. 128 when using UI heavy, 200 on idle.

I didn't test 3D performance cause I don't play games on my phone. And didn't think of the possibility 3D usage could make a difference.

How did you manage to lock the GPU at 200MHz while 2D usage?

Did you change something in the GPU governor?

I had the following idea:

The SP is the only Xperia phone with the board that it has.

Maybe the governor does something that works correctly on most boards, but not on this-one.

I tried a lot to find something about changing the frequency table, but now I think it's hardcoded.

And when 3D clocks correctly, the frequency table can't be wrong. The only solution I can imagine is a wrongly working governor...
[Xperia SP Themes and Apps] AdrianDC:
I don't play games either, but since it's all shared on the SP, boths have to work properly.

But I'm running a lot of Antutu Benchmarks so I see the GPU performance there.

The idle level of the GPU is hardcoded in the kernel initiation, switched from the 320Mhz level to the 200Mhz.

The frequencies table will stay as it is, these are the hardware values of our CPU / GPU.

We both checked everything the other day, GPU looks fully ok to us as it is.

We might compare with other phones but for the moment, no reason to concerning GPU.
[Xperia SP Themes and Apps] Sibat Al Nistas:
on 82215 low battery light doesn't pulse, it's always on
[Xperia SP Themes and Apps] Kaffeetrinker:
Just tested something. If I turn off the App Profiles (settings, battery), my GPU doesn't go to 400MHz when starting a 3D game. I think the app profiles just activate the performance governor. I only tested once. It should be tested whether I'm right or not.

Btw, I can confirm the red light to stop blinking after a few seconds.
[Xperia SP Themes and Apps] BPavel:
Pls, what does the FM Transmitter fix do? Many thanks for short explanation.
[Xperia SP Themes and Apps] AdrianDC:
It adds the FM Transmitter value to the build.prop to turn on the FM Transmitter,

with the latest change made to the FM Transmitter it'll reactivate it on reboot.

Will see when / if I get to low battery, it's always full since 3 days xD.

Could be related to the App profiles indeed.

Anyways, as long as it works fine, no GPU inverted and co..

Tested on latests patchs, it's ok too.

Released the 27/08 test patches just now.

It includes the Ambient Display / Doze Sensors I worked on.

- Add gestures panel to the Settings

- Features :
- Hand wave Doze if device is not face down
- Pick-up Doze if was face down or taken in hand
- Pocket Doze if device unstowed vertically
- Proximity Wake if device is not face down

- Sensors :
- Proximity sensor used for all the features
- Accelerometer put in idle for the Pick-up, face up
- Accelerometer and Magnetometer used for the orientation

I'm looking for a full test of each features, in all situations / orientations possible.

So far everything looks good to me except obviously the reactivity when the phone goes into deepsleep (looking into it).

Battery life looks very nice, I haven't loss a 1% overnight, need more testing and measuring.
[Xperia SP Themes and Apps] AdrianDC:
Updated to 28/08, including latest Doze Sensors changes.

- Add gestures panel to the Settings

- Features :
- Hand wave Doze if device is not face down
- Pick-up Doze if was face down or taken in hand
- Pocket Doze if device unstowed vertically
- Proximity Wake if device is not face down

- Sensors :
- Proximity sensor used for all the features
- Accelerometer and Magnetometer used for the orientation
- Accelerometer put in idle for the Pick-up with face up
- This sensor will go in deep-sleep with the phone
[Xperia SP Themes and Apps] Jadimo:
Is it possible to make 3 leds work with crDroid build 12.08?

I've tried the liblights_full.zip, The Rom booted but only the middle Led works :/
[Xperia SP Themes and Apps] Dr.TheMaster:
Hello [MENTION=2233641]Adrian DC[/MENTION] is there going to be a new patch for lateat nightly 29.. Or we can just flash the 28 patch over 29 nightly? Thanks
[Xperia SP Themes and Apps] AdrianDC:
I'll check how it's done when I can and talk with the developer if possible.

29/08 coming soon, I'm finishing a small LibLights update first (Low battery blinking fix).

Edit: 29/08 released, and it includes the LibLights improvements.
[Xperia SP Themes and Apps] Dr.TheMaster:
[MENTION=2233641]Adrian DC[/MENTION] , I had a small problem installing the latest patch (maybe this can help) , here is what I exactly did :

1- I had stock 4.3 207 ROM with cwm recovery

2- went to recovery, formatted data, cache, dalvic, system, internal storage (sdcard0)

3- flashed latest nightly 29/8 then TXPico GApps then Xperia Keyboard for Lollipop (tried that before and it worked) then your patch of 29/8

4- wiped cache and dalvic again

5-rebooted and fixed root

when the device fully booted I had these issues

1- GApps or Xperia Keyboard were not flashed

2- non of the fixes were done by the patch EXCEPT the high touch sensitivity option, it was on and had no problem

then I flashed DoomKernel 13 , flashed GApps and Xperia Keyboard and the patch and everything went as it should, can I please have and explanation for that? thanks in advance, AMAZING JOB in the 29 build (everything is great)
[Xperia SP Themes and Apps] AdrianDC:
Firstable, you should start with an adapted recovery for Lollipop.

CWM is not updated anymore and doesn't suit the new needs.

TWRP F2FS from [MENTION=5727088]Tomoms[/MENTION] is fully fitted for that :

http://xdaforums.com/xperia-sp/development/ubl-twrp-f2fs-support-xperia-sp-huashan-t3150230

Then you can make all the formats and wipes you want,

and flash the ROM + all the addons needed.

If you need to reflash a kernel, flash the ROM kernel, not a JB kernel like DoomKernel, it's not meant for that.
[Xperia SP Themes and Apps] AdrianDC:
CM 30/08 patches released (the Nightly is going to appear in minutes).

It includes Doze Sensors + Gesture settings improvements,

a new CM feature proximityCheckOnWake allowed in the Display settings,

and the updated LibLights from last time.

I've been using and testing the ROM quite a lot recently,

I think it's really stable and smooth, I don't have lags and crashes like before.

I also don't have the Incomming Calls issue anymore, looks good so far.

Should be safe to update for those waiting in my however subjective opinion.
[Xperia SP Themes and Apps] krokanic:
First of al i want to thank you for your great work... And that Marcel guy too ;) Your sensor things are great and i cant belive what have you done with our device... I just have one question, i must install your update every time i update to next nightly? Dirty flash is ok right?

Thanks in advance
[Xperia SP Themes and Apps] Sibat Al Nistas:
The gestures and Ambient display works fine in 290815 although low battery led blinking error still exists.

I'll try the 300815 in about 2hrs.

EDIT: After resetting the "Pulse if battery low" settings, everything is fine now :D

Thanks for your amazing work!
[Xperia SP Themes and Apps] AdrianDC:
Hi !

Tx for confirming the Sensors work fine ;) .

As for updating, "dirty" absolutely, it's an update, no need to clean anything.

I'm using CM Downloader, and I put my patch zip as Additionnal zip to flash with the update.

aa/bb version are directly related to the aa/bb Nightly, but they should work on the aa+1, +2, ...

But I can't assure that of course, so either I have time to update it and I release the patch,

either you try the previous version on an new build, or you keep the stable version you have until needed.

Tx.

Low Battery blinking error should be gone normally.

I'll let my phone drain itself to check again, but no reason for that.

When / how did it happen ? Fell down below 15%, starts to blink ?

Connect USB (doesn't blink), Disconnect USB : blinks ?

Receive a notification (SMS), doesn't blink, dismiss the notification : blinks ?

Ok xD.
[Xperia SP Themes and Apps] Dr.TheMaster:
Great work.. Thanks.. Can I use CyanDelta Updater to update our ROM (to avoid downloading 275 MB every time) thanks in advance
[Xperia SP Themes and Apps] AdrianDC:
Yes you can.

But as I already said in various places, I really prefer CM Downloader for that : https://play.google.com/store/apps/details?id=com.paolinoalessandro.cmromdownloader.
[Xperia SP Themes and Apps] Dr.TheMaster:
Amazing.. I didn't know that it has delta updates as well.. Do I need TWRP for the delta update? Can I just use the Cyanogen Recovery?
[Xperia SP Themes and Apps] AdrianDC:
Updates that aren't made by CM Update (included in CM) can't use the Cyanogen Recovery.

Only use TWRP F2FS, it's the most updated and reliable one. http://xdaforums.com/xperia-sp/development/ubl-twrp-f2fs-support-xperia-sp-huashan-t3150230
[Xperia SP Themes and Apps] krokanic:
Thanks for reply, i just wanna ask if you have noticed a little lags (freezing) in newest build (0830) because on 0829 i noticed some lags/freezing but they are very short... I ask this because i will not update until that fix/changes are made... I am very happy with this build just this little problem makes me think to update...

Sorry for my bad english...
[Xperia SP Themes and Apps] ragingme:
i exprience little lag too in UI on 29/08 build, but heavy lagg in game like fallout shelter and sometimes isnt responding in various app:confused:

does these patch fix this?
[Xperia SP Themes and Apps] krokanic:
I just have clash of clans installed and those lags are not only in games... It runs fine than stops for about one second and than is okay again...not only in games, this is happening even in xda app just now when i am taping ;) but not big deal, i am sure that our great developers will fix this soon.. Maybe is not huashan problem, maybe is cm problem, who knowns...
[Xperia SP Themes and Apps] AdrianDC:
Honnestly, this is only my point of view, but I think my SP with Nightly 30/08 + Patch 30/08 is really stable, doesn't lag,

I haven't had any app crash like I used to (has been some days now), and my incomming calls look to be ok so far.

But again, it's better to test it and make your own opinion on this, I can't judge for you as we don't have the same use of the SP.
[Xperia SP Themes and Apps] ragingme:
okay im gonna update it and apply patch. will report later:D
[Xperia SP Themes and Apps] krokanic:
Me to, as soon as i get wifi, i am now on mobile data... On 0829 build i just had one ANR on trebuchet... I hope 0830 will do the job ;)

And calls on this build are working good... I think this is fixed...?
[Xperia SP Themes and Apps] AdrianDC:
Using CM Downloader or download full ROMs ? :D
[Xperia SP Themes and Apps] ragingme:
yes all butter smooth nowwww thanks adrian such a great work!! :D

only if i press home in fallout shelter it tooks like 45sec of black screen to go back to home

maybe the game is too heavy for this phone haha i tried CoC and its fine

sorry for bad english
[Xperia SP Themes and Apps] krokanic:
Haha never tried cm downloader but i will use it... And will report back when i am done with testings...

P.s. this gesture stuff are crazy like a **** hahaha... It feels like i have new phone hehhe... ;) ?
[Xperia SP Themes and Apps] Raienryu:
The gestures all work perfectly!!!

Super Awesome.

Pick up in most orientations and hand wave are perfect in AICP. Didn't test pocket mode.

Will do that also soon :)

Thanks for the extra awesomeness ;)
[Xperia SP Themes and Apps] krokanic:
Tried and lags still occurred... But its pretty stable...
[Xperia SP Themes and Apps] Dark Passenger:
30th nightly + full patch = extremely smooth ROM. My thoughts are that the artificially freed memory is causing stutters(mainly observed with background processes)just my opinion.

PS congratulations to [MENTION=2233641]Adrian DC[/MENTION] on getting his patches merged(multi led support still remains)
[Xperia SP Themes and Apps] krokanic:
[MENTION=2233641]Adrian DC[/MENTION] i know that this isn't place to ask but do you know is it possible to enable cast screen on cm12.1..?
[Xperia SP Themes and Apps] AdrianDC:
I have the option in the Display settings, but other than that... I don't have the devices to test it.
[Xperia SP Themes and Apps] krokanic:
I have, i have lg smart tv with miracast... My friend have xperia z with stock rom and can mirroring screen but i cant... In settings it just say no devices nearby... And on cm11 same thing, i think cm team disabled this feature...
[Xperia SP Themes and Apps] Dr.TheMaster:
After updating to latest nightly and patch ( 30 - 8 ) I am facing lags again :( .. I did dirty delta flash..I checked kernel auditor for readahead values.. They were both set to 128.. What could I have done wrong? Or is it just a nightly issue? Thanks
[Xperia SP Themes and Apps] yunamunchy:
i am experiencing same things as you. just let the rom settle. its fast now , not blazing but it very great.

---------- Post added at 04:16 AM ---------- Previous post was at 04:14 AM ----------

@Adrian DC is it possible to make per contacts sms notification? like contact x have green illumination while the rest have white when they sms?
[Xperia SP Themes and Apps] AdrianDC:
No there's no such thing.

However EvolveSMS that I use since 1 year and a half

is perfectly capable of doing it, I just checked and tried.

You should give it a go.
[Xperia SP Themes and Apps] yunamunchy:
it really does depend on the app then. i've been using light manager app for this kind of customizations but it rekt my phone when im on xenon hd.(i think) thanks a lot , continue the good work
[Xperia SP Themes and Apps] DCollanery:
All of these features are already present in unofficial builds?
[Xperia SP Themes and Apps] shavendum:
The wave to wake feature not working on 0831. It worked well on 0830

Edit: it works but sensitivity is low somehow. Have to bring the palm very close(almost touching) to the phone. It was better on 0830
[Xperia SP Themes and Apps] Sibat Al Nistas:
feature request:

ambient display app specific notification (do not disturb/block specific app notification for ambient display) would be a nice addition :)

and what about pickup/pocket remove wake(even when there's no notification) (although I'm not sure if it'll be battery friendly)

Thanks :)
[Xperia SP Themes and Apps] Dr.TheMaster:
Hi, can someone bring us the latest nightly performance update (With Adrian's 31-8 patch of course) :D how is it doing? is it fast and stable? any lags or small issues? thank in advance :)
[Xperia SP Themes and Apps] shavendum:
I am on 0831 nightly. ROM is stable. I encountered some problems. The proximity wake sensitivity has gone down. Disabling ksm improves the situation of ocasssional lags here and there. Otherwise working as it should.
[Xperia SP Themes and Apps] AdrianDC:
Tx.

The Sensors Doze hasn't really changed actually..

And now I'm using it like All the time :D, to check the clock,

while driving to wake up without stuggling to access the power button (phone holder), ...

Something to know btw, it should not work in low battery cases.
[Xperia SP Themes and Apps] shavendum:
Also a wierd bug with mx player. The hw decoder issue remains. On sw decoder, videos will freeze suddenly, audio may or may not continue in the background,then it will unfreeze after sometime, and play faster than normal to catch up to the audio. Keyboard freezes occasionally.

Edit: soft reboots when downloading via wifi