Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/omamobile-fingerprint/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ grep -c '^ro.hardware=' lib/props.conf >/dev/null && fail "props.conf keeps a ph
for f in lib/omamobile-tipc-probe lib/omamobile-fp-ctl; do
python3 -c 'import ast, sys; ast.parse(open(sys.argv[1]).read())' "$f" || fail "python: $f"
done
# both panels keep their allow_lhbm line (the 7 Pro's s6e3hc4, the 9a's tg4c),
# read from the file the package ships, so CI checks it without the prebuilts
lhbm=vendor/modprobe.d/omamobile-fingerprint-lhbm.conf
[[ $(grep -c '^options panel_samsung_s6e3hc4 allow_lhbm=1$' "$lhbm") == 1 ]] || fail "s6e3hc4 allow_lhbm line missing"
[[ $(grep -c '^options panel_google_tg4c allow_lhbm=1$' "$lhbm") == 1 ]] || fail "tg4c allow_lhbm line missing"
# The bionic prebuilts are built on the computer with the Android toolchain
# and never committed; a checkout without them (CI) checks the rest only.
if [[ ! -f prebuilt/omamobile-fp-shim.so ]]; then
Expand Down Expand Up @@ -76,6 +81,8 @@ for f in usr/lib/omamobile-fp/omamobile-fp-chroot usr/lib/omamobile-fp/omamobile
done
# nothing Google's may be staged
[[ -z $(find "$stage" -path '*/root/*' -print -quit) ]] || fail "vendor files staged"
# the modprobe file reached the stage
[[ -f $stage/usr/lib/modprobe.d/omamobile-fingerprint-lhbm.conf ]] || fail "not staged: modprobe.d/omamobile-fingerprint-lhbm.conf"
if command -v systemd-analyze >/dev/null; then
out=$(systemd-analyze verify --man=no "$stage/usr/lib/systemd/system/omamobile-fp.service" 2>&1 || true)
out=$(grep -v -e 'not executable' -e 'No such file' -e 'is not a regular file' -e '^$' <<<"$out" || true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# SPDX-License-Identifier: MIT
# The under-display fingerprint sensor needs the panel's local high
# brightness mode (LHBM): a bright circle over the sensor while a finger is
# on it. panel_samsung_s6e3hc4 refuses LHBM unless allow_lhbm is set; only
# on it. The panel drivers refuse LHBM unless allow_lhbm is set; only
# omamobile-fp-bridge turns it on, during a touch on the sensor, and the
# panel driver turns it off again after at most 3 s
# (device/cheetah/FINGERPRINT-PLAN.md F7).
# (device/cheetah/FINGERPRINT-PLAN.md F7; the Pixel 9a's panel in
# device/tegu/FINGERPRINT-PLAN.md F6c-F10).
options panel_samsung_s6e3hc4 allow_lhbm=1
options panel_google_tg4c allow_lhbm=1
2 changes: 1 addition & 1 deletion packages/omamobile-fingerprint/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.11
0.1.12