Sunday, 2021-10-10

T42<A_T_R> WARNING: CONFIG_SECURITY_SELINUX_BOOTPARAM is invalid07:05
T42<A_T_R> how to propely enable selinux enable for hybris-1707:05
T42<A_T_R> 17.107:05
T42<A_T_R> how to propely enable selinuxfor hybris-17 (edited)07:05
T42<A_T_R> # CONFIG_AUDIT is not set07:06
T42<A_T_R> BoardConfig.mk07:07
T42<A_T_R> BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive07:07
T42<A_T_R> BOARD_KERNEL_CMDLINE += selinux=007:07
T42<A_T_R> .config07:07
T42<A_T_R> # CONFIG_AUDIT is not set07:07
T42<Verevka86> https://github.com/SailfishOS-sagit/android_kernel_xiaomi_msm8998/commit/c12b32026cc648008dadc80bf5febe7a4cfc0a2d07:33
T42<Verevka86> Set 0 if u want to disable selinux (re @A_T_R: WARNING: CONFIG_SECU...)07:33
T42<elros34> @A_T_R obviously to enable selinux you would need to revert your config_audit change and selinux=0 but that will not help anyway. You have already tried it. You need to figure out why kernel fail. For example try flashing boot.img to see if it change anything, try with minimal defconfig changes or different compiler/kernel.09:00
T42<elros34> Maybe also provide host dmesg I asked from the first boot after flashing kernel09:01
T42<A_T_R> cmdline09:02
T42<A_T_R> androidboot.selinux=permissive09:02
T42<A_T_R> selinux=009:02
T42<A_T_R> now compiling with config_audit=y09:02
T42<elros34> what you want to achieve now? disable selinux "selinux=0" or selinux mode set to "permissive"?09:04
T42<A_T_R> enable selinux09:05
T42<elros34> by adding selinux=0?:)09:05
T42<A_T_R> oh ,it set selinux disable .09:10
T42<elros34> also revert your CONFIG_DEFAULT_SECURITY_SELINUX=y removal09:10
T42<A_T_R> .config09:12
T42<A_T_R> CONFIG_DEFAULT_SECURITY_SELINUX=y09:12
T42<elros34> ok then, I only see your defconfig which has it removed09:13
T42<A_T_R> host dmesg https://pastebin.com/3Qrr5Dzp09:15
T42<A_T_R> problem missing initrd in kernel09:16
T42<A_T_R> * kernel size       = 15620417 bytes (14.90 MB)09:16
T42<A_T_R>   ramdisk size      = 20 bytes (0.00 MB)09:16
T42<elros34> so where in this dmesg first boot after flashing starts? Did you export needed env variable before building kernel?09:17
T42<A_T_R> Did you export needed env variable before building kernel?09:20
T42<A_T_R> no i guess09:20
T42<elros34> how about my first question, line 1, 8 or 16?09:20
T42<A_T_R> line 1609:21
T42<A_T_R> line 1-14 while device in fasbtoot09:21
T42<A_T_R> abooting -i hybris-boot.img09:22
T42<A_T_R> https://pastebin.com/vQz4rJr409:22
T42<elros34> yeah, set that env variable09:24
T42<A_T_R> what is that env variable ?09:24
*** ggabriel_ is now known as ggabriel09:24
T42<elros34> the same we were talking yesterday and it's in hadk-faq hybris-17 section. If it's missing then initramfs is empty09:25
T42<A_T_R> my mistaek i did export TEMPORARY_DISABLE_PATH_RESTRICTIONS=true09:28
T42<elros34> try making any  change in kernel then export it just before make hybris-boot and show your output from that09:31
T42<A_T_R> cpio missing in my machine09:31
T42<elros34> it's not allowed to be used without that env09:32
T42<A_T_R> [ 99% 941/946] Making initramfs : out/target/product/X00TD/obj/ROOT/hybris-boot_intermediates/boot-initramfs.gz09:37
T42<A_T_R> /bin/bash: cpio: command not found09:37
T42<elros34> "which cpio" can't find it also?09:41
T42<A_T_R> from terminal https://pastebin.com/cGYGJmEd09:41
T42<hmmrock> I am curious to know that what is sailfish OS09:49
T42<hmmrock> Is it like Ubuntu touch???09:49
ThaodanWhever audio is in use I get warnings like  SM8150 Media1: ASoC: no backend DAIs enabled for SM8150 Media110:49
ThaodanI guess that's normal?10:49
ThaodanAOSP 10, Sony Xperia I10:49
T42<A_T_R> can anyone check the initramfs file size -here```hadk/out/target/product/X00TD/obj/ROOT/hybris-boot_intermediates/boot-initramfs.gz```11:36
T42<elros34> ~0.5MB. So have you checked that "which cpio" returns something?11:38
T42<A_T_R> ABUILD_SDK [x00td] atr@atr-G41D3C:~/hadk$ which cpio11:38
T42<A_T_R> HABUILD_SDK [x00td] atr@atr-G41D3C:~/hadk$11:38
T42<A_T_R> "which cpio" returns nothing11:39
T42<A_T_R> in habuild11:39
T42<elros34> which ubuntu version do you use? On older it's installed. Try to install it11:40
T42<A_T_R> my host : ubutnu version 20.04.211:40
T42<A_T_R> habuild ubuntu- latest ubuntu-focal11:40
T42<A_T_R> Ubuntu-chroot11:41
T42<A_T_R> https://releases.sailfishos.org/ubu/ubuntu-focal-20210531-android-rootfs.tar.bz211:41
T42<A_T_R> HABUILD_SDK [x00td] atr@atr-G41D3C:~/hadk$ apt install cpio11:43
T42<A_T_R> E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)11:43
T42<A_T_R> E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?11:43
T42<A_T_R> HABUILD_SDK [x00td] atr@atr-G41D3C:~/hadk$ sudo apt install cpio11:43
T42<A_T_R> sudo: account validation failure, is your account locked?11:43
T42<A_T_R> HABUILD_SDK [x00td] atr@atr-G41D3C:~/hadk$11:43
T42<elros34> it's known issue, you need to fix it. IN the mean time just chroot /path/to_ubuntu/ and install it11:50
T42<A_T_R> in platform_sdk11:59
T42<A_T_R> sudo chroot $PLATFORM_SDK_ROOT/sdks/ubuntu/ /bin/bash11:59
T42<A_T_R> chrooted11:59
T42<A_T_R> in chroot12:00
T42<A_T_R> apt-get install cpio12:00
T42<A_T_R> error - https://pastebin.com/VebNncGe12:00
T42<A_T_R> finally install cpio in chroot...12:49
T42<A_T_R> compiled new kernel - booted to ui12:57
T42<birdzhang> @A_T_R https://t.me/sailfishos_porters/12703514:18
T42<A_T_R> how to install *.rpm file for test ?16:12
T42<elros34> tap on it:)16:12
T42<elros34> or rpm -U path/to/rpm16:15
T42<A_T_R> i used to build rpm/dhd/helpers/build_packages.sh --mw=https://github.com/SailfishOS-sagit/mapplauncherd && -i image ...atleast i could setup initial language the same issue looping the loading icon16:40
T42<A_T_R> then*16:40
T42<elros34> we are debugging issues by getting logs so you should get journalctl instead17:35
T42<A_T_R> https://pastebin.com/tZNS2Vpw17:36
T42<A_T_R> journalctl17:36
T42<A_T_R> library "libGLESv2_adreno.so" not found17:38
T42<A_T_R> Sep 08 19:49:54 MAXPROM1 invoker[6796]: library "eglSubDriverAndroid.so" not found17:38
T42<A_T_R> Sep 08 19:49:55 MAXPROM1 invoker[6799]: library "libGLESv2_adreno.so" not found17:38
T42<A_T_R> Sep 08 19:49:55 MAXPROM1 invoker[6799]: library "eglSubDriverAndroid.so" not found17:38
T42<A_T_R> /odm@SailfishFreenodeIRCBridgeBot17:40
malthose messages are quite normal17:42
ThaodanI get them too17:50
Thaodanannoying but normal17:50
Thaodan@b100dian: Testd your ngfd PR works better now.17:51
mal@A_T_R are you able to get any output from /usr/libexec/droid-hybris/system/bin/logcat ?17:53
T42<b100dian> Thaodan: anything still broken?18:02
Thaodansee comments on pr18:02
Thaodanvibration on incoming notification is a bit intense or other notifications are delayed my phone is vibrating for minutes now18:05
Thaodanthe vibration stops when another apps uses the daemon18:06
Thaodanah the long vibration comes from unlocking my phone with the fingerprint sensor18:10
rinigusspeaking of annoying messages - mal, have you had a chance to look for /dev/sailfish/home probing by encsfa-fpd?18:37
T42<b100dian> Thaodan I have one vibration that won't stop, that is alarm. I have it set as constant for 4 seconds, since ngfd fails to stop it sometimes. is fingerprint unlocking a constant effect took?18:47
Thaodanb100dian: Sorry but I didn't change the values you had set for custom after I took them from your port.19:20
malrinigus: no, sorry, forgot about it19:21
T42<b100dian> ah, but I don't have fingerprint reader19:21
Thaodanb100dian: All vibrations are now set to 240s duration that's the issue19:22
T42<b100dian> regardless of config, that is?19:23
Thaodanthat vibration is the touch_strong  I guess that is what any app can request.19:25
ThaodanI think it's regardless of config since every vibration is 240s now.19:25
Thaodan_CUSTOM also isn't really saying much. If possible it would be great do handle custom and sine waveform vibrators transparent.19:27
T42<b100dian> yes, but we don't know beforehand how a driver is configured to treat custom ints. or maybe I misinterpret your suggestion19:32
T42<b100dian> I'll be at the keyboard in some  mins bte, cannot look at the config now19:32
T42<b100dian> *30 mins19:33
ThaodanMy suggestion is to do the conversion of those custom ints in ngfd is possible or at least keep the configuration  as easy as possible/non-device specific.19:41
Thaodanand I noticed that you don't have your branch rebased against master, please do that while testing your changes.19:50
T42<b100dian> I have that in my fork's master. was OK with the last changes on my device but definitely there's something more to it19:56
ThaodanI mean upstream master.19:57
T42<b100dian> I have the last commit from 27 days ago merged into https://github.com/sailfishos-on-tucana/ngfd/commits/master (not rebased) if that helps19:59
T42<b100dian> back at the keyboard: looking at the logs, the only effect in your config with 24000 duration is ringtone. Does changing that also change the fingerprint unlock duration?20:02
T42<b100dian> I ask because, the reason I implemented the CACHE_EFFECT define was that my device was effectively using the last effect uploaded even when I said to it to play another one. Maybe this is the case here, the last effect uploaded is ringtone and its duration is re-used?20:03
Thaodanah ok, I was only looking at that feature branch. I don't like to change master and prefer to be in sync with upstream. I try again now and provide new logs.20:04
ThaodanLooked again. The issue is that the default duration value is now 240ms.20:11
ThaodanYou can test the long vibration type in the components app under haptics.20:11
T42<b100dian> Sorry I cant test right, I broke my device today (in an unrelated way:). So NGF_DEFAULT_DURATION has been 240ms since long. How is this an issue, is it that it translates to 240s? if yes I need to look into that driver again20:17
Thaodanof I'm sorry. Ok than I maybe mixed something up since also those notications that had the warning are so long.20:20
T42<b100dian> which warning?20:26
T42<b100dian> >  ffmemless: short_DURATION not defined, using 240ms ?20:26
ThaodanI checked again now with the last commit you made all notications duration's are really long. E.g. I pressed the stop watch button and the effect was still there after 8min20:38
rinigusmal: no problem, I forgot to remind as well :)20:47
T42<b100dian> Thaodan: do you have  "upload constant effect, length" message in dmesg like here https://github.com/mer-hybris/android_kernel_sony_msm/blob/hybris-sony-aosp/LA.UM.7.1.r1/drivers/input/misc/qti-haptics.c#L859 ?20:54
T42<b100dian> For later: if you could boot into AOSP with magisk and as root strace vendor.qti.hardware.vibrator@1.2-service, can you see EVIOCSFF ioctls?20:56
T42<b100dian> (one thing I did to simulate dual boot was to remove fileencryption=ice from /vendor/etc/fstab.qcom and then just flash boot.img and hybris-boot.img alternatively. The former needs magisk flashed on top if you need root)20:58
Thaodansorry I don't have aosp running just SailfishOS21:16
ThaodanI don't have those upload constant effect, length in dmesg21:19
Thaodan@b100dian: I ran the service with strace under SFOS without ngfd running of course: https://dpaste.org/3NyN21:29
T42<b100dian> Those would have been interesting while the actual vibrator is in use under android..21:59
T42<b100dian> don't remember where the components app comes from (store?). It might use  qt5-feedback-haptics-droid-vibrator or qt-mobility-haptics-ffmemless which I didn't touch.22:01
T42<b100dian> but fingerprint unlock is definitely a ngfd problem:-S22:01
T42<b100dian> according to  https://www.kernel.org/doc/html/v4.11/admin-guide/dynamic-debug-howto.html#controlling-dynamic-debug-behaviour you can try # echo 'file <qti-haptics.c> +p'>/sys/kernel/debug/dynamic_debug/control22:06
ThaodanI use ffmemless native vibrator all apps use qt5-feedback-haptics vibrator with native or droid backend depending on the point22:07
T42<b100dian> here's what I use https://github.com/sailfishos-on-tucana/droid-hal-version-tucana/blob/master/rpm/droid-hal-version-tucana.spec#L13 https://github.com/sailfishos-on-tucana/droid-config-tucana/blob/efe825957b2fd5f3a20c5830cac2af6390571112/patterns/patterns-sailfish-device-adaptation-tucana.inc#L2922:11
T42<b100dian> basically ffmemless on Qt side to (which doesn't work. so you get no keyboard vibration for example). But at least it doesn't act up22:11
T42<b100dian> (I was planning to add custom effect support for Qt but didn't got the time)22:14
ThaodanThis should be the same if I'm not wrong. You don't need to add support on Qt side since Qt has a ngfd plugin.22:17
T42<elros34> qt apps can use ngfd but they do not have to, components example use qt not ngfd22:22
T42<elros34> In lipstick you can find ngf usage in qml. They are not same22:24
ThaodanEverything that uses Qt-Feedback uses ngfd at least.22:27
T42<elros34> how?22:27
T42<elros34> qtfeedback use qt plugin not ngfd22:27
T42<elros34> here is memless plugin for qtfeedback: https://github.com/sailfishos/qt-mobility-haptics-ffmemless/blob/master/qfeedback.cpp As you can see it use device directly without ngfd22:31
T42<b100dian> So either I get vibration for keyboard from this discussion if Qt indeed has a ngfd plugin, or your errors Thaodan also come from Qt native vibrator:)22:31
T42<b100dian> yup, that was on my list of pathcing this., year22:32
T42<elros34> qt feedback native/droid or ffmemless do not use ngfd22:32
T42<b100dian> Yes, but they may trigger vibrations on Thaodan's device, would be another possible cause for >8mins vibra22:33
T42<elros34> depends on how he test plugin, if using components galery example then yeah22:34
Thaodanthat is what I use https://github.com/sailfishos/libngf-qt and ngfd-plugin-native-vibrator22:35
Thaodantest was done with components galery22:35
T42<elros34> ah so there  is yet another plugin:) so I was wrong22:37
Thaodanlibngf-qt replaces qt5-feedback-haptics-native-vibrator22:38
T42<b100dian> that is actually good news for me:p if you wait long enough..22:38
T42<b100dian> but I need to see how to actually test that integration22:39
T42<b100dian> Thaodan other than building that do you have any config pointers how to make use?22:42
ThaodanHow to make use?22:42
T42<b100dian> how to use that plugin22:43
Thaodaninstead of installing qt5-feedback-haptics-droid-vibrator install libngf-qt22:49
Thaodanthat's it22:50
T42<b100dian> ok, I'll try that when I get to boot23:17

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!