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

Root Soooo trying to re-root my phone

sosaudio1

Android Enthusiast
Ok soooo the deal....

I tried to upgrade my phone and well the way to do that is to wait until my contract expires and then get another phone, lose my unlimited data (not an option) and there we go...oh yeah...and pay 30 more/mo for a more restricted plan....NOT!!!! Probably going to just get another one at some point switch sim cards and there you go.


So....the issue, of course I am running Linux so the AIO.bat won't work....no problem, I can do each command manually but here is where i get stuck

[HIGH]adb shell "echo 'ro.kernel.qemu=1' > /data/local.prop"
cannot create /data/local.prop: permission denied
[/HIGH]

So in looking in /data local.prop doesn't exist. Soooo where do I go next I have already made an android.rules for udev

I made a post back when I was starting this venture here

http://androidforums.com/spectrum-a...nux-aio-solution-in-conjunction-finndo77.html

I tried to follow all my steps and I got as far as the above command and cannot go further

Help would be amazing!
Rich
 
do adb remount

That should remount (I believe your system and data partitions RW) then try again.
 
I'm fairly certain that it will work. The only difference is that it will unlock your unlocked bootloader as well :p
 
Soooo not good results:

Code:
off
[*] Unlocked Bootloader, root, and CWM
[*] for the LG Spectrum 4G (Linux version)
[*] One click and CWM by PlayfulGod
[*] Exploit found by jcase
[*] Unlock method discovered by Neph,
[*] jcase, and death2all110
[*]
[*] Before continuing, ensure USB debugging is enabled,
[*] that your phone is connected via USB,
[*] and in Internet Connection mode.
[*]
[*] Press enter to begin...
[*]
[*] Waiting for device...
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[*] Device found
rm failed for /data/vpnch/vpnc_starter_lock, No such file or directory
[*] Rebooting...
[*] Waiting for reboot...
rm failed for /data/vpnch/vpnc_starter_lock, No such file or directory
cannot create /data/local.prop: permission denied
[*] Rebooting again...
[*] Waiting for reboot...
[*] Installing root tools... 
Usage: mount [-r] [-w] [-o options] [-t type] device directory
failed to copy 'Files/su' to '/system/xbin/su': Read-only file system
Unable to chmod /system/xbin/su: No such file or directory
link failed Read-only file system
failed to copy 'Files/Superuser.apk' to '/system/app/Superuser.apk': Read-only file system
failed to copy 'Files/busybox' to '/system/xbin/busybox': Read-only file system
Unable to chmod /system/xbin/busybox: Read-only file system
--install: applet not found
[*] Installing Bootloader and CWM
4948 KB/s (5486592 bytes in 1.082s)
4660 KB/s (1048576 bytes in 0.219s)
4307 KB/s (1048576 bytes in 0.237s)
4292 KB/s (1048576 bytes in 0.238s)
4389 KB/s (5242880 bytes in 1.166s)
4669 KB/s (5242880 bytes in 1.096s)
4666 KB/s (1048576 bytes in 0.219s)
4797 KB/s (8706048 bytes in 1.772s)
/dev/block/mmcblk0p7: cannot open for write: Permission denied
/dev/block/mmcblk0p13: cannot open for write: Permission denied
/dev/block/mmcblk0p2: cannot open for write: Permission denied
/dev/block/mmcblk0p3: cannot open for write: Permission denied
/dev/block/mmcblk0p5: cannot open for write: Permission denied
/dev/block/mmcblk0p6: cannot open for write: Permission denied
/dev/block/mmcblk0p9: cannot open for write: Permission denied
/dev/block/mmcblk0p8: cannot open for write: Permission denied
[*] Removing Trash
rm failed for /system/etc/install-recovery.sh, Read-only file system
rm failed for /system/etc/recovery-from-boot.p, Read-only file system
rm failed for /system/etc/fota_post_boot_up.sh, Read-only file system
rm failed for /data/local.prop, No such file or directory
rm failed for /data/gpscfg/*, No such file or directory
Unable to chmod /data/: Operation not permitted
 
OK soooo just did a ADB REBOOT RECOVERY for grins and giggles and I got the little android with the box and arrow for about 3 seconds and then back to normal boot
 
Been a while since I've seen this phone in V6/GB mode... I would factory reset and/or CAB flash it and then update to V8/ICS. The exploits still work on V8
 
Been a while since I've seen this phone in V6/GB mode... I would factory reset and/or CAB flash it and then update to V8/ICS. The exploits still work on V8

I guess I can try to do a factory reset thru the phone and see if that works. Can't CAB flash due to Linux Mint. Unless we can figure out how to deconstruct it lol
 
Factory Reset and update did not work. Well.....the reset did....the update didn't

I think the issue is permissions to the phone. Do I need to move the sdk folder to root?
 
Factory Reset and update did not work. Well.....the reset did....the update didn't

I think the issue is permissions to the phone. Do I need to move the sdk folder to root?

No. But you do need to be running adb as root.

Sent from my VS920 4G using Tapatalk 2
 
Ok soooo the deal....

I tried to upgrade my phone and well the way to do that is to wait until my contract expires and then get another phone, lose my unlimited data (not an option) and there we go...oh yeah...and pay 30 more/mo for a more restricted plan....NOT!!!! Probably going to just get another one at some point switch sim cards and there you go.


So....the issue, of course I am running Linux so the AIO.bat won't work....no problem, I can do each command manually but here is where i get stuck

[HIGH]adb shell "echo 'ro.kernel.qemu=1' > /data/local.prop"
cannot create /data/local.prop: permission denied
[/HIGH]So in looking in /data local.prop doesn't exist. Soooo where do I go next I have already made an android.rules for udev

I made a post back when I was starting this venture here

http://androidforums.com/spectrum-a...nux-aio-solution-in-conjunction-finndo77.html

I tried to follow all my steps and I got as far as the above command and cannot go further

Help would be amazing!
Rich
While all these suggestions are nice, you could just use the original root tool dev'd by DanR that was designed for Linux.

Security Research by Dan Rosenberg
 
Cab flash back to factory and then root using script as usual seem easiest method. Why reinvent the wheel?
 
Cab flash back to factory and then root using script as usual seem easiest method. Why reinvent the wheel?

Again that would be a great method except I am on linux not windows soooo when someone says pull the trigger on cab flash using Linux Mint, I am game
 
Code:
adb root
adbd cannot run as root in production builds
Can you do a step by step output from the first line of the script to where it's suppose to SU? There has to be something missing with the GPSCFG exploit that isn't kicking off.
 
Can you do a step by step output from the first line of the script to where it's suppose to SU? There has to be something missing with the GPSCFG exploit that isn't kicking off.

Code:
rich@rich ~/Downloads/CWM-Root-Installer-LG-Spectrum-4G/Files $ adb push cwmrecovery.img /data/local/tmp/cwmrecovery.img
4326 KB/s (5384192 bytes in 1.215s)
rich@rich ~/Downloads/CWM-Root-Installer-LG-Spectrum-4G/Files $ adb shell "rm /data/gpscfg/gps_env.conf 2>/dev/null"
rich@rich ~/Downloads/CWM-Root-Installer-LG-Spectrum-4G/Files $ adb shell "ln -s /data /data/gpscfg/gps_env.conf"
link failed Permission denied

Here is something crazy, ADB pushed cwmrecovery from this folder

Here is the .sh file that I used. I started to deconstruct it to watch each step and the result is above

Code:
#!/bin/bash

platform=`uname`
if [ $(uname -p) = 'powerpc' ]; then
        echo "[-] PowerPC is not supported."
        exit 1
fi

if [ "$platform" = 'Darwin' ]; then
        adb="./Files/adb.osx"
        version="OSX"
else
        adb="./Files/adb.linux"
        version="Linux"
fi
chmod +x $adb

which adb > /dev/null 2>&1
if [ $? -eq 0 ]; then
        adb="adb"
fi

echo off
clear
echo CWM Recovery for the LG Spectrum 4G
echo One click Built by mtmichaelson
echo Exploit Built by djrbliss
echo CWM built by PlayfulGod
echo Linux Shell script by PlayfulGod
echo CWM Bootloop by PlayfulGod
echo
echo
echo Clockwork Mod Recovery
echo "[*] Press enter to install CWM to your phone..."
read -n 1 -s

echo Pushing CWM to Phone
$adb push Files/cwmrecovery.img /data/local/tmp/cwmrecovery.img

$adb shell "rm /data/gpscfg/gps_env.conf 2>/dev/null"
$adb shell "ln -s /data /data/gpscfg/gps_env.conf"

echo Rebooting device
$adb reboot
echo Waiting for device to reboot
$adb wait-for-device

echo Pushing Exploit
$adb shell "echo 'ro.kernel.qemu=1' > /data/local.prop"

echo Rebooting device again
$adb reboot
echo Waiting for device to reboot
$adb wait-for-device

# Install the goods
echo "[*] Installing root tools... "
$adb remount
$adb push Files/su /system/bin/su
$adb shell "chmod 6755 /system/bin/su"
$adb shell "ln -s /system/bin/su /system/xbin/su"
$adb push Files/Superuser.apk /system/app/Superuser.apk
$adb push Files/busybox /system/xbin/busybox
$adb shell "chmod 755 /system/xbin/busybox"
$adb shell "/system/xbin/busybox --install /system/xbin"

echo Installing CWM Recovery
$adb remount
$adb shell "rm /system/etc/install-recovery.sh"
$adb shell "rm /system/recovery-from-boot.p"
$adb shell "dd if=/data/local/tmp/cwmrecovery.img of=/dev/block/mmcblk0p13 bs=4096"

echo Removing Trash
$adb shell "rm /data/local/tmp/cwmrecovery.img"
$adb shell "rm /data/local.prop"
$adb shell "rm /data/gpscfg/*"
$adb shell "chmod 771 /data/"

echo Finished Recovery!!!
$adb reboot

echo "[*] Press any key to exit."

read -n1 -r
exit
 
To take us back to the top so everyone is in the loop as to what is going on. Went to take my phone back to stock so that I could see about an upgrade. Used CWM to push the V6 Stock No Root files back on the phone using that Nandroid. I am back on stock. Hoped that I could get the phone to at least update using the software updater on the phone. No Joy! No prob I said, determination, take it to a Verizon store and have them push an update. Verizon store tech, "they have our workstations so locked down that I cannot install the drivers to do this" wow I said.

The Gingerbread has lost its flavor for me so I said, lets re-root and get the options that I like back and an updated phone and here we are.

I wonder if somewhere along the line in the first root, rom installs, if something got screwed up on the phone.

Thanks everyone for helping me figure this out. You guys ROCK!!!

Rich
 
Code:
rich@rich ~/Downloads/CWM-Root-Installer-LG-Spectrum-4G/Files $ adb push cwmrecovery.img /data/local/tmp/cwmrecovery.img
4326 KB/s (5384192 bytes in 1.215s)
rich@rich ~/Downloads/CWM-Root-Installer-LG-Spectrum-4G/Files $ adb shell "rm /data/gpscfg/gps_env.conf 2>/dev/null"
rich@rich ~/Downloads/CWM-Root-Installer-LG-Spectrum-4G/Files $ adb shell "ln -s /data /data/gpscfg/gps_env.conf"
link failed Permission denied

Here is something crazy, ADB pushed cwmrecovery from this folder

Here is the .sh file that I used. I started to deconstruct it to watch each step and the result is above

Code:
#!/bin/bash

platform=`uname`
if [ $(uname -p) = 'powerpc' ]; then
        echo "[-] PowerPC is not supported."
        exit 1
fi

if [ "$platform" = 'Darwin' ]; then
        adb="./Files/adb.osx"
        version="OSX"
else
        adb="./Files/adb.linux"
        version="Linux"
fi
chmod +x $adb

which adb > /dev/null 2>&1
if [ $? -eq 0 ]; then
        adb="adb"
fi

echo off
clear
echo CWM Recovery for the LG Spectrum 4G
echo One click Built by mtmichaelson
echo Exploit Built by djrbliss
echo CWM built by PlayfulGod
echo Linux Shell script by PlayfulGod
echo CWM Bootloop by PlayfulGod
echo
echo
echo Clockwork Mod Recovery
echo "[*] Press enter to install CWM to your phone..."
read -n 1 -s

echo Pushing CWM to Phone
$adb push Files/cwmrecovery.img /data/local/tmp/cwmrecovery.img

$adb shell "rm /data/gpscfg/gps_env.conf 2>/dev/null"
$adb shell "ln -s /data /data/gpscfg/gps_env.conf"

echo Rebooting device
$adb reboot
echo Waiting for device to reboot
$adb wait-for-device

echo Pushing Exploit
$adb shell "echo 'ro.kernel.qemu=1' > /data/local.prop"

echo Rebooting device again
$adb reboot
echo Waiting for device to reboot
$adb wait-for-device

# Install the goods
echo "[*] Installing root tools... "
$adb remount
$adb push Files/su /system/bin/su
$adb shell "chmod 6755 /system/bin/su"
$adb shell "ln -s /system/bin/su /system/xbin/su"
$adb push Files/Superuser.apk /system/app/Superuser.apk
$adb push Files/busybox /system/xbin/busybox
$adb shell "chmod 755 /system/xbin/busybox"
$adb shell "/system/xbin/busybox --install /system/xbin"

echo Installing CWM Recovery
$adb remount
$adb shell "rm /system/etc/install-recovery.sh"
$adb shell "rm /system/recovery-from-boot.p"
$adb shell "dd if=/data/local/tmp/cwmrecovery.img of=/dev/block/mmcblk0p13 bs=4096"

echo Removing Trash
$adb shell "rm /data/local/tmp/cwmrecovery.img"
$adb shell "rm /data/local.prop"
$adb shell "rm /data/gpscfg/*"
$adb shell "chmod 771 /data/"

echo Finished Recovery!!!
$adb reboot

echo "[*] Press any key to exit."

read -n1 -r
exit

So... Just an FYI, that's not the same script that I linked... quite awhile ago.

I'm willing to bet that it's horribly outdated.


I'd highly recommend using the one that I linked the other day, as it uses a slightly different method to obtain root than what you've posted here.
 
Back
Top Bottom