2014-07-09, 11:32
longer title =
Modify a CWM to your device specs and then flash it using Mobileuncle because you have a mediatek device-----When other tutorials or methods fail for you
TRY AT OWN RISK
Note does not use or need any Windows USB drivers or Linux drivers
Supported Chipsets
MT6516
MT65x3 (MT6513 and MT6573)
MT65x5 (MT6515 and MT6575)
MT6577
MT65x2 (MT6572 and MT6582)
MT6589
MT83xx (MT8377 and MT8389)
Summary of events
We modify a CWM ramdisk built for a different phone, using information from your device.
We add your kernel.
We create a new recovery image.
We flash new recovery to your device using Mobileuncle.
What are your goals?
Once you know you can get a CWM onto your device. You can try more recent versions. Please remember to check your byte size.
Credits
vampirefo for his hex2dec url and /dev/recovery type info and other great advice
maintainer of perl scripts = Bruno Martins
maintainer of mkbootimg = Android dev team
neken CWM ROM maintainer = the tester
Bruno Martins has given me approval to post here as long as I show his username and upstream support page
bgcngm @ x da -developers
.x da-developers.com/showthread.php?t=1587411
Windows users pls read
I do not own Windows. To run Linux Perl on a Windows PC, you appear to need at least:
cygwin
with its package perl
with its package cpio
You may need busybox, not sure if its included as I can't test.
A graphical guide to installing Perl is here
With luck use that guide but search for cpio and I hope that is all you need.
In the Download area, you need to know that Github files often display (if text like) in your web browser. To do the download you need to click on the button called view raw.
--- mkbootimg should then offer a popup box for download
--- the 2 perl scripts won't as they are text related and will display in your web browser as .......text files.
-------Right hand click on the web page to save as.....and then choose your download pathway
If unsure what I mean, I have images in my Linux link. Or you can complain?
Linux howto
Android research
1) I assume you have a rooted Android device. I do not assume you know how to use adb commands.
2) You need a terminal, if missing, go into playstore and install an Android terminal. As I need to increase fonts, and it also allows you to open a second window please consider using this app
3) You need busybox installed. If you are not sure just open your terminal and type and enter this command
If you don't see lots of output, then search playstore for it please.
4) Open Android terminal as a local user and run command as
5) You need a root file manager. I use root browser but choose any that will do the job
6) Use your root file manager to copy the following files onto the top level of your SDcard.
/proc/dumchar_info
----we have already /sdcard/mount.txt using (4)
So I expect you to have
/sdcard/dumchar_info
/sdcard/mount.txt
Now if you Windows you may like to rename them on your PC to add the .txt extension.
7) Email them those files to yourself. Congratulations you have just used Cloud Mode. Then download the files onto your PC. This saves me doing a tutorial on adb.
8) If you have a known to work recovery image then copy that onto your PC. Otherwise grab the boot.img as we need your kernel.
9) Recovery images do not care about kernel modules or shared object files
---no wifi, no modem, no camera etc. But recovery must have a loopback network and a mount filesystem.
10) Perl app not found in playstore. But you could then move the unpack into your Android and do the text editting there. Then move it back to PC to do the repack? So for the moment you will need to use Perl on Windows PC or Linux PC
Backup your current recovery/device
If your recovery comes from needrom etc, ensure you have a copy on
you SDcard and PC....and cloud mode.
If free space on SDcard is an issue and you can not get a bigger SDcard
probably best not to proceed. Recovery images are around 6 Mb.
If your have a mediatek chipset please install Mobileuncle from
playstore. Use it to backup your IMEI.
See my other Linux tutorial if you need to make a backup of your existing recovery.
If you want to use Android you can do so but choose your recovery.image or boot.image depending on whether you feel unsafe at using the recovery kernel.
So in Android, make sure your device is rooted, and take care that you input the correct calculated from dumchar value, a decimal value into one of the following formulae.
I prefer you try recovery first, but the online converter link is in next post
For me VALUE1=2=6291456 ie hex of 0x0000000000600000
email yourself either this recovery or boot image.
Modify a CWM to your device specs and then flash it using Mobileuncle because you have a mediatek device-----When other tutorials or methods fail for you
TRY AT OWN RISK
Note does not use or need any Windows USB drivers or Linux drivers
Supported Chipsets
MT6516
MT65x3 (MT6513 and MT6573)
MT65x5 (MT6515 and MT6575)
MT6577
MT65x2 (MT6572 and MT6582)
MT6589
MT83xx (MT8377 and MT8389)
Summary of events
We modify a CWM ramdisk built for a different phone, using information from your device.
We add your kernel.
We create a new recovery image.
We flash new recovery to your device using Mobileuncle.
What are your goals?
Once you know you can get a CWM onto your device. You can try more recent versions. Please remember to check your byte size.
Credits
vampirefo for his hex2dec url and /dev/recovery type info and other great advice
maintainer of perl scripts = Bruno Martins
maintainer of mkbootimg = Android dev team
neken CWM ROM maintainer = the tester
Bruno Martins has given me approval to post here as long as I show his username and upstream support page
bgcngm @ x da -developers
.x da-developers.com/showthread.php?t=1587411
Windows users pls read
I do not own Windows. To run Linux Perl on a Windows PC, you appear to need at least:
cygwin
with its package perl
with its package cpio
You may need busybox, not sure if its included as I can't test.
A graphical guide to installing Perl is here
With luck use that guide but search for cpio and I hope that is all you need.
In the Download area, you need to know that Github files often display (if text like) in your web browser. To do the download you need to click on the button called view raw.
--- mkbootimg should then offer a popup box for download
--- the 2 perl scripts won't as they are text related and will display in your web browser as .......text files.
-------Right hand click on the web page to save as.....and then choose your download pathway
If unsure what I mean, I have images in my Linux link. Or you can complain?
Linux howto
Android research
1) I assume you have a rooted Android device. I do not assume you know how to use adb commands.
2) You need a terminal, if missing, go into playstore and install an Android terminal. As I need to increase fonts, and it also allows you to open a second window please consider using this app
3) You need busybox installed. If you are not sure just open your terminal and type and enter this command
Code:
busybox
If you don't see lots of output, then search playstore for it please.
4) Open Android terminal as a local user and run command as
Code:
mount > /sdcard/mount.txt
5) You need a root file manager. I use root browser but choose any that will do the job
6) Use your root file manager to copy the following files onto the top level of your SDcard.
/proc/dumchar_info
----we have already /sdcard/mount.txt using (4)
So I expect you to have
/sdcard/dumchar_info
/sdcard/mount.txt
Now if you Windows you may like to rename them on your PC to add the .txt extension.
7) Email them those files to yourself. Congratulations you have just used Cloud Mode. Then download the files onto your PC. This saves me doing a tutorial on adb.
8) If you have a known to work recovery image then copy that onto your PC. Otherwise grab the boot.img as we need your kernel.
9) Recovery images do not care about kernel modules or shared object files
---no wifi, no modem, no camera etc. But recovery must have a loopback network and a mount filesystem.
10) Perl app not found in playstore. But you could then move the unpack into your Android and do the text editting there. Then move it back to PC to do the repack? So for the moment you will need to use Perl on Windows PC or Linux PC
Backup your current recovery/device
If your recovery comes from needrom etc, ensure you have a copy on
you SDcard and PC....and cloud mode.
If free space on SDcard is an issue and you can not get a bigger SDcard
probably best not to proceed. Recovery images are around 6 Mb.
If your have a mediatek chipset please install Mobileuncle from
playstore. Use it to backup your IMEI.
See my other Linux tutorial if you need to make a backup of your existing recovery.
If you want to use Android you can do so but choose your recovery.image or boot.image depending on whether you feel unsafe at using the recovery kernel.
So in Android, make sure your device is rooted, and take care that you input the correct calculated from dumchar value, a decimal value into one of the following formulae.
I prefer you try recovery first, but the online converter link is in next post
Code:
su
dd if=/dev/recovery of=/sdcard/recovery.img count=1 bs=VALUE1
or
dd if=/dev/bootimg of=/sdcard/boot.img count=1 bs=VALUE2
For me VALUE1=2=6291456 ie hex of 0x0000000000600000
email yourself either this recovery or boot image.