Merge changes from topic "hiddenapi-dark-grey" am: 3d93d8f323
am: 5c776dea7e
Change-Id: Ia99cb83b2083a0c3f688830f4755df285bd0091b
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
#
|
||||||
|
# DO NOT EDIT!
|
||||||
|
# This is an autogenerated file containing the dark greylist as present in P.
|
||||||
|
#
|
||||||
Landroid/accessibilityservice/AccessibilityButtonController;-><init>(Landroid/accessibilityservice/IAccessibilityServiceConnection;)V
|
Landroid/accessibilityservice/AccessibilityButtonController;-><init>(Landroid/accessibilityservice/IAccessibilityServiceConnection;)V
|
||||||
Landroid/accessibilityservice/AccessibilityButtonController;->dispatchAccessibilityButtonAvailabilityChanged(Z)V
|
Landroid/accessibilityservice/AccessibilityButtonController;->dispatchAccessibilityButtonAvailabilityChanged(Z)V
|
||||||
Landroid/accessibilityservice/AccessibilityButtonController;->dispatchAccessibilityButtonClicked()V
|
Landroid/accessibilityservice/AccessibilityButtonController;->dispatchAccessibilityButtonClicked()V
|
||||||
|
|||||||
@@ -62,6 +62,8 @@ def get_args():
|
|||||||
def read_lines(filename):
|
def read_lines(filename):
|
||||||
"""Reads entire file and return it as a list of lines.
|
"""Reads entire file and return it as a list of lines.
|
||||||
|
|
||||||
|
Lines which begin with a hash are ignored.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
filename (string): Path to the file to read from.
|
filename (string): Path to the file to read from.
|
||||||
|
|
||||||
@@ -69,7 +71,7 @@ def read_lines(filename):
|
|||||||
list: Lines of the loaded file as a list of strings.
|
list: Lines of the loaded file as a list of strings.
|
||||||
"""
|
"""
|
||||||
with open(filename, 'r') as f:
|
with open(filename, 'r') as f:
|
||||||
return f.readlines()
|
return filter(lambda line: not line.startswith('#'), f.readlines())
|
||||||
|
|
||||||
def write_lines(filename, lines):
|
def write_lines(filename, lines):
|
||||||
"""Writes list of lines into a file, overwriting the file it it exists.
|
"""Writes list of lines into a file, overwriting the file it it exists.
|
||||||
|
|||||||
@@ -11,8 +11,14 @@ fi
|
|||||||
readarray A < "$source_list"
|
readarray A < "$source_list"
|
||||||
# Sort
|
# Sort
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
# Stash away comments
|
||||||
|
C=( $(grep -E '^#' <<< "${A[*]}") )
|
||||||
|
A=( $(grep -v -E '^#' <<< "${A[*]}") )
|
||||||
|
# Sort entries
|
||||||
A=( $(LC_COLLATE=C sort -f <<< "${A[*]}") )
|
A=( $(LC_COLLATE=C sort -f <<< "${A[*]}") )
|
||||||
A=( $(uniq <<< "${A[*]}") )
|
A=( $(uniq <<< "${A[*]}") )
|
||||||
|
# Concatenate comments and entries
|
||||||
|
A=( ${C[*]} ${A[*]} )
|
||||||
unset IFS
|
unset IFS
|
||||||
# Dump array back into the file
|
# Dump array back into the file
|
||||||
printf '%s\n' "${A[@]}" > "$dest_list"
|
printf '%s\n' "${A[@]}" > "$dest_list"
|
||||||
|
|||||||
Reference in New Issue
Block a user