Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-core: List of commits

system/core


RSS
Rev. Tiempo Autor
11246ae s-x86 2023-01-06 04:37:27 Alex Naidis

init.rc: don't start console unless asked to

This can have a major impact on performance.

We don't want this, even on userdebug/eng builds.

Use the new property "ro.console.enable" to
enable the console service explicitly.

985c9ca 2023-01-06 04:37:26 Leo Yan

remount: Fix failure for system-as-root

Since commit 5ad7b3cbc5c1 ("Try to remount mounted points only"), the
system-as-root cannot be remounted successfully when execute command
"adb remount". This is because the mount point "/system" cannot be
found and directly bails out with failure.

Add an extra checking for the mount point "/system" for the
system-as-root case, takes it as a found entry; thus the function can
continue to run and fix up to remount root.

Suggested-by: David Anderson <dvander@google.com>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Change-Id: Ia936c9d97bed951184813a087c70fe591cb33fe0

3e1e940 2022-09-10 07:20:10 Michael Goffioul

Don't fail first stage mount if fstab is not found

The first stage mount looks for default fstab, but we rely on properties
to find fstab.${ro.hardware}. However properties are not available yet
in that stage. Prior to Android S, failure to find default fstab at that
stage was non fatal. As we don't need the first stage mount, just make
it non fatal again.

Change-Id: Ibaf1d9d1c278e2dcacbbd149f3661e00c3cc1553

0500f98 2022-09-10 07:20:09 Michael Goffioul

Don't mount binderfs

cd9b898 2022-09-10 07:20:08 Chih-Wei Huang

Fix ro.build.fingerprint

Fix mismatched fingerprints, a stupid bug of Android 10.

Change-Id: Ic91681647ddabb9c0ce3306f947a91c62fe4f139

b6415f7 2022-09-10 07:20:07 Chih-Wei Huang

sdcard: add back fuse support

We need fuse on tmpfs.

8072472 2022-09-10 07:20:06 Chih-Wei Huang

libcutils: add probe_module

The functions are used by several modules of Android-x86.

3d6848b 2022-09-10 07:20:05 Chih-Wei Huang

init: set default selinux mode to permissive

To support selinux enforcing mode, we still have a long way to go.
Let's set the default mode to permissive.

df4e9e9 2022-09-10 07:20:04 Chih-Wei Huang

init: set ro.boot.hardware to product name

We don't set androidboot.hardware cmdline anymore.

c47aa53 2022-09-10 07:20:02 Michael Goffioul

ueventd: auto load modules on uevents

f464bec 2022-09-10 07:20:02 Chih-Wei Huang

init: handle ctrl-alt-del event

By setting /proc/sys/kernel/ctrl-alt-del to 1, kernel will trap
ctrl-alt-del event and send a SIGINT signal to init.

Start the ctrl-alt-del service on receiving the signal.

91f6651 2022-09-10 07:20:00 Chih-Wei Huang

init: don't bail out even no SELinux domain defined

201cf25 2022-09-10 07:20:00 Chih-Wei Huang

init.rc: symlink /lib to /system/lib

Currently more linux drivers use request_firmware_nowait() to load
firmwares. It requires the firmwares exist in the standard path.

Create the symlink before ueventd started to ensure firmwares
could be loaded correctly.

ad23572 2022-09-10 07:19:59 Ma Jian

Support use local time for RTC

When default timezone isn't UTC, there will no persist.sys.timezone
under /data/property/, so init won't get the default timezone for
setting time from rtc.

This change adds a fallback to read the property when the persist file
does not exists.

Notice, the default property of persist.sys.timezone should be set in
/default.prop instead of /system/build.prop

NO_REF_TASK
Tested: set default timezone with Asia/Shanghai, make sure bios time
is correct in local time, reboot to android, the local time should
be correct.

Change-Id: Ifbd20cb3710f833ab65852b4e5d51e38cc7c2d79

89dbb20 2022-09-10 07:19:58 Roman Petrovski

init: support usbmisc devices

The patch allows to create usbmisc device nodes like /dev/cdc-wdm0.

f873166 2022-09-10 07:19:56 Chih-Wei Huang

init: expand variables on mount_all command

This allows mount_all to handle fstab.${ro.hardware} instead
of hardcoding the file name.

Change-Id: Ia7fb4e5a84dd50a46afdd4239b9b06204f449cfe

19b7d1e 2022-09-10 07:19:55 Andrew Boie

diskconfig: Fix disk_layout.conf size parsing

If the user was appending 'K' to their lengths (which is valid
but redundant) it was being treated as megabytes instead of
kilobytes.

Change-Id: I979ec4d01f1342de1f3209b946201ca87bad32a7

64e3cac 2022-09-10 07:19:54 Paul Drews

Use progressive offset in buffer for successive writes

The code for copying from one raw file to another looped
back and tried again with a suitably smaller number of bytes
if the entire buffer was not written on the first try.
However, it failed to advance an offset in the buffer past
the bytes that were written. This could conceivably happen
under rare circumstances, leading to a corrupted disk image.

This fix defines an offset into the buffer, advancing it by
the number of bytes written on each successive retry.

Signed-off-by: Paul Drews <paul.drews@intel.com>

Change-Id: I76b8e0b3c0d3b0c32bd2114d0867ac7489808279

0be5bba 2022-09-10 07:19:53 Andrew Boie

libdiskconfig: HACK Don't do space checks on zero-size images

If an image file is of zero size, assume we just want to expand it
to fit the available images.

Change-Id: If8f22eb12d3a5179960d4359307bb177e3323e8a
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>

2310cbc 2022-09-10 07:19:52 Chih-Wei Huang

Allow all to execute su

Let the Superuser app control how su is used.

3186a1d 2022-09-10 07:19:51 Chih-Wei Huang

init.rc: run the console shell as root

To make debugging easier.

00f77cc 2022-09-10 07:19:50 Chih-Wei Huang

libutils: fix incorrect calculation in utf8_length() method

The first character of utf-8 could be larger than 128. If use signed char
variable to hold it, it would be treated as negative. That may result in
some unexpected errors.

For example, without this patch, suppose the code is 0xE88888, then
first_char is 0xE8 and converted to int32_t type (0xFFFFFFE8) and
masked with (~to_ignore_mask). The result utf32 is FFF08208
which is incorrect.

Change-Id: I72b355f380865bc375251eb287fc225fd585a115

156d6f9 2022-09-10 07:19:48 Chih-Wei Huang

init: change firmware_dirs for Android-x86

8ba0870 r-x86 2022-03-14 05:42:10 Michael Goffioul

Don't mount binderfs

9dbc8ee 2022-03-14 05:42:09 Chih-Wei Huang

Fix ro.build.fingerprint

Fix mismatched fingerprints, a stupid bug of Android 10.

0c81c4b 2022-03-14 05:42:08 Chih-Wei Huang

sdcard: add back fuse support

We need fuse on tmpfs.

75ca9df 2022-03-14 05:42:07 Chih-Wei Huang

libcutils: add probe_module

The functions are used by several modules of Android-x86.

305e53a 2022-03-14 05:42:07 Chih-Wei Huang

init: set default selinux mode to permissive

To support selinux enforcing mode, we still have a long way to go.
Let's set the default mode to permissive.

62f0fef 2022-03-14 05:42:06 Chih-Wei Huang

init: set ro.boot.hardware to product name

We don't set androidboot.hardware cmdline anymore.

570e81e 2022-03-14 05:42:05 Michael Goffioul

ueventd: auto load modules on uevents

Show on old repository browser