Skip to content

Commit 2cef129

Browse files
committed
Specify component name for provisioning
Bug: 5544654 Change-Id: I977cad131f7c4d9776997fc3153f4c0d12063af2
1 parent 7ec4284 commit 2cef129

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

core/res/res/values/config.xml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,14 @@
182182
<!-- Regex of wired ethernet ifaces -->
183183
<string translatable="false" name="config_ethernet_iface_regex">eth\\d</string>
184184

185-
<!-- If the mobile hotspot feature requires provisioning, an intent string can be provided
186-
to the launch a supported application that provisions the devices.
185+
<!-- If the mobile hotspot feature requires provisioning, a package name and class name
186+
can be provided to launch a supported application that provisions the devices.
187187
188188
Example Usage:
189189
190-
Intent intent = new Intent(R.string.config_mobile_hotspot_provision_intent);
190+
String[] appDetails = getStringArray(R.array.config_mobile_hotspot_provision_app);
191+
Intent intent = new Intent(Intent.ACTION_MAIN);
192+
intent.setClassName(appDetails[0], appDetails[1]);
191193
startActivityForResult(intent, 0);
192194
193195
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
@@ -202,7 +204,14 @@
202204
203205
See src/com/android/settings/TetherSettings.java for more details.
204206
-->
205-
<string translatable="false" name="config_mobile_hotspot_provision_intent"></string>
207+
<!-- The first element is the package name and the second element is the class name
208+
of the provisioning app -->
209+
<string-array translatable="false" name="config_mobile_hotspot_provision_app">
210+
<!--
211+
<item>com.example.provisioning</item>
212+
<item>com.example.provisioning.Activity</item>
213+
-->
214+
</string-array>
206215

207216
<!-- Array of ConnectivityManager.TYPE_xxxx values allowable for tethering -->
208217
<!-- Common options are [1, 4] for TYPE_WIFI and TYPE_MOBILE_DUN or

0 commit comments

Comments
 (0)