yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device General] drakonizer:
Looks like you have the deep sleep issue too huh. If you finfd out why, please share it here.
[Sony Cross-Device General] drakonizer:
This is what I get in BBS
[Sony Cross-Device General] Masterblop:
I tried the rom this morning (built from source), the camera preview is no longer the problem of the split screen. I have the problem of the unrecognized sim. Could someone explain to me how and where to put the modem files?
[Sony Cross-Device General] aquaboy11:
Put them in your /system/etc/firmware folder and set permissions to 644.
[Sony Cross-Device General] Masterblop:
I want to compile the ROM with the modem files already installed :p
[Sony Cross-Device General] [Fenix]:
There's no need to do that. Flash modem (baseband) ONLY from your last official sony firmware using flashtool instead (be careful of what you select to flash/wipe)

Don't want to be rude but, as stated before, we should keep this thread for devs only and not make it something like "how to" :)
[Sony Cross-Device General] munjeni:
No drains and no problems with supersu
[Sony Cross-Device General] munjeni:
What says your logcat? logcat | grep SIGSEGV

Edit:

I forgot to say about ac... ac charging not working for me! Going to fix that stupid bug
[Sony Cross-Device General] aquaboy11:
Here is what my BBS says. Grep can't find anything named SIGSEGV in my logcat, but that might be because I rebooted recently. I'll try it later today too to see if it finds something.
[Sony Cross-Device General] drakonizer:
Apparently a couple of N5 users had the same bug and was fixed by referring to an older baseband. I'm using the one from KK. Maybe I should update. Btw which device and model are you using?
[Sony Cross-Device General] aquaboy11:
I'm using the Xperia Z1 C6903, with the latest modem files from [MENTION=359497]jerpelea[/MENTION]'s Github.
[Sony Cross-Device General] Myself5:
i doubt you are really meaning jerpeleas git. His git is actually empty. When you are refering to SuperBenevolent, that is by a secret groups of sony devs.

Remember, there is a reason why all teams dont host blobs on their own page ;) jerpelea would get into big trouble putting the blobs on git, as that would require skipping the disclaimer before downloading, which after all is a legal requirement.
[Sony Cross-Device General] aquaboy11:
Oops, you're right, I meant SonyAosp on github. But at the time of finding it I was sending something to [MENTION=359497]jerpelea[/MENTION]. Must have gotten mixed up in my memory :p.
[Sony Cross-Device General] munjeni:
I'm using modem and mba firmware from cm11 rom since it was faster one on initialisation (as a result there is no more too late mobile icon)! And have no drains like that!
[Sony Cross-Device General] munjeni:
I have finaly fixed stupid ac/usb switch, it now working for me perfectly, hope to you to, also done some merges using some usb security fixes from rb1.6
[Sony Cross-Device General] munjeni:
What about camera? Why pictures is soo dark? Does we can expect fix for it on v6?
[Sony Cross-Device General] jerpelea:
yes
[Sony Cross-Device General] m0d:
V5 only for 6.0.1 ?

Before the binaries were for both 7.0 and 6.0.1

Not anymore?

Thank you
[Sony Cross-Device General] Myself5:
All 6.0.1 blobs can be used on 7.x.x
[Sony Cross-Device General] m0d:
In that case, for z3 compact with the latest v5 release the front camera is upside down in preview.
[Sony Cross-Device General] munjeni:
As I know it is upside down on v4 too! But one more thing, I can see now sonyxperiadev camera hal is swithed to hal3, but there is no preview? Or it missing only in hal which I'm using?
[Sony Cross-Device General] m0d:
6.0.1 and 7.0 still use hal1:

persist.camera.HAL3.enabled=0

Only 7.1 uses hal3, master branch.

Edit:

Also, aosp camera app not working well.

Could not connect to camera even after reboot.

Only after I installed FreeDCam and opened app, which worked, then I was able to use aosp camera app too.

As you said, very dark more than before, (always was dark, needs +1 or +2 most of times), but will be calibrated.
[Sony Cross-Device General] SuperLamic:
there was a discussion on hangouts and 7.1 = master branch on git is meant for 3.18 kernel... (and for msm8996 is hal3 mandatory)
[Sony Cross-Device General] munjeni:
On hal which I'm using there is no can't connect to camera. In hal3 mode i can take picture but no preview. On dualcam mode everything right except crash in hdr mode and very dark preview and picture. On front cam picture ok but preview upside down, no crashes in dualcam mode. On video recorder preview is ok, dark, but recorder frezes if I take a record, camera app not crashes if i switch back to camera, in any way I have no "can't connect to camera".
[Sony Cross-Device General] :
Please stop asking this question. This is XDA, and there's many threads here to help you port it to your device yourself. This isn't a department store. Go, learn, and help yourself. :good:
[Sony Cross-Device General] nailyk:
off-topic: LCD panel

Sorry for late. I try again with my original panel (D6603) and a freshly build 1.3.3 kernel and still have screen flickering.

Also one of my new (cheap) panel doesn't work at all with the 1.3.3 (backlight ok, no display). Two other works fine. It was late so I didn't collect logs for now.
[Sony Cross-Device General] mcgi5sr2:
Will 3.18 kernel be developed for msm8974 as well? I have seen a pull request from Kholk to add legacy to the kernel, and am now wondering if/when I could start testing the new kernel line. Clearly I will be waiting to see if a defconfig is generated.
[Sony Cross-Device General] SuperLamic:
don't know, they are not working on msm8974 for now. They need to port new devices first, then msm8994 ones and then ,if it is possible, msm8974.

It will be long time...
[Sony Cross-Device General] munjeni:
3.18 can be solved by uart cable and deep debuging, anyway I think we realy no need 3.18 since 3.10 on 1.3.3 branch working very well, we need to be focused on fixing remaining bugs which is very less. We can use things with latest adroid and it will work very well, almost for daily usage (I am using it more than 3 days daily). Flickering isues and etc... nobody giving feedback about hal and camera which I have posted few pages back, again I can say display and videos flying, no flickering isues, its very smooth! No feedback about last usb patch which I provided, without feedback it will not be merged to the 1.3.3 branch, hope you know that.
[Sony Cross-Device General] drakonizer:
I used your display HAL and ran into compilation issues (1.3.6), so I moved back to sonyxperiadev's HAL. I tried your previous USB patch and it worked wonderfully. I am currently building with your new patch and will post my findings here.
[Sony Cross-Device General] SuperLamic:
well then PR it and join hangouts group. There are people with rhine or shinano that can test or review.
[Sony Cross-Device General] nailyk:
I wanna test your usb patch but on IRC they told me it is useless as my device is shinano.

For camera cm-14.1 is still at really early stage (for now still bootloop at wifi connect, no bluetooth, sensorsd not starting, etc...) and my device is now in separte parts after my panels testings ;)

But as soon as I get relevant result I will let you know. I'm just slower than all of you :o
[Sony Cross-Device General] munjeni:
I'm on AOSP 7.1.0 and I will be focused on AOSP only.

Than whats is a purpose of this thread? Lets speak here! Our thread is for that purpose I'm hope. Anyway I have opened a new thread for z1c http://xdaforums.com/sony-xperia-z1-compact/orig-development/rom-t3492473
[Sony Cross-Device General] munjeni:
You need to build kernel, for example use this

#!/bin/bash

apt-get install lzop

CURPATH=`pwd`

mkdir -p $CURPATH/out/target/product/amami/obj/KERNEL_OBJ

cd $CURPATH/kernel/sony/msm

make ARCH=arm CROSS_COMPILE=$CURPATH/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- O=$CURPATH/out/target/product/amami/obj/KERNEL_OBJ aosp_rhine_amami_defconfig

make ARCH=arm CROSS_COMPILE=$CURPATH/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- O=$CURPATH/out/target/product/amami/obj/KERNEL_OBJ

make ARCH=arm CROSS_COMPILE=$CURPATH/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi- O=$CURPATH/out/target/product/amami/obj/KERNEL_OBJ headers_install

cp -fr $CURPATH/out/target/product/amami/obj/KERNEL_OBJ/usr/include/* $CURPATH/device/sony/common-headers/kernel-headers/

cd $CURPATH/device/sony/common-headers/kernel-headers
for TT in `git ls-files --others --exclude-standard`; do rm -rf $TT; done
for TT in `git status | grep deleted | awk '{print $2}'`; do git checkout -- $TT; done

cd $CURPATH

exit 0

It will export kernel-headers and overwrite existing one. Than things will compile
[Sony Cross-Device General] munjeni:
We have problem in audio during call, we hear partner ok but parther hears his voice with echoes. Does aosp have any extended audio setting like soundfx and etc? I can't see any option for controling audio settings like "voice echo canceling", equaliser ..etc. We already have soundfx blobs and also there is libqcomvoiceprocessing.so which is for voice echo cancelation, but I can't see any option for controling that property, do we missing something e.g. an bool in settings res or framework-res?
[Sony Cross-Device General] brickhayabusa:
[MENTION=4120742]munjeni[/MENTION]

the front camera works for you?
[Sony Cross-Device General] mcgi5sr2:
We had a similar issue on the Shinano board (Aries) a while back. The last builds I tested (5 days ago) my partner didn't report any such issue.

Can I see the code changes as a PR for the USB fix please?
[Sony Cross-Device General] [Fenix]:
If i remember correctly, mic issue with call was fixed some time ago

https://github.com/sonyxperiadev/device-sony-rhine/commit/14a0acbfd9e53a0adcd5198efd5980839e186f27
[Sony Cross-Device General] munjeni:
http://xdaforums.com/showpost.php?p=69416368&postcount=469
[Sony Cross-Device General] munjeni:
What is a "PR" ? http://xdaforums.com/showpost.php?p=69413218&postcount=460
[Sony Cross-Device General] [Fenix]:
I think he meant Pull Request for git bro :laugh:

That file will be fine imo
[Sony Cross-Device General] munjeni:
Somebody reported incall echo isue (on partner side partner hears its own voice echo), I forgot who, its on this thread reported

Edit:

He -> http://xdaforums.com/showpost.php?p=69430223&postcount=8

Anybody unconfirm this?
[Sony Cross-Device General] mcgi5sr2:
Will set off a build using 1.3.3 and 7.1 tomorrow with your USB patch to test. I can then report on the sound issue as well.
[Sony Cross-Device General] nailyk:
bounty

Seems a bounty for camera on shinano is open :)
[MENTION=4901061]mcgi5sr2[/MENTION]
[Sony Cross-Device General] drakonizer:
Well, camera will become stable after [MENTION=359497]jerpelea[/MENTION] releases the new blobs, so maybe the bounty goes to him/Sony?

On the other hand, it's unlikely the fisheye defect would be solved with the blobs. So maybe the bounty is meant to remain unused forever.
[Sony Cross-Device General] munjeni:
What is a progress?
[Sony Cross-Device General] mcgi5sr2:
Sorry [MENTION=4120742]munjeni[/MENTION]

the two builds i did completed fine, but unfortunately I have had to send my device to the sony repair center as a broken gasket on the usb port cover has led to water ingress. Fingers crossed they will repair it under warranty, if not I will have to look at the options.
[Sony Cross-Device General] SuperLamic:
[MENTION=4120742]munjeni[/MENTION]

just a report for you: for me charging patch works just fine. (honami) Connections are recognized flawlessly. (just sometimes battery shows -22 percents, but that's not connected to charging. In kmgs was something like reading error r=-22... didn't save the log...)

but there are people in thread of my builds that report "phone still doesn't charge". I got no logs though.
[Sony Cross-Device General] brickhayabusa:
already charges well, but if open the camera for 1-2 minutes or open a game, the led turns off and stops charging ( while the icon shows that it's charging.)
[Sony Cross-Device General] SuperLamic:
That's because phone overheats and thermanager reduces current to none or some low value.
[Sony Cross-Device General] munjeni:
There is some errors in QPNP kernel module which reports some errors, anyway I don't cares about that since I think every battery have its own charging hardware which controls overcharging and etc, I am happy with working usb, mtp and proper charging source detection, not tried mhl. Im waiting working blobs for camera, until that happen I'm on another hobby now
[Sony Cross-Device General] brickhayabusa:
thanks for your efforts [MENTION=4120742]munjeni[/MENTION]
[Sony Cross-Device General] :
Great, this is a cool thread.

So can someone keep me updated with what's happening? I got a Z3C. I read that the new blobs fixed a couple of stuff. What is working and not now? What issues are you guys trying to fix now?

Thanks!
[Sony Cross-Device General] drakonizer:
Well, things are sort of messed up, because some people claim that they have bugs that other people have no idea about. Overall:

-> Charging is working well with munjeni's patch for most people (some people say their devices aren't charging)

-> Deep Sleep is broken in certain ROMs (AOSP for example, but I think it's solved by cherry-picking some commits)

-> Camera (we're waiting for new blobs, but the camera doesn't always open. If it crashes, you'll need to reboot to get it working again. These crashes need to be fixed.)

-> Battery drain (Not too sure about this, but my battery life is worse (by a little, not much) than in LP/stock ROMs.

-> MHL is broken (not relevant for most people, but for those interested in trying stuff like MaruOS, you'll need this).

But when you start using it, you'll realize these bugs are all very minute (except cam) and that this is certainly daily driver material.
[Sony Cross-Device General] :
Is all this on AOSP? Someone built AICP 12 for Z3CT and said system is functional.
[Sony Cross-Device General] SolohunteR:
Hello everyone :)

I've done some research regarding the in call echo bug and came across some resources maybe they are going to be useful

1- CM Forums - various devices and android versions discussing almost the same bug

2- fix attempt - source: OPO forums - source 2: CM Forums

3- bug existed before on sirius and was fixed on cm-12.1-20150512-NIGHTLY-sirius source -CM jira

4- CM gerrit link 1 - link 2
[Sony Cross-Device General] munjeni:
I found that we have missing libacdbloader.so and acdb calibration files! Is that libacdbloader.so exist in cm12 ???

About things related to https://forums.oneplus.net/threads/fixed-for-good-microphone-issue.222059/ :

property_get("[COLOR="Red"]ro.qc.sdk.audio.fluencetype[/COLOR]", value, "none");
if (!strcmp("fluencepro", value)) {
my_data->fluence_type = FLUENCE_PRO_ENABLE;
} else if (!strcmp("fluence", value) || (dual_mic_config)) {
my_data->fluence_type = FLUENCE_ENABLE;
} else if ([COLOR="Blue"]!strcmp("none", value)[/COLOR]) {
my_data->fluence_type = FLUENCE_DISABLE;
}

we no need that property value "none" since FLUENCE_DISABLE is by default!

I think bug is related to missing libacdbloader and its acdb calibration files! Somebody check for that lib existence in cm12 rom? If you found that lib in cm12 rom copy them to rom and also copy all acdb files from /system/etc/acdbdata , reboot device, and please let me know if your parter have echo in call with you, I'm on stock rom can't test
[Sony Cross-Device General] Myself5:
https://github.com/SuperBenevolent/aosp-vendor-qcom-extras would be what you want ;)

Regarding the fix: ro.qc.sdk.audio.fluencetype is indeed unset (so it is none as you pointed out), however, persist.audio.fluence.speaker is true, instead of the false it is supposed to be.
[Sony Cross-Device General] SolohunteR:
i found an old cm12.1 build on my pc and i can confirm libacdbloader.so exists in vendor/lib also i've packed the files you asked about in case someone can try because i'm currently busy with my exams

edit: one more thing i also unpacked the 7.1 aosp rom by rcstar and found that the lib also exists in his builds
[Sony Cross-Device General] munjeni:
Thats not true! When ro.qc.sdk.audio.fluencetype=none (or in our case on z1c these property missing) ro.qc.sdk.audio.fluencetype=none is by default FLUENCE_DISABLE. And by that thing all that other fluence property is FALSE by default! See byself:

[COLOR="Red"]my_data->fluence_in_spkr_mode = false;[/COLOR]
my_data->fluence_in_voice_call = false;
my_data->fluence_in_voice_comm = false;
my_data->fluence_in_voice_rec = false;

property_get("ro.qc.sdk.audio.fluencetype", value, "none");
if (!strcmp("fluencepro", value)) {
my_data->fluence_type = FLUENCE_PRO_ENABLE;
} else if (!strcmp("fluence", value) || (dual_mic_config)) {
my_data->fluence_type = FLUENCE_ENABLE;
} else if (!strcmp("none", value)) {
[COLOR="Red"]my_data->fluence_type = FLUENCE_DISABLE[/COLOR];
}

if ([COLOR="Red"]my_data->fluence_type != FLUENCE_DISABLE[/COLOR]) {
property_get("persist.audio.fluence.voicecall",value,"");
if (!strcmp("true", value)) {
my_data->fluence_in_voice_call = true;
}

property_get("persist.audio.fluence.voicecomm",value,"");
if (!strcmp("true", value)) {
my_data->fluence_in_voice_comm = true;
}

property_get("persist.audio.fluence.voicerec",value,"");
if (!strcmp("true", value)) {
my_data->fluence_in_voice_rec = true;
}

property_get("persist.audio.fluence.speaker",value,"");
if (!strcmp("true", value)) {
my_data->fluence_in_spkr_mode = true;
}
}
[Sony Cross-Device General] munjeni:
it need some more!

.plt:00001098 ; Needed Library 'libacdbrtac.so'
.plt:00001098 ; Needed Library 'libadiertac.so'
.plt:00001098 ; Needed Library 'libaudcal.so'

Probably these 3 also need some more!
[Sony Cross-Device General] m0d:
All three included in qcom-extra repo:

https://github.com/SuperBenevolent/aosp-vendor-qcom-extras/tree/m-mr1/generic/vendor/lib
[Sony Cross-Device General] munjeni:
ok
[Sony Cross-Device General] brickhayabusa:
[MENTION=4120742]munjeni[/MENTION] works with honami 7.1?

thnx in advance
[Sony Cross-Device General] munjeni:
Thats from Amami rom, I don't know if it even working on AOSP! You can try. I got libthermal and libthermalioctl working, and it was also from the same rom extracted. Maybe this also work I don't know. Try and let us know :)
[Sony Cross-Device General] broky:
i could try but i can t download rom(i formatted my PC),

torrent shows no peers:(

edit:downloading from MEGA and test,now i saw this link:good:
[Sony Cross-Device General] munjeni:
There is mega link! http://xdaforums.com/sony-xperia-z1-compact/orig-development/rom-t3492473
[Sony Cross-Device General] broky:
unluckily,during call i here my voice echo and the other line hears echo of both voices,his and mine..

of course mase a clean install
[Sony Cross-Device General] munjeni:
Great! We now know that things is related to acdb . These is a acdb pack from https://github.com/SuperBenevolent/aosp-vendor-qcom-extras, you can try?
[Sony Cross-Device General] broky:
of course ASAP
[Sony Cross-Device General] munjeni:
Uploaded... see post above

Edit:

Please redownload I made some mistake sorry :(
[Sony Cross-Device General] broky:
now caller hears his echoe..

my voice does not echoe,i don t hear it now..

take it easy,i will test anything if you want to try something new:good:
[Sony Cross-Device General] munjeni:
So things with seccond patch is the same like was before our two patches?
[Sony Cross-Device General] broky:
I think last zip is slightly better,but maybe just mine placebo.

I did clean install ,flashed the last zip,made two calls,one with echoe,second one no echo on my side but the other guy did not hear me well (he was not a test guy,it was my regular call),so

i suppose he just did not mention about echoe.

it can only be my phone performing like this,i think we should have other people report too.

I m not bored trying,i want to help as much i can to get a solution.

Thanks for your trying attitude.

Edit:third call,my side has no probem,the other side hears both voices echo.
[Sony Cross-Device General] munjeni:
Is that echo behavior present for example when you call someone and also when someone calls you, the same echo is pressent on booth? I had no time for looking into xml file for plugins (to see if lib for echo cancelation is in that xml), im on stock rom. Just guesing... probably we no need that two patches, instead I think we need to activate echo cancelation somehow. I don't understand why we can't see any of the audio settings in setting menu, for example equaliser and other but we have audio plugins (libs) present, and also we have xml file which loads that plugins but stil nothing in settings menu leraled to it, anybody have idea?
[Sony Cross-Device General] broky:
i can test this but not now..

i will report tomorrow.
[Sony Cross-Device General] munjeni:
Well, I found something about aec

diff --git a/rootdir/system/vendor/etc/audio_effects.conf b/rootdir/system/vendor/etc/audio_effects.conf
index 22d432c..a5724a5 100644
--- a/rootdir/system/vendor/etc/audio_effects.conf
+++ b/rootdir/system/vendor/etc/audio_effects.conf
@@ -33,6 +33,9 @@ libraries {
loudness_enhancer {
path /system/lib/soundfx/libldnhncr.so
}
+ volume_listener {
+ path /system/lib/soundfx/libvolumelistener.so
+ }
}

# Default pre-processing library. Add to audio_effect.conf "libraries" section if
@@ -206,11 +209,32 @@ effects {
}
aec {
library qcom_pre_processing
- uuid 685707c0-0306-11e6-be79-0002a5d5c51b
+ uuid d2f1b180-4a8c-11e5-9883-0002a5d5c51b
}

Will play with efects in next few days, curently I can see that uuid of the acoustic echo canceler is diferent on lge device tree but I will enable more debug logs to see wahts going on on audio...
[Sony Cross-Device General] broky:
just to let you know tested this,same thing is happening
[Sony Cross-Device General] munjeni:
I have no idea whats going on, why music app have no audio settings like equaliser, found equaliser only after install google music but seems equaliser is not working since no changes in audio. Done some audio efects modification and recompiled libs and I must say i have no in call echo (its soo tiny present, not iritated, almost like no echo), you can try!
[Sony Cross-Device General] broky:
i m on stock now but i will give it a shot to tell..

edit:my side no echoes but caller side echoes are there,both ways incoming and outgoing,same think happens.

i m going back to stock again.
[Sony Cross-Device General] jerpelea:
those libs are not needed
[Sony Cross-Device General] munjeni:
I found smething about that in logcat and added it, thats all ,for which usage is that libs I have no idea
[Sony Cross-Device General] munjeni:
[MENTION=359497]jerpelea[/MENTION] please revert this commit https://github.com/sonyxperiadev/device-sony-rhine/commit/ff7514136d903ea3c79cbc0b3eb152cf0bfa87df

That commit cause apps_log partition corupt while on aosp rom, but if I restores stockrom backups things like bt, wifi, camera and many more things not working since corupted apps_log partition! Everytime after restoring stockrom backup I must flash apps_log.sin to get things working! Revert that please!
[Sony Cross-Device General] davidteri91:
That partition in aosp is needed by recovery .... If you want go back to stock then you are forced to pass with flashtool (Emma) then it will rewrite your apps_log partition and all will work fine .... In aosp that partition is unused and can be used as misc .....

Inviato dal mio F8131 utilizzando Tapatalk
[Sony Cross-Device General] munjeni:
Needed by recovery? For what? That commit is not a good solution, you must think to use something diferent for misc. The most peoples uses twrp instead of aosp recovery, so... the best thing would be revert since that commit breaks all androids before nougat and cause backups usable! You must think about peoples who don't have PC for flashing that apps_log!!! That commit is a stupid solution.
[Sony Cross-Device General] davidteri91:
Sure .... Can you bring us magical partition for use as misc ???? If yes send the PR .....

Inviato dal mio F8131 utilizzando Tapatalk