Bob Badour
082705bfb3
Fix license texts.
...
Push specific licenses down the tree toward the leaf directories.
Remove extra Apache 2.0 license texts--just use Android-Apache-2.0
Test: m nothing
Change-Id: Ibee25f75f5933699d6f43acdc192b2ada6823757
2022-01-20 19:04:52 +00:00
Treehugger Robot
876a1b7826
Merge "monkey: Use java_binary" am: 4b4bf9f755 am: 914371f674 am: bd944df7b4
...
Original change: https://android-review.googlesource.com/c/platform/development/+/1699169
Change-Id: If62276c4a0d909b0101002b703ac273998d340dd
2021-05-09 02:46:47 +00:00
Luca Stefani
5f4839eb99
monkey: Use java_binary
...
* cc_prebuilt_binary triggers strip and fails
* Currently it's only printing to stdout but
it may later on be a build failure
Change-Id: I6a6751a7c9abad8ef76b531f9c0dc38cb0c12689
2021-05-08 11:27:44 +02:00
Yuntao Xu
c15925d160
Merge "Convert monkey/Android.mk to Android.bp" am: e79f478e3c am: 23769afd33 am: c52930e6a0
...
Original change: https://android-review.googlesource.com/c/platform/development/+/1690286
Change-Id: I0d4097c5c650cc05383451fd5be4efe3b0ec9b5e
2021-04-30 17:50:04 +00:00
Yuntao Xu
f657275aa4
Convert monkey/Android.mk to Android.bp
...
Convert the Make file to a Soong one
Bug: 186677673
Test: compared the results built by Make and Soong
Test: TreeHugger
Change-Id: Ib850e78443e11ef4834e6567cd447e88627512d3
2021-04-28 17:16:23 -07:00
Treehugger Robot
73272bf578
Merge "[LSC] Add LOCAL_LICENSE_KINDS to development" am: d6b1cbf769 am: 4d108c6ffe am: 483ddf28c8
...
Original change: https://android-review.googlesource.com/c/platform/development/+/1589100
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I8bfb99db5af219de8b7c6844b99006009152bbe8
2021-02-16 01:02:14 +00:00
Bob Badour
f7cf305656
[LSC] Add LOCAL_LICENSE_KINDS to development
...
Added SPDX-license-identifier-Apache-2.0 to:
apps/BluetoothDebug/Android.bp
apps/BuildWidget/Android.bp
apps/CustomLocale/Android.bp
apps/DevelopmentSettings/Android.bp
apps/Fallback/Android.bp
apps/GestureBuilder/Android.bp
apps/NinePatchLab/Android.bp
apps/OBJViewer/Android.bp
apps/PushApiAuthenticator/Android.bp
apps/PushApiTestAppOne/Android.bp
apps/PushApiTestAppTwo/Android.bp
apps/SdkSetup/Android.bp
apps/SettingInjectorSample/Android.bp
apps/WidgetPreview/Android.bp
apps/launchperf/Android.bp
cmds/monkey/Android.mk
gsi/gsi_util/Android.bp
gsi/repack_super_image/Android.bp
host/windows/Android.bp
python-packages/Android.bp
samples/AccelerometerPlay/Android.bp
samples/AdaptiveIconSample/Android.bp
samples/AliasActivity/Android.bp
samples/AndroidBeamDemo/Android.bp
samples/AppNavigation/Android.bp
samples/AutofillKeyboard/Android.bp
samples/BackupRestore/Android.bp
samples/BasicGLSurfaceView/Android.bp
samples/BluetoothChat/Android.bp
samples/BrokenKeyDerivation/Android.bp
samples/BrokenKeyDerivation/tests/Android.bp
samples/BusinessCard/Android.bp
samples/Compass/Android.bp
samples/ContactManager/Android.bp
samples/CubeLiveWallpaper/Android.bp
samples/DataWiper/Android.bp
samples/DeviceAdminWhitelistedAccount/Android.bp
samples/FixedGridLayout/Android.bp
samples/HeavyWeight/Android.bp
samples/HelloActivity/Android.bp
samples/HelloActivity/tests/Android.bp
samples/HelloEffects/Android.bp
samples/Home/Android.bp
samples/HoneycombGallery/Android.bp
samples/InlineFillService/Android.bp
samples/JetBoy/Android.bp
samples/LceDemo/Android.bp
samples/LunarLander/Android.bp
samples/LunarLander/tests/Android.bp
samples/MultiResolution/Android.bp
samples/MultiWindow/Android.bp
samples/MySampleRss/Android.bp
samples/NotePad/Android.bp
samples/Obb/Android.bp
samples/RSSReader/Android.bp
samples/ReceiveShareDemo/Android.bp
samples/SampleSyncAdapter/Android.bp
samples/SimpleJNI/Android.bp
samples/SimpleJNI/jni/Android.bp
samples/SipDemo/Android.bp
samples/SkeletonApp/Android.bp
samples/SkeletonApp/tests/Android.bp
samples/Snake/Android.bp
samples/Snake/tests/Android.bp
samples/SoftKeyboard/Android.bp
samples/SpellChecker/HelloSpellChecker/Android.bp
samples/SpellChecker/SampleSpellCheckerService/Android.bp
samples/StackWidget/Android.bp
samples/ThemedNavBarKeyboard/Android.bp
samples/ToyVpn/Android.bp
samples/TtsEngine/Android.bp
samples/USB/AdbTest/Android.bp
samples/USB/MissileLauncher/Android.bp
samples/UiAutomator/Android.mk
samples/Vault/Android.bp
samples/Vault/tests/Android.bp
samples/VoiceRecognitionService/Android.bp
samples/VoicemailProviderDemo/Android.bp
samples/WeatherListWidget/Android.bp
samples/WiFiDirectDemo/Android.bp
samples/WiFiDirectServiceDiscovery/Android.bp
samples/Wiktionary/Android.bp
samples/WiktionarySimple/Android.bp
samples/XmlAdapters/Android.bp
samples/apkcachetest/Android.bp
samples/training/NsdChat/Android.bp
scripts/Android.bp
testrunner/Android.mk
testrunner/tests/Android_native.mk
tools/apkcheck/Android.bp
tools/bugreport/Android.bp
tools/etc1tool/Android.bp
tools/idegen/Android.bp
tools/mkstubs/Android.bp
tools/rmtypedefs/Android.bp
vndk/Android.bp
vndk/tools/Android.bp
vndk/tools/elfcheck/Android.bp
vndk/tools/header-checker/Android.bp
vndk/tools/header-checker/src/repr/protobuf/proto/Android.bp
vndk/tools/header-checker/tests/integration/ifunc/Android.bp
vndk/tools/header-checker/tests/integration/version_script_example/Android.bp
vndk/tools/image-diff-tool/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD
SPDX-license-identifier-CPL-1.0 SPDX-license-identifier-MIT
SPDX-license-identifier-Unicode-DFS SPDX-license-identifier-W3C
legacy_restricted legacy_unencumbered
to:
Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-CPL-1.0
to:
samples/SearchableDictionary/Android.bp
Added SPDX-license-identifier-Apache-2.0 legacy_unencumbered
to:
tools/Android.bp
Added SPDX-license-identifier-BSD SPDX-license-identifier-CPL-1.0
SPDX-license-identifier-MIT SPDX-license-identifier-Unicode-DFS
SPDX-license-identifier-W3C
to:
sdk/Android.bp
Added legacy_restricted
to:
samples/KeyChainDemo/Android.bp
tools/line_endings/Android.bp
vndk/tools/definition-tool/datasets/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I9847e00fb4278bc083b4debbc751003c995ea45c
2021-02-12 17:13:45 -08:00
Hai Zhang
9ae867642a
Revert changes that use PermissionManager instead of IPermissionManager.
...
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
2021-01-11 03:03:01 -08:00
Hai Zhang
36247dc2fb
Use PermissionManager instead of IPermissionManager.
...
Again, but in a different place.
Bug: 158736025
Test: presubmit
Change-Id: Ice1f34d9bcb2095beb7c415316603d2793d979df
2020-12-14 15:22:50 -08:00
Hai Zhang
46c62820cc
Use PermissionManager and IPackageManager instead of IPermissionManager.
...
Permission is being moved into mainline and IPermissionManager can't
be an API.
Bug: 158736025
Test: presubmit
Change-Id: I08a8705d7d9be5b9ca56272e96d0a97497099143
2020-12-14 14:59:58 -08:00
Xin Li
e3b57410da
Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
...
Bug: 166295507
Merged-In: I37a77cdaf905fe0bf58ad8eebcdff36873aec71a
Change-Id: Idac9218a0e169df9d02d9d8d376a6816315a4b28
2020-08-27 10:16:04 -07:00
Philip P. Moltmann
2ccb65e7a7
Adjust monkey code to new internal API
...
Test: Built
Change-Id: I5832b08580dfd01ce5fdd40c34320b84c9407a83
2020-07-31 11:08:19 -07:00
Treehugger Robot
4f2eb07963
Merge "Update language to comply with Android’s inclusive language guidance" am: aace0e5dad am: 762e462fea
...
Original change: https://android-review.googlesource.com/c/platform/development/+/1381456
Change-Id: I31b165b51d8a4caa87daf3341fb7eeeb8962e520
2020-07-31 17:01:22 +00:00
Jeff Sharkey
29bc7dcc26
Update language to comply with Android’s inclusive language guidance
...
See https://source.android.com/setup/contribute/respectful-code for reference
Bug: 161896447
Change-Id: I56dd8778516103367dc17ae55bdff4457185de46
2020-07-30 20:05:08 -06:00
Evan Severson
5418046590
Update revokeRuntimePermission signature
...
Test: Build
Bug: 159659620
Change-Id: Id8dbc260f14cd5cc150df39fad34e2aca026f6e3
2020-06-24 10:05:14 -07:00
Andrii Kulian
b6ee178317
Add package name to monkey's activity launching
...
startActivity* methods now require a package name that matches the
launching UID.
Bug: 148538102
Bug: 148552335
Test: com.android.cts.monkey.CategoryTest#testDefaultCategories
Test: com.android.cts.monkey.CategoryTest#testMultipleCategories
Test: com.android.cts.monkey.CategoryTest#testSingleCategory
Test: com.android.cts.monkey.MonkeyTest#testIsMonkey
Test: com.android.cts.monkey.PackageTest#testMultiplePackages
Test: com.android.cts.monkey.PackageTest#testSinglePackage
Test: com.android.cts.monkey.VerbosityTest#testVerbosity
Test: adb shell monkey -p com.google.android.GoogleCamera -s 999 -v 20000
Change-Id: I481bf3f1751fb93a1fc68e965c6ef360f2c3aaaf
2020-02-15 10:43:02 -08:00
Philip P. Moltmann
d31d086f99
Revert "Revert "Adjust monkey to changed internal APIs""
...
This reverts commit ac5c451ac4 .
Test: 1:1 revert-revert
Bug: 136595429
Change-Id: I9b941d1b26d022568b3046a5f0de815c66f7d504
2020-02-10 12:29:32 -08:00
Philip P. Moltmann
8f06ef700c
Merge "Revert "Adjust monkey to changed internal APIs""
2020-02-10 16:31:33 +00:00
Philip P. Moltmann
ac5c451ac4
Revert "Adjust monkey to changed internal APIs"
...
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
2020-02-10 16:14:12 +00:00
Narayan Kamath
5187261f02
Merge "Reland: Rework platform version to hide codenames."
2020-02-10 10:01:24 +00:00
Dianne Hackborn
253f3c6570
Reland: Rework platform version to hide codenames.
...
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
2020-02-06 11:19:39 +00:00
Philip P. Moltmann
5c91afe765
Adjust monkey to changed internal APIs
...
Test: Built
Bug: 136595429
Change-Id: I8e2a07da777b5f90bf50e5f6a9b5fadae470a409
2020-02-04 03:23:40 +00:00
Kevin Lau Fang
1acb3c80e7
Revert submission
...
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
2019-11-14 20:07:02 +00:00
Dianne Hackborn
ebf46ecf0f
Rework platform version to hide codenames.
...
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
2019-11-11 15:06:06 -08:00
Todd Kennedy
15ad96aca6
grant/revoke permissions moved to permissionmanager
...
Bug: 135279435
Test: manual; builds
Change-Id: I3dd850cb90a53c722e4cda46765b3eb00dc3d70f
2019-07-11 13:21:09 -07:00
Todd Kennedy
2b23bd5a77
getPermissionFlags() moved to permission manager
...
Test: Manual; builds
Bug: 135279435
Change-Id: I8dd4c37729aa10ac5f7346970c8ad19bc9f60642
2019-07-10 15:12:50 -07:00
Todd Kennedy
067d638988
Use permission manager AIDL
...
Bug: 135279435
Test: Builds
Change-Id: Id3ea32c6b11b79125de3923853d8aae06ed9d852
2019-07-03 09:44:35 -07:00
Michael Wright
665cd457bb
Update wakeUp signature.
...
Bug: 122949636
Test: N/A
Change-Id: I14c2962451a2f4f5e959e52fc0e2df3ac1e8d1b4
2019-02-05 00:18:36 +00:00
Nicholas Sauer
fed1b54c14
Update Monkey to lookup the current user so that it can execute against secondary users.
...
bug: 118503943
Test: cts-tradefed run cts-dev -a arm64-v8a -m CtsMonkeyTestCases -t com.android.cts.monkey.MonkeyTest#testIsMonkey
Change-Id: Id7d320fddfbf91d4451a4e141a91614ee9104dec
2018-11-09 04:28:01 +00:00
Netta Peterbursky
3119eaac6a
Fix monkey when it encounters a tombstone.
...
* 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
2018-01-02 14:38:57 -08:00
Netta Peterbursky
7dcd1ea28a
Print out CRASH info when monkey encounters tombstone.
...
Bug: 68762010
Test: Run monkey + manually add tombstone
Change-Id: I8c819ad42d1dd09b98a575a8a761041dded3d7ba
2017-12-19 14:29:47 -08:00
Netta Peterbursky
d46f37edbc
Fix NullPointerException in Monkey.
...
Change-Id: Ibfeb2e68826d8aff748a02cd8bd1c3c3991f9127
Fixes: b/65113577
Test: adb shell monkey -p com.android.calculator2 -p com.android.launcher -p com.google.android.launcher -p com.android.mms -p com.android.phone -p com.google.android.dialer -p com.android.providers.downloads.ui -p com.android.settings -p com.google.android.gms -p com.google.android.setupwizard -p com.google.android.packageinstaller -p com.google.android.apps.nexuslauncher -c android.intent.category.LAUNCHER --ignore-security-exceptions --monitor-native-crashes -s 19 -v -v -v 125000
2017-08-29 10:20:02 -07:00
Netta Peterbursky
45d91a062c
Change Monkey to allow launching home even if gsa is disabled.
...
Bug: 38121026
Test: adb shell monkey -p com.android.calculator2 -p com.android.launcher -p com.google.android.launcher -p com.android.mms -p com.android.phone -p com.google.android.dialer -p com.android.providers.downloads.ui -p com.android.settings -p com.google.android.gms -p com.google.android.setupwizard -p com.google.android.packageinstaller -p com.google.android.apps.nexuslauncher -c android.intent.category.LAUNCHER --ignore-security-exceptions --monitor-native-crashes -s 19 -v -v -v 125000
Change-Id: Ie4e0966249e8e63e0c66d40ad0e13d7046edf56a
2017-08-23 15:06:11 -07:00
Svet Ganov
22ab37903c
Fix usage of a changed IPC API am: 4c9e483779
...
am: 4f8582184b
Change-Id: I6c560b8dc3766f4b1d2845b19f3ac526a811431d
2017-07-28 16:58:20 +00:00
Svet Ganov
4c9e483779
Fix usage of a changed IPC API
...
Test: builds successfully
bug:62755026
Change-Id: Icf4b8640a2d673b819a41bfa9e0d7f0190064ccd
2017-07-28 05:52:18 +00:00
Narayan Kamath
ac9cc7d5b4
Monkey: Dump the most recent ANR trace.
...
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
2017-06-22 18:30:03 +01:00
Chad Brubaker
91e0bb6afd
Track registerReceiver changes
...
Test: see fw CL
Change-Id: I063aa7ac218d25aabdce845451ec48ed8d7a4ed4
2017-04-18 11:26:24 -07:00
Netta P
af27957ba5
Handle RuntimeException in monkey
...
Bug: 36099611
Test: "adb shell am restart" in the middle of the monkey run
Change-Id: I589885a0f47a0ec66d8c3562946ece27e4729fb0
2017-03-15 14:01:34 -07:00
Chad Brubaker
c849856eb9
Merge "Track visibleToInstantApp changes"
2017-03-13 20:52:11 +00:00
Phil Weaver
3c726ef47a
Adjust use of hidden API which I'm changing.
...
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
2017-03-07 12:12:05 -08:00
Chad Brubaker
d44ea7ad94
Track visibleToInstantApp changes
...
Test: see fw CL
Change-Id: Iad76e87ad391b31a3226f067de4a7413a315ef84
2017-03-02 12:33:12 -08:00
Phil Weaver
02ba80e43e
Adjust use of accessibility aidl
...
Bug: 30170631
Test: One-line change to build with larger, tested, change
Change-Id: Ia784f2f657bc55b080bdcf752477946473b6499a
2017-02-03 15:08:31 -08:00
Dianne Hackborn
8a416b3033
API demo for notification that starts a background service.
...
Test: not relevant
Change-Id: I9ad6640dccded3be0baf879a6694f9535144d80c
2017-01-23 14:20:03 -08:00
Joe Onorato
9b433529b9
Send monkey logs to logcat as well.
...
Change-Id: I14ec175afb963a4d3c3b790c25e4bebb3b25a4dc
2016-12-07 17:05:59 -08:00
Joe Onorato
a56875b997
Add --match-description to Monkey
...
Which lets it ignore monkey errors that don't match the pattern you supply
Change-Id: I69e8b02e7172223e7313d0fbd87af395d2d4f0a2
2016-12-07 17:03:14 -08:00
Sudheer Shanka
5b6205978e
Update usage of ActivityManagerNative.
...
Bug: 30977067
Test: N/A
Change-Id: If76488d9e7b1a33f7f5c9d65eb9254d126ef02b6
2016-11-11 15:01:34 -08:00
Eric Rowe
daa527a39b
Monkey: print tombstone names when they're found
...
Bug: 32247044
Test: adb shell monkey -p com.google.android.calculator -c
android.intent.category.LAUNCHER --ignore-security-exceptions
--monitor-native-crashes -s 27 -v -v -v 1000 & (sleep 2; adb shell "echo
abc > /data/tombstones/tombstone_00")
Change-Id: Ie5a444673d0577da360de1e911fcd8322ca8503d
2016-10-21 15:40:02 -07:00
songjinshi
86190d02f2
Merge \"Fixes the system server hang forever issue caused by the monkey not read completed the sync pipe.\"
...
am: e85e33cfd7
Change-Id: Ic3a4d45b844cb8661b4287bdac26c65d6281ad17
2016-07-06 17:50:07 +00:00
songjinshi
f032537cea
Fixes the system server hang forever issue caused by
...
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 >
2016-06-30 00:55:45 +00:00
Dan Willemsen
15348ea4aa
Merge "Replace custom rules, remove ACP"
...
am: a279b12
* commit 'a279b12905f31231a8f3c36c52abcd1224449c1a':
Replace custom rules, remove ACP
2016-03-23 22:02:06 +00:00