Commit 6c38c763 by pye52

修复启动守护app时发送了file实例而非更新包地址的问题

parent cd63d6ca
...@@ -108,7 +108,7 @@ public class InstallManager { ...@@ -108,7 +108,7 @@ public class InstallManager {
LogUtils.d(TAG, "启动守护app进行更新操作"); LogUtils.d(TAG, "启动守护app进行更新操作");
ComponentName componentName = new ComponentName(DAEMON_PACKAGE_NAME, DAEMON_SERVICE_NAME); ComponentName componentName = new ComponentName(DAEMON_PACKAGE_NAME, DAEMON_SERVICE_NAME);
Intent intent = new Intent(); Intent intent = new Intent();
intent.putExtra(ARG_PATH, updateApk.getAbsoluteFile()); intent.putExtra(ARG_PATH, updateApk.getAbsolutePath());
intent.putExtra(ARG_COMPONENT, BuildConfig.APPLICATION_ID + File.separator + MainActivity.class.getName()); intent.putExtra(ARG_COMPONENT, BuildConfig.APPLICATION_ID + File.separator + MainActivity.class.getName());
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setComponent(componentName); intent.setComponent(componentName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment