[MOD][MAGISK] Mi AI Button Remapper - Xiaomi Mi Mix 3 Themes, Apps, and Mods

Description:
This module remaps the functionality of the AI button. There are several options available until now but with your help and testing we can enrich the functionality.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requirements:
- Magisk Installed
Installation:
- Flash in Magisk or TWRP
- If you want to reassign a new functionality to the button reinstall the module.
To uninstall:
- Uninstall from the modules section in Magisk Manager
Bugs
- Only single press for now! Basically this mod changes the functionality of the button so it is not recognized by the system as the AI button anymore and you cannot assign long press or double tap functions! Searching for a solution
- Maybe more
Download
It is based in my work for the Xiaomi Mi 9 but it should work in the Mi Mix 3 as well
Module is in testing phase. Use at your own risk.
Click to expand...
Click to collapse

Hi, tested flashing in Magisk and TWRP. no luck with either. I'm on miui.eu Stable 10.2 with Magisk 18.2. AI button is doing what the system is setup for on single click(Google assistant) and double click (flash on/off).

Works for me on AOSP 9.0

Yuanlong said:
Hi, tested flashing in Magisk and TWRP. no luck with either. I'm on miui.eu Stable 10.2 with Magisk 18.2. AI button is doing what the system is setup for on single click(Google assistant) and double click (flash on/off).
Click to expand...
Click to collapse
Have you tried more than one options? Or only one?

I've tried mute, app switch and calculator. I'll try a few more combination when I'm off work today.

Hi there, tried a few other combinations with no luck. Updated to Magisk to 19.02 (1903) and works for single click but now no action for double click. Also would like to request for flash on/off to be one of the option of possible. Thanks

Great job with this mod. Any chance we could get last app switcher for this? Had it on miui and it was handy. Thanks again.

Yuanlong said:
Hi there, tried a few other combinations with no luck. Updated to Magisk to 19.02 (1903) and works for single click but now no action for double click. Also would like to request for flash on/off to be one of the option of possible. Thanks
Click to expand...
Click to collapse
Install Button Mapper, it lets you remap the button and set single, double and long press for it. I had it set to camera I think for button mapper to accept it. The best thing is you can set single press to nothing so you won't accidentally trigger it.

LOTG said:
Install Button Mapper, it lets you remap the button and set single, double and long press for it. I had it set to camera I think for button mapper to accept it. The best thing is you can set single press to nothing so you won't accidentally trigger it.
Click to expand...
Click to collapse
How did you manage to force Button Mapper to detect AI button?

Fiqusny said:
How did you manage to force Button Mapper to detect AI button?
Click to expand...
Click to collapse
I set the button to camera with this mod, then in Button Mapper i did add button to manually add it to button mapper. Might also work with other mappings, but unmapped and AI did not work for me.

Hi,
First, thank you for your awesome work.
Can you add the possibility to Toggle to Silence the Phone, like in the settings ? (it was a material button on the OnePlus 3T, the iPhone, etc.)
Thank you un advance,
Best regards.

This mod won't install on Andromeda (Mi Mix 3 5G), even after adding it to install.sh. Any idea on why?

How do I select the functions which are not camera or screenshot? I can select functions with volume buttons and it works fine, however te "AI" button doesnt work during selection. (works fine after a function is selected and device rebooted).
I'm on arrowOS 11 official, latest nightly
p.s. I can change the function when I edit my gpio-keys.kl manually.
However when I remove the magisk module and edit the file nothing happens, is there something else the module does besides editing the gpio-keys.kl file?

Related

[Q] How to change the function of home button?

I have the i9300 and recently i install a new rom based on S5 Q5 with 4.4.2 that changes the function of the home button and the left button (neer the home button).
Here is the name of the rom: S5-QS-i9300_KK_v2.9(NI1)_FOR_CWM
When i click on the home button for 2 sec it throws me to a scrern with "google now" thing.
When i click on the left button it gives me the option to clear process on backgroung (which it was exctly on my older rom version). See below:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How do i change the function of the home button so he will work normally and give me the clear process screen instead of "google now" screen?
Try xposed addition.
Try xposed addition.
Click to expand...
Click to collapse
What is it?
rami7250 said:
I have the i9300 and recently i install a new rom based on S5 Q5 with 4.4.2 that changes the function of the home button and the left button (neer the home button).
Here is the name of the rom: S5-QS-i9300_KK_v2.9(NI1)_FOR_CWM
When i click on the home button for 2 sec it throws me to a scrern with "google now" thing.
When i click on the left button it gives me the option to clear process on backgroung (which it was exctly on my older rom version). See below:
How do i change the function of the home button so he will work normally and give me the clear process screen instead of "google now" screen?
Click to expand...
Click to collapse
Here. Tested and works on bulldog's DN4 Port.
Longpress on menu gives SFinder not google shortcut for me.
Backup your existing files first. Easiest way is to extract the zip and replace with what you got in your rom, rename it and zip it back, so you don't get mixed up btwn current and this zip:
http://forum.xda-developers.com/show...ostcount=42213
Thanx for @yusuf_adsas for his post & the link
Here. Tested and works on bulldog's DN4 Port.
Longpress on menu gives SFinder not google shortcut for me.
Backup your existing files first. Easiest way is to extract the zip and replace with what you got in your rom, rename it and zip it back, so you don't get mixed up btwn current and this zip
Click to expand...
Click to collapse
Didnt got it. How do i exactly "flash" this zip into my android system?
rami7250 said:
Didnt got it. How do i exactly "flash" this zip into my android system?
Click to expand...
Click to collapse
First thing you must Backup your system. to restore it just in case you failed
1-Put the zip file "Hardware_key_remap" in your SD Card
2-Reboot your phone and hold down Volume Up, Center Home, and Power button together.
When you see the Samsung logo, let go buttons
You should now be in CWM Recovery.
3-Install the zip file from SD Card
4-Reboot
It will effect my system
rami7250 said:
It will effect my system
Click to expand...
Click to collapse
no one enforce you to do it. you ask for it. so don’t complain
medostar00 said:
First thing you must Backup your system. to restore it just in case you failed
1-Put the zip file "Hardware_key_remap" in your SD Card
2-Reboot your phone and hold down Volume Up, Center Home, and Power button together.
When you see the Samsung logo, let go buttons
You should now be in CWM Recovery.
3-Install the zip file from SD Card
4-Reboot
Click to expand...
Click to collapse
do you have a reverse zip for the above?
I need to change my harware key to stock DN4, is there a zip file for that?
Nitrous828 said:
do you have a reverse zip for the above?
I need to change my harware key to stock DN4, is there a zip file for that?
Click to expand...
Click to collapse
No I don’t have it .... So you must Backup your system. to restore it just in case you failed

[XPOSED][MOD] Lollipop Power Menu

Customize power menu in Android Lollipop. Open Xposed Installer -> Modules and click on Lollipop Power Menu to customize power menu.
You can enable/disable items in Power menu:
- Shutdown
- Airplane mode
- Silent mode
- Users switcher
- Settings
- Lockdown
After you change settings, please restart your device!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NOTE: This is simple config modification so this means that every item in power menu is developed by Google, not by me. This also means that I will NOT add another items in power menu. Use other Xposed modules for that.
DOWNLOAD: http://repo.xposed.info/module/com.pyler.lollipoppowermenu
I still can't believe there is no way to reboot in stock L. Google is really stupid. There are apps that literally tell you to reboot and you can't
Blackbird256 said:
I still can't believe there is no way to reboot in stock L. Google is really stupid. There are apps that literally tell you to reboot and you can't
Click to expand...
Click to collapse
Definitelly one of the most wanted things. But Google rather does BS features, than really useful ones.
Star this issue: https://code.google.com/p/android/issues/detail?id=149868
Hey, i have an issue, i have xposed enabled, and the module, but after reboot i don't see changes
Configure it firstly. I wrote about it in OP.
Facebook app allways force close at lollipop roms
Sent from my C6603 using XDA Free mobile app
sorry in advance for the intrusion and ot, but really wouldn't where to ask this, hope you can help.. i desperately need a module to assign "show power menu" action to some apex gestures for example, in lollipo, as i press it very often and would like to save power button life.. any hint? with gravitybox it was possible but this action doesn't work in lollipop
thanks and sorry again
Please, do not go off topic!
Sorry not working on my htc one M8 sense
Blackbird256 said:
I still can't believe there is no way to reboot in stock L. Google is really stupid. There are apps that literally tell you to reboot and you can't
Click to expand...
Click to collapse
sure there is...paranoid figured it out just fine
can't install, it says downloaded file is not a valid APK
Sent from my HM 1S using XDA Free mobile app
And where's actually "Reboot" option?
Nowhere. Read OP. You can only control builtin power menu items developed by Google.
APM+ module is for much more customization.
And you can install this module only on Lollipop, on KitKat and below you get "invalid APK" message.
Working fine on GALAXY S3 I9300, Temasek's CM12 Port :good:
Just use APM+ module and you will have all reboot options you wants.
Working on my S4 with GPE Lollipop ROM.
Blackbird256 said:
I still can't believe there is no way to reboot in stock L. Google is really stupid. There are apps that literally tell you to reboot and you can't
Click to expand...
Click to collapse
With the Power Toggles (https://play.google.com/store/apps/details?id=com.painless.pc) i have Reboot option in the Toggle Widget
pyler said:
Customize power menu in Android Lollipop. Open Xposed Installer -> Modules and click on Lollipop Power Menu to customize power menu.
You can enable/disable items in Power menu:
- Shutdown
- Airplane mode
- Silent mode
- Users switcher
- Settings
- Lockdown
After you change settings, please restart your device!
NOTE: This is simple config modification so this means that every item in power menu is developed by Google, not by me. This also means that I will NOT add another items in power menu. Use other Xposed modules for that.
DOWNLOAD: http://repo.xposed.info/module/com.pyler.lollipoppowermenu
Click to expand...
Click to collapse
Just quick question. Is it possible to add Vibrate mode? I think it is also developed by Google.
Thank you on your good work.
Regards, Zagor
P.S. @Poeta, please, don't go offtopic.
We can only control these items:
<!-- Defines the default set of global actions. Actions may still be disabled or hidden based
on the current state of the device.
Each item must be one of the following strings:
"power" = Power off
"settings" = An action to launch settings
"airplane" = Airplane mode toggle
"bugreport" = Take bug report, if available
"silent" = silent mode
"users" = list of users
-->
Click to expand...
Click to collapse
pyler said:
We can only control these items:
Click to expand...
Click to collapse
Can you please just look at this thread from #6 to #10 posts on: http://forum.xda-developers.com/goo.../mod-3-power-menu-stock-5-0-1-deodex-t2997128 ?
zagorteney said:
Can you please just look at this thread from #6 to #10 posts on: http://forum.xda-developers.com/goo.../mod-3-power-menu-stock-5-0-1-deodex-t2997128 ?
Click to expand...
Click to collapse
Yes, that's requires manual implementation. Get APM+ for such advanced options.

Power Menu (4 way) - Updated with virtual key.

Power Menu.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is simple Power menu App with 4 way reboot options. It won't replace stock power menu but use as app short cut
- Requires Root
- Power Off
- Reboot (Normal)
- Reboot Recovery
- Reboot Download
4 way reboot is same on XDA version and Play store version.
Pro version (Play store) have couple of extra function like
-Lollipop style menu
-Sound Menu (experimental) Lollipop users requires to give access notification to PowerMenu Pro
-Screenshot
-Flashlight (may not work on all devices/ROMS)
-Enable/Disable Virtual key on Rt bottom of screen. Long press virtual key to bring power menu
-Enable/Disable option to bring power Menu with Facing device down while screen On
-Exit permanent safe mode.
Installation : Install as regular APK.
XDA Version
XDA version with virtual Key After Installation reboot device. It takes some time to load virtual key
Play store
? is it the same apps which is in your L1 rom of Note4 910c any 910h?
Yes xda version is same as on my rom
Sent from my SM-N910G using xda premium
Pro version updated for Sound Menu (experimental)
I did try the playstore version but it doesnt add the options to the power button but rather just an app. I have a N910f stock based which Ive been modding to my preference but I simply cannot find a way to add a 4 or 5 way reboot option to the power menu. Any advice would be really appreciated as I've been at this for days now.
many thanks
I never said that this will replace power button. To assign with power button need to modify framework.
BTW which rom you are using? Its odexed /deodexed?
Sent from my SM-N910G using xda premium
I'm using this as base and have managed to modify much of the ui http://forum.xda-developers.com/note-4/snapdragon-dev/rom-bob4-devbase-multi-csc-safe-bloat-t3033881
I think I have to modify android.policy.jar but the only guide that has been posted pertains to the note 3 evn though I found it through the note 4 forums lol
I'm not sure if its odexed or deodexed, I did try but not sure if it actually worked as I still have odex files
Im really keen to do this so any help would be really appreciated and I'll even buy you a cup of tea (or an app lol)
That's odexed rom and you needs to use deodexed base to modify framework.
Sent from my SM-N910G using xda premium
Btw have you tried enable facedown function on this app?
You can simply facedown device to popup power menu e
Without any button.
Sent from my SM-N910G using xda premium
thanks this is handy for themers to easily access recovery option :good:
Yeah. My rom already have 5way reboot but still I am used to this app.
Sent from my SM-N910G using xda premium
dr.ketan said:
I never said that this will replace power button. To assign with power button need to modify framework.
BTW which rom you are using? Its odexed /deodexed?
Sent from my SM-N910G using xda premium
Click to expand...
Click to collapse
I also bought the pro version of Play. If not replace the power MENU in the power button, and only works in the applications menu, so it's screenshot? I would not work the flashlight.
N910F ROM STOCK ANJ4 ROOTED
ELZAFIRA46 Patatalkeando NOT4lefano
elzafira46 said:
I also bought the pro version of Play. If not replace the power MENU in the power button, and only works in the applications menu, so it's screenshot? I would not work the flashlight.
N910F ROM STOCK ANJ4 ROOTED
ELZAFIRA46 Patatalkeando NOT4lefano
Click to expand...
Click to collapse
Third party apk can't replace stock power menu. I have updated play store version just now (appear shortly on play store as 1.3) In new version you can enable virtual key on Rt bottom. Long pressing virtual key brings power menu.
XDA (free version) updated with virtual key on Rt bottom. Long press virtual key to bring power menu
.

[GUIDE][NON-ROOT] 2 ways to use the Photochrome filter again!

Hey,
I experimented a bit and found 2 ways to reuse the Photochrome filter.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[ROOT]
1. Download the Magisk Module from the Attachment.
2. Install the Module using Magisk Manager.
3. Reboot.
4. Open Phone App and type *#808#
5. Go to the Camera tab and click to "fourth back camera preview".
6. Now you can screenshot objects.
Screens:
[NON-ROOT]
1. Download this Package: Download
2. Open the zip and install the "GoogleCamera.apk"
3. Copy the "GCam" folder on the internal memory.
4. Open GCam and Restore the "Urnyx 7.3 Hooolm v8 (OP8 Pro).xml" Profile.
5. Now you can click on the "C" logo and can use the Photochrome filter again.
Screen:
Does the non-root variant work without Magisk? Because you can't change the cameras if you don't use the Aux Magisk Module that patches SELinux.
Works without Module
The AUX module is only needed for some GCam features like slow motion etc.
But for the Photochrome filter the module is not needed.
Interesting. The other cams only work with the Aux module on the 7 series. Good to know
Np
Followed the steps for non-root. Anytime I try to use a camera other than the main it kills the app and I have to clear data and start over again to make it turn on.
geomez said:
Followed the steps for non-root. Anytime I try to use a camera other than the main it kills the app and I have to clear data and start over again to make it turn on.
Click to expand...
Click to collapse
It's about the filter there.
If you want to use everything else, you need the AUX module, but you need root.
It's about the filter there.
If you want to use everything else, you need the AUX module, but you need root.
Click to expand...
Click to collapse
That's the thing, the color filter button shuts it down just the same
jamal2367 said:
It's about the filter there.
If you want to use everything else, you need the AUX module, but you need root.
Click to expand...
Click to collapse
I might be dumb, so please bear with me. I tried *#808# without the module and the same screen popped up. Is there something I'm missing that this module does that I don't see?
Deinstall all FactoryMode updates in Settings and install the Module then you can access *#808#
jamal2367 said:
Deinstall all FactoryMode updates in Settings and install the Module then you can access *#808#
Click to expand...
Click to collapse
I meant I can already access it, sorry for the misunderstanding. I get the camera tab and can select the stuff an all, without installing the module, so wanted to know if I missed something. Sorry.
I guess I misunderstood.
So all is well
Warning!!!
I install the FactoryMode module
Don't play with the fingerprint sensor tests or you will lose it. And without your own backup of the persist.img, there is nothing you can do to recover it. Fortunately I had my backup and I was able to recover the sensor. @jamal2367, can you take a look?
geomez said:
That's the thing, the color filter button shuts it down just the same
Click to expand...
Click to collapse
Same for me i cant Access the color Filter without crashing the camera App.. ist there anybody where this works? (Non root Variant)
blackst225 said:
Same for me i cant Access the color Filter without crashing the camera App.. ist there anybody where this works? (Non root Variant)
Click to expand...
Click to collapse
same,,crash every time
jamal2367 said:
Deinstall all FactoryMode updates in Settings and install the Module then you can access *#808#
Click to expand...
Click to collapse
Sir
How to deinstall?
Not working non root method camra crashing
Thank you but Not working non root method camra crashing
Sent from my IN2020 using Tapatalk
Hello, I'm going to receive my OnePlus 8 Pro this week (sadly, i've seen it's the in2020 version), if I flash OOS instead of HOS, is this guide needed or will it works natively on OOS ?
Does is work on OP8?

Question How to enable split screen

In other MIUI phones long pressing any app on recents windows would give 4 options including split screen. But on Redmi Note 10 long pressing simply opens app info no other options so how are we supposed to use split screen now??
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It should be there.
what's your miui version ?
Abdullah.Csit said:
It should be there.
what's your miui version ?
Click to expand...
Click to collapse
12.0.4.0
It's not working. Miui messed up again in 12.0.10 global
Same here,
It was working fine in original 12.0.1 MIUI but now that I manually updated to 12.0.4 long press in recent doesn't work anymore
That's weird
Mellow971 said:
Same here,
It was working fine in original 12.0.1 MIUI but now that I manually updated to 12.0.4 long press in recent doesn't work anymore
That's weird
Click to expand...
Click to collapse
this and other features have been removed from low end and some mid range phones because of "need of optimization" we hope that the features can be re-added in future updates maybe on MIUI 12.5
alonsoj636 said:
this and other features have been removed from low end and some mid range phones because of "need of optimization" we hope that the features can be re-added in future updates maybe on MIUI 12.5
Click to expand...
Click to collapse
Hi,
Is this an explanation provided by xiaomi ?
And if yes, could you give us the source ?
Thanks in advance
You got 2 options as I see. If you are ok with using button navigation instead of gesture navigation you can goto Button shortcuts ( in additional settings) and assign any of the 3 navigation buttons ( Long press) to open split screen. This worked in my Redmi Note 10 Running MIUI 12.0.1 ( android 11)
Second easiest method I found is to use the app EDGE GESTURES and assign TOGGLE SPLIT SCREEN to any swipe or gesture on an edge. This also works . But make sure you give / enable auto start permission and Turn off Miui battery saving options for this app. Otherwise Miui Will Kill the app after some time .
I am on 12.0.4. split screen working perfectly for me.
Simplest method is to get this app. It will add a quick setting tile to directly enable split screen
Hi all,
If you really want split screen, mi dialer with recording, super wallpaper plus memory extension functions you need to flash miui 12.5.4 eu rom. I had attached the screen shots below.
I am using eu rom from past 10 days still now I'm not face any problem
ravan_86 said:
Hi all,
If you really want split screen, mi dialer with recording, super wallpaper plus memory extension functions you need to flash miui 12.5.4 eu rom. I had attached the screen shots below.
I am using eu rom from past 10 days still now I'm not face any problem
Click to expand...
Click to collapse
hi, was this the last xiaomi eu version - just like official miui - to have unlock animation and app opening/minimizing animations (for mojito)?

Categories

Resources