Skip to content

Commit

Permalink
Reading version
Browse files Browse the repository at this point in the history
  • Loading branch information
alterakey committed Jan 10, 2024
1 parent 8baec6f commit d7fb0f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trueseeing/app/inspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,10 @@ async def _info(self, args: deque[str]) -> None:
store = context.store()
manif = context.parsed_manifest()
ui.info('pkg {}'.format(manif.attrib['package']))
ui.info('ver {} ({})'.format(
manif.attrib['{http://schemas.android.com/apk/res/android}versionName'],
manif.attrib['{http://schemas.android.com/apk/res/android}versionCode']
))
ui.info('perms {}'.format(len(list(context.permissions_declared()))))
ui.info('activs {}'.format(len(list(manif.xpath('.//activity')))))
ui.info('servs {}'.format(len(list(manif.xpath('.//service')))))
Expand Down

0 comments on commit d7fb0f0

Please sign in to comment.