Open Android's System Update page

3.3k Views Asked by At

I want to open the Settings > About > System Update directly from my application. How can I do that?

For Setting > About, I can do this

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

But I am looking for a way to go to system update.

3

There are 3 best solutions below

3
On BEST ANSWER

it's a bit late, but here is my answer:

startActivityForResult(New Intent("android.settings.SYSTEM_UPDATE_SETTINGS"),0)
2
On

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);
1
On

What I've done works for Samsung android version 12 and 13, this code should open this page on Samsung Intent intent3 = new Intent(); intent3.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent3.setClassName("com.android.settings", "com.android.settings.Settings$SoftwareUpdateSettingLaunchActivity"); context.startActivity(intent3); I decompiled samsung settings apk 12.0, and found this solution.