Hi all, I have /e/OS on my Motorola Moto G9 Power. I would like to remap the left hardware button, which is originally used to open Google Assistant. I found this post with instructions how to do it on a Xiaomi model. I was wondering whether it would be useful, and also safe, to try these instructions on my own phone? I haven’t installed or used TWRP before, but I am comfortable with CLI.
But with modern Android (I tested on A15), you can’t write files to system partition anymore trying to re-write (as in “modify”) files to system partition, in recovery, will delete them!
Best bet would be to compile the ROM on your own, with a modified source file for keymaps.
Thanks! Good to know this before trying something myself, hehe. I won’t be taking the custom ROM route for now so I’m stuck with a useless button. Oh well, it’s not the worst. But it would be a great feature for standard /e/OS to have a feature to remap any extra physical keys, at some point in the future.
I’m hesitant to mark your reply as a solution because it (rightfully) doesn’t give a way to fix the problem and I wouldn’t want to confuse people into doing something potentially dangerous. I’m not sure what the etiquette is here, feel free to let me know.
TWRP is not usefull anymore to manipulate files in the “internal_storage” (/sdcard folder) because it is now encrypted,
but for files in /system partition it could still be usefull if you can copy them to /external-sd using the GUI, modify them, then replace them into /system partition.
it worth a try…
That seems to conflict with @smu44’s post, which seems to indicate that attempting to re-write (replace) a file on the system partition would delete the file. Or am I misunderstanding?
Do you mean that completely moving the file away and then returning it does not produce the deletion behaviour?
yes it seems conflict, @smu44 knows better than me.
i have corrected my post, i propose to use TWRP GUI to mount, and first copy your file from /system to /external_sd, then modify, and finally copy/move to /system (that is replacing).