Enable a keyboard other than Google Keyboard via ADB


I have got 2 keyboards on my phone: Google Keyboard and AnySoftKeyboard. Google Keyboard is my primary keyboard. I want to enable AnySoftKeyboard as my primary keyboard via ADB (I use ADB because the 'Language and Input' subsetting crashes my Settings app for some reason). But the problem is that, although I enable it and it works while my phone is on, after a reboot it doesn't work and my primary keyboard becomes Google Keyboard again.

If I try to disable Google Keyboard so that AnySoftKeyboard has a hope of working, my System UI and Launcher crash at startup, making my phone go nuts (I can only unlock my phone and reboot it or shut it down).

However, because of past experience with this, even if Google Keyboard were uninstalled, a user keyboard app (unlike a system keyboard app) does not launch at startup (even when enabled via ADB), even if I go to an app like Messenger and try to type something (note: my system doesn't behave weirdly if I uninstall Google Keyboard).

So far I have used:

adb shell settings put secure default_input_method "mID of AnySoftKeyboard" 
adb shell ime enable "mID of AnySoftKeyboard"

(just in case the first one doesn't work for some reason), then:

adb shell ime disable "mID of Google Keyboard"

This is when my phone had the problem with System UI and Launcher, in which case I re-enabled Google Keyboard (because it was a system app) with commands shown on this answer. Also, used

adb uninstall "AnySoftKeyboardPackageName"

to uninstall AnySoftKeyboard in case it was creating a problem.

I've also tried 'Languages and Input' sub-setting crashes Settings, need to enable it to install keyboard and it doesn't work. It executes the commands perfectly, the keyboard I want to enable works, but after a reboot, everything goes back to what was before I did any of this.

So, my question is, how do I make sure that, after a reboot, AnySoftKeyboard will both be a functioning and primary keyboard app? And why do my system UI and Launcher crash when I try to do a modification to Google Keyboard other than uninstalling it?

Phone: Acer V370
Android version: 4.2.2


To make AnySoftKeyboard my main keyboard, I had to:

  1. Turn it into a system app (with Link2SD)

  2. Reboot as instructed

  3. Put the following commands via ADB:

    adb shell settings put secure default_input_method com.menny.android.anysoftkeyboard/.SoftKeyboard
    adb shell ime enable com.menny.android.anysoftkeyboard/.SoftKeyboard

    (I put both just to be sure, but I think putting only the first command will work fine)

  4. Uninstall Google Keyboard (with Titanium Backup)

  5. Reboot just in case anything had yet to be sorted out

And done.

The most important part was making it a system app because as a user app, it would either:

  1. not be the primary keyboard after a reboot

  2. flat-out refuse to function (even if it was the only keyboard on the device).


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes