yashsingh1/xdaforums huggingface dataset:
[Android Software Development] manan9999:
I really like your trick but need some help

It would be the best if you can provide me with modded apk file for Google.apk (which supports Google assistant)

As i cant find any such lines in my e.smali file

I hv j7 with android 6.0.1 and Google 6.10.21.21.arm
[Android Software Development] iamleaf47:
Is there a modded app I can install?
[Android Software Development] DarkLanternX:
Make a new folder in />system>priv-apps>

---------- Post added at 05:29 AM ---------- Previous post was at 05:26 AM ----------

Just follow my steps

You will be having your Google assistant within no time
[Android Software Development] DarkLanternX:
Here is the proof
[Android Software Development] anujmankotia:
can u plz elaborate the steps

---------- Post added at 07:20 AM ---------- Previous post was at 07:19 AM ----------

is it for mm(android 6.0)
[Android Software Development] DarkLanternX:
there is a much better and easy way of getting google assistant on android M/N

follow my steps:p

1. edit the build.prop like it said in the article or download an app, "Get Assistant"(applicable only to Android N) from playstore(Root Required)

2. use a root explorer like ES explorer, and head over to its root directory

3. location ; /system>priv-apps>here create a folder and rename it to match the apk name, and paste the apk inside it

3. Clear google data, and reboot

if you followed all the steps correctly, you should have the google assistant after your phone boots up

it doesnt work with all roms so you might end up in a bootloop , but its worth a try..

4. enjoy and play with your own google assistant:cool:

Tap thanks if this helped u:fingers-crossed:
[Android Software Development] anujmankotia:
this doesn't apply for marshmallow

I have tried that already
[Android Software Development] mmandro25:
is it working on miui?
[Android Software Development] DarkLanternX:
I have tried it on RR 5.7.3 Android MM. And it worked for me
[Android Software Development] Prakharbharti:
Latest google apk for arm64 it is unsigned try to install it..if it doesn't then try signing and then installing..however it works if i push it in system/priv-app/velvet...

https://drive.google.com/open?id=0BxHHNu8mGUCxanBjLV9nN3Z4MDg
[Android Software Development] Prakharbharti:
Deleted
[Android Software Development] Zacharee1:
You can edit posts...
[Android Software Development] anujmankotia:
Thanks mate

Apk is working...

Like magic
[Android Software Development] Prakharbharti:
I can't seem to find an option to delete the screenshot..help me out pls:D

---------- Post added at 04:53 PM ---------- Previous post was at 04:53 PM ----------

So did u Install it or pushed it to system?

And is the ok google Hotword working?
[Android Software Development] anujmankotia:
Xyzzzz
[Android Software Development] Prakharbharti:
??? What is it?
[Android Software Development] anujmankotia:
My device is not rooted

So i unpacked the system

And replaced velvet.apk

---------- Post added at 04:56 PM ---------- Previous post was at 04:55 PM ----------

Trying to delete the image now
[Android Software Development] Prakharbharti:
It wasn't being installed?
[Android Software Development] anujmankotia:
Actually in some devices the pre-installed apps can't be updated by installing them externally
[Android Software Development] Prakharbharti:
There must be a solution for that??

Coz we will need to edit the apk everytime its update is released
[Android Software Development] anujmankotia:
I think the next update will be installed from google play but then it will not be modified??
[Android Software Development] Prakharbharti:
Yup...thats the problem
[Android Software Development] anujmankotia:
here's the solution bro

Open xda in a browser

Go to edit < advance

Remove attachment
[Android Software Development] Prakharbharti:
Thanx a lot.
[Android Software Development] shanky0129:
Any update?
[Android Software Development] TR3Y:
From the look of it; it looks like the 6.11* file structure may have gone to Google/smali/com/google/android/apps/gsa/assistant/shared/h.smali

it seems to be se() now instead of pU() or rp()

and sd() instead of pT() or ro()

I hope this is all right. I am slowly getting into smali editing.
[Android Software Development] The Hard Gamer:
Dig more I think you are on the right track

I am getting errors in this stuffs:silly:
[Android Software Development] TR3Y:
Yeah. Unfortunately, I also got some errors. I was a bit exhausted last night (when I posted) but I will look more into this later. I am almost positive that h.smali is the right file though.
[Android Software Development] The Hard Gamer:
Yeah and post your findings please
[Android Software Development] TR3Y:
I absolutely shall.
[Android Software Development] The Hard Gamer:
I am waiting:highfive:
[Android Software Development] TR3Y:
I hit a snag. I didn't notice it last night.

View attachment 4039095

So I went through the XML and found...

View attachment 4039096

Does anyone have the original text of the XML here?

On the bright side, i am 99.7% sure that the file structure is in h.smali

Edit: I think I just got it. testing it out.
[Android Software Development] iMarbot:
Are you able to install it as a normal APK? Or do you have root or are flashing it?
[Android Software Development] TR3Y:
I am actually not rooted. I was unsuccessful in getting it to work. Unfortunately. I have compiled the application up and everything. The sign from Google seems to be causing the problem as well. Going to dig deeper though.

There is no longer a double instance of "ro.opa.eligible_device" so I am wondering what Google may have done to do this.

---------- Post added at 06:17 PM ---------- Previous post was at 06:10 PM ----------

Just keeping you updated. Latest update is above. This is one tough cookie to crack.
[Android Software Development] iMarbot:
I was able to modify the APK when APKTool 2.2.2 was released as it fixed the recompile (ages ago now) but was never able to get the APK install-able as I could not sign it with the required keys. I could flash it, but that defeats the point of the whole modification as I can easily flash one of the Assistant enabling packages without needing to modify after every app update.
[Android Software Development] TR3Y:
Yeah. I am able to compile older versions, but google appears to have changed the file structure to just contain one "ro.opa.eligible_device" in the latest stable.
[Android Software Development] The Hard Gamer:
Let me see once
[Android Software Development] iMarbot:
I looked at the latest Beta APK and the methods are in /shared/i.smali. I then looked at the accidentally released Alpha and they have changed quite a lot. There is now only one other file, /shared /OpaEligibilityChecker.smali, which sounds like exactly what we want. I think the method is

.method public static isDevicePrebuiltWithOpa()Z

as that sounds a lot like what we want. It has the follow inside it:

const/4 v1, 0x1

const/4 v0, 0x0

One is already set to const/4 v1, 0x1, which could suggest why assistant was randomly enabled for some people?

But again I make no progress to installing it because I cannot sign it properly.
[Android Software Development] TR3Y:
So technically, Google made it so we only have to change 1 part of the file structure instead of 2?

I might look into the new beta and see what I can scrounge.
[Android Software Development] anujmankotia:
Ya the "OK Google" hotword is working
[Android Software Development] 69gm:
Sounds like nice progress is being made. Thanks for keeping at this!

I am trying to find a non-Xposed method of getting Google Assistant working. That way I can still pass Safetynet and use Android Pay.

Very hopeful...
[Android Software Development] riaanck:
Can't wait to use this.:cool:
[Android Software Development] Merlve:
Can anyone pls upload his/her Working Google apk here, plsss.
[Android Software Development] Zacharee1:
If you don't have root it won't work anyway.
[Android Software Development] Merlve:
I just need the already compiled apk, so I can install it, pls
[Android Software Development] Zacharee1:
You haven't provided an architecture, and it will not work without root. Do you have root?
[Android Software Development] Merlve:
Yes I do have root, arm-6.0
[Android Software Development] Zacharee1:
Well I might be able to give you a modified APK, but I have ARM64 and Nougat, so I can't test. Have you considered the Xposed module?
[Android Software Development] Merlve:
I haven't and I don't even know a module like that exists, what module pls and if u can, I'd also want that modified apk
[Android Software Development] Zacharee1:
https://xdaforums.com/xposed/modules/xposed-assistant-enabler-enable-google-t3479587
[Android Software Development] shaneel1491:
[MENTION=6994462]ANIKETultimate[/MENTION] kind of off topic but I'm trying to patch Google Camera to get HDR+ working with other devices although it gives a signature verification error in logcat, any ideas how I can patch that, found a lib smali named GoogleSignatureVerification.smali, which is probably it
[Android Software Development] dimitrispas22:
can you upload the apk pls
[Android Software Development] anujmankotia:
Ok there is a new version of google app

And sadly weneed to modify that again
[Android Software Development] Fobos531:
Not sure how true this is, but we might be able to get Google Assistant on all 6.0+ devices, regardless of root status. Fingers crossed.
[Android Software Development] jitu12345:
Where is this method located

Handsoff

Settings

Shared

Plzz tell me
[Android Software Development] Amanansari:
Google assistant without root

Get Google assistant without root(no kidding like op) check my YouTube video and non hindi speakers please click the link in the description below the video. Please like and subscribe if I was the 1st to give you good news! Lol https://youtu.be/hiWRUXlGnfc
[Android Software Development] iMarbot:
RIP This Thread soon. For Google has granted us the light we seek. Assistant for ALL!
[Android Software Development] NikitoGR:
Uhhh not clever at all.
[Android Software Development] ali nz:
a folder does not exist in Google/smali/com/google/android/apps/gsa/assistant/a

i'm using google app v6.13
[Android Software Development] Cosmic_Commander:
there is no frickking folder please help me...after google app update all that is left in this method is goo.....no folder to be found..it's just impossible to do what author is saying....
[Android Software Development] ajaikumarnadar:
does this work in nougat ?
[Android Software Development] kishank76:
You can do it without pc, root, allo app, or any launcher.

Because i found a way to get.

My device is in warranty, bought in Oct.16

No rooted , not allo app.

And its very very easy to get it.
[Android Software Development] mltan_bdo:
https://xdaforums.com/note5/general/google-assistant-root-6-0-android-m-t3572163
[Android Software Development] harshil33:
Howw bro
[Android Software Development] akil.lv:
does it work no non-pixel mobiles?

i will test it on redmi and samsung s6.
[Android Software Development] KP@2016:
Hey guys,,, now actually we don't need to edit google apk for assistant to work coz now google has provided updates where assistant is default only... So for that go to playstore search google and take a part in beta tester program from bottom and then download it, then from google download beta google play services from official site... Once installed reboot your phone.. Now hold the home button and u have ur assistant working:laugh: CHEERS!
[Android Software Development] harshil33:
Not working
[Android Software Development] KP@2016:
It works bro.. In my redmi 3s...ya.. And one thing in google settings select language to united state then go to google app customize and select second options and train ur assistant from there.. It will work
[Android Software Development] harshil33:
See this bro. Requirements
[Android Software Development] harshil33:
I tried a lot but its not working...
[Android Software Development] KP@2016:
Ohkay.. Then hope xposed will only work for u
[Android Software Development] harshil33:
But i m not a rooted user.

I use stock only. I think i am not getting g.ass coz j7 have only 1.5gb of RAM
[Android Software Development] KP@2016:
Hope so..
[Android Software Development] Astridxx:
Thanks, very well
[Android Software Development] abhishek01999:
It Helped me bro! Thanks
[Android Software Development] aik.nayan:
Any body can you help me to give modified google... for Nougat 7.1.1
[Android Software Development] Viral1996:
Installed beta's but seems like it doesn't work on lineage roms
[Android Software Development] f.khatri:
Your built apk Worked on my s4 mini with cyanogenmod mod (ARM)

Doesn't work on my other device... Plz make it with ARM64 apk. Thank you... ;)
[Android Software Development] cr723:
Oneplus

Not working on OnePlus one.

Any help?
[Android Software Development] Arutemu:
Can someone send me apk? Dropbox link is dead for now :c

UPD. Also, I'm new to decompiling/compiling apks, so I have a problem with building. Which framework do I need?

UPD2. Finally build it on my own. But it's still just Google Now :c
[Android Software Development] devilman30:
Aloha,

Could someone make a apk for the unlocked HTC 10 I would really appreciate it. If there are files that you need please let me know and I will try to get them. I'm on stock 196.617.2. and my PC is down for the time being.

Mahalo
[Android Software Development] Garner:
Can someone please re-upload the apk from the first post as the dropbox link has expired :crying:
[Android Software Development] theloneseeker:
[MENTION=6994462]ANIKETultimate[/MENTION] can you tell me which apktool you used?
[Android Software Development] theloneseeker:
which apktool version are you using?
[Android Software Development] nom.xpert:
update links expired. update new link

Updated link has been disabled temperorarily. can anyone upload 64 bit apk again on google drive or zippyshare or else. please help us brothers.
[Android Software Development] adithyadinesh96:
If i get permission from op i have his app downloaded can share with u guys !:)
[Android Software Development] f.khatri:
Same error faced by me...
[Android Software Development] nom.xpert:
Please share the modified app

I don't know where I fail but i doesn't succeeded with google assistant. Please please upload apk and give us link.
[Android Software Development] ANIKETultimate:
Are you sure you edited bothe the pa() and oZ() methods?
[Android Software Development] ANIKETultimate:
Link updated
[Android Software Development] prachetas13:
Error

Hi I am getting app not installed error.What to do?
[Android Software Development] nom.xpert:
This is not arm64 apk.

Thanks for updating link to download.

We are using arm64 version and given apk is just arm.

This apk won't work with 64 bit devices.

Anyone if possible please upload arm64 version apk.

Thanks ANIKETultimate.
[Android Software Development] Black_Eyes:
It's working for me, Htc 10 arm64.

Placed in system though.
[Android Software Development] devilman30:
Aloha,

Can you share your apk and give instructions on how to install?

Mahalo
[Android Software Development] MisiekDP:
Hi [MENTION=6994462]ANIKETultimate[/MENTION],

I get an error in Termianl and Package Installer apps. This is apk file from your link ;) I will be very grateful for your help!

Have a good day!
[Android Software Development] Dhananjay Kumar:
Any fix for the hotword detection menu crash? It's a bit annoying to retrain my voice

Any fix for the hotword detection menu crash? It's a bit annoying
[Android Software Development] whistler-nl:
Your Phone is rooted so you can install apk's in your system folder.

This method was supposed to work on non-rooted devices running marshmallow.

For all of you getting a lot of errors when re-building the apk. You are using the wrong framework-res. When you use the framework-res.apk from the pixel the errors are gone.

I have been trying to get this thing running on my HTC 10 but no luck.

I also decompiled the Velvet apk and see if i could modify that one but the e.smali file is very different from the other apk's i have found. The whole apk is different anyway.
[Android Software Development] MXPJamee:
I got it working via Android N-ify on Xposed Framework, however similar issue with "OK Google" hotword. Any timeline for a fix? I really like being hands free!
[Android Software Development] f.khatri:
Your shown method pa() and oZ() is not found in ARM64 Google app.
[Android Software Development] drew_t:
Apps not installing on my nexus 6p non rooted.

;(

Is it because this is not arm64?
[Android Software Development] whistler-nl:
There are 2 apk's mentioned in this thread. The allready modified apk and the other is a un-modified ARM64 version. I think both have those methods in the e.smali file.

There is another apk that comes from the Google Pixel apps. It's called Velvet.apk and has different files and coding.

What is bothering me is that the google app came from the Pixel phones and they both have ARM64 cpu's ? So how exactly did we get ARM32 apk's?
[Android Software Development] ANIKETultimate:
Why have you typed "Google.apl"? It's apk, not apl :)
[Android Software Development] ANIKETultimate:
I don't think it's possible. Google app calls "android.os.LocaleList" to use in hotword. But that API is available in Nougat. That explains why build.prop edit only works on Nougat.
[Android Software Development] MisiekDP:
Heh, my bad :D

But I tried again and the same :/
[Android Software Development] drew_t:
Think someone can upload the ARM64 version for noobs?
[Android Software Development] LightningBuster:
Thanks ... everything is working fine except the 'Ok Google' detection and settings.

I think those two aren't working because they need access to some other google apps that currently only googlepixel provides.

:rolleyes::rolleyes::rolleyes:
[Android Software Development] ketan.xda:
Google Assistant, Moto G3

hi [MENTION=6994462]ANIKETultimate[/MENTION], on my moto G3 xt1550 (non root) i am trying to install your modified apk but getting App Not Installed error, what to do?

i cleared all Google App data, and the stock google app version is showing 5.4.28.19.arm.

how do i replace and install your modified apk over this stock version? can u plz help, thanks.. :)
[Android Software Development] whistler-nl:
Just get it from here. This is the link posted on page #2

http://rgho.st/6THMPzFVV
[Android Software Development] espritsol:
Excellent tips for Android Nougat 7.0
[Android Software Development] whistler-nl:
Have tried everything by now so i think it's safe to say this is not working on a untouched HTC 10.

I cant even decompile and rebuilt the ARM64 apk without giving me the install error [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION].

The funny part is that the original ARM64 apk does install but does'nt work because of the "ro.opa.eligible_device" checks.

Maybe it works on a rooted device but i can only guess.
[Android Software Development] ANIKETultimate:
I think your best bet is to build it yourself.
[Android Software Development] ANIKETultimate:
Yes, they call a class "android.os.LocaleList" which is available on API 24 (Nougat).
[Android Software Development] drew_t:
Thanks

It installed but it's still not working it now says I'm running 6.6.14 arm64 but just goes back to google now.

Maybe it's different for the 6p?
[Android Software Development] f.khatri:
Right but fortunately its working on my s4 mini... :p:confused:
[Android Software Development] whistler-nl:
Remember that this file is NOT modified so it wont work without decompiling, bypassing the checks and re-building it like the first post says.

The untouched file install's without a problem (not working ofcourse) on my htc 10 until i decompile and rebuild it (even without any modification), then it's not installing anymore so something is going wrong during decompiling or rebuilding here.

My setup is:

Apktool 2.2.0

Java 1.7.0_51

Framework file from pixel device

Windows 10 X64
[Android Software Development] drew_t:
Can't someone post the bypassed recompiled arm64 apk then?
[Android Software Development] ketan.xda:
hi, apktool 2.2.0 is giving me error while compiling. which version did u use to build ur apk?
[Android Software Development] ANIKETultimate:
2.2.0
[Android Software Development] whistler-nl:
What version of resources-res.apk did you use?

The Phone you installed it on, is it running the official rom or a custom one?

Sorry for the questions but this thread seems to get into a guessing game by now :)
[Android Software Development] ANIKETultimate:
I used the framework-res found from my phone. And it's running Resurrection Remix.
[Android Software Development] drew_t:
Decided to try it myself too on my mac and get the error using 2.2.

I'm using the unmodified ARM64 apk mentioned on page 2.
[Android Software Development] Kolda_CZ:
Hello everyone,

I'm sorry to disappoint you, but this solution will break the APK signature and phone will not allow you to install it.

Here is more detailed explanation (I tried it to make it work on unrooted S6).

Signature verification is the main pillar of android security and can't be compromised. I strongly believe that everyone who managed to install it has rooted or somehow modified phone (maybe compromised - be careful!).
[Android Software Development] Sergykm:
Can anybody patch x64 version? Please!
[Android Software Development] TheHeroOfDevs:
I got this in the terminal on my Lg g3 d855 android 6 : u0_a105@g3:/ $ pm install -r Google.apk

pkg: Google.apk

Error: java.lang.SecurityException: Neither user 10105 nor current process has android.permission.INSTALL_PACKAGES.

1|u0_a105@g3:/ $
[Android Software Development] drew_t:
Just to confirm everyone here who got it working is rooted ?

Op should change the thread name then.
[Android Software Development] Anurag1705:
I tried it with Google App 6.7.15 beta but cant find any method called pa() also when I try to install apk it says "App not Installed" and with ADB "INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION" . Please help. I'm using Samsung Galaxy On5 running Android 6.0.1 .
[Android Software Development] whistler-nl:
On my HTC 10 it's not possible to get this running as it is un-modified so not root or SU.

I did manage to get it running on my old HTC One M7 running CM13 with root and SU.

This is what is installed on my M7:

CM 13

Modified build.prop (changed the device to Pixel)

Got the apk files from the leaked pixel image

Using the google.apk from the OP as it's still not possible to run the Original velvet.apk
[Android Software Development] stavroschios:
that's nice but how can I remove it now ?
[Android Software Development] Shaneee:
Anyone got an updated version that works?
[Android Software Development] ThisIsAGoodUsername:
I tried to install your app and I got this:

u0_a168@griffin:/ $ pm install -r Google.apk
pkg: Google.apk
Error: java.lang.SecurityException: Neither user 10168 nor current process has android.permission.INSTALL_PACKAGES.

Can you make it arm64?
[Android Software Development] Mr.Ju:
I'm failed, the log like below:

So ,what should I do
[Android Software Development] derYASIN:
Mates, with xposed you easy activate the assistant, look in the xposed installer there is a module for the assistant!
[Android Software Development] kikan:
hi,

on SGS7E like reported in OP ( o.k. google detection) Not working..

Please fix it.

By

kikan

---------- Post added at 12:50 PM ---------- Previous post was at 12:48 PM ----------

same here on SGS7E, o.k. google detection not working ( asking me all the time to set recognize voice) it is a bug..

The good point of this app is to use it with your voice..

by

kikan
[Android Software Development] uplink120686@gmail.com:
Can you share the apk for GS7 Edge for UNROOT 6.0.1 (arm64)
[Android Software Development] QuinnE34:
Works!

I got this working on my T-mobile Note 3 running Darklord's Note 7 rom. I know this was intended for non-root, but I wanted to see if it would work. I believe that everything works! Thanks!
[Android Software Development] kikan:
https://docs.google.com/uc?id=0B_AW7HEQJAhxSXVrUldsT002azQ&export=download
[Android Software Development] :
"application is not installed"

Odesláno z mého VFD 700