Class SoftwareUpdateCtrl


  • public class SoftwareUpdateCtrl
    extends java.lang.Object
    • Constructor Detail

      • SoftwareUpdateCtrl

        public SoftwareUpdateCtrl​(android.content.Context context)
        Instantiates a new SoftwareUpdateCtrl.
        Parameters:
        context -
    • Method Detail

      • updateConfig

        public android.os.Bundle updateConfig​(java.lang.String serverUrl,
                                              int opmode,
                                              int policyInstalled,
                                              java.lang.String selectedApps,
                                              int policyNew,
                                              java.lang.String passcode)
        update "Software Update" config data.
        Parameters:
        serverUrl - the server url (String)
        opmode - the op mode (Normal Mode:0, Auto Mode:1, Auto Silent Mode:2, Disable:3) (int)
        policyInstalled - the policy installed (All:0, None:1, Selectd:2) (int)
        selectedApps - Selected Apps (Split with ,) (example:KeyRemap,Software Update,USS,UNote,StageGO,OEMConfig) (String)
        policyNew - Policy New (None:0, Install:1) (int)
        passcode - Passcode (String)
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • exportSettings

        public android.os.Bundle exportSettings​(java.lang.String filepath)
        Export Software Update Config to file
        Parameters:
        filepath - file path (String)
        Returns:
        A bundle contains the error code and message
        int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • importSettings

        public android.os.Bundle importSettings​(java.lang.String filepath)
        Import Software Update Config file
        Parameters:
        filepath - file path (String)
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
      • resetSettings

        public android.os.Bundle resetSettings()
        Reset Software Update Setting
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");