yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] baxter006:
Been removing HTC desire bloatware from my UK Orange version (using twrp file manager) by removing apk and odex, some only have apk either from system/app or system/priv-app

All Amazon apps (called Orange Amazon kindle.apk Etc) about 100mb total

Facebook 40mb

Twitter

Instagram

Linkdin

HTC scribble (called LUCY.apk) 25mb

Stocks and shares (called stocks.apk) 1mb

HTC zoe video created (called HTCZero.apk) 90mb

Browser default (browser.apk) 5mb

Tasks (mytasks.apk) 5mb

KidMode-google.apk 45mb

Keyboard everyone apart from English and English all

Think this is about all that are safe to remove, there's a No bloat free app on android where you can disable any system apps first. That way you can test the results. Its also worth doing a back up through TWRP in case you removed the wrong file.
[Android Q&A, Help & Troubleshooting] patrik.KT:
You don't need S-OFF to get rid of system write protection. It can be disabled in kernel. I'll compile a kernel with that disabled.
[Android Q&A, Help & Troubleshooting] baxter006:
That's great, used to Samsung and Sony phones where once there rooted your free to do what you like.
[Android Q&A, Help & Troubleshooting] jamacuco:
"SDFix: KitKat Writable MicroSD" does not work on HTC devices because any change in /system will be reverted in the next restart. I have been able to set the right permissions in platform.xml (without S-OFF):

<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
[B]<group gid="media_rw" />[/B]
</permission>

following this procedure:

http://xdaforums.com/showpost.php?p=54696085&postcount=13
[Android Q&A, Help & Troubleshooting] Omegao:
Hey! I recently bought a HTC Desire 620 and have been looking vigorously for a legitimate solution, google leads me here. Has a method been found? If anyone could shed some light that would be absolutely fantastic as I absolutely need it rooted to function!

Cheers
[Android Q&A, Help & Troubleshooting] baxter006:
That method is a variation on what I did, if I reset my phone I still have the fix intact.

---------- Post added at 05:35 PM ---------- Previous post was at 05:33 PM ----------

Yes Patrik.kt has compiled a twrp recovery for the phone enabling you to flash super user and root.
[Android Q&A, Help & Troubleshooting] baxter006:
Here's an updated list of unwanted system apps I've removed with the phone working properly

All Amazon apps (called Orange Amazon kindle.apk Etc) about 100mb total

Facebook 40mb

Twitter

Instagram

Linkdin

HTC scribble (called LUCY.apk) 25mb

Stocks and shares (called stocks.apk) 1mb

HTC zoe video creater (called HTCZero.apk) 90mb

Browser default (browser.apk) 5mb

Tasks (mytasks.apk) 5mb

KidMode-google.apk 45mb

Keyboard everyone apart from English and English all

HtcDotMatrix.apk 8mb (only delete if you don't have a dot view case)

polaris office (not full version has in purchases) 20mb

Six Google apps I don't use total size 60mb in total

Books.apk

Geniewidget.apk (news and weather)

Magazines.apk

Music2.apk (Google play music not the default HTC music player)

Plusone.apk (Google+)

Videos.apk (Google movies and tv)

about 400mb I've saved removing these apps

I've also tested the backup option in TWRP and then wiped the phone and restored with it all working well.
[Android Q&A, Help & Troubleshooting] jamacuco:
Thanks a lot for the suggestion! I usually just disable all the unwanted applications. Most can be disabled... only a few ones like "Dot Matrix" cannot be disabled. What is for you the advantage of removing them from /system? Of course, less space used in /system, but that space is not very useful anyway ;)
[Android Q&A, Help & Troubleshooting] baxter006:
jamacuco when you delete any apk from the system folder you free up the total internal storage. The phone has 8gb internal storage but only 4gb is useable. So the 400mb I've deleted from the system/app and system/priv-app has lessened the space used from that 4gb.

Before patrik compiled the recovery I was running out of space for the apps I wanted. The phone is also running quicker due to removing some apps which can't be disabled.
[Android Q&A, Help & Troubleshooting] patrik.KT:
That is actually not true. Removing a system app only frees up the /system partition, which is not used as internal storage. That means whether you disable or uninstall system apps, it totally doesn't matter, as you don't get any extra free space. :)
[Android Q&A, Help & Troubleshooting] baxter006:
Yes sorry I didn't mean internal storage for say mp3 Etc, I meant for apps. I have over a 1gb left for apps where as before I only had 500mb left. I keep all my mp3/videos/pictures on a 32gb external sd card.
[Android Q&A, Help & Troubleshooting] jamacuco:
As we can see in the output of "df" (from "adb shell"):

/system is a ~2.5GB partition/filesystem, and /data is a 4GB partition/filesystem. Stock applications are in /system, as you very well know, as you have been cleaning it. But user applications (and updates!) that you install from Play Store are stored in /data/app:

So /data is for user applications as well as for internal storage. Therefore, as I said before, I do not see a strong benefit in removing apps from /system, as that space can only be used from the TWRP recovery...
[Android Q&A, Help & Troubleshooting] jamacuco:
Hi patrik.KT, just out of curiosity... what have you changed in the official TWRP code to make it work with the HTC Desire 620? Was it a lot of work or just a few minor changes like adding the device identifier to some list?

Will you be submitting your changes to the TWRP project so that the a31ul is officially supported from now on?

Thanks!
[Android Q&A, Help & Troubleshooting] baxter006:
Ok I see what your saying I just got the impression I had gained space for mores apps by removing them. Would I be able to copy user downloaded apps to the system/app folder to gain space?
[Android Q&A, Help & Troubleshooting] jamacuco:
There are some apps that in theory do that. For example, the well-know app link2SD (https://play.google.com/store/apps/details?id=com.buak.Link2SD) lists this as feature:

Also, TitaniumBackup (https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup&hl=es):

But as you know, none of them will work in our HTCs because changes to /system done from the inside the running Android OS are undone in the next reboot.

In this thread, there is a discussion on how to do this manually (in our case, that must be from patrik.KT's TWRP):

http://xdaforums.com/showthread.php?t=1285432

If you succeed in doing this, please tell us your experience!! ;)
[Android Q&A, Help & Troubleshooting] badbat75:
To gain access to /system mount point you need to install the following module:

insmod wp_mod.ko

I recompiled it for Desire 620

You can download it from:

https://onedrive.live.com/redir?resid=4A391EBE3F448E03!7131&authkey=!AJJqw-b-WuYNab4&ithint=folder%2cko
[Android Q&A, Help & Troubleshooting] anim0s:
Summary

Hi guys i've read all of the posts on this thread, and i have to say, i'm just a lil' bit confused. I figured that there is a working root for the HTC Desire 620 now, i know that i need to get my bootloader unlocked (i think?), to download some wrmp file, to download fastboot and that adnroid program to my pc, and that's where i start geting lost.

Could some1 please make like a summary, or a guide what to do step by step, doesn't have to be very long just all of the steps in short. I would really appreciate that, 'cause i really have no idea about all of this rooting and stuff, i just know what i need it for :P

Thank you in advance and good job guys !
[Android Q&A, Help & Troubleshooting] jamacuco:
Thanks! Is that based on:

http://xdaforums.com/showthread.php?t=2701816

?

---------- Post added at 06:10 PM ---------- Previous post was at 05:17 PM ----------

Try this procedure:

http://xdaforums.com/one-m9/general/guide-root-install-twrp-htc-one-m9-t3061133

but with the latest TWRP image from patrik.KT:

https://drive.google.com/file/d/0B5KRmU8P96dlVXhSVlJVZkYzWGM/view?usp=sharing
[Android Q&A, Help & Troubleshooting] baxter006:
How do you install this? Using adb on a pc or using TWRP to put in somewhere?
[Android Q&A, Help & Troubleshooting] patrik.KT:
Copy it to your internal storage, open terminal and use these conmands:

su
insmod /sdcard/wp_mod.ko
[Android Q&A, Help & Troubleshooting] baxter006:
I take it your talking the terminal within TWRP, other forums mentioned moving the file to the module folder and editing recovery install file.
[Android Q&A, Help & Troubleshooting] patrik.KT:
No. I meant the terminal emulator app that you can get from Google play. You don't have to do anything with that inside recovery. Just remember that you have to use that command on every boot, as the mod unloads on reboots. Or you can add an init.d script.
[Android Q&A, Help & Troubleshooting] baxter006:
Yeh got the wp_mod.ko working, installed busy box. And used system cleaner 2

https://play.google.com/store/apps/...oid&pcampaignid=APPU_1_r8r0VYb1NKSs7AaXjqfgDg

Let's you replace the stock versions of say YouTube.apk inside system/app with the updated versions from data/app. Saved me 600meg. Still have 1gig in the system parition, so have plenty of room to convert user apps to system apps.

I hope I'm right In saying that if you have

YouTube.apk in system/app

That YouTube1.apk in data/app is an entire apk rather than just an update that sits along side the one from system/app.

Seems a space waisting concept.
[Android Q&A, Help & Troubleshooting] badbat75:
I think that it would be better to create a dedicated "Desire 620" section in this forum.

Is there anyone reading know how to contact moderators to do it?

I'm also repackaging the updated HTC apps and I'm gaining more space in user data partition.

I agree with you Bax. Blocking system partitiion in that way waste to much space in the phone. Why it is not possible upgrate the system apps directly in the system mount point?
[Android Q&A, Help & Troubleshooting] jamacuco:
Because the rule is that users are not allowed to alter anything in /system so that a factory reset would fix any problem caused by updates or user changes.

---------- Post added at 09:23 AM ---------- Previous post was at 09:18 AM ----------

Did you follow this procedure to compile TWRP for the 620?

http://xdaforums.com/showthread.php?t=1943625

Which difficulties did you face?

Do you plan to send the changes to the TWRP project so that the 620 becomes an officially supported devices?
[Android Q&A, Help & Troubleshooting] patrik.KT:
I did not follow any guide. Well.. It wasn't easy but the device tree now works. I don't want to make it official right now, because dumlock doesn't work (the app FCs) and we need it to flash boot.img on S-ON devices. Also off mode charging is broken. The device tree is on my github (https://github.com/PatrikKT/twrp-htc-a31ul). If you plan to compile your own twrp build, make sure you use omni rom as android tree.
[Android Q&A, Help & Troubleshooting] jamacuco:
So, I have flashed your TWRP (thanks for it!)... If the battery of my HTC 620 gets completely empty and the device powers off, I will not be able to charge it any more?

That is quite risky, perhaps I should flash again the stock recovery and only use your TWRP via "fastboot boot"...

If I would like to do that, can I do the following?

1) Extract "recovery_signed.img" from "0PE6IMG_A31_UL_K44_DESIRE_SENSE60_HTC_Europe_1.02.401.1_R_Radio_00.03.012_U10012131_41.09.1216_release_427920_signed_Hboot.zip"

2) fastboot flash recovery_signed.img

Thank you!
[Android Q&A, Help & Troubleshooting] evnee:
http://1drv.ms/1QzDB5B

Here you are, stock d620 recovery.

Phone is from Poland, operator: Play/P4.

Thats quite risky but i have already discharged fully mine with twrp and it was charging normally. Just no animation.

I dont want anybody to brick the phone, so its only my experience with that twrp and if u dont want to risk - dont do that.
[Android Q&A, Help & Troubleshooting] patrik.KT:
evnee is right. It will charge your phone just fine. It just won't show the charging animation, instead it will just show the twrp ui but without touch enabled. That means you should charge it to at least 3% and then reboot using volume up + power button.
[Android Q&A, Help & Troubleshooting] jamacuco:
Oh!!! Indeed that happened to me yesterday night! The phone shut down completely, I plugged it in and a few minutes later I saw the TWRP UI but I could not interact with it!!!! :D :D As I could not restart it, I removed the battery, reinserted it and back to notmal!!!

Good to know that the good old "Power + Vol UP" would work in that situation!!!

Still, would my procedure work to restore the default recovery?

Thanks a lot!
[Android Q&A, Help & Troubleshooting] patrik.KT:
Yeah, except for the fastboot command. It should be like this: fastboot flash recovery recovery_signed.img
[Android Q&A, Help & Troubleshooting] jamacuco:
Hi patrik.KT

I would like to be able to use ADB with the Desire 620 when it is running the TWRP recovery, but it is not working:

>fastboot devices

>adb shell
error: device not found

Does it work for you? It can be an issue with my drivers... But I can use ADB with the normal running system...

Thanks!
[Android Q&A, Help & Troubleshooting] badbat75:
I want to share with you those updated packages to be integrated in the original ROM with TWRP:

HTC Apps

Browser

Camera

Facebook Plugin

Gallery

IME

DotMatrix

LockScreen

HTC Services

Notes

Polaris Office

Sense Home

Weather

Clock

Zoe

Google Apps

Google Mail

Google Play Services

Google TextToSpeech

Google Maps

Google Playstore

Google Search

YouTube

Google+

Google Drive

Chrome

Google Cloudprint

Google News and Meteo

Google Play

Talkback

I hope they could be useful :)
[Android Q&A, Help & Troubleshooting] jamacuco:
OTG does not seem to work with the stock kernel of our Desire 620... (does it work for you?) Now that we are root, do you if it is possible to enable it with the stock kernel?
[Android Q&A, Help & Troubleshooting] patrik.KT:
Try this one: https://drive.google.com/file/d/0B5KRmU8P96dlYU94MlJoLVNWM1U/view?usp=sharing
[Android Q&A, Help & Troubleshooting] jamacuco:
It works!!! Thanks a lot!! What have you changed?

Unfortunately, it does not serve my purpose. I wanted to mount my encrypted /data partition following this procedure:

http://niki.hammler.net/wiki/Android_Device_Encryption

I know that it works fine with other phones and recoveries...

With this device I get this:

~ # setprop ro.crypto.state encrypted
setprop ro.crypto.state encrypted
~ # vdc cryptfs checkpw 'your passphrase here'
vdc cryptfs checkpw 'your passphrase here'
[B]Error connecting (No such file or directory)[/B]

:( :( :(

Any idea?
[Android Q&A, Help & Troubleshooting] patrik.KT:
I havent tested encryption, as my /data is not encrypted. TWRP should be able to unlock the data partition when making a backup. And if you only want to make small changes inside /data (add/remove files), you can do that in android.

If TWRP cant open /data, send me a recovery.log (advanced->copy log to sd) after you get the error.
[Android Q&A, Help & Troubleshooting] jamacuco:
According to this thread:

http://xdaforums.com/showthread.php?t=2484380

I need vold. Do you know how to add it to your TWRP? I wish I had the time to research how to build a custom recovery like you...

Thanks a lot for everything!
[Android Q&A, Help & Troubleshooting] lallo29:
Guys, I need a recap please.

How I can install this TWRP? before I need to unlock the bootloader, true? Send me the guide. Thanks

Inviato dal mio HTC Desire 620 usando Tapatalk.

www.vaulttech.it
[Android Q&A, Help & Troubleshooting] jamacuco:
Try this procedure:

http://xdaforums.com/one-m9/general/guide-root-install-twrp-htc-one-m9-t3061133

with patrik.KT's TWRP. Instead of pushing the SuperSU zip file, you can copy it in the SD card manually.
[Android Q&A, Help & Troubleshooting] to22ek:
Hi i installed twrp on my htc and have the message os not installed. Can you help me? my original rom is 4.4.4 from t-mobile Poland
[Android Q&A, Help & Troubleshooting] lallo29:
Thanks

Inviato dal mio HTC Desire 620 usando Tapatalk.

www.vaulttech.it
[Android Q&A, Help & Troubleshooting] beezeyb:
Out of interest, before I go install Patriks TWRP (i have already unlocked bootloader) should I be able to install a custom Rom once it is installed? I was thinking of going safe like cm10 or 11 but haven't checked if there is a compatible version yet, I have been spoiled by my old m7 and really want rid of the bloatware on my new 620
[Android Q&A, Help & Troubleshooting] sangkropik:
anyone got root for htc desire 620 dual sim. it is not the g version but the snapdragon one only with dual sim.
[Android Q&A, Help & Troubleshooting] patrik.KT:
Can you get me a copy of your build.prop? And a dump of recovery partition would help as well.
[Android Q&A, Help & Troubleshooting] lallo29:
Guys, have you unlocked your boot loader with htc dev true?

Inviato dal mio HTC Desire 620 usando Tapatalk.

www.vaulttech.it
[Android Q&A, Help & Troubleshooting] jamacuco:
AFAIK, there are not custom ROMS for the HTC Desire 620 yet... just the stock ROM rooted, but you can remove bloatware as baxter006 did. He explained in earlier in this thread which applications he succesfully removed from /system.

---------- Post added at 03:12 PM ---------- Previous post was at 03:11 PM ----------

Yes!
[Android Q&A, Help & Troubleshooting] lallo29:
have you selected "all other supported devices" true?
[Android Q&A, Help & Troubleshooting] jamacuco:
Yes!
[Android Q&A, Help & Troubleshooting] jamacuco:
If anyone has the same problem, I have found another solution to this (apart from flashing the zip file from the SD). The problem is that I was using the standard fastboot.exe binary from:

http://xdaforums.com/showthread.php?t=2588979

In order to flash an HTC RUU zip file, you have to use htc_fastboot. You can find it under "C:\Program Files (x86)\HTC\HTC Sync Manager\HTC Sync" after installing "HTC Sync". This is the normal fastboot.exe:

C:\adb>fastboot -h
usage: fastboot [ <option> ] <command>

and this is HTC's one:

C:\Program Files (x86)\HTC\HTC Sync Manager\HTC Sync>fastboot -h
usage: [B]htc_fastboot[/B] [-h] [-v] [-V] [-s <serial number>] [-d | --force-resend]
<command> ...

Created by BSP Core team on 2015-03-11.
Copyright 2015 [B]HTC[/B] Corp. All rights reserved.

With htc_fastboot, it is easy to flash the big zip file without errors:

C:\Program Files (x86)\HTC\HTC Sync Manager\HTC Sync>fastboot flash zip c:\adb\0PE6IMG_A31_UL_K44_DESIRE_SENSE60_HTC_Europe_1.02.401.1_R_Radio_00.03.012_U10012131_41.09.1216_release_427920_signed.zip
htc_fastboot v3.0.9.2 (2015-05-29)
target rom version: 1.02.401.1
found large-zip header, file count: 7
processing file 1/7...

By the way... it is possible to decrypt this zip file with bruutveal+ruuveal from:

https://github.com/kmdm/ruuveal

Just in case you need anything from the stock ROM for your developments ;)
[Android Q&A, Help & Troubleshooting] sangkropik:
Hi there, here i've attached the build prop for my device, HTC desire 620u aka A31_dtul

as for recovery dump, i cant manage to do that without root.

thanks.
[Android Q&A, Help & Troubleshooting] patrik.KT:
So its a msm8916, just like the ul version. Could you give the ul twrp a try? Just use "fastboot boot twrp-blah.img" to only boot it, to see if you can boot the kernel. If not, we will have to get the kernel somehow, though htc didnt release the dualsim kernel source.
[Android Q&A, Help & Troubleshooting] sangkropik:
hi,

yes i've tried to boot the ul twrp using fast boot but i'm getting the remote dtb not found error. i'm also afraid to flash twrp in fear of bricking my device.

thanks for the quick reply.
[Android Q&A, Help & Troubleshooting] patrik.KT:
Try this one: https://drive.google.com/file/d/0B5KRmU8P96dlcndDRy1sTS1QSTA/view?usp=sharing
[Android Q&A, Help & Troubleshooting] sangkropik:
hello there,

yeah i am enable to boot the twrp and i've rooted my device. thank you so much. if you dont mind, can you share with me what you did? again, thanks a lot!!!
[Android Q&A, Help & Troubleshooting] patrik.KT:
I found out that htc included the dts files of other msm8916 devices in a31ul kernel, so I compiled the a31dtul one and used it in a31ul's twrp. Can you write a list of bugs? Just in case there are some extra bugs.
[Android Q&A, Help & Troubleshooting] akamegacg9:
Hey guys does anyone have a ruu file?

Hey guys do any of you know which ruu file I should use? If so an you please give it to me?

Getvar all:

version: 0.5

version-bootloader: 3.19.0.0000

version-baseband: 00.03.012_U10012131_41.09.1216

version-cpld: None

version-microp: None

version-main:

version-misc: PVT SHIP S-ON

serialno: LC577YA01303

imei: 354338063689216

imei2: Not Support

meid: 00000000000000

product: a31_ul

platform: hTCBmsm8916

modelid: 0PE640000

cidnum: HTC__001

battery-status: good

battery-voltage: 0mV

partition-layout: Generic

security: on

build-mode: SHIP

boot-mode: FASTBOOT

commitno-bootloader: 7b5c420f

hbootpreupdate: 11

gencheckpt: 0

mfg-name: 1101
[Android Q&A, Help & Troubleshooting] jamacuco:
It is like my phone. This one works for me:

https://drive.google.com/file/d/0Bw7S-kfd-L-RQWtPMjc4QXZLMGM/view

Copy it to the SD card, rename it to "0PE6IMG.zip", shut down the phone, start it with POWER+VOL DOWN to enter the HBOOT menu and it should be flashed automatically.
[Android Q&A, Help & Troubleshooting] akamegacg9:
Unfortunatly it doesnt work :(:(

I copied the zip to the root of my micro sd card and renamed it 0PE6IMG.zip and went to the recovery menu. It tries to update but it says !! image update failed !! and underneath it it says parsing... and under that it Device halted due to large image update. Press power to reboot
[Android Q&A, Help & Troubleshooting] jamacuco:
Unfortunately, the only thing that I can say is that it worked for me... I posted before a method to flash it with htc_fastboot. Perhaps you want to try it...
[Android Q&A, Help & Troubleshooting] jamacuco:
Apparently, to have encryption working in the recovery, /dev/block/vold is needed. In the CWM recovery, this is created by the vold service (minivold), but TWRP recovery does not have anything similar to support encryption.

Perhaps you know which difficulties I will find to compile CWM for the a31_ul based on your experience with TWRP? Would it work to just replace the kernel with the one that you have used for the TWRP?

****

Different topic: Does OTG work for you?
[Android Q&A, Help & Troubleshooting] patrik.KT:
You will have to recompile the whole recovery, you cant just replace the kernel. I'll take a look at it later, when I have some time.

No, OTG does not work for me. Its most likely disabled in the hardware, as I have seen some otg code in the kernel.
[Android Q&A, Help & Troubleshooting] jamacuco:
OTA

Today I have received this OTA (very surprised about that! I had thought that HTC had abandoned this model forever!) for the libStageFright vulnerability, version 1.51.401.5:

OTA_A31_UL_K44_DESIRE_SENSE60_HTC_Europe_1.51.401.5-1.02.401.1_R_release_449813.zip

[IMG="HTC Desire 620 OTA"]http://xdaforums.com/attachment.php?attachmentid=3490294&stc=1&d=1443540113[/IMG]

The installation failed repeatedly probably because of the many modifications in my phone (SuperSU, platform.xml, TWRP, etc...). Even after reflashing the stock recovery, the OTA installation failed.

I had to relock the bootloader and flash the stock RUU zip file and after that, the OTA installation has finally succeeded!
[Android Q&A, Help & Troubleshooting] evnee:
Thank you, i wanted to reflash my stock recovery but now i'm just gonna wait.

Any way to do it without all these data-wiping-things? :) patrik? I bet u know the answer :D
[Android Q&A, Help & Troubleshooting] patrik.KT:
I just got this update, too. Unfortunately, I left for school so I won't install it now, I can't risk a brick. :P
[Android Q&A, Help & Troubleshooting] evnee:
So... If you know how to do that i will check that for you :P
[Android Q&A, Help & Troubleshooting] patrik.KT:
I have looked at the ota zip. It should be possible to flash it with twrp after a few modifications.