Giving app Administrator Permission prevent it from killing accessibility service

  android, android-studio, mobile

My core concept of the app is on accessibility service where It is disabling by the battery optimizer mainly!
So I have made the app an administrator so that it cant be killed by battery optimizers(assumption).
So is there any way to make the service active?

Does making the app administrator helps?

Source: Android Questions