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

Commit e096499c authored by Srinivas Visvanathan's avatar Srinivas Visvanathan
Browse files

Defining new role for Car Projection app

- New role will available for use by Car projection apps (e.g. Android
Auto) on Q.

Bug: 123039960
Test: manual
Change-Id: I5e42e46cff70fc29c70a784ecfee42d69d484034
parent 13d28601
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -572,6 +572,8 @@
    <string name="role_label_assistant">Assist app</string>
    <!-- Label for the temporary workaround to give any app SMS access. [CHAR LIMIT=unlimited] -->
    <string name="role_label_temporary_sms_access" translatable="false">WON\'T BE RELEASED: SMS access app</string>
    <!-- Label for the car projection role. [CHAR LIMIT=30] -->
    <string name="role_label_car_projection">Car Projection app</string>

    <!-- Dialog body explaining that the app just selected by the user will not work after a reboot until the user enters their credentials, such as a PIN or password. [CHAR LIMIT=NONE] -->
    <string name="encryption_unaware_confirmation_message">Note: If you restart your device and have a screen lock set, this app can\u2019t start until you unlock your device.</string>
+19 −0
Original line number Diff line number Diff line
@@ -488,4 +488,23 @@
            <permission-set name="sms" />
        </permissions>
    </role>

    <role
        name="android.app.role.CAR_PROJECTION"
        exclusive="true"
        label="@string/role_label_car_projection">
        <required-components>
            <activity>
              <intent-filter>
                  <action name="android.intent.action.MAIN" />
                  <category name="android.intent.category.CAR_PROJECTION" />
              </intent-filter>
            </activity>
        </required-components>
        <permissions>
            <permission name="android.permission.READ_CALL_LOG" />
            <permission name="android.permission.SEND_SMS" />
            <permission name="android.permission.RECEIVE_SMS" />
        </permissions>
    </role>
</roles>