yashsingh1/xdaforums huggingface dataset:
[One (M7) Android Development] Hero:
Here it is guys, the how-to for enabling ART on the new 4.04.1540.2 (Android 4.4) base! I have tested whether ART works and sadly, I get bootloops when using it (both ART and ART (debug). ART (debug) seems to not stick since the phone does boot up, but the selection still shows as "Dalvik" not "ART (debug)". I only tested this on my deodexed ROM so I have no idea if it will work on ODEXED. Hopefully we can get more devs collaborating to get this working. Anyway, enabling ART in the Developer Preferences is really easy.

PART 1

Decompile Settings.apk

Navigate to smali.com.android.settings

Open up DevelopmentSettings.smali in Notepad++ or a text editor of your choice

Locate the followiing code (onCreate() method) and delete the part in RED

const-string v3, "show_touches"

invoke-direct {p0, v3}, Lcom/android/settings/DevelopmentSettings;->findAndInitCheckboxPref(Ljava/lang/String;)Lcom/htc/preference/HtcCheckBoxPreference;

move-result-object v3

iput-object v3, p0, Lcom/android/settings/DevelopmentSettings;->mShowTouches:Lcom/htc/preference/HtcCheckBoxPreference;

const-string v3, "wifi_display_certification"

invoke-direct {p0, v3}, Lcom/android/settings/DevelopmentSettings;->findAndInitCheckboxPref(Ljava/lang/String;)Lcom/htc/preference/HtcCheckBoxPreference;

move-result-object v3

iput-object v3, p0, Lcom/android/settings/DevelopmentSettings;->mWifiDisplayCertification:Lcom/htc/preference/HtcCheckBoxPreference;

const-string v3, "select_runtime"

invoke-virtual {p0, v3}, Lcom/htc/preference/HtcPreferenceFragment;->findPreference(Ljava/lang/CharSequence;)Lcom/htc/preference/HtcPreference;

move-result-object v2

[COLOR="red"] if-eqz v2, :cond_5

iget-object v3, p0, Lcom/android/settings/DevelopmentSettings;->mAllPrefs:Ljava/util/ArrayList;

invoke-virtual {v3, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

invoke-direct {p0, v2}, Lcom/android/settings/DevelopmentSettings;->removePreferenceForProduction(Lcom/htc/preference/HtcPreference;)Z

move-result v3

if-nez v3, :cond_5

invoke-virtual {p0, v2}, Lcom/android/settings/DevelopmentSettings;->filterRuntimeOptions(Lcom/htc/preference/HtcPreference;)V[/COLOR]

:cond_5
const-string v3, "hdcp_checking"

Recompile Settings.apk and push it to your device!

In case you don't know how to enable Developer Preferences in Settings, go to Settings -> About -> Software Information -> More. Once at the "More" screen, tap the Build Number option seven (7) times.

Here are some screenshots :)

Here's a flashable zip too: http://d-h.st/B22

Cheers
[One (M7) Android Development] Hero:
reserved
[One (M7) Android Development] k.s.deviate:
+1 for this :good:
[One (M7) Android Development] jerrylzy:
I did it yesterday and it just stuck at boot animation(animation is complete). I am on stock odexed system.
[One (M7) Android Development] Dunc001:
As far as I know from running 4.4 ROMs on my Nexus 7 you can only use ART on a fully odexed ROM, deodex will always result in failure to boot. Also some apps are not compatible with ART yet so you may well find a few specific app FCs. It may be that sense apps don't play well with ART yet. Remember it is still a developer only option and not mainstream yet so not really too much of a surprise...
[One (M7) Android Development] paully520:
TEST!
[One (M7) Android Development] gunswordx:
yes tried on 3 different roms both odexed and deodexed not working on both. i think we need some core files for art to work which htc didn't put in as art is still in testing mode
[One (M7) Android Development] Dunc001:
libart.so ...
[One (M7) Android Development] ANDR01DN00B:
So pretty much none of the options work (besides dalvik, of course)?
[One (M7) Android Development] baadnewz:
tried it myself at first after setting from shell, and secondly after [MENTION=2841310]jerrylzy[/MENTION] gave me his classes dex and pointed out the obvious

anyway in both cases bootloop . on odexed and deodexed as well . logcat doesn't tell me too much yet. still poking. i know for sure that if you have xposed installed ART won't stick after reboot
[One (M7) Android Development] ser35:
Tried it does not help

http://xdaforums.com/showpost.php?p=47604251&postcount=77
[One (M7) Android Development] Dunc001:
Try pushing libart.so from a current CM11 HTC One build, set permissions, reboot, enable ART. Not running 4.4 on my One atm so can't test.
[One (M7) Android Development] apollyon0810:
Is ART working on CM11?
[One (M7) Android Development] g2tegg:
I was running ART on a GPE rom fine.. Honestly didnt feel as fast as I thought it would.. I'm back on a Sense rom now and it would be awesome to see this working..
[One (M7) Android Development] Dunc001:
CM11, GPE, whatever - just so long as you grab a binary that's confirmed working on HTC One already regardless of the build. Several of the current 4.4 non-sense ROMs in the two forums already state working ART. Just experiment.
[One (M7) Android Development] hoangps:
Nice work guy :D
[One (M7) Android Development] Magpir:
the file is here, anyone want to try?

Link
[One (M7) Android Development] taranfx:
There is an easier way

Xperia, HTC, samsung, LG stock roms don't ship with ART option in developer settings, so there is a workaround Enable ART runtime on any Stock ROM via recovery
[One (M7) Android Development] Rad ryan:
How to Enable ART on any Stock or AOSP ROM

Simplest way to enable ART on an AOSP ROM is through “Developer options > select runtime”. But sadly, the option is not even available in most stock ROMs may it be HTC, Samsung, Sony, LG, Motorola etc. The work around is following the steps mentioned below:

Pre-requisites:

1. Rooted 4.4.x ROM (Stock or Custom) with some custom recovery (CWM or TWRP)

2. Xposed framework is not compatible with ART runtime. You must uninstall Xposed framework before continuing.

3. To Check If You Are Using ART Or Dalvik, goto

Open data/property/persist.sys.dalvik.vm.lib in Text Editor, if it shows ‘libart.so’, you’re already on ART, else it would say ‘libdvm.so’.

4. Full list of apps that don’t work with ART.

Note: If libart.so and libart-compiler.so is Not Present in lib folder. Your ROM Doesn’t Support ART.

Step 1. Download Enable ART, Enable Dalvik flashable Zips from xda thread= http://xdaforums.com/showthread.php?t=2707841 .

Step 2. Flash the Enable ART zip in recovery and clear Dalvik cache.

Reboot, *your ROM would boot and create ART cache for the first boot.

Troubleshooting: If you’ve any bootloops or problems, you can revert the change at anytime by flashing enable dalvik zip.

This is just cut and paste from the article linked to in above post

Good Luck :)

Also, does anyone know what the base 4.04.1540.2 that hero mentioned in the op is? Seems like an US Dev base bc of numbering but I haven't heard of this yet.
[One (M7) Android Development] gallardo5:
I was running ART on my nexus4 and Xperia z1 with CM deodexed, so i dont think that's the problem
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] sarathsara:
I tried to downgrade my galaxy s advance.. via odin.. n i did as per the procedure.. it re-boot and i changed the time and date... thn it switched off... now its not working.... :rolleyes::crying::crying::crying::crying:

Plz help... wat am i suppose to do now...
[Galaxy S Advance I9070 Q&A, Help & Troubleshooting] shut_down:
Can you enter download mode?
[Networking] pogi:
Hi,

Any advise where and how to update XDA II (Win 2003 Pocket Edition) Internet Browser to be able to "click" on Java Icons as well as being able to upload files via YahooMail?

Thanks
[Galaxy Y GT-S5360 General] NgamTeroxx:
NIce Thread Sir

i will try asap :good::laugh:
[Galaxy Y GT-S5360 General] Jersey.:
Oh dude! This is awesome! I was looking for this! Will try a.s.a.p!

You rock!

:victory:
[Galaxy Y GT-S5360 General] PineappleOwl:
I hope you like it sir. :)
[Galaxy Y GT-S5360 General] paul222008:
thanks sir :D long wait hehe :laugh:
[Galaxy Y GT-S5360 General] markmellarpes:
coolest dev :thumbup: haha thanks for sharing master
[Galaxy Y GT-S5360 General] BarJei:
Good guide sir :D

:good:
[Galaxy Y GT-S5360 General] dugeriss:
Awesome GUIDE sir ,

thnk's very very much :*
[Galaxy Y GT-S5360 General] misha1996:
have bootloop with ace-i, no mistakes with comp/decomp:crying:
[Galaxy Y GT-S5360 General] PineappleOwl:
i had use an ace i last time too and i think it is similar. Can you take a proper logcat or one thng,the guide cant cause you bootloop if the previous guide is working.
[Galaxy Y GT-S5360 General] misha1996:
I think, i find my mistake:D

UPDATE:

yes; it work. Phone work. But lidroid-parts not work, not as apk, not put to system/app with permissions.

Can i mod my lidroid-parts? If yes, how?:thumbup:
[Galaxy Y GT-S5360 General] PineappleOwl:
you can mod it. just add an array entries and the likes. sure it will work.
[Galaxy Y GT-S5360 General] Jersey.:
Yes I do like it, it's fully working after some adjustments, looks great and I love it :victory:

Too bad I can't hit that Thanks button more than once.
[Galaxy Y GT-S5360 General] misha1996:
+1

Отправлено с моего GT-S5830i через Tapatalk
[Galaxy Y GT-S5360 General] wilfredcool007:
Hii , I just implemented this in my device ( Galaxy Fit ) and it worked well except for which I had issues selecting the stock lockscreen ... Observing the code :cond_2 has been declared as the stock lockscreen ryt

:cond_2
iget-boolean v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->GLASSLOCK_MODE:Z

if-eqz v0, :cond_4

.line 891
new-instance v0, Lcom/android/internal/policy/impl/GlassLockScreen;

iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/GlassLockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

.line 905
:goto_0
return-object v0

Y do we use this after :cond_2

iget-boolean v0, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->GLASSLOCK_MODE:Z

if-eqz v0, :cond_4

instead of directly calling like this

:cond_2

new-instance v0, Lcom/android/internal/policy/impl/GlassLockScreen;

iget-object v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mContext:Landroid/content/Context;

iget-object v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mConfiguration:Landroid/content/res/Configuration;

iget-object v3, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

iget-object v4, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mUpdateMonitor:Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;

iget-object v5, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->mKeyguardScreenCallback:Lcom/android/internal/policy/impl/KeyguardScreenCallback;

invoke-direct/range {v0 .. v5}, Lcom/android/internal/policy/impl/GlassLockScreen;-><init>(Landroid/content/Context;Landroid/content/res/Configuration;Lcom/android/internal/widget/LockPatternUtils;Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;Lcom/android/internal/policy/impl/KeyguardScreenCallback;)V

.line 905
:goto_0
return-object v0
[Galaxy Y GT-S5360 General] PineappleOwl:
Thats the stock for galaxy y sir. hehe. what i did was just add the CyanogenLockScreen at the bottom of method. and make it as is. also that time i was rushing in modding and i dont want to have a testing but a full shot. hehe. so i take two time to think what will be the best . and what i did is the guide.I just copy my method / Hehehe. :D
[Galaxy Y GT-S5360 General] PineappleOwl:
Yep. GLASS_LOCKSCREEN, no problem for galaxy y sir because it was on stock .:)
[Galaxy Y GT-S5360 General] Nachiket.Namjoshi:
Nice, gonna try IT ! now :D me gusta :D
[Nexus 5 Q&A, Help & Troubleshooting] bstosnbata:
So thanksgiving night while camping for stuff at bestbuy, I was taking photospheres, it was working then. after awhile I tried it at another destination, but it seems like it was broken, the photospheres seems so dark(low light) and only well lit in the middle. here are some pictures.

This is the place where I was trying to test the photosphere. It's not that dark isn't it? so it should be fine then.

this is what happens when I try taking a photosphere, notice how it's dark? we were supposed to see the door from that point.

after taking the above picture, I cancelled it and tried to take it again, and now I can see the door on the liveview.

after that I tried taking the pictures of the sides, but it's too dark and cancelling back and taking it again doesn't fix it.

further sides taken, and still dark

I stopped the photosphere and this is the result

too dark right?

this is some of the photospheres i've taken with about the same low light situation shots

in the kitchen at night

taken while camping at bestbuy for blackfriday at night, not that bad and this was the last photosphere I did before it stopped working

this is after camping at bestbuy and at a nearby mall, it's now only well lit on the middle.

any ideas guys? sorry for the long post.
[Nexus 5 Q&A, Help & Troubleshooting] stamos*bp:
same thing on my n5. panorama and some other third party apps (google goggles, barcode scanner) don't work either -- and they have the same problem with things being way too dark.
[Nexus 5 Q&A, Help & Troubleshooting] bstosnbata:
did you have this problem before? It just happened to me 2 days ago.
[Nexus 5 Q&A, Help & Troubleshooting] coolguy949:
Panorama doesn't work at all for me and photosphere has similar issues you're having with exposure. I noticed it today. I've taken good pano/photoshere's before too.
[Nexus 5 Q&A, Help & Troubleshooting] rb_daman:
same with me

I have exactly the same problem. I've been trying to find a solution for a while now and gave up. I've read some people have tried factory resets to no avail. My solution - exchange it for another nexus 5 (assuming its still new). I read that if you call Google, the solution was a replacement handset. I don't have any supporting links I'm afraid so take the advice as you will.

Rb_daman
[Nexus 5 Q&A, Help & Troubleshooting] NeoDarkF:
Same issue on my N5, but not always, now is working properly.

I haven't tried hard reset

Seems like a bug camera, but or there are no enough detected cases or no one uses photosphere
[Nexus 5 Q&A, Help & Troubleshooting] DArkwIng24:
workaround for nexus 5 photosphere

You need to go into movie recording mode. Let it focus and adjust light. Then go back to photosphere. Now it should adjust itself to the light conditions
[Galaxy Note 10.1 Q&A, Help & Troubleshooting] mangurian:
Lecture Notes question: I set the page size to 1280 x 720.

I then record a video. When I play back the video in lecture notes, it plays back at a much smaller size (like 1/4 of the screen). This is so silly that I figure I am screwing up and just can't find the way to get full size playback. HELP puleeze !﻿
[Moto X Q&A] MrGreeeeeeeeeen:
Just wondering if anyone knows if this particular phone can be unlocked. I'm aware that it's cdma carrier, but it also has LTE capabilities/slot, which leads me to believe that it can be unlocked. Any input?

Thanks in advance!
[Android Q&A, Help & Troubleshooting] Rasritz:
Hello,

Is there any way to get the Google Play music app to not see my podcast folder? I use BeyondPod and download podcasts to certain folder and would like to not see them in the Play app. Anyone know how to do this?
[Android Q&A, Help & Troubleshooting] Rasritz:
No one else has this happen?
[Sony Xperia Miro, Tipo (Dual), J, E] ndobode:
Hi,

I installed Gimlo 2 and I installed all my apps and data, etc. Now my internal SD is acting up a little with stopping apps,etc.

I would like to try to swap the internal & external SD to see if it might be the hardware.

Is it possible to install gimlo and swap sd and than restore a backup? Or would that also restore the swap?

Just asking because otherwise would be a pain in the ass to restore everything by hand.
[HTC Desire S] chapmana81:
SAGA PVT SHIP S-ON

HBPOT - 0.98.0000

RADIO-38.03.02.11_M

eMMC-boot

I tried to revert to stock but now the os won't load, can't get the htcdev unlock to work either so can unlock the boot loader and the ruu I'm using is throwing a 140 error. Tried to htc unlock but when asking for the code for it it shows an error in the command.

I feel like I need an older ruu or a way to upgrade the hboot but I'm not sure.

Any help would be appreciated!
[HTC Desire S] asgardr:
Error 140 may ussualy reffer to wrong bootloader version,

the numbers however, are not always the same for similar

issues they reffer to,or perhaps the numbers differ according to

different circumstances they describe- i`m not able to tell you beyond doubt,

but in your case (0.98.xxx) it could be something more like

CID, or region version error,

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

posts: #2 and #3- `issues with flashing RUUs`

will sheed some light on that matter for you,

providing that other steps like:

- locking bootloader before flashing a RUU

-always choosing higher RUU version

than the one running on the device

(in a normal circumstances, one is not able to ovewrite higher

bootloader version by the lower one- not without

support of < misc_version >)

you where aware of and complied with.

As for the command, they could sometimes be

little tricky to execute,and must therefore be issued

precise to the letter,

so, always try to find that error in the command first,

before assuming it`s been caused by something like:

- no/broken comunication: PC <--> Phone via ADB,etc..

(but you may also try to look it to that corner

and assure- the obstacle is

not comming from that side)

..To tell you the truth, while flashing RUU- with

all requirements for that procedure fulfilled,

there is very little that might go wrong,

in the end, this is an official conduct that is supported

by device`s manufacturer,...

Another method of loading the stock rom on the NAND,

would be to use PG88IMG method:

-extract the rom.zip from the RUU, (google how to)

-rename it to PG88IMG

-load it on your device`s sdcard

-reboot to bootloader,

let it find an update (this very file)

and flash it...

As for unlocking procedure, it is probably

required to be on a stock rom to proceed-but i might

need a correction here,

or having kept the code obtained in the past-and use that binary,

you've said,you were attempting to come back to stock,

May i ask:

-from what?

-has your device been S-off'ed

in the past-by any chance?

- is 0.98.xxx the hboot that use to be in the device,

or, was that changed after unsuccessful RUU flash,

-what was the original system and sense version

your phone was shipped with,

-and most obvious-most overlooked:

is your phone sim /or firmware branded

to any carrier?
[HTC Desire S] chapmana81:
well i tried to use this one:

RUU_Saga_TMO_UK_1.30.110.2_R_Radio_20.28b.30.0805U_38.03.02.11_M_release_180106_signed

i got the 140 error and when i tried this one:

RUU_Saga_S_HTC_Europe_2.10.401.5_Radio_20.4801.30.0822U_3822.10.08.04_M_release_219480_signed

i also tried erasing the boot image and the recovery image using the fastboot commands but im getting some sort of access denied error.

there also seems to be no recovery image so my options are limited, any further thoughts?

I really appreciate your help, hopefully my wife wont kill me!
[HTC Desire S] asgardr:
Try to use <gold card>as my next blind thought,

With a stock recovery, one is limited anyway...

I'd say:

In your case, bootloader is your only recovery
[Motorola Droid 3] Zexaal:
First off, I'm not new to rooting or android, but I am new to the Droid 3. I'm getting one for Christmas and I know it's a two year old phone but at the price point ($45) and given what I'm upgrading from (Optimus V), I'm rather excited.

Basically, this is a bit of a broad question. I'm used to rooting and changing roms and whatnot on my Optimus V. Is there anything I should be aware of? Any useful ultilities to make my transition a little easier? Anything I should watch out for?
[Motorola Droid 3] sd_shadow:
root with motofail

droid 3 has a locked bootloader, so the stock recovery can not be replaced with a custom recovery like clockworkmod.

to boot to a custom recovery a bootstrap is needed

safestrap is the most popular recovery, which allows switching roms between reboots

gingerbread roms are most stable

ics roms have some issues, i use steel droid 5.6

jellybead roms have no camera, and other issues

links to files, how to(s), videos in my list

sd_shadow's [Collection] of Links for: Droid 3 (XT862)
[Motorola Droid 3] Zexaal:
I have heard about safestrap. Honestly it sounds a lot more useful than CWM.

So basically root with motofail and then install safestrap and I should be good to go? Awesome. And thanks for the links. Exactly what I was looking for.
[Motorola Droid 3] Dakkaron:
Safestrap is amazing. It allows you to multiboot up to 4 ROMs plus stock at any one time. It doesn't take much more than a reboot to load another ROM.

Other things to know:

-) ROMs >2.3 can't use the camera and hardware codecs properly. I heard there was a hack that allowed taking pictures but not recording videos.

-) Don't be surprised when your phone starts to randomly reboot, locks up the keyboard stops responding. That happens to a lot of Droid 3s.

-) Minimoto is an amazing stock-based ROM that takes away almost all of the bloat and will give you a lot of free RAM (uses 100 MB RAM when nothing is running, compared to ~250 MB that Stock uses)
[Motorola Droid 3] trethon:
If you have no need to use D3 (XT862 or XT861) in US where XT883 radio and some extra build.prop modifications are needed...

If you speak English or Polish and have nothing against old good Gingerbread (2.3.6) ...

...you can use cROM rom ;). Lots of hacks (stock XT861 + deodexed + zipalign + optipng + deblured + deblothed + 220DPIhack with full google store + USBCardFix + init.d + sysctl.d + adaware + seeder + automatic apns + roaming data patch + SIP in system [voip using buildin dialer] + DIALER mod + full screen contacts/dialer Images hack + gpu overclock + tethering + reverse tethering) + great stability + good memory management + better camera apps tolerance.

It's not available on xda because it supports only two languages (EN/PL). Installation and usage guides are in Polish but could be translated :)

Just ask google about "Droid 3 cROM". It has it's corner at forum.android.com.pl.

It is designed to be used/installed with the Safestrap but it can be used as a main DROID 3 ROM in place of stock rom (Safestrap backup/restore operations are needed to be performed)