OSDN Git Service

android-x86/device-generic-common.git
3 years agokernel.mk: remove obsolete rules
Chih-Wei Huang [Tue, 8 Oct 2019 09:31:25 +0000 (17:31 +0800)]
kernel.mk: remove obsolete rules

Now the wl driver is built from external/kernel-drivers.

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Mon, 7 Oct 2019 03:19:31 +0000 (11:19 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoapp: update TermOne Plus
Chih-Wei Huang [Mon, 7 Oct 2019 03:08:05 +0000 (11:08 +0800)]
app: update TermOne Plus

3 years agonativebridge: set default context to mount sfs command
Chih-Wei Huang [Tue, 30 Jul 2019 09:59:41 +0000 (17:59 +0800)]
nativebridge: set default context to mount sfs command

3 years agosepolicy: fix avc denied of surfaceflinger
Chih-Wei Huang [Thu, 25 Jul 2019 09:18:24 +0000 (17:18 +0800)]
sepolicy: fix avc denied of surfaceflinger

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Thu, 4 Jul 2019 07:27:56 +0000 (15:27 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoAdd support of OpenGApps
Chih-Wei Huang [Thu, 4 Jul 2019 07:22:45 +0000 (15:22 +0800)]
Add support of OpenGApps

You may specify the variant by GAPPS_VARIANT. The default is pico.

You still need to add .repo/local_manifests/opengapps.xml to enable it.
Refer to https://github.com/opengapps/aosp_build for more details.

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 28 Jun 2019 04:33:12 +0000 (12:33 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoinit.x86.rc: set owner/group of wpa_supplicant.conf
Chih-Wei Huang [Fri, 28 Jun 2019 04:32:38 +0000 (12:32 +0800)]
init.x86.rc: set owner/group of wpa_supplicant.conf

3 years agokernel.mk: install modules for 'kernel' goal
Chih-Wei Huang [Fri, 21 Jun 2019 02:41:21 +0000 (10:41 +0800)]
kernel.mk: install modules for 'kernel' goal

When do 'make kernel' on the top of android-x86 tree, only $OUT/kernel is
generated but the modules are not installed to $OUT/system/lib/modules.
The patch fixes that.

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86 android-x86-8.1-r2
Chih-Wei Huang [Thu, 13 Jun 2019 09:09:26 +0000 (17:09 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoinit.sh: enable virt_wifi if needed
Chih-Wei Huang [Thu, 13 Jun 2019 09:08:41 +0000 (17:08 +0800)]
init.sh: enable virt_wifi if needed

Some Android apps are not interested in ethernet devices and would rather
connect to a wireless interface. This patch allows the devices with only
ethernet interface to treat one of its network connections as wireless,
satisfying Android apps's network connection requirements.

The ethernet interface being simulated can be specified by the property
net.virt_wifi. The default is eth0.

The feature is enabled if wlan0 doesn't exist, or VIRT_WIFI=1 is set in
kernel cmdline. To disable it, set VIRT_WIFI=0 kernel cmdline.

3 years agoinit.sh: remove wl driver if it's not used
Chih-Wei Huang [Thu, 13 Jun 2019 09:05:50 +0000 (17:05 +0800)]
init.sh: remove wl driver if it's not used

Sometimes the Broadcom wl driver is loaded unexpectedly. Unload it
if it's not being used.

3 years agoAdd HIDL HAL for memtrack
Chih-Wei Huang [Mon, 3 Jun 2019 10:15:31 +0000 (18:15 +0800)]
Add HIDL HAL for memtrack

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Thu, 30 May 2019 08:47:52 +0000 (16:47 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agobluetooth: do not define BTM_DEF_LOCAL_NAME
Chih-Wei Huang [Thu, 30 May 2019 08:46:12 +0000 (16:46 +0800)]
bluetooth: do not define BTM_DEF_LOCAL_NAME

Use the device model as the default Bluetooth name.

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Tue, 30 Apr 2019 07:42:34 +0000 (15:42 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoAdd an idc file for the stylus of Surface Go
Chih-Wei Huang [Tue, 30 Apr 2019 07:35:02 +0000 (15:35 +0800)]
Add an idc file for the stylus of Surface Go

Reported-and-tested-by: Wing Chun Lau <johnnylau34@gmail.com>
3 years agoinit.sh: add quirks for Lenovo miix 320
Chih-Wei Huang [Mon, 29 Apr 2019 08:36:21 +0000 (16:36 +0800)]
init.sh: add quirks for Lenovo miix 320

Tested-by: Marco <ghzmrc91@gmail.com>
3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 12 Apr 2019 08:52:20 +0000 (16:52 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoinit.sh: disable offlining of non-boot CPU of Teclast X80 Power
Valentin Manea [Fri, 12 Apr 2019 08:46:41 +0000 (16:46 +0800)]
init.sh: disable offlining of non-boot CPU of Teclast X80 Power

This fixes the suspend/resume issue of the device.

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Thu, 28 Mar 2019 04:23:40 +0000 (12:23 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoinit.sh: fix sensors support for LINX1010B
Chih-Wei Huang [Thu, 28 Mar 2019 04:18:51 +0000 (12:18 +0800)]
init.sh: fix sensors support for LINX1010B

Reported-and-tested-by: Mark Ellis
3 years agoinit.sh: invert axes of sensors for Microtech e-tab Pro
Chih-Wei Huang [Wed, 27 Mar 2019 10:08:19 +0000 (18:08 +0800)]
init.sh: invert axes of sensors for Microtech e-tab Pro

With panel-orientation-quirks applied in i915 driver, the display is
rotated 180 degrees. We need to invert the x and y axes of sensors
as well.

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 22 Mar 2019 15:51:59 +0000 (23:51 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoinit.sh: set camera properties for Microtech e-tab Pro
Chih-Wei Huang [Fri, 22 Mar 2019 15:48:22 +0000 (23:48 +0800)]
init.sh: set camera properties for Microtech e-tab Pro

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 20 Mar 2019 03:44:54 +0000 (11:44 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoAdd 80860F16:00 to fstab
Chih-Wei Huang [Wed, 20 Mar 2019 03:42:08 +0000 (11:42 +0800)]
Add 80860F16:00 to fstab

Tested-by: Torsten Appelhagen <borsti67@gmail.com>
3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Tue, 12 Mar 2019 09:05:41 +0000 (17:05 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoapp: replace AndroidTerm by TermOne Plus
Chih-Wei Huang [Tue, 12 Mar 2019 09:04:52 +0000 (17:04 +0800)]
app: replace AndroidTerm by TermOne Plus

"TermOne Plus" is a successor of "Terminal Emulator for Android"(AndroidTerm).
This new application includes many compatibility and portability improvements,
stability and defect fixes, and localization enhancements.

3 years agoinit.sh: set sleep.state=force for Microtech e-tab Pro
Chih-Wei Huang [Tue, 12 Mar 2019 08:40:54 +0000 (16:40 +0800)]
init.sh: set sleep.state=force for Microtech e-tab Pro

The state means to put the device into deep sleep regardless of
the wakeup_count interface.

3 years agoinit.sh: fix sensors support of Microtech e-tab Pro
Chih-Wei Huang [Wed, 6 Mar 2019 03:55:57 +0000 (11:55 +0800)]
init.sh: fix sensors support of Microtech e-tab Pro

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 20 Feb 2019 09:39:12 +0000 (17:39 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoinit.sh: disable suspend of VMware
Chih-Wei Huang [Wed, 20 Feb 2019 09:39:04 +0000 (17:39 +0800)]
init.sh: disable suspend of VMware

3 years agoUse languages_full.mk instead of locales_full.mk
Chih-Wei Huang [Wed, 20 Feb 2019 09:36:52 +0000 (17:36 +0800)]
Use languages_full.mk instead of locales_full.mk

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Mon, 21 Jan 2019 08:54:56 +0000 (16:54 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoinit.sh: fix sensors support of EZpad
Chih-Wei Huang [Mon, 21 Jan 2019 08:52:51 +0000 (16:52 +0800)]
init.sh: fix sensors support of EZpad

Tested-by: Yu Zhao <zhaoyu574249312@gmail.com>
3 years agokernel.mk: set LC_MESSAGES to C locale android-x86-8.1-r1
Chih-Wei Huang [Tue, 15 Jan 2019 10:53:35 +0000 (18:53 +0800)]
kernel.mk: set LC_MESSAGES to C locale

The error messages are unreadable since commit 9ea487d changed LC_CTYPE
to C locale but left LC_MESSAGES unchanged. Change LC_MESSAGES as well
to fix it.

Fixes: 9ea487d (kernel.mk: set LC_CTYPE to C locale)

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 11 Jan 2019 03:06:29 +0000 (11:06 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoAdd experimental Vulkan support
Chih-Wei Huang [Fri, 11 Jan 2019 03:06:11 +0000 (11:06 +0800)]
Add experimental Vulkan support

The Vulkan support is enabled if gbm_gralloc is used.

3 years agoRevert "Add hid_hyperv to blacklist"
Chih-Wei Huang [Thu, 10 Jan 2019 10:41:20 +0000 (18:41 +0800)]
Revert "Add hid_hyperv to blacklist"

This reverts commit 9d41d263564de7548b7f24fba028909199773485.

3 years agoadd vulkan radv support
Mauro Rossi [Sat, 30 Jun 2018 15:26:03 +0000 (17:26 +0200)]
add vulkan radv support

radv implements Vulkan HAL without requiring additional wrapper/stub
radv is added as vulkan.radv module to PRODUCT_PACKAGES

ro.hardware.vulkan property is set by init.sh init_hal_vulkan() function
based on the drm fb kernel module amdgpudrmfb

3 years agoadd vulkan anv support
Mauro Rossi [Sun, 4 Feb 2018 23:17:15 +0000 (00:17 +0100)]
add vulkan anv support

anv implements Vulkan HAL without requiring additional wrapper/stub
anv is added as vulkan.android-x86 module to PRODUCT_PACKAGES
and PRODUCT_COPY_FILES is used to install android.hardware.vulkan.{level,version}.xml

ro.hardware.vulkan property is set by init.sh init_hal_vulkan() function
based on the drm fb kernel module inteldrmfb

3 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 26 Dec 2018 07:48:56 +0000 (15:48 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

3 years agoidc: add files for QEMU and VirtualBox
Chih-Wei Huang [Wed, 26 Dec 2018 07:43:55 +0000 (15:43 +0800)]
idc: add files for QEMU and VirtualBox

These files enable orientation aware movement in any rotation.

Remove Vendor_0627_Product_0001.idc which is replaced by
QEMU_QEMU_USB_Tablet.idc.

Reported-and-tested-by: Jon Doe <tuksgig@gmail.com>
3 years agoUpdate tp_smapi to 0.43
Chih-Wei Huang [Wed, 19 Dec 2018 04:05:28 +0000 (12:05 +0800)]
Update tp_smapi to 0.43

Copied from https://github.com/evgeni/tp_smapi
commit a63729a.

4 years agokernel.mk: remove the module dir on errors
Chih-Wei Huang [Fri, 7 Dec 2018 07:09:22 +0000 (15:09 +0800)]
kernel.mk: remove the module dir on errors

The make goal should be removed on building errors, otherwise
the next try will just success.

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Thu, 22 Nov 2018 08:16:25 +0000 (16:16 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agoAdd an idc file for Adomax USB tablet
Chih-Wei Huang [Thu, 22 Nov 2018 08:00:58 +0000 (16:00 +0800)]
Add an idc file for Adomax USB tablet

Reported-and-tested-by: Alexander E. Patrakov <patrakov@gmail.com>
4 years agokernel.mk: set LC_CTYPE to C locale
Chih-Wei Huang [Thu, 22 Nov 2018 04:12:32 +0000 (12:12 +0800)]
kernel.mk: set LC_CTYPE to C locale

The simple workaround avoids AOSP's prebuilt flex crashing like

flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Mon, 29 Oct 2018 07:00:20 +0000 (15:00 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agoinit.sh: let touchscreen never suspend on Surface Go
Chih-Wei Huang [Mon, 29 Oct 2018 06:57:05 +0000 (14:57 +0800)]
init.sh: let touchscreen never suspend on Surface Go

Tested-by: Jim <a0910115172@gmail.com>
4 years agoAndroid-x86 8.1-rc2 release (20181018)
Chih-Wei Huang [Wed, 17 Oct 2018 16:41:17 +0000 (00:41 +0800)]
Android-x86 8.1-rc2 release (20181018)

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Tue, 16 Oct 2018 11:10:51 +0000 (19:10 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agoinit.sh: use video option if UVESA_MODE is not set
Chih-Wei Huang [Tue, 16 Oct 2018 11:09:58 +0000 (19:09 +0800)]
init.sh: use video option if UVESA_MODE is not set

With this patch, it's also possible to set the resolution of uvesafb
via the standard video=<xres>x<yres> kernel cmdline.

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Thu, 4 Oct 2018 11:17:34 +0000 (19:17 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agoUse packages.mk from the product dir if exists
Chih-Wei Huang [Thu, 4 Oct 2018 06:45:27 +0000 (14:45 +0800)]
Use packages.mk from the product dir if exists

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Wed, 19 Sep 2018 02:32:21 +0000 (10:32 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agoinit.sh: honor video cmdline for all supported GPUs
Chih-Wei Huang [Wed, 19 Sep 2018 02:25:37 +0000 (10:25 +0800)]
init.sh: honor video cmdline for all supported GPUs

Allow to use the standard video kernel cmdline to set resolution
for all supported GPUs.

Set the default resolution of virgl to 1280x800.

4 years agokernel.mk: use olddefconfig instead
Chih-Wei Huang [Fri, 14 Sep 2018 11:36:47 +0000 (19:36 +0800)]
kernel.mk: use olddefconfig instead

As suggested by the warning:

  WARNING: "oldnoconfig" target will be removed after Linux 4.19
            Please use "olddefconfig" instead, which is an alias.

4 years agokernel.mk: use the prebuilt binaries of AOSP
Chih-Wei Huang [Fri, 14 Sep 2018 11:20:44 +0000 (19:20 +0800)]
kernel.mk: use the prebuilt binaries of AOSP

Instead of relying on host's binaries (bison, flex), just use AOSP's
prebuilt binaries to build kernel.

4 years agoSet BOARD_USES_DRM_GRALLOC
Chih-Wei Huang [Tue, 11 Sep 2018 09:32:30 +0000 (17:32 +0800)]
Set BOARD_USES_DRM_GRALLOC

This is necessary for mesa 18.2.

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Thu, 6 Sep 2018 06:56:02 +0000 (14:56 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agodefault use CLOCK_BOOTTIME
youling257 [Thu, 6 Sep 2018 02:55:37 +0000 (10:55 +0800)]
default use CLOCK_BOOTTIME

Signed-off-by: youling257 <youling257@gmail.com>
4 years agoidc: add 3M_3M_MicroTouch_USB_controller.idc
Chih-Wei Huang [Fri, 10 Aug 2018 07:57:42 +0000 (15:57 +0800)]
idc: add 3M_3M_MicroTouch_USB_controller.idc

Tested-by: Daniel Kenzelmann <daniel.kenzelmann@gmail.com>
4 years agoinit.sh: support sensors of ASUS T200TA
Chih-Wei Huang [Fri, 10 Aug 2018 07:54:42 +0000 (15:54 +0800)]
init.sh: support sensors of ASUS T200TA

4 years agoinit.sh: fix Bluetooth for ASUS T100TAF
Chih-Wei Huang [Fri, 10 Aug 2018 02:40:46 +0000 (10:40 +0800)]
init.sh: fix Bluetooth for ASUS T100TAF

4 years agokernel.mk: support macOS
Dan Cape [Wed, 11 Jul 2018 03:13:10 +0000 (11:13 +0800)]
kernel.mk: support macOS

Get the number of processors using macOS tools and use the darwin path
for the CROSS_COMPILE variable.

4 years agokernel.mk: fix MacOS building issue
Chih-Wei Huang [Tue, 10 Jul 2018 03:30:40 +0000 (11:30 +0800)]
kernel.mk: fix MacOS building issue

As reported, nproc is a linux only command. Don't use it on MacOS.

4 years agokernel.mk: allow to build kernel with clang
Chih-Wei Huang [Thu, 28 Jun 2018 09:49:47 +0000 (17:49 +0800)]
kernel.mk: allow to build kernel with clang

To enable clang building, set BUILD_KERNEL_WITH_CLANG=true in the
BoardConfig.mk or buildspec.mk.

Currently only 64-bit kernel is buildable with clang.

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Thu, 21 Jun 2018 10:55:05 +0000 (18:55 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agotp_smapi: fix a building issue with clang
Chih-Wei Huang [Thu, 21 Jun 2018 10:52:20 +0000 (18:52 +0800)]
tp_smapi: fix a building issue with clang

The clang complains:

/android-x86/out/target/product/x86_64/obj/kmodule/tp_smapi/tp_smapi.c:202:14: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with -fheinous-gnu-extensions
                         "m"((u16)smapi_port)
                             ~~~~~^~~~~~~~~~
1 error generated.

4 years agoAdd basic sepolicy
Chih-Wei Huang [Mon, 18 Jun 2018 03:57:40 +0000 (11:57 +0800)]
Add basic sepolicy

This is the first step to conquer the SELinux issues of Android-x86.
Just copy from build/target/board/generic/sepolicy/ and
build/target/board/generic_x86/sepolicy/ and remove unnecessary
emulator stuff.

4 years agoAvoid Bluetooth service crashing on VMware
Chih-Wei Huang [Sun, 17 Jun 2018 22:20:46 +0000 (06:20 +0800)]
Avoid Bluetooth service crashing on VMware

4 years agokernel.mk: build with -j option based on processor cores
Mauro Rossi [Fri, 8 Jun 2018 23:17:15 +0000 (00:17 +0100)]
kernel.mk: build with -j option based on processor cores

submake call builds kernel using only one job,
j option is used with number of processors cores retrieved by $(shell) call

v2: use $(nproc) and add -l to limit the number of jobs based on the load
    average (cwhuang)

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 15 Jun 2018 09:02:41 +0000 (17:02 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agonativebridge: update short URLs
Chih-Wei Huang [Wed, 13 Jun 2018 07:48:49 +0000 (15:48 +0800)]
nativebridge: update short URLs

Users from Mainland China can download now.

4 years agoFix issues to use 64-bit binder on 32-bit image
Chih-Wei Huang [Mon, 11 Jun 2018 10:12:39 +0000 (18:12 +0800)]
Fix issues to use 64-bit binder on 32-bit image

Fixes: 66fd14a3 (Always use 64-bit binder)

Reported-and-Tested-by: Mauro Rossi <issor.oruam@gmail.com>
4 years agonativebridge: add OEM lists required by ABIPicker
Chih-Wei Huang [Tue, 29 May 2018 09:35:02 +0000 (17:35 +0800)]
nativebridge: add OEM lists required by ABIPicker

4 years agonativebridge: disable 32k32u and 64k64u support temporarily
Chih-Wei Huang [Thu, 17 May 2018 10:05:46 +0000 (18:05 +0800)]
nativebridge: disable 32k32u and 64k64u support temporarily

4 years agoRevert "Disable FFMPEG plugins temporarily"
Chih-Wei Huang [Tue, 15 May 2018 09:16:34 +0000 (17:16 +0800)]
Revert "Disable FFMPEG plugins temporarily"

This reverts commit a243faea3d2c44b4d4a95cd158bd60c7dab7e13f.

4 years agoBuild system.img with ext4 format
Chih-Wei Huang [Fri, 11 May 2018 11:46:48 +0000 (19:46 +0800)]
Build system.img with ext4 format

We use mksquashfsimage.sh to build system.img since oreo-x86. However,
it causes trouble to read-write installation mode.

To conquer that, I have tried several methods like restorecon, overlayfs
or even generate ext4 system.img on-the-fly. However, none of them works
flawless.

Let's just build system.img as before.

This effectively reverts commit 9668827da362f3ab8dad9902ee77e255825bffa6.

4 years agoinit.sh: add sensors support for EZpad
Chih-Wei Huang [Mon, 11 Jun 2018 10:06:28 +0000 (18:06 +0800)]
init.sh: add sensors support for EZpad

4 years agoinit.sh: allow HAS_SENSORS to override all cases
Chih-Wei Huang [Mon, 4 Jun 2018 15:22:27 +0000 (23:22 +0800)]
init.sh: allow HAS_SENSORS to override all cases

HAS_SENSORS in cmdline was introduced in commit f356d114 to override
the default has_sensors variable. However, it only take effects if
the sensors type is not kbd. This is not my original idea.

The change allows HAS_SENSORS to override the default value no matter
what the sensors type is.

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Fri, 4 May 2018 05:11:02 +0000 (13:11 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agoAdd hid_hyperv to blacklist android-x86-7.1-r2
Chih-Wei Huang [Wed, 2 May 2018 06:10:19 +0000 (14:10 +0800)]
Add hid_hyperv to blacklist

The mouse integration doesn't work well in nougat-x86. Not sure why.

4 years agokernel.mk: fix bison unable to find m4 file issue
Chih-Wei Huang [Fri, 27 Apr 2018 06:01:50 +0000 (14:01 +0800)]
kernel.mk: fix bison unable to find m4 file issue

Android builds a version of bison which is unusable outside the tree.
Since the bison is invoked in the KBUILD_OUTPUT dir, the error is
generated:

bison: external/bison/data/m4sugar/m4sugar.m4: cannot open: No such file or directory

To workaround it, add a symlink to the external dir so that bison can
get the expected m4 file.

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Thu, 29 Mar 2018 08:01:24 +0000 (16:01 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agoinit.sh: disable Bluetooth if no hci interface
Chih-Wei Huang [Thu, 29 Mar 2018 06:09:28 +0000 (14:09 +0800)]
init.sh: disable Bluetooth if no hci interface

This should avoid some unnecessary Bluetooth crashing.

4 years agoinit.sh: support ASUS VivoTab Note 8 (M80TA)
Chih-Wei Huang [Thu, 29 Mar 2018 02:50:01 +0000 (10:50 +0800)]
init.sh: support ASUS VivoTab Note 8 (M80TA)

Tested-by: Fotis k <fkalioras@gmail.com>
4 years agoAlways use 64-bit binder
Chih-Wei Huang [Fri, 9 Mar 2018 06:18:41 +0000 (14:18 +0800)]
Always use 64-bit binder

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Tue, 6 Mar 2018 09:50:19 +0000 (17:50 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agoinit.x86.rc: set SELinux domain to exec and services
Chih-Wei Huang [Tue, 6 Mar 2018 08:24:20 +0000 (16:24 +0800)]
init.x86.rc: set SELinux domain to exec and services

To avoid the service does not have a SELinux domain defined warning.

4 years agokernel.mk: avoid conflict with kernel.mk of LineageOS
Chih-Wei Huang [Tue, 6 Mar 2018 07:02:29 +0000 (15:02 +0800)]
kernel.mk: avoid conflict with kernel.mk of LineageOS

We defined TARGET_PREBUILT_KERNEL to be equal to INSTALLED_KERNEL_TARGET
but LineageOS's kernel.mk would copy TARGET_PREBUILT_KERNEL to
INSTALLED_KERNEL_TARGET that results in a dependency cycle.

Adjust our definition to avoid that.

4 years agoMerge remote-tracking branch 'x86/nougat-x86' into oreo-x86
Chih-Wei Huang [Mon, 5 Mar 2018 04:03:06 +0000 (12:03 +0800)]
Merge remote-tracking branch 'x86/nougat-x86' into oreo-x86

4 years agoinit.x86.rc: log all buffers
Chih-Wei Huang [Mon, 26 Feb 2018 07:17:03 +0000 (15:17 +0800)]
init.x86.rc: log all buffers

This includes the kernel log.

4 years agotp_smapi/hdaps: use timer_setup() with kernel 4.15 and later
Mauro Rossi [Wed, 29 Nov 2017 00:04:17 +0000 (01:04 +0100)]
tp_smapi/hdaps: use timer_setup() with kernel 4.15 and later

Fixes the following building error happening with kernel 4.15:

  CC [M]  .../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.o
.../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.c: In function 'hdaps_init':
.../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.c:782:2:
error: implicit declaration of function 'init_timer' [-Werror=implicit-function-declaration]
  init_timer(&hdaps_timer);
  ^
.../out/target/product/x86/obj/kmodule/tp_smapi/hdaps.c:783:23:
warning: assignment from incompatible pointer type
  hdaps_timer.function = hdaps_mousedev_poll;
                       ^
cc1: some warnings being treated as errors

4 years agoinit.sh: reverse the default orientation of accelerometer
Chih-Wei Huang [Wed, 14 Feb 2018 07:12:54 +0000 (15:12 +0800)]
init.sh: reverse the default orientation of accelerometer

More people reported the orientation of accelerometer is reversed.
Let's change the default orientation.

4 years agoinit.sh: add sensors.iio properties for HP EliteBook
Chih-Wei Huang [Tue, 13 Feb 2018 06:44:57 +0000 (14:44 +0800)]
init.sh: add sensors.iio properties for HP EliteBook

Reported-and-tested-by: Wing Chun Lau <johnnylau34@gmail.com>
4 years agoinit.sh: adjust micphone volume
Chih-Wei Huang [Mon, 12 Feb 2018 07:13:36 +0000 (15:13 +0800)]
init.sh: adjust micphone volume

Change the values according to internal testing.

Tested-by: 张淋苹 <18701158269@163.com>