Commit Graph

51250 Commits

Author SHA1 Message Date
Josh Gao f46ca64f08 adb: fdevent: delete FDE_CREATED.
am: e546f6816e

Change-Id: I3f89664e32fe80af05e5ebc35d333533bfd97745
2019-07-09 13:37:32 -07:00
Josh Gao 3f06c2ba19 adb: fdevent: move run queue to fdevent_context.
am: 95eef6b097

Change-Id: I131984a407220281364c016f832aef45e0f9a457
2019-07-09 13:37:20 -07:00
Josh Gao 8935c1c89f adb: implement fdevent_reset by constructing a new context.
am: 7adca93fe9

Change-Id: Iefd84fb5453ed757feb3b8431c7b31f99e39541e
2019-07-09 13:36:59 -07:00
Josh Gao e62c2c2485 adb: move fdevent implementation out to a separate file.
am: 95068bbd9a

Change-Id: I4000e495ab9f73863fa7cf8ce5d4742e43a4b020
2019-07-09 13:36:44 -07:00
Josh Gao b0168bcb04 adb: de-globalize fdevent context.
am: c2cf121174

Change-Id: Ic01cd85b2742ff73399007431f696b0dc372ef50
2019-07-09 13:36:04 -07:00
Josh Gao 261569d533 adb: move fdevent to its own folder.
am: 57e09b16ca

Change-Id: I1f9e0da9a94c8889c378e8ca9dd9b37a48dca58b
2019-07-09 13:35:38 -07:00
Josh Gao 4158a6714b [automerger skipped] adb: add superfluous include.
am: 2d03ad42ed -s ours
am skip reason: change_id If73b81ca73ba4d64763cf49c1bbe42de81fa1cb6 with SHA1 7eeda6ba03 is in history

Change-Id: I2b27aba4467f21ceb4f198c69fdbdc099e66f194
2019-07-09 13:35:12 -07:00
Tom Cherry a61745dea7 Merge "Fix a few clang-tidy issues and add NOLINT for others"
am: 343ce615cf

Change-Id: I9869be98a5c4668b935a4f50a5636b8ea1b9392c
2019-07-09 10:26:41 -07:00
Tom Cherry 343ce615cf Merge "Fix a few clang-tidy issues and add NOLINT for others" 2019-07-09 17:04:22 +00:00
Tom Cherry 247ffbf314 Fix a few clang-tidy issues and add NOLINT for others
android-base:
* Add NOLINT for expanding namespace std for std::string* ostream
  overload

libdm:
* Fix missing parentesis around macro parameters

init:
* Fix missing CLOEXEC usage and add NOLINT for the intended
  usages.
* Fix missing parentesis around macro parameters
* Fix erase() / remove_if() idiom
* Correctly specific unsigned char when intended
* 'namespace flags' should be signed, since 'flags' it signed for
  clone()
* Add clear to property restore vector<string> to empty after move
* Explicit comparison against 0 for strcmp

Test: build
Change-Id: I8c31dafda2c43ebc5aa50124cbbd6e23ed2c4101
2019-07-09 16:17:36 +00:00
Elliott Hughes 17d0220ec3 Merge "toolbox: drop NetBSD grep for toybox grep."
am: 0e04ce98ef

Change-Id: I67b27706330b5f9c14de41ec585e9dc90d70603e
2019-07-09 08:59:29 -07:00
Elliott Hughes 0e04ce98ef Merge "toolbox: drop NetBSD grep for toybox grep." 2019-07-09 15:38:48 +00:00
Justin Yun 6069891e84 Merge "Rename product_services to system_ext"
am: 5ffffb4f30

Change-Id: I4bdddd6074461f1db7f6be85120ad5f32f45fbb3
2019-07-09 02:15:04 -07:00
Treehugger Robot 5ffffb4f30 Merge "Rename product_services to system_ext" 2019-07-09 08:58:04 +00:00
Justin Yun 5d0ac62995 Rename product_services to system_ext
Update adb, fastboot and mount point

Bug: 134359158
Test: build and check if system_ext.img can be flashed
Change-Id: I6219f72242c5fe42a508008c0b1fd218d74da5b6
2019-07-09 08:56:53 +00:00
Steven Moreland 3c57b7f3a3 Merge "logcat: add 'kernel' to defaults"
am: c7fe1552d5

Change-Id: I34b95bbe4f2beba571b43c1c5785ac94842e49af
2019-07-08 19:31:25 -07:00
liyong 401cc57516 Merge "Fix unsigned type sub overflow issue when isntall DSU"
am: 747aa9a49b

Change-Id: I3e3db3453d3018939bdbf0ee40e4dde2efdc08bc
2019-07-08 19:30:49 -07:00
Treehugger Robot c7fe1552d5 Merge "logcat: add 'kernel' to defaults" 2019-07-09 02:09:31 +00:00
Treehugger Robot 747aa9a49b Merge "Fix unsigned type sub overflow issue when isntall DSU" 2019-07-09 01:54:43 +00:00
Jooyung Han a556a51bd3 Merge "init: fix to avoid loading apex *.rc files twice"
am: 3d3f24bc22

Change-Id: Ie48001976f740120621977bec5c58de6a2d827b2
2019-07-08 18:19:57 -07:00
Josh Gao e546f6816e adb: fdevent: delete FDE_CREATED.
All fdevents must be created by fdevent_create/fdevent_context::Create
now, so this flag is meaningless.

Test: none
Change-Id: I8489afad07bdb267ddfdb0dbb25d40d3a62f55f6
2019-07-08 18:05:55 -07:00
Josh Gao 95eef6b097 adb: fdevent: move run queue to fdevent_context.
Make the run queue logic reusable between implementations of fdevent by
moving it to the abstract base class.

Test: adb_test
Change-Id: If2f72e3ddc8007304bca63aa75446fa117267b25
2019-07-08 18:05:47 -07:00
Treehugger Robot 3d3f24bc22 Merge "init: fix to avoid loading apex *.rc files twice" 2019-07-09 00:37:31 +00:00
Josh Gao 7adca93fe9 adb: implement fdevent_reset by constructing a new context.
Test: adb_test
Change-Id: Ie67afafe2b73fb2a8fc08568560adac6f456eb9a
2019-07-08 17:32:14 -07:00
Alex Buynytskyy 339fcd996a Merge "Refactorings to match adb_abb to adb_shell code."
am: 463773b733

Change-Id: Ia4724a38e8474bbae94c640ccd9cb3cf7d8f1915
2019-07-08 17:19:47 -07:00
Steve Muckle 69f21111da Merge "first_stage_init: add console"
am: ee148dd9c1

Change-Id: I4007ec88c0286c44263399880a645c371d853773
2019-07-08 17:18:23 -07:00
Christopher Ferris d460e78d87 Merge "Fix error printing code."
am: b0c5cd27a1

Change-Id: I2b81c0eaf3724807731644f0bef17c9d84766988
2019-07-08 17:13:32 -07:00
Josh Gao 95068bbd9a adb: move fdevent implementation out to a separate file.
Test: mma
Change-Id: I8af945b9ae0accac75fa93c538e44cbab357bb5d
2019-07-08 16:03:27 -07:00
Steven Moreland fe535f5e68 logcat: add 'kernel' to defaults
I'm asked at least once a week or more why a new service isn't starting.
Usually, the reason is that "File ... has incorrect label or no domain
transition from ... to another SELinux domain defined. ..." from init.
Even in permissive mode, this is required.

Bug: 63014404
Test: boot, check logcat
Change-Id: I7244a56fc46f84e9592e1eccf2d23461691965b3
2019-07-08 15:59:25 -07:00
Treehugger Robot 463773b733 Merge "Refactorings to match adb_abb to adb_shell code." 2019-07-08 22:17:42 +00:00
Treehugger Robot ee148dd9c1 Merge "first_stage_init: add console" 2019-07-08 22:14:52 +00:00
Christopher Ferris b0c5cd27a1 Merge "Fix error printing code." 2019-07-08 21:46:44 +00:00
Josh Gao c2cf121174 adb: de-globalize fdevent context.
Test: adb_test
Test: adbd_test
Change-Id: If711257d831b9090b38412821466c1d358d53d2d
2019-07-08 14:37:27 -07:00
Josh Gao 57e09b16ca adb: move fdevent to its own folder.
Preparatory refactoring for platform-specific implementations.

Test: mma
Change-Id: I0f600122ac89241788c5f3300f362fd9ef02ddcd
2019-07-08 14:37:27 -07:00
Josh Gao 2d03ad42ed adb: add superfluous include.
Resolve a merge conflict between internal and aosp by making aosp look
like internal.

Test: none
Change-Id: I7bea6ab61ad45ff20a3d07abf3f73903a7c05585
Merged-In: If73b81ca73ba4d64763cf49c1bbe42de81fa1cb6
2019-07-08 14:37:27 -07:00
Elliott Hughes 63b07755c7 toolbox: drop NetBSD grep for toybox grep.
Test: toybox grep tests
Change-Id: Ifb99980cc4d0a4d843a82671b2e2eaad67829e5c
2019-07-08 14:29:12 -07:00
Alex Buynytskyy cc2f124070 Refactorings to match adb_abb to adb_shell code.
Test: Build, flash and boot, use `adb abb` to verify

Change-Id: I30eb6e8a4fd43b1548a9398376c72e2cb31223a4
2019-07-08 18:30:26 +00:00
Steven Moreland 68bb9b4c3d Merge "Remove utf32 functions."
am: 4e6275ddaf

Change-Id: Ib9ad04984a017d21d23d43ede8cf4f579ffc0bcb
2019-07-08 10:14:32 -07:00
Steven Moreland 4e6275ddaf Merge "Remove utf32 functions." 2019-07-08 17:02:10 +00:00
Steve Muckle d75f30a4f0 first_stage_init: add console
Start and wait on a console if androidboot.first_stage_console=1 is
present on the kernel command line. This only works on eng and
userdebug builds.

Change-Id: I978e9390a89509431b399ea58b284736b27eeb1b
2019-07-08 09:33:24 -07:00
Jooyung Han 9c4fa66706 init: fix to avoid loading apex *.rc files twice
Test: adb shell dmesg | grep "init: Parsing file /apex"
 shows a single entry for each APEX'es *rc file

Change-Id: I9006cc3d0cb7bdfe7532279f29d8095b7d16a807
2019-07-05 11:22:18 +09:00
liyong 089941c800 Fix unsigned type sub overflow issue when isntall DSU
writer->size() is block size aligned and could be bigger than remaining_bytes
If remaining_bytes is bigger, set remaining_bytes to 0 to avoid sub overflow error.

Bug: 136727859
Test: Successfully install a DSU
Change-Id: If493b0f206561239caec2ee234f7cfd70bf927a7
2019-07-04 11:29:19 +00:00
Steven Moreland 0e19f3b4cc Remove utf32 functions.
These don't appear to be used by anything.

Bug: N/A
Test: binary inspection + code inspection
Change-Id: I6c12db26c320a66bcf6e28618c6e9f61b40d985e
2019-07-02 18:15:03 -07:00
Tom Cherry 48cb3a2cd6 Merge "Add android::base::GetPids() function to return all pids"
am: c538656d7d

Change-Id: I6320ed7db39a62cdaf7e78423f9a2ebb9a558b27
2019-07-02 15:14:35 -07:00
Tom Cherry c538656d7d Merge "Add android::base::GetPids() function to return all pids" 2019-07-02 17:04:08 +00:00
TreeHugger Robot 12684d7475 Merge "DO NOT MERGE - Merge qt-dev-plus-aosp-without-vendor (5699924) into stage-aosp-master" into stage-aosp-master 2019-07-02 07:41:17 +00:00
David Anderson 106ee9fc80 Merge "fastboot: add a wipe-super command."
am: e5815ca19a

Change-Id: I6c41e2ea097ef22dd9676193ad58737dcd3e0bdb
2019-07-01 18:46:59 -07:00
David Anderson e5815ca19a Merge "fastboot: add a wipe-super command." 2019-07-02 00:54:17 +00:00
Tom Cherry 4324ba0b4a Merge "Revert "Modularize logd.""
am: ab80b02493

Change-Id: I512ef494c62a648c3550484a9856714d266b4b01
2019-07-01 17:44:49 -07:00
Tom Cherry ab80b02493 Merge "Revert "Modularize logd."" 2019-07-01 23:28:29 +00:00