-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_rro.sh
48 lines (42 loc) · 1.01 KB
/
update_rro.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/bash
#
# Copyright (C) 2022 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
if [[ -z ${1} ]]; then
echo usage: update_rro.sh /path/to/dump
exit
fi
dump_path=${1}
# List of rros in product without a theme
product_rros=" \
CarrierConfigResCommon \
FrameworksResCommon \
SettingsResCommon \
SystemUIResCommon \
TelecommResCommon \
TelephonyResCommon \
WifiResCommon \
"
# List of rros in vendor without a theme
vendor_rros=" \
FrameworksResTarget_Vendor \
WifiResTarget \
WifiResTarget_spf \
"
function generate_rro () {
local path=${1}
bash rro_overlays/generate_rro.sh ${path}
bash rro_overlays/beautify_rro.sh rro_overlays/$(basename ${path} | sed "s/.apk//g")
}
for rro in ${product_rros}; do
echo $rro
rm -rf rro_overlays/${rro}
generate_rro ${dump_path}/product/overlay/${rro}.apk
done
for rro in ${vendor_rros}; do
echo $rro
rm -rf rro_overlays/${rro}
generate_rro ${dump_path}/vendor/overlay/${rro}.apk
done