tweaselORG / appstraction

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

Support different contacts apps in `addContact()` on Android #135

Open baltpeter opened 4 months ago

baltpeter commented 4 months ago
          The docstring needs to mention that this only works if `com.android.contacts` is installed.

On my moto that I've kept stock (i.e. not installed Lineage on), that app isn't installed and trying to spawn it fails. It only has com.google.android.contacts:

❯ adb shell cmd package list packages | grep contact
package:com.google.android.contacts
package:com.motorola.contacts.preloadcontacts
package:com.google.android.syncadapters.contacts
package:com.android.providers.contacts

_Originally posted by @baltpeter in https://github.com/tweaselORG/appstraction/pull/134#discussion_r1658817884_