yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] andreya108:
[RECOVERY] philz_touch_6.12.8-zaradug-v1

I've just uploaded recovery for zaradug. Do not flash it, just boot via fastboot.

DOWNLOAD from Google Drive

This is preview version of CWM recovery for HTC Desire 601 dual sim (zaradug) based on PhilZ-cwm6.

Please refer to a manual at http://xdaforums.com/showthread.php?t=1877270

It is recommended to install AromaFM file manager, it has a terminal emulator with root access.

(refer to http://xdaforums.com/showthread.php?t=1646108)

CHANGELOG:

--- v1 ---

- initial version, has a lot of bugs, it is not thoroughly tested, but rooting and nandroid backup is working fine.

BUGS:

1) not working when flashed!

you will stuck on 'entering recovery..' and htc logo.

just boot it via 'fastboot boot philz_touch_6.12.8-zaradug-v1.img'

//if you know how to fix it, please tell me

I think it is due to different codebase. Recovery is based on CM11 kitkat 4.4.2, and stock boot is jb 4.2.2 is unable to load this recovery.

2) screen is flickering (rather annoying, but still working),

seems it is recovery bug, because aromafm works fine

//if you know how to fix it, please tell me

3) tell me
[Upgrading, Modifying and Unlocking] mayankneil:
you rock brother......do that asap n send us ur recovery...!! thnks n keep up ur good work! we neeed devs like u :) :P
[Upgrading, Modifying and Unlocking] andreya108:
just look above your msg! ;)
[Upgrading, Modifying and Unlocking] mayankneil:
thank you sooo much!! M rooted now!! Wow don t know how much i can thank you!!

Still if u can help me from my network problem...m on 1.16 firmware!
[Upgrading, Modifying and Unlocking] andreya108:
For now I have no idea how to help you. Can you write all steps what did you do to the phone to get to the situation you have?

It would be great to have RUU for your region.
[Upgrading, Modifying and Unlocking] mayankneil:
hi

actually in january i flashed d wrong boot.img frm zara cl then my phone got in a bootloop....den i flashed your boot.img and now i dont have network!! stillm able to boot thanks to you! still if u can help me.....RUUi searched a lot on internet but never got it .....i live in INDIA! plz c if u can help! thank you btw soooo much for d recovery , i then flashed d SUPERsu zip n now m rooted...playing big space games like ASPHALT !! thank u sooo much!
[Upgrading, Modifying and Unlocking] andreya108:
To start with, can you provide your build.prop ?
[Upgrading, Modifying and Unlocking] mayankneil:
yes! here it is!
[Upgrading, Modifying and Unlocking] David Roid:
Root complete! Life is good again.

So the "recovery not working when flashed" is a universal pain for zara dug no matter the carrier/region. Perhaps HTC did some funky trick in the bootloader.
[Upgrading, Modifying and Unlocking] andreya108:
CIDs are different from EU version, may be that's why radio is not working.

Sorry, for now I do not know the way other than to find a guy in India with the same phone and dump boot.img and radio.img from his device.

Ensure build is the same:

ro.build.description=1.16.707.3 CL279464 release-keys

ro.build.fingerprint=htc/htc_asia_wwe/zaradug:4.2.2/JDQ39/279464.3:user/release-keys
[Upgrading, Modifying and Unlocking] mayankneil:
ok yea der is one guy in d htc desire 601 fourm ...be he isn t responding! username - arindam.palit
[Upgrading, Modifying and Unlocking] mayankneil:
hi

i m trying to swap sd card to internal but m failed...tried several methods.....u knw any??
[Upgrading, Modifying and Unlocking] andreya108:
I'm right now discovering method to move content of internal memory to sd. Then i'll share.
[Upgrading, Modifying and Unlocking] mayankneil:
wow okay !
[Upgrading, Modifying and Unlocking] jmz:
With this known does the recovery I posted a few pages back work with fastboot boot?
[Upgrading, Modifying and Unlocking] andreya108:
Unfortunately not ;(
[Upgrading, Modifying and Unlocking] gugucha:
Yeah

+1 root device from me <3
[Upgrading, Modifying and Unlocking] andreya108:
[STOCK][MOD] update.zip rom images for recovery

Here are some mods: DOWNLOAD

Flashing from the recovery, wipe as usual.

1) zaradug_1.18.401.1_stock_signed.zip

Image for restocking. Flashing system, boot & recovery.

2) zaradug_1.18.401.1_rooted_nosense_signed.zip

Stripped some heavy stuff like Sense, many HTC apps, Dropbox, G+, Hangouts and some other Gapps which can be downloaded from GPlay.

Default launcher - Apex.

Rooted and busybox'ed.)

Zipaligned.

Only /system is flashed.
[Upgrading, Modifying and Unlocking] mayankneil:
i'm on 1.16...can u tell me if my phone will become 1.18 if i flash dis? or what will exactly happen? and also i don t hv d stock recovery.....!
[Upgrading, Modifying and Unlocking] andreya108:
You should be very careful with that.

But you can try, make nandroid backup of you current system (to external SD card! internal will be wiped) and then flash stock 1.18 and make factory reset.

It is possible that radio will work too.. When I visited India I used my phone bought in Russia with Airtel sim without any problem.

Anyway, if it will not work you still can roll back restoring nandroid backup.
[Upgrading, Modifying and Unlocking] gugucha:
NANDROID requires ROOT right ?
[Upgrading, Modifying and Unlocking] David Roid:
Skeptical about the radio part. I too had the same cellular network issue as mayankneil when I accidentally flashed 1.16 boot.img into 1.18 phone. I went to HTC workshop to get it restored. Later I get 1.18 RUU zip, looking at 1.16 and 1.18 RUU file names, they do have different radio number.

So what I saying is better mayankneil get 1.16 RUU for India zara dug variant, or at least India 1.16 boot.img (assuming his radio is stock/not changed).
[Upgrading, Modifying and Unlocking] andreya108:
For sure!

---------- Post added at 02:33 PM ---------- Previous post was at 02:28 PM ----------

RUU for India is the best choice if available, but just for experiment he can flash everything from 1.18, including radio, boot and system. It may work if there will be no conflict with the rest of the phone.
[Upgrading, Modifying and Unlocking] mayankneil:
i lll be trying it today..thnx andreya108 for d zips man! .!! btw any1 got d method for swapping d apps or any thing lyk dat to sdcard!
[Upgrading, Modifying and Unlocking] andreya108:
Just succeeded in building recovery from sources. Also fixed screen flickering.

Download: philz_touch_6.18.7-zaradug-v2
[Upgrading, Modifying and Unlocking] David Roid:
Thanks man, but I hit 403 error trying to download it.

Also could you shed some light on what's peculiar with zara dug recovery? I.e. I compiled CWM recovery with zara stock boot.img myself following CWM's guide, why doesn't it work? Why your v1 doesn't work when flashed?
[Upgrading, Modifying and Unlocking] andreya108:
+twrp

You should use stock recovery.img and tune boardconfig.mk and fstabs to make it work.

Dont know why custom recoveries are not working when flashed, maybe htc bootloader fails to load android 4.4.2?

Also I've compiled twrp recovery in addition to cwm, both images attached below. Please test!
[Upgrading, Modifying and Unlocking] David Roid:
Typo, I did compile with stock recovery.img, with correct fstab (extracted from boot.img), but not much tuning with boardconfig.mk.

About today's two new recoveries you posted:

fastboot boot, fastboot flash

philz CWM, working w/o flickering, stuck at "entering recovery"

TWRP , working w/o flickering, fall back to fastboot
[Upgrading, Modifying and Unlocking] cooldudezach:
I don't have this device, but I'm having an issue with our recovery screen flickering. What did you do to fix it?

Thanks for the help!
[Upgrading, Modifying and Unlocking] andreya108:
You can try changing graphics.c to disable double buffering. This is dirty hack, but still work.
[Upgrading, Modifying and Unlocking] cooldudezach:
how would i go about doing that? I've tried a few things, and all I end up with is a black screen. :(
[Upgrading, Modifying and Unlocking] andreya108:
Stock fstab is good for stock boot, but it seems not very suitable for cyanogenmod-based recovery. Try fstabs (there are two) from my recoveries. You should also have correct kernel offset and pixel format and screen resolution.

---------- Post added at 11:40 AM ---------- Previous post was at 11:39 AM ----------

I cannot explain without seeing how your device flickers...
[Upgrading, Modifying and Unlocking] cooldudezach:
I'm not sure if it's the same kind of flicker, I was more trying to figure out how to disable double buffering, but here are some pics of the screen

http://xdaforums.com/showpost.php?p=48396727&postcount=62
[Upgrading, Modifying and Unlocking] andreya108:
Looks very similar...

In bootable/recovery/minui/graphics.c try commenting out the following code:

[SIZE="2"] /* check if we can use double buffering */
if (vi.yres * fi.line_length * 2 > fi.smem_len)
return fd;

double_buffering = 1;

fb->version = sizeof(*fb);
fb->width = vi.xres;
fb->height = vi.yres;
fb->stride = fi.line_length/PIXEL_SIZE;
fb->format = PIXEL_FORMAT;
if (!has_overlay) {
fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length);
memset(fb->data, 0, vi.yres * fi.line_length);
}[/SIZE]
[Upgrading, Modifying and Unlocking] cooldudezach:
I've tried that before, and tried it again to be sure, and it still ends up giving me a blank screen. Could you send me a copy of the graphics.c file you ended up using?
[Upgrading, Modifying and Unlocking] jmz:
Try adding both TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"

And compiling with graphics.c file https://github.com/jmztaylor/android_device_htc_k2cl/blob/twrp/recovery/graphics.c
[Upgrading, Modifying and Unlocking] arindam.palit:
Anyone please help me in getting apps and their data moved to SD card for my zara dug! I am on 1.18 with root access...foldermount or link2sd is not working!
[Upgrading, Modifying and Unlocking] mayankneil:
country?

---------- Post added at 01:31 PM ---------- Previous post was at 01:16 PM ----------

plz man do a nandroid backup and c d directory ....share the boot,img man m in big trouble dude....i asked you like hundred times,.....for gods sake plzzzzzzzzzzzzzzzzzz send me indian boot.img plzzzzzzzz...........somebody plz tell this guy! :(
[Upgrading, Modifying and Unlocking] arindam.palit:
hahahaha.....this is hilarious! I can only help you if you tell me how to do it...step by step..and be advised am not going to cook my phone for ya:D
[Upgrading, Modifying and Unlocking] cooldudezach:
Thanks for the help guys! You helped me narrow down where I needed to fix it. Basically, I just adjusted the x-axis of the back framebuffer. Here's where I adjusted it:

I changed:
fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length);

to:
fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length + 2816);

Edit: The reason for 2816 is that there are four bits (or whatever) per pixel (r+g+b+a, i assume), so that's 704px, which is ~1.5x the width of the device, which was the issue. :)
[Upgrading, Modifying and Unlocking] jmz:
To be perfectly honest, using a custom graphics.c is always better than editing recovery source. Doing it your way will cause problems for yourself down the road based on the recovery maker's changes to graphics.c file
[Upgrading, Modifying and Unlocking] cooldudezach:
I'm not following you. It IS a custom graphics.c at this point, is it not?
[Upgrading, Modifying and Unlocking] jmz:
if you are modifying bootable/recovery/minui/graphics.c you are editing the recovery source. So possibly in the future, they might make changes that render your mod obsolete. So if you pull in graphics.c into your device folder and mod it there, you don't run into compatibility problems later
[Upgrading, Modifying and Unlocking] arindam.palit:
please is there any solution to use sd as the default storage device for apps and their data?
[Upgrading, Modifying and Unlocking] andreya108:
Thank you, I will try this workaround too...
[Upgrading, Modifying and Unlocking] cooldudezach:
Okay, I gotcha now. I am planning on doing that at some point. I actually have a couple devices that use that line, so I'm okay with leaving it there for now. Don't want too many excess files. :)

I don't have bootable/recovery hooked up to the github repo for it, and if I sync cm sources, it skips the edited files, so I'm pretty safe there.

Thanks for the tip though!
[Upgrading, Modifying and Unlocking] andreya108:
Now I'm working on it, please be patient...
[Upgrading, Modifying and Unlocking] cooldudezach:
You will probably need to adjust the number, and remember it must be in multiples of 4, otherwise you lose color info! (ie: screen become red, blue, etc) :)

Edit: My device has a width of 480px, so if that's yours as well, you may not need to change it.
[Upgrading, Modifying and Unlocking] andreya108:
[RECOVERY][FIXED] philz-cwm6 & twrp

Good news! I've succeeded in making recoveries bootable when flashed. One should use up-to-date tools for unpacking and packing images, from the latest android sources and strictly follow original htc image layout.

As usual you can find downloads in my signature.

Also attaching here:
[Upgrading, Modifying and Unlocking] mayankneil:
hi

ok here r d steps! >

u rooted or not?

if u r rooted then go to your custom recovery and der will be one option of backup and restore, make a backup on sdcard! and den in d sdcard directory....der u ll c d folder CLOCKWORKMOD....then go dig inside and den u ll c a boot.img in it.....this process is fully safe! plz do it and attach d boot.img here at xda
[Upgrading, Modifying and Unlocking] David Roid:
Tested and true. Thank you so much man.

Also what's original htc image (stock recovery you are referring to?) layout like and how do I find that out?
[Upgrading, Modifying and Unlocking] mayankneil:
thnk u soooo much andreya!! u helped a lott!! and this recovery works like charm!! u rock! :)
[Upgrading, Modifying and Unlocking] andreya108:
Looking in the hex editor I discovered that boot image contains 5 parts:

1) htc signature

2) header

3) kernel

4) ramdisk

5) dt (dont know what it is, but without that part it wont boot)

Third party tools like umkbootimg and abootimg knows nothing about (5). So they fail to build proper image.

There is tool unpackbootimg in android sources, it extracts all parts, and mkbootimg from that sources builds bootable image, when all offsets are configured.

I used extracted from my phone WWE_EU images, and also tested China images from RUU you've shared.

My EU phone is booting and working fine when booted using China boot.img.
[Upgrading, Modifying and Unlocking] David Roid:
Looks plausible.

Not following you on boot.img thing that didn't you just say on the other day stock recovery.img (instead of boot.img) is supposed to be used for custom recovery? Then why stock boot.img's layout makes a difference here? The dt should be extracted from boot.img and added into custom recovery?
[Upgrading, Modifying and Unlocking] andreya108:
Both stock recovery.img and boot.img contains dt, but automated scripts like builder.clockworkmod.com/build and even from cm-11 git does not care about dt and custom offsets. This is htc innovation to sign boot images and make them uncommon.

I've used the following command to build:

mkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --base 0x835fff00 --kernel_offset 0xFEA08100 --ramdisk_offset 0x00020100 --second_offset 0xFF900100 --cmdline 'console=ttyHSL0,115200,n8 androidboot.hardware=zaradug user_debug=31' --dt dt.bin -o new_image.img
[Upgrading, Modifying and Unlocking] arindam.palit:
Thank you sooo much!!!!
[Upgrading, Modifying and Unlocking] mayankneil:
i flashed your update zip....actually my phone got updated but it isn t able to detect d simcards inserted! m in big big trouble....some kind of serious problem is hpnning....and dat **** guy arindampalit is also not helping although he has got d indian boot
[Upgrading, Modifying and Unlocking] andreya108:
Have you flashed radio 23550.29.18.131205 as well?
[Upgrading, Modifying and Unlocking] arindam.palit:
mayank...call me *** just one more time! This shows your true color...and this is why your phone is screwed up.
[Upgrading, Modifying and Unlocking] andreya108:
Thank you! That works! But the magic number for our phone is PIXEL_SIZE*768. Screen res. is 540x960.

---------- Post added at 10:42 PM ---------- Previous post was at 10:30 PM ----------

That is fun, but it looks like:

1) image with dt added boots fine when flashed but stuck on boot when booting via 'fastboot boot'

2) image without dt added does not boot when flashed but boots fine when booting via 'fastboot boot'
[Upgrading, Modifying and Unlocking] jmz:
In all fairness the only reason dug is having issues with recovery is the dual sim. HTC doesn't do this with a single other device unless it is dual sim. As such I never heard of it before. Good job
[Upgrading, Modifying and Unlocking] arindam.palit:
Hello Andrea, any progress with the apps on sd card please?
[Upgrading, Modifying and Unlocking] arindam.palit:
Mayank, inspite of the curse words on a fellow Indian, I got the files for you...do you want me to upload them to google drive? And in return, first I need to know the exact steps you did to link apps and their data to sd card...step by step instruction...I'll then upload the files to gdrive
[Upgrading, Modifying and Unlocking] mayankneil:
---------- Post added at 11:49 AM ---------- Previous post was at 11:48 AM ----------

[/COLOR]i hvnt flashed radio coz i think only s off users can flash radio....i tried flashing by fastboot flash radio radio.img but nothing hppnd

---------- Post added at 12:11 PM ---------- Previous post was at 11:49 AM ----------

i dont know but i have a way to link dos OBBs of 1.6 gbs etc to sd card! u can use foldermount....it will not work untill u patch d rom.....for patching d rom.....first try mounting via foldermount....then u ll be prompted to patch my rom......patch it and reboot....u just hv to click dit~ but remember.....u hv to PATCH ur phone! m playing asphalt8 etc !

now plzzzzzzzzzzzzzzzzzz send me d boot.img! plzzzzzz n sorry for my bad behaviour! actually i ws bit furstrated coz my phone not able to detect d network for lyk a month now! so plzzz ur img will help me a lotttt plzzz
[Upgrading, Modifying and Unlocking] arindam.palit:
which file to patch for foldermount to work? please share the link or file ..i have rooted but stock rom
[Upgrading, Modifying and Unlocking] mayankneil:
add me smwhr else like fb or hangouts...so dat i can tell u d process accordingly!

---------- Post added at 12:52 PM ---------- Previous post was at 12:27 PM ----------

dude....dunno how but smhow i ws prompted to patch my rom dude! u ll also get prompted........if u fail to mount d storage and thing...try dude.....and plz dont provide d boot.img....no problm....and also i gave u the idea how to do.....if u hv a little respect den u ll attach d files in d next post if not then no prblm...i ws hppy to hlp!
[Upgrading, Modifying and Unlocking] mayankneil:
hi

FLASH THIS VIA CWM and ull be able to use folder mount [MENTION=4596130]arindam.palit[/MENTION]

as expected guy vanished and nvr helped@@ :)
[Upgrading, Modifying and Unlocking] mayankneil:
{MOD} <sense 5> (TOUCHWIZ for sense 5)

any 1 want to try touchwiz theme for htc desire 601 dual sim :-

i searched a lott and got this

i got 3 files individually and made a rar file ....

m js sharing it here

https://www.dropbox.com/sm/create/GALAXY NOTE 3 Pack For Sense 5 .rar

extract

u ll c 2 zips.....flash both in CWM

:)

and for icons ....use ICONTHEMER > xposed 1,..and apply d theme apk i attached
[Upgrading, Modifying and Unlocking] andreya108:
[GUIDE] easy zaradug firmware dump

Here is a howto of making firmware dump on htc desire 601 dual sim

Prerequirements:

1) root priveledges. if you making dump to let some people discover how to get S-OFF, then your phone's bootloader HAVE TO BE *LOCKED*. otherwise this does not matter.

2) sd card with 2GB+ free space (external storage).

Steps:

1) put dump.sh to the root of your sd card (external storage).

2) get rooted. you need terminal emulator with root priveledges. if you dump locked 1.16 try cydiaimpactor.

3) in terminal emulator # type:

cd /data/local/tmp
cp /sdcard2/dump.sh .
chmod 755 dump.sh
./dump.sh

4) Wait some time.... (the script does not dump private information like imei and user data, though you can uncomment it).

The dump will appear in ExternalSD/zaradug_firmware_dump

5) Now you can save zaradug_firmware_dump/* to you computer, make archive and share. Please, when sharing, include full firmware version (like 1.16.707.3) in archive name
[Upgrading, Modifying and Unlocking] mayankneil:
cd/data/local/tmo: not found?
[Upgrading, Modifying and Unlocking] andreya108:
for sure! not tmo, but tmp !
[Upgrading, Modifying and Unlocking] mayankneil:
dude can u tell me how can i get s-off coz after getting it,,,,,only then i l be able to flash d radio on d update zip u attached.....i flashed d update i jus hv to flash d radio now....but only s off users can do it! can u plzzzzzzzz check d steps out!

or rumrunner is smthing i ve heard of! plz help here! my phone is broke for 2 months now
[Upgrading, Modifying and Unlocking] andreya108:
There is no ways to get s-off yet. To make phone s-off we should have:

1) fully stock locked bootloader firmware dump.

2) spend some time (unpredictable) to discover how to get s-off like guys made rumrunner and such tools did...

We have not reached even the first point. Unfortunately.
[Upgrading, Modifying and Unlocking] mayankneil:
ok

so now der isn t any way i can restore radio back! how can i get d indian RUU??
[Upgrading, Modifying and Unlocking] arindam.palit:
Foldermount not working even on my rooted zara dug

Even the foldermount patch doesn't work in my zara dug...i see the green pin but when i start downloading game data for real racing 3 it still shows low internal memory!:crying:
[Upgrading, Modifying and Unlocking] andreya108:
zaradug_1.18.401.1_deodex_rooted.zip

There is a chance to get patch for moving app data to sd.. soon... plz wait.

---------------------------------------------------------------------------------------------------

Here is new rom, suitable for custom rom makers:

zaradug_1.18.401.1_deodex_rooted.zip DL in signature

Stock 1.18 deodexed + zipaligned. (be patient during first boot, it takes ~5min)

Rooted, busybox added.

Google framework, apps and facebook & twitter updated to current versions.

Removed some google apps like books, games, video, kid's mode and +.

Early adb loading is enabled to debug firmware booting (root mode enabled).
[Upgrading, Modifying and Unlocking] mayankneil:
plz try somthing for updating my radio....is der any way u know?

and foldermount is working for me bro! just patch the rom!

---------- Post added at 01:05 PM ---------- Previous post was at 01:04 PM ----------

plz try somthing for updating my radio....is der any way u know?

and foldermount is working for me bro! just patch the rom!

---------- Post added at 01:13 PM ---------- Previous post was at 01:05 PM ----------

HERE S THIS GUIDE FOR HTC 1 .....CAN U MAKE A FLASHABLE ZIP FOR RADIO.IMG FOR ME PLEASE JUST LIKE THIS! HERE PLZZZZ

http://xdaforums.com/showthread.php?t=2248586
[8125, K-JAM, P4300, MDA Vario Software Upgrading] xelencin:
For all of those flashing their USA MDA's and wanting to return it to its original form, well now you can. This installer includes CID-UNLOCK if needed and will flash the phone in full for you automatically using RUU.

[ ROM Versions ]

IPL: 1.08

SPL: 1.08

OS: 1.8.10.2

GSM: 1.09.10

Extended Rom: Default T-Mobile

[ Download ]

Filename: CUSTOM_RUU_Prodigy_1081002_108_10910_TMO_US.exe

For now it can be found at: ftp://xda:xda@ftp.xda-developers.com/Uploads/HTC_Wizard

Hopefully it will be moved to: ftp://xda:xda@ftp.xda-developers.com/Wizard/Roms/Tmobile

[ Credits ]

- itsme for "itsutils"

- MachinaGOD for "RAPI Unlocker"

- MachinaGOD for "HTC Wizard Unlocker"

- Button for the inspiration

- xda-developers.com forums

A custom 2.17 ROM for T-Mobile USA will be coming soon...