[RECOVERY][XSOLA] TWRP 2.7.0.0 touch recovery [2014-04-27]

Search This thread

AGONTUK

Senior Member
Feb 22, 2013
624
2,630
Dhaka
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

KL32bPn.png
lsmud9t.png
acYOCr3.png


Introduction:

Team Win Recovery Project or twrp2 for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added a lot of our own features. It's a fully touch driven user interface , no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

Key Features:

Touchscreen driven with real buttons and drag-to-scroll
XML-based GUI that allows full customization of the layout true theming!
Settings are saved to the sdcard and persist through reboots
Ability to choose which partitions to back up and which to restore
Ability to choose to compress backups now with pigz (multi-core processor support for faster compression times)
Onscreen keyboard
Decryption of /data
Easy selection of internal/external storage


Installation:

since our device developers are constantly trying to fix bugs, they are always changing something in init.*.rc files for testing. For this reason I can't post a regular boot.img file because it won't work. For now, I've created a script that will take all init.*.rc files from current rom's boot.img and then compile new boot.img with TWRP inside it.

Note : For Rooted & Unlocked Bootloader Only
Note : For 4.4 ROM (should work on older version of android upto 4.1). I don't own Xperia Sola so didn't test it. So please provide feedback

1) Download the latest zip file.
2) Extract it in a folder and place your current rom's boot.img inside that folder. (it must be named boot.img)
3) Connect your phone with PC. (adb must be working)
4) Open your command line and cd to that folder
5) For linux users, type
Code:
chmod 755 run_me.sh
./run_me.sh

For windows users, type
Code:
run_me.bat

new boot.img file will be created in the current directory named new_boot.img. Power off your phone and flash the boot image.
Code:
fastboot flash boot new_boot.img

Theming:

Information on TWRP 2 Theming - http://teamw.in/project/twrp2themers

To ROM makers

if you include it in your ROM, please give proper credits cause I've spent almost a month trying to port this.Thanks.

Download

Final Version => recovery_install_20140427.zip - 6.42 MB


Source

TWRP source -> https://github.com/omnirom/android_bootable_recovery

device tree -> https://github.com/Agontuk/android_device_sony_pepper

Credits

all teamwin members, especially @Dees_Troy for giving me constant advice
@munjeni for his support and answering all my questions :)
@cpkunki for making this thread featured in the portal
 

Attachments

  • recovery_install.zip
    4.6 MB · Views: 3,379
Last edited:

AGONTUK

Senior Member
Feb 22, 2013
624
2,630
Dhaka
Changelog 16/03/2014
  • booted
  • full touch working
  • adb working
  • usb mass storage not working
  • fixed show battery capacity & charging status (+ icon next to percentage)
  • reboot to bootloader working (from twrp menu)

Changelog 19/03/2014
  • added battery led to indicate battery status
  • usb mass storage still not working
  • reboot to recovery working now
  • reboot to bootloader working now

Changelog 22/03/2014
  • internal storage is mounting
  • battery led works properly
  • added brightness slider
  • changed to default sony logo

Changelog 27/04/2014
  • Everything works fine
 
Last edited:

pingu_c660

Senior Member
Jan 15, 2012
240
192
depends on your feedback.
  • booted ?
  • full touch working ?
  • adb working ?
  • usb mass storage working ?
  • fixed show battery capacity & charging status (+ icon next to percentage) ?
  • reboot to bootloader working (from twrp menu) ?


1. YES
2. yes
3. not yet tested
4. i dont use xternal sd card but when i select mount usb storage, i cant see my sdcard on my computer
5. yes
6. when i select reboot to bootloader (from twrp menu) my phone just shutdown

and when i reboot to recovery (from phone) it takes time . . . reaallyy reaally long time (that's when i decided to force my phone to reboot)
 
Last edited:

AGONTUK

Senior Member
Feb 22, 2013
624
2,630
Dhaka
1. YES
2. yes
3. not yet tested
4. i dont use xternal sd card but when i select mount usb storage, i cant see my sdcard on my computer
5. yes
6. when i select reboot to bootloader (from twrp menu) my phone just shutdown

and when i reboot to recovery (from phone) it takes time . . . reaallyy reaally long time (that's when i decided to force my phone to reboot)
3,4)check first if adb is working or not. If not, check your driver from device manager. ADB & usb mass storage mount should work.

6)When you pressed reboot to bootloader, did your phone was connected to PC? If not, pls check again with phone connected and see if it enters fastboot.
reboot to recovery options is not yet fixed, I think. Can you pls provide me the output of the command cat /proc/cmdline before and after you pressed reboot to recovery ?
 
  • Like
Reactions: Anthrax

pingu_c660

Senior Member
Jan 15, 2012
240
192
3,4)check first if adb is working or not. If not, check your driver from device manager. ADB & usb mass storage mount should work.

6)When you pressed reboot to bootloader, did your phone was connected to PC? If not, pls check again with phone connected and see if it enters fastboot.
reboot to recovery options is not yet fixed, I think. Can you pls provide me the output of the command cat /proc/cmdline before and after you pressed reboot to recovery ?

3 -4: ADB is working and also i have my driver installed. and what is this ADB sideload do??? about the USB mount same result
6. it works and enter to fastboot mode

reboot to recover:

Before
Code:
startup=0x1 warmboot=0x0 ta_info=9,4,256 androidboot.bootloader=s1 androidboot.serialno=BX9030XM7U cachepolicy=writealloc noinitrd init=init board_id=1 logo.nologo root=/dev/ram0 rw rootwait console=null androidboot.console=null androidboot.hardware=st-ericsson [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] mpcore_wdt.mpcore_margin=359 end audit=1  semcandroidboot.babe1324=425839303330584d3755

after (after i pressed the reboot to recovery button and the phone is in "rebooting stage"
Code:
startup=0x1 warmboot=0x0 ta_info=9,4,256 androidboot.bootloader=s1 androidboot.serialno=BX9030XM7U cachepolicy=writealloc noinitrd init=init board_id=1 logo.nologo root=/dev/ram0 rw rootwait console=null androidboot.console=null androidboot.hardware=st-ericsson [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] mpcore_wdt.mpcore_margin=359 end audit=1  semcandroidboot.babe1324=425839303330584d3755
 
Last edited:
  • Like
Reactions: AGONTUK

AGONTUK

Senior Member
Feb 22, 2013
624
2,630
Dhaka
3 -4: ADB is working and also i have my driver installed. and what is this ADB sideload do??? about the USB mount same result
6. it works and enter to fastboot mode

reboot to recover:

Before
Code:
startup=0x1 warmboot=0x0 ta_info=9,4,256 androidboot.bootloader=s1 androidboot.serialno=BX9030XM7U cachepolicy=writealloc noinitrd init=init board_id=1 logo.nologo root=/dev/ram0 rw rootwait console=null androidboot.console=null androidboot.hardware=st-ericsson [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] mpcore_wdt.mpcore_margin=359 end audit=1  semcandroidboot.babe1324=425839303330584d3755

after (after i pressed the reboot to recovery button and the phone is in "rebooting stage"
Code:
startup=0x1 warmboot=0x0 ta_info=9,4,256 androidboot.bootloader=s1 androidboot.serialno=BX9030XM7U cachepolicy=writealloc noinitrd init=init board_id=1 logo.nologo root=/dev/ram0 rw rootwait console=null androidboot.console=null androidboot.hardware=st-ericsson [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] mpcore_wdt.mpcore_margin=359 end audit=1  semcandroidboot.babe1324=425839303330584d3755

usb mount should have worked. Please boot into recovery again and mount the usb storage. Then give me the output of this command
cat /sys/devices/platform/musb-ux500.0/musb-hdrc/gadget/lun0/file

This doesn't seem right, both cmdline is same. If you can reboot to recovery with CWM, then flash the boot.img with CWM again and follow this
1) while your device is on, run cat /proc/cmdline and post it here.
2) now reboot to recovery from power menu or from other software (romtoolbox)
3) while in recovery, run again cat /proc/cmdline and post it here.
 

mr.abdolian

Senior Member
Jul 8, 2013
150
85
27
Esfahan
MRAbdolian.webs.com
Just TNX !

Bro @NoobCoder, Your work is really excellent !
This is exactly what I need...I looked for this many times before but I didn't find any helpful post...but now you DID IT!
I love TWRP Recovery.
Again TNX for your work. I appreciate it.
 

AGONTUK

Senior Member
Feb 22, 2013
624
2,630
Dhaka

ChinmayKunkikar

Senior Member
Nov 15, 2012
1,035
1,119
Pune
@NoobCoder bro, I really want to give it a try :) but my problem is that I am not able to setup ADB currently. :/
So can I use Terminal emulator or similar app to make a new boot.img?


Sent from my MT27i using XDA Premium 4 mobile app
 
Last edited:

AGONTUK

Senior Member
Feb 22, 2013
624
2,630
Dhaka
@NoobCoder bro, I really want to give it a try :) but my problem is that I am not able to setup ADB currently. :/
So can I use Terminal emulator or similar app to make a new boot.img?

Sent from my MT27i using XDA Premium 4 mobile app

you can, but it'll be complicated. I think you should setup ADB, cause you have to check later if adb is working in recovery and also usb mass storage.

1) move binaries from image_tools to system/bin and chmod them to 755
2) move new_recovery.sh to /data/local and chmod to 755
3) move my initrd.gz and your boot.img to /data/local/tmp
4) now in terminal, cd to /data/local then type ./new_recovery.sh

your new boot.img will be in /data/local/tmp/boot folder named boot.img
 

ChinmayKunkikar

Senior Member
Nov 15, 2012
1,035
1,119
Pune
you can, but it'll be complicated. I think you should setup ADB, cause you have to check later if adb is working in recovery and also usb mass storage.

1) move binaries from image_tools to system/bin and chmod them to 755
2) move new_recovery.sh to /data/local and chmod to 755
3) move my initrd.gz and your boot.img to /data/local/tmp
4) now in terminal, cd to /data/local then type ./new_recovery.sh

your new boot.img will be in /data/local/tmp/boot folder named boot.img

Thanks for your super quick response bro! ;)

I was trying the linux commands that you mentioned.in OP. :p

Yes I followed the steps correctly and got my boot.img successfully. Flashed it and finally got TWRP for my Sola!
Thanks to you! :)

My Feedback-Everything seems to be working perfectly except for 1 or 2 issues that I'm experiencing.

First is-
As soon as I enter the recovery, it keeps locking automatically and I have to keep unlocking it.

Secondly-
The touch sensitivity is quite high. Sola has got its floating touch working here.
It experiences touch even when hovered over the screen which is quiet uncomfortable.

Any more feedback or any logs you need, tell me. :)


Celebrating first anniversary of my beautiful Sola..
 
Last edited:
  • Like
Reactions: EnvyBot and AGONTUK

Top Liked Posts

  • There are no posts matching your filters.
  • 32
    Code:
    #include <std_disclaimer.h>
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */

    KL32bPn.png
    lsmud9t.png
    acYOCr3.png


    Introduction:

    Team Win Recovery Project or twrp2 for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added a lot of our own features. It's a fully touch driven user interface , no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

    Key Features:

    Touchscreen driven with real buttons and drag-to-scroll
    XML-based GUI that allows full customization of the layout true theming!
    Settings are saved to the sdcard and persist through reboots
    Ability to choose which partitions to back up and which to restore
    Ability to choose to compress backups now with pigz (multi-core processor support for faster compression times)
    Onscreen keyboard
    Decryption of /data
    Easy selection of internal/external storage


    Installation:

    since our device developers are constantly trying to fix bugs, they are always changing something in init.*.rc files for testing. For this reason I can't post a regular boot.img file because it won't work. For now, I've created a script that will take all init.*.rc files from current rom's boot.img and then compile new boot.img with TWRP inside it.

    Note : For Rooted & Unlocked Bootloader Only
    Note : For 4.4 ROM (should work on older version of android upto 4.1). I don't own Xperia Sola so didn't test it. So please provide feedback

    1) Download the latest zip file.
    2) Extract it in a folder and place your current rom's boot.img inside that folder. (it must be named boot.img)
    3) Connect your phone with PC. (adb must be working)
    4) Open your command line and cd to that folder
    5) For linux users, type
    Code:
    chmod 755 run_me.sh
    ./run_me.sh

    For windows users, type
    Code:
    run_me.bat

    new boot.img file will be created in the current directory named new_boot.img. Power off your phone and flash the boot image.
    Code:
    fastboot flash boot new_boot.img

    Theming:

    Information on TWRP 2 Theming - http://teamw.in/project/twrp2themers

    To ROM makers

    if you include it in your ROM, please give proper credits cause I've spent almost a month trying to port this.Thanks.

    Download

    Final Version => recovery_install_20140427.zip - 6.42 MB


    Source

    TWRP source -> https://github.com/omnirom/android_bootable_recovery

    device tree -> https://github.com/Agontuk/android_device_sony_pepper

    Credits

    all teamwin members, especially @Dees_Troy for giving me constant advice
    @munjeni for his support and answering all my questions :)
    @cpkunki for making this thread featured in the portal
    8
    Changelog 16/03/2014
    • booted
    • full touch working
    • adb working
    • usb mass storage not working
    • fixed show battery capacity & charging status (+ icon next to percentage)
    • reboot to bootloader working (from twrp menu)

    Changelog 19/03/2014
    • added battery led to indicate battery status
    • usb mass storage still not working
    • reboot to recovery working now
    • reboot to bootloader working now

    Changelog 22/03/2014
    • internal storage is mounting
    • battery led works properly
    • added brightness slider
    • changed to default sony logo

    Changelog 27/04/2014
    • Everything works fine
    6
    New Version Released

    Changelog 19/03/2014
    • added battery led to indicate battery status
    • usb mass storage should work now
    • reboot to recovery/bootloader from rom should work now
    • reboot to recovery/bootloader from twrp should work now

    download the latest zip from OP. pls try all these change and confirm :)
    5
    New Version Released. Please check if everything works or not, specially usb mass storage.

    Link's in the OP.


    @AGONTUK
    can you send me unpacked recovery ready for theming?

    Sent from my MT27i using XDA Premium 4 mobile app

    you can unpack the initrd.gz from the zip file.
    4
    I can't boot to system, why? anyone experiences a same problem too? :confused:

    works well for me, Carbon + Carbon kernel.

    edit : attached pic