Skip to content

Commit

Permalink
Soft-map bools
Browse files Browse the repository at this point in the history
  • Loading branch information
alterakey committed Jan 10, 2024
1 parent 11818f9 commit 84ecad3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trueseeing/app/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))))
Expand Down

0 comments on commit 84ecad3

Please sign in to comment.