Commit Graph

78 Commits

Author SHA1 Message Date
Anton Hansson
ca6e67a66b Ready more build rules for dir move
Tweak some visibilities and set up more filegroups to enable moving
the ApiDocs.bp and StubLibraries.bp files into the api subdir.

Bug: 271563074
Test: m
Change-Id: Ib2776dfc6c67b2042fb2f43a1251cd6f0ba61dc7
2023-05-02 09:21:14 +00:00
Anton Hansson
23f319f69c Make hwbinder stubs use a filegroup for srcs
This allow moving the droidstubs definitions into a subdirectory while
still being able to access the source files.

Bug: 271563074
Test: m
Change-Id: I6e57c2df6e274359554d1cb8014f9d8ab86b207a
2023-03-03 16:04:02 +00:00
Hassan Ali
6192fb8f35 Merge "Add framework-configinfrastructure.stubs lib" 2022-12-12 15:11:30 +00:00
Seth Moore
222a476ac5 Merge "Add remote_provisioning system service" 2022-12-08 15:33:57 +00:00
Hassan Ali
1c4e492c86 Add framework-configinfrastructure.stubs lib
A temporary solution to add framework-configinfrastructure stubs java lib
until we add configinfrastructure module to AOSP.
This change will enable us to add framework-configinfrastructure as a
dependency to other modules.

Test: m
Merged-In: I504b1be870003c0a1a785ab04c04a737f77d33fb
Change-Id: I60a843f2741e537ce36465a836cbf8502e2b4a63
2022-12-08 14:19:22 +00:00
Seth Moore
0277b66f9e Add remote_provisioning system service
This service is callable by system components like keystore2. This
service calls into a mainline module API to do all the work for remote
provisioning.

Also include new OWNERS for the RemoteProvisioning implementation.

Bug: 254112668
Test: Locally modify keystore to call the new service
Change-Id: I6708d0b415798c78a4d66f279589d9def552ae78
2022-12-06 17:30:26 -08:00
Pawan Wagh
85c87b13cd Fuzz java parcel surfaces
Adding a fuzzer for java backend of the parcel.
Test: m java_binder_parcel_fuzzer && ./jazzer_helper.sh --fuzz_target
      java_binder_parcel_fuzzer --target_class parcelfuzzer.ParcelFuzzer
Bug: 232439254

Change-Id: I6ebebb810d707d23a6e4ad9dab1fb51a80f96f69
2022-12-06 10:35:18 +00:00
Pawan Wagh
e618e29200 Adding example java binder service fuzzer
using fuzzService API to fuzz an test service.

Test: m java_binder_service_fuzzer &&
./jazzer_helper.sh --fuzz_target java_binder_service_fuzzer --target_class ServiceFuzzer
Bug: 258075558

Change-Id: If1ff082638eaec04e8ba9c4f8f7321c952b22f82
2022-11-24 03:24:24 +00:00
Hassan Ali
6ec6f8fdd1 Add framework-configinfrastructure lib
A temporary solution to add framework-configinfrastructure java lib
until we add configinfrastructure module to AOSP.
This change will enable us to add framework-configinfrastructure as a
dependency to other modules.

Test: m
Merged-In: I85bd435fb95c7ee6c641cb6679affa9026cf4220
Change-Id: I7877e8bf6c31e3fec0b24a1340df156b175a0034
2022-11-21 17:52:09 +00:00
Treehugger Robot
22db167787 Merge "Remove ProcFileReader from framework-connectivity-shared-srcs" am: 3a578fe5ec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2113304

Change-Id: I7eadfe5638268f324103237ccc5959f31b9952cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 12:05:27 +00:00
Treehugger Robot
3a578fe5ec Merge "Remove ProcFileReader from framework-connectivity-shared-srcs" 2022-08-02 11:43:16 +00:00
Treehugger Robot
4ecafadd7b Merge "statemachine migration from base to modules-utils" am: 51e6e8a0e1 am: 8cc1782ba5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1893671

Change-Id: I5ba9d65a7223fbf9d1f371e672491f09b05c1940
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-15 01:25:27 +00:00
William Escande
358a664344 statemachine migration from base to modules-utils
Bug: 198418216
Tag: #refactor
Test: atest ModulesUtilsTests
Test: atest FrameworksUtilTests
Merged-In: I65303c131f6e867f6c44d14baa537560fa8bf857
Change-Id: I65303c131f6e867f6c44d14baa537560fa8bf857
2022-06-08 21:15:14 +00:00
chiachangwang
8c95da9f46 Remove ProcFileReader from framework-connectivity-shared-srcs
The dependency in NetworkStatsFactory is removed, so it's no
longer needed.

Bug: 234315786
Test: m ; atest FrameworksNetTests
Change-Id: Ieec54c5b5cb679042e2d7aebe4005644352bdc62
2022-06-01 08:29:31 +00:00
Anton Hansson
ad25b2a205 Merge changes from topic "revert-2110246-revert-2108043-locallog-RHVOQAJCFV-GELQNRAIEE" am: ab498bff17 am: 755b013a70
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2110704

Change-Id: I69726559de01786dc7fecc50c0a3ce8a113b0137
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-31 09:42:20 +00:00
Anton Hansson
476557fd43 Revert^2 "Convert filegroup to library" am: 4e8ccccbec am: 84ed6576e9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2110234

Change-Id: I0250df1c943c4596bc2ce5403730ce6fd4398745
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-31 09:41:46 +00:00
Anton Hansson
a08352e838 Make modules-utils-locallog available to platform
Makes CellBroadcastServicePlatform able to use it.

Test: lunch aosp_cf_arm_only_phone && m nothing
Change-Id: Ic62dff140f81db9aac4728ba98b44e6fbbdc9c0c
2022-05-30 17:09:53 +00:00
Anton Hansson
4e8ccccbec Revert^2 "Convert filegroup to library"
5fca5ff385

Change-Id: I1a020fffc6345a131453b27d6f8bc2cf0acb942b
2022-05-30 16:41:42 +00:00
Jinfeng Du
c2f6a875bd Merge "Revert "Convert filegroup to library"" am: 0801f8008b am: 53d695ed20
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2110247

Change-Id: I2cfff0eccca0a9e3860297b32c1a54c2f83f7340
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 15:36:12 +00:00
Jinfeng Du
5fca5ff385 Revert "Convert filegroup to library"
Revert "Add dependency on modules-utils-local-log"

Revert submission 2108043-locallog

Reason for revert: b/234350536
Reverted Changes:
I2e873458d:Replace source dependency with library
I95d270e5e:Convert filegroup to library
I17c77d972:Add dependency on modules-utils-local-log
I2e873458d:Replace source dependency with library

Change-Id: I551b1e6e0498599fb48d368e079958257065fdb4
2022-05-30 14:49:04 +00:00
Anton Hansson
8edb229d23 Merge "Convert filegroup to library" am: dffbaaed39 am: 332131017f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2108043

Change-Id: I1e1bcaab980715949ee3f76de16f408608e124ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 12:41:10 +00:00
Anton Hansson
e4fcdec29f Convert filegroup to library
This filegroup makes more sense as a standalone modules-utils library,
and can be migrated to the modules-utils repository. Remove the
unnecessary dependency from services.net-module-wifi.

Test: m
Change-Id: I95d270e5e885fc40bd21af693058ace9818f1e3e
2022-05-27 15:15:11 +00:00
Santos Cordon
7f4fe4c4d6 Update BrightnessSynchronizer Logic
There was an error where if two auto-brightness changes came in quick
succession, the first could be treated as a user-initiated brightness
change.

1. First float change comes in: Xf
2. We write the brightness to the int-setting: Xi
3. Second float change comes in: Yf
4. Notification of the Xi change comes back to us and because X is
   different from Y, we treat it as a user-change.

The result of this is that auto-brightness learned from these erroneous
"user inputs" and both the short and long term model get affected
negatively for the user.  Often manifesting in brightness learning to
be too low.

The quick succession changes can happen in various situations, but
were most prominent on startup before and after a valid lux is read.

The fix is the revamp the data synchronization algorithm we use in
BrightnessSynchronizer to have updates + confirmation callback be
treated as an atomic operation before executing any other updates
that come in.  In the example above, that means we run (1) (2) and (4)
before handling the new update found in (3).

Fixes: 227483176
Test: Manually verify through debug logging.
Test: atest BrightnessSynchronizerTest
Change-Id: I93856fd74e50bcda04e88a7b7e736e02faa76c8e
2022-05-19 00:13:50 +00:00
Joanne Chung
ade911b9c7 [DO NOT MERGE] Remove selection toolbar code from build time
The feature punts to QPR so disable or remove code from the build
time.

Bug: 222185402
Test: build pass and can boot to home
Test: make sure the toolbar using local implementation

Change-Id: Idad82c3c46ddce0731a26f4599de01eecb0e52c3
2022-05-05 18:09:42 +08:00
Corina
cbc4d681e7 Move UiEventLogger interface to modules-utils.
This is so the soures can be accessed both fom framework and modules.
The implementation needs the local StatsLog, so cannot be reused.

Test: m
Test: atest SystemUITests
Test: make statsd_testdrive $ANDROID_HOST_OUT/bin/statsd_testdrive 90
Bug: 218862369
Change-Id: I27ebffa6817575f1377beb80f4092287d9b12c49
Merged-In: I27ebffa6817575f1377beb80f4092287d9b12c49
2022-03-16 18:41:11 +00:00
Junyu Lai
0580abcc9a Create framework-connectivity shared filegroup
Since data usage related code is going to move to mainline module,
hidden classes and methods can no longer be accessed. However,
some of the hidden classes in the platform are still needed, and
cannot be moved because of other callers.

Thus, create a shared srcs filegroup to allow these classes
build with the module to solve the dependencies.

Test: TH
Bug: 204830222
  (cherry-picked from ag/16656704)
Change-Id: I3813bc2177b2f0b4237056f64c57c63fa29c3081
Merged-In: I3813bc2177b2f0b4237056f64c57c63fa29c3081
2022-02-08 19:12:41 +08:00
Lorenzo Colitti
b5e914a343 Delete DhcpResults from frameworks/base.
This class is only used by NetworkStack, so move it to the
NetworkStack project.

Test: m
Change-Id: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
Merged-In: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
2022-02-07 06:03:11 +00:00
TreeHugger Robot
d44f10236a Merge changes from topic "no-dhcpresults"
* changes:
  [automerge] Delete DhcpResults from frameworks/base. 2p: a2ea37e61e
  Delete DhcpResults from frameworks/base.
2022-02-07 05:53:10 +00:00
Presubmit Automerger Backend
d316c590ab [automerge] Delete DhcpResults from frameworks/base. 2p: a2ea37e61e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16781268

Change-Id: I7c98eeef9b2a92dbce1014ce51eaca19d19e40d8
2022-02-03 15:52:01 +00:00
Lorenzo Colitti
a2ea37e61e Delete DhcpResults from frameworks/base.
This class is only used by NetworkStack, so move it to the
NetworkStack project.

Test: m
Change-Id: I356ee7b24613e84b8a90ddccd6d25d0742d13ae7
2022-02-04 00:51:11 +09:00
Junyu Lai
9fd93192c5 Create framework-connectivity shared filegroup
Since data usage related code is going to move to mainline module,
hidden classes and methods can no longer be accessed. However,
some of the hidden classes in the platform are still needed, and
cannot be moved because of other callers.

Thus, create a shared srcs filegroup to allow these classes
build with the module to solve the dependencies.

Test: TH
Bug: 204830222
Change-Id: I3813bc2177b2f0b4237056f64c57c63fa29c3081
2022-02-04 00:48:25 +09:00
Hui Yu
a714924707 Add WakeLock.setStateListener() API.
WakeLock uses this API to add listener of type WakelockStateListener,
whenever framework enable/disable this wake lock, the onStateChanged()
callback on this listener is called.

This API can be called before or afte acquiring the wakelock. It can be
called multiple times to change to another listener.

Add test cases testNotifyWakeLockCallback() and
testNotifyWakeLockCallbackChange() in PowerManagerServiceTest.java.

Bug: 213925462
Test: atest cts/tests/tests/os/src/android/os/cts/PowerManager_WakeLockTest.java.
Change-Id: Ic59303c59e53eb974e2765e3036002ac97ce8aa5
2022-01-28 11:58:55 -08:00
Lalit Maganti
d145d12784 Merge "base: add support for routing traces to reporters" am: 3a24d6bffb am: 26a716c74e am: a70c08c6f5 am: 8df5573e81
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1918624

Change-Id: I3831fc11a7c105177256fe4f3e0fad53f03da319
2022-01-28 13:21:32 +00:00
Lalit Maganti
4b7d9b148b base: add support for routing traces to reporters
Change-Id: I4ff55e9c211bfedada85234ee86f7484acf633ee
2022-01-27 20:48:38 +00:00
Billy Lau
cfa26cb21e Merge "Add BinaryTransparencyService as new SystemService." 2022-01-27 15:36:49 +00:00
Billy Lau
d1fb08be0a Add BinaryTransparencyService as new SystemService.
Bug: 197684182

Created a new system service that aggregates information about:
1) signed partitions on device
2) APEXs installed on device
3) Modules installed on device

Introduces new adb shell commands as below:
adb shell cmd transparency get image_info [-a]
adb shell cmd transparency get apex_info [-v]
adb shell cmd transparency get module_info [-v]

Test: Built and tested locally on a bramble - the device boots.
Issuing adb shell commands as above provides correct outputs.

Change-Id: I2cae1bd794456688779c70c65b3f5ec8bcd7c6b3
2022-01-24 15:58:05 -08:00
Wenhao Wang
256519a529 Add logcat service to track logd access
The LogcatManagerService monitors all privileged (in AID_LOG group)
access to logd. Only Root and System Server can read the logd data
without tracking. Whenever the logd recieve privileged read data request,
the request is forwarded to the LogcatManagerService.

The LogcatManagerService can approve or decline the request via
binder RPC on logd service. The binder call is enforced by sepolicy.
That means only LogcatManagerService can use the logd binder service.
And only logd can use the logcat binder service.

The next step will add user consent requirement for the logd access.

Bug: 197901557
Test: Reboot the device, then run "adb logcat" multiple times
both during the booting and after the booting. The control flow goes
correctly as we expected.
Ignore-AOSP-First: pending fix for logcat privacy issue

Change-Id: I5e225b65357e7bfacd5c6c9cb4fab5f309803193
2022-01-19 16:49:49 -08:00
Austin Borger
c23a5068cb activity_manager_procstate_aidl: Create library for filegroup.
This is required by cameraservice_test_host. Other filegroups in this
.bp file have associated libraries, but none exists for
activity_manager_procstate_aidl.

Bug: 207411352
Test: Built libactivity_manager_procstate_aidl-cpp.
Change-Id: I24cd93271c83e825166f212e033ec5dbb05d8681
2021-12-22 19:23:20 +00:00
Tej Singh
9622192b37 Create cpp aidl_interface for libstatsbootstrap
Create aidl_interface for files needed for libstatsbootstrap.

Bug: 206644307
Test: manually verified atoms could be logged
Change-Id: Ic970e99b588c9e1494a390f6c18e7925e199d5a4
2021-12-13 19:12:12 -08:00
William Escande
4f3506aaec Migrate telephony to use modules-utils
StateMachine stand-alone library will replace all specific filegroup
created for module.
It will be then moved into modules-utils
precondition is not used in telephony

Bug: 198418216
Tag: #refactor
Test: Build
Change-Id: I82f45294d7f073d15f988f8ffce979096b6e51d0
2021-11-11 18:51:42 +01:00
Treehugger Robot
09b947cd02 Merge "Migrate Connectivity modules to use modules-utils" 2021-10-20 13:43:58 +00:00
wescande
fde3d9aee5 Migrate Connectivity modules to use modules-utils
StateMachine stand-alone library will replace all specific filegroup
created for module.
It will be then moved into modules-utils

Bug: 198418216
Tag: #refactor
Test: Build
Merged-In: I07260fec2c8ec4bee9ddc1ce6004622976182109
Change-Id: I07260fec2c8ec4bee9ddc1ce6004622976182109
2021-10-01 15:07:25 +00:00
wescande
b94bc99ab1 Migrate Connectivity modules to use modules-utils
StateMachine stand-alone library will replace all specific filegroup
created for module.
It will be then moved into modules-utils

Bug: 198418216
Tag: #refactor
Test: Build
Change-Id: I07260fec2c8ec4bee9ddc1ce6004622976182109
2021-09-30 12:58:42 +02:00
William Escande
5c1d0fe88e create library for mainline module
This library is a temporary work to link all mainline module using
statemachine.
Once this is done, we will be able to move the library to
frameworks/libs/modules-utils

also fix some typo in state* files

Cherry picked from aosp/1818896

Bug: 198418216
Tag: #refactor
Test: None
Merged-In: I1bec7c7bdb25bf3397a742a356aa1f18fddf7d89
Change-Id: I1bec7c7bdb25bf3397a742a356aa1f18fddf7d89
2021-09-23 16:31:48 +00:00
wescande
1aff432fda Migrate Cellbroadcast modules to use modules-utils
StateMachine stand-alone library will replace all specific filegroup
created for module.
It will be then moved into modules-utils
Preconditions and handlerExecutor are arlready moved in modules-utils

Bug: 198418216
Tag: #refactor
Test: Build
Change-Id: Ia72c92d6be150edfee3743878d988f21a585e808
2021-09-23 15:04:54 +02:00
William Escande
b52b48c9d1 Wifi use state machine from modules-utils
Bug: 198418216
Tag: #refactor
Test: atest FrameworkWifiApiTests
Change-Id: I2087b15cf34b76dabeb14d51d041533f55e1b5ba
2021-09-20 23:19:09 +02:00
Treehugger Robot
26531301a0 Merge "create library for mainline module" am: c59870928e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818896

Change-Id: I048c27593314c00706f29db19b6d20ed4b899ae2
2021-09-07 14:00:18 +00:00
William Escande
a6fb9459cc create library for mainline module
This library is a temporary work to link all mainline module using
statemachine.
Once this is done, we will be able to move the library to
frameworks/libs/modules-utils

also fix some typo in state* files

Bug: 198418216
Tag: #refactor
Test: None
Change-Id: I1bec7c7bdb25bf3397a742a356aa1f18fddf7d89
2021-09-06 15:28:09 +00:00
Treehugger Robot
c978bf0e0a Merge "AdbService sends callback on adb debugging enabled / disabled." am: 6efa908b95 am: 870e9c266b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1775965

Change-Id: I54a60b127532a7a8ea4f20c597789362ac2eb47f
2021-08-10 04:26:31 +00:00
Yifan Hong
08fdaa25cb AdbService sends callback on adb debugging enabled / disabled.
Test: pass
Bug: 190867939
Change-Id: Ieebe78e01bec948a1475d1c74a84b95e275fa48e
2021-08-03 14:17:10 -07:00