diff options
author | Bowgo Tsai <bowgotsai@google.com> | 2019-04-11 23:57:24 +0800 |
---|---|---|
committer | Bowgo Tsai <bowgotsai@google.com> | 2019-04-20 08:01:06 +0800 |
commit | 630fcdf153f2066d070c9732f12e6a234cd40582 (patch) | |
tree | 501571c8b00ba4668082b7e0de125a07c5fe9daf /rootdir | |
parent | 43ca2e9ec7ac3c361376bb0a0d8b1e4d105ac0e3 (diff) | |
download | system_core-630fcdf153f2066d070c9732f12e6a234cd40582.tar.gz system_core-630fcdf153f2066d070c9732f12e6a234cd40582.tar.bz2 system_core-630fcdf153f2066d070c9732f12e6a234cd40582.zip |
Copying debug ramdisk files to /debug_ramdisk/*
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
Merged-In: I63f5f846e82ba78427062bf7615c26173878d8f3
(cherry picked from commit 30afda71c0dac4d1d59a91b78256ebff76257ad8)
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/Android.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rootdir/Android.mk b/rootdir/Android.mk index 5d307b859..a97858a93 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -97,7 +97,7 @@ endif # # create some directories (some are mount points) and symlinks LOCAL_POST_INSTALL_CMD := mkdir -p $(addprefix $(TARGET_ROOT_OUT)/, \ - sbin dev proc sys system data odm oem acct config storage mnt apex $(BOARD_ROOT_EXTRA_FOLDERS)); \ + sbin dev proc sys system data odm oem acct config storage mnt apex debug_ramdisk $(BOARD_ROOT_EXTRA_FOLDERS)); \ ln -sf /system/bin $(TARGET_ROOT_OUT)/bin; \ ln -sf /system/etc $(TARGET_ROOT_OUT)/etc; \ ln -sf /data/user_de/0/com.android.shell/files/bugreports $(TARGET_ROOT_OUT)/bugreports; \ |