Hello, thanks for answer.
This morning i discover, observing the log, that the java code is correctly executed (i refer to code suggest on the thread mentionned in my fisrt post here). Mean is correctly logged "isIgnoringBatteryOptimizations FALSE". But next code line make no prompt of settings i can use to change the value of battery optimization. I'm sorry if i cannot better explain, but if you ask what i can do to help you understand where the problem is, i'll try to do.
Again sorry for my bad english and also for my basic knowledge of programming...