chsbuffer / MIUIQOL

make me happy
https://modules.lsposed.org/module/io.github.chsbuffer.miuihelper
33 stars 1 forks source link

Google search can not get local result #1

Open kxzxxx opened 5 months ago

kxzxxx commented 5 months ago

https://github.com/chsbuffer/MIUIQOL/blob/e4b5ed4a2162a5b41ede3973dcd03aede16b81d5/app/src/main/java/io/github/chsbuffer/miuihelper/hooks/home/RestoreGoogleSearch.kt#L27 If launch this activity, Google will not display content from this device. It should launch com.google.android.googlequicksearchbox.SearchActivity instead.

https://imgur.com/a/iXI9xM5

chsbuffer commented 3 months ago

Starting the /.SearchActivity won't be enough to get on-device results. Based on your screen recording, I've briefly reviewed the decompiled code for the widget, but I am still unsure how to get the on-device results in Google Search.

kxzxxx commented 3 months ago

I try to decompile then look into google widget, widget call "InternalGoogleAppActivityEntrypoint" with extra Intend can get local result, but I can not send the Intent without root, then I stop here.