From 5c3d80c36bcead8ad3de465cbab25563cfcd71e0 Mon Sep 17 00:00:00 2001 From: hyugogirubato <65763543+hyugogirubato@users.noreply.github.com> Date: Tue, 28 Apr 2026 19:52:26 +0200 Subject: [PATCH] fix unavailable strings binary --- keydive/adb/remote.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/keydive/adb/remote.py b/keydive/adb/remote.py index b6ff458..3ac899e 100644 --- a/keydive/adb/remote.py +++ b/keydive/adb/remote.py @@ -123,6 +123,10 @@ class Remote: # Execute shell command to fetch all system properties using 'getprop' sp = shell([*self.__prefix, 'getprop', '|', 'strings']) + if 'strings: not found' in sp[1]: + # Fallback to regex if 'strings' command is not available on the device + sp = shell([*self.__prefix, 'getprop', '|', "grep -a -o '[ -~]\\{4,\\}'"]) + if sp[0]: self.logger.error('Unable to retrieve system properties from the device (error: %s)', sp[1]) return properties