[Completed] [Mi4c] [RR 5.8.0 + Android 7.1.1] Now on Tap for Hardware Home Button - XDA Assist

Hello,
I've a Xiaomi Mi4c 3GB, flashed recently with Resurrection Remix 5.8.0 and Android Nougat 7.1.1 (security patch 5 December 16 - 3.10.104-#GetResurrected Kernel). The flash is done using TWRP, and OpenGapps ARM64 for Android 7.1.1 in it's PICO version (as suggested by the modder). Currently I'm in Italian (language on which now on tap is available) but I tested also with English US.
Even if enabled as suggested in other threads in this forum, Now on Tap (or Search on Screen) does not work with hardware Home button. When I long press Home, the system opens Google Now application. I've tried to enable Software navigation bar (qemu.hw.mainkeys=0 in build.prop), and software Home correctly opens the Now on Tap functionality.
I've tried also to set VIRTUAL on keylayout/General.kl to try to emulate software home with hardware Home, but it does not work.
All configurations seems correct, the only incongruence is that in Input and Voice Assistant instead of "Google", it shows "launcher3" (I've selected Google Pixel Launcher as default launcher). But actually Now on Tap works with software Home
Do you have any suggestions? How can I make Now on Tap works with Hardware Home?
Than you in advance for any help!

nirvana1289 said:
Hello,
I've a Xiaomi Mi4c 3GB, flashed recently with Resurrection Remix 5.8.0 and Android Nougat 7.1.1 (security patch 5 December 16 - 3.10.104-#GetResurrected Kernel). The flash is done using TWRP, and OpenGapps ARM64 for Android 7.1.1 in it's PICO version (as suggested by the modder). Currently I'm in Italian (language on which now on tap is available) but I tested also with English US.
Even if enabled as suggested in other threads in this forum, Now on Tap (or Search on Screen) does not work with hardware Home button. When I long press Home, the system opens Google Now application. I've tried to enable Software navigation bar (qemu.hw.mainkeys=0 in build.prop), and software Home correctly opens the Now on Tap functionality.
I've tried also to set VIRTUAL on keylayout/General.kl to try to emulate software home with hardware Home, but it does not work.
All configurations seems correct, the only incongruence is that in Input and Voice Assistant instead of "Google", it shows "launcher3" (I've selected Google Pixel Launcher as default launcher). But actually Now on Tap works with software Home
Do you have any suggestions? How can I make Now on Tap works with Hardware Home?
Than you in advance for any help!
Click to expand...
Click to collapse
Hello,
The maintainer of RR for your device needs to add an overlay for your device tree or common while building.
Regards
Vatsal,
Forum Moderator.

Hi, thanks for your answer. I have access to the repository of the ROM, and I think I will have to compile the ROM by myself, but I don't get what you mean by making an overlay of the device tree...
Or better, which is the component that should be overlayed that is not already there? (sorry I'm a noob...)
The repo is located on Github: github.com/AndropaX/android_device_xiaomi_libra branch RR-7.1
Thank you again...

nirvana1289 said:
Hi, thanks for your answer. I have access to the repository of the ROM, and I think I will have to compile the ROM by myself, but I don't get what you mean by making an overlay of the device tree...
Or better, which is the component that should be overlayed that is not already there? (sorry I'm a noob...)
The repo is located on Github: github.com/AndropaX/android_device_xiaomi_libra branch RR-7.1
Thank you again...
Click to expand...
Click to collapse
Hello,
You need to add
Code:
<bool name="config_hwKeysPref">true</bool>
at overlay/frameworks/base/core/res/res/values/config.xml of your device tree/common tree.
Regards
Vatsal,
Forum Moderator.

Thank you!
I have prepared a Pull request with your suggestion. Let's hope it will be accepted! I let you know if it works so you can mark the 3d as solved.

I'm reporting this for future reference.
Vatsal said:
Code:
<bool name="config_hwKeysPref">true</bool>
at overlay/frameworks/base/core/res/res/values/config.xml of your device tree/common tree.
Click to expand...
Click to collapse
@AndropaX (the repo owner) reports that this key is not supported by Resurrection Remix Rom.

nirvana1289 said:
I'm reporting this for future reference.
@AndropaX (the repo owner) reports that this key is not supported by Resurrection Remix Rom.
Click to expand...
Click to collapse
Hello,
If your device has hardware keys support, it will work.
Please link me your pull.
Thanks
Regards
Vatsal,
Forum Moderator.

This is the pull request: Pull Request on Github
This is the issue I opened on the same repo: Issue on Github
Thank you again @Vatsal

nirvana1289 said:
This is the pull request: Pull Request on Github
This is the issue I opened on the same repo: Issue on Github
Thank you again @Vatsal
Click to expand...
Click to collapse
Hello,
I just checked on my RR build. Yeah he is right we don't need that anymore, my bad.
You can assign it from Hardware keys options itself.
I am attaching a screenshot.

Yeeeeeee
You are right!!! Thank you!!! I was trying to configure it in the wrong menu!
Edit:
Found the solution!
The configuration to be checked is inside Resurrection Remix configuration utility:
Settings -> Configuration (Resurrection Remix) -> Buttons (the Italian translation is a little misleading tough) tab (7th tab) -> Hardware keys -> Home Button
On action on long press, select personalized action, there should appear Google Now on Tap. So it is not a bug. The same configuration must be set also in Android settings (Voice and assistant), selecting Google as default assistant.

Related

[Q&A] [OFFICIAL] Flyme Nexus5 | KK 4.4 | Flyme 3.8.2R | ROM [2014-10-2]

Q&A for [OFFICIAL] Flyme Nexus5 | KK 4.4 | Flyme 3.8.2R | ROM [2014-10-2]
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [OFFICIAL] Flyme Nexus5 | KK 4.4 | Flyme 3.8.2R | ROM [2014-10-2]. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
bootloop problem after flash the kernel
Thanks for sharing this amazing Rom
I have a problem, after I flashed ElementalX-N5 1.08.zip the device go into bootloop,
I solve it by re-flash the Rom file, but what is the problem, why my device didn't accept the ElementalX Kernel ?!
and what is the default kernel of this Flyme Rom, is It better than ElementalX Kernel in the Battery Saving ?!
I need to install kernel ElementalX to support The HDR google Camera Feature, bacause the Flyme Rom has a bad camera !
any Support please ?
Curiosity
This is the only android based rom that works on my hardware bricked Nexus 5 (moisture maybe); Sailfish, B2G and Ubuntu Touch works too, but the stock rom and other android based roms screen locks as soon configuration starts (usually touching in "next" after selecting language). I sense that porting the FLymeOS's app settings/configuration could reach any other rom run or something... Any ideas?
Thanks in advance, and sorry for my poor english
M_Nexus5 said:
Thanks for sharing this amazing Rom
I have a problem, after I flashed ElementalX-N5 1.08.zip the device go into bootloop,
I solve it by re-flash the Rom file, but what is the problem, why my device didn't accept the ElementalX Kernel ?!
and what is the default kernel of this Flyme Rom, is It better than ElementalX Kernel in the Battery Saving ?!
I need to install kernel ElementalX to support The HDR google Camera Feature, bacause the Flyme Rom has a bad camera !
any Support please ?
Click to expand...
Click to collapse
You should use ElementalX CM version
Vpabc said:
You should use ElementalX CM version
Click to expand...
Click to collapse
Yes that is what I used, I download it from the this thread so shoud is for CM
And also I tried with the new version 1.12, I download it from ElementalX page, the link was under the CM section ! But same problem, my device go into bootloop !
I have other question please, I changed the dpi of play store to 480 by using the Xposed module, but still I can't get some of Apps when I use the search box of play store !
Shoud change the whole dpi of system & applications or need to change another google app to solve this problem ?!
Thaaanks for helping
This is the bug and meizu say flyme4.0 for nexus 5 will solve this problem
Vpabc said:
This is the bug and meizu say flyme4.0 for nexus 5 will solve this problem
Click to expand...
Click to collapse
thanks, we are waiting for the next version
is there update in the soon
or developers left him ...
Flyme OS not working on my Nexus 5
I flashed the 3.8.2R Flyme OS zip but when it boots, on the language selection screen, it gives me the error "The process com.android.system" has stopped working every time i press NEXT after selecting a language. Restarting didn't help, Clearing Cache/Dalvik didn't help either.
I tried this on the Stock kernel in case that helps someone in helping me!
sp268_simple said:
I flashed the 3.8.2R Flyme OS zip but when it boots, on the language selection screen, it gives me the error "The process com.android.system" has stopped working every time i press NEXT after selecting a language. Restarting didn't help, Clearing Cache/Dalvik didn't help either.
I tried this on the Stock kernel in case that helps someone in helping me!
Click to expand...
Click to collapse
try to do wipe, install flyme, restarts, set the language, then all that flash the gapps
ferozzzz said:
try to do wipe, install flyme, restarts, set the language, then all that flash the gapps
Click to expand...
Click to collapse
Still doesn't work. Once i flash gapps, no matter when i flash them, the phone won't go past the Language selection screen...
sp268_simple said:
Still doesn't work. Once i flash gapps, no matter when i flash them, the phone won't go past the Language selection screen...
Click to expand...
Click to collapse
If you choose the language before flashing gapps no longer asks you choose it again (the language selection screen does not appear)
ferozzzz said:
If you choose the language before flashing gapps no longer asks you choose it again (the language selection screen does not appear)
Click to expand...
Click to collapse
Well that's weird.. Coz i swear it asks me to select the language once again after i flash the gapps.. And that's after already using the phone without gapps and setting everything up beforehand..
When update to flyme4
Problems with immersive mode on fullscreen games
Hi. I flashed Flyme OS a couple of days ago, and I have to say I am loving every single moment of this. Love the interface, love the speed and even the battery life is pretty impressive compared some other ROMS!
Although, I have been experiencing an extremely annoying bug with fullscreen games. I play COC on my phone on a daily basis and when I open the game, the onscreen buttons (Back, Home and Recent) buttons don't disappear like they are supposed to on android 4.4. They stay fixed and visible.
Now, I normally wouldn't mind this, if the full game interface is visible. The problem is that the onscreen buttons are fixed on top of the game, which means that part of the screen is hidden behind the buttons. It is really difficult. I tried a couple of stuff I found on google to fix it.
The only thing I found closest to a fix is to disable the whole onscreen buttons thingy by setting the value of "mu.hw.mainkeys" to "1" in "build.prop" file. Then I installed the "PIE CONTROL" app by "coolace" from the Playstore. It have been working really well for now. But, since it includes installing an external app, which takes up more memory to run I was hoping you guys could look into this and suggest a way to fix this. I like to keep my device clean without installing too much extra applications!
Other than this little problem, I find this as a very top notch ROM. Good work to the developers. Keep it coming
Hope to hear from you guys, and I look forward to newer versions of this ROM, especially one ported with the latest Lollipop release!
Thank You.
---------- Post added at 03:14 PM ---------- Previous post was at 03:06 PM ----------
sp268_simple said:
Well that's weird.. Coz i swear it asks me to select the language once again after i flash the gapps.. And that's after already using the phone without gapps and setting everything up beforehand..
Click to expand...
Click to collapse
I had this problem at the beginning too. But, I downloaded the latest PA Gapps pack and installed it. Worked like a charm after that!
Here is the download link:
http://d-h.st/qOq
This is the PICO package, which means that it will only install the most basic gapps like playstore and play services that you absolutely need to run the system properly! You will have to download the other apps like Gmail and Hangouts from paystore.
Has anyone here succesfully install flyme on lollipop especially with multirom? I always get bootloader error.
I'm using modified TWRP instqlled by multirom. Thanks
Mod brought me here @Adizzzle
JalmiNyondong1933 said:
Has anyone here succesfully install flyme on lollipop especially with multirom? I always get bootloader error.
I'm using modified TWRP instqlled by multirom. Thanks
Mod brought me here @Adizzzle
Click to expand...
Click to collapse
Yes. I installed after lollipop update. Got that error in the first try too!
When flashing the lollipop update, you flashed the hhz12d bootloader. All you have to do is flash the hhz11k bootloader using fastboot. Worked for me after that.
Here is the link where I downloaded hhz11k bootloader:
http://downloadandroidrom.com/file/Nexus5/bootloader/bootloader-hammerhead-hhz11k.zip
:good:
he means cm11. Its work, really, writen now, from flyme, with stock 5.0 and multirom
[EDIT: MY PREVIOUS QUESTION WAS ALREADY ANSWERED] [IGNORE THE ATTACHED IMAGE]
hi my friends! I have 2 questions:
1. I can't make the app "operadora ddd" work with this rom for some reason.
2. Fullscreen mode is definitely broken
Is it normal?
very good
today I used it very good..

[Q&A] [ROM][4.4.4][10/13][OFFICIAL] GzRoms -Validus- [6.2 Testing][Falcon]

Q&A for [ROM][4.4.4][10/13][OFFICIAL] GzRoms -Validus- [6.2 Testing][Falcon]
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [ROM][4.4.4][10/13][OFFICIAL] GzRoms -Validus- [6.2 Testing][Falcon]. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
update
So how do i update this rom im on 4.4.4l version 6.1 moto g and are u guys going to make one for android l just wondering love this rom best one ive had for this device
about validus
in case the maintainer finds this post, testing the latest milestone (6.2) on falcon (moto g, european version), found a few bugs :
- the setting to disable wifi in profiles and power saving mode for the battery (in the void options) is just ignored. When disabling wifi manually, it comes back everytime I exit the lock screen (maybe it's because of another setting but I couldn't find it).
- in sound option, music effects shows viper audio. When clicking on it, it proposes to install its driver automatically. Except that it doesn't work, since there is no log it's hard to know why. I tried the 3 proposed driver, to reinstall busybox (from the playstore), nothing worked.
- And the touch screen suddenly stopped working in 1 situation, I don't know why. I received a mail, when I tried toclick the screen it didn't work, and I couldn't use the touch screen anymore even after puting the phone to sleep and wake it up again, so I had to do a hard reset (power button pressed for a few seconds).
I'll try to keep on using it, but if the touche screen bug comes back I guess I'll have to do something... maybe try another kernel then, it seems related to the kernel...
http://forum.xda-developers.com/showpost.php?p=57054547&postcount=112
This 6.2 MS is built with what version of DK kernel? 1, 1.1 or 2?
Everything else works fine atm.
request
I just want to say that i have been using this rom as my daily driver since 2 days. no major bugs..
just wanted to request that the theme of the settings app should be changed back to the material white again. thank you
I'm using validus 5.0.2, build date says Jan 1. I noticed in a post you said you added the option to change nav bar dimensions, but I don't see it anywhere. Also "performance" under settings is empty.
I guess the questions asked here are of so little importance they don't deserve to be answered...
Can't post screenshot.
Groups still themed white text on white BG.
Rom, gapps, kernel so anything else I forgot to install apart from these?
Boost xt1031
Are You Going To fix Moto G xt1031 CDMA Data, Calls And Text Soon?
I just flashed latest build 1/14/2015 but WiFi not turning on pls help meh alone with ROM I flashed su and donkey kernel nothing helped meh
no Pie control in new build ?
Moto g consumer cellular xt1034 lollipop
anyone please let me know, I have MOTO G CONSUMER CELLULAR XT1034 UNLOCKED Device can i install original LOLLIPOP for my device (NOT ROM)
dracula1520 said:
no Pie control in new build ?
Click to expand...
Click to collapse
The latest build does have pie control, and I love the look of it. Although, I can't figure out how to configure 2nd layer buttons.
Boot loop
Hi guys,
thanks for this ROM but...
I can't understand.... is it for xt1032?
Cause I tried to flash latest build (v7.0) and it stucks on the boot logo... waited for 20 minutes...
any suggestions?
in latest build I cant find PIE controls. Maybe you forgot to include them? Apart from that thanks validus team for this awesome rom! Yesterday I made the jump from milestone 6.2 to lollipop and I am impressed
@koradiavatsal
Just reporting...
Bootloop after flashing the latest version with or without gapps.
koradiavatsal said:
A new test build
This will probably boot. Please confirm
Click to expand...
Click to collapse
@koradiavatsal Yup, boots all right!
@koradiavatsal I've just downloaded the latest version, I'll report back ASAP.

[ROM] [6.0.1] Unofficial AICP11 MM - Jiayu S3 Plus

AICP is a free, community built distribution of Android 6.0.1 (Marshmallow) which greatly extends the capabilities of your phone.
This is the unofficial Build of AICP 11 MM for Jiayu S3 Plus ( not for the normal S3 , that packs the 6752)
​
Code:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Installation Instructions:
Download rom from here: https://www.facebook.com/MediatekAndroidDevelopers/
OR from xda DevDB (DOWNLOAD Tab)
Download Gapps from OpenGapps: http://opengapps.org/, choose Arm64 and Android 6.0
boot to recovery
wipe data if you are not coming from AICP 11 already
install rom and gapps
reboot
XDA:DevDB Information
[ROM] [6.0.1] Unofficial AICP11 MM - Jiayu S3 Plus, ROM for the Android General
Contributors
superdragonpt, fire855, DerTeufel1980
Source Code: https://github.com/MediatekAndroidDevelopers
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Android 5.x.y installed, custom recovery installed
Version Information
Status: Stable
Created 2016-07-26
Last Updated 2016-07-26
Changelog / Patch's
Changelogs:
Build 2 : 20160810
Source Synced ( (including Security Updates )
Fixed: Bluetooth (headset , car-BT)
Fixed: Internal Android VPN Client (tested on PPPT protocol)
Fixed Wi-Fi (random connection drops)
Added option to select 2.4 or 5Ghz Wifi frequency to advanced wifi options
Fixed FMRadio (merged previous patch)
Minimal F.A.Q
Q: After ROM boot up, I'm getting SetUP wizard errors / other Gapps FC / Black screen on first boot, why ?
A: On marshmallow based Roms, you need to flash ROM and gapps at the same time
TWRP even allows you to flash multiple .zip files
Q: Why no Mediatek Engineering Menu?
A: Its Mediatek proprietary, ugly , not needed on our builds.
Relevant features used on Mediatek E. Menu have been ported to our builds already using aosp / our implementations ( Sensors calibration , Band Mode, etc)
Q: Do we get The Fast Charge you guys made on Lollipop RC's ?
A: Yes, Fast Charge implementation was implemented on our MM builds
Q: App "x" is not working, why?
A: First make sure the app works under Marshmallow
Q: Something wrong with my Bluetooth, can't connect /pair with my "x" device , car-BT
A: Bluetooth should be backwards compatible , some OEMs don't also follow some guidelines , surely can be improved.
Post your BT model, Car model and year to help us out determining compatibility issues
Q: When using adoptable storage feature, my widgets fail loading, apps get slow , why?
A: Because NAND is much more faster than any SdCard, for better results you need a good Class 10 SDCard
Q: Some ROM translations are missing from mainstream, your custom features are not translated into my language, what can I do?
A: If you can translate into your language, send us the .XML (s) file (s) with translated strings and we'll be sure to add those into our builds.
Of course your name will be added on the chamgelog.
Q: Why there's no development options ?
A: Go to Settings >about phone, and tap 7 times on 'Build Number'
A: When device gets into deep sleep, my WiFi gets disconnected, and takes couple seconds to get back ON , after turning screen on again, why?
Q: Thank Google , its an Marshmallow new Feature.
Thanks for this great effort.
Many Roms, Much Flash. Wow.
Thanks again for all the support
Build Up
Happy flashing
superdragonpt said:
Build Up
Happy flashing
Click to expand...
Click to collapse
Hi!
Thanks for bringing these new devices to aicp
If you want to be a maintainer for aicp, we can bring these devices in and give official support and nightlies or weekly builds?
You can contact me or @semdoc. Maybe better him, because he's our main device guy
I'm now on AICP. Super work guys. One question... How do i enter recovery? There is no option on the power menu nor is the option to add it in settings? Thanks in advance.
Thanks. Really nice and smooth there.
there a way to resize the lock screen clock? It's too big and not showing the numbers.
Also anyway to close all recent apps instead of going through one by one?
Thanks for great ROM.
For lockscreen clock
Currently a Aicp issue.
Go to Settings >> Aicp >> slide the panel >>> lockscreen
Adjust the clock size, no matter the value it will fix the issue once you try to adjust.
There is also a recents menu in Aicp Extras where you can set a clear all button
You guys aren't exploring all the sh!t
@superdragonpt: try to include the lockscreen fix in main page, as this is a known and at moment Aicp issue. And easy to fix
genesisalgor said:
For lockscreen clock
Currently a Aicp issue.
Go to Settings >> Aicp >> slide the panel >>> lockscreen
Adjust the clock size, no matter the value it will fix the issue once you try to adjust.
There is also a recents menu in Aicp Extras where you can set a clear all button
You guys aren't exploring all the sh!t
@superdragonpt: try to include the lockscreen fix in main page, as this is a known and at moment Aicp issue. And easy to fix
Click to expand...
Click to collapse
That's an mainstream "issue" , surely will be "fixed " on future
The values can be designated on options so.
Nothing like we explore whole ROM, there's a lot to check as for options and customizations
Thanks
superdragonpt said:
That's an mainstream "issue" , surely will be "fixed " on future
The values can be designated on options so.
Nothing like we explore whole ROM, there's a lot to check as for options and customizations
Thanks
Click to expand...
Click to collapse
Yeah I meant Mainstream issue, this also occurs in my Moto E/G with same ROM.
Sweet! First time on aicp so didn't know about the extra menu hanging beside lol. All done nicely!
F.A.Q. added
There are too few users of S3Plus? No feedback? D:
rom is good, battery life better than belulah but not as good as stock (5.1). however UI fluidity / performance is the best among all 3.
youtube 1080p is slightly choppy but bearable.
camera is the same, if not slightly better.
screen brightness has better control now, ie least brightness in low light condition
GPS have not tried yet.
gyroscope seems to be the same ie not fixed
EDIT: gyroscope IS working
the only thing is the speaker sound seems to be quite soft compared to belulah and stock roms.
What do you mean by 'gyroscope not fixed'?
The M.A.D. Team
DerTeufel1980 said:
What do you mean by 'gyroscope not fixed'?
The M.A.D. Team
Click to expand...
Click to collapse
oops gyroscope is working. seems like it was the test app that wasnt good.
tried 2 phones on gyrodroid and both react the same way. my bad.
i think im gonna try navigating in a few hours' time. it does seem to respond better than stock/belulah
Back to RC5 :crying::crying::laugh::laugh:

[Module][Development] Double Tap to Wake v2.0 [Guide too]

Hi fellow xda members!
I'd like to share with you something that I had been very curious about.
Well if the title hasn't already given it away, it's the generic version of Double Tap to Wake (for almost all devices)
And what's different is that I've studied, refactored and restructured the code myself to be more efficient, faster, and shorter.
As a result, I've decided to bump this good ol' kernel module to V2.0
First of all, huge thanks and respect to Dennis Rassmann who gave us the original dt2w v1.0 kernel module (for almost all devices)
Here's the precise changes :
1) Restructure (and rewrote parts) dt2w main function code.
2) Remove useless variables. It is possible to achieve the same thing with less space.
3) Rewrite the distance formula. Change it from rectangular linear to circular radial.
4) Remove unnecessary checks which are either always true or never reached.
5) Reduce space and time complexity for the algorithm.
6) Use vibrator call method AFTER queuing the pwr_on so that there is no delay between calling the vibrator and the power button emulation.
(Step 6 explained : Calling power method before vibrator is a UX tweak. When we call power method first, it queues the power command to the sched (or so I think what queue does) and we know the screen doesn't wake up immediately. So, while the screen is in the mid of waking, we next run the vibrator method. This causes the vibrator to react after the screen on is triggered, and that creates a feeling of spontaneity that the vibrator is running while the screen is turning on. In version 1, the vibrator starts vibrating before the display is even queued. This feels like it takes longer (although it doesn't, it's just a UX placebo))
Click to expand...
Click to collapse
Result : Final dt2w main function is about half the length of earlier one, and more effective.
Here is the source for DT2W v2.0 - https://github.com/tanish2k09/Doubletap2wake-2.0
Guide about how to add it :
---It's all already written in the README.md in github, it's better to check that instead---
Code:
Follow these steps if you have the good ol' v1.0 from dev Dennis Rassmann :
(For feasibility, I've added port-dt2w-functions.txt with all the necessary code)
(Also note : doubletap2wake.c has been referenced as dt2w.c just because I'm too lazy)
1) Replace the whole "detect_doubletap2wake" function from v2.0 to v1.0
2) Remove "calc_feather" function from v1.0 and place "calc_within_range" function from v2.0
3) Define "DT2W_RADIUS" in the beginning of dt2w.c, along with other defines. Copy from port txt.
4) Remove "DT2W_FEATHER" definition from the defines.
Optional step 5: Change Version, author, desc, etc. Find "/* Version, author, desc, etc */" and replace next 4 lines from port file.
6) Remove the third argument from all "detect_doubletap2wake" calls. Usually it's "true"
7) That's it! You're good to compile it now.
8) If it works nicely, make sure to give me a thanks on xda thread :D
Follow these steps if you don't even have the good ol' v1.0 from dev Dennis Rassmann :
1) Get dt2w-v1.0 by Dennis Rassmann and compile it successfully first.
2) Follow the steps in above part.
Note for mods :
In case you find this thread to be in the wrong subforum, please move it to the right section while informing me.
In case you find anything inappropriate according to xda forum rules, please contact me before taking any actions so I have a chance to correct any and all mistakes I might have commited.
I see @xanthrax is a forum moderator here. Please be kind enough to review the thread.
Edit : xanthrax moved the thread to appropriate subforum already and reviewed the thread and confirmed nothing wrong here.
It's available for Redmi Note 3 MTK?
GreatStorm said:
It's available for Redmi Note 3 MTK?
Click to expand...
Click to collapse
This is a general module.
The steps I have provided will work for all mtk phones.
Just ask any of your experienced kernel developers (or you yourself, if you're one of the Devs) to check my thread (and the GitHub source readme) to add it.
If you already have dt2w, this will work 100%
Feel free to contact me for any doubts. :laugh:
In some time I'll also post trace2sleep (or t2s) module.
any link for dt2w v1.0 kernel module ?
sougata7684 said:
any link for dt2w v1.0 kernel module ?
Click to expand...
Click to collapse
Unfortunately you'll have to search for GitHub commits "add dt2w".
I couldn't find a generic all-driver file itself, so you need to find the one with your driver.
ChinmayDalal said:
I saw some commits on GitHub on 3.10.xx kernels, but my device's dev told me that he already tried porting from 3.10.xx kernels.
He needs 3.18.xx kernels to port.
(MT6737)
Click to expand...
Click to collapse
This thread is just for dt2w module.
The device must have a working touch panel support for gestures before adding v2
module working on Samsung phones
Does this module work on any Samsung phones? I've got an s7 running Nougat via "The Galaxy Project" rom, the SuperKernel, and i'd really like this feature. The processor is an exynos8890.
I'd love to have this feature, miss it from my old g2.
tech927 said:
Does this module work on any Samsung phones? I've got an s7 running Nougat via "The Galaxy Project" rom, the SuperKernel, and i'd really like this feature. The processor is an exynos8890.
I'd love to have this feature, miss it from my old g2.
Click to expand...
Click to collapse
Ask a kernel developer for your device to do that and maybe link him this thread.
Or, if you are one yourself, check the instructions on the linked GitHub page. It's really not difficult at all if you've had since experience with kernels.
doubletap2wake
Where can I get the doubletap2wake v1.0 code that seems like a prereq?
tech927 said:
Where can I get the doubletap2wake v1.0 code that seems like a prereq?
Click to expand...
Click to collapse
I guess you can find it in almost every custom kernel on GitHub, according to your chipset of course.
The most important part is configuring the touch panel to be active and receive input even with screen off. That, however, should be no difficulty for an experienced kernel maintainer
Sent from my Samsung Galaxy J1 Ace using XDA Labs
Hi......may I know if this works with Sony XA1 Ultra? It uses Helio P20.......
eddie24902005 said:
Hi......may I know if this works with Sony XA1 Ultra? It uses Helio P20.......
Click to expand...
Click to collapse
If you already have a custom kernel with dt2w working then this upgrade will work too
tanish2k09 said:
I guess you can find it in almost every custom kernel on GitHub, according to your chipset of course.
The most important part is configuring the touch panel to be active and receive input even with screen off. That, however, should be no difficulty for an experienced kernel maintainer
Click to expand...
Click to collapse
OK I'm new to android kernel development and I'm having my mind melt trying to add the v1 code.
Could you please write a tutorial or make a complete d2w api without needing to hunt for codes. Thanks.
xDoge said:
OK I'm new to android kernel development and I'm having my mind melt trying to add the v1 code.
Could you please write a tutorial or make a complete d2w api without needing to hunt for codes. Thanks.
Click to expand...
Click to collapse
I could and I would if I had time. Just rolled into the fall sem so I'll be a LOT busy. Sorry
tanish2k09 said:
I could and I would if I had time. Just rolled into the fall sem so I'll be a LOT busy. Sorry
Click to expand...
Click to collapse
Why don't you rollback with sem reset hard.
Sorry for double post. XDA app messed the post.
xDoge said:
Why don't you rollback with sem reset hard.
Click to expand...
Click to collapse
Gesendet von meinem SM-G950F mit Tapatalk
may I ask. My device already have featur dt2w/dt2s and sweep up to wake on settings (in Zenmotion). But, unfortunately when I use custom rom this feature gone. Can I use this file to bringing back that feature (dt2w/dt2s)? or maybe adding SU2W too? please help. My device is X00RD

[CM11]Best CM 11 ROM for K30-T or A6000

CyanogenMod™ is a free, community built, after-market firmware distribution of Android™ 4.4.4 (KitKat™), which is designed to increase Performance, Stability, and reliability over stock Android for your device.
CyanogenMod™ is based on the Android™ Open Source Project with extra contributions from many people within the Android™ community. It can be used without any need to have any Google™ application installed. Linked below is a package that has come from another Android™ project that restore the Google™ parts. CyanogenMod™ does still include various hardware-specific code, which is also slowly being open-sourced anyway.
This version of CyanogenMod also came with Lollipop ™ Thame, it looks like well. It's fast!
Support Phones
------------------------------
Lenovo™ A6000 [I have Not Tested] [Tested by xda_borj]
Lenovo™ K30-T [Tested]
Download
------------------------------
ROM :
http://d.7to.cn/download.aspx?actio...C3jC932bOB15crvHCglWDcXO3gwoiphK8NAp0sS2MJA==
GApps:
http://opengapps.org
Select:
-arm/arm64
-4.4
-Pico
Bugs
------------------------------
- Can't get Internet [Thanks for xda_borj]
About the ROM
People Created: X神之怒
People ‘Last’ Created: Ricky844
First Release Date: 2015-06-11
Support Phones: Lenovo K30-T, A6000
Found the ROM on: 奇兔ROM市
Frequently asked questions
Q : I get error 255 while flashing from recovery
A : Flash using correct TWRP Download it Here!
(Only for K30-T)
Q : Is it support Xposed?
A:Installed.
Q : Can I install SuperSU or Magisk?
A:Installed too. (SuperSU Installed.)
Q : Who made this ROM?
A : Someone in China, I am going to make new version for this ROM.
Q : Why I can't get signal when I using this ROM?
A: If you are using China Internet, it will have signal.
KoChangelog:
-Update 1 2015-06-11 :
Got ROOT super license
New Xposed framework, more powerful
Add Xblast tools, a number of advanced settings
Add gravity toolbox, hundreds of custom functions
Add green guardian, guard your program, perfect power control
Support lock screen shortcuts custom widget changes
Support to modify the theme style, fonts, sound effects package
Support the status bar to modify the clock style, battery style
Support drop-down notification bar Custom modify quick settings, floating notification
Support DSP music effects
Support font size and interactive screen warranty changes
Support stand-alone double-click long HOME key and menu key custom changes
Support processor, IO scheduling modification
Support memory management, adjust the background occupied
Needless to say the overall fluid, suitable for smooth use of oil
-Update 1.1 2017-01-21 :
Get latest version of Xposed and SuperSU
Add 1 Ringtone
Download : File missing
Holo CM 11 download:
http://d.7to.cn/download.aspx?actio...7mHa7UtzA89edqoV+IeSS7khJUUTnxbkaNySCG6S6Yg==
You need to post screenshots. Also, may I ask who made this ROM?
xda_borj said:
You need to post screenshots. Also, may I ask who made this ROM?
Click to expand...
Click to collapse
Oh!Yeah, I forgot to said it's someone made.Soneone in China.
Ricky Chrung said:
Oh!Yeah, I forgot to said it's someone made.Soneone in China.
Click to expand...
Click to collapse
I am going to make new version to this rom, ask me if anything
Ricky Chrung said:
Oh!Yeah, I forgot to said it's someone made.Soneone in China.
Click to expand...
Click to collapse
Ricky Chrung said:
I am going to make new version to this rom, ask me if anything
Click to expand...
Click to collapse
It would be great if you put the version of Android this ROM was based and the date it was created or updated. Anyway, how about screenshots? Thank you in advance.
xda_borj said:
It would be great if you put the version of Android this ROM was based and the date it was created or updated. Anyway, how about screenshots? Thank you in advance.
Click to expand...
Click to collapse
OK! Thanks for asking about Screenshots,I will upload that when I open my computer.
Ricky Chrung said:
OK! Thanks for asking about Screenshots,I will upload that when I open my computer.
Click to expand...
Click to collapse
Great! How about editig your post and put Android version and the date the ROM created?
xda_borj said:
Great! How about editig your post and put Android version and the date the ROM created?
Click to expand...
Click to collapse
Thanks for asking, I will do that later
Ricky Chrung said:
CyanogenMod is a free, community built, after-market firmware distribution of Android 4.4.4 (KitKat), which is designed to increase Performance, Stability, and reliability over stock Android for your device.
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.
Support Phones
------------------------------
Lenovo A6000 [Not Tested]
Lenovo K30-T [Tested]
Download
------------------------------
ROM :
http://d.7to.cn/download.aspx?actio...C3jC932bOB15crvHCglWDcXO3gwoiphK8NAp0sS2MJA==
GApps:
http://opengapps.org
Select:
-arm/arm64
-4.4
-Pico
Click to expand...
Click to collapse
People Created: X神之怒
First Release Date: 2015-06-11
Support Phones: Lenovo K30-T, A6000
Ricky Chrung said:
Thanks for asking, I will do that later
Click to expand...
Click to collapse
Thanks! By the way, I tested your ROM on my Lenovo A6000. All I can say that the ROM is good. However, there's no signal. There's a problem with SIM network. I can't get any signal. I hope this helps.
xda_borj said:
Thanks! By the way, I tested your ROM on my Lenovo A6000. All I can say that the ROM is good. However, there's no signal. There's a problem with SIM network. I can't get any signal. I hope this helps.
Click to expand...
Click to collapse
Q : Why I can't get signal when I using this ROM?
A: If you are using China Internet, it will have signal.
Ricky Chrung said:
Q : Why I can't get signal when I using this ROM?
A: If you are using China Internet, it will have signal.
Click to expand...
Click to collapse
Or maybe I try to fix it.
Ricky Chrung said:
Or maybe I try to fix it.
Click to expand...
Click to collapse
Not only internet. What I meant to say is it has no network coverage. No signal at all. Can't do SMS and calls. Anyway, if that's what you meant to say on your QA, I apologize for not getting it.
xda_borj said:
Not only internet. What I meant to say is it has no network coverage. No signal at all. Can't do SMS and calls. Anyway, if that's what you meant to say on your QA, I apologize for not getting it.
Click to expand...
Click to collapse
Ok

Categories

Resources