Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a8576c0 authored by Jiyong Park's avatar Jiyong Park Committed by android-build-merger
Browse files

Recovery partition has same layout as system am: 2e674317

am: eb946e12

Change-Id: I2b6d67d048c2b97ad22a9b3ab800713f9e7c25ea
parents dcbe39e4 eb946e12
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -950,7 +950,8 @@ func PathForModuleInstall(ctx ModuleInstallPathContext, pathComponents ...string
		if ctx.InstallInData() {
			partition = "data"
		} else if ctx.InstallInRecovery() {
			partition = "recovery/root"
			// the layout of recovery partion is the same as that of system partition
			partition = "recovery/root/system"
		} else if ctx.SocSpecific() {
			partition = ctx.DeviceConfig().VendorPath()
		} else if ctx.DeviceSpecific() {
+0 −5
Original line number Diff line number Diff line
@@ -357,11 +357,6 @@ func (binary *binaryDecorator) link(ctx ModuleContext,
}

func (binary *binaryDecorator) install(ctx ModuleContext, file android.Path) {
	// <recovery>/bin is a symlink to /system/bin. Recovery binaries are all in /sbin.
	if ctx.inRecovery() {
		binary.baseInstaller.dir = "sbin"
	}

	binary.baseInstaller.install(ctx, file)
	for _, symlink := range binary.Properties.Symlinks {
		binary.symlinks = append(binary.symlinks,