Friday, 2023-02-03

T42<vsvoid> Finally build is succesful without errors02:16
T42<parmjotsinghrobot> When I run ` —gg`, I get an error saying that there are multiple files on a line. I've found the culprit, a file called file.list, at `$ANDROID_ROOT/hybris/mw/droidmedia-localbuild/file.list`. I feel the problem is that the script which generates this file (manual changes get overwritten) is reading each file twice. Can someone help with this? Log file:
T42<vsvoid> I am having a prblem when running `rpm/dhd/helpers/ --version` command07:44
T42<vsvoid> 07:44
T42<vsvoid> There is a conflict with ofono and `droid-config-lava-1-202302030715.aarch64` any idea how to resolve this?07:45
T42<elros34> Would you mind sharing how did you fix your previous error? That way somebody else can find the solution like you can find solution for ofono and droid-config in this channel logs and even hadk-hot08:11
T42<vsvoid> The sepolicy error?08:31
T42<elros34> yes08:36
T42<vsvoid> For the sepolicy error08:44
T42<vsvoid> navigate to sepolicy folder in your device root in my case08:44
T42<vsvoid> 08:44
T42<vsvoid> `device/xiaomi/mt6768-common/sepolicy/vendor/`08:44
T42<vsvoid> 08:44
T42<vsvoid> There you will find the various policies that are in conflict with the ones set by hybris08:44
T42<vsvoid> 08:44
T42<vsvoid> In my case `device/xiaomi/mt6768-common/sepolicy/vendor/google_camera_app.te `08:44
T42<vsvoid> 08:44
T42<vsvoid>  `allow google_camera_app`08:44
T42<vsvoid> Comment or remove them08:48
T42<vsvoid> 08:48
T42<vsvoid> Since one of the dependancies of my device is `device`_`mediatek`_`sepolicy_vndr` which also defines some policies I got a conflict with08:48
T42<vsvoid> "`allow fuelgauged_nvram gsi_metadata_file:dir`"08:48
T42<vsvoid> so for this one navigate to08:48
T42<vsvoid> `device/mediatek/sepolicy_vndr/basic/non_plat/`08:48
T42<vsvoid> There you will find08:48
T42<vsvoid> `fuelgauged_nvram.te`08:48
T42<vsvoid> edit by commenting out or removing the policy causing the conflict and you are goot to go08:48
T42<vsvoid> The issue with ofono is because08:52
T42<vsvoid> `droid-config-lava-1-202302030715.aarch64` is trying to replace `/etc/ofono/binder.conf` which is already set by ` ofono-configs-binder-1.0.2-1.1.1.jolla.aarch64 (@System)` so the simple fix is to remove ` ofono-configs-binder` using08:52
T42<vsvoid> 08:52
T42<vsvoid> `sb2 -t $VENDOR-$DEVICE-$PORT_ARCH -m sdk-install -R zypper rm ofono-configs-binder`08:52
T42<vsvoid> 08:52
T42<vsvoid> And the rest will build08:52
T42<elros34> no, that will not fix it. You need to modify droid-config spec file08:53
T42<vsvoid> by adding provides:=ofono?08:53
T42<elros34> like in instruction, by adding
T42<vsvoid> Yeah I did that but didn't work still kept getting the same error08:58
T42<elros34> did you do also other steps mentioned in instruction like building package and running long sb2 command?09:01
T42<vsvoid> _rpm/dhd/helpers/build_packages.sh_ these ones? yes09:03
T42<elros34> -c to build what you changed: droid-config09:09
T42<vsvoid> Done and am rebuilding09:30

Generated by 2.17.1 by Marius Gedminas - find it at!