Default phone information is not available for a secondary user and when accessed using service command *#*#INFO#*#*, it causes crash in Settings. Removed the preference for a secondary user. To verify: 1. Add user(slide down status bar>user icon>Add user> OK>finish the setup guide). 2. As new user launch Phone app>input “*#*#4636#*#*”> tap Phone information>check Causes Settings to crash with: Caused by: java.lang.IllegalStateException: Default phones haven't been made yet! at com.android.internal.telephony.PhoneFactory.getDefaultPhone(PhoneFactory.java:214) at com.android.settings.RadioInfo.onCreate(RadioInfo.java:263) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) Change-Id: Ie23107c5eead04183cfd8b5460a9a7a3426a99b8
62 lines
2.4 KiB
XML
62 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2008 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:title="@string/testing" >
|
|
|
|
<PreferenceScreen
|
|
android:title="@string/testing_phone_info"
|
|
android:key="radio_info_settings">
|
|
<intent android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.settings"
|
|
android:targetClass="com.android.settings.RadioInfo" />
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceScreen
|
|
android:title="@string/testing_battery_info">
|
|
<intent android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.settings"
|
|
android:targetClass="com.android.settings.BatteryInfo" />
|
|
</PreferenceScreen>
|
|
|
|
|
|
<PreferenceScreen
|
|
android:title="@string/testing_usage_stats">
|
|
<intent android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.settings"
|
|
android:targetClass="com.android.settings.UsageStatsActivity" />
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceScreen
|
|
android:title="@string/testing_wifi_info" >
|
|
<intent
|
|
android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.settings"
|
|
android:targetClass="com.android.settings.wifi.WifiInfo" />
|
|
</PreferenceScreen>
|
|
|
|
<!--
|
|
<PreferenceScreen
|
|
android:title="@string/testing_sim_toolkit">
|
|
<intent android:action="android.intent.action.MAIN"
|
|
android:targetPackage="com.android.stk"
|
|
android:targetClass="com.android.stk.StkSettings" />
|
|
</PreferenceScreen>
|
|
-->
|
|
|
|
</PreferenceScreen>
|
|
|