Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
runandhide05
Old
(Last edited by runandhide05; 17th June 2012 at 12:28 AM.)
#1  
runandhide05's Avatar
Senior Member - OP
Thanks Meter 1543
Posts: 2,130
Join Date: Apr 2011

 
DONATE TO ME
Default All H.O.E. (HTC One EVO) mods by RunAndHide


Must flash in Custom Recovery of your Choice

Releases These will do:
Physical Recent App Key = Menu
Adds Longpress Home = Launch Recent Apps
Must be on deodex roms
Stock w/ on screen menu
here
Stock/no onscreen menu
here
ViperRom v1.2
here
ViperRom 1.2.1 (includes advance power menu now)
Here
Voice Search
enable by halfpress camera button *refer to post three for a copy paste method
HERE
NEW!! for Viper 1.2.1 longpress home = recent apps, physical recent app button = menu, volume up/down = wake device, half press camera button = search/voice search and includes Vinchenzop's APM
HERE


Also dont kill me if anything of mine does not work cause
1) its not my fualt
2) i dont have this phone so no testing
3) what fun is it without some bootloops (just kidding)

See Post 3 for how this was done, and spread the word
happy modding guys


Screen shot provided by
FattySparks
Vinchenzop
Attached Thumbnails
Click image for larger version

Name:	uploadfromtaptalk1338404963643.jpg
Views:	6963
Size:	52.8 KB
ID:	1095694   Click image for larger version

Name:	4257736f-ee89-a580.jpg
Views:	6542
Size:	37.8 KB
ID:	1099376  
The Following 61 Users Say Thank You to runandhide05 For This Useful Post: [ Click to Expand ]
 
Spyderekz
Old
(Last edited by Spyderekz; 2nd June 2012 at 09:59 PM.)
#2  
Spyderekz's Avatar
Senior Member
Thanks Meter 97
Posts: 561
Join Date: Mar 2008
Location: Wichita
:beer:
My Phone History
RAZR | ROKR | HTC Touch | Palm Pre | Evo 4G | Nexus S 4G | Evo 3D | Evo LTE
 
runandhide05
Old
(Last edited by runandhide05; 2nd June 2012 at 08:02 PM.)
#3  
runandhide05's Avatar
Senior Member - OP
Thanks Meter 1543
Posts: 2,130
Join Date: Apr 2011

 
DONATE TO ME
How I did it; To help the community
listed are the changes needed to enable longpress on home
these changes are in the android.policy.jar located at /system/framework/
you must decompile the classes.dex file and will find these smali files in a tree of folders
in PhoneWindowsManager.smali
line 1299
from
Code:
.method static synthetic access$300(Lcom/android/internal/policy/impl/PhoneWindowManager;J)V
    .registers 3
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 199
    invoke-direct {p0, p1, p2}, Lcom/android/internal/policy/impl/PhoneWindowManager;->startHtcSpeak(J)V

    return-void
.end method
to
Code:
.method static synthetic access$300(Lcom/android/internal/policy/impl/PhoneWindowManager;J)V
    .registers 3
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 199
    invoke-direct {p0, p1, p2}, Lcom/android/internal/policy/impl/PhoneWindowManager;->startRecentTasks(J)V

    return-void
.end method
line 2456
from
Code:
.method private startHtcSpeak(J)V
    .registers 5
    .parameter "eventDownTime"

    .prologue
    .line 4578
    :try_start_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.nuance.vsuite.intent.action.VOICE_COMMAND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 4579
    .local v0, intent:Landroid/content/Intent;
    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 4580
    iget-object v1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

    if-eqz v1, :cond_17

    .line 4581
    iget-object v1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 4582
    iput-wide p1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHtcSpeakDownTime:J
    :try_end_17
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_17} :catch_18

    .line 4592
    .end local v0           #intent:Landroid/content/Intent;
    :cond_17
    :goto_17
    return-void

    .line 4587
    :catch_18
    move-exception v1

    goto :goto_17
.end method
to

Code:
.method private startRecentTasks(J)V
    .registers 5
    .parameter "eventDownTime"

    .prologue
    .line 4418
    .line 4419
    :try_start_0
    iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBarService:Lcom/android/internal/statusbar/IStatusBarService;

    invoke-interface {v0}, Lcom/android/internal/statusbar/IStatusBarService;->toggleRecentApps()V

    .line 4422
    iput-wide p1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHtcSpeakDownTime:J
    :try_end_7
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_7} :catch_8

    .line 4432
    .end local v0
    :goto_7
    return-void

    .line 4427
    :catch_8
    move-exception v1

    goto :goto_7
.end method
line 1707
from
Code:
.method private handleLongPressOnHome(J)V
    .registers 5
    .parameter "eventDownTime"

    .prologue
    const/4 v1, 0x0

    .line 1008
    iget-boolean v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mAutoMotiveEnabled:Z

    if-eqz v0, :cond_17

    .line 1009
    iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

    if-eqz v0, :cond_17

    .line 1010
    const/4 v0, 0x0

    invoke-virtual {p0, v0, v1, v1}, Lcom/android/internal/policy/impl/PhoneWindowManager;->performHapticFeedbackLw(Landroid/view/WindowManagerPolicy$WindowState;IZ)Z

    .line 1011
    iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/android/internal/policy/impl/PhoneWindowManager$7;

    invoke-direct {v1, p0, p1, p2}, Lcom/android/internal/policy/impl/PhoneWindowManager$7;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;J)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 1024
    :cond_17
    return-void
.end method
to

Code:
.method private handleLongPressOnHome(J)V
    .registers 5
    .parameter "eventDownTime"

    .prologue
    const/4 v1, 0x0

    .line 1008
    .line 1009
    iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

    if-eqz v0, :cond_17

    .line 1010
    const/4 v0, 0x0

    invoke-virtual {p0, v0, v1, v1}, Lcom/android/internal/policy/impl/PhoneWindowManager;->performHapticFeedbackLw(Landroid/view/WindowManagerPolicy$WindowState;IZ)Z

    .line 1011
    iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/android/internal/policy/impl/PhoneWindowManager$7;

    invoke-direct {v1, p0, p1, p2}, Lcom/android/internal/policy/impl/PhoneWindowManager$7;-><init>(Lcom/android/internal/policy/impl/PhoneWindowManager;J)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 1024
    :cond_17
    return-void
.end method

then in PhoneWindowManager$7.smali

line 54
from
Code:
#calls: Lcom/android/internal/policy/impl/PhoneWindowManager;->startHtcSpeak(J)V
to

Code:
#calls: Lcom/android/internal/policy/impl/PhoneWindowManager;->startRecentTasks(J)V

now to remove the navbar when an app calls for menu is rather simple
decompile the framework-res.apk
and head to res/values/dimens.xml
go to the line that calls the dimens of the narbar
and change

from
Code:
<dimen name="navigation_bar_height">48.0dip</dimen>
    <dimen name="navigation_bar_width">45.0dip</dimen>
to
Code:
    <dimen name="navigation_bar_height">0.0dip</dimen>
    <dimen name="navigation_bar_width">0.0dip</dimen>

i believe that was everything, and i hope i didnt leave anything out
have fun tweeking.
and hope this helps out


to add a phycical search button to the half press action of the camera button change the following
at \system\usr\keylayout\keypad_8960.kl
from
Code:
key 211   FOCUS
key 212   CAMERA
key 116   POWER             WAKE_DROPPED
key 114   VOLUME_DOWN       WAKE
key 115   VOLUME_UP         WAKE
key 102   HOME
key 139   MENU
key 158   BACK
key 217   SEARCH

key 107   ENDCALL           WAKE_DROPPED
to
Code:
key 211   SEARCH
key 212   CAMERA
key 116   POWER             WAKE_DROPPED
key 114   VOLUME_DOWN       WAKE
key 115   VOLUME_UP         WAKE
key 102   HOME
key 139   MENU
key 158   BACK
key 217   SEARCH

key 107   ENDCALL           WAKE_DROPPED
The Following 15 Users Say Thank You to runandhide05 For This Useful Post: [ Click to Expand ]
 
freeza
Old
#4  
freeza's Avatar
Recognized Developer
Thanks Meter 6873
Posts: 3,797
Join Date: May 2006
Location: Pasadena, CA

 
DONATE TO ME
It doesn't matter what ROM you are on, as long as it is deodexed (and Sense, duh). Also, you don't need to wipe anything as ICS automatically detects changed files and adjusts itself accordingly.
.:Team Synergy:.
Current Phone: Sprint Galaxy S III
ROMs: Galaxy S fre3 2.53 | Stock Jelly Bean L710VPBMD4
Sites: freeza inc. | free HQ Mobile Wallpapers&Ringtones
Facebook: Add me | Google Talk: @gmail.com
The Following User Says Thank You to freeza For This Useful Post: [ Click to Expand ]
 
runandhide05
Old
(Last edited by runandhide05; 30th May 2012 at 03:49 AM.)
#5  
runandhide05's Avatar
Senior Member - OP
Thanks Meter 1543
Posts: 2,130
Join Date: Apr 2011

 
DONATE TO ME
Quote:
Originally Posted by freeza View Post
It doesn't matter what ROM you are on, as long as it is deodexed (and Sense, duh). Also, you don't need to wipe anything as ICS automatically detects changed files and adjusts itself accordingly.
i was not sure if he had changed anything in his framework, so i am/was playing it safe.
and as for wiping, ive always gone with the rule of thumb if your touching the /framework it never hurts.
but yes you are right it will rebuild if anuything has been changed automatically
but if i specify which rom once i add the systemUIs to get rid of the onscreen menu dont mix...
The Following User Says Thank You to runandhide05 For This Useful Post: [ Click to Expand ]
 
dannys.ser
Old
#6  
dannys.ser's Avatar
Member
Thanks Meter 12
Posts: 72
Join Date: Aug 2010
Ill test to get rid of on screen menu buttons

Sent from my EVO
The Following User Says Thank You to dannys.ser For This Useful Post: [ Click to Expand ]
 
Spyderekz
Old
#7  
Spyderekz's Avatar
Senior Member
Thanks Meter 97
Posts: 561
Join Date: Mar 2008
Location: Wichita
flashing viper now to test
My Phone History
RAZR | ROKR | HTC Touch | Palm Pre | Evo 4G | Nexus S 4G | Evo 3D | Evo LTE
The Following User Says Thank You to Spyderekz For This Useful Post: [ Click to Expand ]
 
freeza
Old
#8  
freeza's Avatar
Recognized Developer
Thanks Meter 6873
Posts: 3,797
Join Date: May 2006
Location: Pasadena, CA

 
DONATE TO ME
Quote:
Originally Posted by runandhide05 View Post
i was not sure if he had changed anything in his framework, so i am/was playing it safe.
and as for wiping, ive always gone with the rule of thumb if your touching the /framework it never hurts.
but yes you are right it will rebuild if anuything has been changed automatically
but if i specify which rom once i add the systemUIs to get rid of the onscreen menu dont mix...


and here is one that includes the systemUI modded to remove the menu
if someone would test it for me
its a MUST you be on viper v1.1
https://www.box.com/s/a3031514c5173e37e687
I agree. You should however use Stock as a base. Most people are on that and it won't encourage ROM favortism
.:Team Synergy:.
Current Phone: Sprint Galaxy S III
ROMs: Galaxy S fre3 2.53 | Stock Jelly Bean L710VPBMD4
Sites: freeza inc. | free HQ Mobile Wallpapers&Ringtones
Facebook: Add me | Google Talk: @gmail.com
 
runandhide05
Old
#9  
runandhide05's Avatar
Senior Member - OP
Thanks Meter 1543
Posts: 2,130
Join Date: Apr 2011

 
DONATE TO ME
Because I have a few untested out please list the full name of the zip u flashed and what from u r running,
Not just " it didn't work"
That does not help me one bit..
Thank you guys/gals

Sent from my Galaxy Nexus using Tapatalk 2
 
runandhide05
Old
#10  
runandhide05's Avatar
Senior Member - OP
Thanks Meter 1543
Posts: 2,130
Join Date: Apr 2011

 
DONATE TO ME
Quote:
Originally Posted by freeza View Post
I agree. You should however use Stock as a base. Most people are on that and it won't encourage ROM favortism
Good idea man. Although as of now its the one out.

Sent from my Galaxy Nexus using Tapatalk 2

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...