Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 872ffb60 authored by Claudiu Ghioc's avatar Claudiu Ghioc
Browse files

[CDM] Include "notifications" in the "glasses" CDM profile



Bug: 262500542
Test: atest CtsCompanionDeviceManagerCoreTestCases
Test: atest CtsCompanionDeviceManagerNoCompanionServicesTestCases
Test: atest CtsCompanionDeviceManagerUiAutomationTestCases

Change-Id: I5879ac6c2580406c2b00982e6efc80cd14e78da5
Signed-off-by: default avatarClaudiu Ghioc <claudiughioc@google.com>
parent cceab4de
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -43,7 +43,7 @@
    <string name="profile_name_glasses">glasses</string>
    <string name="profile_name_glasses">glasses</string>


    <!-- Description of the privileges the application will get if associated with the companion device of GLASSES profile (type) [CHAR LIMIT=NONE] -->
    <!-- Description of the privileges the application will get if associated with the companion device of GLASSES profile (type) [CHAR LIMIT=NONE] -->
    <string name="summary_glasses">This app is needed to manage your <xliff:g id="device_name" example="My Glasses">%1$s</xliff:g>. <xliff:g id="app_name" example="Glasses">%2$s</xliff:g> will be allowed to access your Phone, SMS, Contacts, Microphone and Nearby devices permissions.</string>
    <string name="summary_glasses">This app is needed to manage your <xliff:g id="device_name" example="My Glasses">%1$s</xliff:g>. <xliff:g id="app_name" example="Glasses">%2$s</xliff:g> will be allowed to interact with your notifications and access your Phone, SMS, Contacts, Microphone and Nearby devices permissions.</string>


    <!-- Description of the privileges the application will get if associated with the companion device of GLASSES profile for singleDevice(type) [CHAR LIMIT=NONE] -->
    <!-- Description of the privileges the application will get if associated with the companion device of GLASSES profile for singleDevice(type) [CHAR LIMIT=NONE] -->
    <string name="summary_glasses_single_device">The app is needed to manage your <xliff:g id="device_name" example="My Glasses">%1$s</xliff:g>. <xliff:g id="app_name" example="Glasses">%2$s</xliff:g> will be allowed to interact with these permissions:</string>
    <string name="summary_glasses_single_device">The app is needed to manage your <xliff:g id="device_name" example="My Glasses">%1$s</xliff:g>. <xliff:g id="app_name" example="Glasses">%2$s</xliff:g> will be allowed to interact with these permissions:</string>
+2 −2
Original line number Original line Diff line number Diff line
@@ -592,13 +592,13 @@ public class CompanionDeviceActivity extends FragmentActivity implements
            setupPermissionList();
            setupPermissionList();
        } else if (deviceProfile.equals(DEVICE_PROFILE_GLASSES)) {
        } else if (deviceProfile.equals(DEVICE_PROFILE_GLASSES)) {
            profileName = getString(R.string.profile_name_glasses);
            profileName = getString(R.string.profile_name_glasses);
            title = getHtmlFromResources(this, R.string.confirmation_title, appLabel, profileName);
            title = getHtmlFromResources(this, R.string.confirmation_title, appLabel, deviceName);
            summary = getHtmlFromResources(
            summary = getHtmlFromResources(
                    this, R.string.summary_glasses_single_device, profileName, appLabel);
                    this, R.string.summary_glasses_single_device, profileName, appLabel);
            profileIcon = getIcon(this, R.drawable.ic_glasses);
            profileIcon = getIcon(this, R.drawable.ic_glasses);


            mPermissionTypes.addAll(Arrays.asList(
            mPermissionTypes.addAll(Arrays.asList(
                    PERMISSION_PHONE, PERMISSION_SMS, PERMISSION_CONTACTS,
                    PERMISSION_NOTIFICATION, PERMISSION_PHONE, PERMISSION_SMS, PERMISSION_CONTACTS,
                    PERMISSION_MICROPHONE, PERMISSION_NEARBY_DEVICES));
                    PERMISSION_MICROPHONE, PERMISSION_NEARBY_DEVICES));


            setupPermissionList();
            setupPermissionList();