Tag Archives: ROOT

Termux setting path environment variable

Problem description

When using termux, it is found that the permissions are not enough by using commands. After switching to root by using Su, it is found that many previous commands cannot be used

First, echo $path to view the environment variable of root

Results: in/SBIN/Su/Su/bin/Su/xbin/system/bin/system/xbin

It is found that these three are all in the root path, without/data/data/com.termux/files/usr/bin, so the command here can’t be executed naturally

Exit switch to normal user.

Echo $path view environment variables

The value is/data/data/com. Termux/files/usr/bin/data/data/com. Termux/files/usr/bin/applets

That is to say, you just need to tell root the variables of ordinary users

Here is the solution——————————————————————————————-

In order to ensure the security of the system, the temporary variable is used to save the error

export PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH

(tell root the executable

Note that there is no space beside the equal sign, the colon in English: segmentation, the front part is the path value of ordinary users: the Lib path of ordinary users (because some commands also need the library files we download), just paste it

export LD_ LIBRARY_ PATH=/data/data/com.termux/files/usr/lib

(link LIB)

be careful!! For the sake of safety, the operation I posted is temporary. Exit will restore the original identity or turn it off or reopen it. But it’s absolutely safe.

For your convenience, you can create a script to quickly use the downloaded function.

Cd ~ (home directory)

VIM getmytermuxorders (create a file)

Enter the following:

#!/bin/bash
export PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets:$PATH
export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
echo "LYM_nb" 

: WQ save exit

Then exit returns to the original user

When you want to use the root permission again in the future:

Su or TSU comes to root

Run the source command directly in the home directory

source getMyTermuxOrders

If output lym_ NB means that all bin functions of termux have been obtained

You can also use export, echo $path, env and other commands to confirm

Nexus 5x unlock bootloader + root

The self-use test machine suddenly failed root, the network looked for a lot of tutorials, finally found a reliable tutorial, hereby record, some mobile phones may also be applicable
Kingroot has always been used for root, but this time suddenly prompted me “Need root please unlock first”
Let’s start by unlocking:
note:

Unlocking the bootloader for the first time will erase all your data.

Take a look at what it looks like ununlocked:

The unlocking steps are as follows:
1. Open the phone Settings – about the phone – click the version number 7 times to open the “Developer Options”
2. Back to the previous step, developer options – turn on USB debugging and turn on “Enable OEM Unlock”
3. Turn off your phone
4. Press and hold the power key & AMP; Volume down key, enter fastboot(Bootloader interface)
5. Connect the phone with usB-A data cable
6. Open DOS window and enter: Enter fastboot OEM unlock
If DOS prompts “not an internal or external command”, then you need to configure the environment variable
, find the path to your SDK, and add the path of platform-tools to the path
: D:\Android\ SDK \platform-tools

Because we are using the fastboot.exe execution file



Then use the volume key to select “Yes” and press the “power” button to confirm. After success, it will be displayed as follows :(the red sentence at the bottom)


At this point, it has been unlocked. After unlocking, the opening machine has this prompt, which belongs to normal:

After the completion of unlocking the root operation will be performed, the use of kingroot, 360Root and other software was unsuccessful.
root download
Unlock the original
http://tieba.baidu.com/p/4232343051