[TOOL][LB] Recovery Installer [WIN/LINUX/MAC]

Search This thread
some report...

Hi!
After some hour of use:
-if I flash something, its not there
-I can make a backup, but can't restore it
-the only way to reboot is that wipe cache and dalvik cache, after that i have to confirm to flash or not flash the stock recovery about two :eek:
-when wipe dalvik cache the recovery says: E:unknown wolume for path [/sd-ext]
-I cant mount system, cache, and when want to flash something it someimes says that can't mount system partition (I think thats the problem why we can't see anything that flashed)
There is nothing else I find yet, but when I will, I will report back!
Hope there will be some solution!
Keep up the good work!!
We have recovery!!!
 
D

Deleted member 4736004

Guest
Hi!
After some hour of use:
-if I flash something, its not there
-I can make a backup, but can't restore it
-the only way to reboot is that wipe cache and dalvik cache, after that i have to confirm to flash or not flash the stock recovery about two :eek:
-when wipe dalvik cache the recovery says: E:unknown wolume for path [/sd-ext]
-I cant mount system, cache, and when want to flash something it someimes says that can't mount system partition (I think thats the problem why we can't see anything that flashed)
There is nothing else I find yet, but when I will, I will report back!
Hope there will be some solution!
Keep up the good work!!
We have recovery!!!

hi,
I've noticed this too.
/system can't be mounted [It's mounted ro instead of rw]
This is why you can make backup but can't restore it [writing /system fails]
I'm looking into it. This could be due to ric service started in init.target.rc
but thats unlikely because install-recovery.sh in init.rc reboots the device. After reboot we run init.recovery.rc which executes the patched sa77_recovery binary in system/bin. So init.target.rc isn't started second time (possibly)
However, I've noticed this :
Code:
#init.recovery.rc

on early-init
    start ueventd

on init
#/* [SA77] S Bruce_Chen Bug#291 recovery mode shall be mount system (except FOTA) */
    export PATH /sbin:/system/bin
#/* [SA77] E Bruce_Chen Bug#291 recovery mode shall be mount system (except FOTA) */
    export ANDROID_ROOT /system
    export ANDROID_DATA /data
    export EXTERNAL_STORAGE /sdcard

    symlink /system/etc /etc

    mkdir /sdcard
    mkdir /system
    mkdir /data
    mkdir /cache
    mkdir /tmp
    mount /tmp /tmp tmpfs

    chown root shell /tmp
    chmod 0775 /tmp

    [COLOR="Red"]mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1 wait[/COLOR]
[COLOR="Blue"]#WHY?
[/COLOR]
    write /sys/class/android_usb/android0/enable 0
    write /sys/class/android_usb/android0/idVendor 05C6
    write /sys/class/android_usb/android0/idProduct 9025
    write /sys/class/android_usb/android0/f_diag/clients diag
    write /sys/class/android_usb/android0/functions diag,adb
    write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
    write /sys/class/android_usb/android0/iProduct ${ro.product.model}
    write /sys/class/android_usb/android0/iSerial ${ro.serialno}
    write /sys/class/android_usb/android0/enable 1
    start adbd

on boot

    ifup lo
    hostname localhost
    domainname localdomain

    class_start default

service ueventd /sbin/ueventd
    critical

[COLOR="SeaGreen"]service recovery /system/bin/sa77_recovery[/COLOR]
[COLOR="Blue"]#Recovery loads from here
[/COLOR]
service adbd /sbin/adbd
    disabled


# Restart adbd so it can run as root
on property:service.adb.root=1
    write /sys/class/android_usb/android0/enable 0
    restart adbd
    write /sys/class/android_usb/android0/enable 1

@[NUT]can you look into this?

EDIT: Guys. I won't be available until late march due to unavailability of both phone and laptop.
However, I've asked some other guys to contribute to the source. :)
 
Last edited by a moderator:
  • Like
Reactions: srtulon and dywerd

varun.chitre15

Inactive Recognized Developer
Oct 23, 2011
3,153
15,403
Sangli
Hi!
After some hour of use:
-if I flash something, its not there
-I can make a backup, but can't restore it
-the only way to reboot is that wipe cache and dalvik cache, after that i have to confirm to flash or not flash the stock recovery about two :eek:
-when wipe dalvik cache the recovery says: E:unknown wolume for path [/sd-ext]
-I cant mount system, cache, and when want to flash something it someimes says that can't mount system partition (I think thats the problem why we can't see anything that flashed)
There is nothing else I find yet, but when I will, I will report back!
Hope there will be some solution!
Keep up the good work!!
We have recovery!!!

Can you post log files from /cache/recovery folder?





hi,
I've noticed this too.
/system can't be mounted [It's mounted ro instead of rw]
This is why you can make backup but can't restore it [writing /system fails]
I'm looking into it. This could be due to ric service started in init.target.rc
but thats unlikely because install-recovery.sh in init.rc reboots the device. After reboot we run init.recovery.rc which executes the patched sa77_recovery binary in system/bin. So init.target.rc isn't started second time (possibly)
However, I've noticed this :
Code:
#init.recovery.rc

on early-init
    start ueventd

on init
#/* [SA77] S Bruce_Chen Bug#291 recovery mode shall be mount system (except FOTA) */
    export PATH /sbin:/system/bin
#/* [SA77] E Bruce_Chen Bug#291 recovery mode shall be mount system (except FOTA) */
    export ANDROID_ROOT /system
    export ANDROID_DATA /data
    export EXTERNAL_STORAGE /sdcard

    symlink /system/etc /etc

    mkdir /sdcard
    mkdir /system
    mkdir /data
    mkdir /cache
    mkdir /tmp
    mount /tmp /tmp tmpfs

    chown root shell /tmp
    chmod 0775 /tmp

    [COLOR="Red"]mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1 wait[/COLOR]
[COLOR="Blue"]#WHY?
[/COLOR]
    write /sys/class/android_usb/android0/enable 0
    write /sys/class/android_usb/android0/idVendor 05C6
    write /sys/class/android_usb/android0/idProduct 9025
    write /sys/class/android_usb/android0/f_diag/clients diag
    write /sys/class/android_usb/android0/functions diag,adb
    write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
    write /sys/class/android_usb/android0/iProduct ${ro.product.model}
    write /sys/class/android_usb/android0/iSerial ${ro.serialno}
    write /sys/class/android_usb/android0/enable 1
    start adbd

on boot

    ifup lo
    hostname localhost
    domainname localdomain

    class_start default

service ueventd /sbin/ueventd
    critical

[COLOR="SeaGreen"]service recovery /system/bin/sa77_recovery[/COLOR]
[COLOR="Blue"]#Recovery loads from here
[/COLOR]
service adbd /sbin/adbd
    disabled


# Restart adbd so it can run as root
on property:service.adb.root=1
    write /sys/class/android_usb/android0/enable 0
    restart adbd
    write /sys/class/android_usb/android0/enable 1

I think this can be probably solved by mounting the complete block world writable just within the recovery binary but I am not sure.
I wonder how the stock sa77 recovery works with read only system partition. Sony's recovery binary might be mounting the complete block as world writable. If it is so, I can replicate it within CWM as well. I just need the logs.

Sent from my C2104 using Tapatalk
 

varun.chitre15

Inactive Recognized Developer
Oct 23, 2011
3,153
15,403
Sangli
I have to reflash the rom because some problem in the flash process :( ,but will try another and make a log :eek: but don't know how, 'cause didn't make one or another yet :confused: :eek: ;)
You don't need to follow any extra procedure. Just try flashing that same zip which doesn't work and upload all files under /cache/recovery


Sent from my C2104 using Tapatalk
 
  • Like
Reactions: dywerd

varun.chitre15

Inactive Recognized Developer
Oct 23, 2011
3,153
15,403
Sangli
@varun.chitre15

So there it is!
I try to install "Xperia Tablet S Keyboard port For any device by ThilinaC", but no succes :(
after install, in recovery/advanced menu - show log:
" I:Can't partition non-vfat: auto
I:Can't format unknown volume: /emmc"
say that... if its help....:eek:

Ok now do this
In CWM go to mounts and storage section
And select mount /system option and post another log.

Sent from my C2104 using Tapatalk
 
@Nut
Hi! I hope I do it right or this can help! I have to install adb driver manually when my phone in that cwm. After that on windows run adb shell and write in "mount" and "cat /proc/mounts", working that two, and the log attached...
If I can help somehow, let me know ;)
Good luck!
 

Attachments

  • adb_log.txt
    1 KB · Views: 46
  • Like
Reactions: [NUT]

[NUT]

Senior Member
@Nut
Hi! I hope I do it right or this can help! I have to install adb driver manually when my phone in that cwm. After that on windows run adb shell and write in "mount" and "cat /proc/mounts", working that two, and the log attached...
If I can help somehow, let me know ;)
Good luck!

Thanks, that confirms my suspicion: in adb shell, type 'umount /system' and post the result here.
 

[NUT]

Senior Member
Ther it is...
I was not sure that you type incorrect or thats the code (umount), so I type in two other ways... hope you understand... :angel:

I do, but i know my linux/android commands, so don't worry :)

Can you please execute the following and report the findings:

'mount -o remount,rw /system'

and

'busybox lsof'

And again, put them here :)

You are doing a great job dude, thanks for helping out :good:
 
I do, but i know my linux/android commands, so don't worry :)

Can you please execute the following and report the findings:

'mount -o remount,rw /system'

and

'busybox lsof'

And again, put them here :)

You are doing a great job dude, thanks for helping out :good:

So there it is...
I know you are not "launchie" (from Ender's Game ;)), its me who don't know about these commands :(
Anyway I'm glad to help :victory: :)
 

Attachments

  • adb_log_3.txt
    3.3 KB · Views: 34
  • Like
Reactions: [NUT]

Top Liked Posts

  • There are no posts matching your filters.
  • 112
    D
    Deleted member 4736004
    This tool will allow you to install recovery on locked bootloader.

    Recovery Options:
    1. CWM
    2. TWRP
    3. Philz touch

    Requirements:
    1. Win/Linux/MAC
    2. rooted phone
    3. 15.3.A.0.26 or above

    To enter recovery: Press either vol button on boot when the cyan LED glows.

    Credits:
    @[NUT] for CWM & PhilZ

    Download
    Source Tool
    Source Device Tree

    XDA:DevDB Information
    Recovery for locked bootloaders, Tool/Utility for the Sony Xperia L

    Contributors
    Rachit Rawat, [NUT]

    Version Information
    Status: Stable

    Created 2013-12-29
    Last Updated 2014-07-24
    14
    D
    Deleted member 4736004
    So me and @[NUT] had been working on this lately...

    v1.5 Changelog : Hot update

    Fix screen shift issue completely [Thanks to @alvinochun for the tip on framebuffer]
    Update CWM recovery
    philz recovery added as an option
    Open xda thread option in shell script too
    TWRP WIP!

    Cheers!
    14
    CWM_XperiaL_LockedBootloader_3.zip (3.48MB)

    Updated CWM to 6.0.4.8, built by me using the CM-11.0 device repo from @varun.chitre15.

    The reboot to system from within CWM causing the stock recovery to appear has been fixed by this update.

    The multiple vibrations and a long wait at the green led is now back to one vibration and 3 seconds to press a volume button.

    The menu still jumps, but now starts in an offset position... still working on it though.

    Known issue: the touch/swipe actions which are supposed to work on this version of CWM, do not work.
    13
    D
    Deleted member 4736004
    v1.4 changelog:

    * UI enhancements
    * Now supports menu using do while in sh and GOTO in bat
    1.Install cwm 6.0.4.8
    2.Install some other recovery
    3.Uninstall recovery
    4.exit
    *remove unnecessary delay in booting cwm
    *switch to one time cyan LED
    *Vibrator now triggers if keycheck is detected
    *code cleanup
    13
    D
    Deleted member 4736004
    TWRP support added. Took some time to figure out what was borking it.
    Enjoy! :D