disable battery optimIsations via script - android 14

Solved
WT
Warren T
Marston (Holdings) Limited

Hi all

Since moving to Samsung devices with Android 14 installed, when sending battery optimisations to disable via legacy script I am getting an error message that says the device doesn't support the command.

The devices being sent the script are Galaxy Tab Active 5 SM-X306B enrolled via Classic.

I currently have no way of testing whether it is actually working, there aren't very many users using this device as yet and on Android 14, Android 13 devices accept the script without error. There are 2 apps built inhouse that require the battery optimisations to be disabled to function the way we intend.

I am wondering whether or not the script command has changed with android 14? Not entirely sure something like that would otherwise be changed when that command has been around for so long.

The command we send is:

writeprivateprofstring DeviceFeature DisableDozeMode 1
 
Followed by:
batteryoptimize disable packageid
 
The device log then says:

Agent used on the device is 2024.1.0

Has anyone else experienced the same issue as above?

MobiControl instance is running 2024.1.0.1052

Thanks

a year ago
SOTI MobiControl
ANSWERS
WT
Warren T
a year ago

Nevermind, I'm being stupid.

It is working but for some reason Soti logs it down as the feature not being supported but I have been able to check and show that the apps in question are infact showing as unrestricted usage with regards to battery so I've answered my own question

Solution

Otherwise check Samsung Knox Plugin (Oem Config) there you can set this up as well if I remember correctly (hoefully I don't mix it up with a different vendor).

P
PMMOD@SOTI
a year ago

Hi Warren T,

We're glad you've been able to find a solution. Please let us know if there are any other details or links we can assist you with, and then we can close it at our end

Please let us know so we can proceed further accordingly.