Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[MOD][HOW-TO] Force enter key inside Hangouts!

$
0
0
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 <init>(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 :cool:




Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>