Because monkey doesn't have an Application, so nor Context instance.
Meanwhile adapt to framework changes that:
1. checkPermission() removed from IPermissionManager but still exists
on IPackageManager.
2. getPermissionFlags() passes package name first and permission name
later.
This reverts commit 36247dc2fb.
This reverts commit 46c62820cc.
Fixes: 177082201
Test: atest CtsMonkeyTestCases
Change-Id: I498bcd87f765e5804783dd7d753f3fe6a045c7c6
Permission is being moved into mainline and IPermissionManager can't
be an API.
Bug: 158736025
Test: presubmit
Change-Id: I08a8705d7d9be5b9ca56272e96d0a97497099143
Revert "Test featureId is correctly used in startActivity"
Revert submission 10111030-activityStarter_featureId
Reason for revert: presubmit test breakage
Reverted Changes:
Ic7056b492: Activity start: Send featureId from context->AppOp...
I8e2a07da7: Adjust monkey to changed internal APIs
I7a6af6fb1: Test featureId is correctly used in startActivity
Change-Id: I430258d9b50b3d760e408e94f9abd8b6745dd92a
The public platform version no longer can be a codename, it is
always the most recently released platform. A new build property
and API provides either the offical version or the current codename
as appropriate. This will avoid breaking apps that look at the
platform version while development is under a codename.
Bug: 143175463
Change-Id: I7570a01b322db0be86388d70b48991cf5beb4fea
Test: manual
Exempt-From-Owner-Approval: Previously approved, no new changes
Reason for revert: This causes a boot issue on Taimen (b/144480969). It wasn't caught by TreeHugger due to Taimen tests being disabled due to a different lab outage (b/144350336).
Change-Id: I97f1ba219f23b509c62c22f4a2786e4fb13b530f
The public platform version no longer can be a codename, it is
always the most recently released platform. A new build property
and API provides either the offical version or the current codename
as appropriate. This will avoid breaking apps that look at the
platform version while development is under a codename.
Bug: 143175463
Test: manual
Change-Id: I9cc55fa3d5cee2606ea634d3926d957990694908
* Sleep until file is done writing. Meanwhile appCrashed() should be called.
Bug: 68762010
Test: Run monkey + call "killall -SIGSEGV com.google.android.inputmethod.latin" in adb shell (repeated many times)
Change-Id: I4c8bd5d653fc195878275e291d927f2d87814858
Don't assume a single global trace file. /data/anr might contain
multiple files - always dump the most recent.
Test: Manual
Bug: 32064548
Change-Id: Ib24e7364cac9e3fd105dafb40d6e399d46759770
The runner is using internal constants from accessibility.
I'm moving window IDs to AccessibilityWindowInfo, so this
project needs to change as well.
Bug: 34773134
Test: Just verifying the build.
Change-Id: I64fa4ff63543deadb7aa32b3e93d3dad1d6b9439
the monkey not read completed the sync pipe.
- Incorrect exception handle.
When no space left on the device the write will
occurs an I/O exception, so we needed to catch it
and continue to read the data of the sync pipe to
aviod the bugreport hang forever.
https://code.google.com/p/android/issues/detail?id=211970
Change-Id: I80c6548434587bcc17b50f0c246a5887cdd339cf
Signed-off-by: songjinshi <songjinshi@xiaomi.com>
Per convention, event categories that are not key events should
be inserted before the block of key event categories.
Change-Id: I2cbe4a34231462dbdee1f8b97270fdd0b3354690
1. added a new MonkeyEvent type for permission events
2. added monkey permission utility for randomized permission
events generation against targeted packages
3. refactored package whitelist/blacklist into MonkeyUtils class
Change-Id: I8f7998d74c3e28d02f5bcd47a0f9cc6167b93c93