SwitchAI icon indicating copy to clipboard operation
SwitchAI copied to clipboard

Unable to use ChatGPT "Application not installed"

Open ByXuXy88 opened this issue 2 months ago • 3 comments

Running on:

• Android 16 • Nothing OS / Stock ROM • Nothing Phone (3)

App details:

• SwitchAI 4.1.0 • ChatGPT (official app by OpenAI - com.openai.chatgpt)

Basically, I'm unable to use this app to launch ChatGPT because it somehow thinks the application is not installed. When trying to trigger it, the link redirects me to the actual ChatGPT app page on the Google Play Store, which is already installed and working.

ByXuXy88 avatar Sep 23 '26 17:09 ByXuXy88

in latest update ChatGPT app make assistant overlay activity non exportable, that's reason... i will fix it using root permission to launch it now.

WSTxda avatar Sep 26 '26 08:09 WSTxda

Hello wstxa, I've managed to fix the problem. It was basically the ChatGPT voice input issue. If you disable it in the Switch AI app, that error no longer occurs in ChatGPT.

Then what needs to be done is to change a code in This route:

SwitchAI_4.1.0_src/smali/com/wstxda/switchai/assistant/ChatGPTAssistant.smali

Then, once the app is decompiled, The code in that file needs to be fixed.

.method private final createChatGPTIntent()Landroid/content/Intent;

We need to locate that method and replace it until it's the end of method in the code.

.method private final createChatGPTIntent()Landroid/content/Intent; .locals 4

invoke-virtual {p0}, Lcom/wstxda/switchai/assistant/ChatGPTAssistant;->getApplicationContext()Landroid/content/Context;
move-result-object v0

new-instance v1, Lcom/wstxda/switchai/logic/PreferenceHelper;
invoke-direct {v1, v0}, Lcom/wstxda/switchai/logic/PreferenceHelper;-><init>(Landroid/content/Context;)V

const-string v2, "voice_input"
const/4 v3, 0x1
invoke-virtual {v1, v2, v3}, Lcom/wstxda/switchai/logic/PreferenceHelper;->getBoolean(Ljava/lang/String;Z)Z
move-result v1

if-eqz v1, :normal_mode

new-instance v0, Landroid/content/Intent;
const-string v1, "android.intent.action.VIEW"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

const-string v1, "https://chatgpt.com/voice"
invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v1

invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

const-string v1, "com.openai.chatgpt"
invoke-virtual {v0, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;

return-object v0

:normal_mode
sget-object v0, Lcom/wstxda/switchai/assistant/ChatGPTAssistant;->packageName:Ljava/lang/String;

const-string v1, "com.openai.chatgpt.MainActivity"

new-instance v2, Landroid/content/Intent;
invoke-direct {v2}, Landroid/content/Intent;-><init>()V

invoke-virtual {v2, v0, v1}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

return-object v2

.end method

Once that code has been replaced, save and compile the app.

And once it's done correctly, you uninstall the app and install the app with a different signature.

SwitchAI_4.1.0_src.zip

Now I'm dealing with another problem: Gemini runs correctly, but Gemini Live doesn't launch like it does with ChatGPT or Alexa, which are the ones I have installed.

I'll upload another post when I've fixed it.

ByXuXy88 avatar Sep 26 '26 08:09 ByXuXy88

@ByXuXy88 SwitchAI doesn't ask me to download the on device available chatGPT app anymore but opens the menu to pin it. Have I missed something or shouldn't be there a way to open chatGPT directly? I know that it doesn't work with a hotword.

sixstrings avatar Oct 16 '26 17:10 sixstrings