You could try to fake a battery instead: https://yaky.dev/2022-09-06-smartphone-without-battery/
(This is for a removable battery, but should be close for built-in ones too, I suppose)