From d305ed253824e4d1688f86c4ea37e0511c359f26 Mon Sep 17 00:00:00 2001 From: Rohit Date: Fri, 15 Jul 2022 14:38:56 +0530 Subject: [PATCH 1/2] vendor/eos: Add an RRO for PowerOffAlarm * Translate the permission description for org.codeaurora.permission.POWER_OFF_ALARM to de * Switch to Android.mk since the bp rule was introduced with A11 --- rro_overlays/PowerOffAlarmOverlay/Android.mk | 23 +++++++++++++++++++ .../PowerOffAlarmOverlay/AndroidManifest.xml | 10 ++++++++ .../res/values-de/strings.xml | 4 ++++ 3 files changed, 37 insertions(+) create mode 100644 rro_overlays/PowerOffAlarmOverlay/Android.mk create mode 100644 rro_overlays/PowerOffAlarmOverlay/AndroidManifest.xml create mode 100644 rro_overlays/PowerOffAlarmOverlay/res/values-de/strings.xml diff --git a/rro_overlays/PowerOffAlarmOverlay/Android.mk b/rro_overlays/PowerOffAlarmOverlay/Android.mk new file mode 100644 index 0000000..9a85117 --- /dev/null +++ b/rro_overlays/PowerOffAlarmOverlay/Android.mk @@ -0,0 +1,23 @@ +# +# Copyright 2019, 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. +# + +LOCAL_PATH:= $(call my-dir) + +include $(CLEAR_VARS) +LOCAL_PACKAGE_NAME := PowerOffAlarmOverlay +LOCAL_PRODUCT_MODULE := true +LOCAL_SDK_VERSION := current +include $(BUILD_RRO_PACKAGE) diff --git a/rro_overlays/PowerOffAlarmOverlay/AndroidManifest.xml b/rro_overlays/PowerOffAlarmOverlay/AndroidManifest.xml new file mode 100644 index 0000000..9ed471c --- /dev/null +++ b/rro_overlays/PowerOffAlarmOverlay/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + + diff --git a/rro_overlays/PowerOffAlarmOverlay/res/values-de/strings.xml b/rro_overlays/PowerOffAlarmOverlay/res/values-de/strings.xml new file mode 100644 index 0000000..2663fad --- /dev/null +++ b/rro_overlays/PowerOffAlarmOverlay/res/values-de/strings.xml @@ -0,0 +1,4 @@ + + + den Wecker stellen und zurücksetzen, der das Gerät aus dem ausgeschalteten Zustand aufweckt + -- GitLab From 76afbac6d4493afd70d0a0a029781b0521485ea4 Mon Sep 17 00:00:00 2001 From: Rohit Date: Mon, 18 Jul 2022 10:16:34 +0530 Subject: [PATCH 2/2] PowerOffAlarmOverlay: Bring in all the translations - Considering it is proprietary, incase we want to override later, we have everything here conveniently. --- .../res/values-ar-rXB/strings.xml | 12 ++++++++++++ .../res/values-en-rXA/strings.xml | 12 ++++++++++++ .../res/values-zh-rCN/strings.xml | 12 ++++++++++++ .../PowerOffAlarmOverlay/res/values/strings.xml | 12 ++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 rro_overlays/PowerOffAlarmOverlay/res/values-ar-rXB/strings.xml create mode 100644 rro_overlays/PowerOffAlarmOverlay/res/values-en-rXA/strings.xml create mode 100644 rro_overlays/PowerOffAlarmOverlay/res/values-zh-rCN/strings.xml create mode 100644 rro_overlays/PowerOffAlarmOverlay/res/values/strings.xml diff --git a/rro_overlays/PowerOffAlarmOverlay/res/values-ar-rXB/strings.xml b/rro_overlays/PowerOffAlarmOverlay/res/values-ar-rXB/strings.xml new file mode 100644 index 0000000..9ff1d14 --- /dev/null +++ b/rro_overlays/PowerOffAlarmOverlay/res/values-ar-rXB/strings.xml @@ -0,0 +1,12 @@ + + + ‏‮PowerOffAlarm‬‏ + ‏‮dismiss‬‏ + ‏‮Alarm‬‏ ‏‮Is‬‏ ‏‮Firing!‬‏ + ‏‮set‬‏ ‏‮and‬‏ ‏‮clear‬‏ ‏‮the‬‏ ‏‮alarm‬‏ ‏‮which‬‏ ‏‮will‬‏ ‏‮wake‬‏ ‏‮up‬‏ ‏‮device‬‏ ‏‮from‬‏ ‏‮the‬‏ ‏‮power‬‏ ‏‮off‬‏ ‏‮state‬‏ + ‏‮Power‬‏ ‏‮Off‬‏ ‏‮Alarm‬‏ + ‏‮Power‬‏ ‏‮On‬‏ ‏‮or‬‏ ‏‮Power‬‏ ‏‮Off?‬‏ + ‏‮Power‬‏ ‏‮Off‬‏ + ‏‮Power‬‏ ‏‮On‬‏ + ‏‮snooze‬‏ + diff --git a/rro_overlays/PowerOffAlarmOverlay/res/values-en-rXA/strings.xml b/rro_overlays/PowerOffAlarmOverlay/res/values-en-rXA/strings.xml new file mode 100644 index 0000000..7e2043a --- /dev/null +++ b/rro_overlays/PowerOffAlarmOverlay/res/values-en-rXA/strings.xml @@ -0,0 +1,12 @@ + + + [ÞöŵéŕÖƒƒÅļåŕḿ one two] + [ðîšḿîšš one two] + [Åļåŕḿ Κ Fîŕîñĝ¡ one two three] + [šéţ åñð çļéåŕ ţĥé åļåŕḿ ŵĥîçĥ ŵîļļ ŵåķé ûþ ðéVîçé ƒŕöḿ ţĥé þöŵéŕ öƒƒ šţåţé one two three four five six seven eight] + [Þöŵéŕ Öƒƒ Åļåŕḿ one two three] + [Þöŵéŕ Öñ öŕ Þöŵéŕ Öƒƒ¿ one two three] + [Þöŵéŕ Öƒƒ one two] + [Þöŵéŕ Öñ one two] + [šñööžé one two] + diff --git a/rro_overlays/PowerOffAlarmOverlay/res/values-zh-rCN/strings.xml b/rro_overlays/PowerOffAlarmOverlay/res/values-zh-rCN/strings.xml new file mode 100644 index 0000000..d1e1e7c --- /dev/null +++ b/rro_overlays/PowerOffAlarmOverlay/res/values-zh-rCN/strings.xml @@ -0,0 +1,12 @@ + + + 关机闹钟 + 关闭 + 闹钟时间到! + 设置和清除关机闹钟时间(关机 闹钟可以唤醒在关机状态下的手机) + 关机闹钟 + 开机还是关机? + 关机 + 开机 + 睡眠 + diff --git a/rro_overlays/PowerOffAlarmOverlay/res/values/strings.xml b/rro_overlays/PowerOffAlarmOverlay/res/values/strings.xml new file mode 100644 index 0000000..a985682 --- /dev/null +++ b/rro_overlays/PowerOffAlarmOverlay/res/values/strings.xml @@ -0,0 +1,12 @@ + + + PowerOffAlarm + dismiss + Alarm Is Firing! + set and clear the alarm which will wake up device from the power off state + Power Off Alarm + Power On or Power Off? + Power Off + Power On + snooze + -- GitLab