30afda71c0
In previous implementation, userdebug sepoilcy and property files are loaded from the system.img. This CL changes this to: - first-stage init copies userdebug files from ramdisk to /debug_ramisk/* - second-stage init loads files from /debug_ramdisk/*. Note: same as before, the above can only be triggered, if the device is UNLOCKED With this, we don't have to put userdebug related files into the USER system.img. Bug: 126493225 Test: boot device with a ramdisk with /force_debuggable, checks related files are loaded Change-Id: I63f5f846e82ba78427062bf7615c26173878d8f3
26 lines
888 B
C++
26 lines
888 B
C++
/*
|
|
* Copyright (C) 2019 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace android {
|
|
namespace init {
|
|
|
|
constexpr const char kDebugRamdiskProp[] = "/debug_ramdisk/adb_debug.prop";
|
|
constexpr const char kDebugRamdiskSEPolicy[] = "/debug_ramdisk/userdebug_plat_sepolicy.cil";
|
|
|
|
} // namespace init
|
|
} // namespace android
|