Activity names containing the $ character are not escaped, causing the shell to evaluate some parts of the argument string.
When providing an APK file with main activity such as com.discord.app.AppActivity$Main, an incorrect start intent for activity com.discord.app.AppActivity is made.
This change escapes arguments passed to device.adb.shell() and is compatible with Python 2 and Python 3.
Activity names containing the
$
character are not escaped, causing the shell to evaluate some parts of the argument string. When providing an APK file with main activity such ascom.discord.app.AppActivity$Main
, an incorrect start intent for activitycom.discord.app.AppActivity
is made.This change escapes arguments passed to
device.adb.shell()
and is compatible with Python 2 and Python 3.