yashsingh1/xdaforums huggingface dataset:
[Xperia SP Original Android Development] cdewsxSP:
Not so exactly, now there are Chinese models with worse specifications and they have no performance problems. To whom it is interesting to see, for example "Digma Linx Atom 3G Oreo" and similar... google to help - msm8960T vs Spreadtrum SC7731G

I am impressed with how Chinese models memory is distributed, it is always enough.

Сan more be achieved by doing assembly optimization.
[Xperia SP Original Android Development] AdrianDC:
Yeah right, the person who works on this device since 2015 did nothing over all that time, it's sad.

Not to mention the months spent back then on building the new kernel platform with only 1500-2000 commits

seeking stability and performance until it became fully reliable, let alone the security updates and management improvements.

If he had known back then it wasn't worth it, maybe he would have had something apparently called "free time" over the years, who knows?

But then I'd guess Huashan might be collecting dust if that was the case.

And on another aspect, maybe the "developer" is already overbooked with his real life and all his work-related projects

(right, they often do have a real job because this is called free open-source development rather than after-sales over-paid maintenance).
[Xperia SP Original Android Development] cdewsxSP:
I respect your work.

For example, I use your builds with my modifications, but for technical reasons I can not lay out builds.

I mean, for full optimization, need resources and a separate team of people.
[Xperia SP Original Android Development] AryanDv:
Apps are not installing try and fix that bug in next build
[Xperia SP Original Android Development] scruffy1:
i've dropped back to lineage 15.1 build (lineage-15.1-20181028-UNOFFICIAL-huashan)

reasons ?

mostly, i missed the beautiful camera options

but also because the build was glitching and would then freeze, which it very rarely does on the 15.1

also, i thought the phone function was misbehaving, but later still realised that the earpiece speaker is the problem - i think it's dead, because i can hear on loudspeaker - spare earpiece from china is in transit, at ~ us$1.90 delivered :)

otherwise alles gut :victory:

[MENTION=9652611]AryanDv[/MENTION] : aps installing fine on mine

try a clean install, and go from there

thanks adrian :highfive:
[Xperia SP Original Android Development] Ungewiss:
Plug a headphone in and then unplug it. It's a common problem which happens from time to time after using headphones.
[Xperia SP Original Android Development] scruffy1:
thanks for the suggestion; already tried repeatedly, and again just then

headphones or line out work fine; earpiece never comes to the party :(
[Xperia SP Original Android Development] D3m0N81:
Being exited about the new OS on my old Haushan, went ahead & translated*all lineage-15.1 strings(~4600 words) on crowdin for my local language. Perhaps as a thank you gesture.

cheers Adrian

* proofreading pending ;)
[Xperia SP Original Android Development] Evilmonk100:
Is any one facing camera keeps stop issue on lineage os 16 on xperia sp? And How to fix it ? And again thanks to adrian for his work on this device with your busy life. Gbu ?
[Xperia SP Original Android Development] akimester:
Yep. I had it,too. Force stopped the app, cleared its all data/setting,etc. -> works fine atm. :)
[Xperia SP Original Android Development] Evilmonk100:
Sharing feedback of new lineage os 16 on xperia sp. Awesome rom build by adrian. Everything is working ok except few.

1) galary app not updated albums automatically. For updating album i remove sd card and inserted again then it will work. Galary setting are not shown. When click on settings blank screen appers. Also change the three dot menu colour to white. Bcz it will not get clearly seen on black colour.

2) when i select camera storage location to sd card camera shows need to insert a sd card.

3) expanded dekstop feature keeps stopping.

4) sometimes incomming call are not come despite of had full network. It tells no ur calling is switched off.

5) when i opted camera key as a wake device. Need to press hard. Softer press just blink the screen and stays off.

how to remove search bar from home screen? If not then plz remove it.

Hope you fixed above problem in next build adrian. When you got free time please work on above problems. And thanks for this beautiful rom. Gbu Adrian. ??
[Xperia SP Original Android Development] akimester:
Greetings !

How can i change the zram size ? This 400mb zram is a real disaster. :(

There are 2 zips few post before ,but i dont know how to flash them.

If i flash ,will it overwrite any settings ? (Kernel,supersu,etc)

I tried modifing fstab.qcom ,but after a reboot it restores the default value.

And finally ,how can i modify those .img files to make my own custom zram size?

Thanks in advance !

Ohhh ,one more question :

Disabling mobile data and.... the connection lives... The icon indicates its offline ,but no... Any solution ?
[Xperia SP Original Android Development] s bandit:
hi. I look for zram size changer file ,plz send me file to change zram to 128mb or disable it on lineage 14.1 with twrp

tnx
[Xperia SP Original Android Development] cdewsxSP:
guys, playing with a size zram makes little sense, for fast memory work, you need to build a kernel with two zram0 and zram1 independent from each other, for example

256 mb each, single-threaded for each core, excellent performance result

modprobe zram num_devices=2

mkswap /dev/zram0

mkswap /dev/zram1

swapon /dev/zram0 -p 10

swapon /dev/zram1 -p 10

/sys/block/zram0/disksize 268435456

/sys/block/zram1/disksize 268435456

/sys/block/zram0/comp_algorithm lz4

/sys/block/zram1/comp_algorithm lz4

/sys/block/zram0/max_comp_streams 1

/sys/block/zram1/max_comp_streams 1

something like this
[Xperia SP Original Android Development] Onawt:
Hey [MENTION=2233641]AdrianDC[/MENTION],

What's installed on my device:

lineage-15.1-20190113-nightly-huashan-signed.zip

open_gapps-arm-8.1-pico-20190110

addonsu-15.1-arm-signed.zip

helium_v60_O.zip

I've been a tester for [MENTION=5727088]Tomoms[/MENTION] Helium kernel for quite some time now and discovered that all values for LMK in Kernel Adiutor are set to 0. I flashed back the boot.img from lineage-15.1-20190113-nightly to see if it could be a HK issue, but noticed the values were still set to 0. I already did some troubleshooting with Tomoms and found out that both /sys/module/lowmemorykiller/parameters/minfree and /sys/module/lowmemorykiller/parameters/adj contain only zeroes (to confirm it was not a visual bug in KA). Do you know about this? Any idea what could cause this? Are there other users who can confirm my observation?

Secondly I've been having issues when watching 60fps Youtube videos. After some time watching a video it will feel like the video is playing at 15fps. The audio and video are still in sync, that is the audio plays normally but only the framerate seems to be tanking. It also happens when rewinding (or forwarding) by 10s or more. It will instantly trigger the lag. I first thought that it might be HK related (since it had happened in the past, but was fixed later), but again on stock LOS15.1 kernel I'm having the same issues, if not slightly worse. Local 60fps video playback is not affected (using VLC media player with full hw acceleration). There is some stuttering, but it always seems to 'catch up' and play normally at 60fps. Rewinding doesn't result in any playback issues. I have no logs whatsoever and considering it happens on both HK and LOS15.1 kernel I'm starting to think that maybe the Youtube app has just become too heavy to run properly on the old XSP. Any thoughts on this? Again: are there other users who can confirm this behaviour?
[Xperia SP Original Android Development] globe79:
Anyone here (especially several guys expecting miracles - few posts before yours) should be aware (I know you are), that it is 5 years old device now. I can't reproduce your issues, as I went back to using Nightly "as is" with built-in kernel. But my very first idea - buffering (perhaps demanding) is killing the device from running fluently (swapping?). As you said VLC is not affected. Can you monitor the CPU and free RAM and plot it? Can you try short (10-20 sec) movie on YT and jump over it to check if it triggers the glitch instantly. Did you try to kill the YT app and reopen?
[Xperia SP Original Android Development] cdewsxSP:
Onawt

...lowmemorykiller...

zeros are really worth and they don’t change, because so assembled kernel

...Youtube...

i changed reclaim and everything works well

/sys/module/process_reclaim/parameters/per_swap_size 320

/sys/module/process_reclaim/parameters/pressure_min 50

/sys/module/process_reclaim/parameters/pressure_max 90

/sys/module/process_reclaim/parameters/swap_opt_eff 50
[Xperia SP Original Android Development] s bandit:
are you test this?and you sure improve performance?

now I have lineage 14.1 final can you help me to change lineage zram 400mb and use your new zrams setting?

or edite lineage os 14.1 kernel and sett your new zram setting and send kernel to me for test it, or help me to how change lineage 14.1 zram setting and use your new zram0 and zram1?

now I have problem in performance for example in gaming after 10min start lag and cant continue game
[Xperia SP Original Android Development] Ungewiss:
Those settings don't improve anything. This is just some feeling, because he manually changed something.
[Xperia SP Original Android Development] cdewsxSP:
...It really works, did on weaks pc with linux.

I do not have technical ability to assemble zImage kernel

look here https://xdaforums.com/android/software-hacking/reference-how-to-compile-android-kernel-t3627297
[Xperia SP Original Android Development] s bandit:
thank you,i hope mr Adrian use your new setting

---------- Post added at 05:33 PM ---------- Previous post was at 05:18 PM ----------

hi thank for send lineage 15.1 zram file .now I back to lineage os 14.1 final and I want disable zram or change size to 256.plz send me zip file If you have it or help me to change it?:(

thank for send lineage 15.1 zram file
[Xperia SP Original Android Development] cdewsxSP:
250Mb is not enough, try such a bootloader 830Mb , fast run and applications is much faster

View attachment 14.1_zram_830_Mb.zip
[Xperia SP Original Android Development] s bandit:
thank you so much:laugh::good:

I test it performance much better than 400mb zram ,so fast

but I want test zram off too

can you send me zram off (lineage os 14.1) for test it too?

sorry for many question and request and thank you so much for send files
[Xperia SP Original Android Development] cdewsxSP:
Try first for 800, a few days, and then 0.

View attachment 14.1_zram_0_Mb.zip
[Xperia SP Original Android Development] s bandit:
I test it,if you use your phone for gaming use zram off(fast and havent lag in games)

But if you dont use your phone for gaming use zram 830mb (very fast,fast open app and performance is very good)

Thank you so much cdewxsp
[Xperia SP Original Android Development] scruffy1:
having already replaced the motherboard, i have now just successfully dropped in a new earpiece after wondering if a recent rom had somehow ruined the sound

end result ? good as new

between adrian's excellent work and cheap spare parts, this phone might possibly last forever :)
[Xperia SP Original Android Development] akimester:
[MENTION=8686946]cdewsxSP[/MENTION] : can you please make a 830mb zram with helium v60 for 15.1 ?

And how can i flash those .img files ?
[Xperia SP Original Android Development] s bandit:
Unzip zram zip file and move zram image file to your sdcard and go to twrp and install then (in down,right side) touch install image ,then you find zram image ,and install zram image,select boot and swip to install ,rebot to system

Sorry my english not good
[Xperia SP Original Android Development] cdewsxSP:
Flashtool Version 0.9.18.6 built on 30-05-2015

Select FastBoot - By DooMLoRD Select kernel to Flash - Select Boot.img

come in TWRP - Select and flash helium.zip, if needed.

not tested on new builds

View attachment 15.1_zram_830_Mb_plus_TWRP.zip
[Xperia SP Original Android Development] akimester:
Works fine with lineage-15.1-20190114-nightly-huashan-signed.zip !

Fast as lightning !

Thanks again !
[Xperia SP Original Android Development] s bandit:
cdewsxsp ,how you change zram size?plz help our ,I want install others roms but I cant change zram size?:rolleyes:
[Xperia SP Original Android Development] NyQuilXT:
Hi,

since I also had bad performance issues on 15.1, I also played around with zram configuration. I testes 0MB, 256MB, 512MB and 800MB.

0MB leads to random restarts, with 512MB and 800MB, there where also lots of stuttering, I didn't had with 14.1.

So at the end, 256MB zram with swappiness set to 50 seems to be the golden config for me in my usage scenario (inet-browsing, music, shopping apps, XDA of course ;) - and no gaming!)

I have monitored swap usage and 256MB zram / swappiness 50 are the best values for me.

I'm really happy with that config atm.

So long....

NyQuilXT :)
[Xperia SP Original Android Development] cdewsxSP:
unpack bootloader

open fstab.qcom

string /dev/block/zram0 none swap defaults zramsize=***necessary size

repack bootloader

...I experimented with power profile and it obviate problem of brakes, zram nothing to do with perfomance, AdrianDC uses power profile msm8937, i have tried power profile MSM8226 and MSM8974 they give best result of evenness operation and energy efficiency, I hope this is possible and it will turn out to be done without brakes.
[Xperia SP Original Android Development] rbertoche:
Since now there's Q&A I've moved the post there
[Xperia SP Original Android Development] s bandit:
For unpack boot.img i use android image kitchen ,but i get an error,android boot magic not found and i can fix it

How you unpack boot.img?use what software?
[Xperia SP Original Android Development] AdrianDC:
It's an old project bit still usable for this purpose : https://github.com/AdrianDC/android_huashan_bootimg_editor

For the recent questions and updates, I have been very busy lately with work but I will try to catch up soon.
[Xperia SP Original Android Development] s bandit:
Thank you mr adrian

Finlly i can unpack boot:laugh:
[Xperia SP Original Android Development] atarax42:
Screen goes black when using dialer app

I upgraded my Xperia SP to LineageOS 15.1 and like on 14.1 the screen goes off when using the dialer app. Last year I had contacted AdrianDC about this issue for 14.1 and he provided a proximity sensor disabler that fixed the issue. I contacted him again now but he seems to be busy and did not reply yet. Does anyone know how to fix this issue?

Thanks a lot!
[Xperia SP Original Android Development] magc880826:
I faced some problems in this rom.

1. gave lot of setup crashes during first boot.

2. Can not read or send new messeges the messeging app faild.

3. Camera not opening.

4. Lot of apps are not responding.

5. some quick access tiles like flashlight not working.

I tested latest two nightly builds but the result was same then I installed 14.1.2 final nightly but the camera is also not working in that rom.

do you guys faced that problems too?

can anyone direct me to stable release of lineage 15 or 14 please.....
[Xperia SP Original Android Development] Onawt:
Wipe everything, do a clean install according to the instructions in first post --> problem solved. Literally no one has reported these issues before. This ROM is rock solid.
[Xperia SP Original Android Development] scruffy1:
my only complaint is the earphone speaker

i replaced it thinking it had failed, and the new one worked for a while, then seems to be non-functioning also

the circuit is intact for the speaker on testing continuity

is this a firmware issue ? has some "update" of other ware glitched it ? i tried installing aosp 8.1 and the phone failed to complete setup... ??? so i am unsure how to test as it's my daily driver so i need it "working" even if i have to use speakerphone as an interim measure

anyone else with problems ? the rest of it works fine
[Xperia SP Original Android Development] blunty21:
Unlock issue

First off i want to say thank you!

I seem to be having and issue with this build, when i try unlocking/wake the phone it doesn't respond 90% of the time, i end up having to reset the phone just to unlock it. Does anyone know how i can fix this issue?

using the following:

twrp-3.2.3.0

lineage-15.1-20190206-nightly-huashan-signed

open_gapps-arm-8.1-micro-20190207

android_lowram_enabler

I'm assuming its something i have done wrong, thanks for the help in advance
[Xperia SP Original Android Development] cdewsxSP:
This behavior is due to Google's libraries, not all opengapps builds work well,

most stable builds are Minds for 8.1 and 9.0, for 7.1 Beans.

MindTheGapps-9.0.0-arm

https://androidfilehost.com/?fid=11410963190603914553

MindTheGapps-8.1.0-arm

https://androidfilehost.com/?fid=3700668719832236373

BeansGapps-Mini-7.1.x

https://androidfilehost.com/?fid=889764386195918677
[Xperia SP Original Android Development] s bandit:
for installing lineage os you must first intall lineage rom + gapps+ su and rebot

then whait to boot phone when system booted again rebot and go twrp and install lowram enabler and rebot, I hope this help you

don't install lowram enabler this lineage and gapps

---------- Post added at 07:57 AM ---------- Previous post was at 07:51 AM ----------

don't install lowram enabler with lineage + gapps

first install rom+gapps+su and rebot,boot system and when system Setting up again rebot to twrp and install lowran enabler

I have this problem too but fixed with this

---------- Post added at 07:57 AM ---------- Previous post was at 07:57 AM ----------

don't install lowram enabler with lineage + gapps

first install rom+gapps+su and rebot,boot system and when system Setting up again rebot to twrp and install lowran enabler

I have this problem too but fixed with this:laugh:

---------- Post added at 07:57 AM ---------- Previous post was at 07:57 AM ----------

don't install lowram enabler with lineage + gapps

first install rom+gapps+su and rebot,boot system and when system Setting up again rebot to twrp and install lowran enabler

I have this problem too but fixed with this:laugh:

---------- Post added at 07:58 AM ---------- Previous post was at 07:57 AM ----------

don't install lowram enabler with lineage + gapps

first install rom+gapps+su and rebot,boot system and when system Setting up again rebot to twrp and install lowran enabler

I have this problem too but fixed with this:laugh:

---------- Post added at 08:13 AM ---------- Previous post was at 07:58 AM ----------

hi cdewsxsp I think lineage os kernel have problem ,now I have xosp 7.1 based on aosp caf 7.1 Adrian dc, work very fast performance is so good ,but aosp caf kernel work such as stock kernel for example when you don't use phone one of core be offlined.

I hope mr Adrian again work on new caf project such as aosp caf 9 and developers Build rom based on aosp caf and use aosp caf kernel

---------- Post added at 08:19 AM ---------- Previous post was at 08:13 AM ----------

hi mr Adrian .are you have decided to work on new aosp caf 8.1 or 9 ?

I hope agin work on new caf project,because this best rom for xperia sp and performance is awesome:laugh:
[Xperia SP Original Android Development] cdewsxSP:
AdrianDC

You can explain why all devices when changing version of android, change profiles, and you are still using profile android 4.3, I tried to play with these settings and was surprised how much good this affects performance.

Please correct framework, active cpu value profile, it will be a breakthrough in slick operation of device.

for example Sirius

Android 4.4.2

<item name = "cpu.idle"> 2.94 </ item>

<array name = "cpu.active">

<value> 70.82 </ value>

<value> 78.34 </ value>

<value> 81.46 </ value>

<value> 105.56 </ value>

<value> 108.29 </ value>

<value> 116.57 </ value>

<value> 122.65 </ value>

<value> 125.45 </ value>

<value> 156.07 </ value>

<value> 160.39 </ value>

<value> 162.6815 </ value>

<value> 165.87 </ value>

<value> 171.9116 </ value>

<value> 179.34 </ value>

</ array>

Android 6.0.1

<item name = "cpu.idle"> 3.34 </ item>

<array name = "cpu.active">

<value> 55.83 </ value>

<value> 60.04 </ value>

<value> 60.53 </ value>

<value> 60.81 </ value>

<value> 61.53 </ value>

<value> 62.37 </ value>

<value> 63.85 </ value>

<value> 65.53 </ value>

<value> 98.39 </ value>

<value> 101.38 </ value>

<value> 102.57 </ value>

<value> 104.31 </ value>

<value> 108.26 </ value>

<value> 118.14 </ value>

</ array>

for example Suzuran

Android 6.0.1

<item name = "cpu.idle"> 4.66 </ item>

<array name = "cpu.active">

<value> 86.18 </ value>

<value> 86.13 </ value>

<value> 88.03 </ value>

<value> 90.52 </ value>

<value> 94.17 </ value>

<value> 96.69 </ value>

<value> 104.51 </ value>

<value> 107.54 </ value>

<value> 110.88 </ value>

<value> 115.25 </ value>

<value> 119.88 </ value>

<value> 123.32 </ value>

<value> 130.85 </ value>

<value> 206.31 </ value>

</ array>

Android 7.1.2

<item name = "cpu.idle"> 4.66 </ item>

<array name = "cpu.active">

<value> 83.34 </ value>

<value> 92.39 </ value>

<value> 105.66 </ value>

<value> 120.27 </ value>

<value> 134.08 </ value>

<value> 146.66 </ value>

<value> 179.14 </ value>

<value> 193.78 </ value>

<value> 211.58 </ value>

<value> 220.23 </ value>

<value> 240.82 </ value>

<value> 258.02 </ value>

<value> 276.53 </ value>

<value> 399.00 </ value>

</ array>

And more about lack of RAM.

You can use Sony Keyaki tricks, use zcache and zswap?

write /sys/module/zswap/parameters/enabled 1

write /sys/module/zswap/parameters/max_pool_percent 100

write /sys/module/zswap/parameters/zpool z3fold

write /sys/module/zswap/parameters/compressor lz4

write /sys/module/zcache/parameters/clear_percent 19200

write /sys/module/zcache/parameters/max_pool_percent 30

write /proc/sys/vm/swap_ratio_enable 1

write /proc/sys/vm/swap_ratio 70

write /proc/sys/kernel/sched_upmigrate_min_nice 7

write /sys/class/net/rmnet_ipa0/queues/rx-0/rps_cpus 2

write /sys/devices/system/cpu/cpufreq/interactive/ignore_hispeed_on_notif 1
[Xperia SP Original Android Development] s bandit:
I change cpu value to suzuran 7.1 but I don't know how change ram setting ,for example :

write /sys/class/net/rmnet_ipa0/queues/rx-0/rps_cpus 2 , where I must write this setting?(file mane)
[Xperia SP Original Android Development] cdewsxSP:
You do not need to copy these values (resolution on consumption of energy is mA), they are individual for each processor, these values are somehow based on version of android and power.qcom.so (https://android.googlesource.com/platform/hardware/qcom/power/+/refs/tags/android-cts-7.1_r25 , https://android.googlesource.com/platform/hardware/qcom/power/+/refs/tags/android-cts-8.1_r13). I'm trying to find out why Adrian stay profile 4.3, when any device when changing version of android, changes profiles framework and qcom library.

.......rps_cpus=****number of processing cores for network

Xperia XZS of kernel bootloader tweaks.
[Xperia SP Original Android Development] cdewsxSP:
my test settings for now

<array name="cpu.active">

<value>55.95</value>

<value>60.27</value>

<value>60.53</value>

<value>60.71</value>

<value>61.13</value>

<value>61.35</value>

<value>63.55</value>

<value>65.73</value>

<value>99.37</value>

<value>101.25</value>

<value>103.37</value>

<value>104.51</value>

<value>108.39</value>

<value>118.17</value>

</array>

<item name="cpu.awake">47.25</item>

<item name="cpu.wakeup">140</item>

plus qcom library

View attachment power_712.zip

test of several days, battery consumption is less than usual...
[Xperia SP Original Android Development] s bandit:
now i have problem with cpu value

how you change cpu value?

and how you chang ram setting?

are you unpack system.new.dat ??:eek:
[Xperia SP Original Android Development] cdewsxSP:
nothing terrible will happen, just specifying large values of mA will increase power consumption

yes, if I make a lot of changes to build

decompile bootloader and change what you want

for example low ram config OFF, look screenshot