Skip to content

Commit 03d0f55

Browse files
moetayukoluk1337
authored andcommitted
Revert "init: Run vendor-specific init hooks on post-fs"
This reverts commit 6e152c2. * Breaks __system_property_update Change-Id: I2466c03837b5755befb797343ed6fb771ae7b582
1 parent 62ef77c commit 03d0f55

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

init/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,9 +496,6 @@ Commands
496496
> Loads persistent properties when /data has been decrypted.
497497
This is included in the default init.rc.
498498

499-
`vendor_load_properties`
500-
> Update with vendor-specific property runtime overrides
501-
502499
`loglevel <level>`
503500
> Sets the kernel log level to level. Properties are expanded within _level_.
504501

init/builtins.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
#include "service.h"
7373
#include "subcontext.h"
7474
#include "util.h"
75-
#include "vendor_init.h"
7675

7776
using namespace std::literals::string_literals;
7877

@@ -1059,11 +1058,6 @@ static Result<Success> do_load_system_props(const BuiltinArguments& args) {
10591058
return Success();
10601059
}
10611060

1062-
static Result<Success> do_vendor_load_properties(const BuiltinArguments& args) {
1063-
vendor_load_properties();
1064-
return Success();
1065-
}
1066-
10671061
static Result<Success> do_wait(const BuiltinArguments& args) {
10681062
auto timeout = kCommandRetryTimeout;
10691063
if (args.size() == 3) {
@@ -1227,7 +1221,6 @@ const BuiltinFunctionMap::Map& BuiltinFunctionMap::map() const {
12271221
{"interface_stop", {1, 1, {false, do_interface_stop}}},
12281222
{"load_persist_props", {0, 0, {false, do_load_persist_props}}},
12291223
{"load_system_props", {0, 0, {false, do_load_system_props}}},
1230-
{"vendor_load_properties", {0, 0, {false, do_vendor_load_properties}}},
12311224
{"loglevel", {1, 1, {false, do_loglevel}}},
12321225
{"mark_post_data", {0, 0, {false, do_mark_post_data}}},
12331226
{"mkdir", {1, 4, {true, do_mkdir}}},

init/property_service.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
#include "selinux.h"
6565
#include "subcontext.h"
6666
#include "util.h"
67+
#include "vendor_init.h"
6768

6869
using namespace std::literals;
6970

@@ -912,6 +913,9 @@ void property_load_boot_defaults(bool load_debug_prop) {
912913
}
913914
}
914915

916+
// Update with vendor-specific property runtime overrides
917+
vendor_load_properties();
918+
915919
property_initialize_ro_product_props();
916920
property_derive_build_fingerprint();
917921

rootdir/init.rc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,6 @@ on early-fs
350350
start vold
351351

352352
on post-fs
353-
vendor_load_properties
354-
355353
exec - system system -- /system/bin/vdc checkpoint markBootAttempt
356354

357355
# Once everything is setup, no need to modify /.

0 commit comments

Comments
 (0)