Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,731,757 Members 48,440 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][HOW-TO] Force enter key inside Hangouts! --- Now an Xposed module!

Tip us?
 
CNexus
Old
(Last edited by CNexus; 15th March 2014 at 05:29 PM.)
#1  
CNexus's Avatar
Recognized Contributor - OP
Thanks Meter 13263
Posts: 8,995
Join Date: May 2012
Location: /home/cnexus/android

 
DONATE TO ME
Default [MOD][HOW-TO] Force enter key inside Hangouts! --- Now an Xposed module!

UPDATE: An Xposed module is now available that serves the same function as this mod: HERE

************************************************** ***********


This mod will allow you to force the enter key inside Hangouts:

 

Before


After



What you need:
  1. apktool/baksmali+smali
  2. Text editor (NOT regular notepad, use something like notepad++)

Now let's get started

Quote:
  1. Decompile Hangouts and navigate to com/google/android/apps/babel/views
  2. Open ComposeMessageView.smali with your text editor
  3. Find the following constructor (search for it..):
    Code:
    .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;)V
  4. Now find the line that looks like this (should be right at the beginning of the constructor method):
    Code:
    .locals XXX
  5. Now delete the number that comes after "locals" and change it to 6. Final code should be as follows:
    Code:
    .locals 6
  6. Now scroll down until you find code similar or the same as the following (register numbers might be different):
    PHP Code:
        invoke-virtual {v1v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

        
    move-result-object v0

        check
    -cast v0Landroid/widget/EditText
  7. Now add the following code immediately after the chunk above (make sure to change v0 register number as necessary if the EditText object is stored into another register):
    PHP Code:
        invoke-virtual {v0}, Landroid/widget/EditText;->getInputType()I
        
        move
    -result v5
        
        
    const v40x00000050
        
        
    or-int v5v5v4
        
        invoke
    -virtual {v0v5}, Landroid/widget/EditText;->setInputType(I)
  8. That's it! Now recompile Hangouts and move the classes.dex from the new apk (with the modified code) that you just compiled into the original APK, overwriting the original classes.dex
  9. Install and enjoy



Here is my modified apk: http://www.androidfilehost.com/?fid=23329332407579003
Sign up for the new Copy file storage service with this link and get both of us an extra 5 GB!
Or sign up for Dropbox with this link and we can both grab some extra storage!

The Following 17 Users Say Thank You to CNexus For This Useful Post: [ Click to Expand ]
 
lupoalberto12
Old
#2  
Senior Member
Thanks Meter 28
Posts: 267
Join Date: Dec 2010
Location: Naples
Mmm, thanks but If you press "Shift", the "Smile button" changes in "Enter button" !
Bye!
! !
The Following 4 Users Say Thank You to lupoalberto12 For This Useful Post: [ Click to Expand ]
 
hp420
Old
#3  
hp420's Avatar
Senior Member
Thanks Meter 858
Posts: 1,682
Join Date: Jul 2011
Location: NY
Great! Wouldn't it be easier to just upload the apk, though? I'm not against a small amount of editing, but I don't want to do this with every release.
 
jazzespresso
Old
#4  
jazzespresso's Avatar
Senior Member
Thanks Meter 553
Posts: 1,074
Join Date: Jul 2012
Location: NYC, USA
excellent stuff, but I hate decompile/and then compile app, and a lot of users have no or little knowledge, it would be so wonderful if this hack provided as xposed module, so that all users who wish to add this feature wont be worry about modifying the app itself...
"Chaos is order yet undeciphered"

================================================== ================
  • Nexus 7 WiFi (2012) - [KK 4.4.4 KTU84P] ♦ [PURITY ROM]
  • Galaxy Note 3 - AT&T, Stock ROM 4.4.2
  • Galaxy Tab 2 7 - GT-P3113 - 4.4.4 - Official SlimKat ROM
  • Galaxy Note 8.0 - GT-N5110 - 4.4.2 CivZ-FLEXNOTE-8.0_Rev1.8 with SPen Air Feature
  • HP TouchPad - WebOS - still one of the best OS!
================================================== ================
 
Kryten2k35
Old
#5  
Kryten2k35's Avatar
Recognized Contributor
Thanks Meter 10870
Posts: 7,186
Join Date: Jan 2011
Location: Bradford

 
DONATE TO ME
This is a how-to, for developers. If you want just an apk, wait for someone to maintain one.
The Following 2 Users Say Thank You to Kryten2k35 For This Useful Post: [ Click to Expand ]
 
CNexus
Old
#6  
CNexus's Avatar
Recognized Contributor - OP
Thanks Meter 13263
Posts: 8,995
Join Date: May 2012
Location: /home/cnexus/android

 
DONATE TO ME
Quote:
Originally Posted by lupoalberto12 View Post
Mmm, thanks but If you press "Shift", the "Smile button" changes in "Enter button" !
Bye!
! !
Not getting that here.
Sign up for the new Copy file storage service with this link and get both of us an extra 5 GB!
Or sign up for Dropbox with this link and we can both grab some extra storage!

 
CNexus
Old
#7  
CNexus's Avatar
Recognized Contributor - OP
Thanks Meter 13263
Posts: 8,995
Join Date: May 2012
Location: /home/cnexus/android

 
DONATE TO ME
Quote:
Originally Posted by jazzespresso View Post
excellent stuff, but I hate decompile/and then compile app, and a lot of users have no or little knowledge, it would be so wonderful if this hack provided as xposed module, so that all users who wish to add this feature wont be worry about modifying the app itself...
I'm working on an xposed module.
Sign up for the new Copy file storage service with this link and get both of us an extra 5 GB!
Or sign up for Dropbox with this link and we can both grab some extra storage!

The Following 6 Users Say Thank You to CNexus For This Useful Post: [ Click to Expand ]
 
bigknowz
Old
#8  
bigknowz's Avatar
Senior Member
Thanks Meter 184
Posts: 448
Join Date: Jan 2012
Location: NYC
Question Color Notification

Quote:
Originally Posted by CNexus View Post
I'm working on an xposed module.
@CNexus, I've put together color notifications for GMail, Calendar, G+ and Hangouts, but for some reason the color png doesn't apply for Hangouts. Any thoughts? Thanks in advance.

Here's the flashable zip for an xxhdpi device:
http://www.mediafire.com/download/xe...O_+_140314.zip

Nexus 5 32GB
stock + GravityBox + Code_Blue
Color Notifications for N5 (should work on any odexed xxhdpi device)

*** retired ****
LTE Galaxy Nexus
 
hp420
Old
#9  
hp420's Avatar
Senior Member
Thanks Meter 858
Posts: 1,682
Join Date: Jul 2011
Location: NY
Quote:
Originally Posted by Kryten2k35 View Post
This is a how-to, for developers. If you want just an apk, wait for someone to maintain one.
no it isn't...it's for modders. what dev would honestly need to know this, with the exception of modding purposes? as i said above, i'm not against editing an apk, and i even requested an apk upload (albeit indirectly)....why do you feel the need to step in?? everything was understood and clearly stated. i'm not starting anything here, but please save modding for times when it's absolutely needed. this is not one of those cases.
 
arana1
Old
#10  
arana1's Avatar
Senior Member
Thanks Meter 16
Posts: 155
Join Date: Oct 2011
Quote:
Originally Posted by lupoalberto12 View Post
Mmm, thanks but If you press "Shift", the "Smile button" changes in "Enter button" !
Bye!
! !
that doesnt work here, maybe has to do with version of keyboard you are using

Tags
force enter key, hangouts, hangouts force enter key, hangouts remove smiley key, hangouts smiley
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes