« Previous | Next » 

Revision 3c59b997

ID3c59b9974936b42b8fc96ba2154a6be137871605
Parent c999d6f7
Child bcbc6670

Added by Hans-Christoph Steiner over 3 years ago

make startActivity() handle both setPackage() and setClassName()

An Intent can be targeted using both setPackage() and setClassName().
setPackage() narrows down the possible recipients to a given packageName,
while setClassName() set the specific Activity in an app to send to. The
trust check is based on packageName since that is what the APK signature is
tied to. So if getPackage() turns up nothing, then try getComponent(),
which fetches the CompenentName which is a representation of the thing that
was set using Intent.setClassName()

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences