tweaselORG / appstraction

An abstraction layer for common instrumentation functions (e.g. installing and starting apps, setting preferences, etc.) on Android and iOS.
MIT License
4 stars 1 forks source link

Support getting app meta for apps that are already installed #127

Open baltpeter opened 2 months ago

baltpeter commented 2 months ago

Currently, we only support getting metadata for apps from files, through parseAppMeta().

In CA, we want to add various metadata, including app meta, to our HAR exports (see https://github.com/tweaselORG/cyanoacrylate/issues/39). Not super critical, but for that it would be useful to also support getting metadata for apps that are already installed on the device.

baltpeter commented 2 months ago

Random find: On iOS, the same metadata we're parsing in IPAs might just be on the filesystem?

https://old.reddit.com/r/jailbreak/comments/4w0svm/question_where_can_i_find_itunesmetadataplist_on/d630u7n/ https://awesome.hackpuntes.com/ios/how-to-extract-ipa-from-ios-device

baltpeter commented 2 months ago

And for determining how an Android app was installed: https://stackoverflow.com/questions/10809438/how-to-know-an-application-is-installed-from-google-play-or-side-load

baltpeter commented 2 months ago

On Android, we could just temporarily grab the APK: https://gist.github.com/ctrl-freak/24ac0e61b7cf550a6945

baltpeter commented 2 months ago

On Android, we could just temporarily grab the APK: https://gist.github.com/ctrl-freak/24ac0e61b7cf550a6945

Though, pulling the whole APK will probably take too long, especially since we would like to have a list of the names of all apps installed on the device for CLI.

baltpeter commented 2 months ago

Previous investigation was hard to find because it was documented in an issue that was only slightly related: https://github.com/tweaselORG/cli/issues/27