Basic 3 Button Remap: Recents Capacitive to a Menu Button - HTC Droid DNA

Edit: use nit's ukb rom
Hi-
I don't have a DNA, but a friend asked me to do this. It remaps the Recents capacitive button to a menu button. It also removes the 3 dot onscreen menu bar. I don't have a solution for remapping recents to longpress home or anything like that. So you kinda have a trade off here. Alternatively, you could grab an app from the market that will make a recents shortcut on your homescreen.
Just flash in recovery. A revert zip will be coming shortly.

Con is a .......BEEEEEAST!!! Thanks bro!!

Working GREAT! Thanks! :good:

How does one multitask now?
Sent from my HTC Droid DNA

thank you!!

What the heck I modified the same files exactly a while ago and it screwed up my buttons. Maybe I had a typo I don't know

jonah1234 said:
How does one multitask now?
Sent from my HTC Droid DNA
Click to expand...
Click to collapse
Go to the market and search mulit task shortcut

Thanks for posting.
On the DNA longpress home is Google now.
Is there anyway to make longpress on recents do the recent apps function? I've been trying to do it but it fails.

You have to edit android.policy.jar I think but beyond that I don't remember exactly what needs to be done.

str8upx said:
Thanks for posting.
On the DNA longpress home is Google now.
Is there anyway to make longpress on recents do the recent apps function? I've been trying to do it but it fails.
Click to expand...
Click to collapse
I was kind of hoping we could just get Recents to long press to Menu honestly.

For those of you that want longpress remaps and such:
Look @ these One XL threads:
http://forum.xda-developers.com/showthread.php?t=1645290
http://forum.xda-developers.com/showthread.php?t=1582506
Download their files and the corresponding original RUU. Decompile both sets of files and see what they changed in each version. Then "apply" the same changes to the DNA files. If someone tackles that, just shoot me a PM and I'll lock my thread in favor of the new stuff.

con247 said:
For those of you that want longpress remaps and such:
Look @ these One XL threads:
http://forum.xda-developers.com/showthread.php?t=1645290
http://forum.xda-developers.com/showthread.php?t=1582506
Download their files and the corresponding original RUU. Decompile both sets of files and see what they changed in each version. Then "apply" the same changes to the DNA files. If someone tackles that, just shoot me a PM and I'll lock my thread in favor of the new stuff.
Click to expand...
Click to collapse
Thanks. Someone please upload once they do it. I would do it myself but my computer crashed yesterday.
Sent from my HTC Droid DNA

CON! You're the best man! Thanks so much!
Sent from my HTC6435LVW using Tapatalk 2

con247 said:
Hi-
I don't have a DNA, but a friend asked me to do this. It remaps the Recents capacitive button to a menu button. It also removes the 3 dot onscreen menu bar. I don't have a solution for remapping recents to longpress home or anything like that. So you kinda have a trade off here. Alternatively, you could grab an app from the market that will make a recents shortcut on your homescreen.
Just flash in recovery. A revert zip will be coming shortly.
Click to expand...
Click to collapse
Thanks for your work con

con247 said:
For those of you that want longpress remaps and such:
Look @ these One XL threads:
http://forum.xda-developers.com/showthread.php?t=1645290
http://forum.xda-developers.com/showthread.php?t=1582506
Download their files and the corresponding original RUU. Decompile both sets of files and see what they changed in each version. Then "apply" the same changes to the DNA files. If someone tackles that, just shoot me a PM and I'll lock my thread in favor of the new stuff.
Click to expand...
Click to collapse
Maybe I changed the wrong files but I followed the instructions and the remap just reverted after booting up.

Exactly what I was looking for! Thanks!
Sent from my Droid DNA

awesome work man! once somebody gets longpress for recents i will flash asap!!!

another581 said:
Maybe I changed the wrong files but I followed the instructions and the remap just reverted after booting up.
Click to expand...
Click to collapse
??? You used apktool decompile the files then used a merge application to figure out the smali changes required? You can't just flash those files... they are from the XL

con247 said:
??? You used apktool decompile the files then used a merge application to figure out the smali changes required? You can't just flash those files... they are from the XL
Click to expand...
Click to collapse
Ah well then I surely did it wrong. I just simply edited the files inside the zip and flashed. Excuse my amateur attempt

another581 said:
Ah well then I surely did it wrong. I just simply edited the files inside the zip and flashed. Excuse my amateur attempt
Click to expand...
Click to collapse
Just the way you phrased it saying it reverted the mod I was like hmm what did he do lol

Related

Finally - Faves button remapped - Browser added 19.11.10

For those using the espresso sense that hate the stupid faves app and are tired of having a dead button on the home screen, this is for you. I remapped it, and have attached a couple different versions. One maps it to open the stock contacts app, and the other to the stock browser app.
I'm working on getting rid of faves all together, and would like to have the old htc favorites tab in the contacts app and the htc favorites widgets too. But I dont know if I can do it, we'll see. For now though here is the new Rosie.
Instructions:
This was taken from a stock rooted build of espresso 2.1 and is only known to work on such.
Back up your old files first!
adb shell cp /system/app/Rosie.apk /sdcard
adb shell cp /system/app/Rosie.odex /sdcard
For those with system apps odexed, you'll want to get the appropriate Rosie.apk and Rosie.odex.zip. Rename them to Rosie.apk and Rosie.odex. Reboot into recovery, then use this adb code:
adb shell mount /system
adb shell rm /system/app/Rosie.apk
adb shell rm /system/app/Rosie.odex
adb push (your saved file location)\Rosie.apk /system/app
adb push (your saved file location)\Rosie.odex /system/app
For those of you without separate .odex files in your /system/app folder, I used a de-odexer on the two files to join them, but have not tested it yet, as the build I am running is odexed. Grab the appropriate Rosie_noodex.apk rename it to Rosie.apk reboot into recovery and use the same code, but ignore lines 3 and 5 (the ones with .odex in them!) and then post here to let me know it works.
Sweet!!! Works great on CR_Mod_1.35.531_OTA Full ROM, thanks!!!
Awesome work I saw something like this on hero forums and wondered if someone would do the same here
Sent from my T-Mobile myTouch 3G Slide using XDA App
THANK YOU!
Nice job, works great.
Puts my phone in a bootloop. Glad to see others with success though.
I used the odex ones. It could be something wrong with my phone.
SilverL said:
Puts my phone in a bootloop. Glad to see others with success though.
I used the odex ones. It could be something wrong with my phone.
Click to expand...
Click to collapse
are you using an odexed rom?
acejoker25000 said:
are you using an odexed rom?
Click to expand...
Click to collapse
Yes I am. But I'll look further into it.
Not to be negative, but this could be remapped to something more useful. Contacts are very easily already accessible through the left shortcut. You could better help yourself and others by making the the faves shortcut a text or web shortcut.
Sent from my T-Mobile myTouch 3G Slide using XDA App
guitarist5122 said:
Not to be negative, but this could be remapped to something more useful. Contacts are very easily already accessible through the left shortcut. You could better help yourself and others by making the the faves shortcut a text or web shortcut.
Sent from my T-Mobile myTouch 3G Slide using XDA App
Click to expand...
Click to collapse
patience... this could develop into a whole bunch of different shortcuts and we can just use the one we want
but i think a browser button would be awesome lol
exactly what file are you editing to allow the contacts instead of faves?
As requested I've mapped another version to the browser. See first post. Enjoy.
SilverL said:
Puts my phone in a bootloop. Glad to see others with success though.
I used the odex ones. It could be something wrong with my phone.
Click to expand...
Click to collapse
What build are you using? I'll see if I can help.
acejoker25000 said:
exactly what file are you editing to allow the contacts instead of faves?
Click to expand...
Click to collapse
The changes are in the launcher.smali after decompiling the classes.dex
@OP: have you looked into adding livewallpapers in our sense ? I know incredibles sense has it hacked in.
the1wingedangel said:
As requested I've mapped another version to the browser. See first post. Enjoy.
What build are you using? I'll see if I can help.
The changes are in the launcher.smali after decompiling the classes.dex
Click to expand...
Click to collapse
I see the browser icon in the tray, but still launches contacts for me.
h.nocturna said:
I see the browser icon in the tray, but still launches contacts for me.
Click to expand...
Click to collapse
Hmmm, are you sure you got the right .odex? The rosie has the pics and the odex tells it what to open. It worked on mine. But I may have uploaded the wrong one I'll look when I get home.
the1wingedangel said:
Hmmm, are you sure you got the right .odex? The rosie has the pics and the odex tells it what to open. It worked on mine. But I may have uploaded the wrong one I'll look when I get home.
Click to expand...
Click to collapse
I'm pretty sure, but I'll go ahead and transfer it over again and see if it helps. Maybe I downloaded the wrong odex.
EDIT: Yeah, that did it. I guess I pushed the wrong odex file. Thanks.
thought about modding the rosie on the 3rd sense rom? i think a lot of people are using that now
how did you reodex?
acejoker25000 said:
how did you reodex?
Click to expand...
Click to collapse
I used an odex script available on the forums here (got it forever ago, dont remember where, do a search for odex) that will odex apks from inside the rom, as the odex file is dependent on that specific rom. Though I edited the script to suit my needs, the functions are still the same as it uses the dexopt-wrapper to do it.
I got rid of the slide and never tried the 3rd sense roms, but if I still had it, I wouldn't use the rom anyway, as they're still buggy..
I'm a dev interested in making an SMS version of this shortcut.... could you give me a jumping off point? I don't believe the source for Rosie Espresso is available so how were you able to replace this shortcut? You can't just change the icon and all the layouts are compiled.
Thanks for the help!
_tek_ said:
I'm a dev interested in making an SMS version of this shortcut.... could you give me a jumping off point? I don't believe the source for Rosie Espresso is available so how were you able to replace this shortcut? You can't just change the icon and all the layouts are compiled.
Thanks for the help!
Click to expand...
Click to collapse
Use smali and baksmali (search Google for them) to decompile the odex or the apk if its been deodexed then once decompiled check the folder called out>HTC>launcher> or some order like that then look for the launcher.smali not launcher1 or 2 etc etc. Now use a text editor and open launcher.smali then do a search in it for faves or the faves app real name and change the fields to the messaging app name and action the save exit and recompile add to the apk or reodex depending on the rom
Sent from my T-Mobile myTouch 3G Slide using XDA App

Quick Lookup Trick!

As Many times as I've used the LongPress features to Highlight, the Copy and Paste, I've Never Knew about the Quick Lookup feature!
So I figured I'd Share it with Whoever just kind of Overlooked it like Me, Lol...
http://m.youtube.com/#/watch?deskto...youtu.be&feature=youtu.be&v=35qMy_sQNSw&gl=US
Whoever Already Knew About this, Just Disregard this Whole thing... Lol!
Strange...if I long press on any text in the stock browser, I only get two options that popup: "copy" or "share via". Where and when are you seeing the quick lookup option? My phone is unrooted.
You need to copy a word or sentence then the option quick lookuo shld be there.
Nothing to do with being rooted.
Sent from my PG86100 using xda premium
Not sure what I'm doing differently than whats shown in the video. I tap and hold a portion of text, I get the two green selection arrows, and I'm only given the two options mentioned earlier. Nothing about quick lookup.
kinetic758 said:
Not sure what I'm doing differently than whats shown in the video. I tap and hold a portion of text, I get the two green selection arrows, and I'm only given the two options mentioned earlier. Nothing about quick lookup.
Click to expand...
Click to collapse
Did you use the selector arrows to highlight a word or phrase?
Sent from my PG86100 using Tapatalk
k2buckley said:
Did you use the selector arrows to highlight a word or phrase?
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
Yup. I'm thinking I must have uninstalled it when I was browsing through the apps list. Can someone verify if the Quick Lookup feature is uninstallable from the Manage Applications menu? Thanks in advance.
Thanks for the thread!
L A Z I Z A said:
Thanks for the thread!
Click to expand...
Click to collapse
No Problem man, Glad you Like it...
Wow, well how were you doing any copy and paste from websites, or even other txt in edit fields if you didn't know about this? Or did you just not know you could do it?
I believe this is only a feature of sense, right? So if you use a nonsense ROM you won't have it. Unless it is a feature of Swype?
Sad Panda said:
Wow, well how were you doing any copy and paste from websites, or even other txt in edit fields if you didn't know about this? Or did you just not know you could do it?
I believe this is only a feature of sense, right? So if you use a nonsense ROM you won't have it. Unless it is a feature of Swype?
Click to expand...
Click to collapse
I Always Knew about the Copy and Paste... Just Didn't Know about the Quick Lookup Feature After the Words Highlighted!

Custom SystemUI

It worked with all the updates til now? Anyway to get it working?
SystemUI, probably just got some updates. Have you tried adding your .pngs to the new systemui.apk? Still no go?
David522d said:
It worked with all the updates til now? Anyway to get it working?
Click to expand...
Click to collapse
I was running the blue soft keys and now when I put them back in sytem/app I get force closes and the entire nav bar disappears. Any ideas? I really hate the skinned look Asus puts on them. Thanks in advance.
Swiftks hit the nail on the head, there were some changes to the SystemUI that breaks older versions. (I know, captain obvious over here) Give the developer of the theme a chance to update the PNG files, or do it yourself. I ran into the same problem yesterday and copying the PNG files I wanted into the new SystemUI.apk fixed it.
I'm not sure how to do that. The nav keys I was using are just stock ICS blue. If you or anyone happens to have a link to some I could use with the updated files that would be fandamntastic. I can't seem to find the thread where I downloaded them from. I know they were on XDA but I've been searching since yesterday. Thanks again
predictablyerratic said:
I was running the blue soft keys and now when I put them back in sytem/app I get force closes and the entire nav bar disappears. Any ideas? I really hate the skinned look Asus puts on them. Thanks in advance.
Click to expand...
Click to collapse
Make sure to copy to correct folder, and select "store" for the compression method, that way they are not compressed.
Sent from my CM7 Atrix 4G
Yes, I am putting the file in system/app and the file is not compressed. I've done this with each of the updates and now it doesn't work. I was thinking it may be because Asus added the lock function to the nav bar. Once again if anyone has another file they could point me too that would be awesome. I can't find the thread that I got my ICS blue buttons from.

Navigation

I just want to share how to make a navigation panel like nexus..
Just write on build.prop :
qemu.hw.mainkeys=0
But you can't take a screenshoot with home + power button..
I know this thread is old, still I hope somebody could help.
When I activate the 'nexus' navigation buttons is it then possible to deactivate the stock hard- and software buttons?
*delete*
bamboo' said:
I know this thread is old, still I hope somebody could help.
When I activate the 'nexus' navigation buttons is it then possible to deactivate the stock hard- and software buttons?
Click to expand...
Click to collapse
Go to /system/usr/keylayout
For me(Pac 4.2.2) i have a file called "janice.kl". Opening it as a text file gives me the list of buttons.
Put a star(*) at the start of the line wich u dont want.
Putting a star before a line will deactivate that key.
The file in stock rom is named differently. Find it.
Use this carefully!! I am not responsible if u stand in a situation without hardkeys and softkeys.
P.S.- I hav used this for quite a while; its fun!
From an inSanely 'ADVANCE'd phone!
To disable hw buttom go to system>usr>generic.kl added #for buttom you want to disable.
Ex #key 134 back ----drop down.
Sent from my GT-I9070 using Tapatalk 2
can i edit bar's size or anything else ?
HaNy_N said:
can i edit bar's size or anything else ?
Click to expand...
Click to collapse
Unfortunately no.
U can do that only on Paranoid Android and Pac-man ROM.
From an inSanely 'ADVANCE'd phone!
HaNy_N said:
can i edit bar's size or anything else ?
Click to expand...
Click to collapse
've tried this with Xposed installer? works well
http://forum.xda-developers.com/showthread.php?t=2270198
HaNy_N said:
can i edit bar's size or anything else ?
Click to expand...
Click to collapse
You can, but not with this mod. You need to find guide how to do it with framework-res.apk.
Read this: http://forum.xda-developers.com/showthread.php?t=1980530

[MOD]AOSP enabled navbar - AOSP ROMS and GE only

To be clear, these will only work for AOSP ROMs and the GoogleEdition ROM.
Threw these together for myself. Love having the navbar but it is a pain to add every nightly I flash. So I threw this together. I made two versions. One simply adds the navbar and disables the capacitive menu and back buttons (with them active the navbar becomes nearly impossible to use) and triggers the navbar. Fear not, this mod triggers the in app menu overflow access and for that matter you could then create a menu on the navbar. I couldn't automate disabling the backlight so that will still need to be disabled via settings>advanced>sensors. I also made a version that changes the device DPI from 480 to 360 (my preferred DPI).
Download - AOSP_navbar_enabled.v3.zip
Base version above now allows OTA survival. Will reapply itself after each nightly.
Download - AOSP_navbar_enable_360dpi.zip
Download - AOSP_remove_NAVBAR.v3.zip
Here is the method to inject changed into the build.prop that I used (found here)
On the GoogleEdition ROM it does not support disabling the capacitive button backlights natively so the app from the following thread is needed
[APP] Google Edition ROMs - Disable Button Lights
Thanks a million times for this! I have been missing these! I am running beans rom and after installing getting system UI has stopped, also using nova, any information on getting this going would be great, thanks again!
templton said:
Thanks a million times for this! I have been missing these! I am running beans rom and after installing getting system UI has stopped, also using nova, any information on getting this going would be great, thanks again!
Click to expand...
Click to collapse
Guess I wasn't clear. This is for AOSP ROMS only. I will edit the OP, sorry for the confusion.
Sent from my Nexus 7 using Tapatalk 2
Ah no no, my fault! I see it right in the first line! I wasn't paying attention or must have been half asleep!! Thanks again though :good:
templton said:
Ah no no, my fault! I see it right in the first line! I wasn't paying attention or must have been half asleep!! Thanks again though :good:
Click to expand...
Click to collapse
No I want very clear. I added the first line after your misunderstanding.
Sent from my Galaxy S4
Sorry but...How do you install this?
I tried looking for instructions...There are none.
chris2k5 said:
Sorry but...How do you install this?
I tried looking for instructions...There are none.
Click to expand...
Click to collapse
They are recovery flashable mods. Download, reboot recovery, install zip (no wipes needed), enjoy!
Sent from my Galaxy S4
The link for the remove navbar mod doesn't work. Does anyone have the .zip file?
chris2k5 said:
The link for the remove navbar mod doesn't work. Does anyone have the .zip file?
Click to expand...
Click to collapse
It works fine for me on my phone and chrome browser, I don't know why you are having trouble. Try this instead
https://copy.com/JcV4Z <---remove navbar
Sent from my Galaxy S4
A fixed navbar taking up space precious on a small display seems Nexus- like. Stop this abomination NOW! Instant S4 mini (comparable display space usable for apps).
rushless said:
A fixed navbar taking up space precious on a small display seems Nexus- like. Stop this abomination NOW! Instant S4 mini (comparable display space usable for apps).
Click to expand...
Click to collapse
Of course you are welcome to your opinion!! And in part I agree. That is why I run at 360dpi, that way it has less of an impact on the display. I know it is not for everyone, but choice is the spice of life.
hlxanthus said:
Of course you are welcome to your opinion!! And in part I agree. That is why I run at 360dpi, that way it has less of an impact on the display. I know it is not for everyone, but choice is the spice of life.
Click to expand...
Click to collapse
Thanks for this. Is it possible to only activate the in app menu overflow without adding the nav bar? It's so much more intuitive to have that, rather than guessing whether or not the menu button will do anything within each app (the whole reason google got rid of the menu button in the first place).
I wish I knew how!! To be frank, when you enable the navbar and disable the capacitive buttons it activates the menu overflow within apps all by itself. Must be part of the navbar framework. But let me look into it. I MIGHT have an idea but it would be ROM specific, not a general mod like this. What ROM are you running or would like such a feature for?
Sent from my Galaxy S4
hlxanthus said:
I wish I knew how!! To be frank, when you enable the navbar and disable the capacitive buttons it activates the menu overflow within apps all by itself. Must be part of the navbar framework. But let me look into it. I MIGHT have an idea but it would be ROM specific, not a general mod like this. What ROM are you running or would like such a feature for?
Sent from my Galaxy S4
Click to expand...
Click to collapse
Running both the Verizon Google Edition ported rom and Clean Rom. Appreciate it, but don't bother putting time into it if it's ROM specific. What you have posted here already is helpful enough!
johnfoam said:
Running both the Verizon Google Edition ported rom and Clean Rom. Appreciate it, but don't bother putting time into it if it's ROM specific. What you have posted here already is helpful enough!
Click to expand...
Click to collapse
I will try for the GE port, it should be an easy mod. These don't work on stock touchwiz as it doesn't have the needed framework for the navbar. For some reason Samsung gutted the navbar from their source
Sent from my Galaxy S4
hlxanthus said:
I will try for the GE port, it should be an easy mod. These don't work on stock touchwiz as it doesn't have the needed framework for the navbar. For some reason Samsung gutted the navbar from their source
Sent from my Galaxy S4
Click to expand...
Click to collapse
Sounds good. Appreciate it!
johnfoam said:
Sounds good. Appreciate it!
Click to expand...
Click to collapse
Merry Xmas. I also posted this over in the GoogleEditionVZW thread
Download - GoogleEditionVZW_3dot.menu.overflow.zip
hlxanthus said:
Merry Xmas. I also posted this over in the GoogleEditionVZW thread
Download - GoogleEditionVZW_3dot.menu.overflow.zip
Click to expand...
Click to collapse
Thank you my friend, I'll give it shot today!
Oh it works very nice, but there are some cases (like tapatalk) where the menu would instead be within the navbar so this is not a capacitive menu replacement
Sent from my Galaxy S4
Awesome job man. Now I just need to be able to set the physical home button to menu for short press and go full screen (no navigation lights) on long press. Think that is possible?
Sent from my SGH-M919 using xda premium

Categories

Resources