[Miscellaneous Android Development] MMWolverine:
​

Hello everybody!

The long wait has finally come to an end, as I successfully compiled CWM Touch Recovery for Medion Lifetab P9514. It works great on IceCreamSandwitch 4.0.3 Release 2 and it should also work on previous ICS updates. However, it is not compatible with Honeycomb 3.2!

Before we begin a warning is in order: You are making changes to your tablet’s software at your own risk!

So let's start. I advise you to first backup your stock recovery, just in case something goes wrong. There are couple of methods to do this. I will describe in my opinion the easiest, with adb commands for Microsoft Windows or Linux OS. This way you are not required to boot your tablet in special modes (fastboot or APX).

GETTING STARTED

When you connect LIFETAB to your PC, drivers should be installed automatically in Windows Vista/7. If they are not or if you encounter any erros, try the guide for Windows XP (original guide by [MENTION=1789221]Pummelchen[/MENTION] - android-hilfe.de).

Download drivers for WinXP: http://www.medion.com/au/service/_lightbox/treiber_details.php?did=10725

Extract the drivers - double click on "usb_p9514wxp.exe"

"Medion" folder will be created on C:/ drive, in there you will see "android_winusb.inf".

Open Device Manager: either by following the path "Start/Control Panel/System/Advanced System Settings/Hardware/Device Manager" or by right-clicking on "Computer" - "Properties" in start menu.

Connect your LIFETAB with a microUSB/USB Cable to the PC an wait for a few seconds.

In Device Manager "Other devices" should appear, there you will see "MTP" with a yellow exclamation mark. Right-click on it and choose "Properties".

Under "Driver tab" choose "Update driver".

Browse to C:/Medion and start the installation.

ADB/Fastboot tool for windows (USB drivers included): http://www.mediafire.com/download/bklnjn2x0fbln4b/MD_LT_P9514_Drivers_ADB_Fastboot.zip

You can install adb tools in Linux by following this guide: http://xdaforums.com/showthread.php?t=2431956

Make sure you have USB-debugging enabled on your tablet (Settings – Developer options – USB debugging)

Run Windows Command Prompt (Start Menu – Run… – write in “cmd” – press OK); point the cursor to the ADB folder by using “cd” command (a simpler way: press SHIFT and right-click on ADB folder, choose "Open this folder in command window")

Open Terminal in Linux

Write the following order of commands in cmd:

BACKUP STOCK RECOVERY

See if your device is recognized (a long number)

adb devices

Enter the adb session

adb shell

Get root privileges

su

Make /system partition readable-writable, so you can make changes

mount -o rw,remount /system

Backup 1st file

mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.backup

Backup 2nd file

mv /system/recovery-from-boot.p recovery-from-boot.p.backup

Create and backup stock recovery image file

dd if=/dev/block/mmcblk0p1 of=/sdcard/download/original-recovery-p9514.img

RESTORE STOCK RECOVERY

Should you at any time encounter problems with cwm touch, or you simply don't like it, you can restore your stock recovery. The commands are therefore reversed:

Restore 1st file

mv /system/etc/install-recovery.sh.backup /system/etc/install-recovery.sh

Restore 2nd file

mv /system/recovery-from-boot.p.backup /system/recovery-from-boot.p

Restore stock recovery to mmcblk0p1 partition

dd if=/sdcard/download/original-recovery-p9514.img of=/dev/block/mmcblk0p1

Warning: Be carful to use the right number in mmcblk0p1. This is /recovery partition, if you use others you might brick your tablet!

An easier way to have stock recovery back is to simply re-flash ROM update zip file. But by doing this you will loose root privileges, configuration and possibly user data.

I suggest you save "original-recovery-p9514.img" also to your external sdcard and possibly to your PC. You can use your USB connection cable or a file explorer (like ES File Manager) to transfer the file to an external data storage. Another option is this adb command:

adb pull /sdcard/download/original-recovery-p9514.img

FLASH CWM TOUCH RECOVERY

Now that you’ve successfully backed-up our stock recovery, let’s flash the new cwm touch. Again there are a couple of ways to do this, I will describe in my opinion the easiest.

First download attached file, extract it and copy cwm-recovery-p9514.img to your internal sdcard. You can simply use a USB connection cable and transfer the file to the path “/sdcard/download” or use a file explorer (like ES File Manager) to copy the file.

Another method is with ADB commands. Put cwm-recovery-p9514.img in ADB folder on your PC. Open windows command window and check that your tablet is recognized (adb devices). The following line will transfer the .img file to “download” folder (you can use any other name, but the folder needs to exist on your sdcard):

adb push cwm-recovery-p9514.img /sdcard/download

To flash cwm recovery on the recovery partition, use the following commands:

adb shell
su
mount -o rw,remount /system

dd if=/sdcard/download/cwm-recovery-p9514.img of=/dev/block/mmcblk0p1

You can now reboot your tablet.

INSTALL CWM TOUCH RECOVERY USING TERMINAL EMULATOR

This is a simpler and faster way to flash my cwm touch recovery, without needing a PC/Laptop.

Install one of free terminal emulators from Google Play Store.

Here are a couple of options:

ConnectBot

Android Terminal Emulator

Providing you already copied "cwm-recovery-p9514.img" to your tablet, skip this step. If not, look at the previous steps.

Open the terminal emulator app and insert these lines:

su
mount -o rw,remount /system
dd if=/sdcard/download/cwm-recovery-p9514.img of=/dev/block/mmcblk0p1

To restore your original recovery:

su
mount -o rw,remount /system
dd if=/sdcard/download/original-recovery-p9514.img of=/dev/block/mmcblk0p1

USING CWM TOUCH RECOVERY

To enter cwm recovery mode press hard buttons in combination: power off your tablet, press and hold VOLUME UP (PLUS) and press POWER. Once you see "Ota…" in the top left corner of the display, quickly press:

1X VOLUME DOWN (MINUS),

2X VOLUME UP (PLUS),

1X VOLUME DOWN (MINUS).

You will see the counter go to 4 and cwm recovery will start.

For a more practical access to the recovery, use this app: Quick Reboot.

Make a backup of your rom as soon as possible, to save your data.

Please do not attempt to flash any zip files using this recovery. You may damage your tablet in doing so.

"Wipe cache partition", "wipe dalvik cache" and "fix permissions" are safe processes, but use "wipe data/factory reset" only when needed.

ADDITIONAL INFORMATION

NOTE: I will leave older versions of cwm touch recovery available, should you have any problems with newer ones.

This guide wouldn't be possible, without the help from guys on http://www.avi-plus.com, Yves & Micky.

XDA:DevDB Information

[RECOVERY]CWM Touch 6.0.2.8 for MEDION LIFETAB P9514 [25.2.2013], ROM for the Android General

Contributors

MMWolverine

ROM OS Version: 2.3.x Gingerbread

Version Information

Status: Testing

Created 2015-02-04

Last Updated 2015-11-01