1. Download our Official Android App: Forums for Android!

Root Linux and the AIO solution in conjunction with FINNDO77

Discussion in 'Android Devices' started by sosaudio1, May 17, 2012.

  1. sosaudio1

    sosaudio1 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    63
    Posts:
    344
    Joined:
    May 15, 2012

    May 15, 2012
    344
    34
    63
    Male
    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 (Text):
    1. ~/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 (Text):
    1. 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
     

    Advertisement

  2. mtmichaelson

    mtmichaelson Android Enthusiast
    Rank:
    None
    Points:
    138
    Posts:
    471
    Joined:
    Aug 5, 2011

    Aug 5, 2011
    471
    767
    138
    Antioch, TN
    After a reboot, all you have to do is run this first in terminal, then standard adb commands will be fine.
    Code (Text):
    1.  sudo ./adb kill-server
    2. sudo ./adb start-server
    Just make sure you use sudo on both of them
     
    sosaudio1 likes this.
  3. sosaudio1

    sosaudio1 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    63
    Posts:
    344
    Joined:
    May 15, 2012

    May 15, 2012
    344
    34
    63
    Male
    HUNTSVILLE AL
    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
     
  4. mtmichaelson

    mtmichaelson Android Enthusiast
    Rank:
    None
    Points:
    138
    Posts:
    471
    Joined:
    Aug 5, 2011

    Aug 5, 2011
    471
    767
    138
    Antioch, TN
    I would just try to run the script inn the all in one again
     
  5. sosaudio1

    sosaudio1 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    63
    Posts:
    344
    Joined:
    May 15, 2012

    May 15, 2012
    344
    34
    63
    Male
    HUNTSVILLE AL
    The AIO.bat?

    That would be cool except I am on Linux and not on windows.

    I will try again to run the script
     
  6. mtmichaelson

    mtmichaelson Android Enthusiast
    Rank:
    None
    Points:
    138
    Posts:
    471
    Joined:
    Aug 5, 2011

    Aug 5, 2011
    471
    767
    138
    Antioch, TN
    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
     
  7. sosaudio1

    sosaudio1 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    63
    Posts:
    344
    Joined:
    May 15, 2012

    May 15, 2012
    344
    34
    63
    Male
    HUNTSVILLE AL
    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 (Text):
    1. ~/Downloads/Phone root fix files/Start Here$ sudo ./linux.sh
    2. Pushing CWM Touch to Phone
    3. 3651 KB/s (16777216 bytes in 4.487s)
    4.  
    5. Rebooting device
    6. Waiting for device to reboot
    7.  
    8. Pushing Exploit
    9.  
    10. Rebooting device again
    11. : not found 16: ./linux.sh: echo
    12. Waiting for device to reboot
    13.  
    14. Installing Root Files
    15. mounting phone file systems read-write
    16. Android Debug Bridge version 1.0.29
    17.  
    18.  -d                            - directs command to the only connected USB device
    19.                                  returns an error if more than one USB device is present.
    20.  -e                            - directs command to the only running emulator.
    21.                                  returns an error if more than one emulator is running.
    22.  -s <serial number>            - directs command to the USB device or emulator with
    23.                                  the given serial number. Overrides ANDROID_SERIAL
    24.                                  environment variable.
    25.  -p <product name or path>     - simple product name like 'sooner', or
    26.                                  a relative/absolute path to a product
    27.                                  out directory like 'out/target/product/sooner'.
    28.                                  If -p is not specified, the ANDROID_PRODUCT_OUT
    29.                                  environment variable is used, which must
    30.                                  be an absolute path.
    31.  devices                       - list all connected devices
    32.  connect <host>[:<port>]       - connect to a device via TCP/IP
    33.                                  Port 5555 is used by default if no port number is specified.
    34.  disconnect [<host>[:<port>]]  - disconnect from a TCP/IP device.
    35.                                  Port 5555 is used by default if no port number is specified.
    36.                                  Using this command with no additional arguments
    37.                                  will disconnect from all connected TCP/IP devices.
    38.  
    39. device commands:
    40.   adb push <local> <remote>    - copy file/dir to device
    41.   adb pull <remote> [<local>]  - copy file/dir from device
    42.   adb sync [ <directory> ]     - copy host->device only if changed
    43.                                  (-l means list but don't copy)
    44.                                  (see 'adb help all')
    45.   adb shell                    - run remote shell interactively
    46.   adb shell <command>          - run remote shell command
    47.   adb emu <command>            - run emulator console command
    48.   adb logcat [ <filter-spec> ] - View device log
    49.   adb forward <local> <remote> - forward socket connections
    50.                                  forward specs are one of:
    51.                                    tcp:<port>
    52.                                    localabstract:<unix domain socket name>
    53.                                    localreserved:<unix domain socket name>
    54.                                    localfilesystem:<unix domain socket name>
    55.                                    dev:<character device name>
    56.                                    jdwp:<process pid> (remote only)
    57.   adb jdwp                     - list PIDs of processes hosting a JDWP transport
    58.   adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
    59.                                  ('-l' means forward-lock the app)
    60.                                  ('-r' means reinstall the app, keeping its data)
    61.                                  ('-s' means install on SD card instead of internal storage)
    62.   adb uninstall [-k] <package> - remove this app package from the device
    63.                                  ('-k' means keep the data and cache directories)
    64.   adb bugreport                - return all information from the device
    65.                                  that should be included in a bug report.
    66.  
    67.   adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
    68.                                - write an archive of the device's data to <file>.
    69.                                  If no -f option is supplied then the data is written
    70.                                  to "backup.ab" in the current directory.
    71.                                  (-apk|-noapk enable/disable backup of the .apks themselves
    72.                                     in the archive; the default is noapk.)
    73.                                  (-shared|-noshared enable/disable backup of the device's
    74.                                     shared storage / SD card contents; the default is noshared.)
    75.                                  (-all means to back up all installed applications)
    76.                                  (-system|-nosystem toggles whether -all automatically includes
    77.                                     system applications; the default is to include system apps)
    78.                                  (<packages...> is the list of applications to be backed up.  If
    79.                                     the -all or -shared flags are passed, then the package
    80.                                     list is optional.  Applications explicitly given on the
    81.                                     command line will be included even if -nosystem would
    82.                                     ordinarily cause them to be omitted.)
    83.  
    84.   adb restore <file>           - restore device contents from the <file> backup archive
    85.  
    86.   adb help                     - show this help message
    87.   adb version                  - show version num
    88.  
    89. scripting:
    90.   adb wait-for-device          - block until device is online
    91.   adb start-server             - ensure that there is a server running
    92.   adb kill-server              - kill the server if it is running
    93.   adb get-state                - prints: offline | bootloader | device
    94.   adb get-serialno             - prints: <serial-number>
    95.   adb status-window            - continuously print device status for a specified device
    96.   adb remount                  - remounts the /system partition on the device read-write
    97.   adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
    98.   adb reboot-bootloader        - reboots the device into the bootloader
    99.   adb root                     - restarts the adbd daemon with root permissions
    100.   adb usb                      - restarts the adbd daemon listening on USB
    101.   adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
    102. networking:
    103.   adb ppp <tty> [parameters]   - Run PPP over USB.
    104.  Note: you should not automatically start a PPP connection.
    105.  <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
    106.  [parameters] - Eg. defaultroute debug dump local notty usepeerdns
    107.  
    108. adb sync notes: adb sync [ <directory> ]
    109.   <localdir> can be interpreted in several ways:
    110.  
    111.   - If <directory> is not specified, both /system and /data partitions will be updated.
    112.  
    113.   - If it is "system" or "data", only the corresponding partition
    114.     is updated.
    115.  
    116. environmental variables:
    117.   ADB_TRACE                    - Print debug information. A comma separated list of the following values
    118.                                  1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
    119.   ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
    120.   ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.
    121. removing etc/install-recovery.sh
    122. , Read-only file systemtc/install-recovery.sh
    123. removing recovery-from-boot.p
    124. , Read-only file systemecovery-from-boot.p
    125. pushing su package to bin on phone
    126. ': Read-only file system/system/bin/su
    127. changing permissions for su
    128. : No such file or directory/su
    129. creating a link to su in xbin
    130. link failed Read-only file system
    131. pushing busybox package to phone
    132. ': Read-only file system to '/system/xbin/busybox
    133. changing permissions for busybox
    134. : No such file or directoryn/busybox
    135. installing busybox on phone
    136. /[: No such file or directory
    137. /[[: No such file or directory
    138. /acpid: No such file or directory
    139. /addgroup: No such file or directory
    140. /adduser: No such file or directory
    141. /adjtimex: No such file or directory
    142. /arp: No such file or directory
    143. /arping: No such file or directory
    144. /ash: No such file or directory
    145. /awk: No such file or directory
    146. /basename: No such file or directory
    147. /beep: No such file or directory
    148. /blkid: No such file or directory
    149. /bootchartd: No such file or directory
    150. /brctl: No such file or directory
    151. /bunzip2: No such file or directory
    152. /bzcat: No such file or directory
    153. /bzip2: No such file or directory
    154. /cal: No such file or directory
    155. /cat: No such file or directory
    156. /catv: No such file or directory
    157. /chat: No such file or directory
    158. /chattr: No such file or directory
    159. /chgrp: No such file or directory
    160. /chmod: No such file or directory
    161. /chown: No such file or directory
    162. /chpasswd: No such file or directory
    163. /chpst: No such file or directory
    164. /chroot: No such file or directory
    165. /chrt: No such file or directory
    166. /chvt: No such file or directory
    167. /cksum: No such file or directory
    168. /clear: No such file or directory
    169. /cmp: No such file or directory
    170. /comm: No such file or directory
    171. /cp: No such file or directory
    172. /cpio: No such file or directory
    173. /crond: No such file or directory
    174. /crontab: No such file or directory
    175. /cryptpw: No such file or directory
    176. /cttyhack: No such file or directory
    177. /cut: No such file or directory
    178. /date: No such file or directory
    179. /dc: No such file or directory
    180. /dd: No such file or directory
    181. /deallocvt: No such file or directory
    182. /delgroup: No such file or directory
    183. /deluser: No such file or directory
    184. /depmod: No such file or directory
    185. /devmem: No such file or directory
    186. /df: No such file or directory
    187. /dhcprelay: No such file or directory
    188. /diff: No such file or directory
    189. /dirname: No such file or directory
    190. /dmesg: No such file or directory
    191. /dnsd: No such file or directory
    192. /dnsdomainname: No such file or directory
    193. /dos2unix: No such file or directory
    194. /du: No such file or directory
    195. /dumpkmap: No such file or directory
    196. /dumpleases: No such file or directory
    197. /echo: No such file or directory
    198. /ed: No such file or directory
    199. /egrep: No such file or directory
    200. /eject: No such file or directory
    201. /env: No such file or directory
    202. /envdir: No such file or directory
    203. /envuidgid: No such file or directory
    204. /ether-wake: No such file or directory
    205. /expand: No such file or directory
    206. /expr: No such file or directory
    207. /fakeidentd: No such file or directory
    208. /false: No such file or directory
    209. /fbset: No such file or directory
    210. /fbsplash: No such file or directory
    211. /fdflush: No such file or directory
    212. /fdformat: No such file or directory
    213. /fdisk: No such file or directory
    214. /fgconsole: No such file or directory
    215. /fgrep: No such file or directory
    216. /find: No such file or directory
    217. /findfs: No such file or directory
    218. /flock: No such file or directory
    219. /fold: No such file or directory
    220. /free: No such file or directory
    221. /freeramdisk: No such file or directory
    222. /fsck: No such file or directory
    223. /fsck.minix: No such file or directory
    224. /fsync: No such file or directory
    225. /ftpd: No such file or directory
    226. /ftpget: No such file or directory
    227. /ftpput: No such file or directory
    228. /fuser: No such file or directory
    229. /getopt: No such file or directory
    230. /getty: No such file or directory
    231. /grep: No such file or directory
    232. /gunzip: No such file or directory
    233. /gzip: No such file or directory
    234. /halt: No such file or directory
    235. /hd: No such file or directory
    236. /hdparm: No such file or directory
    237. /head: No such file or directory
    238. /hexdump: No such file or directory
    239. /hostid: No such file or directory
    240. /hostname: No such file or directory
    241. /httpd: No such file or directory
    242. /hush: No such file or directory
    243. /hwclock: No such file or directory
    244. /id: No such file or directory
    245. /ifconfig: No such file or directory
    246. /ifdown: No such file or directory
    247. /ifenslave: No such file or directory
    248. /ifplugd: No such file or directory
    249. /ifup: No such file or directory
    250. /inetd: No such file or directory
    251. /init: No such file or directory
    252. /insmod: No such file or directory
    253. /install: No such file or directory
    254. /ionice: No such file or directory
    255. /ip: No such file or directory
    256. /ipaddr: No such file or directory
    257. /ipcalc: No such file or directory
    258. /ipcrm: No such file or directory
    259. /ipcs: No such file or directory
    260. /iplink: No such file or directory
    261. /iproute: No such file or directory
    262. /iprule: No such file or directory
    263. /iptunnel: No such file or directory
    264. /kbd_mode: No such file or directory
    265. /kill: No such file or directory
    266. /killall: No such file or directory
    267. /killall5: No such file or directory
    268. /klogd: No such file or directory
    269. /last: No such file or directory
    270. /length: No such file or directory
    271. /less: No such file or directory
    272. /linux32: No such file or directory
    273. /linux64: No such file or directory
    274. /linuxrc: No such file or directory
    275. /ln: No such file or directory
    276. /loadfont: No such file or directory
    277. /loadkmap: No such file or directory
    278. /logger: No such file or directory
    279. /login: No such file or directory
    280. /logname: No such file or directory
    281. /logread: No such file or directory
    282. /losetup: No such file or directory
    283. /lpd: No such file or directory
    284. /lpq: No such file or directory
    285. /lpr: No such file or directory
    286. /ls: No such file or directory
    287. /lsattr: No such file or directory
    288. /lsmod: No such file or directory
    289. /lspci: No such file or directory
    290. /lsusb: No such file or directory
    291. /lzcat: No such file or directory
    292. /lzma: No such file or directory
    293. /lzop: No such file or directory
    294. /lzopcat: No such file or directory
    295. /makedevs: No such file or directory
    296. /makemime: No such file or directory
    297. /man: No such file or directory
    298. /md5sum: No such file or directory
    299. /mdev: No such file or directory
    300. /mesg: No such file or directory
    301. /microcom: No such file or directory
    302. /mkdir: No such file or directory
    303. /mkdosfs: No such file or directory
    304. /mke2fs: No such file or directory
    305. /mkfifo: No such file or directory
    306. /mkfs.ext2: No such file or directory
    307. /mkfs.minix: No such file or directory
    308. /mkfs.vfat: No such file or directory
    309. /mknod: No such file or directory
    310. /mkpasswd: No such file or directory
    311. /mkswap: No such file or directory
    312. /mktemp: No such file or directory
    313. /modinfo: No such file or directory
    314. /modprobe: No such file or directory
    315. /more: No such file or directory
    316. /mount: No such file or directory
    317. /mountpoint: No such file or directory
    318. /mt: No such file or directory
    319. /mv: No such file or directory
    320. /nameif: No such file or directory
    321. /nc: No such file or directory
    322. /netstat: No such file or directory
    323. /nice: No such file or directory
    324. /nmeter: No such file or directory
    325. /nohup: No such file or directory
    326. /nslookup: No such file or directory
    327. /ntpd: No such file or directory
    328. /od: No such file or directory
    329. /openvt: No such file or directory
    330. /passwd: No such file or directory
    331. /patch: No such file or directory
    332. /pgrep: No such file or directory
    333. /pidof: No such file or directory
    334. /ping: No such file or directory
    335. /ping6: No such file or directory
    336. /pipe_progress: No such file or directory
    337. /pivot_root: No such file or directory
    338. /pkill: No such file or directory
    339. /popmaildir: No such file or directory
    340. /poweroff: No such file or directory
    341. /printenv: No such file or directory
    342. /printf: No such file or directory
    343. /ps: No such file or directory
    344. /pscan: No such file or directory
    345. /pwd: No such file or directory
    346. /raidautorun: No such file or directory
    347. /rdate: No such file or directory
    348. /rdev: No such file or directory
    349. /readahead: No such file or directory
    350. /readlink: No such file or directory
    351. /readprofile: No such file or directory
    352. /realpath: No such file or directory
    353. /reboot: No such file or directory
    354. /reformime: No such file or directory
    355. /renice: No such file or directory
    356. /reset: No such file or directory
    357. /resize: No such file or directory
    358. /rev: No such file or directory
    359. /rm: No such file or directory
    360. /rmdir: No such file or directory
    361. /rmmod: No such file or directory
    362. /route: No such file or directory
    363. /rpm: No such file or directory
    364. /rpm2cpio: No such file or directory
    365. /rtcwake: No such file or directory
    366. /run-parts: No such file or directory
    367. /runlevel: No such file or directory
    368. /runsv: No such file or directory
    369. /runsvdir: No such file or directory
    370. /rx: No such file or directory
    371. /script: No such file or directory
    372. /scriptreplay: No such file or directory
    373. /sed: No such file or directory
    374. /sendmail: No such file or directory
    375. /seq: No such file or directory
    376. /setarch: No such file or directory
    377. /setconsole: No such file or directory
    378. /setfont: No such file or directory
    379. /setkeycodes: No such file or directory
    380. /setlogcons: No such file or directory
    381. /setsid: No such file or directory
    382. /setuidgid: No such file or directory
    383. /sh: No such file or directory
    384. /sha1sum: No such file or directory
    385. /sha256sum: No such file or directory
    386. /sha512sum: No such file or directory
    387. /showkey: No such file or directory
    388. /slattach: No such file or directory
    389. /sleep: No such file or directory
    390. /smemcap: No such file or directory
    391. /softlimit: No such file or directory
    392. /sort: No such file or directory
    393. /split: No such file or directory
    394. /start-stop-daemon: No such file or directory
    395. /stat: No such file or directory
    396. /strings: No such file or directory
    397. /stty: No such file or directory
    398. /su: No such file or directory
    399. /sulogin: No such file or directory
    400. /sum: No such file or directory
    401. /sv: No such file or directory
    402. /svlogd: No such file or directory
    403. /swapoff: No such file or directory
    404. /swapon: No such file or directory
    405. /switch_root: No such file or directory
    406. /sync: No such file or directory
    407. /sysctl: No such file or directory
    408. /syslogd: No such file or directory
    409. /tac: No such file or directory
    410. /tail: No such file or directory
    411. /tar: No such file or directory
    412. /tcpsvd: No such file or directory
    413. /tee: No such file or directory
    414. /telnet: No such file or directory
    415. /telnetd: No such file or directory
    416. /test: No such file or directory
    417. /tftp: No such file or directory
    418. /tftpd: No such file or directory
    419. /time: No such file or directory
    420. /timeout: No such file or directory
    421. /top: No such file or directory
    422. /touch: No such file or directory
    423. /tr: No such file or directory
    424. /traceroute: No such file or directory
    425. /traceroute6: No such file or directory
    426. /true: No such file or directory
    427. /tty: No such file or directory
    428. /ttysize: No such file or directory
    429. /tunctl: No such file or directory
    430. /udhcpc: No such file or directory
    431. /udhcpd: No such file or directory
    432. /udpsvd: No such file or directory
    433. /umount: No such file or directory
    434. /uname: No such file or directory
    435. /unexpand: No such file or directory
    436. /uniq: No such file or directory
    437. /unix2dos: No such file or directory
    438. /unlzma: No such file or directory
    439. /unlzop: No such file or directory
    440. /unxz: No such file or directory
    441. /unzip: No such file or directory
    442. /uptime: No such file or directory
    443. /usleep: No such file or directory
    444. /uudecode: No such file or directory
    445. /uuencode: No such file or directory
    446. /vconfig: No such file or directory
    447. /vi: No such file or directory
    448. /vlock: No such file or directory
    449. /volname: No such file or directory
    450. /wall: No such file or directory
    451. /watch: No such file or directory
    452. /watchdog: No such file or directory
    453. /wc: No such file or directory
    454. /wget: No such file or directory
    455. /which: No such file or directory
    456. /who: No such file or directory
    457. /whoami: No such file or directory
    458. /xargs: No such file or directory
    459. /xz: No such file or directory
    460. /xzcat: No such file or directory
    461. /yes: No such file or directory
    462. /zcat: No such file or directory
    463. /zcip: No such file or directory
    464. pushing superuser to phone
    465. failed to copy 'Superuser.apk' to '/system/app/Superuser.apk': Read-only file system
    466. adding blocking hosts file
    467. ./linux.sh: 63: ./linux.sh: Syntax error: Unterminated quoted string
    468.  
    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 (Text):
    1. ~/Downloads/Phone root fix files/Here first$ ./adb devices
    2. List of devices attached
    3. LGOTMS589b91    device
    4.  
    5. rich@HP-Laptop:~/Downloads/Phone root fix files/Here first$ sudo ./adb kill-server
    6. rich@HP-Laptop:~/Downloads/Phone root fix files/Here first$ sudo ./adb start-server
    7. * daemon not running. starting it now on port 5037 *
    8. * daemon started successfully *
    9. rich@HP-Laptop:~/Downloads/Phone root fix files/Here first$ ./linux.sh
    10. Pushing Exploit
    11.  
    12. Rebooting device again
    13. ./linux.sh: line 6: $'echo\r': command not found
    14. Waiting for device to reboot
    15.  
    16. Installing Root Files
    17. mounting phone file systems read-write
    18. Android Debug Bridge version 1.0.29
    19.  
    20.  -d                            - directs command to the only connected USB device
    21.                                  returns an error if more than one USB device is present.
    22.  -e                            - directs command to the only running emulator.
    23.                                  returns an error if more than one emulator is running.
    24.  -s <serial number>            - directs command to the USB device or emulator with
    25.                                  the given serial number. Overrides ANDROID_SERIAL
    26.                                  environment variable.
    27.  -p <product name or path>     - simple product name like 'sooner', or
    28.                                  a relative/absolute path to a product
    29.                                  out directory like 'out/target/product/sooner'.
    30.                                  If -p is not specified, the ANDROID_PRODUCT_OUT
    31.                                  environment variable is used, which must
    32.                                  be an absolute path.
    33.  devices                       - list all connected devices
    34.  connect <host>[:<port>]       - connect to a device via TCP/IP
    35.                                  Port 5555 is used by default if no port number is specified.
    36.  disconnect [<host>[:<port>]]  - disconnect from a TCP/IP device.
    37.                                  Port 5555 is used by default if no port number is specified.
    38.                                  Using this command with no additional arguments
    39.                                  will disconnect from all connected TCP/IP devices.
    40.  
    41. device commands:
    42.   adb push <local> <remote>    - copy file/dir to device
    43.   adb pull <remote> [<local>]  - copy file/dir from device
    44.   adb sync [ <directory> ]     - copy host->device only if changed
    45.                                  (-l means list but don't copy)
    46.                                  (see 'adb help all')
    47.   adb shell                    - run remote shell interactively
    48.   adb shell <command>          - run remote shell command
    49.   adb emu <command>            - run emulator console command
    50.   adb logcat [ <filter-spec> ] - View device log
    51.   adb forward <local> <remote> - forward socket connections
    52.                                  forward specs are one of:
    53.                                    tcp:<port>
    54.                                    localabstract:<unix domain socket name>
    55.                                    localreserved:<unix domain socket name>
    56.                                    localfilesystem:<unix domain socket name>
    57.                                    dev:<character device name>
    58.                                    jdwp:<process pid> (remote only)
    59.   adb jdwp                     - list PIDs of processes hosting a JDWP transport
    60.   adb install [-l] [-r] [-s] <file> - push this package file to the device and install it
    61.                                  ('-l' means forward-lock the app)
    62.                                  ('-r' means reinstall the app, keeping its data)
    63.                                  ('-s' means install on SD card instead of internal storage)
    64.   adb uninstall [-k] <package> - remove this app package from the device
    65.                                  ('-k' means keep the data and cache directories)
    66.   adb bugreport                - return all information from the device
    67.                                  that should be included in a bug report.
    68.  
    69.   adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
    70.                                - write an archive of the device's data to <file>.
    71.                                  If no -f option is supplied then the data is written
    72.                                  to "backup.ab" in the current directory.
    73.                                  (-apk|-noapk enable/disable backup of the .apks themselves
    74.                                     in the archive; the default is noapk.)
    75.                                  (-shared|-noshared enable/disable backup of the device's
    76.                                     shared storage / SD card contents; the default is noshared.)
    77.                                  (-all means to back up all installed applications)
    78.                                  (-system|-nosystem toggles whether -all automatically includes
    79.                                     system applications; the default is to include system apps)
    80.                                  (<packages...> is the list of applications to be backed up.  If
    81.                                     the -all or -shared flags are passed, then the package
    82.                                     list is optional.  Applications explicitly given on the
    83.                                     command line will be included even if -nosystem would
    84.                                     ordinarily cause them to be omitted.)
    85.  
    86.   adb restore <file>           - restore device contents from the <file> backup archive
    87.  
    88.   adb help                     - show this help message
    89.   adb version                  - show version num
    90.  
    91. scripting:
    92.   adb wait-for-device          - block until device is online
    93.   adb start-server             - ensure that there is a server running
    94.   adb kill-server              - kill the server if it is running
    95.   adb get-state                - prints: offline | bootloader | device
    96.   adb get-serialno             - prints: <serial-number>
    97.   adb status-window            - continuously print device status for a specified device
    98.   adb remount                  - remounts the /system partition on the device read-write
    99.   adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
    100.   adb reboot-bootloader        - reboots the device into the bootloader
    101.   adb root                     - restarts the adbd daemon with root permissions
    102.   adb usb                      - restarts the adbd daemon listening on USB
    103.   adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
    104. networking:
    105.   adb ppp <tty> [parameters]   - Run PPP over USB.
    106.  Note: you should not automatically start a PPP connection.
    107.  <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
    108.  [parameters] - Eg. defaultroute debug dump local notty usepeerdns
    109.  
    110. adb sync notes: adb sync [ <directory> ]
    111.   <localdir> can be interpreted in several ways:
    112.  
    113.   - If <directory> is not specified, both /system and /data partitions will be updated.
    114.  
    115.   - If it is "system" or "data", only the corresponding partition
    116.     is updated.
    117.  
    118. environmental variables:
    119.   ADB_TRACE                    - Print debug information. A comma separated list of the following values
    120.                                  1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
    121.   ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
    122.   ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.
    123. removing etc/install-recovery.sh
    124. This script will root your LG Spectrum VS920
    125. and will install a blocking hosts file
    126. ./linux.sh: line 16: $'echo\r': command not found
    127. not sure if this is necessary, if things dont work,
    128. echo take the "echo " out from the next two commands
    129. echo -----------
    130. echo ./adb shell "rm /system/etc/install-recovery.sh"
    131. echo removing recovery-from-boot.p
    132. echo ./adb shell "rm /system/recovery-from-boot.p"
    133. echo -----------
    134. echo pushing su package to bin on phone
    135. ./adb push su /system/bin/su
    136. echo changing permissions for su
    137. ./adb shell "chmod 6755 /system/bin/su"
    138. echo creating a link to su in xbin
    139. ./adb shell "ln -s /system/bin/su /system/xbin/su"
    140. echo pushing busybox package to phone
    141. ./adb push busybox /system/xbin/busybox
    142. echo changing permissions for busybox
    143. ./adb shell "chmod 755 /system/xbin/busybox"
    144. echo installing busybox on phone
    145. ./adb shell "/system/xbin/busybox --install /system/xbin"
    146. echo pushing superuser to phone
    147. ./adb push Superuser.apk /system/app/Superuser.apk
    148. echo adding blocking hosts file
    149. echo making a backup of the systems host file
    150. failed on '/etc/hosts' - Read-only file system
    151. pushing new hosts file to phone
    152. ': Read-only file systemo '/etc/hosts
    153. changing permissions on the hosts file
    154. Unable to chmod /etc/hosts: Read-only file system
    155.  
    156. Removing Trash
    157. ./linux.sh: line 50: $'echo\r': command not found
    158.  
    159. Finished Rooting!!!
    160. Restarting phone one more time
    161.  
    Now sound is back....

    Here Second:
    Code (Text):
    1. $ ./adb devicesList of devices attached
    2. LGOTMS589b91    device
    3.  
    4. rich@HP-Laptop:~/Downloads/Phone root fix files/Here Second$ sudo ./adb kill-server
    5. rich@HP-Laptop:~/Downloads/Phone root fix files/Here Second$ sudo ./adb start-server
    6. * daemon not running. starting it now on port 5037 *
    7. * daemon started successfully *
    8. rich@HP-Laptop:~/Downloads/Phone root fix files/Here Second$ ./linux.sh
    9. This script will push the ClockWork Mod Touch Recovery,
    10. insTall a blocking hosts file, and put the CWM Boot loop
    11. fix on your SD card.
    12. ./linux.sh: line 4: $'echo\r': command not found
    13. Pushing CWM Touch to Phone
    14. 4420 KB/s (16777216 bytes in 3.706s)
    15.  
    16. Rebooting device
    17. Waiting for device to reboot
    18. ./linux.sh: line 14: $'echo\r': command not found
    19. adding blocking hosts file
    20. ./linux.sh: line 16: unexpected EOF while looking for matching `''
    21. ./linux.sh: line 37: syntax error: unexpected end of file
    22.  
    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
     
  8. finndo77

    finndo77 Android Expert
    Rank:
    None
    Points:
    103
    Posts:
    860
    Joined:
    Jun 1, 2010

    Jun 1, 2010
    860
    107
    103
    Male
    Unix/VMware admin
    Richmond, VA
    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.
     
  9. sosaudio1

    sosaudio1 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    63
    Posts:
    344
    Joined:
    May 15, 2012

    May 15, 2012
    344
    34
    63
    Male
    HUNTSVILLE AL
    I think it does:

    Code (Text):
    1. ./adb devicesList of devices attached
    2. LGOTMS589b91    device
    3.  
    The way to make it recognize it is to make a UDEV for the device as noted at the top of the post
     
  10. sosaudio1

    sosaudio1 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    63
    Posts:
    344
    Joined:
    May 15, 2012

    May 15, 2012
    344
    34
    63
    Male
    HUNTSVILLE AL
    To Steal from XDA and correct for the issues and our device ID:
    Code (Text):
    1. You need to create a file named
    2.  
    3. /etc/udev/rules.d/99-android.rules
    4.  
    5. containing the line:
    6.  
    7. SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"
    8.  
    9. you need to be root to create the file, use
    10.  
    11. sudo -s
    12.  
    13. to become root, then
    14.  
    15. gedit /etc/udev/rules.d/99-android.rules
    16.  
    17. will open the new file for editing.
    18.  
    19. 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
     
  11. sosaudio1

    sosaudio1 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    63
    Posts:
    344
    Joined:
    May 15, 2012

    May 15, 2012
    344
    34
    63
    Male
    HUNTSVILLE AL
    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 (Text):
    1. ~/Downloads/Phone root fix files/AIO/Files$ ./adb devices
    2. List of devices attached
    3. LGOTMS589b91    device
    4.  
    5. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ adb kill-server
    6. No command 'adb' found, did you mean:
    7.  Command 'cdb' from package 'tinycdb' (main)
    8.  Command 'gdb' from package 'gdb' (main)
    9.  Command 'dab' from package 'bsdgames' (universe)
    10.  Command 'zdb' from package 'zfs-fuse' (universe)
    11.  Command 'kdb' from package 'elektra-bin' (universe)
    12.  Command 'tdb' from package 'tads2-dev' (multiverse)
    13.  Command 'pdb' from package 'python' (main)
    14.  Command 'jdb' from package 'openjdk-6-jdk' (main)
    15.  Command 'jdb' from package 'openjdk-7-jdk' (universe)
    16.  Command 'ab' from package 'apache2-utils' (main)
    17.  Command 'ad' from package 'netatalk' (universe)
    18. adb: command not found
    19. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb kill-server
    20. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ \adb wait-for-device
    21. No command 'adb' found, did you mean:
    22.  Command 'cdb' from package 'tinycdb' (main)
    23.  Command 'gdb' from package 'gdb' (main)
    24.  Command 'dab' from package 'bsdgames' (universe)
    25.  Command 'zdb' from package 'zfs-fuse' (universe)
    26.  Command 'kdb' from package 'elektra-bin' (universe)
    27.  Command 'tdb' from package 'tads2-dev' (multiverse)
    28.  Command 'pdb' from package 'python' (main)
    29.  Command 'jdb' from package 'openjdk-6-jdk' (main)
    30.  Command 'jdb' from package 'openjdk-7-jdk' (universe)
    31.  Command 'ab' from package 'apache2-utils' (main)
    32.  Command 'ad' from package 'netatalk' (universe)
    33. adb: command not found
    34. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
    35. * daemon not running. starting it now on port 5037 *
    36. * daemon started successfully *
    37. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/gpscfg/gps_env.conf 2>/dev/null"
    38. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "ln -s /data /data/gpscfg/gps_env.conf"
    39. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
    40. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
    41. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "echo 'ro.kernel.qemu=1' > /data/local.prop"
    42. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
    43. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
    44. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb remount
    45. remount succeeded
    46. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /system/etc/install-recovery.sh"
    47. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /system/recovery-from-boot.p"
    48. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push Files\su /system/bin/su
    49. cannot stat 'Filessu': No such file or directory
    50. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push Files/su /system/bin/su
    51. cannot stat 'Files/su': No such file or directory
    52. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push su /system/bin/su
    53. 421 KB/s (22364 bytes in 0.051s)
    54. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "chmod 6755 /system/bin/su"
    55. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "ln -s /system/bin/su /system/xbin/su"
    56. link failed File exists
    57. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push busybox /system/xbin/busybox
    58. 3402 KB/s (828156 bytes in 0.237s)
    59. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "chmod 755 /system/xbin/busybox"
    60. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "/system/xbin/busybox --install /system/xbin"
    61. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push Superuser.apk /system/app/Superuser.apk
    62. 3368 KB/s (843503 bytes in 0.244s)
    63. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/local.prop"
    64. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/gpscfg/*"
    65. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "chmod 771 /data/"
    66. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
    67. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
    68. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb kill-server
    69. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
    70. * daemon not running. starting it now on port 5037 *
    71. * daemon started successfully *
    72. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb push cwmrecovery.img /data/local/tmp/cwmrecovery.img
    73. 3548 KB/s (16777216 bytes in 4.617s)
    74. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/gpscfg/gps_env.conf 2>/dev/null"
    75. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "ln -s /data /data/gpscfg/gps_env.conf"
    76. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
    77. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
    78. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "echo 'ro.kernel.qemu=1' > /data/local.prop"
    79. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
    80. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb wait-for-device
    81. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb remount
    82. remount succeeded
    83. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /system/etc/install-recovery.sh"
    84. rm failed for /system/etc/install-recovery.sh, No such file or directory
    85. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /system/etc/install-recovery.sh"
    86. rm failed for /system/etc/install-recovery.sh, No such file or directory
    87. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /system/recovery-from-boot.p"
    88. rm failed for /system/recovery-from-boot.p, No such file or directory
    89. 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"
    90. 4096+0 records in
    91. 4096+0 records out
    92. 16777216 bytes transferred in 2.092 secs (8019701 bytes/sec)
    93. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/local/tmp/cwmrecovery.img"
    94. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/local.prop"
    95. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "rm /data/gpscfg/*"
    96. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb shell "chmod 771 /data/"
    97. rich@HP-Laptop:~/Downloads/Phone root fix files/AIO/Files$ ./adb reboot
    98.  
    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
     
  12. finndo77

    finndo77 Android Expert
    Rank:
    None
    Points:
    103
    Posts:
    860
    Joined:
    Jun 1, 2010

    Jun 1, 2010
    860
    107
    103
    Male
    Unix/VMware admin
    Richmond, VA
    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 (Text):
    1. 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/
     
Tags:

Share This Page

Loading...