[Defy Android Development] royale1223:
Basically this is an app to add files in /data/local/hwui.deny folder, so that the corresponding package is denied hwui. Usage : Just untick the apps that you want hwui denied. (you should be using atleast http://defy.wdscript.fr/defy-cm9/CM9-NIGHTLY-120710-Defy.zip)

Please not that this app is in beta phase and is only for the use of developers. Don't install it if you don't know what you're doing.

Install : Just flash the latest zip file in your cwm recovery. (Old versions :Just use any app like X-plore to copy it to /system/app/. And rename the apk to HwaSettings.apk. )

About permissions, this is a system app. It uses an attribute `android:sharedUserId="android.uid.system"`, so this app have access to all the permissions available in android. Also it can change any file in your data partition. Check out the source code.

Changelog :

Version 1.04 *(2012-07-23)*
---------------------------
* New : Keep system apps at the end of the list
* New : Traditional Chinese translations : kckc0220
* New : Croatian translations : ppero196
* New : Spanish Spain translation : martin6230
* New : Slovak translations : pepcisko
* New : Bulgarian translations : SFisherBG
* Fix : Ignore exceptions on boot

Version 1.03 *(2012-07-18)*
---------------------------
* New : Improve list performance
* New : Show blacklisted apps always on top
* New : App label changed to Hwa Settings
* New : Filtered list starts with queried text
* New : Code optimisation
* New : Use a new service to apply changes
* New : Latin American Spanish translations - javonera, cdlq456
* New : French translation update - epsylon3
* New : Polish translation - ???, mike_oldfield
* New : Hungarian translation - Tamas
* New : Czech translations - mikrom.cz, klovan200
* New : German translations - AnTerNoZ, TheBoegl
* New : Indonesian translations - marhensa
* New : Italian translations - sonyc2011
* New : Netherlands Dutch translations : Martijn1971
* New : Romanian translations - sonyc2011
* New : Greek translations - saltofx_v
* New : Russian translations - Quarx
* New : Brazilian Portugese translations : Gafanhotz
* Fix : Minor bugs
* Known issue : Crash on filtering after few checks/unchecks, only in ICS. Might be a frameworks bug.

Version 1.02 *(2012-07-16)*
---------------------------
* New : French translations (epsylon3)
* New : Better UI
* New : Improve list performance
* New : Remove uninstalled packages during scan
* New : Disable keyboard popup at start
* New : Sort by application label
* Fix : Crash on boot completed

Version 1.01 *(2012-07-15)*
---------------------------

* New : Icon from epsylon3
* New : Faster loading
* Fix : An FC
* Fix : CheckBox state not retained when soft keyboard popups.

Ubuntu install script (install.sh) :

#!/bin/bash
adb shell mount -o rw,remount /system
adb shell rm /system/app/HwaSettings.apk
sleep 2
adb push HwaSettings-release-1.00-beta-royale1223.apk /system/app/HwaSettings.apk
sleep 2
adb shell mount -o ro,remount /system
exit 0

My hwui.deny folder :

$ adb shell ls -la /data/local/hwui.deny
drwxrwxr-x 2 system nobody 4096 Jul 22 12:48 .
drwxrwx--x 8 shell shell 4096 Jul 18 23:28 ..
-rw------- 1 system system 0 Jul 22 03:39 ccc71.bmw.pro
-rw------- 1 system system 0 Jul 22 03:39 com.aldiko.android
-rw------- 1 system system 0 Jul 21 03:09 com.andrew.apollo
-rw------- 1 system system 0 Jul 21 03:12 com.android.backupconfirm
-rw------- 1 system system 0 Jul 21 03:09 com.android.browser
-rw------- 1 system system 0 Jul 21 03:09 com.android.calendar
-rw------- 1 system system 0 Jul 21 03:09 com.android.certinstaller
-rw------- 1 system system 0 Jul 21 03:11 com.android.defcontainer
-rw------- 1 system system 0 Jul 21 03:10 com.android.email
-rw------- 1 system system 0 Jul 21 03:10 com.android.exchange
-rw------- 1 system system 0 Jul 21 03:10 com.android.htmlviewer
-rw------- 1 system system 0 Jul 21 03:09 com.android.inputmethod.latin
-rw------- 1 system system 0 Jul 21 03:10 com.android.keychain
-rw------- 1 system system 0 Jul 21 03:11 com.android.mms
-rw------- 1 system system 0 Jul 21 03:11 com.android.providers.applications
-rw------- 1 system system 0 Jul 21 03:09 com.android.providers.calendar
-rw------- 1 system system 0 Jul 21 03:09 com.android.providers.contacts
-rw------- 1 system system 0 Jul 21 03:10 com.android.providers.downloads
-rw------- 1 system system 0 Jul 21 03:10 com.android.providers.drm
-rw------- 1 system system 0 Jul 21 03:11 com.android.providers.media
-rw------- 1 system system 0 Jul 21 03:12 com.android.sharedstoragebackup
-rw------- 1 system system 0 Jul 21 03:12 com.android.smspush
-rw------- 1 system system 0 Jul 22 03:40 com.android.vending
-rw------- 1 system system 0 Jul 21 03:11 com.android.vending.updater
-rw------- 1 system system 0 Jul 22 12:48 com.android.voicedialer
-rw------- 1 system system 0 Jul 22 03:39 com.bittorrent.client
-rw------- 1 system system 0 Jul 21 03:08 com.bytestorm.speedx
-rw------- 1 system system 0 Jul 21 03:09 com.dooblou.WiFiFileExplorerPRO
-rw------- 1 system system 0 Jul 22 03:39 com.droidhen.defender2
-rw------- 1 system system 0 Jul 22 03:39 com.evernote
-rw------- 1 system system 0 Jul 21 03:07 com.facebook.katana
-rw------- 1 system system 0 Jul 21 03:07 com.gh4a
-rw------- 1 system system 0 Jul 22 03:39 com.github.mobile
-rw------- 1 system system 0 Jul 21 03:11 com.google.android.apps.genie.geniewidget
-rw------- 1 system system 0 Jul 22 03:40 com.google.android.apps.plus
-rw------- 1 system system 0 Jul 21 03:07 com.google.android.apps.unveil
-rw------- 1 system system 0 Jul 21 03:11 com.google.android.apps.uploader
-rw------- 1 system system 0 Jul 21 03:10 com.google.android.backup
-rw------- 1 system system 0 Jul 21 03:11 com.google.android.feedback
-rw------- 1 system system 0 Jul 22 03:39 com.google.android.gm
-rw------- 1 system system 0 Jul 21 03:10 com.google.android.googlequicksearchbox
-rw------- 1 system system 0 Jul 21 03:10 com.google.android.gsf
-rw------- 1 system system 0 Jul 21 03:10 com.google.android.gsf.login
-rw------- 1 system system 0 Jul 21 03:11 com.google.android.location
-rw------- 1 system system 0 Jul 21 03:10 com.google.android.onetimeinitializer
-rw------- 1 system system 0 Jul 21 03:10 com.google.android.partnersetup
-rw------- 1 system system 0 Jul 21 03:10 com.google.android.syncadapters.bookmarks
-rw------- 1 system system 0 Jul 21 03:10 com.google.android.syncadapters.calendar
-rw------- 1 system system 0 Jul 21 03:10 com.google.android.syncadapters.contacts
-rw------- 1 system system 0 Jul 21 03:11 com.google.android.talk
-rw------- 1 system system 0 Jul 21 03:10 com.google.android.tts
-rw------- 1 system system 0 Jul 22 03:40 com.hanhuy.android.irc.lite
-rw------- 1 system system 0 Jul 22 03:40 com.ideashower.readitlater.pro
-rw------- 1 system system 0 Jul 21 03:09 com.imo.android.imoimbeta
-rw------- 1 system system 0 Jul 21 03:07 com.mfunzbasebandswitcher
-rw------- 1 system system 0 Jul 21 03:11 com.motorola.android.AudioEffectSettings
-rw------- 1 system system 0 Jul 21 03:10 com.motorola.android.fmradio
-rw------- 1 system system 0 Jul 21 03:11 com.motorola.android.motophoneportal.androidui
-rw------- 1 system system 0 Jul 21 03:10 com.motorola.fmradio
-rw------- 1 system system 0 Jul 21 03:11 com.motorola.usb
-rw------- 1 system system 0 Jul 21 03:07 com.nolanlawson.logcat
-rw------- 1 system system 0 Jul 22 03:40 com.opera.mini.android
-rw------- 1 system system 0 Jul 21 03:09 com.quoord.tapatalkxda.activity
-rw------- 1 system system 0 Jul 22 03:39 com.realarcade.DOJ
-rw------- 1 system system 0 Jul 22 03:39 com.rovio.angrybirdsrio
-rw------- 1 system system 0 Jul 22 03:39 com.rovio.angrybirdsseasons
-rw------- 1 system system 0 Jul 22 03:39 com.sirma.mobile.bible.android
-rw------- 1 system system 0 Jul 21 03:11 com.svox.pico
-rw------- 1 system system 0 Jul 21 03:08 com.swype.android.inputmethod
-rw------- 1 system system 0 Jul 22 03:40 com.tinyco.village
-rw------- 1 system system 0 Jul 21 03:09 com.tunewiki.lyricplayer.android
-rw------- 1 system system 0 Jul 21 03:09 com.twitter.android
-rw------- 1 system system 0 Jul 21 03:07 com.vivis.android.livetv
-rw------- 1 system system 0 Jul 21 03:07 de.bwulfert.buildpropedit
-rw------- 1 system system 0 Jul 21 03:09 devian.tubemate.home
-rw------- 1 system system 0 Jul 21 03:06 dk.logisoft.aircontrolbeta
-rw------- 1 system system 0 Jul 21 03:07 info.kfsoft.android.TrafficIndicator
-rw------- 1 system system 0 Jul 21 03:09 mobi.infolife.itag
-rw------- 1 system system 0 Jul 21 03:07 net.micode.compass
-rw------- 1 system system 0 Jul 21 03:07 org.games4all.android.games.indianrummy.prod
-rw------- 1 system system 0 Jul 21 03:09 org.wordpress.android
-rw------- 1 system system 0 Jul 21 03:08 tw.com.quickmark
-rw------- 1 system system 0 Jul 21 03:07 uk.co.aifactory.chessfree

Basicaly you can deny hwui to any app that targets API 10 or below, any app that uses Holo.Light theme(Eg: Gmail : No gradient needed, but you have to be carefull because apps like Google+ and Github relies on hwui for animations/effects) or any app that doesn't have a UI. You see when hwui is not denies some libs are loaded :

07-17 14:20:37.968: D/libEGL(4041): loaded /system/lib/egl/libGLES_android.so
07-17 14:20:37.976: D/libEGL(4041): loaded /system/lib/egl/libEGL_POWERVR_SGX530_125.so
07-17 14:20:37.991: D/libEGL(4041): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX530_125.so
07-17 14:20:37.991: D/libEGL(4041): loaded /system/lib/egl/libGLESv2_POWERVR_SGX530_125.so

If you deny hwui, these are not loaded. So denying hwui for one or two apps won't make a diffrence, but disabling hwui for many apps can save you some memory or even some battery.

Source : https://github.com/royale1223/HwaSettings

Translators : https://github.com/royale1223/HwaSettings/blob/master/res/values/strings.xml