Ver Mensaje Individual
  #459  
Viejo 31/01/18, 19:59:21
Avatar de --josema--
--josema-- --josema-- no está en línea
Usuario muy activo
Mensajes: 2,471
Compra y venta: (16)
 
Fecha de registro: nov 2008
Localización: Cadiz
Mensajes: 2,471
Modelo de smartphone: Mate 7
Versión de ROM: KK 4.4.2
Tu operador: Amena
Mencionado: 11 comentarios
Tagged: 0 hilos
Cita:
Originalmente Escrito por luismax Ver Mensaje
Te pego lo que hay en el archivo que ejecuta el info.bat por si puedes reconocer el comando.

#!/bin/bash

printf "\033c" # Clear screen

# Get OS type
case "$OSTYPE" in
cygwin*)
OS=Windows
;;
linux*)
OS=Linux
;;
darwin*)
OS=OSX
;;
*)
echo "Unable to identify OS type $OSTYPE..."
echo "Press ENTER key to continue..."
read
exit
;;
esac

# Get path variables
if [ "$OS" != "Windows" ]; then
ROOTPATH=`pwd`
AWK=awk
else
ROOTPATH=`cygpath -m "$1"`
AWK=gawk
fi
cd $ROOTPATH

FASTBOOT=$ROOTPATH/../tools/fastboot.exe

### Support function

function getkeys {
read keyinput
echo $keyinput
}

function clearkeys {
while read -r -t 0; do read -r; done
}

function pause {
if [ "$1" != "" ]; then
echo $1
fi
clearkeys
echo "Press ENTER key to continue..."
read
}

function check_fastboot {
if [ "`$FASTBOOT devices 2>&1 | grep fastboot`" != "" ]; then
clearkeys
echo 1
else
echo 0
fi
}

function wait_fastboot {
while [ $(check_fastboot) -eq 0 ]
do
sleep 1
done
}

################################################## #####

### Check rootpath
if [ "`echo $ROOTPATH | grep ' '`" != "" ]; then
pause "This script does not support directory with space."
exit
fi

if [ ${#ROOTPATH} -gt 200 ]; then
pause "Path is too long, please extract script package in shorter path."
exit
fi

echo

echo
pause "Shutdown phone use vol- and usb cable to enter fastboot"
echo

echo "Wait FASTBOOT connection...."
wait_fastboot
echo

echo "Phone information: "
$FASTBOOT oem get-psid 2>&1 | grep bootloader | $AWK '{ print $2 }'
echo
echo "Lock state info: "
$FASTBOOT oem lock-state info 2>&1 | grep bootloader | $AWK -F') ' '{ print $2 }'
echo
echo "Current build number: "
$FASTBOOT oem get-build-number 2>&1 | grep bootloader | $AWK -F') ' '{ print $2 }' | sed 's/://g'
echo
echo "Product model: "
$FASTBOOT oem get-product-model 2>&1 | grep bootloader | $AWK '{ print $2 }'
echo
pause
Podrias pasarme lo que hay en el unlock.bat
Responder Con Cita