|
|
@ -5,6 +5,7 @@ import android.os.Environment;
|
|
|
|
import android.os.PowerManager;
|
|
|
|
import android.os.PowerManager;
|
|
|
|
import android.os.SystemClock;
|
|
|
|
import android.os.SystemClock;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
import android.text.TextUtils;
|
|
|
|
|
|
|
|
import android.util.Log;
|
|
|
|
import android.util.Pair;
|
|
|
|
import android.util.Pair;
|
|
|
|
import android.util.Base64;
|
|
|
|
import android.util.Base64;
|
|
|
|
|
|
|
|
|
|
|
@ -39,6 +40,7 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
public class AppMaster {
|
|
|
|
public class AppMaster {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static String TAG = "MPLOG";
|
|
|
|
private MpMasterService mService;
|
|
|
|
private MpMasterService mService;
|
|
|
|
private String mMasterUrl;
|
|
|
|
private String mMasterUrl;
|
|
|
|
private String mCmdid;
|
|
|
|
private String mCmdid;
|
|
|
@ -398,6 +400,7 @@ public class AppMaster {
|
|
|
|
if (dl.download(url, apkPath)) {
|
|
|
|
if (dl.download(url, apkPath)) {
|
|
|
|
sendResult(cid, 1, action, action + ":" + mCmdid);
|
|
|
|
sendResult(cid, 1, action, action + ":" + mCmdid);
|
|
|
|
Context context = mService.getApplicationContext();
|
|
|
|
Context context = mService.getApplicationContext();
|
|
|
|
|
|
|
|
Log.i(TAG, "Upgrade APP: " + url);
|
|
|
|
SysApi.installApk(context, apkPath, context.getPackageName(), true);
|
|
|
|
SysApi.installApk(context, apkPath, context.getPackageName(), true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|