summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* goldfish: Add PRODUCT_SDK_ADDON_COPY_FILES entries for emulatorlineage-16.0Tim Schumacher2020-01-034-0/+14
| | | | | | | Those are copied from the 17.0 branch, adapted to the 16.0 file locations. Change-Id: Ic9a08356ab0cd6896bf11d9c77fadef0bd5faa33
* Merge "Snap for 5180536 from b05b939d85b47ed8c2b53114f8116699b859df09 to ↵Android Merger2019-02-1148-158/+3116
|\ | | | | | | pi-platform-release am: ae97ddcc37" into pie-gsi
| * Snap for 5180536 from b05b939d85b47ed8c2b53114f8116699b859df09 to ↵android-build-team Robot2019-02-1148-158/+3116
|/| | | | | | | | | | | | | | | pi-platform-release am: ae97ddcc37 Change-Id: I04d4d15458ae1881f3d347ba78e548820e135c5d
| * Snap for 5180536 from b05b939d85b47ed8c2b53114f8116699b859df09 to ↵android-build-team Robot2019-02-0948-158/+3116
| |\ | | | | | | | | | | | | | | | pi-platform-release Change-Id: Ia280cb31af947b41f4f81d6a47532468c05143ce
| | * Snap for 5130385 from eabd93d25de5a95d6544822d62af6744176fd5e6 to ↵android-build-team Robot2018-11-141-0/+3
| | |\ | | | | | | | | | | | | | | | | | | | | pi-qpr2-release Change-Id: Ifb221f0cca32d3173f44ad98fcb3be290b40d667
| | | * goldfish: avoid crashing netmgrbohu2018-11-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When host side does not provide network forwarding service BUG: 119328108 Change-Id: If69eebd401bc25f2de69127164b9cf72545d7915
| | * | Snap for 5115288 from aa76124b9f5fddd3279bb144267fda7a29aa9afe to ↵android-build-team Robot2018-11-0717-78/+740
| | |\| | | | | | | | | | | | | | | | | | | | | pi-qpr2-release Change-Id: If8d613cafaffda76bdcc72ebb95cc5d85c26f873
| | | * Make netmgr support WiFi direct by forwardingBjoern Johansson2018-11-0517-78/+740
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to support WiFi Direct we need two devices to be able to send raw WiFi frames between each other. This is to emulate the situation where the WiFi radios in the devices are able to talk to each other directly without any access point or established networks. The way this is done is by reading WiFi frames from the monitor interface provided by the virtual WiFi driver and then transporting them to another emulator. On the other emulator the frames are then injected into the virtual WiFi driver's monitor interface. The frames are read from the monitor interface and then transported out of Android using the QEMU pipe. Similarly data from the other emulator is read from the QEMU pipe and then injected on the monitor interface. BUG: 111996306 Test: Run CTS Verifier WiFi Direct tests Change-Id: I4f8abf483776ae97a1b6184d012b3a23e55e87a2
| | * | Snap for 5044688 from 873eee6422fdd7237b9bf86edb37f2958b23829e to ↵android-build-team Robot2018-10-0244-153/+2446
| | |\| | | | | | | | | | | | | | | | | | | | | pi-qpr2-release Change-Id: Icd99a18af2c325808b9183e2919b7c695136ecba
| | | * Create a network manager for the emulatorBjoern Johansson2018-09-0631-4/+1735
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a network manager for the emulator that will contain functionality related to network setup and management. Initial functionality includes address assignments to wifi interfaces as they come and go, and receiving and acting on wifi related commands over the qemu pipe. Currently the network manager only supports creation of access points and blocking/unblocking network traffic for an access point. In order to have a hostapd configuration file that can change the setup scripts will now copy the template configuration file to the vendor data partition which is writable and then modify it. BUG: 111997081 Test: Run CTS Verifier test Multinetwork connectivity Change-Id: I754e0c74cbaea9daa130915bed47ef3b2fba164e
| | | * Make DHCP server assign interface-based addressesBjoern Johansson2018-09-065-140/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the DHCP server used in the router namespace assigns addresses as configured on the command line. This is redundant information as all the necessary information can be deduced from the current interface address anyway. Remove most of the command line options in favor of assigning addresses from the same subnet that the interface is in and a gateway that is the same address as the interface. BUG: 111997081 Test: Run emulator and verify that radio and wifi networking works Change-Id: I8b6adb76f7445b7650da8f2a59b020b4fef991ee
| | | * Create header library for goldfish includesBjoern Johansson2018-09-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to be able to use the goldfish includes such as the qemu pipe includes in a project that uses soong the includes must be in a header library. Soong only allows include paths that are contained in subdirectories of the project directory. Since these headers are outside of all other projects it needs to be inclued as a dependency instead. BUG: 114288761 Test: Compile test project with Android.bp file Change-Id: I3ccb2befc986b7bf1f2f6dff3a5812c861618a77
| | | * Improve IPv6 networking for radioBjoern Johansson2018-08-248-9/+568
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RIL only announced addresses supplied by the emulator host. For IPv6 the guest uses Neighbor Discovery Protocol to determine which IPv6 addresses to assign to an interface and what gateway to use. This was not reflected in RIL though which meant that the Android framework was unaware of the radio using these addresses. There are now CTS tests that rely on the framework knowing which addresses are assigned to verify that connections to external servers are made from the correct interface. These tests would fail on the radio interface. In addition to providing interface addresses RIL also provides DNS servers. It would only provide whatever DNS servers the DHCP client could find. On networks that are configured to use IPv6 DNS servers this left the radio interface without any usable DNS servers. This change adds an interface monitor to the RIL that is looking for address changes on the radio network interface. It then sends updates to the framework whenever the addresses change. And to solve the specific IPv6 problem it looks at IPv6 addreses. RIL still expects the IPv4 address to either be hardcoded for the Wifi case or supplied by the emulator host if the Wifi feature is not enabled. To fix the IPv6 DNS server issue the ipv6proxy will now inspect each incoming Router Advertisement packet and extract any IPv6 DNS servers provided in those packets. The proxy will set a system property for each extracted DNS server. The RIL will then take the value from these system properties and use in its messages to the framework, indicating which DNS servers to use. Test: run cts -m CtsNetTestCases -t android.net.cts.ConnectivityManagerTest#testOpenConnection BUG: 111691186 Change-Id: Ia970d2dda18c2615cacca496701c67f2066530a7
* | | | Merge "resolve merge conflicts of a3408c502312181dbe653a29ceb16819d5b51926 ↵Treehugger Robot2018-12-04131-376/+14559
|\ \ \ \ | | | | | | | | | | | | | | | to pie-gsi" into pie-gsi
| * | | | resolve merge conflicts of a3408c502312181dbe653a29ceb16819d5b51926 to pie-gsiIsaac Chen2018-12-04131-376/+14559
|/| | | | | |/ / / | | | | | | | | | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Bug: None Change-Id: Ibcd822102dbc044ac02f3792da76037924569770
| * | | Merge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-releaseBill Yi2018-11-28131-359/+14748
| |\| | | | | | | | | | | | | | Change-Id: Ie9db533b7a07e1085b177a1694799d6772f519ef
| | * | Snap for 4966094 from d9689ef63954619b589c32752a790e5336ade746 to ↵android-build-team Robot2018-08-219-90/+299
| | |\| | | | | | | | | | | | | | | | | | | | | pi-qpr1-release Change-Id: I27b2765ad56f0f96c88fe71c940e084b0b954f85
| | | * Add power service 1.1 ranchu.Haitao Shan2018-08-209-90/+299
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 79491800 Test: cts android.cts.statsd.atom.HostAtomTests#testSubsystemSleepState Change-Id: Ic15f70ef05233da051ddeb08338e31dafa55a0df
| | * | Snap for 4963492 from f891132c58fa7fc12e2c211bacc7099feafa1a9e to ↵android-build-team Robot2018-08-201-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | pi-qpr1-release Change-Id: I896fd81db1f04af13d0df74e78eaabd70c95f1d6
| | | * goldfish: disable WIFI_FEATURE_LINK_LAYER_STATSbohu2018-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are missing a few fields for this feature, disable it until we have the full support. BUG: 112202626 Test: vts still pass for wifi related modules Change-Id: Icfaf19bd993d2b367aaa1d2e1816393e6d0f8d52
| | * | Snap for 4949382 from ea960283ffe009a891275d2978545d0039d72ffa to ↵android-build-team Robot2018-08-131-17/+19
| | |\| | | | | | | | | | | | | | | | | | | | | pi-qpr1-release Change-Id: Ib63b246e00179e90dcb9de9cdf7db539975b03b2
| | | * Merge "Retain GPS flags across multiple messages" into pi-devJim Kaye2018-08-101-17/+19
| | | |\
| | | | * Retain GPS flags across multiple messagesJim Kaye2018-08-101-17/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code sets flags to indicate what GPS values are present. The current code sets the flags only according to the most recent message. This change aggregates the flags, so if different message types are received, the flags indicate all the values that were received in the multiple messages. This is needed because the Emulator now sends both altitude and speed, which requires two types of messages. This CL also removes some dead code. Bug: 112259283 Test: The VtsHalGnssV1_0Target group now passes 6/6 Change-Id: Iecf710f02a2bac6740f5beff729d6da9224868bc
| | * | | Snap for 4945494 from 4bb7aab6d191052e075e402229b3ad671febc028 to ↵android-build-team Robot2018-08-103-8/+21
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | pi-qpr1-release Change-Id: I0a7d4722dc3cd07c5a489dfde3334aff63f0af77
| | | * | Merge "Cleanup some compiler warnings in driver_cmd_nl80211.c." into pi-devMatt Wachowski2018-08-091-7/+18
| | | |\ \
| | | | * | Cleanup some compiler warnings in driver_cmd_nl80211.c.Matt Wachowski2018-08-091-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: b/80194417 Test: Recompile to assert warnings are gone. Change-Id: I80141b3105765b226211f78c6b748b0ac894a682
| | | * | | Merge "Return the auth status as the error code for +CSIM" into pi-devTreeHugger Robot2018-08-091-1/+1
| | | |\ \ \
| | | | * | | Return the auth status as the error code for +CSIMRoman Kiryanov2018-08-081-1/+1
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ril_service.cpp expects the error to be received as the error code instead of the auth status. Bug: 110212792 Test: ./android-vts/tools/vts-tradefed run vts -m VtsHalRadioV1_0Target \ -t VtsHalRadioV1_0Target#RadioHidlTest.requestIccSimAuthentication_64bit Signed-off-by: Roman Kiryanov <rkir@google.com> Change-Id: I4301979c929d54b091851326769f422974555cff
| | | * / / Create a dummy USB gadget for sysfs tests.Kenneth Magic2018-08-081-0/+2
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VTS has test cases for the sysfs interface around USB gadgets. As the emulator does not function as a USB gadget, creating a dummy one is the simplest mechanism to enable the sysfs testing. Bug: 110558638 Test: run vts -m VtsKernelApiSysfsTest Change-Id: I87e0d0174bb49b0694ae2704134635d3c3c5ec6c`
| | * | | Snap for 4937098 from a156b590429ad544a35c46993d24bb048b7299f7 to ↵android-build-team Robot2018-08-072-2/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | pi-qpr1-release Change-Id: If74b290cc0168f36633f0c7b8da61f0c59e2b0cf
| | | * | Merge "Pass the size of the vatiable instead of a pointer to it" into pi-devTreeHugger Robot2018-08-061-1/+1
| | | |\ \
| | | | * | Pass the size of the vatiable instead of a pointer to itRoman Kiryanov2018-08-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RIL_onRequestComplete(t, RIL_E_SUCCESS, &session_id, sizeof(&session_id)) passes size of a pointer to session_id instead of size of session_id. Bug: 112142343 Test: make -j50 Change-Id: I36db293b793ac569631e2407483326a5a004ebe0 Signed-off-by: Roman Kiryanov <rkir@google.com>
| | | * | | Reserve 128MB for critical system components.Weilun Du2018-08-061-1/+1
| | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We recently created a new GID that can be granted to critical system processes, so that the system is usable enough for the user to free up disk space used by abusive apps. 128MB ought to be enough for anybody. Test: run cts -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest#testVerify BUG: 112239816 Change-Id: I061cb365cfbdcdbc833106d81db60e5e36d613e5 Signed-off-by: Weilun Du <wdu@google.com>
| | * | | Snap for 4930082 from ee28af438c5a4a1e50c4f97a283edaac1665f02c to ↵android-build-team Robot2018-08-034-7/+8
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | pi-qpr1-release Change-Id: Iff34491f243122475e90cac38d1b8b1ab2f37b76
| | | * | goldfish: re-enable shipping api levelbohu2018-08-023-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For x86 and x86_64 aosp/sdk images only This wont impact wear and other products that only include emulator.mk BUG: 111989951 Change-Id: Ie68a4f3683aa1c152aa058a48392038aaf7b09d8 Merged-In: Ie68a4f3683aa1c152aa058a48392038aaf7b09d8
| | | * | Merge "Fix sanity check for configureStream." into pi-devHuan Song2018-08-021-5/+4
| | | |\ \ | | | | |/ | | | |/|
| | | | * Fix sanity check for configureStream.huans2018-08-011-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug: 111658209 Test: run vts -m VtsHalCameraProviderV2_4Target Change-Id: I0ca633510a525368d5a2b0277b265ec141505d2f
| | * | | Snap for 4927333 from 543816812430b72b898371c2e345438d0a08a7a7 to ↵android-build-team Robot2018-08-022-2/+10
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | pi-qpr1-release Change-Id: I4af83a411653d73fb70a50acdb52ea3d0cb3800e
| | | * | goldfish: allow emulator to suspendbohu2018-08-011-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we install an emulator_wake_lock to prevent it from being suspended, and that is the right behavior for most cases. However, sometime we do want the emualtor to suspend (such as doing sensor verifier tests). This cl will skip installing the emualtor_wake_lock if -qemu -append qemu.allowsuspend=1 is given. The default behavior is unchanged. BUG: 112074471 Change-Id: I5bcdd4d4394f6c15fd15c78603c0a52c0d46c777
| | | * | sensor: use CLOCK_BOOTTIME in clock_gettimebohu2018-08-011-1/+1
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As required by cts verifier. BUG: 65366251 Change-Id: I3375501fb188442af12f0544db0e0be325356595 (cherry picked from commit 3561313901558b9508f2dc7af4a0ba97798c2971) (cherry picked from commit 28e4bcaa88853a8fb0620f2787e2ae7eb0f5527e)
| | * | Snap for 4924178 from 58b29027df7586aebdc37f92e8e54ffabdc06c71 to ↵android-build-team Robot2018-08-011-1/+1
| | |\| | | | | | | | | | | | | | | | | | | | | pi-qpr1-release Change-Id: I78296ce20aa1e84ac9271df36564f455e017ba00
| | | * Merge "Revert "set first shipping api to 28"" into pi-devBo Hu2018-07-311-2/+1
| | | |\
| | | | * Revert "set first shipping api to 28"Bo Hu2018-07-311-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 5cd78d29de9390720948f96d6822ee47ad455c37. BUG: 111989951 Reason for revert: broke wear build Change-Id: I9a902202dc98b5d0c1e72729ca16885fb2f9b400
| | | * | Merge "set first shipping api to 28" into pi-devTreeHugger Robot2018-07-311-1/+2
| | | |\|
| | | | * set first shipping api to 28bohu2018-07-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To fix fingerprint selinux errors BUG: 111989951 Change-Id: Iffc8265577bdc636ab8e00ee8603afad44a5e452
| | | * | Merge "Change category name for Emulator cutout emulation" into pi-devJim Kaye2018-07-311-1/+1
| | | |\ \ | | | | |/ | | | |/|
| | | | * Change category name for Emulator cutout emulationJim Kaye2018-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The system image has some "cutout emulation" options. The Emulator added an option of its own. Give the Emulator's a different package category so the system image doesn't mention the Emulator's option under Developer Options : Drawing : Simulate a display with cutout. Fixes: 111807173 Test: Verified with Pi AVD Change-Id: Iea0b87e5fdb4373a09614dc0455bc3f49a5e386c
| | * | | Snap for 4922203 from 4a57dd62c87f3a3510d08e660bfcd63ec45997c1 to ↵android-build-team Robot2018-07-312-0/+5
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | pi-qpr1-release Change-Id: I41c2a0783621da5dafe5d38af4414a10b5357886
| | | * | Add capability MOTION TRACKING to EmulatedFakeCamera3huans2018-07-302-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Motion Tracking is a feature to track fast moving objects, which limits max exposure time to 20 ms. Bug: 111746823 Test: run cts -m CtsAppTestCases -t android.app.cts.SystemFeaturesTest#testCameraFeatures Change-Id: I4a49c940d15be9e13129788dc65d09223c19b6db
| | * | | Snap for 4916303 from c3d1532e89dd203949470be0f457afa879230293 to ↵android-build-team Robot2018-07-272-5/+2
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | pi-qpr1-release Change-Id: I0bea200cd7d6d130f557e23fd242d8bd00527c29