FORUMS
Remove All Ads from XDA

[MOD][Xposed] Restore Car Dock mode on Android 4.2

1,080 posts
Thanks Meter: 5,541
 
Post Reply Email Thread
Requires rovo89's Xposed Framework.

As you all might know, Android 4.2 removed the ability for car apps to hook the home button.
Although there have been two solutions (CyanogenMod is one, the other is https://play.google.com/store/apps/d...omepatch&hl=en), they either didn't work on all ROMs (Stock and PA are two), and the one on the Play Store broke the original home button functionality (e.g going back to the main page).

I made this mod to solve that.

Compatibility:
This mod should work on all ROMs based on 4.2, unless the manufacturer removed the method startDockOrHome() from the code.
Tested and/or reported working on:
  • Samsung Galaxy S4
  • Sony Xperia Z1
  • HTC One (M8)

Source:
The mod is open source, and licensed under GPLv3: https://github.com/MohammadAG/Xposed-4.2-Car-Mode

Download:
http://repo.xposed.info/module/com.m....enablecardock

Support development:
If you found this mod useful, consider donating with PayPal.
The Following 28 Users Say Thank You to MohammadAG For This Useful Post: [ View ] Gift MohammadAG Ad-Free
 
 
15th July 2013, 03:10 PM |#2  
ghostryder12's Avatar
Senior Member
Flag Northern California
Thanks Meter: 564
 
Donate to Me
More
Mohammad, should I wait for 4.2.2 upgrade before DL your great looking fix?
I'm using HTC One still on 4.1.2 in the US, and the update has made it to the UK.
15th July 2013, 04:35 PM |#3  
loco-cork's Avatar
Junior Member
Thanks Meter: 7
 
More
not working on Nexus 4
Installed it on my Nexus 4 running stock jellybean 4.2.2 and Car Home Ultra. Made no difference to how it behaved before. Home button still brings android home screen instead of Car Mode home screen.
15th July 2013, 05:06 PM |#4  
OP Inactive Recognized Developer
Flag Jerusalem
Thanks Meter: 5,541
 
Donate to Me
More
Quote:
Originally Posted by ghostryder12

Mohammad, should I wait for 4.2.2 upgrade before DL your great looking fix?
I'm using HTC One still on 4.1.2 in the US, and the update has made it to the UK.

I don't have an HTC One, but if upgrading without OTa is easy I'd jump to 4.2.2 anytime.




Quote:
Originally Posted by loco-cork

Installed it on my Nexus 4 running stock jellybean 4.2.2 and Car Home Ultra. Made no difference to how it behaved before. Home button still brings android home screen instead of Car Mode home screen.

Do you have the Xposed framework installed? If so, did you activate the module? If not, install it, you're missing out on a lot of good tweaks.

Sent from my GT-I9500 using xda app-developers app
The Following User Says Thank You to MohammadAG For This Useful Post: [ View ] Gift MohammadAG Ad-Free
15th July 2013, 08:03 PM |#5  
Senior Member
Flag Sache, TX
Thanks Meter: 108
 
More
I'm on Google Edition 4.2.2 on my HTC One and I have XPosed framework installed... so I grabbed this apk and installed it and activated it in XPosed... but how do I access car mode? do I need to install a car mode app?
16th July 2013, 12:01 AM |#6  
timothydonohue's Avatar
Senior Member
Flag Portland, Maine
Thanks Meter: 126
 
More
i'm on pac man rom, on the gs3 for verizon. no alternate kernel, no cpu tweaks. i used the exposed module attached, enable it. so far, no difference. no available car dock. is there a car dock i must install prior? is there a reasonable one available that doesn't cost money...i know my prior overlays, sense and TW, had car modes. i figured there was an open source version, is why i ask about not spending money.
16th July 2013, 12:17 AM |#7  
OP Inactive Recognized Developer
Flag Jerusalem
Thanks Meter: 5,541
 
Donate to Me
More
Quote:
Originally Posted by vnguyen972

I'm on Google Edition 4.2.2 on my HTC One and I have XPosed framework installed... so I grabbed this apk and installed it and activated it in XPosed... but how do I access car mode? do I need to install a car mode app?


Quote:
Originally Posted by timothydonohue

i'm on pac man rom, on the gs3 for verizon. no alternate kernel, no cpu tweaks. i used the exposed module attached, enable it. so far, no difference. no available car dock. is there a car dock i must install prior? is there a reasonable one available that doesn't cost money...i know my prior overlays, sense and TW, had car modes. i figured there was an open source version, is why i ask about not spending money.

Car mode is either activated automatically by a car dock, or manually by the user (see https://play.google.com/store/apps/d...k.ig88.carmode).
Personally I use an NFC tag on the back of my car mount with some Tasker and Llama automation.

After activating car mode you still need a car home app, S Voice is actually marked as one so you have that, but I prefer InDrive, CarHomeUltra, or Car Dashboard.

What this mod does is allow you to use the home button to go to the car launcher rather than your default launcher, a feature on all Android versions prior to 4.2.

Sent from my GT-I9500 using xda app-developers app
The Following 3 Users Say Thank You to MohammadAG For This Useful Post: [ View ] Gift MohammadAG Ad-Free
17th July 2013, 04:49 PM |#8  
Senior Member
Thanks Meter: 41
 
More
hm i didnt read first post carefully, sorry. thought this was needed for 4.1.2
17th July 2013, 05:15 PM |#9  
ghostryder12's Avatar
Senior Member
Flag Northern California
Thanks Meter: 564
 
Donate to Me
More
Quote:
Originally Posted by MohammadAG

Car mode is either activated automatically by a car dock, or manually by the user (see https://play.google.com/store/apps/d...k.ig88.carmode).
Personally I use an NFC tag on the back of my car mount with some Tasker and Llama automation.

After activating car mode you still need a car home app, S Voice is actually marked as one so you have that, but I prefer InDrive, CarHomeUltra, or Car Dashboard.

What this mod does is allow you to use the home button to go to the car launcher rather than your default launcher, a feature on all Android versions prior to 4.2.

Sent from my GT-I9500 using xda app-developers app

Mohammad, bummer. Only works for the Samsung. Will you be trying to modify for multiple devices?? Like my HTC One....hint-hint....

Sent from that FBI van parked down the street.
18th July 2013, 02:11 PM |#10  
OP Inactive Recognized Developer
Flag Jerusalem
Thanks Meter: 5,541
 
Donate to Me
More
Quote:
Originally Posted by ghostryder12

Mohammad, bummer. Only works for the Samsung. Will you be trying to modify for multiple devices?? Like my HTC One....hint-hint....

Sent from that FBI van parked down the street.

It doesn't work on the HTC One?
Are you sure you have Xposed installed and the module activated?

If so, send me a deodexed copy of android.policy.jar from /system/framework and I'll see if I can add support for it.
5th August 2013, 08:57 AM |#11  
Junior Member
Thanks Meter: 0
 
More
It seems it doesn't work with my Galaxy Nexus, with CM 10.2 (android 4.3)
My car app is the old google one but the home button still return to the main launcher... (Nova Launcher for me)
Post Reply Subscribe to Thread

Tags
4.2, car, home, mode

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes