Question Moto Edge 20 - any rom options to fix the Google assistant button? (CS are unhelpful) - Motorola Edge 20

Hello.
I want to know if there's any rom I can try that fixes the problem of having the left side hardware button hardcoded to the useless Google assistant.
I'm apparently not alone with this issue but customer service has proven useless, only claiming "the button was not designed to be user configurable" and writing it of as "it a feature, not a bug"
Any pointers would be really helpful.

Hey. This can be done with root.
[Magisk] [Module] Remap Assistant Button
Hey everyone, this is just a super simple Magisk module, but could be useful to someone else if you don't want to make it yourself: it just replaces the GPIO key layout file in order to remap the assistant button to the Camera button. There's...
forum.xda-developers.com
You can edit this module, but make sure to do it while it's zipped (extract the file you want to edit onto the desktop, edit it and then replace the file inside the .zip folder, but DO NOT extract the zip folder itself). In system/usr/keylayout you can edit Key 217 to whatever you like from sites that list key names (such as https://archive.paragonwiki.com/wiki/List_of_Key_Names). Edit the customitze.sh device name from "nio" to "berlin". Then transfer the file to your device and flash in Magisk.
I personally changed the Key 217 to SYSRQ so that it become a screenshot key, however you can change it to whatever you like.

Thanks a lot, I will give it a shot

TheExileFox said:
Thanks a lot, I will give it a shot
Click to expand...
Click to collapse
Did it work for you?

Related

Help remapping keys?

I've got my nook 2e rooted and whatnot, but I can't figure out how to remap the hardware keys. There are a few threads on the forum suggesting various configs but search didn't turn up one on exactly how to do it...
For remapping the N button: http://forum.xda-developers.com/showthread.php?t=1139769
For remapping page buttons: http://forum.xda-developers.com/showthread.php?t=1126654
Good luck!
So I think between the two I understand which file I want to edit and what I want to edit it to, but how do I access the file /system/usr/keylayout/gpio-keys.kl?
Get Root Explorer and navigate from there. You'll want to change the permissions from R/W to R/O at the top of the screen. Then you'll want to do a long press on the file you want to edit, which will bring up a menu of choices. Scroll down to the one that lets you use a text editor, make the changes, then use back button to get out of there.
You can make a back up copy of the file by long pressing, copy/pasting before if you want. In my experience, a copy renamed filename.bak is automatically generated of any file you edit.

Accidentally deleted a system file?

Figured out you can d/l the bin file (7.2.3, etc) from Amazon, change .bin to .apk. Then find your launcher's "view apk" function. Open wide, then extract the system file you (ahem) mislaid, and breathe. It's how I found the tts file I've been pestering everybody for.
It can be done on a PC, as Amazón lets you download the update on to any device and it is basicaly a zip file....only change .bin to .zip and.... voila!
-
Could it be posible to modify the updates to not unroot the target kindles?
Look at the file atatched. Is a text extracted from inside the classes.dex archive inside IvonaTTS.apk file.
-
It contains two list in alphabetical order of what seems commands of a script language inside Ivona and names of files or variables.
-
All the vox files inside the list are terminated with an "i", not a "v" as the Ivona voices downloaded from Google play.
-
"com.android.settings
com.android.settings.TTS_SETTINGS
com.android.settings.TextToSpeechSettings
com.android.settings.VOICE_INPUT_OUTPUT_SETTINGS
com.android.vending.INSTALL_REFERRER
com.google.intent.action.START_TTS_SERVICE_BETA
com.google.intent.category.TTS_BETA
com.google.tts #com.google.tts.ConfigurationManager
com.google.tts.ITTS
com.google.tts.ITTSCallback
com.google.tts.ITtsBeta
com.google.tts.ITtsCallbackBeta
com.ivona.tts "
-
You see what I see?
I'll have to study it; I'm no programmer for sure. There's something there that would allow a skilled operator to substitute a "v" voice (like Gwyneth) for one of the "i"?
gflorezarroyo said:
It can be done on a PC, as Amazón lets you download the update on to any device and it is basicaly a zip file....only change .bin to .zip and.... voila!
-
Could it be posible to modify the updates to not unroot the target kindles?
Click to expand...
Click to collapse
I think I could do it pretty easily. But without a recovery I'm too chicken.
Sent from my KFOT using Tapatalk 2
BELASCO said:
I'll have to study it; I'm no programmer for sure. There's something there that would allow a skilled operator to substitute a "v" voice (like Gwyneth) for one of the "i"?
Click to expand...
Click to collapse
"i" is the number of beta version, I presume, as the downloaded versons have a "v". The secuence could be "i", now "v", the next "o", then "n" and "a"... And at last the final versión.
-
That does'nt mean they are not compatible, but the program has to know what is looking for, and then is necesary to change the versión in that list and in every place that appeared so it could use newest voices.
It would be easier to change the TTS engine and language on some hidden settings.....
-
I've been vivisecting the various settings menus looking for ideas. Makes me wish I'd studied programming in school instead of redheads & rum.
Anyone reading this who knows how to enable the blocked TTS SETTINGS menu on the KFHD, feel free to speak up. We'll only resent your genius briefly. I managed to recover the Ivona/Salli voice, but I'd rather be hearing Gwyneth.

[MODULE] Magisk Custom Keylayout

Magisk Custom Keylayout
Searches /sdcard and /external_sd for *.kl files and place them to /system/usr/keylayout, systemless-ly ;p
It doesnt do any checking of the keylayout, besides that it exists, so be careful of adding/replacing a broken keylayout.
Why?
Quickly add (a) keylayout file(s) without permanently modifying your /system .
XDA:DevDB Information
Custom Keylayout Systemless-ly, Tool/Utility for all devices (see above for details)
Version Information
Status: Stable
Created 2018-09-11
Last Updated 2018-09-11
Not sure if this is the correct place, or the Magisk forum would be more appropriate. Mods can ya confirm?
iddeen said:
Magisk Custom Keylayout
Click to expand...
Click to collapse
Hi, is this the right place to ask questions? I'm surprised there are no other posts here so far.
I have a Nvidia Shield Tv and there is a Logitech Harmony Smart Keyboard connected to it via bluetooth.
By default there is some QWERTY uk or us layout used but I'd need German QWERTZ layout.
So in system -> keyboard there is a setting called "physical keyboard", selecting it I can choose different layouts, also German.... which is great...but unfortunately the Shield somehow looses this setting upon reboot, sometimes also upon a ui crash and everything is reverted back to default QWERTY.
Now this obviously is an issue on Nvidia's side but I won't hold my breath until they fix it, so I looked into changing the default layout.
My knowledge here is very limited so maybe you can help:
I guess the default layout ist the Generic one. Could I also change the generic one with your module?
I found out that in /system/usr/keylayout there is the file Generic.kl.
However in /system/usr/keychars there are also files like Generic.kcm.
Now I'm confused which one I'd need to replace so the layout on my bt keyboard will change.
Do you know the difference of both files, locations?
Also, how does your module work? Just place a .kl file somewhere in sdcard root and reboot?

GameTurbo, VideoToolbox, Context Menu in Launcher and Special Features

Here are modules that enable most important missing features to all Garden devices except Cattail.
All this modules are created by me. My username on 4PDA is redmi9c
Security 6.0.2: (GameTurbo with Voice Changer, VideoToolbox, Sidebar, Power Slider for battery, Night Charge, Battery Health)
MiuiHome 4.26: (Full Context Menu with Split Screen and Floating Windows, Recommend option in Recents enabled for China ROM as well, and Max Grid increased to 6x8)
Settings: (Special Features section, option to set Split Screen on hotkey and Navigation Line)
Delete long name folder inside "\data\system\package_cache\", uninstall Security and MiuiHome updates, than install modules and reboot phone.
Settings module is only for Miui 12.
Needed Magisk to install them.
If you want pictures I can post them but you can also find them on 4PDA forums.
Great work
Now my phone's feels me quite refreshing but why I am seeing this
After flashing settings module settings have been renamed to extend wifi coverage
How I can fix it
Delete long name folder inside "\data\system\package_cache\", than reboot phone. There is only one folder there, it has very long name consisted from numbers and letters and you need to delete it. There is only cache in there. When you delete it, restart will take a bit longer than usual so don't panic and let it boot normally.
Thanks this is perfect and gives my phone features from the flagships
I don't know how to find this folder.. please help me.. can give some screenshots please?
Heshan Dilhara said:
View attachment 5621371
I don't know how to find this folder.. please help me.. can give some screenshots please?
Click to expand...
Click to collapse
you need a root file manager.
Hello, I have MIUI 12.0.18 and modul Settings unlocked blocks me Options for developers (moznosti pre vyvojarov). It is bad. Why does doing it?
silveronux said:
Hello, I have MIUI 12.0.18 and modul Settings unlocked blocks me Options for developers (moznosti pre vyvojarov). It is bad. Why does doing it?
Click to expand...
Click to collapse
That's because Xiaomi started updating Settings.apk. You can enable it yourself. Locate Settings.apk in "system/product/priv-app/Settings/Settings.apk". Copy it to somewhere else. Download MT Manager app, and find where you copied Settings.apk with MT Manager. Click on it, then click View. After that click on Classes.dex then "Dex Editor Plus", then on OK. From there to Search than "Start New Search" and in "Text Field" type from example "angelica" that is Redmi 9C. It will find 2 files. There just change your phone codename to something different like (angelica to xangelica) or something in both files. Than just go back and it will ask you to save it. From there just click on moded apk to see if Signature value is "Verified failed" in red, that means that it is OK. From there just copy moded APK to "/data/adb/modules/Settings/system/product/priv-app/Settings/" and replace Settings.apk. Then reboot phone, and if you see some glitches delete that long name folder inside "/data/system/package_cache" and reboot. If you don't want to mess with this you could just disable Magisk module, delete that folder inside "/data/system/package_cache" and reboot, than change settings in "Developer options", and enable module again and delete that folder inside "/data/system/package_cache" again. If you mess it and get bootloop just in TWRP go to file manager and navigate to "/data/adb/modules/" and delete Settings folder and reboot and module will be removed.

[REQUEST] Module to replace a file in vendor/etc

I have an LG V60 phone and I would like to put the phone in "high impedance mode" all the the time for more power to the earphones even if they are less than 50 ohm impedance.
In LG V40/50, it was very simple by rooting the phone and making some modifications in the one of the files that was in the "vendor/etc" directory. The problem with LG V60 is it does not allow any write access to the vendor folder at all.
So the only feasible option that I can think of is to create a Magisk module that replaces the original file with the modified one. My biggest disadvantage is not knowing anything about writing codes including Magisk module ones. So I was wondering if anyone could create a Magisk module that would replace the original file through Magisk?
ADDTIONAL INOFRMATION:
I am running Magisk 25 on a fully rooted LG V60.
The file that needs to be changed is mixer_paths.xml and it resides in the "vendor/etc" folder. I have created the modified file.
So if someone is able to develop a module to accomplish this, I will place the modified file in the "system/vendor/etc" folder of the Magisk module, as I understand it.
Many thanks for your support!
You can use this template system in future as its super easy
The template itself is here
GitHub - Zackptg5/MMT-Extended: Magisk Module Template Extended
Magisk Module Template Extended. Contribute to Zackptg5/MMT-Extended development by creating an account on GitHub.
github.com
click the Code button, then download zip
then extract the zip into a folder and rename the folder "MMT-Extended-master" to the something more meaningful, like the name of your module
Read the wiki and docs here to go step by step to create your first module:
Home
Magisk Module Template Extended. Contribute to Zackptg5/MMT-Extended development by creating an account on GitHub.
github.com
Notably the heading:
How do I make a MMT Extended mod?​
The steps for a simple file addition/replacement module, which are simple, should be steps 1-4, then 8. Then zip up the modules (as a zip) and test.
For you, if you read along (in Step 3) you will need to create a folder vendor, under the existing system one, and then a further etc folder under vendor, and put the necessary file (mixer_paths.xml in there.
If you try and fail, post back and someone will assist. But we prefer people to at least read the documentation and try first, ideally...this is the way the great didgeridoohan mentored myself and many others, he was not big on spoonfeeding
Imagine the satisfaction you might get finding out youre capable of such feats...i promise its not rocket surgery
Feel free to PM even, if you get stuck and think you have a silly question - of course knowing me, and i do, you'll probably get an even sillier, and off topic answer as well...
hint: you can knock out this basic module in far far less time than it took me to write all this
Thank you!
So my changes look like this:
1. Put the modified file in the system/vendor/etc folder of the Magisk module.
2. Made the needed changes to the customize.sh as attached.
Royaltiger said:
Thank you!
So my changes look like this:
1. Put the modified file in the system/vendor/etc folder of the Magisk module.
2. Made the needed changes to the customize.sh as attached.
Click to expand...
Click to collapse
Yes, though you'll need to uncomment (remove the leading #) from the set_perm lines to make them active, also you only really need the 2nd one
Royaltiger said:
Thank you
73sydney said:
Yes, though you'll need to uncomment (remove the leading #) from the set_perm lines to make them active, also you only really need the 2nd one
Click to expand...
Click to collapse
Click to expand...
Click to collapse
So I made the module with the suggested changes in customize.sh and put the modified mixer_path.xml file in the system/vendor/etc folder of the module. Module installs fine with Magisk but when it reboots, the device hangs on the initial LG screen and does not go anywhere from there.
I am attaching the customize.sh snapshot. Also, attached is the module file.
See here under "Disabling/uninstalling modules manually" if youre not able to boot
Module Issues:Magisk and MagiskHide Installation and Troubleshooting guide
www.didgeridoohan.com
I am assuming that it is not possible to accomplish what I wanted to achieve.
Royaltiger said:
I am assuming that it is not possible to accomplish what I wanted to achieve.
Click to expand...
Click to collapse
mixer_paths files have been replaced for years, long before magisk even...i did it back as far as the Galaxy S2 from memory, so im not sure why this didnt work for you, was the mxer_paths file specifically for your device? i have no clear idea why it hasnt worked for you
this thread has a guide to making /system RW, so you could manually copy the file and overwrite it, but id really consider how much you want to replace mixer_paths before i set out to do that
V60 Bootloader Unlock and Magisk Root
Earlier today I was alerted to https://www.cnblogs.com/yanhua-tj/p/15525593.html which has the actual firehose and steps to unlock! However it seems to be in Simplified Chinese so I'll translate it here for you. The firehose is attached below...
forum.xda-developers.com
73sydney said:
mixer_paths files have been replaced for years, long before magisk even...i did it back as far as the Galaxy S2 from memory, so im not sure why this didnt work for you, was the mxer_paths file specifically for your device? i have no clear idea why it hasnt worked for you
this thread has a guide to making /system RW, so you could manually copy the file and overwrite it, but id really consider how much you want to replace mixer_paths before i set out to do that
V60 Bootloader Unlock and Magisk Root
Earlier today I was alerted to https://www.cnblogs.com/yanhua-tj/p/15525593.html which has the actual firehose and steps to unlock! However it seems to be in Simplified Chinese so I'll translate it here for you. The firehose is attached below...
forum.xda-developers.com
Click to expand...
Click to collapse
Actually I had no problem in editing the mixer_tavil.xml file in LG V40/50. But when it comes to LG V60, the file is read-only. There is no way to edit it due to dynamic partition. Hence, I was seeking the only option available i.e., via Magisk module.
Royaltiger said:
Actually I had no problem in editing the mixer_tavil.xml file in LG V40/50. But when it comes to LG V60, the file is read-only. There is no way to edit it due to dynamic partition. Hence, I was seeking the only option available i.e., via Magisk module.
Click to expand...
Click to collapse
So, I encountered the same problem and found what you did wrong. I was able to write my own Magisk module and it works wonderfully. It took so much time to understand how to do it because there is no proper tutorial.
If you are still active and trying to know how to do it the right way, here comes the explanation:
The Replace = " /system/vendor/etc/ " must not be written as it completely wipes the actual folder from your phone. This is why you were not able to turn the phone on. It should be like this:
Replace = " " (That part must be blank)
The rest of the code is good. If you try it like this now, you will see it will work, just like mine did.
Cheers
Does not work. May I see your module? Please upload it here as attachment.
I even put my edited file under /data/adb/modules/<my directory>/system/vendor/etc. It shows up in Magisk as a module and the file loads (as it is not visible in file explorer) but there is no change in volume. So the thing is not working.

Categories

Resources