Ian Macdonald 2923defaea /sbin should come first in the linker search path.
/sbin must come before any other search path when TWRP is built for a
different version of Android than the one on which it will run.

Otherwise, as soon as any of the other paths becomes available via
direct action (i.e. the user mounts a file-system) or indirect action
(e.g. the user flashes a zip that mounts a file-system), incompatible
libraries will be prioritised and loaded instead of the correct ones
from /sbin in TWRP's ramdisk.

This will cause severe disruption of the TWRP environment. Toybox and
other dynamically linked binaries will immediately cease to work; and
since Toybox provides umount, it typically won't be possible to recover
from this state without a reboot.

For example, the following occurs when a Toybox applet is run on a
Samsung Galaxy S10 running Android 10, but using a version of TWRP built
for Android 9:

android:/ # getprop ro.boot.bootloader
CANNOT LINK EXECUTABLE "getprop": cannot locate symbol "_system_properties_init" referenced by "/system_root/system/lib64/libselinux.so"...
linker: CANNOT LINK EXECUTABLE "getprop": cannot locate symbol "_system_properties_init" referenced by "/system_root/system/lib64/libselinux.so"...

Change-Id: I31fe612ebb1c7d9ad71d67be2c615caa3fbb5d6f
2019-12-05 01:54:57 +01:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2017-10-11 16:56:12 -07:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2019-03-19 18:05:40 +01:00
2015-06-20 15:57:56 -05:00
2018-08-24 11:17:39 -05:00
2014-11-12 11:03:50 -06:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2017-05-10 16:11:35 -05:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2019-05-12 21:03:35 +01:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2013-09-17 20:06:14 +00:00
2015-11-05 20:58:39 +02:00
2016-02-03 16:05:56 -06:00
2018-08-24 11:17:39 -05:00
2019-05-24 16:31:09 -05:00
2018-08-24 11:17:39 -05:00
2019-05-24 16:31:09 -05:00
2017-06-17 07:05:45 -05:00
2018-08-24 11:17:39 -05:00
2017-09-08 07:14:59 -05:00
2014-11-04 15:34:19 +01:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2014-04-25 15:47:34 -07:00
2018-08-24 11:17:39 -05:00
2017-01-18 17:41:17 +01:00
2015-12-19 08:31:01 -06:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2016-03-31 15:43:53 +01:00
2016-03-31 15:43:53 +01:00
2018-08-24 11:17:39 -05:00
2017-09-08 07:14:59 -05:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2012-09-05 15:24:31 -04:00
2017-04-16 15:53:47 -07:00
2016-03-17 16:00:20 -05:00
2017-10-12 10:45:04 -07:00
2012-09-05 15:24:31 -04:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2018-08-24 11:17:39 -05:00
2017-10-05 12:02:13 -07:00
2017-10-05 12:02:13 -07:00
2017-10-11 16:56:12 -07:00
2015-01-27 15:07:19 +01:00
2015-01-27 15:07:19 +01:00
2017-01-18 20:02:43 +01:00
2017-09-08 07:14:59 -05:00
2017-09-08 07:14:59 -05:00
2017-09-08 07:14:59 -05:00
2019-03-20 10:57:07 -05:00
2017-01-18 17:41:17 +01:00
2018-08-24 11:17:39 -05:00
2019-05-16 12:11:32 -05:00
2017-09-08 07:14:59 -05:00
2017-07-06 21:53:00 +00:00
2017-10-11 16:56:12 -07:00
2017-10-05 12:02:13 -07:00
2017-10-11 16:56:12 -07:00
2017-09-08 07:14:59 -05:00
2017-09-08 07:14:59 -05:00

Team Win Recovery Project (TWRP)

You can find a compiling guide here.

S
Description
No description provided
Readme 102 MiB
Languages
C++ 50.2%
C 43.6%
Makefile 1.9%
Java 1.8%
Roff 1%
Other 1.4%