yashsingh1/xdaforums huggingface dataset:
[Android Software Development] garwynn:
Testing this recovery on i9100 variant for Sprint (US) - SPH-D710.

I suspect the recent fixes (fstype2 -> fstype) may solve my current problem with our previous attempts for CWM based recoveries on the new JB kernel.

Basically what's been happening is data wipes but then permissions are screwed up.

(Know it's not needed to post but leaving as common courtesy.)

Update:

Nope, still not fixing data.

Previous versions haven't had this so I'm thinking there's a change in the ramdisk I still haven't noticed.

Thanks.
[Android Software Development] Phil3759:
Can you detail a bit your issue as i cannot be aware of every device problems?

The fstype fix will not do anything except for external storage. It cannot interact by any mean with other partitions unless you mess with fstab file
[Android Software Development] garwynn:
http://xdaforums.com/showthread.php?p=40218765

This thread should have all the details. Post linked has the dump.
[Android Software Development] svicenty:
Go get them garwynn l bet you got a light bulb on top of head lol
[Android Software Development] eyeseal:
I am using the i9100 latest PhilZ-cwm6 kernel.

I want to have my kernel set

ro.debuggable=0

persist.service.adb.enable=0

in default.prop because a game will detect these setting, if they are set to 1, the game won't start.

I successfully unpack the zImage using this tool http://xdaforums.com/showthread.php?t=1294436 .

After modified default.prop, I want to repack.

But, I cannot repack because the new ramdisk is too big (2205137 > 2204682).

I know you are using this tool because I can find your replies in that thread.

So could you please share with me how to repack the zImage?

Thank you very much.
[Android Software Development] Phil3759:
You need to pad some files to tail of zImage. If you do not take care of that, even if it fits, you will break it and it will not boot as i pad many files too
[Android Software Development] eyeseal:
ok ill try

Can I pad any file I like? Or I have to pad exactly what you padded too?
[Android Software Development] Phil3759:
Probably not what ever you like, but what is not needed during boot phase

The aim is to make things fit when repacking
[Android Software Development] eyeseal:
Sorry I searched for 5 hours I really don't know how to make it work.

Could you explain more to me please?

I don't know what to pad and how to pad files to the end of the Image.

The thread of the unpack/repack script says I can compress some big files as tar.xz and put them to the end of the zImage.

So I read the recovery.sh and post-init.sh in the example given by Chenglu.

But I cannot find post-init.sh and recovery.sh in the zImage unpacked from your kernel.

What I want is only to change a 1 to 0 but there are so many works to do lol
[Android Software Development] Phil3759:
Do not mess with anything if you do not know exactly what you are doing

No need to edit scripts or to write any code line. Just move big binaries to payload folder and repack with xiaolu script as per its instructions (using payload option), it's all that

However, be sure to first extract all my padded binaries or it will bootloop when entering recovery. If it is complicated for you to extract them, just boot into recovery and adb pull /sbin and /res folders
[Android Software Development] eyeseal:
I pulled /sbin and /res and compared them with the sbin and res unpacked from the zImage, there is no difference, so I think the sbin and res unpacked from the zImage should be correct.

I read this post http://xdaforums.com/showpost.php?p=32200508&postcount=38 and know that I have to use payload parameter

But, before moving files, do I need to clear the following which come with the zip of the script?

resources/payload/recovery

resources/payload/boot

Another question is that do I need to construct the same path?

For example, I want to move unpack/res/a_binary to payload.

Do I need to mkdir resources/payload/res/?

Do I need to deal with the permission?

Would you mind telling me what file you padded? Because I fear that I will pad sth wrong :o

Sorry that I have a lot of noob questions because the instructions for using payload are not enough.

Hope I won't annoy you.

Thank you very much again.
[Android Software Development] Phil3759:
Yes, you need to deal with permissions and reconstruct folder structure

Clean source folder is also needed

Just give it a try until it fits.
[Android Software Development] eyeseal:
Thank you PhilZ.

I successfully modified default.prop and repacked the zImage.

Here are my steps.

I unpacked the zImage to /unpack and moved

/unpack/res/images/*

/unpack/res/image-binary

/unpack/res/image-edify

to

/un-repack-script/resources/payload/recovery/res/images/*

/un-repack-script/resources/payload/recovery/res/image-binary

/un-repack-script/resources/payload/recovery/res/image-edify

then created cpio and used the following command to repack

/un-repack-script/repack.sh zImage initramfs.cpio new_zImage payload

After that I renamed new_zImage to z_Image and place z_Image into the flashble zip which is download from your i9100 PhilZ-cwm6 thread.

I booted successfully and I managed to run the application that checks debuggable in default.prop.

I post the steps here beacuse I want to confirm that I didn't do sth wrong. :)

Were the files placed to payload folder correctly?

They will be loaded automatically when needed right?

Thank you very much!
[Android Software Development] Phil3759:
Update v4.93.2

Source

https://github.com/PhilZ-cwm6/philz_touch_cwm6
[Android Software Development] Phil3759:
Yes, it looks fine, but not sure all png files should have been moved there. Just move those used by recovery and just what you need to fit your ramdisk. Keep main system logo png for example
[Android Software Development] eyeseal:
Actually I cannot find the files put into payload in /res using root explorer.

The images I moved were

icon_att_fota_complete.png

icon_att_fota_error.png

icon_att_fota_installing.png

icon_att_fota_updating.png

icon_tmo_fota_complete.png

icon_tmo_fota_error.png

How can I get those png displayed in /res?

Update: I found that I cannot enter recovery :(. Now I am trying to use Odin to flash the original PhilZ-cwm 6 kernel.
[Android Software Development] tyvar1:
Will download it on my note 2 and tab 2 when it's available! :D thanks for your great work!
[Android Software Development] eyeseal:
Actually not only I could not enter recovery but I also could not boot into the system! After last operation everything was fine. Then I wanted to check the recovery, but I couldn't enter it, it showed black screen and the back light kept switching on and off. After that things went wrong, I tried to force it to reboot pressing HOME+POWER to see if I could enter the system, but I couldn't untill I flashed the non-modified kernel via Odin!

Would you mind telling me what should I pad to the end of the zImage? Seems those file to be padded should be matched with what you extract in the code.
[Android Software Development] Phil3759:
No, it auto-extracts whatever you pad.

Please read my previous answers, all is explained in detail. More is in recovery.rc and init.rc files

I use my own scripts and all is automated from zImage unpack to end zip file. I do not recall what i pad and what i do not. And it doesn't matter in anycase as you can extract them. Look also at my last push request in xiaolu github. You should probably first dig into shell scripting and rc files/zImage structure to use such tools easier
[Android Software Development] simono_pl:
No, not available. Will be if developer had time to compile it and download I gues.
[Android Software Development] robertogl:
Small donation, i don't have a lot of money on paypal.

49E10299W9589534Y
[Android Software Development] ironia.:
Updated version for crespo?

Tnx
[Android Software Development] danarama:
Please do not ask for updates.
[Android Software Development] turilo:
Will try this out on my Canadian s4 :D
[Android Software Development] Phil3759:
Thank you for your generosity. The smallest donation accounts these days, with my semi-bricked phone

It's taking all of my little spare time to get something out of it, if ever possible
[Android Software Development] robertogl:
Thank you, for your work ;)
[Android Software Development] chrcol:
and of course not every one changes their phone every year, many cannot afford to do that so there is the problem :) also even if can afford many will not see a need to do that.

to me I donate on the understanding of rewarding dev for work and something I use, and with the hope it means more support of app. Its counter productive if I am paying a dev to stop supporting me in future.

So its likely in future before I donate to any more people I will ask what their plans are for future support for my phone(s).

Phil hasnt mentioned about my offer, and I am still not sure if I will give the phone away. Not thought about it as he didnt reply. But if I dont give the phone away I will donate to him to help buy a new one.
[Android Software Development] Phil3759:
I am supporting +30 phones with some of them older than 4 years

I only have one phone, a +2 years old i9100

Only limit to supporting new devices is time

Do not think this is even a source of revenue. It's a 9 months hard work. You cannot even imagine the number of hours spent. Donations over 9 months will never be enough to buy a decent phone, go figure live from it?

I'd just say, from donations, this is rewarded largely less than 10 cents/ hour

People thinking that donating means paying the dev, is unfair. It is just an encouragement to continue, a matter of showing that this is useful. But, at the end, it is an expensive hobby, purely for free and MY SELF PLEASURE ;)

Thank you for your phone offer. I appreciate it a lot. However, I will be rather looking to a newer phone like i9300 and later. The main issue with i9100/n7000 is having a shared recovery partition. It costed a lot of time while testing things at start
[Android Software Development] chrcol:
phil you can see I donated now so will go towards your i9300+.
[Android Software Development] Teura:
89U77321AE203544Y

A small thank you for your work.
[Android Software Development] Koopa777:
Does this recovery support the hooks needed to use tools such as ROM Toolbox or GooManager? Because normal CWMR 6.0.3.5 Touch needs ROM Manager Premium.

EDIT: Accidentally quoted the person above me. It's been a LONG day...:o
[Android Software Development] Skazzy3:
How to extract the system img created by this? Its split into 3 files.
[Android Software Development] Phil3759:
Thank you all for your generosity and donations :good:

Use Titanium backup, it is simpler

Else, you need a shell linux command or a program to merge files
[Android Software Development] Skazzy3:
I have a linux box. Could you PM me instructions?
[Android Software Development] Unjustified Dev:
[MENTION=4666971]Phil3759[/MENTION] I have my phone up and working and I would love to have a build of your philz cwm one issue again we have no recovery partition in use and recovery is packed into the boot image so its stressing when you want a new recovery lol . If you need so I can find my instructions again or you can search my name on your forum :)
[Android Software Development] YayYouFixedIt:
Many thanks(n7). Is this amazing recovery doable on the tf101?
[Android Software Development] Phil3759:
I missed your request, sorry. You can post again?
[Android Software Development] Unjustified Dev:
Samsung Fascinate <fascinatemtd>

Kernel source- https://github.com/TeamRegular/samsung-kernel-aries/commits/cm-10.2-only this is the complicated .One we cant flash recovery therefore you have to make bootimage and this is our prefered kernel if you get build errors I will help as I dont use cm source to compile this kernel. I also will link you to a zip that you can use to just replace the boot.img and system/lib/modules

vendor source -the muppets

device source https://github.com/TeamRegular/device_samsung_fascinatemtd

twrp flags

# TWRP 2 details

DEVICE_RESOLUTION := 480x800

TW_INCLUDE_INJECTTWRP := false

TW_NO_REBOOT_BOOTLOADER := true

TW_EXTERNAL_STORAGE_PATH := "/sdcard"

TW_EXTERNAL_STORAGE_MOUNT_POINT := "sdcard"

TW_DEFAULT_EXTERNAL_STORAGE := true

Zip example for fascinate so we can flash it http://d-h.st/rni just replace the bootimage and libs/modules

Your modified source- https://github.com/C457/philz_touch_cwm6

I am hoping this is the recovery that uses those flags
[Android Software Development] m4570d0n:
@Phil3759

I ran a build using your philz_touch_cwm6 source for bootable/recovery. I was able to build it and flash it without issue, however, it seems that it was looking at data/media/0 for my sdcard instead of my actual internal sdcard @ /storage/sdcard0 and did not recognize my external sdcard at all (@ /storage/sdcard1). There was also no option to change this. I did see the option to set /data/media as my sdcard but that was the only relevant option I saw and that's obviously not what I want.

These were the changes I made to Android.mk and device_config.h:

Added Skyrocket device config to Android.mk @ line #80:

#Samsung Galaxy S2 LTE Skyrocket
ifeq ($(TARGET_PRODUCT), cm_skyrocket)
TARGET_COMMON_NAME := i727
LOCAL_CFLAGS += -DTARGET_DEVICE_I727

Added entry for skyrocket in device_config.h:

// i727 Galaxy S2 LTE Skyrocket
#ifdef TARGET_DEVICE_I727
#define BOARD_UMS_LUNFILE "/sys/devices/platform/msm_hsusb/gadget/lun%d/file"
#define BOOTLOADER_CMD_ARG "download"
#endif

The lun path was taken from line #65 of BoardConfigCommon.mk for the msm8660-common device tree here:

https://github.com/CyanogenMod/andr...-common/blob/cm-10.2/BoardConfigCommon.mk#L65

TARGET_USE_CUSTOM_LUN_FILE_PATH := /sys/devices/platform/msm_hsusb/gadget/lun%d/file

Here's the local manifest for my kernel, device trees, and vendor blobs:

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_celox-common" path="device/samsung/celox-common" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_device_samsung_msm8660-common" path="device/samsung/msm8660-common" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_device_samsung_skyrocket" path="device/samsung/skyrocket" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_kernel_samsung_msm8660-common" path="kernel/samsung/msm8660-common" remote="github" revision="cm-10.2" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-10.2" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="cm-10.2" />
</manifest>

And here's the boot.img and recovery.img from the build this evening (if those aren't the img files you would want, please let me know):

http://d-h.st/users/m4570d0n/?fld_id=22942
[Android Software Development] Phil3759:
recovery doesn't use vold names
[Android Software Development] Phil3759:
5.10.8 (14.08.2013)

https://github.com/PhilZ-cwm6/philz_touch_cwm6/commit/5407c374cf58fb2c805db569cbeb53343c6d7489
[Android Software Development] turilo:
Has anyone used this recovery on the non locked bootloader of the Canadian s4?
[Android Software Development] bariz143:
Cant find the latest recovery 5.10.8 anywhere. Latest build i see in dev is 5.10.0
[Android Software Development] danarama:
Not all builds available for all devices.
[Android Software Development] Phil3759:
As I said, I have very little time (many life imperatives...) and my phone i9100 is hanging all the time

Partition scanner did not find anything special sadly

My time is very limited, and this is taking too much of my time to fix the aging i9100

Donations now: 240 USD

Need about 3x to get a new phone for dev

Big thanks to all donators and supporters

PS: could push an update as soon as I have time
[Android Software Development] habylab:
Keep up the good work. Hope you're okay.
[Android Software Development] MrPhilo:
Can you build a touch recovery for the new Nexus 7 2013 "flo"?

boot and recovery img

https://docs.google.com/file/d/0B-VjQnngcs3vY290ZmdDWjctQmc/edit?usp=sharing
[Android Software Development] paour:
7BT11626S1950561A

Good luck!
[Android Software Development] Phil3759:
Thank you a lot
[Android Software Development] kekkojoker90:
philz what phone you want buy?
[Android Software Development] Phil3759:
I usually push a phone to the end of its life. That's why I look to a newer one so that it lasts the longest.

i9505 is the phone giving me the most issues and taking all my time because it is very different in many aspects

That's why, I tend to say i9505

HTC One would have been a good choice, but it doesn't have an external storage, which is one of my criteria other criterias

It also must be a phone supported officially by cyanogenmod team

The phone I will get, will suerely have my custom stock kernel, just like i9100/n7000 now ;)

Thank you all for your donations and support in forum
[Android Software Development] robertogl:
I9505 would be good :D
[Android Software Development] shoey63:
[MENTION=4666971]Phil3759[/MENTION] Well, Xperia Z is similar to HTC One in many respects, BUT it does have a (water resistant) external SD Card slot ;)
[Android Software Development] Phil3759:
LoL, thank you for the tip

However, Sony phones are poorly supported by cyanogenmod overall, maybe because of too many custom stuff

I am synchronizing sources to build for yuga and send it [MENTION=4904057][NUT][/MENTION] for testing ;)
[Android Software Development] kantjer:
Whatever you decide, this is to say thanks for all you have done for the community :good:

Confirmation number: 7TD76264ER0389829
[Android Software Development] Phil3759:
Many thanks for your generosity :o
[Android Software Development] akashavel:
Can anyone help us porting this to Auxus nuclea n1..please let me know if u need our stock source..
[Android Software Development] danarama:
[MENTION=4325385]akashavel[/MENTION] - get a dev from your device forum to read and do what is in Post 2.
[Android Software Development] kekkojoker90:
philz if i'm in you i wait the sony xperia honami :good: i already read your doubt about sony device but if cyanogen don't do a great support sony supply all your needs. If they don't looks good i probably choose the htc one because s4 is the worst phone in the new generation for me :P good hw but too bad software
[Android Software Development] antutu:
[MENTION=4666971]Phil3759[/MENTION], i hope you didn't forget about P31xx community, it's still in 5.08.5 version:o
[Android Software Development] kgirlx:
Yes I hope p31xx community isn't forgotten as well
[Android Software Development] vmmore:
any progresss sir ??? :confused::confused:
[Android Software Development] podvox:
Hi everyone!

Situation:

I changed phone from one i9505 to another i9505, just took phone with another color of body.

Last firmware on previous SGS4 was XXUMBGA (NEE) and PhilZ Recovery 5.10.0 was also installed.

And I did backups with this firmware+recovery on that i9505 to the External SD Card (micro-SD 63Gb, extFAT), and it always were successful.

Now on newer i9505, with the same firmware+recovery, when I try to make backup in PhilZ Recovery 5.10.0 to External SD, process of creating backup always stops at the same moment. And at 1st firmware on new i9505 (XXUMBF8) it was unsuccessful also, the same error.

It got stuck at 1663 Mb in both cases.

1-st time I started backup at 03:00 a.m. and went to sleep. When I woke up at 07:30 a.m., backup process freezes at 1663Mb

So I tried to make backup today and recovery hang up again. I choose option "make Log"

In Log-file process stopped at backup-ing "DATA_Preferences"

I tried to find such a file or directory by Root-Explorer but didn't find anything...

1-st question - what is the reason of it?

2-nd question - why on new phone Recovery began to ask more space for backup copy?

Previously it took ~3.2 - 3.8Gb for full backup, it depended of programs quantity in data. On newer i9505 I have even less programs. Bat recovery ask to reserve ~6.3 Gb!!!

The same level of Compression (Low) was choose in both cases.

So because of this (6.3Gb required) i cannot make backup to internal SD, it has only 4.5Gb of free space...

Please, who have ideas, take advice what to do!
[Android Software Development] danarama:
Why are you not posting in the i9505 thread? This is the general development thread, not teh device specific help thread.
[Android Software Development] podvox:
I don't know it's general problem or specific of the i9505 device. Ok, if you you wish so, I'll move my message to i9505 thread. This message may be deleted.
[Android Software Development] OffDatGoGo:
Great stuff here. I sure hope that the T999 will get updated love soon too.

DEVICE: SGH-T999 + ROM: LiquidSmooth v2.8 Official + KERNEL: KT747 - LJ7 + TK Mod 2.4 = A FREAKIN' BEAST!
[Android Software Development] YayYouFixedIt:
[MENTION=4666971]Phil3759[/MENTION]

if i noobishly attempt to compile this a second time, what is the likely success at fitting this great work of art on the tf101? The 1st time i tried i did not use cm sources. :rolleyes:
[Android Software Development] whitlecj:
Can anyone make a tar file with the patched recovery for verizon? I am in a bind. I can't get into recovery and I cant boot my rom. I accidently flashed the unpatched recovery and I am stuck. Please someone help
[Android Software Development] Phil3759:
5.11.0 (17.08.2013)

https://github.com/PhilZ-cwm6/philz_touch_cwm6
[Android Software Development] Schrotty35:
Whene comes a working update for HTC ONE?
[Android Software Development] tyvar1:
When will it come to galaxy note 2? :) i am still on 5.08.5 :)
[Android Software Development] Phil3759:
When I will have enough money to get a new phone

Not that I'm a poor fellow, but not willing to spend more money on a hobby that's already costing me a lot of time

Working on a half bricked old i9100 is sucking out my time

Sorry, focusing on open source version and only S4, until I can really have a device

Check my signature with current $USD counter

Hope you understand and stop asking for ETA
[Android Software Development] Alberto96:
Delete this
[Android Software Development] TecknoFreak:
Man the best thing on android and is not available for Motorola. :(
[Android Software Development] danarama:
Read post 2!
[Android Software Development] SunSide:
If everyone who can just would give a little bit...

...it should really NOT be a big problem to get the money for the new phone.More than the half is done already.

Come on girls and boys...is it really that hard to donate 5 or 10 Dollar? :confused: ;)
[Android Software Development] Phil3759:
Many thanks

You're one of the most generous donators till now :good:
[Android Software Development] Alberto96:
Latest sources works great, i compiled this recovery for my Galaxy S. Awesome work :D I just had to fix something related to galaxy s keys.
[Android Software Development] electricsheepdreamer:
No more updates for S2, please :)

Thanks Phil for all the great work. :good:

#02B85246A19345059
[Android Software Development] chrcol:
phil s3 is much more popular than s4? but s4 priority?

are you saving up for s3 or s4? a s3 now days doesnt cost 600usd.

http://www.amazon.com/Samsung-Galax...UTF8&qid=1376778047&sr=8-1&keywords=galaxy+s3
[Android Software Development] Phil3759:
Big thanks again for your generosity :angel:

I am working hard on sources

cm-10.2 migration, many updates lately, i9505 issues, my semi-bricked phone... all these are making me loose a lot of time

I am rewriting my whole repacking scripts to enhance ramdisk and adb support + fix cm-10.2 compatibility

So, do not worry, I will keep updating all phones, and obviously i9100

However, I really need a newer phone as things are going too fast
[Android Software Development] Phil3759:
I already answered a few posts above why S4 over S3

I keep phones about 3 years or until they die. So, S4 is a better investment

Unlike kernel/rom devs, with just one phone I can support all others. The biggest part is done by Koush/cm team