Commit graph

1853 commits

Author SHA1 Message Date
Paul Crowley
7019818511 Merge "Build "secdiscard" for securely discarding data from flash devices." into mnc-dr-dev 2015-07-13 20:54:43 +00:00
dcashman
19eeccdaf2 Allow init to create /mnt/sdcard symlink.
Addresses the following denial:
avc:  denied  { create } for  pid=1 comm="init" name="sdcard" scontext=u:r:init:s0 tcontext=u:object_r:tmpfs:s0 tclass=lnk_file permissive=0

Bug: 22084499
Change-Id: Icffef8330d07b00f36fda11374e39e0df7181ca3
2015-07-01 09:14:18 -07:00
Paul Crowley
36e792b894 Build "secdiscard" for securely discarding data from flash devices.
Bug: 19706593
Change-Id: I073b7b39f25b054abdf2b983a63d029d690970a9
(cherry picked from commit 54a28654e6)
2015-06-30 15:40:00 +01:00
Michael Wright
7371a7a5b5 Add hid command to base build
Bug: 21662862
Change-Id: I11ed67b8f0efd1232ddfbb6e0a5f4bdbb065397e
2015-06-24 15:55:47 +01:00
Yorke Lee
05f9da8e6f Merge "Add 'adb shell telecom' command to packages list" into mnc-dev 2015-06-03 21:39:39 +00:00
Yorke Lee
a1e1d9cea5 Add 'adb shell telecom' command to packages list
Change-Id: I193b54dd9f4511eb7959c5dbbf38f90267b8fcc9
2015-06-03 13:57:33 -07:00
Mark Salyzyn
9f8e1e1c7d goldfish: rename goldfish_logcat.te to logd.te
(cherrypicked from commit fd8c30177c)

Bug: 19608716
Change-Id: I5c76648a4bcbbb15a033465e8af66b12af6e0a18
2015-06-03 10:48:35 -07:00
Mark Salyzyn
94871b94ef goldfish: logcat -Q in logd domain
Deal with a build failure in conflict with cl/152105

(cherrypicked from commit 1cc7735ffa)

Bug: 19608716
Change-Id: I1078046db3b159c1baf0a22435c3e777424453a1
2015-06-03 10:47:34 -07:00
Jeff Sharkey
c2fb6e107d Merge "Both ext4 and f2fs binaries for adoptable storage." into mnc-dev 2015-05-28 19:54:17 +00:00
bohu
1d8b270267 Include fingerprintd on emulator images
Change-Id: I453d7d3fa3844bdb26c8279982b8b5b246032926
2015-05-27 17:53:11 -07:00
Jeff Sharkey
e819398870 Both ext4 and f2fs binaries for adoptable storage.
New adoptable storage feature can format media as either ext4 or
f2fs, so bring in both sets of binaries for typical products.

Bug: 20275581
Change-Id: I85380cbc8c06c958b66db879f63447ddac124cbf
2015-05-27 14:44:30 -07:00
bohu
a2eccba17f Bump x86_64 system image size to fix build
Bumped from 1G to 1.25G

Change-Id: I8d04166c43c792030f346cbe6ba9d6889b31359b
2015-05-26 10:40:36 -07:00
bohu
ed6b6350ea Uses SDK specific feature lists for SDK system images
The SDK system images does not have some features such as bluetooth;
From now on, it will use its own feature list from
device/generic/goldfish/data/etc/handheld_core_hardware.xml

bug: 21159206
Change-Id: If566d4d190dc307c6d16844dba0d17570f0ceebf
2015-05-22 15:38:13 -07:00
bohu
9b2323edf7 Replace Launcher2 by Launcher3 for SDK system images
Launcher2 is deprecated and should use Launcher3, as the latter
can handle higher resolution devices (such as Nexus 6).

Change-Id: I5215d87f8536869486bb0b6317ae382a21099925
2015-05-22 15:05:12 -07:00
Guang Zhu
7fda31584f Merge "Revert "Replace Launcher2 with Launcher3"" into mnc-dev 2015-05-22 02:12:40 +00:00
Guang Zhu
ed9edb9c29 Revert "Replace Launcher2 with Launcher3"
Bug: 21164174

This reverts commit d79778faf3.

Change-Id: Ide6b2dc4c511a60bcdf22dd44369e3a9fa08d1af
2015-05-22 02:08:19 +00:00
Andres Morales
7451df690c Merge "remove gatekeeper software module" into mnc-dev 2015-05-21 18:27:52 +00:00
bohu
d79778faf3 Replace Launcher2 with Launcher3
Launcher2 is deprecated and should use Launcher3, as the latter
can handle higher resolution devices (such as Nexus 6).
Most importantly, Launcher3 is maintained.

Change-Id: I3a80f242af2baaebe90af93794b0ba5e249dbc7d
2015-05-21 08:16:14 -07:00
Yu Ning
0f54ada1cd Allow goldfish-setup to put the emulator in WiFi-only mode
The goldfish-setup service (essentially /system/etc/init.goldfish.sh)
executes the following commands when certain conditions are met:

 setprop ro.radio.noril yes
 stop ril-daemon

so as to stop the RIL daemon and emulate a WiFi-only device. Both would
fail, though, because goldfish-setup does not have the permissions to
set relevant properties.

This CL modifies the emulator's SELinux policy to grant the necessary
permissions. It is a step towards fixing the ril-daemon-keeps-getting-
killed-and-restarted problem with the new ("ranchu") emulator, which
does not support telephony emulation yet. (The other step is to have
init start goldfish-setup, which will be done in a seperate CL.)

(cherrypicked from commit 33dca8090f)

Change-Id: Ice7e7898804b7353ac4a8c49d871b1b2571d7a5f
Signed-off-by: Yu Ning <yu.ning@intel.com>
2015-05-18 19:46:18 -07:00
William Roberts
c434f71bd8 Update device to use set_prop() macro
(cherrypicked from commit cccc901639)

Change-Id: I630ba0178439c935d08062892990d43a3cc1239e
Signed-off-by: William Roberts <william.c.roberts@linux.intel.com>
2015-05-18 19:20:03 -07:00
Yu Ning
e9ec053e99 Label /dev/ttyGF* as serial_device
In goldfish kernel 3.10, the goldfish_tty device instantiates virtual
serial ports as /dev/ttyGF* (e.g. /dev/ttyGF0), not as /dev/ttyS* as in
goldfish kernel 3.4. However, in the emulator's SELinux security policy,
there is no specific security context assigned to /dev/ttyGF*, and the
one inherited from /dev (u:object_r:device:s0) prevents services such as
qemud and goldfish-logcat from reading and writing ttyGF*. Consequently,
qemud terminates abnormally on the classic x86_64 emulator:

 init: Service 'qemud' (pid XXX) exited with status 1

Fix this issue by assigning /dev/ttyGF* the same security context as
/dev/ttyS*.

(cherrypicked from commit 4783467922)

Change-Id: Ia7394dc217bd82f566c4d1b7eda3cc8ce3ac612f
Signed-off-by: Yu Ning <yu.ning@intel.com>
2015-05-18 09:55:07 -07:00
Andres Morales
f1d32a1e14 remove gatekeeper software module
now implemented directly in gatekeeperd binary

Change-Id: Iaeb8e97427dbcffd1356fa955d61af55e3e330ec
2015-05-18 09:24:44 -07:00
Yu Ning
b23b5cc4a4 Label /dev/goldfish_pipe as qemu_device
In goldfish kernel 3.10, qemu_pipe has been renamed to goldfish_pipe.
However, in the emulator's SELinux policy, there is no specific security
context assigned to /dev/goldfish_pipe, and the one inherited from /dev
(u:object_r:device:s0) prevents various processes (qemud, qemu-props,
etc.) from reading and writing goldfish_pipe. Consequently, the classic
x86_64 emulator will not boot if GPU emulation is enabled ("-gpu host"),
and does not render the UI correctly if launched with "-gpu off".

Fix this issue by assigning /dev/goldfish_pipe the same security context
as /dev/qemu_pipe.

This CL also benefits the new ("ranchu") emulator, where all supported
ABIs (arm64, mips64, x86 and x86_64) use 3.10-based kernels. Without
this fix, the new emulator boots and works, but there are avc denials
related to goldfish_pipe.

Last but not least, it is now possible to boot the classic x86 emulator
with a 3.10-based kernel instead of the current 3.4-based one, without
disabling SELinux.

(cherry-pick of commit: a5053e6b35)

Change-Id: I52e75c94d3ae3758cbbf5bc0e1d84254fdf5c6cb
Signed-off-by: Yu Ning <yu.ning@intel.com>
2015-05-15 07:44:28 -07:00
Neil Fuller
f9f9c3f31e Merge "Add tzdatacheck to image" into mnc-dev 2015-05-14 10:15:01 +00:00
Neil Fuller
7d18a68417 Add tzdatacheck to image
Bug: 21110439
Bug: 19941636
Change-Id: I743236d9c7b433968865648ffae25451c6012a5f
2015-05-14 10:15:35 +01:00
Geoff Mendal
8788add72c Add locales sq_AL, gu_IN, and pa_IN for mnc-{dev,release}
Bug: 21095280
2015-05-13 09:57:01 -07:00
Jeff Sharkey
3ce2e60ffc Merge "New "sm" shell tool to call StorageManager." into mnc-dev 2015-05-13 05:27:39 +00:00
Dan Albert
f807d1fa6f Merge "Remove stlport from global package list." into mnc-dev 2015-05-12 23:11:32 +00:00
Jeff Sharkey
dea22725d4 New "sm" shell tool to call StorageManager.
Bug: 19993667
Change-Id: I9021794eb6f69c7f53151a887a85788d315ab67d
2015-05-12 15:53:29 -07:00
Stephen Smalley
901d792cbf Define BOARD_SEPOLICY_DIRS for 64-bit emulators.
Define BOARD_SEPOLICY_DIRS for the arm64, mips64, and x86_64
emulator targets.  As a first cut, simply inherit from the
existing policy directories used for generic and generic_x86.
We may need further board-specific policy added for these targets
but testing will require first enabling SELinux in the relevant
kernel configs.

(cherrypicked from commit 21ebc213bb)

Change-Id: I7b4459b32298698fc2908cbbdd0e3afadbe5ac24
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2015-05-11 10:46:51 -07:00
Dan Albert
c6355b9464 Remove stlport from global package list.
This is now whitelisted per device.

Bug: http://b/15193147
Change-Id: I7fcd0891242fb552a17753b151cf431a398bbc44
(cherry picked from commit 0a93b56924)
2015-05-08 09:56:56 -07:00
Robin Lee
455ffaafcd Revert "Switch from Calculator to ExactCalculator"
Temporary revert to get TT builds in shape.

This reverts commit 846505dc35.

Bug: 20745303
Change-Id: Id3455cba38b7aabaffa63c8531a6430f69897c6e
2015-05-07 14:56:00 +00:00
bohu
22f1bc5db2 Bump sdk arm system image size to 750M
To fix broken build of arm system images.

Change-Id: I960dbb2a5a895557499fcf38655cd8907e768ef9
(cherry picked from commit 9f42be14b8)
2015-04-27 19:59:57 +00:00
Justin Klaassen
f33b404cb6 Merge "Switch from Calculator to ExactCalculator" 2015-04-18 00:24:23 +00:00
Lajos Molnar
3456d3bbf7 am d6ba1cfd: am 35790525: am 3a5602eb: Merge "core_base.mk: switch to new H264 and MPEG2 software codecs"
* commit 'd6ba1cfdfb0c1792e2f2f1de5bd2c596a41a47cc':
  core_base.mk: switch to new H264 and MPEG2 software codecs
2015-04-17 06:13:31 +00:00
Lajos Molnar
d6ba1cfdfb am 35790525: am 3a5602eb: Merge "core_base.mk: switch to new H264 and MPEG2 software codecs"
* commit '35790525cc756c72a44094f55970ec3b3d7e8a28':
  core_base.mk: switch to new H264 and MPEG2 software codecs
2015-04-17 05:20:26 +00:00
Lajos Molnar
f623a80480 core_base.mk: switch to new H264 and MPEG2 software codecs
Change-Id: I3078a4ef6e73e95edcdd16b087ac61ae56c4b812
2015-04-16 19:02:47 -07:00
Justin Klaassen
846505dc35 Switch from Calculator to ExactCalculator
Bug: 20301980
Change-Id: I95373aba826a0b5d58d2845b77e9849b674c5ed3
2015-04-16 17:28:05 -07:00
Jonathan Basseri
3dd39b092b Adding the new CarrierConfig app to the system image.
Bug: b/19483786
Change-Id: I0173246997d6edddf4d9afb508a2427818f71928
2015-04-16 10:25:03 -07:00
Lajos Molnar
7ac7dc7263 am 8cd7e944: am fb102b1b: am 7c794b16: Merge "Revert "core_base.mk: switch to new H264 and MPEG2 software codecs""
* commit '8cd7e9442cfbd8247bb99c312f6e98649b3afe42':
  Revert "core_base.mk: switch to new H264 and MPEG2 software codecs"
2015-04-16 16:40:35 +00:00
Lajos Molnar
8cd7e9442c am fb102b1b: am 7c794b16: Merge "Revert "core_base.mk: switch to new H264 and MPEG2 software codecs""
* commit 'fb102b1b5107fced1fb7cfdb98b051efb3575ec5':
  Revert "core_base.mk: switch to new H264 and MPEG2 software codecs"
2015-04-16 16:19:14 +00:00
Lajos Molnar
37e931d9c3 Revert "core_base.mk: switch to new H264 and MPEG2 software codecs"
clang builds fail on the dependent libraries

This reverts commit c628500ca5.

Change-Id: Ibd4cdce82b890bd3cb9d03a1a1bc0e4fc0e22ee8
2015-04-16 15:49:08 +00:00
Lajos Molnar
2578431911 am ec1c2c0f: am b5f7b187: am 161c6971: Merge "core_base.mk: switch to new H264 and MPEG2 software codecs"
* commit 'ec1c2c0fea5b82ecf480d32dd3679f8437f720eb':
  core_base.mk: switch to new H264 and MPEG2 software codecs
2015-04-16 15:45:56 +00:00
Lajos Molnar
ec1c2c0fea am b5f7b187: am 161c6971: Merge "core_base.mk: switch to new H264 and MPEG2 software codecs"
* commit 'b5f7b18749a490a61eac66572ab1a009c608468b':
  core_base.mk: switch to new H264 and MPEG2 software codecs
2015-04-16 15:24:42 +00:00
Lajos Molnar
c628500ca5 core_base.mk: switch to new H264 and MPEG2 software codecs
Change-Id: I86777e5efc7dbb138e9348a4ec7271ff047d328f
2015-04-15 16:18:53 -07:00
Ying Wang
3b2f1fc7c6 am 414bb9a4: am 78622230: am 47ff7f56: Merge "Add host tool fastboot to every build."
* commit '414bb9a4823c44e2f4927f052678e56935d3a9af':
  Add host tool fastboot to every build.
2015-04-13 22:51:29 +00:00
Ying Wang
414bb9a482 am 78622230: am 47ff7f56: Merge "Add host tool fastboot to every build."
* commit '7862223034dee3ef9ac35e3a5346a24c77eacd1b':
  Add host tool fastboot to every build.
2015-04-13 22:27:54 +00:00
Ying Wang
9668a7ab1d Add host tool fastboot to every build.
Some tools expect fastboot to be present even in user builds.

Change-Id: I4b6ee458eb2feb0dc7a77ec33a04219c5f4adc0d
2015-04-13 14:49:19 -07:00
Ricardo Garcia
3b216991a7 Adding libsonic to base.mk
Adding Sonic library to base
bug: 19196501

Change-Id: Id39a3a2f843aadf2808a10d2017151461db2c9b2
2015-04-10 15:43:30 -07:00
Andres Morales
452196f8a0 Merge "Add gatekeeperd to build" 2015-04-10 14:46:05 +00:00