libcamera: touch-to-focus fixes

- Do not send command to camera unless preview is started
  (fix 4.3 AOSP camera crash)
- Send touch AF command regardless of previous state
  (required to actually trigger touch AF at the new area)

Change-Id: I51a8f80ce1ec38f1052e4660f708be8649478a88
libcamera: properly advertise lack of scene mode

Otherwise Focal with errorneously show all available scene modes

Change-Id: Id2987c6f3a01a331485bb76d879a6178b1c22bf6
Remove make_ext4fs from PRODUCT_PACKAGES

This has been in the core package set since 4.2.

Change-Id: I512e3b042e2c98115098a61f025b9022b58095d3
Disable GL scissor optimization for aries (SGX540)

http://source.android.com/devices/tuning.html

Change-Id: I8eb0bd6f868a6b0532c1c833e43a4b30031f7261
Signed-off-by: Pawit Pornkitprasan <p.pawit@gmail.com>
aries-common: remove unused ARCH_ARM_HAVE_TLS_REGISTER

The variable is no longer used by the Android build system.

Change-Id: I536e6ce2e45b25fccaed50408922a2851a30563f
Signed-off-by: Pawit Pornkitprasan <p.pawit@gmail.com>
Include specialized copy of libskia for playback of Saved Webpages.

cherry-picked from 6eae0292a8aa7a2374f35ebb8a9de801c9421761 of tuna

This CL gives prime devices the ability to display saved pages in the
Android browser that were recorded with a previous version of Skia.

Change-Id: I81241cda20e3bea3edcc60d92f324575491698eb
Signed-off-by: Pawit Pornkitprasan <p.pawit@gmail.com>
aries-common: update media_codecs.xml for 4.3

* Add GSM decoder explicity
* Add VPX encoder (now required for 4.3 compatibility)

Change-Id: I7e6e79254313edb9159a495749b8200b13c8af42
Signed-off-by: Pawit Pornkitprasan <p.pawit@gmail.com>
aries-common: set ro.bq.gpu_to_cpu_unsupported

This tells SurfaceFlinger to always use the CPU
pipeline for taking screenshot. We don't actually need
this since our surface type isn't supported by Bitmap
and will defaults to CPU anyway, but setting it doesn't
hurt.

Change-Id: I35c15dff969a89990c0f4ef6512cb79ab3c71362
Signed-off-by: Pawit Pornkitprasan <p.pawit@gmail.com>
aries-common: update recovery fstab

Change-Id: Ia3f92d0dc25fa2bb68814fda7e4f12edc8c863b6
aries-common: SELinux

- Added basic sepolicy to allow device to boot (there's a bug that
  crashes the device without it)
- Added other sepolicies to fix denial and tighten processes
- Uses bind mount instead of symlink because file_contexts uses real
  path

Change-Id: I16628a9d4b8e1f66ccfc84df4adeee53eaf79bf9
aries-common: repartition /system to 600M

The current 400M partition is too small now.

Change-Id: Ie38c41fd2c0d6d5518c7e809d4af3d27af5c1193
aries-common: Update BT network interface name for Android 4.3

Change-Id: I52d70f4aa722106527858a50478166b57f4c7ce5
Signed-off-by: Pawit Pornkitprasan <p.pawit@gmail.com>
aries-common: support vold-based recovery

Change-Id: I9fc82f8a77a027b10a365aed2411a0cf17d3332d
aries-common: fix installing from stock

- Package path need to be changed from /sdcard to /storage/sdcard0
- Readlink does not work on recovery on Samsung ROM

Change-Id: I28ed95f3ac89ebfc850d5c1be51972cff90d2127
aries-common: updater: fix install from external sd

Don't use -f with readlink since it won't work if
the destination does not exist.

Change-Id: I1e2f16ba009108dbdc69f91202c1dd071c1361e7
aries-common: set TARGET_ARCH_LOWMEM

Change-Id: I3955d2a723d538f56426882b33121256f305b9fd
aries-common: rename Camera -> Gallery2 overlay

Change-Id: I1d214abffd49f908377d067d2b3f9b1dbf2021dd
overlay: remove config holdbacktokill