[solved] Action: "Keyboard Set Default" -HowTo switch Virtual Keyboard

HCC

Member
MacroDroid 5.35.12 (August 2023)

Hello,
in android there are 2 keyboard types.
Virtual keyboard and physical keyboard (see image 2)

I want to switch the Virtual Keyboard from
"Samsung Keyboard" to "Key Mapper Basic Input Method"
using "Macrodroid Action" Device Settings (blue color) / Keyboard - Set Default (see image 4)
-But this action seems to be only for 'physical keyboards'.

Does MacroDroid have an "Action" to switch Virtual Keyboards?

PS: I would like to fix the "Key Mapper Keyboard Error" (see image 1) programmatically
(with MacroDroid) instead of manually eliminating the error
by pressing a button .

PS 2: I already performed the adb hack :
adb shell pm grant com.arlosoft.macrodroid android.permission.WRITE_SECURE_SETTINGS
 

Attachments

  • 702_Key Mapper.jpg
    702_Key Mapper.jpg
    36.4 KB · Views: 5
  • Settings-Virtual-Keyboard855.jpg
    Settings-Virtual-Keyboard855.jpg
    24.9 KB · Views: 5
  • Key-Mapper-Basic-Input-Method457.jpg
    Key-Mapper-Basic-Input-Method457.jpg
    15.6 KB · Views: 4
  • Add-Action-(blue)528.jpg
    Add-Action-(blue)528.jpg
    58.2 KB · Views: 6
Last edited:

HCC

Member
You're right.
I had to enable the "Key Mapper Keyboard" first
(under Android/Settings/General Management/Language And Input/Virtual Keyboard/Manage keyboards/Key Mapper Keyboard: enabled)
-It is now clear : The "Keyboard - Set default" action is also for "virtual keyboards".

Annotation: To switch the "Virtual Keyboard" with MacroDroid it is necessary to perform adb hack :

adb shell pm grant com.arlosoft.macrodroid android.permission.WRITE_SECURE_SETTINGS
 
Top