yashsingh1/xdaforums huggingface dataset:
[HTC Desire 530 Questions & Answers] Captain_Throwback:
I'm patching the kernel binary to fix touch, since as you stated, there is no kernel source available for this device. The pre-built kernel binary used in this version of TWRP is from this device. But apparently that's not booting on more recent versions. The device files used to build TWRP don't require kernel source - using a pre-built kernel is fine. But for some reason this version just stopped booting for people. So if you're going to unpack/repack a recovery image to try and get it working for people here, just use the kernel from a boot/recovery image from one of your RUUs and upload it so someone can see if it boots. If it does, give me the kernel you used and I'll patch it so touch works.
[HTC Desire 530 Questions & Answers] Jkidddd:
So can anyone help me lol
[HTC Desire 530 Questions & Answers] BigCountry907:
[MENTION=7989240]Jkidddd[/MENTION]

I need a little time but yes I will help.

Then Captain_Throwback will patch the kernel if it boots for you.

You posted your device info so I can get the latest RUU.

I need to unpack the RUU to get the files we need using the RUU Decrypt tool.

It's very likely I will need the KeyFile for the RUU Decrypt tool you might have to help me out with that.
[HTC Desire 530 Questions & Answers] Captain_Throwback:
You shouldn't. The keyfile should be in the tool already or in the thread.
[HTC Desire 530 Questions & Answers] BigCountry907:
Test twrp ruu kernel swap

[MENTION=7989240]Jkidddd[/MENTION]

Here is the test TWRP for the device with CID = GLOBA001.

Unzip it and flash using fastboot (download mode)

http://www.mediafire.com/file/9cyi7m8lbv5pkj8/TWRP-CID-GLOBA001..zip

If you get this screen when you boot into recovery then there are kernel issues.

[IMG="Won't Boot"]http://i1376.photobucket.com/albums/ah40/Big-Country907/IMAG0001_zpsmfmnceqt.jpg[/IMG]

If you get this screen but it won't let you do anything then the TOUCH needs patched in the kernel.

[IMG="Recovery Boots"]http://i1376.photobucket.com/albums/ah40/Big-Country907/IMAG0040_zpsaht3vkdq.jpg[/IMG]

Test this on your device and report back your results.

If it boots Captain_Throwback can patch the TOUCH in the kernel.

Here is the Kernel

http://www.mediafire.com/file/r3bajugr5cb88g3/GLOBA001-KERNEL.zip

To everyone else.......This is for device with CID=GLOBA001 only
[HTC Desire 530 Questions & Answers] shanman-2:
Mods, Why is this thread in questions and answers? Hope this is the right place to ask this question!
[HTC Desire 530 Questions & Answers] Jkidddd:
Whatever you need im yours mate
[HTC Desire 530 Questions & Answers] BigCountry907:
I posted a test recovery for you to try.

Flash it and let us know.
[HTC Desire 530 Questions & Answers] Jkidddd:
Sorry i scrolled past this post without realizing... Can you give me a step by step instruction what to do im on my mac

---------- Post added at 09:33 PM ---------- Previous post was at 09:11 PM ----------

NVM this is the error I got

On my phone it says

SD NOT MOUNTED

9 RU_SECURITY_FAIL_recovery and bootloader isnt BL_UNLOCKE

And the error in the terminal is (NOTE I CHANGED THE NAME OF THE FILE)

iMac:android MJ$ ./fastboot flash recovery recovery.img

target reported max download size of 725000000 bytes

sending 'recovery' (12692 KB)...

OKAY [ 1.755s]

writing 'recovery'...

(bootloader) HOSD CL#773773

FAILED (remote: 9 RU_SECURITY_FAIL recovery and bootloader isn't BL_UNLOCKE)

finished. total time: 2.775s

iMac:android MJ$
[HTC Desire 530 Questions & Answers] shanman-2:
[MENTION=7989240]Jkidddd[/MENTION] you need to unlock your bootloader to install twrp!

go here
[HTC Desire 530 Questions & Answers] schmanto:
Hey mate, I flashed this recovery you posted and it actually did boot at last! However, touch does not work, as you predicted.

Then I looked into your guide how to flash supersu anyway, but couldn't figure out the name of the system partition.

Anyway, big thanks for your help so far, we are getting close ;]
[HTC Desire 530 Questions & Answers] Captain_Throwback:
Alright, I'll patch the kernel (at some point) so that touch works and repack, and you should be good to go.
[HTC Desire 530 Questions & Answers] Captain_Throwback:
[MENTION=7006025]BigCountry907[/MENTION] [MENTION=6720440]schmanto[/MENTION]

Here's that same TWRP with the kernel patched for working touch. A side-effect of hacking the kernel in this way is that the "Reboot Recovery" option in TWRP doesn't work properly and will only reboot to system. Same goes if you were to try "adb reboot recovery" from within TWRP.

It's possible this one won't boot because of how I had to compress the kernel, but if it doesn't, I have two other methods I can try. So first. let's see if this one works, and we'll go from there.
[HTC Desire 530 Questions & Answers] idecibeL:
Thanks! It works :good:
[HTC Desire 530 Questions & Answers] schmanto:
thank you sir! you made me very happy :)

btw. My device is from Mexico, telcel company

..now successfully rooted and running xposed :angel:
[HTC Desire 530 Questions & Answers] BigCountry907:
I'm glad it worked out for you guys.

If anyone else runs into the recovery not booting please post your device info.

CID and the MID.

It appears some variants have a different kernel. So if we run into this again I can pull the kernel from the RUU.
[HTC Desire 530 Questions & Answers] Atif762:
I've done it

I've unlocked the boot loader and rooted but unrooted it as I I'm selling the phone if u want to buy the phone message me privately. I'm selling the phone with the unlocked boot loader.
[HTC Desire 530 Questions & Answers] BigCountry907:
[MENTION=1162986]Captain_Throwback[/MENTION]

Is there a method I can incorporate into TWRP that will log the actual commands that are passed to TWRP.

I know there is the recovery log. But it isn't detailed enough.

What I want to do is log all commands sent to TWRP through the TWRP Shell in the background. ( No Terminal Window open)

I have a program that is sending commands to TWRP in the background.

I can't actually see what commands are being sent. If i could log the commands before during and after execution that would be great.
[HTC Desire 530 Questions & Answers] Captain_Throwback:
I don't really know what you're asking.

Maybe you should go on the TWRP IRC and ask the TWRP devs directly?
[HTC Desire 530 Questions & Answers] BigCountry907:
Kernel Patch

[MENTION=1162986]Captain_Throwback[/MENTION]

Thank you so much for patching the 530 kernel.

I just got a 530 for testing and even XTC-2 Clip is using your recovery to S-Off.

I admire your work and would be proud of such accomplishments.

Awesome work.

I have one more request for you.

Can you please patch this kernel for the desire 526 so touch will work.

Or even better point me in the direction of how you are patching so I can learn myself.

I took your 626s recovery and swapped the kernel with the 526 to get twrp working on the 526.

But of course no touch.

Your assistance is greatly appreciated.
[HTC Desire 530 Questions & Answers] Captain_Throwback:
I'll just tell you how I do it and let you have at it ;):

Use extract-vmlinux to decompress the kernel. You'll have to cat the output to a file, which will become your kernel binary (you'll also need to comment out this line if you want it to actually work).

Patch the uncompressed kernel binary for touch as indicated below:

# Replaces string 'recovery' with 'rec0very' so htc_get_bootmode() doesn't know we're in recovery
sed -i -E -e 's/recovery\x00/rec0very\x00/g' <name-of-kernel-file>

You'll then have a patched, uncompressed kernel binary. To compress it, you'll have to find some similar kernel source, and compile it, but replace the "Image" (uncompressed kernel) with your patched one (and make sure it doesn't get overwritten on change), so that you have a kernel binary that's similar in size to the one you started with. Alternatively, you can just leave the kernel uncompressed ;) and repack it back into the image (which will be much larger since the kernel is uncompressed). If it doesn't fit on the partition due to size, you will have to find a way to compress it.

Have fun!
[HTC Desire 530 Questions & Answers] Jkidddd:
Lol sorry but thats the problem that im having which is unlocking my bootloader
[HTC Desire 530 Questions & Answers] shanman-2:
:p

Hello again!

Looking back I see you got to download mode and successfully ran a fastboot command!

Now go to the htc dev site and follow the instructions to unlock your bootloader, just use the same usb port and method you used in post #109 to get to download mode and run the fastboot commands.
[HTC Desire 530 Questions & Answers] Jkidddd:
I finally got it rooted, the first TWRP touch didn't work but the second one did. I seem to have a wifi problem at times (nothing major) but that usually happens on my devices when I root them so hopefully it stops. Thanks to everyone that helped me.

Are there any working roms yet.

---------- Post added at 11:34 AM ---------- Previous post was at 11:32 AM ----------

Thanks alot for the patched kernels they worked!

---------- Post added at 11:35 AM ---------- Previous post was at 11:34 AM ----------
[HTC Desire 530 Questions & Answers] ThatmewH:
The Htc Desire 530 isnt listed on the Unlock Bootloader site
[HTC Desire 530 Questions & Answers] ☆KØŁØЯΛĐØ☆:
Select HTC Desire. It works. I've rooted, installed twrp, unlocked the bootloader, S-Off[ed], etc.. Don't give up if you can't get it the first couple tires. Remember, Rome wasn't built in a day

☆KØŁØГΛĐØ☆
[HTC Desire 530 Questions & Answers] dornz:
yes he's right it does work gained root about 30 mins ago the side load did not work for me but I just copy and paste zip to internal storage and flashed it with twrp

All good here [emoji41] [emoji1]
[HTC Desire 530 Questions & Answers] dornz:
Yes don't give up it's rootable
[HTC Desire 530 Questions & Answers] Dkmack:
Ok maybe I am just dense but I can in now way shape or form get this phone to show in fastboot devices and there is no option besides system info, barcode, reboot to download, reboot to bootloader, reboot and power down. I have enabled oem unlock checked in dev options and the device shows up in cmd in adb devices, I can not for the life of me get any further than the adb reboot since it never detects fastboot device after rebooting to DL mode.

Any ideas would be appreciated - This is on TMO btw and trying to unlock the bootloader and root -
[HTC Desire 530 Questions & Answers] mariosaraylian:
T-MOBILE Update 1.36.531.4

Hi Everyone:

Do we need to revert back to STOCK Recovery in order to let the TMOUS 1.36.531.4 Update recently released to install? After I try to do it through the OS booted up, it takes me back to TWRP and shows errors when it tried to install.

Do we need to wait for a modified release by someone to install it?

I don't see any mention in the forums on the TMOUS 1.36.531.4 Update at all, so I figured I would post and ask....

Thanks!!
[HTC Desire 530 Questions & Answers] mariosaraylian:
Here is the DIrect Download Link to the RUU EXE for the TMOUS HTC Desire 530 to Ver. 1.36.531.4

I assume if we run this, it will Unroot the phone and we have to Root from scratch....correct? I'm not sure if it affects S-OFF or not......

http://dl3.htc.com/application/RUU_...1.4.exe?_ga=1.199798574.1081880102.1474414169
[HTC Desire 530 Questions & Answers] dornz:
You don't need it to show up in fastboot devices . What I done was adb devices it shows up there then open fastboot folder and hold shift right click and open cmd and run fastboot commands
[HTC Desire 530 Questions & Answers] Captain_Throwback:
Can someone test this TWRP for me and provide a recovery log? Thanks.
[HTC Desire 530 Questions & Answers] mariosaraylian:
Captain:

I think I captured a log from when I tested it for you yesterday when we were chatting on IRC in the TWRP channel. Otherwise I'm happy to do it for you again when I get home!!!
[HTC Desire 530 Questions & Answers] Captain_Throwback:
That's a brand new TWRP I just built. I don't even know if it'll boot. You couldn't have tested it yesterday. But please do test it when you get a chance.
[HTC Desire 530 Questions & Answers] BigCountry907:
[MENTION=1162986]Captain_Throwback[/MENTION]

Device Info [ METRO-PCS Carrier]

(bootloader) kernel: lk

(bootloader) product: htc_a16ul

(bootloader) version: 1.0

(bootloader) imei:

(bootloader) version-main: 1.01.617.27

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U113251341_58.01.60510G

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 2PST20000

(bootloader) cid: 11111111

all:

finished. total time: 0.012s

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

FLASH RESULT

bigcountry907@bigcountry907-G551JW:~/Gpt-EMMC-Builder/Project-Files/Proj_HTC-530/TWRP-Recovery$ sudo fastboot flash recovery twrp-3.1.0-0_CPTB-TEST1-htc_a16ul.img

[sudo] password for bigcountry907:

target reported max download size of 725000000 bytes

sending 'recovery' (13304 KB)...

OKAY [ 2.090s]

writing 'recovery'...

(bootloader) HOSD CL#766079

(bootloader) start@1

(bootloader) recovery@100%

(bootloader) Update partition OK

(bootloader) end@Done

OKAY [ 2.421s]

finished. total time: 4.511s

End Result

FAILED TO BOOT RECOVERY MODE.

I noticed they just recently released the kernel source for Marshmallow.

Guess you are working on the official build.

I am more than happy to keep testing your builds.

It looks like the kernel isn't booting.

Do you still want /cache/recovery/last_log ?

I will be working on my projects all day so I will be available asap for further testing.

Should take me less than 5 min to get back to you.

But can you please upload your kernel tree to github when your done?

I'm sure It would save me time to start out with a patched build.

I think it should be a violation of the license agreements for manufactures to release kernel source that wont boot or build.

Another cheap attempt for them to hinder our development.
[HTC Desire 530 Questions & Answers] Captain_Throwback:
I'm using the updated source, so if the old 3.0.2 version still works for you, this one likely won't. This one is for people on the updated firmware. I'm not sure if I can make it compatible for both cases - I'll have to decompile the dtb and try to combine them for more complete compatibility. I'll probably also have to leave it separate and remove the second ramdisk offset.
[HTC Desire 530 Questions & Answers] BigCountry907:
[MENTION=1162986]Captain_Throwback[/MENTION]

I'm not sure which updated source you are referring to.

Updated Kernel Source or Updated Omni Source.

The kernel source that should be for the device i have is. a16ultmus-3.10.49-perf-ge03a442.tar.gz.

Is that the kernel source you are using for this TWRP Build? If not then what Kernel Source are you using as a base?

It would not be a problem for me to run a newer RUU, What is the Mainver you are looking to test on?

Unless there is a difference in hardware wouldn't the dt be the same?

At any rate, I am willing to do whatever to help out. And I'm not a novice so no hand holding required.

I can run updated firmware no problem. Which device and build is this Recovery for?
[HTC Desire 530 Questions & Answers] Captain_Throwback:
Kernel source from HTC Dev. You're still on old firmware. Update your firmware and then try it. Not sure what you're referring to with Omni source.
[HTC Desire 530 Questions & Answers] BigCountry907:
Flashed newest RUU. My other version is the general unlocked version.

This ruu is.

RUU_A16_UL_M60_DESIRE_SENSE70GP_TMUS_MetroPCS_US_1.36.1550.5_Radio_01.01_U113251531_68.01.61229G_release_495720

Still the same result. Unable to boot Recovery.
[HTC Desire 530 Questions & Answers] Captain_Throwback:
Okay, then I probably need to separate the dtb. Can you grab a last_kmsg from after the failed boot?
[HTC Desire 530 Questions & Answers] BigCountry907:
This is the log from.

cat /sys/fs/pstore/console-ramoops

If you want a different log let me know.

Also the original recovery will still boot with the updated RUU.

However the test recovery will not.
[HTC Desire 530 Questions & Answers] Captain_Throwback:
Is there no last_kmsg? That's what I asked for...

EDIT: Like I said already, I probably just need to separate the dtb and update the mkbootimg arguments.

EDIT 2: This is a last_kmsg from right after a failed boot to the new recovery, right? I just want to confirm that, since this doesn't appear to be showing me any attempt at booting it at all. I'll make some updates and try again tomorrow. Maybe I'll try and borrow a 530 from [MENTION=2376614]jcase[/MENTION] - it'll make testing much easier.
[HTC Desire 530 Questions & Answers] Captain_Throwback:
Alright, rebuilt TWRP with dtb separated (though that really shouldn't make a difference). If this one doesn't boot, I'll try using the dtb from the 3.0.2 TWRP, and if that still doesn't work, I'll just revert to the kernel/dtb from the original 3.0.2 release. I was hoping to be able to use the source-built kernel to patch the touch driver and clean up/fix some things, but that may not be possible. Unless this works, in which case, yay!
[HTC Desire 530 Questions & Answers] Captain_Throwback:
Recovery log please.

And yes, this is built with the HTC Dev kernel source - the only modifications I made were for recovery. Nothing that would affect anything else. I'm not sure what patches you think you'd need, but the source builds perfectly fine by following the instructions in the Readme.txt that comes in them.

Not sure what you mean by signed kernel - this was built on my box. Since you've confirmed it boots, I'll build an "unofficial" i.e. not-test version once I see the recovery log and confirm everything looks as it should.
[HTC Desire 530 Questions & Answers] prmbasheer:
USD25 for S-Off using SunShine?!? That's 1/5th of the cost of my phone :) I am better off with S-on in that case ;)

It's not for me to say but the price seems a little unfair, in my opinion. But I am just saying. Not accusing anyone. I would have used the service if the price is around USD 5-10.
[HTC Desire 530 Questions & Answers] BigCountry907:
Logfiles

Here are the log files.

The new TWRP installed the Twrp app as a system app with no problem as well.

Far as the kernels. You don't get the proprietary modules with the source.

So I find myself adding the modules to the makefiles.

Usually the source compiles without errors if you use the right toolchain but takes work to get everything up and running to boot system.

The wi-fi an be a real pita. I need to get better at debugging a kernel that won't boot.

I know how to split the dt img but what did you have to change.

Usually i just use the dt img from the device boot and pack the boot img that way.
[HTC Desire 530 Questions & Answers] Unregulatedzoul:
Please I'm stuck.

Hey I just got back from Iraq last month and I have been trying desperately needing help. I got the 530 desire prepaid from Walmart. I have been super busy so I've tried and tried much as I could. I have rooted phones before but this bootloader I cannot get it unlocked. It's Verizon. I am kind of a newbie here guys so forgive me if this is wrong place. Not sure of all the rules. But if anybody could guide me here in about a hour you would be much much appreciated. I'm trying to learn so is there even a way to root my phone? Somebody who has the patience, if you could please help me get root. I'm very smart and know a good bit so I'll follow you just need a hand. Never asked for help here but I love this stuff and really want to learn. Thank you. Idk if I'm supposed to leave my number here but if somebody could text and go from there to get me rooted. Thanks everyone and sorry to just jump in.
[HTC Desire 530 Questions & Answers] Captain_Throwback:
Verizon doesn't allow unlocking phones via HTC Dev. You can try running SunShine anyway to see if it can temp root your device. Otherwise, there's likely no way to root.
[HTC Desire 530 Questions & Answers] Unregulatedzoul:
I tried sunshine apk. Said I needed temp root. Well that is just a let down but thank you for responding. Anything cool that I can do with this phone? Lol
[HTC Desire 530 Questions & Answers] Rocker100bh:
Rooted! T-Mobile device

Awesome thanks for the post! Worked very well. It's the first time I've used adb to gain root. I've done hours and hours of research and finally decided to try it on my daily. Well what do ya know. thanks [MENTION=2376614]jcase[/MENTION].:D
[HTC Desire 530 Questions & Answers] BigCountry907:
Unlock / root verizon

I have found a way to create a boot able SD Card.

With the SD Card you can modify the CID by loading the MODIFIED board_info.img from the SD-CARD.

This is tested on the HTC Desire 526 Verizon Model and working.

With the sdcard in the device you boot to download mode.

Then you fastboot oem get_identifier_token to get the unlock token for htc dev.

If you get a killswitch error you just flash the frp.

You can fully boot off the sdcard into android. The system image on the sdcard is rooted.

With the rooted system you flash frp.

Then boot back to download and generate your code.

The sdcard i have created here may work for the Desire 530 even though it is for the 526. THERE BOTH MSM8909 processors.

IF YOU HAVE A VERIZON DEVICE GO HERE AND FOLLOW THE INSTRUCTIONS.

https://xdaforums.com/desire-526/general/verizon-htc-desire-526-boot-loader-root-t3587118

When I get a chance to use my kids desire 530 I will replicate my 526 project for the 530.

UNTIL THEN SOMEONE TEST THE DESIRE 526 SDCARD ON YOUR DESIRE 530 AND REPORT BACK.

THERE IS NO RISK OF BRICKING USING THE SDCARD.
[HTC Desire 530 Questions & Answers] jcase:
Please dont spam this everywhere, keep it in yor own thraeds
[HTC Desire 530 Questions & Answers] w0rdie:
Whats the best path to getting a TWRP build for the 530 running 7.0?
[HTC Desire 530 Questions & Answers] dornz:
Hi anybody no how to put an end to this ota update (screens below)..can't find fota in titanium backup to freeze [emoji20]
[HTC Desire 530 Questions & Answers] AndroidSamurai:
Freeze the HTC Service Pack app using Titanium Backup and reboot.
[HTC Desire 530 Questions & Answers] H3lltronik:
I'm stuck in the 4th step, I can't reboot in the recovery system, it says "Failed to boot to recovery mod" what im doing wrong?
[HTC Desire 530 Questions & Answers] dornz:
Awesome dude thanks
[HTC Desire 530 Questions & Answers] dornz:
well freezing HTC services did not do ..?.since I flashed T-Mobile system.img maybe ota coming from there
[HTC Desire 530 Questions & Answers] AndroidSamurai:
Flashing the newest System.img I have posted should not give you an update notification as that's what I've done. I am not getting any OTA notifications after doing so.
[HTC Desire 530 Questions & Answers] dornz:
Hi the system.img I flashed came from xda member grniyce,s thread

---------- Post added at 12:35 AM ---------- Previous post was at 12:35 AM ----------

https://xdaforums.com/showthread.php?t=3483765
[HTC Desire 530 Questions & Answers] GurneyHallek:
So I haven't seen it posted, but if I may ask, any good word on the Verizon Desire 530? I know Verizon likes locking boot loaders, but was hoping someone knows something I don't. Thank you!!!
[HTC Desire 530 Questions & Answers] hapie:
Worked fine for me !

Thank you very much ;)
[HTC Desire 530 Questions & Answers] Cleverfoal22507:
says cannot load recovery
[HTC Desire 530 Questions & Answers] ToXyK:
Help

Can you help me please? I need a firmware for HTC Desire 530, can you please reupload it?

mediafire.com/file/15h4z6rc2gpyhjx/2PSTIMG_A16_UL_M60_DESIRE_SENSE70GP_H3G_ROI_1.08.773.11_Radio_01.01_U113251281_50.04.60218G_release_471539_signed_2_4.zip - this link is expired... :(

(bootloader) kernel: lk

(bootloader) product: htc_a16ul

(bootloader) version: 1.0

(bootloader) version-main: 1.08.773.11

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U113251281_50.04.60218G

(bootloader) version-bootloader: 1.0.0.0000

Thanks!!!