As a workaround… I have been experimenting with an alternate way of dealing with these smartphone dngs that contain a GainMap: a program that outputs another dng with the GainMap applied that can then be edited in RT, Darktable, or any other editor that does not have the feature built in. It’s not very user friendly but it seems to work. Details here.