1

我想直接从我的应用程序中打开设置 > 关于 > 系统更新。我怎样才能做到这一点?

对于Setting > About,我可以这样做

startActivityForResult(new Intent(android.provider.Settings.ACTION_DEVICE_INFO_SETTINGS), 0);

但我正在寻找一种方法来进行系统更新。

4

2 回答 2

6

有点晚了,但这是我的答案:

startActivityForResult(New Intent("android.settings.SYSTEM_UPDATE_SETTINGS"),0)
于 2016-06-28T23:32:17.260 回答
2

The system update activity is located on com.google.android.gsf/.update.SystemUpdateActivity.

You can open it by using the code below (the simplest, without error handling).

Intent intent = new Intent();
intent.setComponent(ComponentName
    .unflattenFromString("com.google.android.gsf/.update.SystemUpdateActivity"));
startActivity(intent);
于 2013-12-16T07:30:13.007 回答