746 Commits

Author SHA1 Message Date
Nandana Dutt
47c5ecc50a Remove obsolete methods from DumpstateListener implementations
Note that with the new Bugreporting API, SystemServer is the only
expected DumpstateListener implementation. Once we fully migrate Shell
app, we can remove the implementation in BugreportService as well.

BUG: 128980174
Test: bugreport from power menu, observe progress bar

Change-Id: I40d654a70bd9ceb3a29f8a0113b85616100f4ee9
Merged-In: I40d654a70bd9ceb3a29f8a0113b85616100f4ee9
2019-08-06 17:43:11 +00:00
Xin Li
c76d117d2a DO NOT MERGE - Merge pi-platform-release (PPRL.190505.001) into stage-aosp-master
Bug: 132622481
Change-Id: I7ba1a9999b3a9bac8031dd086fa2632e45404f32
2019-05-15 11:31:45 -07:00
Sasha Smundak
3d94f0ea5b Merge "Convert packages/Shell/**/Android.mk file to Android.bp"
am: 355f9f77a9

Change-Id: I7c869c798b4836485daee9113b83100fc36ee862
2019-05-03 09:20:52 -07:00
Sasha Smundak
995887eafb Convert packages/Shell/**/Android.mk file to Android.bp
See build/soong/README.md for more information.

Bug: 122332340
Test: atest ShellTests
(same errors as baseline)
Change-Id: I63b777342359e0b42ccd554b7d056c7431178380
2019-05-02 21:35:45 -07:00
Bill Yi
16adee0dec Import translations. DO NOT MERGE
Change-Id: I219d0c8ab1cf805a0f32e64b53dee3a94abfa68a
Auto-generated-cl: translation import
2019-04-12 21:17:01 -07:00
Narayan Kamath
55a06bb5d1 Merge "Shell: Grant CACHE_CONTENT to Shell"
am: dd2e005d2f

Change-Id: I5a409357fa9a4acd2cc7cbdf707b7388557e8643
2019-04-10 01:20:37 -07:00
Narayan Kamath
f207dc666f Shell: Grant CACHE_CONTENT to Shell
Required to test ContentResover#[get|put]Cache

Bug: 127711435
Test: atest CtsContentTestCases

(cherry picked from commit a31ed1bbdd45625036ac65bb41d2f1d462e14a04)

Merged-In: I5eb72772a0a35897611dd6db95c68a2d2e971e9a
Change-Id: I91a91a2969db175d88e9f41938869bc751f7b108
2019-04-09 18:58:02 +01:00
Hall Liu
7e3864bc99 Merge changes from topics "nw-scan-cts", "nw-scan-changes"
am: f276a56215

Change-Id: I1399e0bd8a6ff26e8df2bfc7d4515e4dbb1d64e4
2019-04-01 13:54:15 -07:00
Hall Liu
f276a56215 Merge changes from topics "nw-scan-cts", "nw-scan-changes"
* changes:
  Add shell permissions for CTS testing
  Allow requestNetworkScan to return sanitized info
2019-04-01 20:31:10 +00:00
Hall Liu
64fbe76fba Add shell permissions for CTS testing
Add NETWORK_SCAN to shell permissions to enable CTS testing of the
network scan changes

Bug: 126779616
Test: CTS
Change-Id: I1f75c9005620b3b0e06f066677cba6190f1d266c
Merged-In: I1f75c9005620b3b0e06f066677cba6190f1d266c
2019-03-29 17:15:02 +00:00
Mark Chien
b15da9fb19 Merge "[KA09] add keepalive offload permission to shell"
am: bc350db984

Change-Id: Ica5b5ec05731a7c840d1f7dd1534d532c524df04
2019-03-28 23:34:48 -07:00
Mark Chien
bc350db984 Merge "[KA09] add keepalive offload permission to shell" 2019-03-29 06:15:11 +00:00
KOUSHIK PANUGANTI
343676e483 Merge "Migrate frameworks/base/packages/Shell to androidx.test"
am: fae40404f7

Change-Id: Icc87997f68dcc8256fec71d213ea754d8bd8c729
2019-03-28 13:22:22 -07:00
Treehugger Robot
fae40404f7 Merge "Migrate frameworks/base/packages/Shell to androidx.test" 2019-03-28 19:56:53 +00:00
markchien
95ddfff752 [KA09] add keepalive offload permission to shell
This change adds PACKET_KEEPALIVE_OFFLOAD to shell, which allows
shell or code with shell permission identity to use privileged
tcp keepalive offload API.

Bug: 114151147
Test: -atest ConnectivityManagerTest#testCreateTcpKeepalive
      -build, flash, boot

Change-Id: Ib6660a5eaa72f83042596481452be4d415383f02
Merged-in: Ib6660a5eaa72f83042596481452be4d415383f02
2019-03-28 04:41:14 +00:00
Abhijeet Kaur
f43399621c Merge "Add Looper.prepare() to doInBackground()"
am: 89bf100d66

Change-Id: Ia030ffbf4913d1f04f0f007a9947186d107038cc
2019-03-25 02:01:16 -07:00
Treehugger Robot
89bf100d66 Merge "Add Looper.prepare() to doInBackground()" 2019-03-25 08:48:03 +00:00
Abhijeet Kaur
f990cf0392 Add Looper.prepare() to doInBackground()
Fix runtime error that was being thrown as Looper.prepare() was not called
in the async function doInBackground.

Bug: 124612105

Test: Was not able to reproduce the bug (that is make code execution flow
through the catch block).
* Reproduced by throwing IOException in the try block so that code flows
  to the catch block.
* Build and flash.
* Take interactive bugreport and change title and name of the bugreport from
  the progress bar.

Merged-In: I6a5ea594d95462e1c66bd28eb81dd5f4daa6f35e
Change-Id: I6a5ea594d95462e1c66bd28eb81dd5f4daa6f35e
(cherry picked from commit b7a6549654374800d3954b4e765c86b5a888258b)
2019-03-23 15:39:03 +00:00
KOUSHIK PANUGANTI
390f4c03ab Migrate frameworks/base/packages/Shell to androidx.test
See go/jetpack-test-android-migration

Test: mmma frameworks/base/packages/Shell
Change-Id: I26076b3ad1871dde3ef6b206bf5502648d1a0cbb
2019-03-20 05:36:17 +00:00
Benedict Wong
7a66b02e62 Merge "Add MANAGE_TEST_NETWORKS permission as @hide"
am: 96f51fd970

Change-Id: Ia5e9f3e7ba7024151d0f4fa595bf66daaa0fc948
2019-03-14 10:59:14 -07:00
Benedict Wong
600d93f1de Add MANAGE_TEST_NETWORKS permission as @hide
This commit adds a new permission for test networks, granted to the
shell permission identity.

Bug: 124519473
Test: In-progress CTS tests
Change-Id: I995b93a66d283b9e37381b616843dd44dbafe319
2019-03-13 00:44:04 +00:00
Hai Zhang
7e9b5b3c76 Merge "Add OBSERVE_ROLE_HOLDERS permission to shell."
am: 3d8cef1fa8

Change-Id: Id4d2229546b9a8469a6ec2abb897ec620f82995b
2019-02-27 12:30:43 -08:00
Hai Zhang
f7e8368d31 Add OBSERVE_ROLE_HOLDERS permission to shell.
This allows testing relevant APIs in CTS tests. The listener itself
only gives the changed role name and user affected.

Bug: 125404675
Test: build
Merged-In: I5c979a26dae103ea1b633c2119c59363d8953aa2
Change-Id: I29ca1827e597d318cbd74ba3e70796c5853a9dc4
2019-02-26 16:55:35 -08:00
Xin Li
b455c3a7f3 DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Bug: 120848293
Change-Id: I2f9a524f2ba552de3f62e343075cf0abf400bbae
2019-02-21 16:02:06 -08:00
Bill Yi
8bf1a45ae4 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I1e9a93f1b40f89db42865246b67fdea660184808
2019-02-19 23:57:32 -08:00
Xin Li
0e71b4f19b DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into
stage-aosp-master

Bug: 124234733
Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
2019-02-14 09:48:06 -08:00
Treehugger Robot
f5a0e41e18 Merge "Grant Shell ability to clear instant app" 2019-02-12 03:42:40 +00:00
Nandana Dutt
b2da22a0de Improvements to Bugreporting API.
* Add cancelBugreport method.
* Remove unused arguments to onFinished listener call.
* Publish the system service now that sepolicy for it
  is submitted.
* Use the new bugreportd service.

Test: boots
BUG:111441001
Change-Id: I12d72e0e1f4ca72d285fd02a3fc1a44f5c179885
2019-01-23 10:21:45 +00:00
Nandana Dutt
0296c0cf26 Merge "Add the new dumpstate listener methods to implementations" am: 55c2344bc5
am: 4524abd318

Change-Id: Icbfe6a1f810d61ae4ba92a8c2894b5e8a0d6a992
2019-01-15 06:36:21 -08:00
Nandana Dutt
c8c77bc043 BugreportAPI : Connect listener to binder callbacks
BUG: 111441001
Test: builds
Test: interactive bugreport still works
Change-Id: Ie3f2328f558bb2de1dec2908c6ab13f5a17df115
2019-01-15 12:51:42 +00:00
Nandana Dutt
432f8c7b86 Add the new dumpstate listener methods to implementations
Add dummy implementations for status, error and finished callbacks.
Next step: wire these up end-to-end; change Shell's listener to be
BugreportManager.BugreportListener, and make it communicate with the
native service explicitly through the new system api.

BUG: 111441001
Test: Verified progress in interactive bugreport still works
Change-Id: Iad0bb7b23b04f6bc7e3b31e5071df42409c78684
2019-01-14 17:55:27 +00:00
Bill Yi
3e025973af Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie7e021376ab58e142d22b16570fc324a7dabb2ef
2018-12-25 05:17:25 -08:00
Chen Xu
8229f4c5f8 Merge "new SystemAPI for preciseCallState and DisconnectCause" am: 6eacd30e8f
am: f034647231

Change-Id: I2320bd6f4b85ef55a2fe3b7c865ffde67d71d415
2018-12-20 20:19:15 -08:00
chen xu
970d77913b new SystemAPI for preciseCallState and DisconnectCause
1. decouple disconnectCause and preciseDisconnectCuase from
 preciseCallState.
 2. expose preciseCallState to SystemAPI and expose
onPreciseCallStateChanged to System API
3. remove/hide ImsReasonInfo from PreciseDisconnectCuase
4. expose DiconnectCuase and PreciseDisconnectCause to System API
5. new onDisconnectCauseChanged API on PhoneStateListener for CS call
 and use ImsCallSessionListener for IMS call(imsreasonInfo)
6. add read_precise_phone_state to shell apk to enable GTS test

Bug: 119890559
Test: atest GtsGmscoreHostTestCases:TelephonyHostTest#testPhoneStateListener
Change-Id: If9256feff16b6bcaef1dfe194c2b0df2a48436b0
(cherry picked from commit 6a942d488af3356fe84b0cef396e613d8d74101e)
Merged-in: If9256feff16b6bcaef1dfe194c2b0df2a48436b0
2018-12-20 18:41:11 +00:00
Felipe Leme
80ae48bff3 Merge "Added OWNERS to Shell and hook to make sure it's developed on AOSP." am: 4384c5c241
am: 2ffd64805c

Change-Id: Ida97bc760fb5d26ace3ac1092f05b3b8fa7ede7f
2018-11-21 14:37:39 -08:00
Felipe Leme
4c192e9690 Added OWNERS to Shell and hook to make sure it's developed on AOSP.
Bug: none
Test: none

Change-Id: I1f6f554cf98c78d1ab8a1e820d485a37238230f5
2018-11-21 13:00:06 -08:00
Hai Zhang
816e35e405 Merge "Add MANAGE_ROLE_HOLDERS permission to shell." am: a2ccaf6e68
am: 5837aa482b

Change-Id: I4ddb49575f423237be4f354bbf37c5bce56fa958
2018-11-20 00:09:55 -08:00
Hai Zhang
bc0df49ed9 Add MANAGE_ROLE_HOLDERS permission to shell.
This change adds the MANAGE_ROLE_HOLDERS permission to shell, which
allows shell or code with Shell permission identity to use privileged
RoleManager APIs.

Bug: 110557011
Test: build
Change-Id: I6b8be9eec2a1dfb169536cfcda9d21cb802df327
2018-11-19 17:27:47 -08:00
Svet Ganov
8947d38c39 Merge "Add owners to the Shell app" am: bc12083aa7
am: 924f4e352d

Change-Id: I4ccfecaa7f8b8a2102a5d285ee9848e4fb105a13
2018-11-12 12:52:39 -08:00
Svet Ganov
2ffbacda3d Add owners to the Shell app
The Shell app has elevated privileges as it is used for development
and testing behind the USB debugging developer option. This change
adds owners file to control the changes to the Shell app and more
specifically to its manifest file to ensure only sensible singature
protection permissions are granted to the shell.

Test: manual

bug:80415658

Change-Id: Ic7a442320f052d3c698ed923f1a953e4bee646eb
2018-11-05 17:31:55 -08:00
Bill Yi
70c7b0702a Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I018ce29f4ec3ae26715ae9ce66144a2c9222906f
2018-11-02 05:47:07 -07:00
Phil Weaver
2ca26297c0 Merge "Grant shell permission to manage accessibility" am: cf092a87c2
am: a28031b7da

Change-Id: I690233f012873d333f4ed4931f29e9c27223ab8f
2018-10-15 14:33:55 -07:00
Phil Weaver
1df928ff2b Grant shell permission to manage accessibility
Bug: 116118615
Test: make
Change-Id: I6caa663a09a9119cd62561ed746cd139025edf44
2018-10-12 15:48:34 -07:00
Michael Groover
25131f86fa Merge "Add READ_PRIVILEGED_PHONE_STATE to used permissions"
am: 403813782f

Change-Id: Id778252cc548c20ed05dc59c4a3da85b40cc0b7c
2018-10-09 16:37:23 -07:00
Michael Groover
1248e435a0 Add READ_PRIVILEGED_PHONE_STATE to used permissions
Bug: 110099294
Test: cts-tradefed run cts -m CtsTelephonyTestCases -t android.telephony.cts.TelephonyManagerTest
Change-Id: I13fec3d397c200ce92883883c96c07007e823efe
2018-10-08 11:29:03 -07:00
Nandana Dutt
70509bba06 Merge "Disable the buginfo dialog on AndroidTV"
am: 7eaa2cbf51

Change-Id: If32bf9933b2443839391ac7d326778112937de90
2018-10-03 09:56:53 -07:00
Nandana Dutt
7eaa2cbf51 Merge "Disable the buginfo dialog on AndroidTV" 2018-10-03 15:39:22 +00:00
Nandana Dutt
f0f9fab3c8 Merge "Warn about sensitive bugreport contents."
am: 702587e787

Change-Id: I4fa68006bf45a0514a153d4373274c12ba10f528
2018-10-03 03:14:48 -07:00
Nandana Dutt
702587e787 Merge "Warn about sensitive bugreport contents." 2018-10-03 09:51:59 +00:00
Nandana Dutt
09087a83fa Merge "Synchronize access to sNotificationBundle."
am: 729ae07a36

Change-Id: I07b54a6252348d998ea0b695f3817059c63e0364
2018-10-03 02:21:18 -07:00