Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,779,159 Members 46,696 Now Online
XDA Developers Android and Mobile Development Forum

[RECOVERY] fairphone FP1 CWM 6.0.3.7 v.0.2

Tip us?
 
chrmhoffmann
Old
(Last edited by chrmhoffmann; 19th January 2014 at 05:00 PM.)
#1  
Recognized Developer - OP
Thanks Meter 2448
Posts: 525
Join Date: Nov 2006
Default [RECOVERY] fairphone FP1 CWM 6.0.3.7 v.0.2

Code:
#include 
/*
 * 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.
 *
 * Submitting bug reports on nightly builds is the leading 
 * cause of male impotence.
 */
CyanogenMod/CWM is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed.

This is CWM for the fairphone FP1. As there are no custom roms (yet), this might not be very useful as of now
Do not install on any other device than the fairphone FP1.

Note:
- The recovery has been compiled from Cyanogenmod 10.1
- the kernel is the stock recovery one not compiled from source as the fairphone kernel source is currently incomplete
- minimal device tree that builds recovery https://github.com/chrmhoffmann/andr..._fairphone_FP1

Before proceeding please make a complete backup for ALL partitions (especially the recovery with e.g. MTK Droid Root & Tools).

Thxs go to:
- bgcngm/mtk-tools
- the guys who make MTK droid root & tools

What works
- you can adb into the CWM
- backup and restore (boot, data, cache, system)
- install from .zip files not tested but should work

Installation
a) copy the recovery to the device: adb push recovery-cwm-fp1-0.1.img /storage/sdcard0
b) adb into device: adb shell
c) flash to recovery: dd if=/storage/sdcard0/recovery-cwm-fp1-0.1.img of=/dev/recovery

You could also try to use a tool like mtk mobile uncle tools (not tested by me): https://play.google.com/store/apps/d...euncle.toolbox

Changelog:
v.0.2:
- rename to FP2 so that original zips should be flashable
v.0.1:
- initial version

Download

http://goo.im/devs/chrmhoffmann/fair...wm-FP1-0.2.img
md5sum ba524ae0d59125809d0c08b59e664a65

Older download

http://goo.im/devs/chrmhoffmann/fair...wm-fp1-0.1.img
md5sum 78a79f83bb2fc52b5bb6074df04d6892
The Following 19 Users Say Thank You to chrmhoffmann For This Useful Post: [ Click to Expand ]
 
asmaron
Old
(Last edited by asmaron; 18th January 2014 at 02:56 PM.)
#2  
Member
Thanks Meter 29
Posts: 43
Join Date: Oct 2013
Very nice!!! Thanks for your hard work!

Atm I don't have access to an FP1 but did anybody tried it already?

Regards,
Asmaron
 
MoreThanADev
Old
#3  
Junior Member
Thanks Meter 23
Posts: 20
Join Date: Aug 2013
Quote:
Originally Posted by asmaron View Post
Very nice!!! Thanks for your hard work!

Atm I don't have access to an FP1 but did anybody tried it already?

Regards,
Asmaron
Ofc we tried ^^ (athought i suppose chrmhoffmann tried first ).

I mean it installs and starts without any noticable issue. Thanks again chrmhoffmann !
 
MoreThanADev
Old
(Last edited by MoreThanADev; 19th January 2014 at 03:46 PM.)
#4  
Junior Member
Thanks Meter 23
Posts: 20
Join Date: Aug 2013
Default Issue when installing zip

Quote:
Originally Posted by MoreThanADev View Post
Ofc we tried ^^ (athought i suppose chrmhoffmann tried first ).

I mean it installs and starts without any noticable issue. Thanks again chrmhoffmann !
Actually, there seems to be some issue when installing zip. (Or maybe I did not used it the right way ?)

I tried to
install zip -> chose zip from sdcard -> Fairphone_FP1_OS_v1_Recovery_2014-01-04.zip (downloaded from FP website) -> Yes
and it failled with some error message

"assert failed: getprop("ro.product.device") = "FP1" || getprop ("ro.build.product") = "FP1"
Error ... blablabla"

Is this normal that the file default.prop located at the / of the recovery contains different value from the file Fairphone_FP1_OS_v1_Recovery_2014-01-04.zip/system/build.prop downloaded from FP website ?

ie :
 
/default.prop as beeing seen in recovery

...

ro.product.model=Fairphone FP1
ro.product.brand=Android
ro.product.name=cm_fp1
ro.product.device=fp1
ro.product.board=
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Fairphone

Fairphone_FP1_OS_v1_Recovery_2014-01-04.zip/system/build.prop

...

ro.product.model=FP1
ro.product.brand=FP
ro.product.name=FP1
ro.product.device=FP1
ro.product.board=FP1
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=FP1


You should be able to reproduce this easely if you own a FairPhone. Still i can provide further log if you wish.
 
chrmhoffmann
Old
(Last edited by chrmhoffmann; 19th January 2014 at 04:37 PM.)
#5  
Recognized Developer - OP
Thanks Meter 2448
Posts: 525
Join Date: Nov 2006
Quote:
Originally Posted by MoreThanADev View Post
Actually, there seems to be some issue when installing zip. (Or maybe I did not used it the right way ?)

I tried to
install zip -> chose zip from sdcard -> Fairphone_FP1_OS_v1_Recovery_2014-01-04.zip (downloaded from FP website) -> Yes
and it failled with some error message

"assert failed: getprop("ro.product.device") = "FP1" || getprop ("ro.build.product") = "FP1"
Error ... blablabla"

Is this normal that the file default.prop located at the / of the recovery contains different value from the file Fairphone_FP1_OS_v1_Recovery_2014-01-04.zip/system/build.prop downloaded from FP website ?

ie :
 
/default.prop as beeing seen in recovery

...

ro.product.model=Fairphone FP1
ro.product.brand=Android
ro.product.name=cm_fp1
ro.product.device=fp1
ro.product.board=
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=Fairphone

Fairphone_FP1_OS_v1_Recovery_2014-01-04.zip/system/build.prop

...

ro.product.model=FP1
ro.product.brand=FP
ro.product.name=FP1
ro.product.device=FP1
ro.product.board=FP1
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.manufacturer=FP1


You should be able to reproduce this easely if you own a FairPhone. Still i can provide further log if you wish.

Hmmm... You can test the installation by removing that assert from the zip file. It must be somewhere in META-INF/..../upgrade script.

I guess I could change the ro.product.device to FP1 [EDIT: argh that changes directory structures etc...]

Chris
 
chrmhoffmann
Old
#6  
Recognized Developer - OP
Thanks Meter 2448
Posts: 525
Join Date: Nov 2006
Quote:
Originally Posted by chrmhoffmann View Post
Hmmm... You can test the installation by removing that assert from the zip file. It must be somewhere in META-INF/..../upgrade script.

I guess I could change the ro.product.device to FP1 [EDIT: argh that changes directory structures etc...]

Chris
Should be fixed now. Update recovery to 0.2. See op.

Chris
The Following 8 Users Say Thank You to chrmhoffmann For This Useful Post: [ Click to Expand ]
 
CheckItOut
Old
#7  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Oct 2009
Default FP1U

Does this version work with the new FP1U model with only a different chipset?
 
chrmhoffmann
Old
#8  
Recognized Developer - OP
Thanks Meter 2448
Posts: 525
Join Date: Nov 2006
Don't think so. Someone who has the new one has to create it (new kernel needed, I think they also have different partitions?).

Chris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes