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
Here are some screenshots
Here's a flashable zip too: http://d-h.st/B22
Cheers
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
Code: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