[Beta] ZVJ rooting automation - please help test

Okay here's what I've done and still no dice
Went from stock ZVD to rooted ZVD using automated script. Cool, no problem here.
On to B. Initiated and completed A (1-3). #4 Reenable USB Debugging? How is one to this without rebooting into Android?
The reason why I ask is because I have been booted to recovery. Good. And when I move on to B and initiate the commands I end up with a stock ZVJ.
So I do it all over again from a rooted ZVD and try again. I get the prompt to Re-enable USB debugging and wait until phone connects but it just sits there. The only solution is to reboot system again. At recovery, which it boots into, I follow the steps in B MANUALLY and 'apply...' Now, I don't reboot and proceed to C and get, yet again:

Getting ready to


INSTALL persistent root (sans exploit)


Press any key to continue . . .

----

Proceeding with install

---- BEGIN LOG ----

...Proceeding to copy necessary files...

push: copy2sd/000root/Superuser.apk -> /sdcard/000root/Superuser.apk
push: copy2sd/000root/su -> /sdcard/000root/su
push: copy2sd/000root/misc.img -> /sdcard/000root/misc.img
push: copy2sd/000root/install-unroot.sh -> /sdcard/000root/install-unroot.sh
push: copy2sd/000root/install-root.sh -> /sdcard/000root/install-root.sh
push: copy2sd/000root/install-recovery-xionia.sh -> /sdcard/000root/install-reco
very-xionia.sh
push: copy2sd/000root/install-recovery-xionia-misc.sh -> /sdcard/000root/install
-recovery-xionia-misc.sh
push: copy2sd/000root/install-recovery-vj-misc.sh -> /sdcard/000root/install-rec
overy-vj-misc.sh
push: copy2sd/000root/install-recovery-vd.sh -> /sdcard/000root/install-recovery
-vd.sh
push: copy2sd/000root/install-recovery-common.sh -> /sdcard/000root/install-reco
very-common.sh
push: copy2sd/000root/install-misc-common.sh -> /sdcard/000root/install-misc-com
mon.sh
push: copy2sd/000root/install-cleanup.sh -> /sdcard/000root/install-cleanup.sh
push: copy2sd/000root/install-cleanup-cache.sh -> /sdcard/000root/install-cleanu
p-cache.sh
push: copy2sd/000root/func.inc.sh -> /sdcard/000root/func.inc.sh
push: copy2sd/000root/flash_image -> /sdcard/000root/flash_image
push: copy2sd/000root/busybox -> /sdcard/000root/busybox
16 files pushed. 0 files skipped.
2281 KB/s (2482507 bytes in 1.062s)
push: copy2sd-img/000root/xionia_cwma_12518.6.img -> /sdcard/000root/xionia_cwma
_12518.6.img
push: copy2sd-img/000root/recovery_vj.img -> /sdcard/000root/recovery_vj.img
push: copy2sd-img/000root/recovery_vd.img -> /sdcard/000root/recovery_vd.img
3 files pushed. 0 files skipped.
2423 KB/s (17641472 bytes in 7.109s)

- exec '/system/bin/sh' failed: No such file or directory (2) -

- exec '/system/bin/sh' failed: No such file or directory (2) -

---- END LOG ----

----

Getting ready to reboot...

Press any key to continue . . .


And after reboot, I get the same 'E:Can't find command file CACHE:recovery command Installation aborted. no valid image in ACHE.

Anyway, Thanks tough
 
Hi sfhub,

I'm currently rooted on zvh (using your system) and using link2sd. I'm a little confused. If I use option B, it then gives me another sub menu. Am I supposed to click through all of these steps?

It I want to skip the wipe data/factory reset, should I be ok? Also, do you know if link2sd will work?
 
Okay here's what I've done and still no dice
Went from stock ZVD to rooted ZVD using automated script. Cool, no problem here.
On to B. Initiated and completed A (1-3). #4 Reenable USB Debugging? How is one to this without rebooting into Android?
Code:
A.  Install ZVJ recovery / Reboot Recovery                             
                                                                       
    Perform on Phone (should be in Recovery, if not, REPEAT last step) 
    1. wipe data/factory reset  (OPTIONAL/HIGHLY SUGGESTED)            
    2. apply sdcard:update.zip  (2-5 min)                              
    [B][U]3. reboot system now[/U][/B]                                               
    4. RE-ENABLE USB Debugging  (Menu to skip Activation)
After you perform A3 didn't it put you back into Android? From there, re-enable USB Debugging.

The reason why I ask is because I have been booted to recovery.
Are you literally rebooting by hand for #A3 or choosing the option from Recovery that says "reboot system now"? It should be the latter, and after you select it should say writing radio image, then proceed to reboot to Android (it'll briefly go back to recovery to format /cache, but then will proceed to boot into Android)

Good. And when I move on to B and initiate the commands I end up with a stock ZVJ.
When you run Step B, are you booted into Recovery or Android? You should have been in Android when running Step B due to #A3.

After doing step A2 above, you already had stock ZVJ, but you also have a Recovery which will allow you to root later on in Step C.

So it looks like this:
start with a rooted system

Step A
use rooted system to install ZVJ recovery and copy ZVJ update.zip to phone
boot into recovery
A1) have user wipe/factory reset
A2) have user manually install ZVJ update.zip on the phone from within recovery
A3) have user choose the "reboot system now" option from within recovery

phone will boot into stock ZVJ
USB debugging will be disabled due to ZVJ update

A3) instruct user to re-enable USB debugging

Step B
once USB debugging is enabled have user select step B
this will copy a new update.zip to the phone and reboot into Recovery

B1) have user apply the update.zip. This will cause /system to be mounted so "adb shell" will work and Step C can complete properly. There will be an error when user applies update.zip. This IS EXPECTED.

Step C
Once B1 is done have user select Step C. This will install persistent root and Xionia Recovery.

Getting ready to


INSTALL persistent root (sans exploit)


Press any key to continue . . .

----

Proceeding with install

---- BEGIN LOG ----

...Proceeding to copy necessary files...

...
push: copy2sd-img/000root/recovery_vj.img -> /sdcard/000root/recovery_vj.img
push: copy2sd-img/000root/recovery_vd.img -> /sdcard/000root/recovery_vd.img
3 files pushed. 0 files skipped.
2423 KB/s (17641472 bytes in 7.109s)

- exec '/system/bin/sh' failed: No such file or directory (2) -

- exec '/system/bin/sh' failed: No such file or directory (2) -

---- END LOG ----

----

Getting ready to reboot...

Press any key to continue . . .
This log you are providing is from running Step C. The reason you get the "exec '/system/bin/sh'" error is because the /system partition is not mounted. The reason it is not mounted is because Step B1 above wasn't performed, or was performed, but the proper update.zip wasn't in place.

And after reboot, I get the same 'E:Can't find command file CACHE:recovery command Installation aborted. no valid image in ACHE.
This is a red-herring error message and can be ignored. Recovery is still functional.

Code:
A.  Install ZVJ recovery / Reboot Recovery                             
                                                                       
    Perform on Phone (should be in Recovery, if not, REPEAT last step) 
    1. wipe data/factory reset  (OPTIONAL/HIGHLY SUGGESTED)            
    2. apply sdcard:update.zip  (2-5 min)                              
    3. reboot system now                                               
    4. RE-ENABLE USB Debugging  (Menu to skip Activation)              
                                                                       
B.  Reboot Recovery (REPEAT STEP if phone does not boot to Recovery)   
                                                                       
    Perform on Phone (should be in Recovery, if not, REPEAT last step) 
    1. apply sdcard:update.zip  (errors are EXPECTED)                  
       DO NOT REBOOT, proceed to next step                             
                                                                       
C.  Install Root (INSTALL su, busybox, Xionia CWMA Recovery)
 
Hi sfhub,

I'm currently rooted on zvh (using your system) and using link2sd. I'm a little confused. If I use option B, it then gives me another sub menu. Am I supposed to click through all of these steps?

It I want to skip the wipe data/factory reset, should I be ok? Also, do you know if link2sd will work?
Yes, you would run through each step.

Step A installs ZVJ recovery and copies ZVJ update.zip to phone then reboots you into Recovery
Then you need to run some stuff in recovery on the phone itself
After reboot, ZVJ update would have reset USB Debugging, so you need to re-enable

Step B copies a new update.zip to your phone and reboots to Recovery

You need to apply the update.zip to get /system mounted

Step C - Once /system is mounted, run Step C to install root and Xionia, and reboot to Android

Regarding link2sd you need to reinstall it. If it worked on ZVH it should work on ZVJ.
 
ok, i'm just trying to figure this out on the fly. I just did a nandroid backup, so I guess i could do a full wipe if needed. Have you found that to be necessary?
 
ok, i'm just trying to figure this out on the fly. I just did a nandroid backup, so I guess i could do a full wipe if needed. Have you found that to be necessary?
I'm going from pure stock ZVD to ZVJ and haven't need to, but the more you mess with the system boot, the more likely a wipe will help. Try it without first, if it hangs, you can always restore your nandroid and start again, wiping the next time.

I redid the instructions to specify whether steps are done in Recovery or in Android, hopefully it is clearer (this change isn't uploaded yet)
23441d1334096859-beta-zvj-rooting-automation-please-help-test-root-opti-11.2.6.jpg
 
Last edited:
Forgive me, I'm a little slow to learn. I've downloaded the program, plugged my phone in. I need to do the 3 finger salute to get into custom recovery with the phone plugged in and then start the process from my computer?
 
Forgive me, I'm a little slow to learn. I've downloaded the program, plugged my phone in. I need to do the 3 finger salute to get into custom recovery with the phone plugged in and then start the process from my computer?
No, just start the process booted into Android.
 
worked! It looks like that I will have to rebuild all of the linked2sd files, unless there is a way using recovery to reload the previous settings.
 
hold on. I don't have root access, or perhaps because everything is linked to link2sd, i can't cant to it.
 
hold on. I don't have root access, or perhaps because everything is linked to link2sd, i can't cant to it.
Can you enable the scroll buffer on the main page so you can see the logs better.

Also post the log if you see any errors.
 
i think i updated to zvj, but lost root access and access to all my programs linked to link2sd. I think what happened is that in one of the steps, I did not boot the phone to check the debugging and thats what caused my programs. When i try to boot into recovery, i get the stock recovery, so i don't know how to access my recovery or start over. I guess I'll try to reload your software, or revert to previous. Please suggest
 
i think i updated to zvj, but lost root access and access to all my programs linked to link2sd. I think what happened is that in one of the steps, I did not boot the phone to check the debugging and thats what caused my programs. When i try to boot into recovery, i get the stock recovery, so i don't know how to access my recovery or start over. I guess I'll try to reload your software, or revert to previous. Please suggest
Just restart from Step B and it should work fine to install root and Xionia.

As long as you get the ZVJ Recovery installed, every other step can be repeated as many times as necessary.
 
Last edited:
Thanks sfhub the app was flawless I just had a user error I was not reading with my glasses lol

Sent with telepathic powers
 
I've somehow manage to cuss things up titanically. It all started when I rebooted at the wrong time while updating from rooted ZVH. Now no matter what I do I get "Access is Denied" no matter what I do with the automated script. Even if I start it up and hit "I" to exit it says "Access is Denied". I tried going back to stock ZVD and re-running it, but "Access is Denied" persists. I even restored my original nandroid backup at ZVD and still the same thing. I'm about to cussing lose it at this point! Can't find any post with similar issues. Can anyone lead me out of this desert?
 
I've somehow manage to cuss things up titanically. It all started when I rebooted at the wrong time while updating from rooted ZVH. Now no matter what I do I get "Access is Denied" no matter what I do with the automated script. Even if I start it up and hit "I" to exit it says "Access is Denied". I tried going back to stock ZVD and re-running it, but "Access is Denied" persists. I even restored my original nandroid backup at ZVD and still the same thing. I'm about to cussing lose it at this point! Can't find any post with similar issues. Can anyone lead me out of this desert?
What is saying access denied? The optiauto tool?

Perhaps you need to run it as administrator?

Also you can try Option F, then "Stop ADB Server"
 
Worked like a champ!! Rooted ZVJ:D Question: Can I flash Hydro, install TB and reinstall apps? Thanks for your Opti dedication...Simply flawless!!!! :D
 
Oh yeah, minor suggestion if I may. When you say it will show errors after installing the 2nd update.zip maybe let people know what it will say "installation aborted" and to proceed to step C anyway. If you've already covered this, Sorry!
 
What is saying access denied? The optiauto tool?

Perhaps you need to run it as administrator?

Also you can try Option F, then "Stop ADB Server"

Yes the optiauto tool. I have no idea what I've done, but even "Stop ADB Server" says "Access is Denied." I'm running windows xp with administrator rights. The strange thing is I originally ran the optiauto tool without a problem, but I manually rebooted when it said not to while tending to my 5 year old. I'll try another computer and edit if I get it working. Thanks for the help. Another strange thing is I can run adb command without a problem, but when I so the manual update to ZVJ after rooting ZVD I lose root. Driving me nuts.

*Edit

Tried it on my other computer and it worked perfectly. Went from stock ZVD to rooted ZVJ in about 5 minutes. Why didn't I try that sooner!!! Thanks a lot sfhub and and all the other contributors to the optimus scene.
 
Last edited:
Worked like a champ!! Rooted ZVJ:D Question: Can I flash Hydro, install TB and reinstall apps? Thanks for your Opti dedication...Simply flawless!!!! :D
I would first make a nandroid backup so you can get back to a clean ZVJ install.

I believe ZVH ROMs will work with ZVJ radio, at least that is what some folks have reported, but if it doesn't then at least you have a nandroid backup to go back to.

Also in Titanium, do not restore system apps, only restore user apps. If you restore system apps, try restoring system data but not apps.
 

Trending Posts

Forum statistics

Threads
956,903
Messages
6,970,527
Members
3,163,646
Latest member
Chris34728