98 
11.2.2  OS Updating service for application 
Below are the tools used for OS update from application. 
 
(1)  OS Updating service 
It is a program that is called from application in order to update OS. 
 
File name : OSUpdateServiceXXXXXXXXXX.apk  
 
Note!  XXXXXXXXXX stands for version. However, in the following explanation, it is 
described as OSUpdateService. 
 
 
(2)  OS Image file used for updating   
OS image file used for updating. The update service above uses it. 
 
File name : 81.52_XXXXXXXX.PFU 
 
(3)  Sample application 
This is the source code sample of the application calling the above update service. 
 
File name : OSUpdateSample.zip 
 
11.2.3  How it works 
The following explanation assumes that OSUpdateService is installed in advance. 
 
(1)  Application downloads the "OS update image" from your file server to the 
"/storage/emulated/0" of IT-G400. 
(2)  Application issues "START” intent together with the PATH to the "OS update image". 
(3)  The OSUpdateService invoked by the intent above will check the integrity of the 
specified "update image file", restart the terminal, and update its the OS. 
(4)  The application receives the "COMPLETED" intent issued by the OSUpdateService and 
checks the result.