Commit graph

201 commits

Author SHA1 Message Date
Jeff Vander Stoep
1bbad63b43 msm8937-common: wpa_supplicant: Move control sockets to /data/vendor
Treble compliance.

Bug: 70228425
Bug: 70393317
Test: complete wifi test in b/70393317
Test: Test wifi on Taimen and Sailfish
Test: verify sockets exist in /data/vendor/wifi/wpa/sockets

Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b
2018-10-02 23:02:23 +05:30
Darshan Manjrekar
ca33194c72 msm8937-common: Enable forced encryption
Change-Id: I75fab22ca0ddcc6336cc221cf0c62a3b05939250
2018-10-01 18:02:11 +05:30
Jeff Vander Stoep
1a5154f087 msm8937-common: wifi_supplicant: Deprecate entropy.bin
Wpa_supplicant's random pool is not necessary on Android. Randomness
is already provided by the entropymixer service which ensures
sufficient entropy is maintained across reboots. Commit b410eb1913
'Initialize /dev/urandom earlier in boot' seeds /dev/urandom with
that entropy before either wpa_supplicant or hostapd are run.

Bug: 34980020
Test: Use wifi and wifi tethering on 8937 targets
Change-Id: Ic1bade0bf3c234aff24664492b97e05d15d3e8de
2018-08-23 16:42:28 +02:00
LuK1337
ca0f8dc480 msm8937-common: Restart HIDL camera provider after decryption
* HIDL camera provider starts too early for our 7.0 camera HAL.

Change-Id: I7baded6d877bab724ab105ad7eb78eea7ecbc5d4
2018-08-23 16:42:27 +02:00
Isaac Chen
f5022f9278 msm8937-common: Move hci_common_init to oem_2901 group
Change-Id: Idc41def813f8ceaf45f67701385c7a496871b396
2018-08-23 16:42:26 +02:00
Wei Wang
537037e27c msm8937-common: enable zram on boot_complete
This help to save ~50ms in boot time and bootanim shown time

Bug: 62957152
Test: marlin boot and swap look normal after boot
Change-Id: Icabec31aa677bd606ca8735fe9d2acb54e88bd75
2018-08-08 10:32:50 +02:00
Remilia Scarlet
e25b0ab393 msm8937-common: rootdir: Purge zcache
It's way outdated and being replaced by zswap

Signed-off-by: Remilia Scarlet <remilia.1505@gmail.com>
2018-08-05 18:24:39 +02:00
Remilia Scarlet
a3c26ff2a1 msm8937-common: init: Set zram size according to RAM size 2018-08-05 18:23:35 +02:00
karthick111
079e05c76f Revert "msm8937-common: post-boot: Set read_ahead_kb values"
This reverts commit 66440068ec.
2018-08-05 18:21:04 +02:00
Shashi Shekar Shankar
66440068ec msm8937-common: post-boot: Set read_ahead_kb values
Set read_ahead_kb values as per device RAM size.

CRs-Fixed: 2210107

Change-Id: I3a937b49d8fbae8b9ae3ed1f8c7762e0448a36aa
2018-08-01 18:23:37 +02:00
Vijay Dandiga
3bf8f219e8 msm8937-common: post_boot: Tune/configure ZRAM memory parameters
1) Set zRam size to 1GB for 3GB and above targets
Increasing the swappiness and zRam size improves zRam savings and app concurrency.

2) Corrected the vmpressure_file_min value.

CRs-Fixed: 2176961

Change-Id: I4eb71110f35f67b984bea4106d6cec3c2586d024
2018-08-01 18:23:37 +02:00
Vijay Ganti
a0e515a7b9 msm8937-common: perflock: Changes in the initialization of perf lock
Change the order of initializing perflock and add
property to trigger post boot stage completed.
2018-07-31 17:38:01 +02:00
Isaac Chen
b072417101 Revert "msm8937-common: Cleanup power script"
This reverts commit 52aa1b7292.
2018-07-30 17:58:07 +02:00
Mahantesh Sanakall
f2a7d883a0 msm8937-common: Enable quota feature for userdata partition.
This will enable quota feature for the data partition.
2018-07-12 00:00:06 +08:00
Sashidhar Ganiga
50aa3a00fe msm8937-common: Enable noatime mount option for CTS failure
Enable noatime mount option for userdata, cache and
persist partitions.
2018-07-12 00:00:06 +08:00
Isaac Chen
28b0c3173b msm8937-common: proprietary-files: Update BT and WiFi blobs to O-MR1
* From : vince 8.1.0 OPM1.171019.019
2018-07-09 00:00:47 +08:00
Rashed Abdel-Tawab
21cff78bb0 msm8937-common: Move qcamerasvr to main and restart on service restarts
* Move qcamerasvr to main to it restarts on decryption
 * Also trigger a qcamerasvr restart when media or all services restart,
   since it needs to be properly restarted with cameraservice
2018-07-09 00:00:47 +08:00
Ethan Chen
01bd83cf4c msm8937-common: rootdir: Move mm-pp-dpps to hal class 2018-07-09 00:00:47 +08:00
Michael Bestas
0f9e6e3a3a Revert "msm8937-common: Grant netmgrd proper unix perms"
* No longer needed

Change-Id: I7ad8217405011b67d5fc27a83c27b57d8fc6b444
2018-07-09 00:00:47 +08:00
Michael Bestas
95f7c5508d Revert "msm8937-common: Grant rmt_storage proper unix perms"
* No longer needed

Change-Id: Idcf1c5b9ccf4d42c0ec6b22f32a5813ba2b497a5
2018-07-09 00:00:47 +08:00
Michael Bestas
2858a9103a msm8937-common: Get rid of recovery-only fstab
* Mounting /system and /vendor partitions is handled in kernel now,
   however removing the entries from fstab caused issues building
   the OTA. The workaround was to have a separate fstab, but turns out
   that simply setting the recoveryonly flag does the trick because
   those are then ignored during a normal Android boot.
2018-07-09 00:00:47 +08:00
Isaac Chen
d68a5f8ca5 msm8937-common: Enable Full treble
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-09 00:00:20 +08:00
Isaac Chen
51a8da8ec8 msm8937-common: rootdir: Cleanup 2018-07-09 00:00:20 +08:00
Bruno Martins
ff3af16c99 msm8937-common: Ship and enable atfwd daemon
* The atfwd daemon is responsible for handling AT command
   forward requests from modem and should be enabled
   for all targets except sda, apq, qcs.
2018-07-09 00:00:20 +08:00
Isaac Chen
18ed322ef3 msm8937-common: Cleanup GPS makefiles and configs
* Update configs from bardock 8.1.0 OPM1.171019.019
* Cleanup unused blobs
2018-07-09 00:00:20 +08:00
Michael Bestas
4cdf8432fb msm8937-common: Set subsystem restart_level to "related" 2018-06-29 00:02:44 +08:00
Michael Bestas
002face0cc msm8937-common: Load system props on offline charger mode
* load_all_props does not exist
2018-06-29 00:02:44 +08:00
Wei Wang
3634a47c7b msm8937-common: time_daemon: use /persist to store offset to RTC
Also cleanup sepolicy files that was using /data/vendor as they are not
needed and /data is not ready by the time we start time_daemon

Bug: 62184939
Test: walleye boot with correct time in airplane mode
2018-06-29 00:02:44 +08:00
codeworkx
fc9805e829 msm8937-common: Add groups for tftp_server
Change-Id: I79cec555e427159a7b24f479d7ef9976495383ab
2018-06-29 00:02:43 +08:00
Prateek Chaubey
aaf0974357 msm8937-common: Cleanup power script 2018-06-29 00:02:43 +08:00
TheScarastic
265678c804 msm8937-common: Add custom biometrics 2018-06-29 00:02:43 +08:00
LuK1337
d8d90bde50 msm8937-common: Move fstab to /vendor
Change-Id: I2e86c3be08d0d4f19a6cf89a931f4a1e6ac12cdf
2018-06-29 00:02:43 +08:00
Abhishek Arpure
28276f33e7 msm8937-common: Move uevent.qcom.rc to /vendor
Change-Id: Iab2699bf26ca4402b835d1af8d4493f9b28595d9
2018-06-29 00:02:43 +08:00
Abhishek Arpure
e2caf7319e msm8937-common: Move hardware specific .rc files to /vendor/etc/init/hw
The reason these files are moved to /vendor/etc/init/hw and
not /vendor/etc/init is because 'init' scans the /vendor/etc/init folder
for vendor service .rc fragments to import. That would either result
in duplicate imports or out-of-order imports of these hardware
specific .rc files and that *may* have unintended consequences.

In order to preserve the current import order for MTP, we move all
hardware specific .rc files to /vendor/etc/init/hw which is not
autoscanned by init BUT leave the init.${ro.hardware}.rc (i.e.
init.qcom.rc in this case) in root for 'init' to find.

Change-Id: I14531da05e2a3a256f734f8de96e1f1969c753f9
2018-06-29 00:02:43 +08:00
LuK1337
977516f130 msm8937-common: rootdir: Move init shell scripts to /vendor 2018-06-29 00:02:43 +08:00
Rashed Abdel-Tawab
42101c780e msm8937-common: Update for early-mounted system partition
* This removes /system entry from fstab, since this partition
   is now early-mounted and the fstab entry is specified in device tree.

 * At the same time, also include a fully populated fstab, in order to avoid
   build breakage while generating recovery updater scripts.

Change-Id: I8e558458b984e97a45a920c3751a6b7c3f2ebc5c
2018-06-29 00:02:43 +08:00
LuK1337
c0e667863d msm8937-common: Load proper thermal-engine configs
* Required for Oreo blobs.

Change-Id: I25c98446ce4677f83f8c543b41b7f8be12c4c254
2018-06-29 00:02:43 +08:00
Manaf Meethalavalappu Pallikunhi
24fa892a90 msm8937-common: thermal: Add thermal send rule socket to thermal service init
Add thermal send rule socket to thermal service initialization script
This change is required for SE Android so that thermal socket context
are not overridden by init.

Change-Id: I8774b62f35f72a481f9976dda5d1aee1e19d8374
2018-06-29 00:02:43 +08:00
Prateek Chaubey
ae3e3a72e1 msm8937-common: Move wlan configs to vendor 2018-06-29 00:01:58 +08:00
Hardik Kantilal Patel
081f77447d msm8937-common: rootdir: Create wifi directory into /data/vendor path
As per Android-O architecture, move vendor specific file into
/data/vendor path instead of /data/misc. To address this
create the wifi directory into /data/vendor path.

CRs-Fixed: 2047794
Change-Id: I6835fb70e1777e23d0b30aa9e08de9a746638c50
2018-06-29 00:01:58 +08:00
Ethan Chen
5ddc3c6585 msm8937-common: Remove init.qcom.bt.sh
* Just run the hci_qcomm_init binary instead

Change-Id: If2b4b9fc738e729bd389f3f96e6843a4ca6eb558
2018-06-29 00:01:58 +08:00
Srinu Jella
94c97f44d9 msm8937-common: Remove bt config address from execution
- Remove bt config address from execution
  as it is not required.

CRs-Fixed: 2028675
Change-Id: I4a71f5f1ff682cc3bf7753acc22e0f299d06c344
2018-06-29 00:01:58 +08:00
Aditya Bavanari
bd33bea7b6 msm8937-common: init.qcom.rc: Modify permissions for /data/vendor/misc
Modify permissions for /data/vendor/misc to 01771
from 0770 in order to enable audio module
to access the directory.

CRs-Fixed: 2074932
Change-Id: Ibc832cd0ec7c04a99b3fa1e9a554f919e11a149a
2018-06-29 00:01:58 +08:00
Saurabh Srivastava
2887450b59 msm8937-common: Fixing permission for /data/vendor
Removing creation of /data/vendor with system
group access.

CRs-Fixed: 2055140
Change-Id: Ic9fb98ea1420769f2ffa5262fd6e1a82ad848941
2018-06-29 00:01:58 +08:00
Naresh Tanniru
648ee63f82 msm8937-common: rootdir: create /data/vendor folder for audio
- for audio acdb and dump files create /data/vendor folder

Change-Id: If24a072d3686c3740ba36a3d6eb1849b4a769a3b
2018-06-29 00:01:58 +08:00
LuK1337
588e53b8b8 msm8937-common: Update DRM&QSEE stack to O-MR1
* From vince 8.1.0 OPM1.171019.019
2018-06-29 00:03:00 +08:00
Abhimanyu Garg
81c79c4049 msm8937-common: creating directory path for iop data files
Creating new directory in data/vendor directory to store the IOP data
files.

Change-Id: I8e5cb44125494d87ee8f169e376809d8fbd89205
2018-06-29 00:03:00 +08:00
Varun Garg
a9291ed549 msm8937-common: Remove perfd and update default value file path
Removing the code related to perfd. Update the path for default_value
file to vendor
partition from system.
2018-06-29 00:03:00 +08:00
Bruno Martins
d1f2c50dd8 msm8937-common: Update perf stack to O
* From: TA-1025_00WW 8.1.0 OPR1.170623.026
2018-06-29 00:03:00 +08:00
Dante Russo
4dbde63fbc msm8937-common: Move location files from /data/ to /data/vendor/
Runtime files and sockets used by location modules
are moved to vendor partiion from /data/misc/location
to /data/vendor/location.

CRs-fixed: 2046657
Change-Id: I76da150d7a897bf94b950217587e40c82f2f02c6
2018-06-29 00:03:00 +08:00