yashsingh1/xdaforums huggingface dataset:
[Android Software Development] QuinnE34:
No longer works.
[Android Software Development] drakeNas:
Can anyone please upload a modified arm64 version please?
[Android Software Development] FizziSoda:
Can't install at all.

(I'm using a OnePlus 3 and Windows 10)

Whenever I try to install via my phone, I get "App not installed" and it doesn't install.

But whenever I try to do it via ADB, I get "Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]"

HELP! I cannot figure out how to fix this! :confused:
[Android Software Development] netraraj:
The app from op works on OnePlus 2. Can we get the latest updated google app?
[Android Software Development] Lazexx:
Hey i have a s5 and it isnt working need help

Can someone give me an apk that works for the s5?

An give me the full Instruktion for it?
[Android Software Development] BaTarrY:
OK Google doesn't work
[Android Software Development] LeonelRdz09:
I did all the steps, but did not work on Moto Z Play :( and the apk's shareds they give,.el error [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
[Android Software Development] mltan_bdo:
How it works for non-root but most of the firmware cited herein were custom rom?
[Android Software Development] shahid221:
Simply follow this 1 minute video

[YOUTUBE]sr4DDFu2BKw[/YOUTUBE]
[Android Software Development] nicorvienne:
Hi, Do you want to f**k this community?

PS.: your comment: "this is custom rom 14.1, that means 7.1"
[Android Software Development] shahid221:
I apologize for that :P

Lol i just wanted to help people taste the new feature Google assistant.

Didn't noticed Marshmallow. :P :D
[Android Software Development] Fobos531:
Hello, this is my e.smali file: can you tell me what exactly do i need to modify?
[Android Software Development] matamn:
Doesn't work.

Can someone upload modified apk with arm64?
[Android Software Development] mltan_bdo:
Anybody already tried this for Note 5 with stock firmware?
[Android Software Development] Ariac Konrel:
Lit, I'm using this on a stock based ROM and it works well (HTC 10).

The Xposed modules for this stopped working for me, so this is amazing.
[Android Software Development] LeonelRdz09:
Did you install the shared apk here? Or you built?

I would like to try your apk, sorry por my bad English.
[Android Software Development] adithyadinesh96:
the official app is updated to newer version .either u add those missing methods as said by op to the newer version or u uninstall that apk and then install the google apk provided by op.ty
[Android Software Development] Ariac Konrel:
No actually, it was a problem with my ROM for some reason.

Just fully wiped and clean flashed and it works now.

Not even gonna begin to fathom it, thanks though.
[Android Software Development] wl03355609:
Failed trying to create arm64

C:\Program Files (x86)\Shuame\3.6.0.195>adb install -r Google.apk

1394 KB/s (49710318 bytes in 34.821s)

pkg: /data/local/tmp/Google.apk

Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

already replaced the meta-INF and i tried HACKED-META-INF also(BTW i've never seem a folder like this...)

and i think that 64 is not editable due to lack of the things like .method public static pa()Z (But we have .method public static pU()Z instead)

and i can't find the strings

{Repeat the same process with another method called oZ()

If you can't find them in the path I provided, then look for something like this "ro.opa.eligible_device" inside an "if-neq" or "if-eqz". If you find this, then that is probably the required method.}

instead we have

const-string v2, "ro.opa.eligible_device"

invoke-static {v2, v0}, Lcom/google/android/apps/gsa/shared/util/common/a;->y(Ljava/lang/String;Z)Z

move-result v2

.line 110

if-nez v2, :cond_0

sget-boolean v2, Lcom/google/android/apps/gsa/assistant/a/e;->bzh:Z

if-eqz v2, :cond_2

:cond_0

if-nez v1, :cond_1

sget-boolean v1, Lcom/google/android/apps/gsa/assistant/a/e;->bzh:Z

if-eqz v1, :cond_2

:cond_1

const/4 v0, 0x1

:cond_2

return v0

.end method

.method public static pX()Ljava/lang/String;

.locals 3

any idea?( sorry for bad english:( )
[Android Software Development] mltan_bdo:
Sorry mate but still does'nt work. As op said, he tried it on his RR w/c a custom rom. Also, he does'nt install it thru apk only by adb.
[Android Software Development] wl03355609:
so that's the reason he could install via terminal…
[Android Software Development] Mrphtn:
"app not installed"

on my galaxy S5 no root. official rom
[Android Software Development] ianhouser:
FYI, the Xposed module was updated yesterday (11/14) and it works on the most updated version of the Google app. Very simple!
[Android Software Development] BaTarrY:
Latest update works great on the latest Google app , and OK Google works too (tnx to the guide).
[Android Software Development] kalinskym:
could you please share your apk?
[Android Software Development] rajrocksdeworld:
will this work for nougat rom??
[Android Software Development] JavierG123:
Can't find that ".method public static pa()Z" on "Google App 6.8.21.21.arm64 (nodpi) (Android 5.0+)" help me pls
[Android Software Development] ketan.xda:
Root required, Android 6 and above..

1. Delete the pre-installed Velvet apk from system/priv-app.

2. Place the modded apk in system/priv-app.

3. Reboot

modded apk link mentioned in OP

no further build.prop edit required.
[Android Software Development] Exodusche:
I can confirm this works tried on my Oneplus X running CM 14.1. Make sure to give Google app proper permissions after moving to privapp. Also might help just to uninstall or remove the original Google app first.
[Android Software Development] niraj_venom:
It shows *App not installed*
[Android Software Development] Raghav998:
Not Working

I have followed your process

I have used newer google app(6.8.21.21) and apktool(2.2.1)

But ,

I can't find find both methonds in the file

and there is two methods with "ro.opa.eligible_device" but there is no "if"

I received error after compress files to apk using apktool

i have tried google app(6.7.21) also

But , Same exception while using apktool after changing values of methods

Any help please
[Android Software Development] Sun90:
If your phone is rooted then u can try the 'xposed' module for the same.
[Android Software Development] Raghav998:
But my mobile is not rooted

That's why I spend this much of time in this process

Help plz:)
[Android Software Development] Sun90:
Then do try with the apk linked in the op and see.

As Google might have changed the code in the latest build to stop people fiddling around
[Android Software Development] ANIKETultimate:
Updated the method for 6.8.21.21

Only the method names have been changed to pU() and pT()
[Android Software Development] Raghav998:
Finally I rooted my Moto G 2015

And i got google assistant

Just install Assistant enabler in xposed

It works for me

And Ok google hot word works well

I can able to use google assistant after unrooted also

Because apk signature verification is the problem for non rooted unmodified mobiles

So I rooted

Try this frnds

And i can able to switch to google now and google assistant instantly without rebooting phone

Assistant has disadvantages that is selecting a particular text from screen option is not available on assistant
[Android Software Development] LThMT:
Thanks, but I can't seem to get this working. I have found ro.opa.eligible_device two times and changed the values according to your guide, but as soon as I use the apktool command on the folder I get some error messages and no new app is created. Any ideas?
[Android Software Development] AmirRezaaa:
thanks man, could you pls upload your google 6.8 moded? :D :good:
[Android Software Development] Zacharee1:
What is your platform for building the APK? I'm on Ubuntu 16.10 and i keep getting build errors with aapt, even when manually specifying the path.

---------- Post added at 06:57 AM ---------- Previous post was at 06:32 AM ----------

So I've figured out a way around the error I have. Since I'm not editing resources, those don't need to be decompiled. Since recompiling resources is where the error occurs, decompiling is a good thing to avoid. Using `apktool d -r Google.apk` and then `apktool b Google` when I'm done editing works.

---------- Post added at 07:14 AM ---------- Previous post was at 06:57 AM ----------

Unfortunately, now I'm getting the following error:

adb install -r Google/dist/Google.apk
3531 KB/s (48690418 bytes in 13.462s)
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl1063868361.tmp/base.apk: META-INF/CERT.SF indicates /data/app/vmdl1063868361.tmp/base.apk is signed using APK Signature Scheme v2, but no such signature was found. Signature stripped?]
[Android Software Development] ANIKETultimate:
Did you add the META-INF, and used zipalign?
[Android Software Development] Zacharee1:
The META-INF is causing that issue. WIthout it, I just get a NOSIG error. I haven't zip-aligned; just dragged the folder into the Ubuntu ZIP viewer.

---------- Post added at 11:04 AM ---------- Previous post was at 10:36 AM ----------

zipalign makes no difference.
[Android Software Development] ANIKETultimate:
I think Ubuntu zip viwer is changing the compression method behind your back. try ark.
[Android Software Development] Zacharee1:
Alright. I've never had problems before (with ROMs and such), but I might as well try it.

---------- Post added at 11:13 AM ---------- Previous post was at 11:05 AM ----------

No difference.
[Android Software Development] Raghav998:
While compress with META-INF use store instead of compress

After compression rename it as apk

Then use zipsigner(available on play store)

Select mode as platform

Then install it with adb or terminal emulator

If you are non rooted this may not work

Before of apk signature difference of original google app with mod google app
[Android Software Development] Zacharee1:
Won't signing it myself change the signature and disallow the upgrade?

---------- Post added at 01:36 PM ---------- Previous post was at 01:35 PM ----------

The title of this thread:
[Android Software Development] Raghav998:
It may work

Not guaranteed

I have tried

It only worked after rooted my Moto G 2015

After I rooted

I installed same google app

But That was installed

And assistant worked

And one more

Use pixel framework

If not worked then use your mobile framework
[Android Software Development] Zacharee1:
What frameworks?
[Android Software Development] Raghav998:
Framework res apk while using apktool
[Android Software Development] Zacharee1:
Where might I find one for the Pixel?
[Android Software Development] Raghav998:
Just search on google bro

Or just simply use your one

I have used my one
[Android Software Development] Zacharee1:
I did, for a while. The only thing I can find is the entire system dump.
[Android Software Development] Raghav998:
Just use your own framework apk
[Android Software Development] Zacharee1:
I'm trying, but unless I don't specify the -r flag, it won't use it, and I won't be able to recompile.
[Android Software Development] Raghav998:
It can be recompiled well

I have tried
[Android Software Development] Zacharee1:
What platform?
[Android Software Development] Raghav998:
Stock marshmallow 6.0.1 on my Moto G 2015 rooted

---------- Post added at 08:27 PM ---------- Previous post was at 08:26 PM ----------

If you are rooted then better to try assistant enabler xposed module
[Android Software Development] Zacharee1:
I am not rooted; that is why I am following the NO-ROOT guide.

By platform, I meant computer OS, etc.
[Android Software Development] har88:
Works on zenfone max
[Android Software Development] Raghav998:
I'm using Windows 10

apktool v 2.2.1
[Android Software Development] Fobos531:
Have you ever gotthen the parse_failed_unexpected_exception error when installing the apk? I'm getting that error all the time.
[Android Software Development] Zacharee1:
I'm getting INSTALL_PARSE_FAILED_NO_CERTIFICATES.
[Android Software Development] Fobos531:
[MENTION=7055541]Zacharee1[/MENTION]

Can you send me your apk?
[Android Software Development] Zacharee1:
Not at the moment, no. I'm not near my computer. Go back a few pages though. I described my steps.
[Android Software Development] Leftwitch2:
Getting this error:

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl1861174605.tmp/base.apk: META-INF/CERT.SF indicates /data/app/vmdl1861174605.tmp/base.apk is signed using APK Signature Scheme v2, but no such signature was found. Signature stripped?

Idk its because i'm using android 7 on my LG G5
[Android Software Development] Zacharee1:
I have a V20 (which comes with Nougat) and I have the same issue. It's starting to seem like it's either LG or 7.0.
[Android Software Development] McFy:
helllo, it doesn't work in my samsung arm marshmallow no root phone. Can you upload the apk to that i try again ... I think that it doesn't worck because it's not the same pacage editor $: but to instal the app the root will be requiered because should erase the google apk in the root file. Ty to the metod and your future answers and maybe a future solution
[Android Software Development] dhsr:
Can someone please upload a arm64 version of this apk. I can't build my own due to my computer has shut down and needs repair. If anyone is able to THANK YOU in advance.
[Android Software Development] mweinbach:
I think it is because of android 7.0 I have the same problem on my S7 Edge on 7.0
[Android Software Development] GemiosXD:
Can someone help me with "error: No resource identifier found for attribute 'shortcutId' in package 'android'" when doing apktool b Google
[Android Software Development] Sensible_Smarty:
after I moded the google apk , it isnt installing at all
[Android Software Development] McFy:
Hello, can you share your apk please, thank you ?
[Android Software Development] Danin360:
Can you please give me link for apktool.. Plzzz
[Android Software Development] Zacharee1:
Do you know what Google is?
[Android Software Development] Sensible_Smarty:
decompile the file only after u install the framework.apk u extracted from ur rom
[Android Software Development] Sergykm:
Can anybody upload 64 bit version? Many people ask for this and nobody can't? Why? Are you rednecks? :(
[Android Software Development] Zacharee1:
Wtf?
[Android Software Development] Sergykm:
nobody can't upload arm64 version. I asked it few weeks ago, and other people also asked.
[Android Software Development] KP@2016:
Can u plzz provide the link for your modded google.apk that you just made now. Because i getting compiling error
[Android Software Development] kopitalk:
So did you manage to get past this error?
[Android Software Development] Prince_Hakoda:
Need help

Idk if this is how you reply to a post bc im new, but it couldn't locate the google app apk. I downloaded the google app apk, then renamed it to google.apk and cmd couldnt locate or read it when I entered the command that was in the guide. If anyone wants to post the finished product for this guide or help me, that would be great. Thanks
[Android Software Development] kopitalk:
So finally I got this right, or so I think. I'm using apktool v2.2.1 (Google it, you shall find).

Here we go,

1. Decompile the apk, e.g. Google.apk or Velvet.apk, you name it.

>apktool d -r Google.apk

2. Do your stuff editing the smali file.

3. Recompile the folder.

>apktool b -c Google

4. Use 7zip to open both original apk and the edited output apk in /Google/dist.

5. Copy (drag and drop) both META-INF folder and AndroidManifest.xml file from the original apk to the edited output apk.

6. Close both files (duh!).

7. Transfer the final edited output apk to your phone /system/priv-app/ and give correct permission (-rw-r--r--). Make sure you get rid of the old Google app from your phone before doing this.

8. Reboot and profit!

9. Press the thanks button whether it works or doesn't work for you.

Edit: Step 4 to 8 is not needed. Just use the apk file in /Google/dist folder, transfer it to your phone sdcard and tap it to install as user app. Clear app data if needed. Done.
[Android Software Development] lucasmota:
So Step 7 Doesn't need root? If no, how can I do this?
[Android Software Development] kopitalk:
Of course you need root access, otherwise how can you write into the phone system partition?

Edit: Just tap the apk to install as user app. No root needed.
[Android Software Development] Zacharee1:
So why is this guide [NON-ROOT]?
[Android Software Development] kopitalk:
Seriously, I don't know. You can ask the thread OP.

Edit: Have you tried the installation method mentioned in the OP? MAYBE it will work without root. I have root so I didn't bother to try.
[Android Software Development] Fobos531:
I'll try your method out. I'm on non-rooted stock LG 6.0

EDIT: Tried it out, still getting the parse error. I think the only option would be to mod my system.img to include the modded apk and then flash that using LGUP.
[Android Software Development] kopitalk:
I just tried installing it as a normal apk on Samsung TW running MM and it's installed and functions well as a user app.

Edit: ... which means, [NON-ROOT] tag is valid.
[Android Software Development] Fobos531:
Can you please precisely describe your steps? What is your device?
[Android Software Development] kopitalk:
I've already done so in my previous post. Galaxy Note 3 SM-N9005 hlte (arm) here.
[Android Software Development] Fobos531:
Here's how it looks for me:

Is the problem in the fact that my firmware comes with Google's app preinstalled? When I try to install it, it fails with "App not installed."
[Android Software Development] kopitalk:
Sorry, I can't help you with that.
[Android Software Development] goldenevil47:
I don't have android sdk installed... Downloaded and setup apktool and decompiled apk successfully..

But the problem arises when I run apktool b Google.apk command... It runs, does some operations successfully but eventually ends up in errors with no dist folder/apk created...plz help
[Android Software Development] kopitalk:
I've detailed out the commands that I used in my previous post. Do check it out.
[Android Software Development] Sabissimo:
I'd like to provide some update for this method for Google 6.9.36

Instead of Google/smali/com/google/android/apps/gsa/assistant/a/e.smali use Google/smali/com/google/android/apps/gsa/assistant/shared/f.smali

Instead of pU() look for rp()

Instead of pT() look for ro()

Also, if you want to disable annoying voice training screen (why wouldn't you :) ), do this:

Open Google/smali/com/google/android/apps/gsa/opa/ae.smali

Look for method containing from_hotword , currently it's y(Landroid/os/Bundle;)

Replace const/4 v0, 0x1 with const/4 v0, 0x0 in this method

Do other steps mentioned in OP and enjoy your Google Assistant with OK Google without any annoying extra screens ;)

P.S.

You should train "OK Google" voice model with regular Google App installed first, and only then install modified apk, if you want voice recognition to work
[Android Software Development] Fobos531:
Do you have any clue on how I might be able to get it working on LG stock ROM (scroll up a bit)? I always get the parse exception error.
[Android Software Development] zys52712:
Can you please upload a compiled apk?
[Android Software Development] FaserF:
I am having the exactly same issue as Fobos. Google app is preinstalled on my OnePlus 3T and with my tries to install my modded apk i am also getting app not installed.

I have uploaded my trys here: https://drive.google.com/open?id=0B__acirL8woHbU5UY3dEejNHVlU

Google.apk = 64bit newest beta

Google2.apk = 64bit newest beta with copying the META-INF folder from original apk

Google3.apk = 64bit Version 21 (like OP), but after trying the apk I found out the OP3T comes preinstalled with V23 of Google App

Google3.apk = 64bit Version 21 with copying the META-INF folder from original apk

I have used the following posts by [MENTION=5860549]Sabissimo[/MENTION] & [MENTION=4476875]kopitalk[/MENTION] to optain an modded apk. Building it was fine.
[MTCB Android Head Units Q&A] xWarrock:
Hi

I have an Erisin 2046 (MTCB) with Malaysk 4.4 Rom.

I am only using  Music.

When i press "next" song on steering wheel button it doenst play next song!

When i play music on Music App it works..

How to solve?

Gesendet von iPhone mit Tapatalk
[MTCB Android Head Units Q&A] CadillacMike:
you probably need MTCDtools which is created by a guy here on XDA

http://xdaforums.com/android-auto/m...ease-mtcdtools-control-music-players-t3436789
[Nexus 6 Q&A, Help & Troubleshooting] trojan horse:
I needed to switch on adb over wifi. This way i can cast my screen on my laptop using vysor and put my phone away for better network. I am pretty sure that the option to switch on adb over wifi was there in previous version. I have gone through some threads concerning activating adb over network, haven't tried them yet. Please confirm about the option in dev options and any app that can help in casting screen. Thanks :) :)

Edit: currently on rooted Stock Nougat
[Nexus 6 Q&A, Help & Troubleshooting] GalaxyA325G:
I'm very late to this thread, but luckily, as of Android 11 and up, adb works over wi-fi (without USB) on non-rooted Android phones via Developer options Wireless debugging switches.
[Lenovo Vibe X3 Questions & Answers] noskojv:
Full system replacement Dolby Atmos for ViperFX.

Requirements - root and TWRP.

Make backup of the system before installation.
[Lenovo Vibe X3 Questions & Answers] thesandyrock:
working good, nice and clean..expecting some more options...but still good...thanx for your work....
[Nexus 5 General] Rezei:
So, i found a method to turn our Nexus 5 into a Pixel phone and enable the Google Assistant. Read everything before doing anything!

The link to the post is here: http://xdaforums.com/android/softwa...-assistant-t3477879/post69074667#post69074667

Instructions:

Download 3 zip files linked in the post. Flash the Velvet zip through TWRP first. Next one is the edited build.prop zip. Make sure the tweak.prop is in the same folder/directory as the other 2 files!!!

The tweak.prop is not for flashing. Just keep it in the same folder. After you flashed the other two, simply reboot and go to Settings>Apps>Google App>Storage>Clear all Data. Go back to your homescreen and make sure you had now on tap activated. Press the home button longer so Now-on-Tap plays its animation and what you should get instead of Google Now is the Assistant saying Hello to you!

Known Issues:

Ok, Google recognition.

Thats it. My first thread so im open for questions.

This Method is not by me!!! Im just sharing it .All credits go to FaserF.
[Nexus 5 General] ourangashane:
I'm running it on pure nexus 7.0.. Its pretty sweet. Its like the siri we never had lol. Not as wide of conversation range as siri, but I'm sure that gets updated with time.
[Nexus 5 General] Vanilla Pudding:
How are you running pure nexus 7 on the nexus 5 ? I thought purenexus was discontinued for our device.
[Nexus 5 General] ourangashane:
Its an unofficial build, its in the android dev section
[Nexus 5 General] !n0x:
Can confirm working on CleanAOSP

Ok Google detection setting FCs, as said in the OP
[Nexus 5 General] Rezei:
Which Android Version? Marshmallow?
[Nexus 5 General] aslam_:
N-ify my Nexus 5 running 6.0.1 with Nova Launcher, Xposed N-ify + Google Assistant and Softkeyz app for Pixel nav bar :D
[Nexus 5 General] !n0x:
Nougat
[Nexus 5 General] meatwad0222:
Weird bug: Every time i say "OK Google" it wants to relearn my voice. Is anyone else experiencing this issue?
[Nexus 5 General] Rezei:
Its a known bug and no way to fix it yet.
[Nexus 5 General] meatwad0222:
thank you
[Nexus 5 General] PhilD41:
There is no fix for it, but you can automate the "skip" process with tasker. There is a post with images and another one with a text description on [this thread page](http://xdaforums.com/android/software/guide-how-to-enable-google-assistant-t3477879/page40)

It works pretty well though saying "ok google" for a followup question starts the assistant over and loses it's context. Hopefully someone will get this fixed soon.
[Nexus 5 General] thepurepunjabi:
not able to flash second file