From 84ecad3f96606eff8e4548a6a825accd002e9f3c Mon Sep 17 00:00:00 2001 From: Takahiro Yoshimura Date: Wed, 10 Jan 2024 12:51:06 +0900 Subject: [PATCH] Soft-map bools --- trueseeing/app/inspect.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trueseeing/app/inspect.py b/trueseeing/app/inspect.py index 5570fa8..4cbcc61 100644 --- a/trueseeing/app/inspect.py +++ b/trueseeing/app/inspect.py @@ -1245,9 +1245,9 @@ async def _info(self, args: deque[str]) -> None: for nr, in c.execute('select count(1) from classes_extends_name where extends_name regexp :pat', dict(pat='^Landroid.*Fragment(Compat)?;$')): ui.info('frags {}'.format(len(list(manif.xpath('.//activity'))))) for e in manif.xpath('.//application'): - ui.info('debuggable? {}'.format(boolmap[e.attrib.get('{http://schemas.android.com/apk/res/android}debuggable', 'false')])) - ui.info('backupable? {}'.format(boolmap[e.attrib.get('{http://schemas.android.com/apk/res/android}allowBackup', 'false')])) - ui.info('netsecconf? {}'.format(boolmap[e.attrib.get('{http://schemas.android.com/apk/res/android}networkSecurityConfig') is not None])) + ui.info('debuggable? {}'.format(boolmap.get(e.attrib.get('{http://schemas.android.com/apk/res/android}debuggable', 'false'), '?'))) + ui.info('backupable? {}'.format(boolmap.get(e.attrib.get('{http://schemas.android.com/apk/res/android}allowBackup', 'false'), '?'))) + ui.info('netsecconf? {}'.format(boolmap.get(e.attrib.get('{http://schemas.android.com/apk/res/android}networkSecurityConfig') is not None, '?'))) if manif.xpath('.//uses-sdk'): for e in manif.xpath('.//uses-sdk'): ui.info('api min {}'.format(int(e.attrib.get('{http://schemas.android.com/apk/res/android}minSdkVersion', '1'))))