I have an apk file which is simply a keyboard. I want to run this keyboard on Amazon firestick. The only way it works by sending shell commands to the amazon firestick. I want to wrap these shell commands to the apk file, so once I install the apk, the shell commands run automatically as soon as the apk file gets installed.
First command : adb shell ime enable [login to view URL]
Second command: adb shell ime set [login to view URL]
And if I want to activate by phone, I use adb shell application and I just run the commands without the (adb shell) word at the beginning
But I want to insert them into the apk so they run automatically after tha apk get installed
Boot these commands at the start of any android device.