Skip to content

FusionSocket.org

You know you want to….

So my HTC Desire (running Acesmod007) died the other day. It just died and wouldn’t start back up. So after mucho deliberation, I went out and bought an HTC Sensation (non XE).

After spending almost two weeks trying out all the different ROMs that were available, I finally decided on Android Revolution HD (XE version) for stability reasons.

One problem I found was the lack of any “useful” official flashable MODs. Namely a circle battery mod, extended quick settings and the removal of the annoying and redundant recent app list at the top of the notification menu in Sense 3.x.

There should be a picture here but I got lazy. If you don’t already know what it looks like, you’re probably arrived at this page erroneously.

So, the dirty.

  1. Download and install apktool. Grab the apktool tar and the other tar that’s labelled for your operating system. Extract both of them to the same folder.
  2. Extract the following to the abovementioned folder:
    1. /system/framework/com.htc.resources.apk
    2. /system/app/SystemUI.apk
  3. Open a command prompt/shell and navigate to the folder
  4. In your command prompt, type:
    1. apktool if com.htc.resources.apk
    2. apktool d SystemUI.apk
  5. In your apktool folder there should now be a new folder. Navigate to
    SystemUI\smali\com\android\systemui\statusbar
  6. Open the file
    StatusBarFlag.smali
  7. Find the line
    sput-boolean v0, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
    and replace it with
    sput-boolean v2, Lcom/android/systemui/statusbar/StatusBarFlag;->HTC_RECENT_APP:Z
  8. Save the file
  9. In your command prompt, type:
    apktool b SystemUI SystemUI_new.apk
  10. If you’re editing a SystemUI.apk directly from your phone (adb pull, etc), skip this and go to the next step. Now if you’re editing a SystemUI.apk from a flashable zip, I have had success with just replacing the original apk with this new apk (YMMV). [Don't forget to delete the old apk rename the new apk from SystemUI_new.apk to SystemUI.apk.]
  11. Open up the old and new apks in 7zip or WinRAR. In the root directory, you’ll find a file called classes.dex
    Take the classes.dex from the new apk and put it into the old apk.
  12. Put the old (but modified) SystemUI.apk back into your phone. Make sure the file permissions is, like all /system/app files, 644.

 

You have now removed HTC’s Recent Apps. If it doesn’t work, you may not have overwritten the old SystemUI.apk.

Sources:

http://forum.xda-developers.com/showthread.php?t=1225558

http://rootzwiki.com/topic/2364-mod-remove-recent-apps-from-downdown/

http://forum.xda-developers.com/showthread.php?t=1018818

http://forum.xda-developers.com/showpost.php?p=15417961&postcount=107

http://forum.xda-developers.com/showthread.php?t=1005624

Features:
- Disable LCD backlight at record start and re-enable at end
- Toggle backlight during recording
- Low Voltage Warning
- Low Disk Space Warning

Requirements:
Must be in video mode (video mode dial) and in record mode (not playback)

Parameters Available:
Low Voltage Threshold – Triggers Low Voltage alert
Low Disk Space Percent Threshold – Triggers Alert if free disk space is less than this (in percent)
Enable Low Voltage Alert – 1 means it will alert you. Any other number means off.
Enable Low Disk Space Alert – 1 means it will alert. Any other number means off.

Usage:
- In ALT mode, fully depress the shutter to start the script and thus recording and press again to stop it.
- You may run this script even after you have started a recording.
- The “Display” button will toggle your backlight when you are recording.

Tested:
A1100IS

NOLCDVIDEO.bas

@title NOLCDVIDEO
@param d Low Voltage Threshold
@default d 2400
@param e Low Disk Space Percent Threshold
@default e 10
@param f Enable Low Voltage Alert
@default f 1
@param g Enable Low Disk Space Alert
@default g 1

rem v1.0.0.1
rem todo: set_led for recording, battery low, card almost full. To use switch case statements when if, elseif is needed
rem Original values: A = focus mode, a=buttonchecks, b=modechecks(get_mode),c=backlightstate,d=batteryalertvoltage,e=freediskspacealertpercent,f=batteryalertstate,g=freediskalertstate,h=internalmathvar,i=internalmathvar2

rem Init
b=get_mode
if b=1 then goto “dorecmodeerror”
if b=0 then goto “dosceneerror”

rem get_prop 12 A
rem if A=0 then set_prop 12 1

rem Main
print “Starting…”

if get_movie_status=4 then
rem set the led
print “Recording already started…”
print “Turning off LCD in 1 sec”
sleep 1000
set_backlight(0)
else
press “shoot_half”
sleep 1000
click “shoot_full”
rem set the led
print “Started recording…”
print “Turning off LCD in 1 sec”
sleep 1000
set_backlight(0)
endif

c=0
:loop
wait_click 5000
is_key a “display”
if a=1 then gosub “dotoggledisplay”
if is_key “no_key” then gosub “dochecks”
goto “loop”

rem Func
:dochecks
if get_vbatt <= d then
if f=1 then
playsound 6
print “Battery Voltage: “, get_vbatt, “V”
endif
endif

h=get_free_disk_space * 100 / get_disk_size
if (h <= e) then
if g=1 then
playsound 6
print “Disk space left:”, get_free_disk_space / 1000, “MB (“, h, “%)”
endif
endif
return

:dotoggledisplay
print “Toggling display…”
if c=0 then
set_backlight(1)
c=1
else
sleep 500
set_backlight(0)
c=0
endif
return

:dosceneerror
print “Not in Video mode, exiting.”
sleep 1000
end

:dorecmodeerror
print “Not in REC mode, exiting.”
sleep 1000
end

:restore
set_backlight(1)
print “Stopping recording”
rem unset the led
click “shoot_full”
rem set_prop 12 A

If you have a table within a div, like so…

<div>
    <table style="width: 100%"...
    ...
    </table>
</div>

…you may experience problems with non-fixed width columns overshooting their boundaries in Internet Explorer (even IE8 under Win7).

The solution is this:

<div style="zoom: 1; overflow: auto;">
    <div id="myDiv" style="zoom: 1;">
        <table style="width: 100%"...
        ...
        </table>
    </div>
</div>

I’ve got this to work under IE8 in Win 7 x64 WITHOUT the second level div.

If you want to cater for those using IE6 or lesser, you will have to add an extra conditional. This is why I’ve left in the second level div.

<div style="zoom: 1; overflow: auto;">
    <div id="myDiv" style="zoom: 1;">
        <table style="width: 100%"...
        ...
        </table>
    </div>
</div>

<!--[if lt IE 7]><style> #myDiv { overflow: auto; } </style><![endif]-->

Why people still use IE is beyond me. Just in case you were wondering, this isn’t a “feature” or a lack of CSS implementation (of which there are many), this is a big friggin bug.

Paraphrased from: http://stackoverflow.com/questions/139000/div-with-overflowauto-and-a-100-wide-table-problem

  1. Visit: http://www.xiph.org/dshow/
  2. Download and install the file that is relevant to you
    e.g. Windows 32/64-bit Installer: opencodecs_0.84.17359.exe 2,46MB

Backup reference url:
http://www.afterdawn.com/software/general/download.cfm?version_id=29264&software_id=1400&mirror_id=0

It’s really that simple. Forget about Illuminable or CoreFLAC. This simply works. =)

Creative Commons Attribution 3.0 Singapore This work is licensed under a Creative Commons Attribution 3.0 Singapore.