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

Commit abf30933 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 10843824 from 8bfcd3a5 to 24Q1-release

Change-Id: Ibddfd09b2547a5a3ba836d86f4b7a0f29df13401
parents ea208101 8bfcd3a5
Loading
Loading
Loading
Loading
+17 −2
Original line number Diff line number Diff line
@@ -66,8 +66,9 @@ genrule {
        + "$(location soong_zip) -o $(out) -C $$RES_DIR -D $$RES_DIR"
}

// Common defaults that doesn't have ThemePicker specifics.
java_defaults {
    name: "ThemePicker_defaults",
    name: "ThemePicker_common_defaults",

    static_libs: [
        "guava",
@@ -92,9 +93,10 @@ java_defaults {
    srcs: [
        ":WallpaperPicker2_srcs",
        ":ThemePicker_srcs",
        ":ThemePicker_src_overrides",
    ],

    required: ["android.software.theme_picker.xml"],

    use_embedded_native_libs: true,

    resource_zips: [":WallpaperPicker2_res", ":ThemePicker_res", ":ThemePicker_res_overrides"],
@@ -109,6 +111,19 @@ java_defaults {
    system_ext_specific: true,
}

java_defaults {
    name: "ThemePicker_defaults",
    defaults: ["ThemePicker_common_defaults"],
    srcs: [":ThemePicker_src_overrides"],
}

prebuilt_etc {
    name: "android.software.theme_picker.xml",
    system_ext_specific: true,
    sub_dir: "permissions",
    src: "android.software.theme_picker.xml",
}

//
// Build app code.
//
+9 −0
Original line number Diff line number Diff line
@@ -11,8 +11,17 @@
    <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
    <uses-permission android:name="android.permission.MODIFY_DAY_NIGHT_MODE" />
    <uses-permission android:name="android.permission.CUSTOMIZE_SYSTEM_UI" />
    <uses-permission android:name="android.permission.BIND_WALLPAPER"/>
    <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
    <uses-permission android:name="android.permission.READ_WALLPAPER_INTERNAL"/>
    <uses-permission android:name="android.permission.SET_WALLPAPER"/>

    <queries>
        <package android:name="android"/>
        <package android:name="com.android.launcher3"/>
        <package android:name="com.android.settings"/>
        <package android:name="com.android.systemui"/>

        <!-- Specific intents Wallpaper picker query for -->
        <!-- Package for theme stub -->
        <package android:name="com.android.customization.themes" />

OWNERS

0 → 100644
+2 −0
Original line number Diff line number Diff line
#Refer the WallpaperPicker2/ThemePicker owners here
include platform/packages/apps/WallpaperPicker2:/OWNERS
+0 −16
Original line number Diff line number Diff line
{
  "presubmit": [
    {
      "name": "WallpaperPicker2Tests",
      "options": [
        {
          "exclude-annotation": "org.junit.Ignore"
        }
      ]
    },
    {
      "name": "ThemePickerTests",
      "options": [
        {
          "exclude-annotation": "org.junit.Ignore"
        }
      ]
    },
    {
      "name": "WallpaperPickerGoogleTests",
      "options": [
+28 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2022 The Android Open Source Project
<!-- Copyright (C) 2023 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.
@@ -14,20 +13,16 @@
     See the License for the specific language governing permissions and
     limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <androidx.viewpager2.widget.ViewPager2
        android:id="@+id/color_page_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>
    <com.android.wallpaper.widget.PageIndicator
        android:id="@+id/color_page_indicator"
        android:layout_marginTop="@dimen/color_page_indicator_margin_top"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:visibility="gone"
        android:layout_gravity="center"/>
</LinearLayout>
<permissions>
    <privapp-permissions package="com.android.wallpaper">
        <permission name="android.permission.BIND_WALLPAPER"/>
        <permission name="android.permission.CHANGE_OVERLAY_PACKAGES"/>
        <permission name="android.permission.CUSTOMIZE_SYSTEM_UI"/>
        <permission name="android.permission.MODIFY_DAY_NIGHT_MODE"/>
        <permission name="android.permission.READ_DEVICE_CONFIG"/>
        <permission name="android.permission.READ_WALLPAPER_INTERNAL"/>
        <permission name="android.permission.SET_WALLPAPER"/>
        <permission name="android.permission.SET_WALLPAPER_COMPONENT"/>
        <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
    </privapp-permissions>
</permissions>
Loading