|
|
|
|
@ -24,6 +24,7 @@ import static com.android.tv.settings.util.InstrumentationUtils.logEntrySelected
|
|
|
|
|
|
|
|
|
|
import android.app.tvsettings.TvSettingsEnums;
|
|
|
|
|
import android.content.BroadcastReceiver;
|
|
|
|
|
import android.content.ComponentName;
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.content.Intent;
|
|
|
|
|
import android.content.IntentFilter;
|
|
|
|
|
@ -403,6 +404,18 @@ public class AboutFragment extends SettingsPreferenceFragment {
|
|
|
|
|
b.getBoolean(CarrierConfigManager.KEY_CI_ACTION_ON_SYS_UPDATE_BOOL)) {
|
|
|
|
|
ciActionOnSysUpdate(b);
|
|
|
|
|
}
|
|
|
|
|
String componentStr = getResources().getString(R.string.config_system_update_component);
|
|
|
|
|
if (!TextUtils.isEmpty(componentStr)) {
|
|
|
|
|
final ComponentName cn = ComponentName.unflattenFromString(componentStr);
|
|
|
|
|
if (cn != null && cn.getClassName() != null) {
|
|
|
|
|
Intent intent = new Intent();
|
|
|
|
|
intent.setComponent(cn);
|
|
|
|
|
if (intent.resolveActivity(getActivity().getPackageManager()) != null) {
|
|
|
|
|
startActivity(intent);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
startActivity(new Intent(Settings.ACTION_SYSTEM_UPDATE_SETTINGS));
|
|
|
|
|
break;
|
|
|
|
|
case KEY_DEVICE_NAME:
|
|
|
|
|
|