Skip to main content
Level 2.0: Eclair
April 15, 2024
Solved

Google System updates not working on Enterprise devices

  • April 15, 2024
  • 1 reply
  • 8 views

Application device policy is set Automatic update but did not instal the system update automatically. Seems like that system update is downloading but not processing for the installation. As my app is on kiosk mode therefore there is no manual way to install the update. Application is running two user one is admin user and another is secondary user. 
1. Admin user 
2. Secondary 
https://developer.android.com/work/dpc/system-updates#set-policy

Device policy creating with the selection: 
pattern: String =
  • "TYPE_INSTALL_AUTOMATIC"
  • "TYPE_INSTALL_WINDOWED"
  • "TYPE_POSTPONE"
fun mapToPatternToSystemUpdatePolicy(
pattern: String,
startTime: Int?,
endTime: Int?,
😞 SystemUpdatePolicy {
// Device update policy
if (pattern.contains("TYPE_INSTALL_AUTOMATIC")) {
return SystemUpdatePolicy.createAutomaticInstallPolicy()
} else if (pattern.contains("TYPE_INSTALL_WINDOWED")) {
// Update windowed time is et minutes.
if (startTime != null && endTime != null) {
return SystemUpdatePolicy.createWindowedInstallPolicy(
startTime,
endTime,
)
}
} else if (pattern.contains("TYPE_POSTPONE")) {
return SystemUpdatePolicy.createPostponeInstallPolicy()
}

return SystemUpdatePolicy.createAutomaticInstallPolicy()
}
Setup the policy in the :
val
updatePolicy = DevicePolicyMapper.mapToPatternToSystemUpdatePolicy(
systemUpdatePolicy,
startTime,
endTime,
)
dpm.setSystemUpdatePolicy(adminComponentName, updatePolicy)


What can be the causes pretty unclear to me. 

Best answer by Moombas

Yes, device is connected with WIFI and admin. Device is downloading the update not able to install automatically. If there is issue with the internet issue in that case device will not able to download the update. 


I fully agree. 

1 reply

jasonbayton
Level: 4.1: Jelly bean
April 15, 2024

It *should* interrupt any running process and perform the update. 

 

Could you attempt the same with Windowed instead? If it works, it'll be something disrupting the automatic install process; I'm expecting that with app updates in kiosk but not system normally.

JohnyAuthor
Level 2.0: Eclair
April 15, 2024

I have tried with Windowed also. Doesn't work. System download the update but not able to install automatically.  

Moombas
Level 4.4: KitKat
April 15, 2024

Ok then yeah debug logs - a bug report - would offer some insight into what's going on. 


We also see that our devices connected via mobile data also doesn't do an update.

Have you tried that connected to a Wifi?