Commit Graph

185 Commits

Author SHA1 Message Date
matteo0026 f965569a00 Revert "matisse-common: add back time stuff"
This reverts commit 16ed05c138.
2021-06-20 20:13:28 +02:00
matteo0026 16ed05c138 matisse-common: add back time stuff
TimeKeep isn't good on Tab 4, then add time stuff here
2021-03-31 13:57:38 +02:00
Wei Wang 512d410bb2 matisse-common: Start bootanim before mounting data partition
Bug: 30118894

Signed off by: Nolen Johnson <johnsonnolen@gmail.com>

Change-Id: If84764e3ce51f467b2dfa867ce28e1e396422d45
2021-01-14 18:19:23 +01:00
matteo0026 19d2ae6926 Revert "s3ve3g-common: fstab: Remove f2fs support"
This reverts commit 3620e7924e.
2021-01-14 18:17:49 +01:00
Adrian DC e31b5723e1 matisse-common: rootdir: set zram size to 75% of total size
* Reference: https://source.codeaurora.org/quic/la/device/qcom/common/commit/?id=424c031d173f28d7557812f5e1a10acfce03ef71

Change-Id: I327fe65f0e7f03d1937e27b68e640c92d7581b86
2021-01-14 11:17:20 +01:00
matteo0026 05d48885ec matisse-common: remove what device hasn't 2020-10-11 12:28:22 -04:00
matteo0026 5b582d83e1 matisse-common: fixed offline charging
* Wrong value of user_debug in cmdline prevented to try to boot in offline charging mode
* For charger, tell that we don't have a LED and to disable init blank (with this flag, charging mode showed animation, but didn't allow to show it another time when pressing power button to turn on the screen)
* Set a brightness value for charger. In this way, when power button is pressed, device turns on and shows battery icon correctly.

Conflicts:
	BoardConfigCommon.mk
2020-10-11 12:27:59 -04:00
Wei Wang f3d4451481 matisse-common: start bootanim before mounting data partition (fstab part)
Bug: 30118894

Signed off by: Nolen Johnson <johnsonnolen@gmail.com>

Change-Id: If84764e3ce51f467b2dfa867ce28e1e396422d45
2020-04-24 08:34:47 -04:00
Roman Rihter 9a9d7a2789 matisse-common: Use vfat instead of sdfat
Firmware partitions are not mounting with sdfat filesystem.
2020-04-24 08:34:47 -04:00
matteo0026 9252e1f129 matisse-common: remove NFC, torch and dual SIM stuff
This tablet doesn't have these features.
2020-04-24 08:34:47 -04:00
Alistair Strachan 22a36b731d Revert "matisse-common: Use first_stage_mount feature"
This reverts commit 3bb99e88eb.
2020-03-22 10:51:16 -04:00
Alistair Strachan 3bb99e88eb matisse-common: Use first_stage_mount feature
This allows us to deprecate the dt fstab dependency.

Additional info for matisse device on Lineage:
Needed to make Magisk work, since it doesn't work with
the fake dt fstab thing.

Change-Id: I9c2a8c140ed64faecee0d66e00033fdffa398a4b
2020-03-21 15:13:48 -04:00
RomanDesigner 0b2fc8f561
matisse-common: Delete sepolicy contexts from fstab 2020-01-17 16:31:06 +03:00
Kim Le e66821e503
matisse-common: Move fstab to vendor/etc 2020-01-17 15:51:23 +03:00
RomanDesigner 0865c167cd
matisse-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.

Signed-off-by: Joshua Primero <jprimero155@gmail.com>
2020-01-17 15:50:58 +03:00
padarshr 89a6196225
matisse-common: Address 'LOCAL_MODULE_TAGS := eng debug' deprecation.
Newer AOSP deprecates LOCAL_MODULE_TAGS := eng debug.
We now remove that and instead add the package to
PRODUCT_PACKAGES_ENG or PRODUCT_PACKAGES_DEBUG as applicable.

To ensure that we don't miss out on any package during this switch,
we add these explicitly, even though it might have been already
added under PRODUCT_PACKAGES at some other location.

Change-Id: Id1f94f34e100d616d91292efe514c201f7d24642
2020-01-17 15:47:18 +03:00
Arne Coucheron 3620e7924e
s3ve3g-common: fstab: Remove f2fs support
As of now, this is causing issues with system and apps
not being able to create files and folders in data.

Change-Id: Ie4798ae98e0dd4e4e42011a2940e1a73627f8f3f
2020-01-17 15:46:38 +03:00
Francescodario Cuzzocrea 3fd7e1321f matisse-common: fstab: Add recoveryonly flag for system 2020-01-06 12:07:23 +01:00
Francescodario Cuzzocrea 22e165c60d [SQUASH]: matisse-common: initial bringup of matisse-common repo from s3ve3g-common repo
Change-Id: Ic670ca01287332c46be39dc64b34cf17fcda559c
2020-01-03 10:27:33 +01:00
PythonLimited fdfc55c774 s3ve3g-common: use fota partition for /misc
Change-Id: I09ccdd43dc72137631ce72387d8a6f5a8ffb6c3e
2019-11-04 15:33:34 +02:00
Francescodario Cuzzocrea 7d50f4fbfa [SQUASH]: s3ve3g-common: initial bringup of s3ve3g-common repo from klte-common base
* Rename klte-common -> s3ve3g-common
 * Drop fingerprint related blobs
 * Drop camera shim, we do not need it
 * Drop CameraWrapper to msm8226-common, as all msm8226 devices uses it
 * Drop broadcom NFC
 * Add buildable libpn547_fw.c, libpn547_fw_pku.c, libpn547_fw_platform.c dumped from stock S III Neo sources
 * Update audio configs with stock S III Neo ones
 * Update power_ext for S III Neo
 * Drop broadcom WIFI for Qualcomm WIFI as we got a Qualcomm WIFI chip
 * Drop broadcom bluetooth as we goot a Qualcomm bluetooth chip
 * Update partitions for S III Neo
 * Update rootdir for S III Neo
 * Update overlay for S III Neo
 * Update liblights path for S III Neo
 * Update deviceperms for S III Neo
 * Drop consumerir as we do not got an IR blaster
 * Update TWRP files for S III Neo
2019-10-11 09:07:33 +02:00
Kevin F. Haggerty 7c47b559fb
klte-common: Move change of ownership of ES705 UART later
* Samsung loads the firmware through the front door. Pie init
  runs faster than previously, so we need to wait to change
  the ownership until some point later, after the firmware has
  time to load, else the load gets blocked by a dac_override.

[haggertk: 15.1 backport - I noticed this now happening here too]

Change-Id: I37be9e22b49735388ce1f5b922132dbfd20e2dc3
2018-12-27 21:29:36 -07:00
Paul Keith aadb44c0dc klte-common: Use sdfat for exfat and vfat
Change-Id: I660c5b3008636a651a2812fe1739ff8a2ea845cb
2018-03-28 14:06:25 -06:00
Michael Bestas 31947756a3 klte-common: Get rid of recovery-only fstab
* Mounting /system partition is handled in kernel now,
   however removing the entry 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.

Change-Id: I2944384d0a1c41bc9f9f51e2e29daff2bed0a0f4
2018-03-27 21:44:24 -06:00
Paul Keith 74f7c031d8 klte-common: Set proper permissions for mDNIe nodes
Change-Id: Ib5d2825bb50c90b6743157bd624e7156c6d5ad01
2018-02-22 20:13:06 -07:00
Paul Keith c8d45dba1c klte-common: Transition to TARGET_LD_SHIM_LIBS
* Limits security exposure from shims

Change-Id: I877192422062f3e59c81a7130ad1a2b4be5d1647
2018-02-16 16:44:53 +01:00
Kevin F. Haggerty 9da1285c16 klte-common: init: restorecon .wifiver.info on boot
* We're messing with ownership and permissions here, so let's go
  ahead and fix the context of this near worthless thing.
* The kernel will create it, we also write it here which will create
  if it doesn't exist, so this is more manageable than chasing the
  type_transition path
* The file is already labeled as a wifi_data_file, so fix this to
  eliminate the below denial

avc: denied { read } for name=".wifiver.info" dev="mmcblk0p26"
  ino=12 scontext=u:r:hal_wifi_default:s0
  tcontext=u:object_r:system_data_file:s0 tclass=file permissive=0

Change-Id: Ie736b68f7d4d8559237b5cce072c6bf26f7ac4e7
2018-02-16 07:21:09 -07:00
Kevin F. Haggerty 5045387dec [DO NOT MERGE] klte-common: sepolicy: Rewrite for O
* WIP
* KILL that sepolicy/old/ before merging
* KILL the dontaudits before merging

Change-Id: I6694567fa1c834b262941b9be362c96cbd16625e
2018-01-19 16:07:35 -07:00
Paul Keith 31509201c1 klte-common: HAXX: "Fix" race condition in init
* In particular, the RIL on CDMA variants seems to only work reliably
  on first boot after flash, when things are all slowed down while
  dexopting. After that first boot, it's hit and miss whether a
  particular boot will have function RIL
* Slow things down by limiting ourselves to a single CPU on boot,
  bringing the rest online when boot has completed

Change-Id: Ie194740cf0487268dc0dbd3377bbb790cdd1b04d
2018-01-19 16:07:35 -07:00
Kevin F. Haggerty 09d3880491 klte-common: Update DSDS init script handling
* Importing this in init.qcom.rc, especially when not all builds
  have it is hacky. We'll have those devices install the script
  into vendor/etc/init and let init handle it automatically, just
  like the primary rild.rc script.
* Update the package name to align with the new name of the script.

Change-Id: I8eaf76c5c4f0aa590ebb1a396afa837597ebc26d
2018-01-19 21:41:18 +00:00
Paul Keith 26ec92cc67 klte-common: Cleanup symlink code
* Remove compat symlink migration
* Fix comment about symlinking

Change-Id: Id92408bdcbdbe7f8331563750ba645445138ff80
2018-01-19 20:05:03 +00:00
Kevin F. Haggerty cf10d879d0 klte-common: Drop the hacky deferred initcalls trigger script
* Yes, I could do the sepolicy that lets this run correctly, but why?
  Even if the phone takes 0.5s longer to boot, will you really even
  notice? We are going to disable the deferred initcalls in the
  kernel and let it do its thing the more "normal" way.

Change-Id: I2a9c50f12f4309923f3cdf6e646cad8edf717560
2018-01-15 21:12:19 +00:00
Kevin F. Haggerty 18cd7a3e13 klte-common: Move charger service into the charger domain
* O split charger and healthd into different processes, with healthd
  running only in an full Android environment and charger running in
  charge-only and recovery. It also updated the healthd sepolicy and
  created a separate charger one.
* We've been using the charger symlink for ages, but the healthd
  domain is no longer appropriate.
* See for details:
  LineageOS/android_system_sepolicy@dc08245c
  LineageOS/android_system_core@526f8cf3

Change-Id: I6f528ffdcb7b14f9a51fd4246770ceecf8fb968b
2018-01-14 22:15:04 +00:00
Luca Stefani b75813297e klte-common: fstab: Update ZRAM comp streams flag
* AOSP now support it as max_comp_streams

Change-Id: I094f1e15f386cb7aa7909df2f7c91b93148eb840
2018-01-08 05:50:58 +00:00
Kevin F. Haggerty 7915dc24f9 klte-common: Enable single/dual SIM support with fragments
* klte-common has to support both single- and dual-SIM devices, and
  there are multiple devices of each kind. It makes most sense to
  provide fragments in the -common tree that these devices can inherit
  to configure HIDL manifest, system properties, audio support, and
  any additional services necessary for MSIM support.

Change-Id: Ic3b04fa500615c33cef9b0f0a999209150969123
2017-12-30 15:07:32 -07:00
Kevin F. Haggerty 207093e3bc klte-common: Move macloader to vendor partition
Change-Id: Ie9de86f6bea652dc64c254148f3bfbfcc33b42b9
2017-12-26 21:03:03 -07:00
Ethan Chen 0fbb91945a klte-common: Replace QCOM group identifiers with oem_29XX
* Currently, config.fs doesn't give the ability to add AIDs to Android
   init such that they can actually be used in the init scripts.
 * Replace all instances of qcom_diag, rfs and rfs_shared with the
   appropriate IDs (2950, 2951, 2952).

Change-Id: Ie983fd582d4f81c17d730df17363417f87249837
2017-12-26 21:03:03 -07:00
Rashed Abdel-Tawab f0a4e31300 klte-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
2017-12-26 14:24:56 -07:00
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
Paul Keith 878439b046 klte-common: Add support for sec nfc chips
* kltesprsports has this

Change-Id: I5a12c2911347f626153131a677c73c47cba5d7c0
2017-12-22 09:16:55 -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