Tina whole blogging platform system shell before mass adb password method the
scope of application
Tina whole blogging platform system
[Symptoms]
Usually the amount of product in a safe manner postpartum wants closed adb shell, does not allow users or other developers to use, it is necessary to disable a secure manner.
[Modifications]
There is provided a way to add a password adb shell of ways to disable.
Find the shadow password management and file permissions
on Tina1.0: / package / base-file / files / etc / shadow
On Tina2.0: In addition In addition, also you need to modify the target / program name / base-file / etc / shadow
In the shadow file, usually the first line:
the root :: 0: 0: 99999: :::. 7
In the root: after the password field blank by default, the default root privileges without password
Create a password:
use the package makepasswd
Command is as follows: makepasswd --clearfrom = - --crypt-md5 <<< YourPass (Note that after the equal sign and a -)
YourPass which is a custom password
The resulting hash value of the password (note that non-plaintext) copied to the root: After saving the file
to modify adb_shell documents in the package / softwinner / adb, in the package / allwinner / adb, three scripts will tina1.0 tina 2.0 / bin / sh changed to / bin / login
in /package/base-file/files/etc/init.d/done added /etc/init.d/adbd stop command to enable adb service is disabled by default at boot time.
Execute make menuconfig, the base-system ---> busybox ----> customize busybox option ----> Login / Password Management Utilities ----> (*) login choose to compile
re-compile, execute adb shell, need root login account and password. Perform root privileges after entering.
【other methods】
In addition, there are several essential commands executed in a small machine:
/etc/init.d/adbd enable enable adb Service
/etc/init.d/adbd disable disabled adb Service
/etc/init.d/adbd start start adb Service
/etc/init.d/adbd stop stop service adb
These orders can freely mix to meet the customer wants to use a common way to disable adb such as:
Different combinations of key switches disposed password adb Service
Products through the screen with a screen switch adb Service
Adb service cloud platform verification switch
----------------
Disclaimer: This article is the original article CSDN bloggers "DOT Xiaowen brother", following the CC 4.0 by-sa copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/weixin_43094346/article/details/82714062