This forum topic should help
https://forum.developer.samsung.com/t/battery-percentage-using-a-circle/6781