[MOD] Remapping 3 button earphones - Xiaomi Mi 4i

This is only applicable to custom roms. So far, i've remapped the buttons to work as supposed:
1) Skip music with long press on volume button on earphones.
+ => next
- => previous
2) Volume control on single press
Tested Earphone:
Xiaomi Piston v2 and v3
Steps:
1) Navigate to /system/usr/keylayout Root explorer
2) overwrite generic.kl
*************************************
Download Link:
Link update 2:
CM/AOSP base
https://www.dropbox.com/s/dtl0ispxup8zchz/Generic.kl?dl=0
Miui Base v2
https://www.dropbox.com/s/a36715hqxvcp52i/Generic.kl?dl=0
*************************************
3) remember to set permissission to rw-r--r--.
4) Reboot your device and voila.
Disclaimer
Im not responsible for your bricked device. Please use at your own risk.

good job

Should I make a flashable for this?

Thanks dude...
volume control works but doesn't skip or change the track while long pressing volume buttons on earphones...

vijayk12 said:
Thanks dude...
volume control works but doesn't skip or change the track while long pressing volume buttons on earphones...
Click to expand...
Click to collapse
It will only skip if your screen is off.

ajaxcbcb said:
It will only skip if your screen is off.
Click to expand...
Click to collapse
Thanks dude, it works...
using piston 3 with viper for android...

Miui 6, 7 support please
---------- Post added at 04:57 AM ---------- Previous post was at 04:52 AM ----------
Grt wrk bro, please try to mode tge same for mobile volume buttons.

zerocool420 said:
Miui 6, 7 support please
---------- Post added at 04:57 AM ---------- Previous post was at 04:52 AM ----------
Grt wrk bro, please try to mode tge same for mobile volume buttons.
Click to expand...
Click to collapse
please test. i've uploaded and updated the thread

ajaxcbcb said:
please test. i've uploaded and updated the thread
Click to expand...
Click to collapse
Working on miui 6, but with earphones button only
Can u please mode the same for phone buttons?

Changelog:
Added:
key 289 MEDIA_NEXT WAKE
key 290 MEDIA_PREVIOUS WAKE

zerocool420 said:
Working on miui 6, but with earphones button only
Can u please mode the same for phone buttons?
Click to expand...
Click to collapse
What about MIUI 7??

Toruk.Makto said:
What about MIUI 7??
Click to expand...
Click to collapse
both miui 6 nd 7 hv same base so must be working on miui7 also

Power button not working
Hi,
After replacing the file and rebooted the device now the power button and volume down buttons not working. What to do?

Bhagavan44 said:
Hi,
After replacing the file and rebooted the device now the power button and volume down buttons not working. What to do?
Click to expand...
Click to collapse
U didn't set the right permission to the file u have replaced.

ajaxcbcb said:
U didn't set the right permission to the file u have replaced.
Click to expand...
Click to collapse
I have given the permission specified in the article i.e. rw-r--r--.

Bhagavan44 said:
I have given the permission specified in the article i.e. rw-r--r--.
Click to expand...
Click to collapse
ur using miui?

ajaxcbcb said:
ur using miui?
Click to expand...
Click to collapse
I am using Mokee ROM 5.1. I just replaced the file with original file now working buttons working fine. This file may not work for Mokee roms

Bhagavan44 said:
I am using Mokee ROM 5.1. I just replaced the file with original file now working buttons working fine. This file may not work for Mokee roms
Click to expand...
Click to collapse
Maybe button relocation is different

bro please mode the same for phones volumes button(miui).

this is working once again with the new build for slimbit. give it a go

Related

[ROM][U81XX] Cyanogen mod 6.2.0 Beta 1 [07.09.11]

I'm NOT responsible for any damage that this ROM has caused.... FLASH at ur own risk.
Hello im working on this ROM based on anryl's CM22 ROM and Froyobit 1.95 CM6
Ok lets start this:
Kernel:2.6.29 by Anryl
Jit enabled
Android : 2.2.1 / CM6.2.0
Working:
Audio
Bluetooth
Wi-Fi
Key lights
Sensors
D-pad
OC Kernel (122-748MHZ)
SDCard mount via notification bar
GPS
AGPS
Framework
Calibration support
Camera
Bugs[TO DO]:
Missing FM
Video recording
Change Boot screen
Fix broken clock layout
Link:Beta 1
I test it on my U8100 try on your u8110/20
If u discover any bug please report it
I will try to update the ROM each one week
If u Like my work press Thanks​
Changelog:
Beta 1:
-Latest Market
-Flash Player 10.1
-Changed Launcher Pro for ADW Launcher
-Maps Ownhere 5.9 (thanks to Brutt.all)
-Improved Wi-Fi and calibration app.
Alpha 2:
-changed bootscreen
-Added live wallpapers
Alpha 1: Initial release
Installation
1. Flash a recovery image
2. Copy the .zip file to your MicroSD card and boot the phone into recovery mode (call+volume-up+power)
3. Choose "Flash zip from sdcard" and choose the zip you just copied.
4. Wipe data+cache before rebooting. You should wipe unless you are already on a Froyo ROM.
i will try it i hope it be good
abdallh222 said:
i will try it i hope it be good
Click to expand...
Click to collapse
Come on try it and report any bugs that did you see
One BIG bug : no boot!!! on u-8110
SlaveSrbija said:
One BIG bug : no boot!!! on u-8110
Click to expand...
Click to collapse
Did u do a full wipe?
it is very good and i hope you can make radio work soon pls
jmcc30 said:
Did u do a full wipe?
Click to expand...
Click to collapse
Yes i did full wipe.....
SlaveSrbija said:
Yes i did full wipe.....
Click to expand...
Click to collapse
Mmmh... that is no good..
¿What recovery do you have?
Im using AmonRa 2.3 for u8160 u can find this on a post in joilaroi thread
abdallh222 said:
it is very good and i hope you can make radio work soon pls
Click to expand...
Click to collapse
Thanks Im trying to fix video record but FM radio is no possible requieres Huawei libs and i cant use these libs on a non-huawei ROM
WiFi crashes at u8110, and can't find any network before shutting down automatically.
MantisEngine said:
WiFi crashes at u8110, and can't find any network before shutting down automatically.
Click to expand...
Click to collapse
Are u using beta 1 or alpha 2?
because beta 1 dont have this problem
thanks
theank you very much for your work i'd really appreciate it kepp working please
=))))
P.S:i have a huawei u8110
italianospn said:
theank you very much for your work i'd really appreciate it kepp working please
=))))
P.S:i have a huawei u8110
Click to expand...
Click to collapse
Thank you, i start with this rom when kaltcaffe do his first release, for now im finshing my cm7 (i start it when tas0s post his cm7) and i post the link here .
is it working for U8650???
Not working with Amonra 1.6.2.
Waiting for 8110, Huawei to establish a stable state. easy come
Sorry for my English is bad
brofaris said:
is it working for U8650???
Click to expand...
Click to collapse
OMG NO! this s for u81xx devices!!!!, Is like asking if it works on the Huawei Honor!! D:
---------- Post added at 01:15 PM ---------- Previous post was at 01:13 PM ----------
jmcc30 said:
Are u using beta 1 or alpha 2?
because beta 1 dont have this problem
Click to expand...
Click to collapse
Sorry for the late answer, but I wasnt subscribed to this thread, and well, I tryied the beta1 yes, but when I go to the wifi settings it says that there are no WiFi networks and then it goes off.
MantisEngine said:
OMG NO! this s for u81xx devices!!!!, Is like asking if it works on the Huawei Honor!! D:
---------- Post added at 01:15 PM ---------- Previous post was at 01:13 PM ----------
Sorry for the late answer, but I wasnt subscribed to this thread, and well, I tryied the beta1 yes, but when I go to the wifi settings it says that there are no WiFi networks and then it goes off.
Click to expand...
Click to collapse
Ok i will fix this on next release and the videocam ^^
And next release is Beta Final :O

[Guide] [MTK Chipset] Increase Speaker Volume of your Phone

[MTK Chipset] Are you dissatisfied with the speaker volume of your phone ?
Is the speaker volume of your phone is very low ?
You can increase the speaker volume yourself, it is very simple.
Here are steps:
1. Install Mobileuncle MTK Tool
2. Open Mobileuncle MTK Tool and select Engineer Mode
3. Select Engineer Mode MTK
4. Swap to Harware Testing
5. Select Audio
6. Select Loudspeaker Mode
7. Here you will find Max Volume Value 128, Change this to 145 and press set.
8. You can set this value up to 160 but above 150 is not recommended else it may damage your speaker.
9. Now you can close Mobileuncle MTK Tool.
Now you can check the volume of your speaker and feel the difference.
I have tested this method on my Lava Iris 501.
Works with MTK Chipset only
i can't download it from play store, please upload here...
Mobileuncle Tool attached
tanmoy02 said:
i can't download it from play store, please upload here...
Click to expand...
Click to collapse
Mobileuncle Tool attached in post. Please check.
kamal882 said:
Mobileuncle Tool attached in post. Please check.
Click to expand...
Click to collapse
thanks bro...:good:
I cant found swap to hardware ics 4.0.4
Sent from my WT19i using xda app-developers app
is it only for MTK chipset phone?
edit: tested and their nothing it can do
magikstar said:
is it only for MTK chipset phone?
Click to expand...
Click to collapse
I didn't tried on other phone. You may please check and give me the feedback.
Thanks
kamal882 said:
I didn't tried on other phone. You may please check and give me the feedback.
Thanks
Click to expand...
Click to collapse
just basic information no possibility to tweak something
magikstar said:
just basic information no possibility to tweak something
Click to expand...
Click to collapse
OK, now it is confirm that this is for MTK Chipset only.
Please also check with Code *#*#3646633#*#* and confirm if it works.
kamal882 said:
OK, now it is confirm that this is for MTK Chipset only.
Please also check with Code *#*#3646633#*#* and confirm if it works.
Click to expand...
Click to collapse
this code do nothing
magikstar said:
this code do nothing
Click to expand...
Click to collapse
Thanks for the feedback bro, means this code will also work for MTK Chipset only.
Mine is already on 153
sent from My Canvas HD
Anands3 said:
Mine is already on 153
sent from My Canvas HD
Click to expand...
Click to collapse
Then I am sure that volume level of your phone must be already good enough.
kamal882 said:
Then I am sure that volume level of your phone must be already good enough.
Click to expand...
Click to collapse
Yes very Good
sent from My Canvas HD
That Code Works
kamal882 said:
OK, now it is confirm that this is for MTK Chipset only.
Please also check with Code *#*#3646633#*#* and confirm if it works.
Click to expand...
Click to collapse
The code you gave here works fine. it takes us to Engineering Mode. It is working with IRIS 501 with JB.
Any idea if we can start TV out in Lava Iris 501.
Thanks for sharing ...the code is working fine for me and indeed gave a boost to the speaker volume,but i have set it to 140 as in 145,the sound from the speaker at highest volumes seems cracked and a li'l bit distorted.
urs_rahul said:
Thanks for sharing ...the code is working fine for me and indeed gave a boost to the speaker volume,but i have set it to 140 as in 145,the sound from the speaker at highest volumes seems cracked and a li'l bit distorted.
Click to expand...
Click to collapse
:good::good::good:
I feel like my galaxy s2 EARPIECE volume is 3 times louder than the iris 501 volume. How do I increase the EARPIECE volume of my phone (The sound from where the sound of other person comes while talking in normal mode)
Anyone have an idea what the Level settings are for?
Also, is a reboot necessary after modification? I changed settings but no difference without a reboot. If I reboot it'll be hard to judge.
Also, what is the Value setting for? Thought it's the current value but if I change volume manually and reenter the app it doesn't seem to change.
--
白い熊@相撲道
Nice tutor !
Thanks brother !
i adjust my volume up. again thank U !

Request to all devs

http://forum.xda-developers.com/galaxy-s4/i9505-develop/rom-albe95-rom-t2967688
http://forum.xda-developers.com/galaxy-s4/i9505-develop/rom-albe95-s6-port-1-0-t3092479
http://forum.xda-developers.com/gal...5-lollirom-official-1-0-t3049564#post59303894
Slimrom
Can we port this roms???
Also add if possible double tap sleep & wake
Vinay Patani said:
http://forum.xda-developers.com/galaxy-s4/i9505-develop/rom-albe95-rom-t2967688
http://forum.xda-developers.com/galaxy-s4/i9505-develop/rom-albe95-s6-port-1-0-t3092479
http://forum.xda-developers.com/gal...5-lollirom-official-1-0-t3049564#post59303894
Slimrom
Can we port this roms???
Also add if possible double tap sleep & wake
Click to expand...
Click to collapse
Install double tap to sleep on any rom
Phone must be rooted
1. Install WSM Tools
2. Install Double Tap to sleep app
Slide to open Double Tap to sleep app in WSM Tools & Reboot
Enjoy the Double Tap to sleep app
Thanks Rohit for ur suggestion... Double tap to sleep can also be activated through gravity box... But can we include double tap to wake feature in q3000 ? The ROMs suggested are nice esp the lollipop .... Can you port it to our device?
---------- Post added at 02:17 AM ---------- Previous post was at 02:14 AM ----------
The Devs here are awsome .. I am sure they can port these beautiful ROMs..
No, double tap to wake cant be enabled, as it requires custom kernel, even if its possible, it drains battery about 2-4% every hour, so it more bad than gud
I have a quary
My touchpad is not working properly in middle horizontal line
On other areas it works perfect
What should i do???
Its the problem of charging or other??
Vinay Patani said:
I have a quary
My touchpad is not working properly in middle horizontal line
On other areas it works perfect
What should i do???
Its the problem of charging or other??
Click to expand...
Click to collapse
while charging it happen most of the time that touch doesn't work properly, its common thing,this happen only when u charge from power socket not on usb charging
rohitsinghpu said:
while charging it happen most of the time that touch doesn't work properly, its common thing,this happen only when u charge from power socket not on usb charging
Click to expand...
Click to collapse
No bro mine problem remains after removing charger also
I am asking to ensure that ,it is possible that this problem occur due to any software problem.
Vinay Patani said:
No bro mine problem remains after removing charger also
I am asking to ensure that ,it is possible that this problem occur due to any software problem.
Click to expand...
Click to collapse
if this problem happen in all rom including stock rom then its touch problem
try other rom see this problem happen or not
rohitsinghpu said:
if this problem happen in all rom including stock rom then its touch problem
try other rom see this problem happen or not
Click to expand...
Click to collapse
Stock rom not tried yet
Will try and post review
Thanks for your support
Vinay Patani said:
Stock rom not tried yet
Will try and post review
Thanks for your support
Click to expand...
Click to collapse
In miui rom, tap kernel version 5 times, it will open qc test menu, go to 12.touchpanel and try calibration.
from developer option check show touches and see where the touches are shown...
mujaid714 said:
from developer option check show touches and see where the touches are shown...
Click to expand...
Click to collapse
This is result
Vinay Patani said:
This is result
Click to expand...
Click to collapse
After that there is one more option, touchpanel. It calibrates display manually.
sachin.r.fulzele said:
After that there is one more option, touchpanel. It calibrates display manually.
Click to expand...
Click to collapse
How???
Vinay Patani said:
How???
Click to expand...
Click to collapse
go to engineering mode ..... go to hardware testing tab.... in that tab touch screen option
u manually check ur screen by various test options

LeEco Letv Remote Control App

LeEco Letv Remote Control App flashable zip download : https://www.androidfilehost.com/?fid=889764386195898642
Make Sure your Selinux Mode is Permissive.
rohitjaiswal said:
LeEco Letv Remote Control App flashable zip download : https://www.androidfilehost.com/?fid=889764386195898642
Make Sure your Selinux Mode is Permissive.
Click to expand...
Click to collapse
Does this work with custom rom?
Irwan Fauzi said:
Does this work with custom rom?
Click to expand...
Click to collapse
it should work.

			
				
hello,
i turn on miui by crisbalgreece since 3 month , very good rom thanks man
i flash the zip with twrp , selinux permission is ok but have no remote app when i restart..?
Hi first very, very, very thanks mate awaiting for that long, long time works fine on Lineage latest version
Irwan Fauzi said:
Does this work with custom rom?
Click to expand...
Click to collapse
Hi
Is their away to use it in enforcing?
Sent from my LEX727 using xda premium
Why I can't add a new remote?
ROM: LineageOS 14.1 (7.1.2) last build (27/01/2018)
kaeps said:
Hi first very, very, very thanks mate awaiting for that long, long time works fine on Lineage latest version
Click to expand...
Click to collapse
Suggest?
yotalorenzo said:
Why I can't add a new remote?
ROM: LineageOS 14.1 (7.1.2) last build (27/01/2018)
Suggest?
Click to expand...
Click to collapse
Is SELinux set to permissive ?
Does anyone know how to get the list of set top boxes for non Chinese providers ? I ve been looking for a way for months and I cant find any, its always Chines regions only in custom ROMs, only EUI has other countries, its doing my head in. Its like the remote app thinks the phone is in China, I dont know why cos its not set too china, its set to the UK, I tried adding a line in the build.prop but it makes no difference.
typos1 said:
Is SELinux set to permissive ?
Does anyone know how to get the list of set top boxes for non Chinese providers ? I ve been looking for a way for months and I cant find any, its always Chines regions only in custom ROMs, only EUI has other countries, its doing my head in. Its like the remote app thinks the phone is in China, I dont know why cos its not set too china, its set to the UK, I tried adding a line in the build.prop but it makes no difference.
Click to expand...
Click to collapse
I have the same issue... Have you tried to set an universal remote to control it? (I tried but without success) that could be a way around it...
Black_p3 said:
I have the same issue... Have you tried to set an universal remote to control it? (I tried but without success) that could be a way around it...
Click to expand...
Click to collapse
You mean a universal remote app or use the learning function in the Le Eco one ?
typos1 said:
You mean a universal remote app or use the learning function in the Le Eco one ?
Click to expand...
Click to collapse
I meant that in the adding menu in this app there is an option to add an universal remote... I've only installed this an hour ago and had not really the time to test it but I saw that option...
---------- Post added at 01:46 AM ---------- Previous post was at 01:24 AM ----------
typos1 said:
You mean a universal remote app or use the learning function in the Le Eco one ?
Click to expand...
Click to collapse
I've just set it up... It's the learn function you refered to... It's working on my UPC setobox just fine...
Black_p3 said:
I meant that in the adding menu in this app there is an option to add an universal remote... I've only installed this an hour ago and had not really the time to test it but I saw that option...
---------- Post added at 01:46 AM ---------- Previous post was at 01:24 AM ----------
I've just set it up... It's the learn function you refered to... It's working on my UPC setobox just fine...
Click to expand...
Click to collapse
No, I keep meaning to but not got round to it and its jut annoying that I cant get the non Chinese list up when I could in the OEM ROM!!
Rooted ROM needed?
Got stuck on boot with Oreo 8.1 pixel ex r4
Sent from my LEX820 using Tapatalk
rohitjaiswal said:
LeEco Letv Remote Control App flashable zip download : https://www.androidfilehost.com/?fid=889764386195898642
Make Sure your Selinux Mode is Permissive.
Click to expand...
Click to collapse
Thank you for this package. It worked for me for Lineage 15.1.
This package includes Remote Control app v3.22. Is there any Remote Control apk v3.11 or earlier. Because Remote Control app does not repeat key presses after v3.11. I need to press several times to increase and decrease volume after 3.11.
I copied and installed Remote Control apk v3.11 from LeTV X600 but it did not work.
Thanks for help
Thanks
Ths
The link is dead Bro......
here is APK file for original LeTV remote control.. I extracted it from my old Le 2 and works perfect on my LeMax 2 .
You're welcome

Double tap lockscreen to open camera?

Hi guys, how to turn the settings on for double tap lockscreen button to open camera. I can't seem to find it anywhere. Am I mising something here?
Thanks.
i believe there is only double press power button
coconutxyz said:
i believe there is only double press power button
Click to expand...
Click to collapse
Yes that's what I was talking about. My bad I didn't frame the question well enough
Its in settings - buttons
DaveHTC200 said:
Its in settings - buttons
Click to expand...
Click to collapse
Where?
cs_official said:
Where?
Click to expand...
Click to collapse
Your missing the option for some reason mine is under swap buttons
TechOut said:
Your missing the option for some reason mine is under swap buttons
Click to expand...
Click to collapse
Wow. This is so strange. What Oxygen OS version are you on?
cs_official said:
Wow. This is so strange. What Oxygen OS version are you on?
Click to expand...
Click to collapse
5.1.5
---------- Post added at 10:28 AM ---------- Previous post was at 10:27 AM ----------
cs_official said:
Wow. This is so strange. What Oxygen OS version are you on?
Click to expand...
Click to collapse
Build numbers and everything are the same as well
TechOut said:
5.1.5
---------- Post added at 10:28 AM ---------- Previous post was at 10:27 AM ----------
Build numbers and everything are the same as well
Click to expand...
Click to collapse
Is this country specific?
cs_official said:
Is this country specific?
Click to expand...
Click to collapse
It may be I don't see why though
Are you in India? Because it's not available in India as the govt. Restricts the use if double pressing power button for emergency calls only. That is the reason why it isn't here.
ZeusAkash said:
Are you in India? Because it's not available in India as the govt. Restricts the use if double pressing power button for emergency calls only. That is the reason why it isn't here.
Click to expand...
Click to collapse
Forgot that had made that a required feature
Is there any way to change the device region? I got my OP6 in India, but I live in the US. Also this is kind of an important feature for me

Categories

Resources