Commit Graph

119 Commits

Author SHA1 Message Date
Kevin F. Haggerty 0b73a22c27 klte-common: Move proprietary binaries to vendor
Change-Id: If8f69a66f6168869e2a7578110d1200510b73ddd
2017-12-24 10:31:18 -07:00
Paul Keith 4821531912 klte-common: Use opensource libril and rild
Change-Id: I2f68ce9e37806edd90727bc3ddedc173ef666967
2017-12-24 10:31:18 -07:00
Kevin F. Haggerty 5ab94096fe Revert "klte-common: init: Remove writes to non-existant cpufreq nodes"
This reverts commit b7f109ed9f.

* So, that was 100% my derp. The cpufreq directories come and go as
  cores go on- and off-line.
* Now, I wish I had notes as to whether I made this change in the
  first place because of an error in a log or just based on manual
  inspection.

Change-Id: I2782fefa80560bf9e20001e72ad378553d787ac0
2017-12-22 10:34:08 -07:00
Paul Keith 701a321c54 klte-common: Add camera hal shim
* Allows camera hal to load

Change-Id: Ia1e4c05fe128c1b5abf885d6018e29a0fb9c881b
2017-12-22 10:34:08 -07:00
Steve Kondik e2db03e00f klte-common: Don't set swappiness to 100
* Don't do this, it destroys performance!
 * Android uses memory cgroups to manage ZRAM. Memcg allows you to
   view stats as well as set options like swappiness on a per-cg
   basis. In the main init.rc, the background cgroup already has it's
   swappiness set to 100. This patch sets it globally, which will
   aggressively swap even foreground tasks into ZRAM which has a huge
   amount of overhead.

Change-Id: I9f39b830e5817f796a42c377696864aec9bf2f22
2017-12-22 09:17:07 -07:00
Mohammad Afaneh 9606d62123 klte-common: Build fingerprint 2.0 service
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba19
2017-11-04 12:52:07 -06:00
Kevin F. Haggerty 8450ca7c7d klte-common: libshims: Drop libshim_ril
* O cannot use the old blobbed RIL and this prep makes the rest of
  bringup easier

Change-Id: Ic11b3fcbc6e7923d80eb49ef709ccabe4c81a14d
2017-11-03 22:24:18 -06:00
Roshan Pius d0396fd1a9 klte-common: Change ownership of wifi firmware reload sysfs paths
This will let the wifi hal run as wifi user and not need root
permissions to access this path for firmware reloads.

Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba23
2017-11-02 06:02:42 -06:00
Roshan Pius cd9495cec7 klte-common: wifi: Move wpa_supplicant to vendor partition
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba41
2017-11-02 05:30:45 -06:00
Christopher Wiley cba57d536c klte-common: wifi: Do not define superfluous wpa_supplicant service
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba40
2017-11-02 05:30:45 -06:00
Rashed Abdel-Tawab 921c9a6c47 klte-common: Get rid of net_bt_stack
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba22
2017-11-01 17:13:42 -06:00
Kevin F. Haggerty f98d6e2b5a Revert "klte-common: init: Disable Adapative LMK"
This reverts commit 3c04b582d7.

* The real cause for the seeming Adaptive LMK misbehavior was a merge
  derp in the kernel that did not take into account zcache pages. This
  is corrected with LineageOS/android_kernel_samsung_msm8974 1355fda449

Change-Id: I9441538de0d2d0dfc775519a7e8e17b584a2b833
2017-10-11 20:43:24 -06:00
Kevin F. Haggerty 3c04b582d7 klte-common: init: Disable Adapative LMK
* This is being overly aggressive, so let's go ahead and disable by
  default. It is still available in kernel, so those "advanced users"
  can go ahead, use it, and tweak things to their heart's content.

Change-Id: Ife119211a49479e0edb5d0c8ac04773d01d10f28
2017-10-05 19:27:44 -06:00
Kevin F. Haggerty b7f109ed9f klte-common: init: Remove writes to non-existant cpufreq nodes
* cpu0 is the only one with cpufreq/scaling_governor or
  cpufreq/scaling_min_freq, so let's not try that for all 4 of them

Change-Id: I5820a5e436e231d77de94babbea347d63ff9853a
2017-09-17 17:34:10 +00:00
Bruno Martins 0dd0f42631 klte-common: Grant rmt_storage proper unix perms
Do not grant DAC override permission which would allow this daemon
unix permissions to everything.

avc: denied { dac_override } for pid=2664 comm="rmt_storage" capability=1 scontext=u:r:rmt_storage:s0 tcontext=u:r:rmt_storage:s0 tclass=capability permissive=0

Add wakelock group to access:
/sys/power/wake_lock
-rw-rw----  1 radio  wakelock 4096 2017-06-28 00:37 wake_unlock

Change-Id: Ib02b4aedab479f5ad8aca3a2100b5c489397002a
2017-06-29 08:48:53 +00:00
OzzysCmAcc 722ab7ae6d klte-common: cleanup init files
Change-Id: I11ca4869c0d449f1efa6cd9eb76d9c5b5a53739e
2017-03-25 11:15:17 +00:00
OzzysCmAcc e562c96ae6 klte-common: updates from m package CQBW
Change-Id: I80cc2729517d63986c98a00eafb901b8eda59fb6
2017-03-23 18:17:45 +01:00
OzzysCmAcc 8faa168986 klte-common: remove duplicates
*also use same format like all other mods

Change-Id: I65bb985e00a64a3113c2aed968317cad99c6bf24
2017-03-23 18:17:35 +01:00
OzzysCmAcc 82383f6e2f klte-common: remove modifications for not existing files
Change-Id: Iea45daaf3ae4381bff75733531e041093918cedb
2017-03-23 18:17:27 +01:00
OzzysCmAcc e347df7643 klte-common: make swap working as it should
* init: write_file: Unable to write to 'proc/sys/vm/swappiness':
Invalid argument

Change-Id: I05fc36074646ed23acb89d3089870aaedcce07b9
2017-02-26 17:28:25 +00:00
OzzysCmAcc 1a6fed40cd klte-common: no need to fail enabling all cpu
*[  147.362325] init: write_file: Unable to write to '/sys/devices/syste
m/cpu/cpu1/online': Invalid argument
 [  147.362380] init: write_file: Unable to write to '/sys/devices/syste
 m/cpu/cpu2/online': Invalid argument
 [  147.362436] init: write_file: Unable to write to '/sys/devices/syste
 m/cpu/cpu3/online': Invalid argument

Change-Id: I9e597d32cbd29ccb2845b4859e5e19a48582ac25
2017-02-26 15:26:05 +00:00
OzzysCmAcc 8f7265e77a klte-common: move ril prop to system_prop
Change-Id: I74599eeaede5461438b1a3c56429fd45b36ef65f
2017-02-26 10:14:50 +01:00
Andreas Schneider 789145442f klte-common: init: Symlink telephony directories instead of files
* Symlinking the files seems to be horrendously brittle. Sometimes
  after a nandroid restore, the OS would helpfully "upgrade" the
  symlink to the new location, causing self-directed symlink for these
  criticial files.
* This actually handles the nandroid restore path.

Change-Id: If53d7ddfb7493df1526b7578be3ccf9a63997234
2017-01-30 15:38:45 -07:00
Kevin F. Haggerty 2575fdfcf7 klte-common: Fix file contexts related to our telephony symlink mess
Change-Id: I1344b960de72a2b70da9cf6ce1bf947e8b39a71d
2017-01-11 08:12:59 -07:00
OzzysCmAcc 13825b4138 klte-common: updates from mm stock CPK1
Change-Id: I93b840ee6ab9053cbafe4808e8efa57d5fb68903
2016-12-24 01:44:05 -08:00
Luca Stefani 59335cd738 klte-common: switch to bullhead WV
Change-Id: I903c922d7ee19829190fa6e25208d5256e8f316b
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2016-11-20 20:34:53 -07:00
OzzysCmAcc 1d1e0634f5 klte-common: update mpdecision group
Change-Id: Ic8ce414b48f115888c6788614c56d0846fe50afd
2016-11-13 13:22:42 -07:00
Kevin F. Haggerty 273661b2a5 klte-common: Move all the shims to libshim
* Rename libril_shim to libshim_ril for consistency

Change-Id: Ie86e5ceef2f90c5a9b9c9ebaacf49e48605794ed
2016-11-09 08:15:39 -07:00
Zhao Wei Liew e0768ac083 klte-common: Mount debugfs on early-init
This was previously removed in commit 1b54691
due to the fact that it was mounted in the global init.rc in Android 6.0.

In Android 7.0 however, this is no longer the case.
Hence, revive the mount.

Change-Id: I15b9571db4dd07a19b298a670f9ce6db1c4eeb63
2016-11-09 05:49:27 -07:00
Arne Coucheron 9e0927fc01 klte-common: Add shim for libwvm.so
Change-Id: I1ac58a108783ae1aabe3f3f061b2444925f684db
2016-11-08 06:11:04 -07:00
Ethan Chen 36a765b701 klte-common: Symlink NFC node for backwards compatibility
Change-Id: Ic371080dfb22c53e788c959ffac0cb167919a579
2016-11-03 08:02:13 -06:00
Kevin F. Haggerty bc1b148735 klte-common: symlink telephony databases to old location
* Our closed source libsec-ril.so hardcodes paths to the old
  /data/data/com.android.providers.telephony, N moved this somewhere
  else.

Change-Id: I9dbb229ee4aca83f36e5d73532dd32cda324486e
2016-10-25 05:09:43 -07:00
Cal Archer 915c07d37c klte-common: fix wifi calibration
Enable macloader to load the correct nvram calibration
data matching the hardware variant.  Since macloader
writes files in /data it needs to rerun after decryption,
requiring running during late_start. Additionally,
calibration data needs to be reloaded every time the driver
is reloaded.

Note that /sys/module/dhd/parameters/nvram_path is cleared
after the driver has accepted the input, you can use
"dhdutil -a wlan0 vars" to confirm that the calibration
data has been applied.

Change-Id: Ieb8ef0eafeead10a6dfc32862887abbe84e22a93
2016-10-25 05:02:53 -07:00
Kevin F. Haggerty a56454ed46 klte-common: init: Add seclabel to macloader service
Change-Id: If1665aa5e0c741712b7c0bdc0403045ccbbb7ef3
2016-10-23 12:38:47 -07:00
Kevin F. Haggerty 6f42462650 klte-common: Change group ownership of ES705 UART
Change-Id: Ifc8827393af34b1c3fc6a09b4907206d1b9a3f90
2016-10-20 04:05:04 -07:00
OzzysCmAcc a971342da8 klte-common: init updates for power and thermal
Change-Id: Ibd7828a4de4b4a61b6dcb204697235fcd2725008
(cherry picked from commit 614f2515a427b1a941b1c57b057ef52b4ed0d229)
2016-10-14 09:05:52 -07:00
Ljzyal 917095bfe7 Revert "klte-common: remove not existing include"
This reverts commit aad022625f.

Change-Id: Ib67324a1022f4029a29019954993b92d77b8ab2b
2016-10-12 07:24:38 -07:00
OzzysCmAcc 12547a4360 klte-common: create perfd directories
Change-Id: I27207f75b1b3bb19b099176830b85f8935abdb4c
(cherry picked from commit 859a29e16fc7f1e12574b15e6082f28cb3bade2b)
2016-10-09 06:59:02 -07:00
OzzysCmAcc aad022625f klte-common: remove not existing include
Change-Id: I978a42f8035faf38b211df3ea5940cd0ef2b309c
(cherry picked from commit fe119aa7f47a4bb3e13e0ec2ae208e208045a919)
2016-10-09 06:58:40 -07:00
OzzysCmAcc 6aa4069e5c klte-common: delete duplicated entries and keep lp stock values
Change-Id: I90607a906d5af023a5a9d21caa7c15ca26be73a7
(cherry picked from commit b5ec47cf967637a36cae4a6d23c161f375b71a70)
2016-10-09 06:57:49 -07:00
OzzysCmAcc f6cbfbb018 klte-common: init fixes for mm kernel
Change-Id: I90d10043b4a6aca13f4b4ba4295905bd456dd274
2016-10-07 13:58:33 -07:00
OzzysCmAcc c15f54176f klte-common: fix wrong path in init
Change-Id: Ie4c7660b1e2a4d577e3f84f1f33acc802148ef78
(cherry picked from commit 2c94fff7936763323489a391fb51a35b6f4f1340)
2016-10-04 18:16:34 -07:00
ljzyal 2f41fd2d2f klte: Use new Fingerprint Hal without ValidityService
* Use a fully OSS FPS stack to remove dependency on a service to
  register fingerprints and hacked up touchwiz libs from Samsung

Change-Id: I66ae7fc807a213befdf77d0f09d38f2fbe01df61
2016-10-03 18:55:15 -07:00
OzzysCmAcc 22d0d0eb98 klte-common: update power settings
Change-Id: I3f7d3be0b8046d4664e6895318a20603e9123718
(cherry picked from commit 206c55899f27c918f18ddea210856d196415d964)
2016-09-27 13:13:17 -07:00
OzzysCmAcc 80664f82cd klte-common: remove not existing icd nodes
Change-Id: Ie6d5df08d932a5b785b6be632f155ea741987b1b
(cherry picked from commit 0fad529445006689a364be0d54e7786fb9c58592)
2016-09-27 13:12:27 -07:00
OzzysCmAcc c3cc351b23 klte-common: remove not existing service
Change-Id: I629b7141be25c50709b511f53409599d6ad63bbc
(cherry picked from commit cb2d022f3d3615eb3eed1386acc3c787c4f27c78)
2016-09-27 13:11:40 -07:00
OzzysCmAcc 58d79a417e klte-common: remove not existing ipv6 nodes
Change-Id: I9ee9ea11cd05e70efdba2836145061c33f0a17b2
(cherry picked from commit e3f0a8399ebf3fd1231d5c2db26b5a32ee482da6)
2016-09-27 13:10:52 -07:00
OzzysCmAcc b1627d7f21 klte-common: Add wakelock GID for rild and wifi
Change-Id: Id87b253c51677d21cb332c82f675da6ff94ffe7b
2016-09-24 08:35:01 -07:00
OzzysCmAcc 122421eb21 klte-common: define ril-daemon as previously in system_core
Change-Id: I3d9af214718991937b2ff931e147de85471cf2e4
2016-09-24 08:34:13 -07:00
OzzysCmAcc 13778e2014 klte-common: clean up the code
Change-Id: Idd8456427cf4c9fe5c5a51a34976af6161c6e0cd
(cherry picked from commit 34627da49947eaea94cb00d4784dba21172a93a3)
2016-09-24 07:41:24 -07:00