• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Linux and the AIO solution in conjunction with FINNDO77

sosaudio1

Android Enthusiast
May 15, 2012
344
34
HUNTSVILLE AL
So if you have been following some of the chatter on the One Click all in one solution regarding rooting our Spectrums in Linux. I made a sorta break thru today. In searching for the answer to this

Code:
~/Downloads/Phone root fix files/Here first$ ./adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached  ????????????    no permissions

I did a search to find out how to get that to work. Found out you have to make a UDEV file some writeups say 51 some 90 but a poster on XDA said neither worked for him he made a 99 file:

Look Here

Ubuntu No devices permission - xda-developers

running lsusb tells you the device id is 1004
Code:
lsusb

List of devices attached
LGOTMS589b91 device

now I need to figure out how to get CWM up and running along with ADB so that I can start cracking into this phone

Any help you guys can find would be awesome

Rich
 
So if you have been following some of the chatter on the One Click all in one solution regarding rooting our Spectrums in Linux. I made a sorta break thru today. In searching for the answer to this

Code:
~/Downloads/Phone root fix files/Here first$ ./adb devices * daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached  ????????????    no permissions

I did a search to find out how to get that to work. Found out you have to make a UDEV file some writeups say 51 some 90 but a poster on XDA said neither worked for him he made a 99 file:

Look Here

Ubuntu No devices permission - xda-developers

running lsusb tells you the device id is 1004
Code:
lsusb

List of devices attached
LGOTMS589b91 device

now I need to figure out how to get CWM up and running along with ADB so that I can start cracking into this phone

Any help you guys can find would be awesome

Rich

After a reboot, all you have to do is run this first in terminal, then standard adb commands will be fine.
Code:
 sudo ./adb kill-server
sudo ./adb start-server
Just make sure you use sudo on both of them
 
  • Like
Reactions: sosaudio1
Upvote 0
After a reboot, all you have to do is run this first in terminal, then standard adb commands will be fine.
Code:
 sudo ./adb kill-server
sudo ./adb start-server
Just make sure you use sudo on both of them

cool now....from there how do I get cwm to install? Should I use the adb shell and dd a cwm img....or am I missing it still....there are soooo many forums that give differing info....I believe I saw it on here before but...not 100% sure

Rich
 
Upvote 0
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
 
Upvote 0
From what I have determined the issue is that the computer is not recognizing the phone.looks like you "have" to install the java sdk and Android sdk to get the phone recognized by the computer.

Testing this tomorrow.

I think it does:

Code:
./adb devicesList of devices attached 
LGOTMS589b91    device

The way to make it recognize it is to make a UDEV for the device as noted at the top of the post
 
Upvote 0
I think it does:

Code:
./adb devicesList of devices attached 
LGOTMS589b91    device
The way to make it recognize it is to make a UDEV for the device as noted at the top of the post

To Steal from XDA and correct for the issues and our device ID:
Code:
You need to create a file named 

/etc/udev/rules.d/99-android.rules 

containing the line:

SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"

you need to be root to create the file, use 

sudo -s

to become root, then

gedit /etc/udev/rules.d/99-android.rules 

will open the new file for editing.

You'll have to reboot when done.
I haven't used sudo -s, I used sudo su and that worked as well

I also installed eclipse which someone recommended somewhere and it does install all the JDK Java you can stand LOL. I didn't install the Android SDK but I know that I can run certain codes inside the sdk to get things like adb and other tools.

Rich
 
Upvote 0
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

OK Update now!

This Worked!!!!

Here is the command output....If these are what you have, then I suggest a pause for a time to which the device registers USB debug. I took a lot of time in between reboots and such to make the next command. It may be worth it to not make an all in one script like you have now but to make a zip with folders in order.

What I did was to unzip the BAT to a folder. I placed adb inside the Files folder and from there I did every command for Rooting and then the cwm recovery. You have to be careful as you will see in the output to get the files correct as a couple commands reference doing something with the Files folder then say su for example....but I think bottom line, there needs to be more time in between the commands.

Here it is:
Code:
~/Downloads/Phone root fix files/AIO/Files$ ./adb devices
List of devices attached 
LGOTMS589b91    device

rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ adb kill-server
No command 'adb' found, did you mean:
 Command 'cdb' from package 'tinycdb' (main)
 Command 'gdb' from package 'gdb' (main)
 Command 'dab' from package 'bsdgames' (universe)
 Command 'zdb' from package 'zfs-fuse' (universe)
 Command 'kdb' from package 'elektra-bin' (universe)
 Command 'tdb' from package 'tads2-dev' (multiverse)
 Command 'pdb' from package 'python' (main)
 Command 'jdb' from package 'openjdk-6-jdk' (main)
 Command 'jdb' from package 'openjdk-7-jdk' (universe)
 Command 'ab' from package 'apache2-utils' (main)
 Command 'ad' from package 'netatalk' (universe)
adb: command not found
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb kill-server
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ \adb wait-for-device
No command 'adb' found, did you mean:
 Command 'cdb' from package 'tinycdb' (main)
 Command 'gdb' from package 'gdb' (main)
 Command 'dab' from package 'bsdgames' (universe)
 Command 'zdb' from package 'zfs-fuse' (universe)
 Command 'kdb' from package 'elektra-bin' (universe)
 Command 'tdb' from package 'tads2-dev' (multiverse)
 Command 'pdb' from package 'python' (main)
 Command 'jdb' from package 'openjdk-6-jdk' (main)
 Command 'jdb' from package 'openjdk-7-jdk' (universe)
 Command 'ab' from package 'apache2-utils' (main)
 Command 'ad' from package 'netatalk' (universe)
adb: command not found
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/gpscfg/gps_env.conf 2>/dev/null"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "ln -s /data /data/gpscfg/gps_env.conf"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "echo 'ro.kernel.qemu=1' > /data/local.prop"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb remount
remount succeeded
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /system/etc/install-recovery.sh"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /system/recovery-from-boot.p"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push Files\su /system/bin/su
cannot stat 'Filessu': No such file or directory
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push Files/su /system/bin/su
cannot stat 'Files/su': No such file or directory
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push su /system/bin/su
421 KB/s (22364 bytes in 0.051s)
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "chmod 6755 /system/bin/su"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "ln -s /system/bin/su /system/xbin/su"
link failed File exists
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push busybox /system/xbin/busybox
3402 KB/s (828156 bytes in 0.237s)
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "chmod 755 /system/xbin/busybox"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "/system/xbin/busybox --install /system/xbin"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push Superuser.apk /system/app/Superuser.apk
3368 KB/s (843503 bytes in 0.244s)
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/local.prop"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/gpscfg/*"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "chmod 771 /data/"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb kill-server
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push cwmrecovery.img /data/local/tmp/cwmrecovery.img
3548 KB/s (16777216 bytes in 4.617s)
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/gpscfg/gps_env.conf 2>/dev/null"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "ln -s /data /data/gpscfg/gps_env.conf"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "echo 'ro.kernel.qemu=1' > /data/local.prop"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb remount
remount succeeded
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /system/etc/install-recovery.sh"
rm failed for /system/etc/install-recovery.sh, No such file or directory
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /system/etc/install-recovery.sh"
rm failed for /system/etc/install-recovery.sh, No such file or directory
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /system/recovery-from-boot.p"
rm failed for /system/recovery-from-boot.p, No such file or directory
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "dd if=/data/local/tmp/cwmrecovery.img of=/dev/block/mmcblk0p13 bs=4096"
4096+0 records in
4096+0 records out
16777216 bytes transferred in 2.092 secs (8019701 bytes/sec)
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/local/tmp/cwmrecovery.img"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/local.prop"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/gpscfg/*"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "chmod 771 /data/"
rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot

Yes it is lengthy but it is deconstructing that BAT and using it in Linux

Also, having it on for a long time did cause a black screen on reboot.
Removed battery for a period of time to let the phone cool then rebooted

Upon reboot installed the Broken Out Spectrum 2.0 and on reboot got no service at all and a crashing registration.....rebooted again and it worked

Enjoy

Thanks to FIN MT and that guy with the secure page NEPH, XDA Forums for the android-99 rules

Sticky if you wanna


Rich

Rich
 
Upvote 0
I have updated my Linux scripts to resolve this issue.

they will add the line to the file, they do not check for it's existence, I could do that using sed, but didn't think of that solution until after I fixed them and reuploaded the files.

The new Linux rooting scripts have this new feature:

IF you run the script as root, or using sudo, it will add the line to the UDEV file, and will create the file if it does not exist.

IF you do not run the script as root, or using sudo, it will simply display a permission denied error message when it attempts to execute that command, then the script will continue to root the phone.

The one single line that updates that file is the only part of the script needing root access. If you are uncomfortable running the script with root access, you will need to enter the following on a command prompt, in order to get your LG Spectrum to function with ADB via USB.

Code:
sudo echo 'SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"' >> /etc/udev/rules.d/99-android.rules

after you run that line, you will be able to run the script without root and it will root your spectrum (if you use one of the 2 rooting scripts, the third is for those who have already rooted, but want the ClockWork Mod Touch recovery installed).

http://www.joelperryproductions.com/wordpress/2012/04/02/lg-spectrum-one-stop-download-shop/
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones