fix unavailable strings binary

This commit is contained in:
hyugogirubato
2026-04-28 19:52:26 +02:00
parent 77f1c1e449
commit 5c3d80c36b
+4
View File
@@ -123,6 +123,10 @@ class Remote:
# Execute shell command to fetch all system properties using 'getprop' # Execute shell command to fetch all system properties using 'getprop'
sp = shell([*self.__prefix, 'getprop', '|', 'strings']) 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]: if sp[0]:
self.logger.error('Unable to retrieve system properties from the device (error: %s)', sp[1]) self.logger.error('Unable to retrieve system properties from the device (error: %s)', sp[1])
return properties return properties