pmaports/device/device-samsung-klte/device-samsung-klte-hybris.post-install
Alexey Min 40c93fde19
samsung-klte: downstream: add audio support, reorganize deps (!967)
* move msm-fb-refresher dependency to downstream kernel package,
  it is useless on mainline

* disable msm-fb-refresher service when using libhybris
  adaptation, it is only required for downstream kernel *without*
  libhybris. It interferes with qcom kgsl-adreno driver badly
  (causes screen flickering)

* set CPU governor to conservative on system startup (it lowers
  CPU frequency in idle state from initial 2.4 Ghz to 300 MHz)

* add hybris_pulse subpackage that gets installed only when
  device-samsung-klte-hybris AND pulseaudio are installed. It
  pulls in pulseaudio-modules-droid-7.1-caf and alsa integration

* add system.img symlink to lxc-android installation. With this
  you can have Android container successfully running already
  at the first boot without need to do it manually. Halium
  installation process puts your system.img to /data partition
  by default, so follow their recommendation. We can use a
  symlink to save some space on /system partition.

[ci:skip-build]: already built successfully in CI
2020-02-22 21:49:48 +01:00

24 lines
604 B
Bash
Executable file

#!/bin/sh
# Append Android mounts to Linux fstab
cat /etc/fstab.android >> /etc/fstab
# Create android mount points
mkdir -p /data
mkdir -p /system
mkdir -p /cache
mkdir -p /efs
mkdir -p /firmware
mkdir -p /firmware-modem
mkdir -p /external_sd
mkdir -p /misc
# /vendor symlink (points to nowhere until /system is mounted)
ln -s /system/vendor /vendor
# disable msm-fb-refresher service on libhybris adaptation
rc-update del msm-fb-refresher boot
# symlink system.img from userdata partition to a place
# where lxc-android expects to see it.
ln -s /data/system.img /var/lib/lxc/android/system.img