327 Commits

Author SHA1 Message Date
Pranav Vashi
b520e3ed96 wahoo: Add Moto Dolby support
Change-Id: I11e837a91e12bc52b102717d0c2f4cf62081b5f7

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Asriadi Rahim <asriadirahim03@gmail.com>
2024-07-08 16:33:08 +08:00
Alexander Koskovich
01b53d4bf8 wahoo: Disable the usage of ConfigStore.
* As per commit 11a113a67e ("Add disable_configstore").

[SebaUbuntu] Remove manifest entry as well

Change-Id: I5482989a8a96227a3e2a5317eacf613c641bfa8e
2024-07-08 16:28:29 +08:00
Inseob Kim
b44ec55fe3 Remove sys.vdso property
This is an experimental property on Q and doesn't need anymore.

Bug: 154885206
Test: N/A
Change-Id: I89ac87569296f97cb9492686c24e804423e9bca4
2020-05-11 18:05:59 +09:00
Martin Liu
da1f2ab114 mm_event: move mm_event into common
This CL moves mm_event and relative sepolicy
into common

Bug: 152414692
Test: build
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Ie6d9c40f5fd2ac3f9abb86edc4d43baa88864f55
2020-04-01 16:02:44 +08:00
Wei Wang
32ce635c3b Start Power HAL early
Power HAL start "on boot" trigger and we start processing hints on
boot_complete. The power start time and hint processing time different,
the reasons are both boottime and also availability of governors. The
notification of IPC is done by setting vendor.setup.power to 1.

This has been always the case. However there is new dependency in
surfaceflinger for Power HAL availability.

To workaround the dependency for early bootanim: bootanim =>
surfaceflinger => power hal, we could start Power HAL earlier by moving
from on boot to on late-fs here, as Pixel Power HAL doesn't need
anything in data/ partition e.g. neither persist property nor
configuration file.

Bug: 152131148
Test: build
Change-Id: I87d0b0ea32c86898f6bc19958d321ed177c2a739
2020-03-23 13:35:47 -07:00
Anthony Stange
d3b77449d8 Define CHRE daemon variables and remove rc config
Define CHRE_DAEMON_USE_SDSPRPC for wahoo since the daemon needs it to
be built properly now.

Additionally, the daemon's init.rc config is now included as part of the
daemon makefile so remove it from the device's init.hardware.rc.

Bug: 139693714
Test: compile
Change-Id: I0aaf7a3d965abeac63f4f62d743e655be3bebc09
2019-10-24 14:01:26 -04:00
Yifan Hong
accbf870df Merge "/charger->/system/bin/charger" am: bd1e386b69 am: d439ae48e8 am: 0116446151
am: 15d810213d

Change-Id: Iad3d56be453154c15f4a9e068986c016f1288b20
2019-10-17 13:34:10 -07:00
Yifan Hong
bd1e386b69 Merge "/charger->/system/bin/charger" 2019-10-17 19:50:26 +00:00
Yifan Hong
7c0f2ff08b /charger->/system/bin/charger
Bug: 142286265
Test: charger mode
Change-Id: Iddfca94f0279ac604c5301a3413b59b99dd6f9b7
2019-10-16 17:37:10 -07:00
Jimmy Chen
9f2a72251d wifi: move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2019-10-03 11:24:23 +08:00
Paul Crowley
09fae93fad Merge "Don't create /data/hostapd" am: 70b042502f am: a50103c2d6 am: 1f29930c81
am: eeae90f29b

Change-Id: I4b80e27ef0fbe425ea9da1cdd528ff00897d1602
2019-09-13 14:35:57 -07:00
Treehugger Robot
70b042502f Merge "Don't create /data/hostapd" 2019-09-13 20:44:29 +00:00
Paul Crowley
c51d71fcdd Don't create /data/hostapd
This directory isn't actually used, and vendor_init shouldn't be
creating things in /data

Bug: 140259336
Test: Set up a hotspot, check logs for issues.
Change-Id: I923be96d69d783476cfb65acdeae063e1b4d4f87
2019-08-30 15:10:02 -07:00
Martijn Coenen
c877c20908 Disable dm-verity hash prefetching.
Prefetching appears to have a slightly negative effect on boot time, and
actually makes boot time much worse when the available dm-bufio cache
shrinks. Since we anticipate the dm-bufio cache will shrink (because of
an increasing number of APEX dm-verity targets), disable prefetching
completely.

Boot time w/o this change:  12.085
Boot time with this change: 11.958

Boot time w/o this change with 128kB dm-bufio cache: 22.82
Boot time with this change with 128kB dm-bufio cache: 12.007

Test: atest google/perf/boottime/boottime-test
Bug: 136247322
Change-Id: I12e342c5692fa89855d9c217f2e94287ff5642a6
2019-08-28 10:17:28 +02:00
TreeHugger Robot
df03f7bab2 Merge "Remove notifications from bugreport generation using combo keys" 2019-08-09 10:57:38 +00:00
Abhijeet Kaur
ef15e18306 Remove notifications from bugreport generation using combo keys
In Q, we added a new bugreport API that asks for user consent before
showing the "Share" notification for the bugreport. We will be migrating
all bugreporting clients to use the API in R.

In the new API workflow we are moving away from broadcasts and using
callbacks to communicate with dumpstate. Finished bugreport notification
broadcast used to share the final path of the bugreport but API now uses
file descriptors instead. Hence, moving away from broadcasts.

The full bugreport in this case can be retrieved from dumpstate directory
using 'adb pull' or finding and attaching the file directly to gmail or
betterbug.

Remove outputfile flag since it's unused.

Bug: 135186519
Bug: 137825702
Test: Build and flash to the device. Create a bugreport using combo
keys, share notification does not pop up. Full bugreport created in
bugreports/ dir

Change-Id: I3c15123a6a4ed62ae9cb87f5dd07db60b1416dfc
2019-08-08 10:46:50 +00:00
Jimmy Chen
07e5a0616c hidl: Uprev supplicant to 1.3
Bug: 136720092
Test: build and boot
Change-Id: Ib68c8cdef010c86fa2061bb4f791270d473610ac
2019-08-01 07:57:03 +08:00
Roshan Pius
d9466c14aa init.rc(wahoo): Remove redundant wifi dir creation
This is already handled in the rootdir/init.rc. There is no need for the
device specific .rc to do this again.

Bug: 135683539
Bug: 113174748
Test: Verified config store loading on reboot.
Test: Will resend for regression testing.
Change-Id: I434a573b33926419f16eeba654faced89aed9c43
2019-07-12 11:58:24 -07:00
Harpreet "Eli" Sangha
116e13747b vibrator: Add New Dependencies
Adds new dependencies required by the updated vibrator HAL:
- Properties that replace previously hard-coded configs.
- Access to additional sysfs nodes.

Test: Manual, PTS, VTS
Change-Id: If41a7023904c22caf60105850b980a879a49d002
Signed-off-by: Harpreet "Eli" Sangha <eliptus@google.com>
2019-06-20 16:23:51 +09:00
Martin Liu
13e167c592 PowerHal: Support VR reload thermal config am: ef95a0b535
am: ab8f87e3bf

Change-Id: I0d88a349d9aeb075e134242db6630c32be2e24d3
2019-05-08 10:34:11 -07:00
Martin Liu
ef95a0b535 PowerHal: Support VR reload thermal config
Test: boot
Bug: 129495482
Change-Id: Iff12608a5d3d6a02495c1b01bc3391ac65f34194
2019-05-08 11:27:59 +08:00
Wei Wang
a487c228db Merge "Revert "PowerHal: Support VR reload thermal config"" into qt-dev am: e12f3fd46f
am: 6c2d74c472

Change-Id: Ia689a1092fd19d005ebb5e102c8cef27ce77b246
2019-05-07 16:28:33 -07:00
Wei Wang
e12f3fd46f Merge "Revert "PowerHal: Support VR reload thermal config"" into qt-dev 2019-05-07 22:19:18 +00:00
Wei Wang
799a3c9e61 Revert "PowerHal: Support VR reload thermal config"
This reverts commit 984593c526.

Reason for revert: b/132193648

Change-Id: Ic3b023f2a6c03f49ec7ad592e59a59ab487ebbb7
2019-05-07 22:06:23 +00:00
Wei Wang
b63fec2167 Merge "PowerHal: Support VR reload thermal config" into qt-dev am: 4d6af28fe3
am: 96c506d54c

Change-Id: I34445b3167c1d36f729db0136a0018490b6326a1
2019-05-07 13:06:59 -07:00
Wei Wang
4d6af28fe3 Merge "PowerHal: Support VR reload thermal config" into qt-dev 2019-05-07 18:22:45 +00:00
Kumar Anand
154ec78ab2 Merge changes from topic "b_127715974_wahoo" into qt-dev am: d7842b22d2
am: 9f53a01f66

Change-Id: I5d0caae47ba040ba780d3988b1e4c9217063f219
2019-05-07 10:04:00 -07:00
Martin Liu
984593c526 PowerHal: Support VR reload thermal config
Test: boot
Bug: 129495482
Change-Id: I4226aa9c707530e7175aa9d61a0fbdc264ff0070
2019-05-07 12:00:47 +08:00
chenpaul
52159f15a8 wifi - Remove init.qcom.wlan.sh and relative setting
ag/6722341 will set WLAN driver/FW when start legacy HAL.
The patch removes init.qcom.wlan.sh because it is not necessary

Bug: 127715974
Test: Property with wlan driver/FW version at enforcing mode:
      It can be verified by the below command:
      # adb shell getprop vendor.wlan.driver.version
      # adb shell getprop vendor.wlan.firmware.version

Change-Id: Id94874cb96bc489a0f3eccfb97d780001b712330
2019-05-02 17:47:57 +08:00
Wei Wang
82ce69480c Merge "init.hardware.rc: schedtune for boottime" into qt-dev am: 648e5d8b2f
am: 81ce703bd9

Change-Id: Iaaedc18a303bd452f9c76afdb1eee01a27f1045c
2019-04-18 13:07:30 -07:00
Wei Wang
4ea1c03f74 init.hardware.rc: schedtune for boottime
Set stune.boost to 100 to boost process to big cores and prefer_idle to
1 to spread tasks. This saves ~370ms from kernel boot to boot_complete.

Before CL:
BootComplete                  : 10.046  0.067631

Post CL:
BootComplete                  : 9.6713  0.083226

Test: boottime
Bug: 80345258
Change-Id: I29159ba3102a23f302ddc2a2747879fd1ca39c27
2019-04-17 23:01:59 -07:00
Jiwen 'Steve' Cai
33c5f8698e Pixel 2017: Move XR-related init.rc entries to a dedicated file
Origin CLs that introduced these init.rc entries:

ag/2066998: wahoo: Create PDX socket dirs and cpusets for VR services
ag/2485419: Fix DVR cpusets for wahoo
ag/2645621: wahoo: toggle special touch mode when VR mode is active

Bug: 129787612
Test: Build walleye, taimen, walleye_xr, taimen_xr
Change-Id: I358689e73d2a214a9f3e90e106739dfe0fc2b6b6
2019-04-15 17:58:09 -07:00
Wei Wang
4dd9895619 Move PowerHAL into Pixel common
Bug: 129495482
Test: Build
Change-Id: I5eb2e75092cba8a3dd6e108e26bb3baae0a907d3
2019-04-04 01:31:02 +08:00
Hai Shalom
14ff0657ca wahoo: Add supplicant 1.2 to init.hardware.rc
Add missing supplicant 1.2 to init.hardware.rc to wahoo project.

Bug: 129693419
Test: lshal
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantV1_2Host
Change-Id: I34577cac4892563774f035d3a68ed17cc1edeeb9
2019-04-01 11:30:41 -07:00
Minchan Kim
ec4027d72b change pixel-trace directory permission
Recently, I saw some of bugreports doesn't include mm_event dump.
dumpstate_board.txt says just permission error instead of dumping trace.
I could reproduce it with android restarting( shell$ stop; start).

The permission in pixel-trace directory is changed from

        drwxr-xr-x 5 root root 0 2019-02-15 21:21 pixel-trace

to

        drw------- 5 root root 0 2019-02-15 21:21 pixel-trace

Originally, 600 permission is buggy from the beginning because directory
needs execution permission bit to allow access the file. However, question
is why the permission is not set when the directory is created but does
android is restarted.
The tracefs in kernel seems to not support permission when the directory
is created. It just use 755 hardcoding if I parse it rightly.

https://elixir.bootlin.com/linux/v5.0-rc6/source/fs/tracefs/inode.c#L430

I also read mkdir script implementation(i.e., do_mkdir). It does fchmod
if it founds the file is already existing. That's why the restart changes
the permission to the one I wrote in the script.

Let fix it to set the permission to 755 for directory and 660 files
from the beginning so that it should work even though android restart
accidentally.

Test: confirmed it works device $ stop; start; host$ adb bugreport
Change-Id: I36305283c327b44e476c6eb39ec028ef271c304f
Signed-off-by: Minchan Kim <minchan@google.com>
2019-02-20 09:16:47 +09:00
Roger Wang
131b5d4bb6 walleye: keep /data/vendor/tombstones as root:root
/data/vendor/tombstones should be root which be define
in system/core/rootdir/init.rc.
Previous change (ag/4706914) lead wifi_hal cannot write files to
/data/vendor/tombstones/wifi.

Bug: 121294677
Test: device can boot up
Test: wifi_hal can dump data to /data/vendor/tombstones/wifi.
Change-Id: Id62ec21bc9a71018b03deba17c9befcd8d7b1c31
Signed-off-by: Roger Wang <wangroger@google.com>
2018-12-20 06:23:37 +00:00
Xin Li
1828782165 DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into stage-aosp-master
Bug: 120502534
Change-Id: I066f03e05a7f4e31ef170b2e68ab1405bc1e99ee
2018-12-11 00:26:44 +00:00
Vincent Palomares
9548490218 Upgrading Walleye and Taimen's thermal HAL version to 2.0.
Bug: 118689758
Test: adb shell dumpsys hardware_properties
      adb shell su 0 lshal debug android.hardware.thermal@2.0::IThermal/default
      pts -m PtsThermalHalTestCases
      vts -m VtsHalThermalV1_0Target
      vts -m VtsHalThermalV2_0Target
Change-Id: I089c54c722089f12affae488c81c039405839b5e
Signed-off-by: Vincent Palomares <paillon@google.com>
2018-12-10 16:18:27 -08:00
Siarhei Vishniakou
c03bc0b914 Allow folio_daemon to write to /dev/uinput
Commit aosp/836840 changes permissions for accessing /dev/uinput. That
broke the folio_daemon.

This daemon is responsible for supportic magnetic folio cases on Pixel
2. We need to continue to support this operation.

Allow the folio daemon to access /dev/uinput by enrolling it into the
uhid group.

Note: this is not an sepolicy issue, but a permission issue.

Bug: 120306105
Test: adb logcat | grep uinput
Before the change, see a bunch of permission denials from folio_daemon.
After the change, not seeing anything in the logcat.

Change-Id: Idb33c8427d55b165f5aca2a68c09fa7e749fef57
2018-11-30 19:31:59 -08:00
Wei Wang
fdbe989808 Merge VrHAL logic into PowerHAL
Bug: 110166984
Test: Use daydream and camera
Change-Id: I8bfbe7b5f899d78b781b91834ca361b3ccb120b6
2018-11-20 12:33:03 -08:00
emilchung
a560dd9ade wahoo: Stop retry fingerprint init proecess after limited times
Add new mechanism for stopping FP HIDL after several times init fail.
This prevents the case of FP HIDL keeping trying to do init process and
raising CPU usage when sensor totally dead.
After limited times init retry fail (default 10 times), FP HIDL will
be stopped.

init-fingerprint-sh is for stopping fps_hal after init retry fail
serval times.
It keeps running until max init retry or fps_hal running successfully.
vendor.fps_hal restarts until max init retry times fail.

Test: build pass and FP functionaily are good.
Test: init process will be stopped after limited times retry fail
Bug: 111710758
Change-Id: I8a19bdd351e5d712f8e23c6a0849acb1771e61e5
Signed-off-by: emilchung <emilchung@google.com>
2018-11-05 12:06:22 +08:00
Minchan Kim
e11ea911bc dump mm_event trace into bugreport
This patch creates a pixel owned tracing instance apart from
main tracer(i.e., /d/tracing/instances/pixel-trace) so that
we will keep a certain mount of data without interference from
others(e.g., traceur, atrace and so on). It's important to not
lose the information to investigate problems at bugreport.

This CL also adds dumpstatez and bugreport property hooks to
stop/restart the trace during bugreport to keep more old trace.

Allow dumpstate read mm_event trace from /d/tracing/instances/
pixel-trace/trace. With that, it could dump the trace into
bugreport file.

Bug: 116825025
Test: confirm with adb bugreport/bugreport via power menu shortcut/
volume up/down/power key combination. They includes traces in
dumpstate_board.txt with kernel turns on CONFIG_MM_EVENT_STAT.
Signed-off-by: Minchan Kim <minchan@google.com>

Change-Id: I699f362089b61247b2937accbd331327563b1e0c
2018-10-31 04:53:59 +00:00
Tom Cherry
dd7fd6d35a Merge "Remove starting servicemanagers" am: 7aa2e5a0d8 am: 6947850eaf
am: ad6c54bc83

Change-Id: I6859f09c8666c9b0cbd45b43e17ea406f8cb350c
2018-10-25 22:16:03 -07:00
Tom Cherry
ad6c54bc83 Merge "Remove starting servicemanagers" am: 7aa2e5a0d8
am: 6947850eaf

Change-Id: I2b1235d171053e0bbcf54885984a3691f5e6a477
2018-10-25 14:30:19 -07:00
SalmaxChang
cacb48a23c walleye: Create rfs folder in /data/vendor/tombstones for tftp_server
Bug: 65834073

Test: boot and not find tftp_server permission denials on tombstones
files

tftp_server accesss links with /data/vendor/tombstones/rfs/xxxx.
The links are created by system with makefile as below:
$(shell ln -s /data/vendor/tombstones/rfs/xxx $(TARGET_OUT_VENDOR)/rfs/msm/adsp/ramdumps)
Create /data/vendor/tombstones/rfs for system to link.

tftp_server: pid=787 tid=7771 tftp-server : ERR :[tftp_server_folders_la.c, 155] Failed to auto_dir for(/data/vendor/tombstones/rfs/modem/) errno = -13 (Permission denied)
tftp_server: pid=787 tid=7771 tftp-server : ERR :[tftp_server_folders_la.c, 155] Failed to auto_dir for(/data/vendor/tombstones/rfs/lpass/) errno = -13 (Permission denied)
tftp_server: pid=787 tid=7771 tftp-server : ERR :[tftp_server_folders_la.c, 155] Failed to auto_dir for(/data/vendor/tombstones/rfs/tn/) errno = -13 (Permission denied)
tftp_server: pid=787 tid=7771 tftp-server : ERR :[tftp_server_folders_la.c, 155] Failed to auto_dir for(/data/vendor/tombstones/rfs/slpi/) errno = -13 (Permission denied)

Change-Id: I8fa39fb7f9d45396851e539bae3baab180d3d808
Signed-off-by: SalmaxChang <salmaxchang@google.com>
2018-10-25 08:32:52 +00:00
Tom Cherry
31d06b3b05 Remove starting servicemanagers
All servicemanagers are started in rootdir/init.rc's `on init`
trigger, so there's no need to start them manually in device specific
rc files.

Test: boot
Change-Id: Ibdea8d5289322aae49af50e325beb793936ea525
2018-10-23 19:55:13 -07:00
Minchan Kim
26f37008f6 Change zram swap size and swappiness
This CL increase zram swap size from 512M to 1024M of p17.
It also increase swappiness from 60 to 100.
It has more benefit for overall system performance.
Detail is in the bug.

Bug: 117522738
Test: confirmed zram size and swappiness change manually
Change-Id: If75e47962915f6d4957e5fa9337e40dd6878fa65
Signed-off-by: Minchan Kim <minchan@google.com>
2018-10-21 09:12:36 +09:00
Joel Galenson
6b5547a743 Remove rules for binary that is not on the device. am: 82455337ea am: fc4c9a412b
am: 40d02b062d

Change-Id: I23ad5c4844873bcf95cb40f68c8577134a3381b3
2018-10-09 08:38:41 -07:00
Joel Galenson
40d02b062d Remove rules for binary that is not on the device. am: 82455337ea
am: fc4c9a412b

Change-Id: I00ba0474d9ecd0fb2109b3d4f796208785797f30
2018-10-09 08:34:37 -07:00
Joel Galenson
82455337ea Remove rules for binary that is not on the device.
This was removed from the device in
I6fe5148d6b50b7c5706c09662a1ed0e7da4cb987.

Bug: 79551588
Test: Booted device and observed no relevant errors.
Change-Id: I35a114c10e8e116879ef2fd90487503805610c98
2018-10-09 08:13:12 -07:00