I'm sorry, I was confused. I thought fin had made a script for Linux. Open the .bat file and copy and paste the adb commands
Well...he did, I had to go back and look at his site once more and found the linux all in one there....only problem is this is what I get:
Code:
~/Downloads/Phone root fix files/Start Here$ sudo ./linux.sh
Pushing CWM Touch to Phone
3651 KB/s (16777216 bytes in 4.487s)
Rebooting device
Waiting for device to reboot
Pushing Exploit
Rebooting device again
: not found 16: ./linux.sh: echo
Waiting for device to reboot
Installing Root Files
mounting phone file systems read-write
Android Debug Bridge version 1.0.29
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <serial number> - directs command to the USB device or emulator with
the given serial number. Overrides ANDROID_SERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devices.
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
- write an archive of the device's data to <file>.
If no -f option is supplied then the data is written
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-shared|-noshared enable/disable backup of the device's
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages...> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)
adb restore <file> - restore device contents from the <file> backup archive
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition
is updated.
environmental variables:
ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.
removing etc/install-recovery.sh
, Read-only file systemtc/install-recovery.sh
removing recovery-from-boot.p
, Read-only file systemecovery-from-boot.p
pushing su package to bin on phone
': Read-only file system/system/bin/su
changing permissions for su
: No such file or directory/su
creating a link to su in xbin
link failed Read-only file system
pushing busybox package to phone
': Read-only file system to '/system/xbin/busybox
changing permissions for busybox
: No such file or directoryn/busybox
installing busybox on phone
/[: No such file or directory
/[[: No such file or directory
/acpid: No such file or directory
/addgroup: No such file or directory
/adduser: No such file or directory
/adjtimex: No such file or directory
/arp: No such file or directory
/arping: No such file or directory
/ash: No such file or directory
/awk: No such file or directory
/basename: No such file or directory
/beep: No such file or directory
/blkid: No such file or directory
/bootchartd: No such file or directory
/brctl: No such file or directory
/bunzip2: No such file or directory
/bzcat: No such file or directory
/bzip2: No such file or directory
/cal: No such file or directory
/cat: No such file or directory
/catv: No such file or directory
/chat: No such file or directory
/chattr: No such file or directory
/chgrp: No such file or directory
/chmod: No such file or directory
/chown: No such file or directory
/chpasswd: No such file or directory
/chpst: No such file or directory
/chroot: No such file or directory
/chrt: No such file or directory
/chvt: No such file or directory
/cksum: No such file or directory
/clear: No such file or directory
/cmp: No such file or directory
/comm: No such file or directory
/cp: No such file or directory
/cpio: No such file or directory
/crond: No such file or directory
/crontab: No such file or directory
/cryptpw: No such file or directory
/cttyhack: No such file or directory
/cut: No such file or directory
/date: No such file or directory
/dc: No such file or directory
/dd: No such file or directory
/deallocvt: No such file or directory
/delgroup: No such file or directory
/deluser: No such file or directory
/depmod: No such file or directory
/devmem: No such file or directory
/df: No such file or directory
/dhcprelay: No such file or directory
/diff: No such file or directory
/dirname: No such file or directory
/dmesg: No such file or directory
/dnsd: No such file or directory
/dnsdomainname: No such file or directory
/dos2unix: No such file or directory
/du: No such file or directory
/dumpkmap: No such file or directory
/dumpleases: No such file or directory
/echo: No such file or directory
/ed: No such file or directory
/egrep: No such file or directory
/eject: No such file or directory
/env: No such file or directory
/envdir: No such file or directory
/envuidgid: No such file or directory
/ether-wake: No such file or directory
/expand: No such file or directory
/expr: No such file or directory
/fakeidentd: No such file or directory
/false: No such file or directory
/fbset: No such file or directory
/fbsplash: No such file or directory
/fdflush: No such file or directory
/fdformat: No such file or directory
/fdisk: No such file or directory
/fgconsole: No such file or directory
/fgrep: No such file or directory
/find: No such file or directory
/findfs: No such file or directory
/flock: No such file or directory
/fold: No such file or directory
/free: No such file or directory
/freeramdisk: No such file or directory
/fsck: No such file or directory
/fsck.minix: No such file or directory
/fsync: No such file or directory
/ftpd: No such file or directory
/ftpget: No such file or directory
/ftpput: No such file or directory
/fuser: No such file or directory
/getopt: No such file or directory
/getty: No such file or directory
/grep: No such file or directory
/gunzip: No such file or directory
/gzip: No such file or directory
/halt: No such file or directory
/hd: No such file or directory
/hdparm: No such file or directory
/head: No such file or directory
/hexdump: No such file or directory
/hostid: No such file or directory
/hostname: No such file or directory
/httpd: No such file or directory
/hush: No such file or directory
/hwclock: No such file or directory
/id: No such file or directory
/ifconfig: No such file or directory
/ifdown: No such file or directory
/ifenslave: No such file or directory
/ifplugd: No such file or directory
/ifup: No such file or directory
/inetd: No such file or directory
/init: No such file or directory
/insmod: No such file or directory
/install: No such file or directory
/ionice: No such file or directory
/ip: No such file or directory
/ipaddr: No such file or directory
/ipcalc: No such file or directory
/ipcrm: No such file or directory
/ipcs: No such file or directory
/iplink: No such file or directory
/iproute: No such file or directory
/iprule: No such file or directory
/iptunnel: No such file or directory
/kbd_mode: No such file or directory
/kill: No such file or directory
/killall: No such file or directory
/killall5: No such file or directory
/klogd: No such file or directory
/last: No such file or directory
/length: No such file or directory
/less: No such file or directory
/linux32: No such file or directory
/linux64: No such file or directory
/linuxrc: No such file or directory
/ln: No such file or directory
/loadfont: No such file or directory
/loadkmap: No such file or directory
/logger: No such file or directory
/login: No such file or directory
/logname: No such file or directory
/logread: No such file or directory
/losetup: No such file or directory
/lpd: No such file or directory
/lpq: No such file or directory
/lpr: No such file or directory
/ls: No such file or directory
/lsattr: No such file or directory
/lsmod: No such file or directory
/lspci: No such file or directory
/lsusb: No such file or directory
/lzcat: No such file or directory
/lzma: No such file or directory
/lzop: No such file or directory
/lzopcat: No such file or directory
/makedevs: No such file or directory
/makemime: No such file or directory
/man: No such file or directory
/md5sum: No such file or directory
/mdev: No such file or directory
/mesg: No such file or directory
/microcom: No such file or directory
/mkdir: No such file or directory
/mkdosfs: No such file or directory
/mke2fs: No such file or directory
/mkfifo: No such file or directory
/mkfs.ext2: No such file or directory
/mkfs.minix: No such file or directory
/mkfs.vfat: No such file or directory
/mknod: No such file or directory
/mkpasswd: No such file or directory
/mkswap: No such file or directory
/mktemp: No such file or directory
/modinfo: No such file or directory
/modprobe: No such file or directory
/more: No such file or directory
/mount: No such file or directory
/mountpoint: No such file or directory
/mt: No such file or directory
/mv: No such file or directory
/nameif: No such file or directory
/nc: No such file or directory
/netstat: No such file or directory
/nice: No such file or directory
/nmeter: No such file or directory
/nohup: No such file or directory
/nslookup: No such file or directory
/ntpd: No such file or directory
/od: No such file or directory
/openvt: No such file or directory
/passwd: No such file or directory
/patch: No such file or directory
/pgrep: No such file or directory
/pidof: No such file or directory
/ping: No such file or directory
/ping6: No such file or directory
/pipe_progress: No such file or directory
/pivot_root: No such file or directory
/pkill: No such file or directory
/popmaildir: No such file or directory
/poweroff: No such file or directory
/printenv: No such file or directory
/printf: No such file or directory
/ps: No such file or directory
/pscan: No such file or directory
/pwd: No such file or directory
/raidautorun: No such file or directory
/rdate: No such file or directory
/rdev: No such file or directory
/readahead: No such file or directory
/readlink: No such file or directory
/readprofile: No such file or directory
/realpath: No such file or directory
/reboot: No such file or directory
/reformime: No such file or directory
/renice: No such file or directory
/reset: No such file or directory
/resize: No such file or directory
/rev: No such file or directory
/rm: No such file or directory
/rmdir: No such file or directory
/rmmod: No such file or directory
/route: No such file or directory
/rpm: No such file or directory
/rpm2cpio: No such file or directory
/rtcwake: No such file or directory
/run-parts: No such file or directory
/runlevel: No such file or directory
/runsv: No such file or directory
/runsvdir: No such file or directory
/rx: No such file or directory
/script: No such file or directory
/scriptreplay: No such file or directory
/sed: No such file or directory
/sendmail: No such file or directory
/seq: No such file or directory
/setarch: No such file or directory
/setconsole: No such file or directory
/setfont: No such file or directory
/setkeycodes: No such file or directory
/setlogcons: No such file or directory
/setsid: No such file or directory
/setuidgid: No such file or directory
/sh: No such file or directory
/sha1sum: No such file or directory
/sha256sum: No such file or directory
/sha512sum: No such file or directory
/showkey: No such file or directory
/slattach: No such file or directory
/sleep: No such file or directory
/smemcap: No such file or directory
/softlimit: No such file or directory
/sort: No such file or directory
/split: No such file or directory
/start-stop-daemon: No such file or directory
/stat: No such file or directory
/strings: No such file or directory
/stty: No such file or directory
/su: No such file or directory
/sulogin: No such file or directory
/sum: No such file or directory
/sv: No such file or directory
/svlogd: No such file or directory
/swapoff: No such file or directory
/swapon: No such file or directory
/switch_root: No such file or directory
/sync: No such file or directory
/sysctl: No such file or directory
/syslogd: No such file or directory
/tac: No such file or directory
/tail: No such file or directory
/tar: No such file or directory
/tcpsvd: No such file or directory
/tee: No such file or directory
/telnet: No such file or directory
/telnetd: No such file or directory
/test: No such file or directory
/tftp: No such file or directory
/tftpd: No such file or directory
/time: No such file or directory
/timeout: No such file or directory
/top: No such file or directory
/touch: No such file or directory
/tr: No such file or directory
/traceroute: No such file or directory
/traceroute6: No such file or directory
/true: No such file or directory
/tty: No such file or directory
/ttysize: No such file or directory
/tunctl: No such file or directory
/udhcpc: No such file or directory
/udhcpd: No such file or directory
/udpsvd: No such file or directory
/umount: No such file or directory
/uname: No such file or directory
/unexpand: No such file or directory
/uniq: No such file or directory
/unix2dos: No such file or directory
/unlzma: No such file or directory
/unlzop: No such file or directory
/unxz: No such file or directory
/unzip: No such file or directory
/uptime: No such file or directory
/usleep: No such file or directory
/uudecode: No such file or directory
/uuencode: No such file or directory
/vconfig: No such file or directory
/vi: No such file or directory
/vlock: No such file or directory
/volname: No such file or directory
/wall: No such file or directory
/watch: No such file or directory
/watchdog: No such file or directory
/wc: No such file or directory
/wget: No such file or directory
/which: No such file or directory
/who: No such file or directory
/whoami: No such file or directory
/xargs: No such file or directory
/xz: No such file or directory
/xzcat: No such file or directory
/yes: No such file or directory
/zcat: No such file or directory
/zcip: No such file or directory
pushing superuser to phone
failed to copy 'Superuser.apk' to '/system/app/Superuser.apk': Read-only file system
adding blocking hosts file
./linux.sh: 63: ./linux.sh: Syntax error: Unterminated quoted string
And no audio at all. None through the earpiece or through the phone speaker.
First time I did this, I did the vol dn + pwr and wiped back to stock and got sound back.
Had to leave to pick up the wife and then I came back home to try again....same result even after killing and restarting the adb server
He also has the files in separate tar zip files as well...which is what I originally tried. We will call these Here first and Here Second
The Root tar is Here first and the CMW fix is Here Second
Thinking that the cmw img is a problem I started with Here Second
It complained about no abd....knowing what I have learned, I checked the folder and yes...no abd...I have the SDK kit with abd so I copied it over to Here Second and no complaints about abd but no fix either...
Deciding that that was not the problem, I started with Here first and did the linux.sh command to run it...
This time...no fix...but I do have audio back.
The following are the terminal outputs for Here first and the Here Second these are the folders that I unzipped the tars to.
Here first:
Code:
~/Downloads/Phone root fix files/Here first$ ./adb devices
List of devices attached
LGOTMS589b91 device
rich@HP-Laptop:~/Downloads/Phone root fix files/Here first$ sudo ./adb kill-server
rich@HP-Laptop:~/Downloads/Phone root fix files/Here first$ sudo ./adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
rich@HP-Laptop:~/Downloads/Phone root fix files/Here first$ ./linux.sh
Pushing Exploit
Rebooting device again
./linux.sh: line 6: $'echo\r': command not found
Waiting for device to reboot
Installing Root Files
mounting phone file systems read-write
Android Debug Bridge version 1.0.29
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s <serial number> - directs command to the USB device or emulator with
the given serial number. Overrides ANDROID_SERIAL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devices.
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories)
adb bugreport - return all information from the device
that should be included in a bug report.
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
- write an archive of the device's data to <file>.
If no -f option is supplied then the data is written
to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-shared|-noshared enable/disable backup of the device's
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages...> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)
adb restore <file> - restore device contents from the <file> backup archive
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition
is updated.
environmental variables:
ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.
removing etc/install-recovery.sh
This script will root your LG Spectrum VS920
and will install a blocking hosts file
./linux.sh: line 16: $'echo\r': command not found
not sure if this is necessary, if things dont work,
echo take the "echo " out from the next two commands
echo -----------
echo ./adb shell "rm /system/etc/install-recovery.sh"
echo removing recovery-from-boot.p
echo ./adb shell "rm /system/recovery-from-boot.p"
echo -----------
echo pushing su package to bin on phone
./adb push su /system/bin/su
echo changing permissions for su
./adb shell "chmod 6755 /system/bin/su"
echo creating a link to su in xbin
./adb shell "ln -s /system/bin/su /system/xbin/su"
echo pushing busybox package to phone
./adb push busybox /system/xbin/busybox
echo changing permissions for busybox
./adb shell "chmod 755 /system/xbin/busybox"
echo installing busybox on phone
./adb shell "/system/xbin/busybox --install /system/xbin"
echo pushing superuser to phone
./adb push Superuser.apk /system/app/Superuser.apk
echo adding blocking hosts file
echo making a backup of the systems host file
failed on '/etc/hosts' - Read-only file system
pushing new hosts file to phone
': Read-only file systemo '/etc/hosts
changing permissions on the hosts file
Unable to chmod /etc/hosts: Read-only file system
Removing Trash
./linux.sh: line 50: $'echo\r': command not found
Finished Rooting!!!
Restarting phone one more time
Now sound is back....
Here Second:
Code:
$ ./adb devicesList of devices attached
LGOTMS589b91 device
rich@HP-Laptop:~/Downloads/Phone root fix files/Here Second$ sudo ./adb kill-server
rich@HP-Laptop:~/Downloads/Phone root fix files/Here Second$ sudo ./adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
rich@HP-Laptop:~/Downloads/Phone root fix files/Here Second$ ./linux.sh
This script will push the ClockWork Mod Touch Recovery,
insTall a blocking hosts file, and put the CWM Boot loop
fix on your SD card.
./linux.sh: line 4: $'echo\r': command not found
Pushing CWM Touch to Phone
4420 KB/s (16777216 bytes in 3.706s)
Rebooting device
Waiting for device to reboot
./linux.sh: line 14: $'echo\r': command not found
adding blocking hosts file
./linux.sh: line 16: unexpected EOF while looking for matching `''
./linux.sh: line 37: syntax error: unexpected end of file
Notice in both, adb sees the device, we kill and reboot the server before executing ./linux.sh
Sooooooo What to do now?
Can you possibly modify your bat file with the commands needed and just send that back my way? Or is there another way?
I know adb is apparantly working is the issue getting cwm to run on the phone? I know it is not there because it doesn't show up....
Are we back to dd of the cwm img? If so, what causes it to run when prompted by Quick Boot?
Lemmie know
Rich