
For your information
Team Win Recovery Project 2.7, 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.
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.
*/
This is developed for the LTE version of Samsung Galaxy S4 Mini (GT-I9195), but it may on the other variants.
I'll only support this variant since it's the only one I own, that means I can only test software for it, and on the way that I'll never give support or bugfixes for any other model.
Changelog
2014-06-14
- Merged latest kernel changes by arco.
- Upstream update to TWRP 2.7.1.0 (For more info, check official changelogs: http://teamw.in/project/twrp2).
2014-03-16
- Fixed flashing builds of any android version older than 4.4
- Merged latest kernel changes by arco.
- Upstream update to TWRP 2.7.0.0 (For more info, check official changelogs: http://teamw.in/project/twrp2).
2014-02-20
- Fixed 4.1+ data encryption/decryption support.
- Corrections of the screen timeout behaviour.
- Some upstream fixes and features like:
a) Support for mouse control (not tested here at all).
b) Vibration when touching screen or buttons (can be disabled).
c) And more...
2013-12-29
- First version
Reporting Bugs
If you want to report bugs please read THIS HOWTO first. Please try to provide logs if you see errors (logs and dmesg). If you don't know how to do that check google or ask people here to help you.
- To take logs you can use the option "Copy log to SD" inside recovery "Advanced" menu
- To grab a dmesg (if the recovery is not booting normally), just reboot on android system and provide the output of this command run from the adb shell:
Code:
cat /proc/last_kmsg
You are storing very sensitive information on your phone. You always have to be careful with what you flash and who you trust on. If you don't trust me then don't use my work or compile it from source yourself.
Two files are provided, the .tar one is only flashable over Odin, but the .img one could be flashed using Heimdall and also using a shell command as below after pushing the file to the sdcard renamed to recovery.img (root access on the device is needed).
Make sure you do not make any typos writting this command, because is an easy and fast way of briking your device:
Code:
dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p14
If you are going to host my builds somewhere else, please let me know that on this thread or over PM, so I can add the link here also
Sources
The source of the kernel is this one, compiled along android 4.4.2 codebase of OmniROM and using the default gcc 4.7 compiler:
https://github.com/OliverG96/android_kernel_samsung_serranoltexx
The flags used for TWRP settings are the ones below (full device tree might be avalaible soon, WIP on cleaning up):
TW_HAS_DOWNLOAD_MODE := true
TW_NO_REBOOT_BOOTLOADER := true
DEVICE_RESOLUTION := 540x960
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TW_NO_SCREEN_BLANK := true
TW_BRIGHTNESS_PATH := "/sys/devices/platform/mipi_samsung_oled.1281/lcd/panel/backlight"
TW_MAX_BRIGHTNESS := 255
TW_INCLUDE_JB_CRYPTO := true
TW_NO_USB_STORAGE := true
RECOVERY_SDCARD_ON_DATA := true
TW_INTERNAL_STORAGE_PATH := "/data/media/0"
TW_INTERNAL_STORAGE_MOUNT_POINT := "data"
TW_EXTERNAL_STORAGE_PATH := "/external_sd"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_sd"
TW_NO_REBOOT_BOOTLOADER := true
DEVICE_RESOLUTION := 540x960
RECOVERY_GRAPHICS_USE_LINELENGTH := true
TW_NO_SCREEN_BLANK := true
TW_BRIGHTNESS_PATH := "/sys/devices/platform/mipi_samsung_oled.1281/lcd/panel/backlight"
TW_MAX_BRIGHTNESS := 255
TW_INCLUDE_JB_CRYPTO := true
TW_NO_USB_STORAGE := true
RECOVERY_SDCARD_ON_DATA := true
TW_INTERNAL_STORAGE_PATH := "/data/media/0"
TW_INTERNAL_STORAGE_MOUNT_POINT := "data"
TW_EXTERNAL_STORAGE_PATH := "/external_sd"
TW_EXTERNAL_STORAGE_MOUNT_POINT := "external_sd"
Credits
- Arne Coucheron
- Dees_Troy and bigbiff
Last edited: