Friday, 2022-03-25

T42<Spidey24Z> @elros34 hey bro00:02
T42<edp_17> @Spidey24Z : please don't post logs as text files or screen-shots. Upload to somewhere like and post the link only.06:03
T42<elros34> @Spidey24Z you have decon driver for display, there was somebody with samsung device which didn't like mce's framebuffer power control. Try to systemctl mask mce and reboot too see if hwcomposer also crash in that case06:21
T42<elros34> or more correctly check if lipstick/minimer still crash06:22
T42<edp_17> @elros34 : Hi. I've compared the /system/etc/ld.config.txt against sparse-10/usr/libexec/droid-hybris/system/etc/ld.config29.txt. Well, the ld.config.txt is much smaller and has stuff that ld.config29.txt doesn't and vice versa.07:34
T42<edp_17> You said, adjust It is currently grepping the word hybris in /system/etc/ld.config.29.txt and if doesn't find, bind mounting /usr/libexec/droid-hybris/system/etc/ld.config.29.txt to /system/etc/ld.config.29.txt. What should I change in here?07:34
T42<edp_17> Should I bind mount /system/etc/ld.config.txt into /system/etc/ld.config.29.txt? (/system/etc/ld.config.txt doesn't have hybris either.)07:34
T42<edp_17> Should I see /system/etc/ld.config.29.txt file? Or the bind mount works differently?07:42
T42<elros34> but do you still have in logcat error: something "is not accessible for the namespace"? If yes then you could make similar changes like in ld.config.29.txt (lines with libexec/) and then bind mount modified ld.config.txt to /system/etc/ld.config.txt similar to droid-hal-early-init.sh08:02
T42<edp_17> Yes, logcat still shows those errors:
T42<edp_17> The file /system/etc/ld.config.txt exists. Will the bind mounted one "override" the existing one?08:08
T42<elros34> yesmount -o bind <path to modified ld> /system/etc/ld.config.txt08:11
T42<elros34> will override it08:11
T42<edp_17> Thanks.08:12
T42<edp_17> One more thing. The line "namespace.default.permitted.paths += /usr/libexec/droid-hybris/system/${LIB}" does exist at two places in ld.config29.txt, at section [system] and [vendor]. None of these sections exists in There are two [legacy] and [postinstall]. Won't be a problem if I create a [system] and [vendor] with only that line in there?08:16
T42<edp_17> There are much more defined in ld.config29.txt at section [system] and [vendor] not only that *libexec* line08:16
T42<edp_17> Or I don't need to create [system] and [vendor] sections just add that *libexex* line into the existing [legacy] section?08:19
T42<elros34> I would not add any new sections, just append libexec to existing08:19
T42<edp_17> Okay. Thanks.08:20
T42<edp_17> In, why we need to bind mount ld.config29.txt?08:25
T42<edp_17> Should I keep the part that bind mounts ld.config29.txt or just simply replace it with bind mount the modified
T42<edp_17> Can somebody please explain me what do these two error means? (I guess the second one is a result of the first, but I don't know what that means exactly.)
T42<b100dian> @edp_17 I changed the script to cp --remove-destination so basically the same as yours09:15
T42<b100dian> For the above, maybe add the libexec path outside a section too? In ld.config29 I mean09:21
T42<edp_17> @b100dian : Will try this. Thanks.10:12
T42<edp_17> @elros34 : I've cloned /system/etc/ld.config.txt to /usr/libexec/droid-hybris/system/etc/ld.config.txt, added the missing *libexec/droid-hybris* line into the cloned one and amended to bid mount the clone into /system/etc/ld.config.txt. Result is the same: (re @elros34: but do you still hav...)10:16
T42<Spidey24Z> @elros34 after masking mce >
T42<edp_17> @elros34 , @b100dian : I've tried all sort of combination. Results are here:
T42<edp_17> I don't have this file "/system/etc/ld.config.29.txt" is this expected?12:21
T42<b100dian> I am not an expert - I do have it. Maybe there are some android build flags that disable vndk namespaces used in your build? Boardconfig maybe?12:50
T42<Fred Fisher> 𝙔𝙤𝙪𝙧 𝙘𝙤𝙢𝙥𝙖𝙣𝙮 𝙞𝙨 𝙍𝙚𝙖𝙡 𝙩𝙧𝙪𝙨𝙩𝙚𝙙 𝙩𝙤 𝙢𝙖𝙠𝙚 𝙞𝙣𝙫𝙚𝙨𝙩𝙢𝙚𝙣𝙩 𝙤𝙣, 𝙄 𝙢𝙮 𝙨𝙚𝙡𝙛 𝙞𝙣𝙫𝙚𝙨𝙩𝙚𝙙 $‌4‌0‌0‌ 𝙖𝙣𝙙 𝙄 𝙢𝙖𝙙𝙚 𝙖 𝙥𝙧𝙤𝙛𝙞𝙩 𝙤𝙛 $‌4‌,‌9‌0‌0‌ 𝙞𝙣 𝙟𝙪𝙨𝙩 24𝙝𝙤𝙪𝙧𝙨, 𝙄 𝙬𝙖𝙨 𝙨𝙤 𝙝�15:06
T42<Fred Fisher> 𝙍𝙚𝙨𝙪𝙡𝙩𝙨 𝙄𝙨 𝙎𝙪𝙧𝙚, 𝙟𝙪𝙨𝙩 𝙘𝙡𝙞𝙘𝙠 𝙤𝙣 𝙩𝙝𝙚 𝙡𝙞𝙣𝙠 𝙗𝙚𝙡𝙤𝙬 𝙩𝙤 𝙘𝙤𝙣𝙩𝙖𝙘𝙩15:06
T42<Fred Fisher> 𝘾𝙤𝙢𝙥𝙖𝙣𝙮 𝙡𝙞𝙣𝙠15:06
T42<Fred Fisher>
T42<edp_17> It looks like need to manually add ld.config.29.txt. Like Verevka did: (re @b100dian: I am not an expert -...)15:22
T42<edp_17> Oh, I see. So, is doing the same thing. So I don't need that service.15:35
T42<edp_17> Therefore, back to the original problem, why I don't have /system/etc/ld.config.29.txt15:35
T42<b100dian> What's your device tree repo?15:48
T42<edp_17> I have two. This:
T42<edp_17> and this:
T42<edp_17> Based on this I should have BOARD_VNDK_VERSION and? PRODUCT_TREBLE_LINKER_NAMESPACES defined in
T42<edp_17> I don't have any of them defined anywhere.15:56
T42<edp_17> I do have the following in $ANDROID_ROOT/system/core/rootdir/etc :
T42<edp_17> Yeah, based on this, I should add BOARD_VNDK_VERSION=current into
T42<edp_17> I think.16:04
T42<edp_17> When added BOARD_VNDK_VERSION := current into and tried build hybris-hal, I got:
T42<Spidey24Z> @elros34 that's weird I remove init.extraenv.armeabi-v7a.rc now boot ui but no WiFi no camera no sim no sound17:43
T42<b100dian> @edp_17 sounds like a full rebuild is needed. But to the point, if you dont have vndk, I _thought_ things should actually be simpler linker wise..:(18:04
T42<Spidey24Z> @elros34 logcat after boot successful :
T42<edp_17> I am happy to do a full rebuild but don't know what to change in local repos to get that vndk support. On device I have created an empty ld.config.29.txt in /system/etc/ then bind mounted the one from /usr/libexec/droid-hybris/* but it didn't solve the issue. (re @b100dian: @edp_17 sounds like ...)19:19
T42<elros34> @Spidey24Z what was in this rc file which gives you idea to remove it?19:50
T42<Spidey24Z> export 32bit LD_LIBRARY_PATH19:53
T42<Spidey24Z> This file somehow make droid hal failed to initialize property area19:59
T42<b100dian> @Miklos can you try editing  vndk_lite on device? Before making a full rebuild with full vndk enabled, yoi might want to pursue other ld.config files changes20:02
T42<elros34> @Spidey24Z how is that possible if your previous logs had failing lipstick20:03
T42<Spidey24Z> also now if I add armeabi-v7a lipstick fail20:04
T42<elros34> How your ld.config.txt looks like? Is it only ld.config*.txt you have on device?20:31
T42<elros34> @edp_17 ^20:32
T42<edp_17> @elros34 : These are the ld.config* files on device:
T42<edp_17> and here is the content of /system/etc/ld.config.txt:
T42<elros34> try /system/etc/swcodec/ld.config.txt21:30
T42<edp_17> The other one in /usr/libexec/droid-hybris/system/etc/ld.config.txt is a clone of /system/etc/ld.config.txt that I manually created today.21:30
T42<edp_17> /system/etc/swcodec/ld.config.txt:
T42<elros34> yeah in swcodec section21:32
T42<edp_17> What's in there?21:34
T42<elros34> add libexec path21:35
T42<edp_17> Okay.21:35
T42<elros34> if it's not enough then " += ...." in ld.config.txt21:41
T42<edp_17> Yeah, :) wasn't enough:
T42<Spidey24Z> @elros34 log with init.extraenv.armeabi-v7a.rc added
T42<Spidey24Z> without init.extraenv.armeabi-v7a.rc
T42<edp_17> @elros34 : Both, "namespace.default.permitted.paths += /usr/libexec/droid-hybris/system/${LIB}" and " += /usr/libexec/droid-hybris/system/${LIB}" have added into /system/etc/swcodec/ld.config.txt, but still the same error is reported.21:53
T42<elros34> I meant /system/etc/ld.config.txt21:54
T42<edp_17> Sorry, wasn't clear. So, "namespace.default.permitted.paths += /usr/libexec/droid-hybris/system/${LIB}" -> /system/etc/swcodec/ld.config.txt and " += /usr/libexec/droid-hybris/system/${LIB}" -> /system/etc/ld.config.txt21:56
T42<edp_17> or both into /system/etc/ld.config.txt at [swcodec] section?21:56
T42<elros34> or/and in /system/etc/ld.config.txt21:58
T42<edp_17> Thanks. Will try this.22:04
T42<edp_17> Both added into /system/etc/ld.config.txt but still the same error appear. :(22:06
T42<edp_17> += /usr/libexec/droid-hybris/system/${LIB}22:06
T42<edp_17> += /usr/libexec/droid-hybris/system/${LIB}22:06
T42<edp_17> Thanks for your help today, I've to go now. Gnite!22:07
T42<elros34> shared_libs is for libs not paths, you hhave severall examples in that file22:11
T42<edp_17> Okay, will try again when I am not this tired. :) Thanks again.22:14
T42<edp_17> So basically every lib are reported in logcat I have to add one by one into Right?22:20
T42<elros34> I have only noticed in error, is there anything else there?22:24

Generated by 2.17.1 by Marius Gedminas - find it at!