[Q] Identifying Capacitive buttons - Galaxy S 4 Developer Discussion [Developers-Only]

Hi.
I am writing this to ask a small favor. I am working on an Xposed Module called Xposed Additions, and several users of SGS4 and Note3 has issues with Haptic Feedback as their Back and Menu button is not being registered as Capacitive. In the original Android source, these are identified by checking the PolicyFlags for WindowManagerPolicy.FLAG_VIRTUAL, however this flag does not seam to be set for these two devices when using the TouchWiz ROM's. Instead I tried checking the KeyEvent flag for KeyEvent.FLAG_VIRTUAL_HARD_KEY. But this identified all buttons as virtual, including power and volume.
These two devices using the TouchWiz ROM seams to be the only once affected by this. Even TouchWiz on other devices like SGS3 works the way it should, using both ways of checking key type for Capacitive.
Since some devices has pure hardware buttons, I cannot just hard code Haptic Feedback on Back and Menu. I need some other way to identify these two buttons on those devices, but since I don't have one, I cannot play around with the different event flags. Does anyone know how I can go about this?
Also, if someone has some idea as to where this bug might be, I really would like to know. KeyEvent.FLAG_VIRTUAL_HARD_KEY is part of the standard application API, so that one should have worked as expected as it will otherwise break any regular application that depends on it, which means that it has to be a bug.

dk_zero-cool said:
Hi.
I am writing this to ask a small favor. I am working on an Xposed Module called Xposed Additions, and several users of SGS4 and Note3 has issues with Haptic Feedback as their Back and Menu button is not being registered as Capacitive. In the original Android source, these are identified by checking the PolicyFlags for WindowManagerPolicy.FLAG_VIRTUAL, however this flag does not seam to be set for these two devices when using the TouchWiz ROM's. Instead I tried checking the KeyEvent flag for KeyEvent.FLAG_VIRTUAL_HARD_KEY. But this identified all buttons as virtual, including power and volume.
These two devices using the TouchWiz ROM seams to be the only once affected by this. Even TouchWiz on other devices like SGS3 works the way it should, using both ways of checking key type for Capacitive.
Since some devices has pure hardware buttons, I cannot just hard code Haptic Feedback on Back and Menu. I need some other way to identify these two buttons on those devices, but since I don't have one, I cannot play around with the different event flags. Does anyone know how I can go about this?
Also, if someone has some idea as to where this bug might be, I really would like to know. KeyEvent.FLAG_VIRTUAL_HARD_KEY is part of the standard application API, so that one should have worked as expected as it will otherwise break any regular application that depends on it, which means that it has to be a bug.
Click to expand...
Click to collapse
What exactly is your end goal? Are you looking to override the haptic feedback intensity or?

elesbb said:
What exactly is your end goal? Are you looking to override the haptic feedback intensity or?
Click to expand...
Click to collapse
No, I use XposedBridge to hook PhoneWindowManager.interceptKeyBeforeQueueing(). From here I add custom actions on enabled and configured key codes. at the same time, I make sure to invoke Haptic Feedback the same way done in the original source using the original method.
In the original source and in mine, is looks like this
Code:
if ((policyFlags & FLAG_VIRTUAL) != 0) {
// Perform feedback, but SGS4 and Note3 never get's here
}
Those two devices never get's past the check.

dk_zero-cool said:
No, I use XposedBridge to hook PhoneWindowManager.interceptKeyBeforeQueueing(). From here I add custom actions on enabled and configured key codes. at the same time, I make sure to invoke Haptic Feedback the same way done in the original source using the original method.
In the original source and in mine, is looks like this
Code:
if ((policyFlags & FLAG_VIRTUAL) != 0) {
// Perform feedback, but SGS4 and Note3 never get's here
}
Those two devices never get's past the check.
Click to expand...
Click to collapse
So you are saying, the back and menu keys never get detected in the method interceptKeyBeforeQueueing()? I do know that in my own apps running on my S4 i am able to detect what keys are pressed by KeyEvent.KEYCODE_BACK || KeyEvent.KEYCODE_MENU. I don't know if it matters or not if the key is virtual. So in your case it would be something like:
if(keyCode == KeyEvent.KEYCODE_BACK) {
//Do your custom action here, and call the default performHapticFeedback() method

elesbb said:
So you are saying, the back and menu keys never get detected in the method interceptKeyBeforeQueueing()? I do know that in my own apps running on my S4 i am able to detect what keys are pressed by KeyEvent.KEYCODE_BACK || KeyEvent.KEYCODE_MENU. I don't know if it matters or not if the key is virtual. So in your case it would be something like:
if(keyCode == KeyEvent.KEYCODE_BACK) {
//Do your custom action here, and call the default performHapticFeedback() method
Click to expand...
Click to collapse
No, they are detected fine. I am just not able to detect that they are Capacitive as they get registered as Hardware Buttons. And using KeyEvent.KEYCODE_BACK will not help, because some devices do have real hardware Back buttons, and those should not get Haptic Feedback on key presses.

dk_zero-cool said:
No, they are detected fine. I am just not able to detect that they are Capacitive as they get registered as Hardware Buttons. And using KeyEvent.KEYCODE_BACK will not help, because some devices do have real hardware Back buttons, and those should not get Haptic Feedback on key presses.
Click to expand...
Click to collapse
I finally understand what you are saying lol. I was lost at first but tried to help and figured and i understand what you are having issues with. Let me look at the source (smali) code i have and i will try to help more. You want haptic feedback on only capacitive buttons but not hardware buttons. Correct? I think i got it. Thanks!

elesbb said:
I finally understand what you are saying lol. I was lost at first but tried to help and figured and i understand what you are having issues with. Let me look at the source (smali) code i have and i will try to help more. You want haptic feedback on only capacitive buttons but not hardware buttons. Correct? I think i got it. Thanks!
Click to expand...
Click to collapse
That is it yes
This is how it is done originally, but that does not work on the SGS4, because it never get's pased the check.

dk_zero-cool said:
That is it yes
This is how it is done originally, but that does not work on the SGS4, because it never get's pased the check.
Click to expand...
Click to collapse
So, i looked at my ROM's (4.2.2) PhoneWindowManager.smali, and its totally different than CMs. Thats prolly why its not working.. there is a method KeyEvent.getFlags() have you tried seeing the result of that? I'm not sure what flags are passed to it but it might hold the necessary info for determining if its a virtual key or not. As of the source code in TouchWiz, there doesn't seem to be an actual condition of determining if the button is virtual or not, this may be due to it being hard coded by the system.
What you could do, is create a special conditional statement for the TouchWiz ROMs. Easiest way to do that would be to have the user tell your xposed module that it is a touchwiz ROM, then check that in the interceptKeyBeforeQueuing method of your xposed module, and if its a back or menu key via KeyEvent.KEYCODE_BACK and KeyEvent.KEYCODE_MENU then perform the custom action and perform the haptic feedback.
---------- Post added at 01:06 AM ---------- Previous post was at 01:00 AM ----------
Just checked KeyEvent flags and there is a KeyEvent.FLAG_VIRTUAL_HARD_KEY so in KeyEvent.getFlags() it might have that flag. So this might work:
interceptKeyBeforeQueuing(KeyEvent event) {
if(event.getFlags() == KeyEvent.FLAG_VIRTUAL_HARD_KEY) {
//This is a virutal key
}

elesbb said:
What you could do, is create a special conditional statement for the TouchWiz ROMs. Easiest way to do that would be to have the user tell your xposed module that it is a touchwiz ROM, then check that in the interceptKeyBeforeQueuing method of your xposed module, and if its a back or menu key via KeyEvent.KEYCODE_BACK and KeyEvent.KEYCODE_MENU then perform the custom action and perform the haptic feedback.
Click to expand...
Click to collapse
It seams to be the kernel that has issues. Got confirmation about the same issue on the Play Store SGS4 which does not have TouchWiz. So I would have to identify the Device Board and make special case there.
elesbb said:
Just checked KeyEvent flags and there is a KeyEvent.FLAG_VIRTUAL_HARD_KEY so in KeyEvent.getFlags() it might have that flag. So this might work
Click to expand...
Click to collapse
That I already did try. The FLAG_VIRTUAL_HARD_KEY flag is set for all buttons, including Hardware like Power and Volume. Like I said, there is something really strange going on with those two devices.

dk_zero-cool said:
It seams to be the kernel that has issues. Got confirmation about the same issue on the Play Store SGS4 which does not have TouchWiz. So I would have to identify the Device Board and make special case there.
That I already did try. The FLAG_VIRTUAL_HARD_KEY flag is set for all buttons, including Hardware like Power and Volume. Like I said, there is something really strange going on with those two devices.
Click to expand...
Click to collapse
The S4 prolly has the buttons hard coded in the PhoneWIndowManager since Cyanogenmod is cross device compatible they have their own methods in them.
And your surprised all keys hold that flag? Come on this is Samsung we are talking about a lot of things are strange xD lol Anyhow, that might be your best bet, get the device version either the mainboard or some other method, then make a conditional statement based off that and the keycode for which buttons are pressed.
If you need any help let me know! I have the smali code from my 4.2.2 TW ROM so i can easily look at things for ya if you'd like!

elesbb said:
And your surprised all keys hold that flag? Come on this is Samsung we are talking about a lot of things are strange xD lol Anyhow, that might be your best bet, get the device version either the mainboard or some other method, then make a conditional statement based off that and the keycode for which buttons are pressed.
Click to expand...
Click to collapse
Not really, I have had my share of Samsung (Still do, SGS3), so I am used to it by now. Especially kernel issues. Samsug properly has the worlds dumbest kernel devs working for them. And it is tipical them to just make a fast hard code instead of fixing the actual solution and make it work as intended. The worst part is that KeyEvent.getFlags() is in the Application API, so this will also break normal apps that use it.
elesbb said:
If you need any help let me know! I have the smali code from my 4.2.2 TW ROM so i can easily look at things for ya if you'd like!
Click to expand...
Click to collapse
You have been a really big help, but there one more thing if you don't mind. Samsung has Sound Feedback? Is this just triggered when doing Haptic Feedback, or is there a specific method used for this in that intercept query method?

dk_zero-cool said:
Not really, I have had my share of Samsung (Still do, SGS3), so I am used to it by now. Especially kernel issues. Samsug properly has the worlds dumbest kernel devs working for them. And it is tipical them to just make a fast hard code instead of fixing the actual solution and make it work as intended. The worst part is that KeyEvent.getFlags() is in the Application API, so this will also break normal apps that use it.
You have been a really big help, but there one more thing if you don't mind. Samsung has Sound Feedback? Is this just triggered when doing Haptic Feedback, or is there a specific method used for this in that intercept query method?
Click to expand...
Click to collapse
It might be the same method the haptic feedback is. I'm not sure 100 percent but sadly I have work today. So I will have to check when I get home, which I can't wait for already xD
Sent from my SGH-M919 using Tapatalk

@dk_zero-cool have you been able to solve the issue? I saw on Xposed Additions Changelog, but still no haptic feedback on back and menu press...

yurividal said:
@dk_zero-cool have you been able to solve the issue? I saw on Xposed Additions Changelog, but still no haptic feedback on back and menu press...
Click to expand...
Click to collapse
Not yet. But I did manage to find a Samsung Released ROM for my SGS3 with the same issue. Have not yet had time to try it, but I will start looking at that some time after Christmas. It does make it easier when I can test it on my own device while working on it.

dk_zero-cool said:
Not yet. But I did manage to find a Samsung Released ROM for my SGS3 with the same issue. Have not yet had time to try it, but I will start looking at that some time after Christmas. It does make it easier when I can test it on my own device while working on it.
Click to expand...
Click to collapse
Nice! hope you can figure that out. Keep up the owesome work! Thanks once again, and enjoy your christmas!

Related

Interactive Touch (Like the Voyager)

I did a search on PPCGeeks, XDA, and Google, and couldn't find any app to make the touch screen on the Titan interactive - similar to the way the Voyager touch screen works (quick vibrate when the screen is touched).
Is there any app like this? If not, can someone make one?
Thanks!
You would think HTC being one (if not THEE one) #1 Smartphone manufacture that would have SOMETHING similiar to the iphone or Voyager. The HTC Cube to me is very "amatuer" looking compared to the iphone and Voyager UI. Even microsoft couldn't make anything similiar...hopefully WM7 will blow us away.
I agree that the Cube looks pretty basic (that's why I won't put it on my phone, but I do have the TouchFLO).
But what I'm looking for is for the phone to do a very quick vibrate whenever the screen is touched.
That technology is called Haptics and it is much more than just the phone vibrating. Haptics allows you to physically feel a vibration exactly on the spot of the screen you are touching. Your phone has to have Haptics vibration built into it to use it and there isn't a single HTC phone out there using the said technology.
http://www.immersion.com/corporate/press_room/what_is_haptics.php
worth a shot
vaxick said:
That technology is called Haptics and it is much more than just the phone vibrating. Haptics allows you to physically feel a vibration exactly on the spot of the screen you are touching. Your phone has to have Haptics vibration built into it to use it and there isn't a single HTC phone out there using the said technology.
http://www.immersion.com/corporate/press_room/what_is_haptics.php
Click to expand...
Click to collapse
Indeed.
That said, I'm still interested in any app that does simply what whiteblazer01 asked for. I'm always looking over my fingers when I'm trying to dial a phone number. I'd be willing to give a simple touch-response app a shot.
Anyone?
ryanshepherd said:
Indeed.
That said, I'm still interested in any app that does simply what whiteblazer01 asked for. I'm always looking over my fingers when I'm trying to dial a phone number. I'd be willing to give a simple touch-response app a shot.
Anyone?
Click to expand...
Click to collapse
I have been looking into this also. Especialy when i use the media player or just the main screen shortcuts.
In the mean time I was able to find a CAB somewhere in this forum that enables vibration feedback when you dial a number. It replaces the tone with vibration. I hope you guys like it. (Sorry I dont have support for it because I am not the original creator of this CAB)
Make sure that once you install the CAB that you soft reset after.
Hope you like it.
That's exactly what it is - Haptics. Thanks for the link. The program [email protected]$ put a link to (thanks!) works on the keypad, but it really doesn't feel like the Haptics system. O well, its still cool though.
I found a link to another thread on this forum for the same thing. http://forum.xda-developers.com/showthread.php?p=1685449
whiteblazer01 said:
That's exactly what it is - Haptics. Thanks for the link. The program [email protected]$ put a link to (thanks!) works on the keypad, but it really doesn't feel like the Haptics system. O well, its still cool though.
I found a link to another thread on this forum for the same thing. http://forum.xda-developers.com/showthread.php?p=1685449
Click to expand...
Click to collapse
I was thinkin about how we can make the phone vibrate when we tap the screen in any application instead of only the dial pad.
I came up with a theory that might give us some type of haptics feed back. It might not be exactly like haptics but it could make the phone vibrate.
There is a feature in our phone that can enable the phone to play a sound when we tap the screen for any reason. I was thinking why not replace the sound with just vibration like the CAB that changes the sound to vibration on the dialer?
Im not experienced at programming, but I am willing to take a shot into making this possible. Maybe some one can get a hold of a good programmer or some one good at registry tweaks to make this possible.
Just an idea
steps said:
You would think HTC being one (if not THEE one) #1 Smartphone manufacture that would have SOMETHING similiar to the iphone or Voyager. The HTC Cube to me is very "amatuer" looking compared to the iphone and Voyager UI. Even microsoft couldn't make anything similiar...hopefully WM7 will blow us away.
Click to expand...
Click to collapse
Voyager is hella gay
[email protected]$ said:
I have been looking into this also. Especialy when i use the media player or just the main screen shortcuts.
In the mean time I was able to find a CAB somewhere in this forum that enables vibration feedback when you dial a number. It replaces the tone with vibration. I hope you guys like it. (Sorry I dont have support for it because I am not the original creator of this CAB)
Make sure that once you install the CAB that you soft reset after.
Hope you like it.
Click to expand...
Click to collapse
Great Idea [email protected]$, deffinately move forward with it, Ive been using the phonepadvibrate (essentially the same as what you posted) for well over 2 months now and love it. If you could do the same with the normal touch screen it would be amazing.
Yes its not full haptics, but in my opinion it really doesnt need to be. some sort of physical feedback (ie a slight vibration) would be great when working with the touch screen.
[email protected]$ said:
I was thinkin about how we can make the phone vibrate when we tap the screen in any application instead of only the dial pad.
I came up with a theory that might give us some type of haptics feed back. It might not be exactly like haptics but it could make the phone vibrate.
There is a feature in our phone that can enable the phone to play a sound when we tap the screen for any reason. I was thinking why not replace the sound with just vibration like the CAB that changes the sound to vibration on the dialer?
Im not experienced at programming, but I am willing to take a shot into making this possible. Maybe some one can get a hold of a good programmer or some one good at registry tweaks to make this possible.
Just an idea
Click to expand...
Click to collapse
Carlos, I definitely agree, I would love to have that whenever the screen vibrated. Although, I don't know who would be willing to do that. I remember when I had the Apache (XV6700), I thought it would be cool if someone could make the LED lights on top into indicator lights for the shift and caps keys - which never happened (I don't know how, otherwise I would do it myself).
In fact, I wonder if someone can make a cab to have the shift and caps buttons make the indicator lights turn on whenever the buttons are pushed, not just when shift lock or caps lock are enabled.
Paul
whiteblazer01 said:
Carlos, I definitely agree, I would love to have that whenever the screen vibrated. Although, I don't know who would be willing to do that. I remember when I had the Apache (XV6700), I thought it would be cool if someone could make the LED lights on top into indicator lights for the shift and caps keys - which never happened (I don't know how, otherwise I would do it myself).
In fact, I wonder if someone can make a cab to have the shift and caps buttons make the indicator lights turn on whenever the buttons are pushed, not just when shift lock or caps lock are enabled.
Paul
Click to expand...
Click to collapse
It is very possible. I found other sources and they have some sort of program / prototype that can make this happen but it doesnt work on every tap of the screen.
What I want to do is make mine work on every tap of the screen but have the ability to turn it off and on to save power. Like turning the notification for the sound to play when you tap the screen on and off.
So far I have planned some steps to do it through the registry but since I am not an expert at programming like others are here it might take a while.
But any help is very welcome to complete this project and make it available for all.
As to changing the LED's on your phone. I think no2chem and some other guys found a way to customize your LED settings, but I'm not sure if it will be custom enough to indicate caps or shift. Maybe in the near future.
whiteblazer01 said:
I did a search on PPCGeeks, XDA, and Google, and couldn't find any app to make the touch screen on the Titan interactive - similar to the way the Voyager touch screen works (quick vibrate when the screen is touched).
Is there any app like this? If not, can someone make one?
Thanks!
Click to expand...
Click to collapse
this is a oem out there i havent seen Cab for it
Dc_striker said:
this is a oem out there i havent seen Cab for it
Click to expand...
Click to collapse
I am sure you probably have. I have the copy of the program that enables this feature. I believe it is extracted from a phone that has haptic feed back. But it is an executable.
This program is faulty. It doesn't respond on every tap and has performance issues. Other then that there hasn't been another one developed.
I'm trying to find a way to fix the issues of of the one that I found. Maybe by creating a new way to enable haptic feed back like I posted on previews posts, but it might take time to develop because I'm still learning how to mess with WM Reg. and programming.
[email protected]$ said:
I am sure you probably have. I have the copy of the program that enables this feature. I believe it is extracted from a phone that has haptic feed back. But it is an executable.
This program is faulty. It doesn't respond on every tap and has performance issues. Other then that there hasn't been another one developed.
I'm trying to find a way to fix the issues of of the one that I found. Maybe by creating a new way to enable haptic feed back like I posted on previews posts, but it might take time to develop because I'm still learning how to mess with WM Reg. and programming.
Click to expand...
Click to collapse
i still havent tried the program out yet i really dont see the use for it
Let me know what you find out Carlos. I would agree with you that it may be better to have the phone vibrate maybe when any button is pushed instead of anytime the screen is tapped (or maybe have the option to choose?), and also have the option to turn it off. Lol, maybe we can call it "Taptics" instead of Haptics.
As for the LED's, I'll check with some of the other guys about what they can do. I do a lot of modding myself with other electronics (cars, motorcycles, game consoles, etc...), but I don't really get into programming all that much (although the logic makes sense to me).
-Paul
Okay, so I noticed the phone does vibrate, however, when using the keypad while in a call, it makes a different tone, and does not vibrate.
Also, is there any update on ways to make all buttons vibrate (and configurable) when pressed? And of course, an option to turn the feature off?
whiteblazer01 said:
Okay, so I noticed the phone does vibrate, however, when using the keypad while in a call, it makes a different tone, and does not vibrate.
Also, is there any update on ways to make all buttons vibrate (and configurable) when pressed? And of course, an option to turn the feature off?
Click to expand...
Click to collapse
I am not sure for all buttons but there is a CAB to make the phone vibrate when you press the screen. I tried it out and it works, but it's faulty and kills performance.
I'm still working on this project. I haven't had much time to work with it, but if any break through happens then I will post it up.

[Android] Fresh Android Kernel with/without Vibration (kernel updated hourly)

Hi,
I noticed, that after a total standstill, there is now a little movement on the nike android front. I want to contribute a little share to that.
I have set up an autobuild service for the android kernel. I automatically uploads a fresh zImage with the newest patches every full hour. I also reenabled Vibration as I never had any problems with that. If there are still people aound that need a kernel without Vibration let me know, I could set up a second build, too.
[update 03.03.10] Kernel without vibration for niki100 included.
The fresh kernel is found here.
[2010.03.31]UPDATE:
- IRQ wakeups enabled -> sleepmode 1 works
- Red led flashes when sleeping
- hw3d for eclair can be chosen in commandline (not fully functional)
- Double press cam button is home on 20key nike now
[2010.04.08]UPDATE:
- Some Keypad and defconfig changes to support ubuntu
[2010.07.01]UPDATE:
- Added .patch files to downloads for all who want to compile on their own (Recommanded! Some new devs would be very welcome here)
[2010.07.02]UPDATE:
- Removed .patch files again, they don't work as intended. Just 'git apply' the "Changes compared to stock kernel" instead...
- Fixed audio (please give me some feedback if it works now)
[2010.08.30]UPDATE:
- I just was tipped of that the service has been down for full 3 months (thx youngsien)
- Service is now online again, but will from now on only be updated once a day (should be enough)
Happy Androiding everyone!
mblaster
PS: If you don't know what a zImage is or does: It is the core of the Android operating system. It is usually in the same folder like haret.exe. You can tell your Android build to use a specific zImage in default.txt
Nice idea...
That's what we need to make good android builds working on nike.
The vibration ALLWAYS freezes de touchscreen, maybe a htc p5500 model issue.
i will follow this post hourly...
OK, I included the stock kernel without vibration in the service. Have fun!
@arleybarros: I dind't mean to post here hourly, but my server will keep the kernel up to date
the stock kernel freezes after a little vibration..
shouldn't vibration be disabled on stock release?
nik2208 said:
the stock kernel freezes after a little vibration..
shouldn't vibration be disabled on stock release?
Click to expand...
Click to collapse
Yeah, you're right. The files were exchanged by my build script... Thanks for the hint, everything should be fine now.
*bump*
New updates in first post... I hope everything works
mblaster,could you post your default.txt cmdline, please? seems like nike still does not sleep, there no signs of flashing red led on mine.
my cmdline: "pm.sleep_mode=1 mddi.width=320 mddi.height=480 hw3d.version=1"
I'm running msmissions eclair.
are you running it without rootfs? there seems to be a problem with the norootfs basefiles that prevents sleeping.
yup, norootfs.
ok, got progress, I've runned android again, now nike felt asleep and flashing red led. wakeup works too - double tap on dpad center. I think that was because there was no reboot after installing after data wipe, norootfs missing some controls on power.
also, there is another power problem - MSM's standard reboot/poweroff commands from android does not working, can we fix this? device just freezing, seems like some revision on vogue's power controlls broken ours.
rzk333 said:
also, there is another power problem - MSM's standard reboot/poweroff commands from android does not working, can we fix this? device just freezing, seems like some revision on vogue's power controlls broken ours.
Click to expand...
Click to collapse
The same here with the norootfs stuff. I tried myn's donut on sqsh and norootfs. SQSH works like a charm (powermanegement, net, reboot, powerdown), but the same build/kernel combination has the problems mentioned before...
[minor UPDATE] Double press cam is home now on 20key nike
here is that someone is going to operate the headphones??
i can't use internet.
help me.
i set my carrier.but i can't use internet
[minor UPDATE] Double press cam is home now on 20key nike
Click to expand...
Click to collapse
can we make something about "Enter" key on niki100?
I've tried to run kaiser ubuntu and stuck with login - I simply cannot press enter :/
maybe some virtual button can be mapped to something?
rzk333 said:
can we make something about "Enter" key on niki100?
I've tried to run kaiser ubuntu and stuck with login - I simply cannot press enter :/
maybe some virtual button can be mapped to something?
Click to expand...
Click to collapse
Where would you like to have the enter key? I can try to fix it in, but i am not sure where to put it.
Some ideas would be:
- Put enter on cam, press WinKey once = menu, press Winkey twice = home
- Put enter un the key on the lower right (InternetExplorer in winmo?), probably better, but i dont know for shure which button it is. Dou you get a 'z' if you press it? I guess you do:
Code:
{{KEY_Z,FALSE,FALSE,FALSE,FALSE},FALSE}, // UNKNOWN KEY
Can you confirm that you get a 'z'? I will change it to enter then.
€: If ubuntu works it would be nice if you could start a thread about it. Would be great to have a full blown linux box in your pocket
Latest Kernel is working nicely on my Nike100, really impressed with the battery life now, great job on getting sleep to work. I have a request though... would it be possible to make one more kernel for the Nike 16 key? at the moment you can't type on it or use any of the keypad as the mappings are all wrong. If it would help I can tell you what keys are currently mapped to what on the 16 key. I don't know how hard it would be to change but if it is doable I would really appreciate it as it is really the last thing that is stopping the port from being day to day usable for me and other 16 key users. Unfortunately the onscreen keypad is just a bit small for typing with daily.
Thanks, hope its not too hard a fix.
MWG_Thomas said:
Latest Kernel is working nicely on my Nike100, really impressed with the battery life now, great job on getting sleep to work. I have a request though... would it be possible to make one more kernel for the Nike 16 key? at the moment you can't type on it or use any of the keypad as the mappings are all wrong. If it would help I can tell you what keys are currently mapped to what on the 16 key. I don't know how hard it would be to change but if it is doable I would really appreciate it as it is really the last thing that is stopping the port from being day to day usable for me and other 16 key users. Unfortunately the onscreen keypad is just a bit small for typing with daily.
Thanks, hope its not too hard a fix.
Click to expand...
Click to collapse
Do you have this parameter in default.txt?
Code:
board-htcnike-keypad.keypadlayout=1
If not, add it and remove other entries concerning keypad layouts (might be there from kaiser). Most of the keys should be mapped correctly. Enter key seems to be missing. Could you try to press the button on the lower right (Internet explorer or something like that, depending on the branding of your phone) and tell me if it prints the letter 'z'?
Where would you like to have the enter key?
Click to expand...
Click to collapse
iexplorer key is useless in ubuntu and android, I think, so we can remap it, camera home key is used widely in android, you dont need to open up slider to access menus
If ubuntu works it would be nice if you could start a thread about it.
Click to expand...
Click to collapse
that would be nice too, now we can run LXDE or other X windowmanager compiled for ARM, ubuntu boots up fine and works like on kaiser. you can learn how this happen for ARM in Omegamoon's blog
The patched kernels will be ready on my download page in a few minutes (compiling...). Please let me know if it worked.

[Q] Wake up device using MENU or BACK virtual button

Hi guys...
I've been searching everywhere and no success so far...
Is it possible?
I've tried several files there: /system/usr/keylayout
You can't do that due to some certain restrictions and also the fact that the hardware button is required for every Android phone so it may be embedded deep in the system and changing that would be very difficult. I can't just say straight out no as their are people who always find a work around.
Hit Thanks if I helped you.
Taimur Akmal said:
You can't do that due to some certain restrictions and also the fact that the hardware button is required for every Android phone so it may be embedded deep in the system and changing that would be very difficult. I can't just say straight out no as their are people who always find a work around.
Hit Thanks if I helped you.
Click to expand...
Click to collapse
Thanks
I can't see why not. Some kernels on the hox featured sweep to wake which allowed you to wake the device by sweeping across the capacitive buttons. Was a little bit buggy and affected deep sleep though.
Sent from my Nexus 7 using Tapatalk HD

{Help] Soft keys dead, Touchscreen working fine. Suggestions for a ROM like Nexus 4

Greetings my fellow XDA experts,
I have a Galaxy S2 (i9100) International version on the NeatROM 4.8 ( XXLSW). What has happened is that my Softkeys are dead and unresponsive.
There is no illumination and response from them. So I have a phone without the menu and back buttons, which implies that I have a f**ked up iPhone like phone with just one Home button to function with.
I took the phone to the service center and they said it's a single piece with the display so the entire display would need to be replaced which is unreasonable and needless since the display works absolutely perfect.
So I was thinking of a remedy in terms of the ROM I use with the phone. Is there any custom ROM available for the S2 which would enable me to use a part of the display as the MENU and BACK buttons itself ? Like the Nexus 4 has ? I don't mind losing out on screen space to enable me to get those buttons back.
Please do suggest me any such ROM's or methods through which I can use the phone without having to change a fully functional touchscreen display. Spending so much just to get the Soft key functionality back is plain ridiculous and a pure manufacturing drawback from Samsung. Yuck
Anyways, please do help with any pointers.
Thanks and Cheers !
HellRazorGod said:
Greetings my fellow XDA experts,
I have a Galaxy S2 (i9100) International version on the NeatROM 4.8 ( XXLSW). What has happened is that my Softkeys are dead and unresponsive.
There is no illumination and response from them. So I have a phone without the menu and back buttons, which implies that I have a f**ked up iPhone like phone with just one Home button to function with.
I took the phone to the service center and they said it's a single piece with the display so the entire display would need to be replaced which is unreasonable and needless since the display works absolutely perfect.
So I was thinking of a remedy in terms of the ROM I use with the phone. Is there any custom ROM available for the S2 which would enable me to use a part of the display as the MENU and BACK buttons itself ? Like the Nexus 4 has ? I don't mind losing out on screen space to enable me to get those buttons back.
Please do suggest me any such ROM's or methods through which I can use the phone without having to change a fully functional touchscreen display. Spending so much just to get the Soft key functionality back is plain ridiculous and a pure manufacturing drawback from Samsung. Yuck
Anyways, please do help with any pointers.
Thanks and Cheers !
Click to expand...
Click to collapse
You'll be hard pressed to find a 4.2.2 ROM that doesn't have some sort of on-screen control. Do a bit of searching around on XDA of all the 4.2.2 ROMs, look at screenshots etc. Navigation bar is the same style as a Nexus 4. Pie controls are a method of on-screen control. AOKP ribbons are also for on screen control. There's probably more. Then there exist ROM's which attempt to mimic the AOSP, Nexus-style experience. Plenty to choose from.
Hopper8 said:
You'll be hard pressed to find a 4.2.2 ROM that doesn't have some sort of on-screen control. Do a bit of searching around on XDA of all the 4.2.2 ROMs, look at screenshots etc. Navigation bar is the same style as a Nexus 4. Pie controls are a method of on-screen control. AOKP ribbons are also for on screen control. There's probably more. Then there exist ROM's which attempt to mimic the AOSP, Nexus-style experience. Plenty to choose from.
Click to expand...
Click to collapse
So basically My ROM territory is now limited to any 4.2.2 AOSP/AOKP Rom's ? Do all of them have on-screen navigation?
Like the Parandroid? No more Sammy Rom's obviously.
HellRazorGod said:
So basically My ROM territory is now limited to any 4.2.2 AOSP/AOKP Rom's ? Do all of them have on-screen navigation?
Like the Parandroid? No more Sammy Rom's obviously.
Click to expand...
Click to collapse
Hmm well I imagine you could find some lower than 4.2.2 with those controls if you wanted to, but no need to if you don't want. You can use ParanoidAndroid if you want, search my posts for a link for i9100, I posted it yesterday or the day before I think. It won't be the first link you find on Google thats for sure, version 3.6 is the latest. As far as 'limited to 4.2.2 AOSP/AOKP'.... Depends how you see it. I don't see it as a 'limitation'. Start here: http://forum.xda-developers.com/showthread.php?p=23231772. Go through AOKP and AOSP till you find something you like. Bear in mind that the AOKP contains waaay more than just plain AOKP, there's hybrid (combos of CM,AOKP,PA, AOSP usually) and all sorts in there.
Enable Navigation Bar in AOSP/AOKP roms etc for getting these functions back.
Alternatively if you want navigation bar in Sammy Roms you can still have them , look for soft key enabler in play store or else you can edit build.prop of your phone , there will be option of soft keys , change it from 0 to 1.
Use pimp my rom it have a option for on screen buttons (back menu and recents) so you can have any rom
Sent from my GT-I9100 using xda premium
S2 soft keys not working
Issue seems to be related to the usb charging receptacle. As long as a good charging cable is connected, the soft keys work. They work for a short time after unplugging and then stop working again.
HellRazorGod said:
Greetings my fellow XDA experts,
I have a Galaxy S2 (i9100) International version on the NeatROM 4.8 ( XXLSW). What has happened is that my Softkeys are dead and unresponsive.
There is no illumination and response from them. So I have a phone without the menu and back buttons, which implies that I have a f**ked up iPhone like phone with just one Home button to function with.
I took the phone to the service center and they said it's a single piece with the display so the entire display would need to be replaced which is unreasonable and needless since the display works absolutely perfect.
So I was thinking of a remedy in terms of the ROM I use with the phone. Is there any custom ROM available for the S2 which would enable me to use a part of the display as the MENU and BACK buttons itself ? Like the Nexus 4 has ? I don't mind losing out on screen space to enable me to get those buttons back.
Please do suggest me any such ROM's or methods through which I can use the phone without having to change a fully functional touchscreen display. Spending so much just to get the Soft key functionality back is plain ridiculous and a pure manufacturing drawback from Samsung. Yuck
Anyways, please do help with any pointers.
Thanks and Cheers !
Click to expand...
Click to collapse

[HOW TO] Increase touch sensitivity and Double-Tap-To-Wake Functionality(Force Touch)

First of all, thanks to @xtermmin for pointing me in the right direction for this.
Steps to increase touch sensitivity and get DTTW functioning better:
Download Shortcut Master Lite
Hit the ellipsis at the top right and click App Explorer (Yes to the error)
Tap anywhere to get the loading circle to go away and find something called Force Touch
In the Force Touch menu, select ZteLCDPressureSettings and hit Launch
Here you will find some options.
Tap Pressure Sensitivity and move the red dot slider all the way to the left where the green "Light" is.
Back out of the menu and you are done.
There are some other things under features that may be of interest as well to some people.
Additionally, there are a couple other items in the Force Touch menu that could play a role in ROMs down the line. The "Press Image" option has a toggle within that item but it does not stick upon backing out and reentering the menu.
If you find anything else of interest, please let everyone know so we can make this the best phone we've ever owned.
Thanks!
Awesome, T2W works better now.... Thanks
P. S. Adding your thread to my all in one place guides.
xgerryx said:
First of all, thanks to @xtermmin for pointing me in the right direction for this.
Steps to increase touch sensitivity and get DTTW functioning better:
Download Shortcut Master Lite
Hit the ellipsis at the top right and click App Explorer (Yes to the error)
Tap anywhere to get the loading circle to go away and find something called Force Touch
In the Force Touch menu, select ZteLCDPressureSettings and hit Launch
Here you will find some options.
Tap Pressure Sensitivity and move the red dot slider all the way to the left where the green "Light" is.
Back out of the menu and you are done.
There are some other things under features that may be of interest as well to some people.
Additionally, there are a couple other items in the Force Touch menu that could play a role in ROMs down the line. The "Press Image" option has a toggle within that item but it does not stick upon backing out and reentering the menu.
If you find anything else of interest, please let everyone know so we can make this the best phone we've ever owned.
Thanks!
Click to expand...
Click to collapse
With the shortcut master i had several loading problems, i used QuickshortcutMaker and this is more easy, Thanks !
xgerryx said:
First of all, thanks to @xtermmin for pointing me in the right direction for this.
Steps to increase touch sensitivity and get DTTW functioning better:
Download Shortcut Master Lite
Hit the ellipsis at the top right and click App Explorer (Yes to the error)
Tap anywhere to get the loading circle to go away and find something called Force Touch
In the Force Touch menu, select ZteLCDPressureSettings and hit Launch
Here you will find some options.
Tap Pressure Sensitivity and move the red dot slider all the way to the left where the green "Light" is.
Back out of the menu and you are done.
There are some other things under features that may be of interest as well to some people.
Additionally, there are a couple other items in the Force Touch menu that could play a role in ROMs down the line. The "Press Image" option has a toggle within that item but it does not stick upon backing out and reentering the menu.
If you find anything else of interest, please let everyone know so we can make this the best phone we've ever owned.
Thanks!
Click to expand...
Click to collapse
This definitely helped! Kinda odd that there is a slight delay from when you double tap and when it actually wakes. I remember the LG G2 responding more quickly with this feature. Also miss the double tap to lock screen too that almost no other phone had (though with nova launcher and an app, you can do this). Regardless, I'm glad the functionality is there.
What's interesting about this little hack is that it clearly is using the force touch settings that will be found in the 6GB RAM model that has a force touch display. Funny how it remains in the ROM anyway, just tucked away since this model doesn't use force touch.
Can I remove the vibration when I use the double tap to wake?
This has made 0 difference for me. I've got a 64gb US variant. I've also noticed double tap to wake stops working when the phone is in Doze. Anyone else have this issue?
Same same with doze, but when my phone isn't deeply asleep this tip indeed increased touch sensitivity.
Sent from my ZTE A2017U
DrakenFX said:
Awesome, T2W works better now.... Thanks
P. S. Adding your thread to my all in one place guides.
Click to expand...
Click to collapse
Did you know this app is also present on the a2017u usa version?
But it is not doing anything...
manu7irl said:
Did you know this app is also present on the a2017u usa version?
But it is not doing anything...
Click to expand...
Click to collapse
I'm using the a2017u LoL always has been.
tolymatev said:
Can I remove the vibration when I use the double tap to wake?
Click to expand...
Click to collapse
Is there a setting to disable the vibration with double tap to wake?
I've tried the mod but don't see any differences for better response for the double tap to wake.
Sent from my iPad Air 2
I don't have anything like force touch in quick shortmaster app or shortcut master lite. I'm on european B03 update... Can anyone confirm this?
kodrnusa said:
I don't have anything like force touch in quick shortmaster app or shortcut master lite. I'm on european B03 update... Can anyone confirm this?
Click to expand...
Click to collapse
It's actually there as been always and with B02 software version.
Do hard reset if not see it
Something get wrong with upgrade in your case.
pklee said:
Is there a setting to disable the vibration with double tap to wake?
Click to expand...
Click to collapse
Don't have vibration with double tap.
How did you get it
paatha13 said:
Don't have vibration with double tap.
How did you get it
Click to expand...
Click to collapse
It's there by default on the US model, at least.
While this definitely improves DT2W functionality, it's still temperamental. I find that now it responds best to very light touches, but harder taps are ignored. If I tweak it to be less sensitive, it does exactly that: it requires a harder touch at all times. Why can't it just respond to a range of touches? My G3 worked just fine in this regard.
rczrider said:
It's there by default on the US model, at least.
While this definitely improves DT2W functionality, it's still temperamental. I find that now it responds best to very light touches, but harder taps are ignored. If I tweak it to be less sensitive, it does exactly that: it requires a harder touch at all times. Why can't it just respond to a range of touches? My G3 worked just fine in this regard.
Click to expand...
Click to collapse
Totally agree with this. It's still very inconsistent, but mine does work if I slam it twice as well as tap it lightly twice. It doesnt always work and it's still delayed. This was sort of a bandaid for a bigger problem though. I hope CM, and ....probably nothing else? at this point...can address it further.
rczrider said:
It's there by default on the US model, at least.
While this definitely improves DT2W functionality, it's still temperamental. I find that now it responds best to very light touches, but harder taps are ignored. If I tweak it to be less sensitive, it does exactly that: it requires a harder touch at all times. Why can't it just respond to a range of touches? My G3 worked just fine in this regard.
Click to expand...
Click to collapse
At EU version I don't see any option for vibration so far.
But totally agree I would like to be more response to a range of touch.
I remember when had LG flex 2 was better implementation than ZTE.
Hope future update improve that.
Sent from my iPad Air 2
paatha13 said:
At EU version I don't see any option for vibration so far.
But totally agree I would like to be more response to a range of touch.
I remember when had LG flex 2 was better implementation than ZTE.
Hope future update improve that.
Click to expand...
Click to collapse
Quite honestly, the Axon 7's story is perpetually: "[insert company here] did a better job of implementing [insert feature here]". There is very little (if anything) that the Axon 7 does better than the big manufacturers, IMO. It does a passable (sometimes even decent) job of most things, though - and at an appreciable discount - which is why I still have mine. It's a budget flagship. It's high-trim Toyota versus a Lexus. Add to that the potential for improvements via software (which is the source of many of my complaints, really), and I think it's a solid buy with quirks I'm willing to live with for a little while as ZTE steps up and makes improvements.
Yep exactly from hardware point is very very capable device but from software although it's pretty good level but there's still staff for many improvements.
Axon 7 is my first Chinese smartphone from Chinese company until now and I'm quite pleased with the all package offering having it 5-6 days,but I would like to see from ZTE much more effort and listening the user base and bring as much improvement and tweaks to the software.
Sent from my iPad Air 2
paatha13 said:
It's actually there as been always and with B02 software version.
Do hard reset if not see it
Something get wrong with upgrade in your case.
I already did factory reset. And then again . No such setting in quickshortmaker. I can post pics.. Weird...
Edit..
Did change language to English and found it ?
Click to expand...
Click to collapse
I notice no difference in the week that I used this tweak. So I just put this settings back. Yup, still no difference to me.
Sent from my ZTE A2017U using Tapatalk

Categories

Resources