Skip to content

Files

Latest commit

author
Armando Conga
Feb 17, 2021
b526204 · Feb 17, 2021

History

History
68 lines (47 loc) · 1.57 KB

adb-without-password.md

File metadata and controls

68 lines (47 loc) · 1.57 KB

ADB shell without password

For the Cecotec Conga models 3090, 3290, 3390, 3490, 3590, 3690, 3790 & 4090 it's possible to change the original adb shell login script1 to avoid any password request at all.

Requirements

  • a Conga 3x90 or 4090 model (of course!)
  • a USB to microUSB cable
  • a computer with ADB installed (guide)

Procedure

1. Create a new ADB shell script

Edit a new adb_shell script file with the following contents:

#!/bin/sh
export ENV='/etc/adb_profile'
exec /bin/sh "$@"

and change its attributes to be rwxrw-rw-:

PC:~ armando$ chmod 755 adb_shell

2. Change the old shell by the new one

Connect your Conga to your PC using the micro-usb conector in the front (the one bellow the rubber-tap):

frontal usb port

and execute the following commands:

PC:~ armando$ adb pull /bin/adb_shell adb_shell.original # create a backup of the original file
PC:~ armando$ adb push -a adb_shell /bin/adb_shell

3. Check your passwordless access

If everything was ok, you can now execute the following command

PC:~ armando$ adb shell

and you'll get a root-console session directly (without typing any password)

Tina-Linux

Notes:

Footnotes

  1. Original adb shell script /bin/adb_shell:

    #!/bin/sh
    export ENV='/etc/adb_profile'
    if [ $1 = '-' ];then
    	/bin/login
    elif [ $1 = '-c' ];then
    	/bin/login -c "$2"
    else
    	/bin/login
    fi