Specify this so that USB can be properly brought back online via HAL.
It was already specified in these locations:
- device/motorola/sm6225-common/rootdir/etc/init.target.rc
But this apparently isn't early enough in the boot process.
- vendor/qcom/opensource/usb/vendor_product.mk
But this apparently isn't included and doesn't take effect.
As a result, vendor/qcom/opensource/usb/hal/Usb.cpp would use its
fallback value of a600000.dwc3, which is not correct.
Issue: calyxos#2154
Change-Id: I3f10cb8d902281b3cd06e8c2b51bdf60bb57742e
Qcom has issues that prevent it from working with a hermetic
partition build.
Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
Enable the persist.sys.fuse.passthrough.enable flag for the device
configuration to enable the FUSE passthrough feature.
This feature has been enabled on Cuttlefish, Wembley and Redbull devices for
months and no issues have been detected yet.
Bug: 168023149
Test: 'adb shell getprop | grep persist.sys.fuse.passthrough.enable',
ScopedStorageTest
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I3f39b02af436f7e508bb70efc702565a667a051c
Add/remove partitions and shuffle them to the proper list.
This should make all moto bengal devices work.
Removed: mdm1m9kefs3, spss
Added: recovery
Change-Id: I107d1c75cd44db02100042903f5794ed7efc8928
Triggered by notifications or by pickup gesture, hand wave and
pocket gesture shows the ambient display.
No AOD enabled.
Change-Id: I7c76d513c84084427b71305ec54e3033a0d7a08c
This applies the following tools/extract-utils changes:
* Allow overriding VENDOR with VENDOR_COMMON
Change-Id: Ib78643a3e6a648e21362b6a1fdc3581d41954700
* Seems to be an issue where if modemst1/2 (efs) is wiped modem only
looks for fsg to rebuild efs in the root_directory.
* Even though this isn't correct it should allow radio to be easily
flashed during future firmware upgrades as the stock radio.img is
a container which flashes fsg/modem then passes the command to
wipe modemst*
Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Change-Id: Ic7acabbe16d66740b3aee414be60c24d3a0de43d
When a call is received, if the ringtone is played through the speaker,
the audio HAL will freeze and restart when the call is answered,
leading to a few seconds of silence at the beginning of the call. This
happens because of a NULL pointer dereference, which is in turn caused
by a UAF in the check_usecases_codec_backend() function, in the audio
HAL.
The UAF occurs because the amplifier HAL appends its usecase at the
wrong end of the usecases list - tail instead of head. When the second
list_for_each() loop in the aforementioned function iterates through
the list, it first finds the regular low-latency-playback usecase,
and calls disable_snd_device() for the speaker output device. This
causes the amplifier HAL to execute aw882xx_stop_feedback(), which
frees its usecase in the list, but the internal pointer of the
list_for_each() macro already points to it, thus the following
iteration effectively operates on a free'd object.
To fix this issue, have the amplifier HAL append its usecase to the
head of the list: this way, it will be iterated on before the
low-latency-playback usecase, i.e. before it gets free'd.
Change-Id: Ia8dcb11b3ed320836a6602798ff5c390e7afa9d2
[basamaryan: This is needed to fix RIL on Android U]
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Change-Id: Ie3fa610f71077b4ee2af1b4d57bd0c30b34f30fa
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.
Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I249ecc45a001a69d73b06b77154f9b6e5f9964d9
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.
Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ide373c283359cf4b73af4cb0813d8c0306942595
The health AIDL HAL service provides functionalities of charger,
therefore system charger at /system/bin/charger is deprecated.
On top of that, QTI health AIDL HAL service enables suspend by
default, the equivalent of setting ro.charger.enable_suspend
for legacy charger.
Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9