Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
t0dbld
Old
#1  
t0dbld's Avatar
Senior Member - OP
Thanks Meter 1500
Posts: 453
Join Date: Mar 2010
Location: Michigan

 
DONATE TO ME
Default {DEV} Lets get Dock with out Buying a Dock

One of my many goals of this device is to use the full webtop dock if i choose , how ever i will not purchase a $500 notebook or a $189 dock, currently the system runs checks once HDMI is plugged in and a connection is requested... it than looks for and returns a true or false for if a dock is connected. I am attaching a short clip of the log to get us started. I have pulled apart a few of the programs i believed to be involved but they were missing src directories, they were DockProvider and DockServices, so im assuming its in the framework. anyhow i figured id start the thread on this one and get the ball rolling , more people with exp. the better

Code:
02-21 22:24:37.607: DEBUG/DockService(8269): onCreate()
02-21 22:24:37.617: VERBOSE/ApnEntitlementService(2461): onStart() action android.mot.apn.intent.action.STOP
02-21 22:24:37.617: DEBUG/AutoSignInService(2461): AutoSignIn onReceive: action=android.intent.action.SIM_STATE_CHANGED
02-21 22:24:37.617: VERBOSE/AutoSignInService(2461): onReceive while Webtop INACTIVE
02-21 22:24:37.617: VERBOSE/AutoSignInService(2461): onStart() action android.mot.resmgr.StateChange
02-21 22:24:37.617: VERBOSE/AutoSignInService(2461): onStart() action android.mot.resmgr.StateChange
02-21 22:24:37.617: INFO/AutoSignInService(2461):  MemStatusRM:0
02-21 22:24:37.617: VERBOSE/AutoSignInService(2461): onStart() action android.mot.resmgr.StateChange
02-21 22:24:37.617: INFO/AutoSignInService(2461):  LockSettingRM:0
02-21 22:24:37.617: VERBOSE/AutoSignInService(2461): onStart() action android.mot.resmgr.StateChange
02-21 22:24:37.617: INFO/AutoSignInService(2461):  AutoSignInRM:8
02-21 22:24:37.617: VERBOSE/AutoSignInService(2461): onStart() action android.mot.resmgr.StateChange
02-21 22:24:37.617: INFO/AutoSignInService(2461):  LockSettingRM:1
02-21 22:24:37.617: VERBOSE/AutoSignInService(2461): onStart() action android.mot.resmgr.StateChange
02-21 22:24:37.617: INFO/AutoSignInService(2461):  AutoSignInRM:8
02-21 22:24:37.617: DEBUG/OverlayHelper(8269):  Applying overlays from /system/etc/motorola/com.motorola.dock.service/defaults.xml
02-21 22:24:37.627: DEBUG/DockService(8269): onStartCommand()
02-21 22:24:37.627: DEBUG/DockService(8269): intent action = com.motorola.dock.webtopevent
02-21 22:24:37.627: DEBUG/DockService(8269): flags = 0
02-21 22:24:37.627: DEBUG/DockService(8269): startId = 1
02-21 22:24:37.627: DEBUG/DockService(8269): DockHMDIEventHandler()
02-21 22:24:37.627: DEBUG/DockService(8269): Received Intent with action com.motorola.dock.webtopevent
02-21 22:24:37.627: DEBUG/DockService(8269): Dock Status = Disconnected
02-21 22:24:37.627: DEBUG/DockService(8269): HDMI Status = Connected
02-21 22:24:37.627: DEBUG/DockService(8269): Dock ID = null
02-21 22:24:37.627: DEBUG/DockService(8269): Dock Type = null
02-21 22:24:37.627: DEBUG/DockService(8269): mLastDocked=false
02-21 22:24:37.627: DEBUG/DockService(8269): mLastDockType=
02-21 22:24:37.627: DEBUG/DockService(8269): mIsChargingByAC=false
02-21 22:24:37.627: DEBUG/DockService(8269): mACPresentTime=0
02-21 22:24:37.627: DEBUG/DockService(8269): interval =1298345077631
02-21 22:24:37.928: DEBUG/DockService(8269): Dock false, HDMI true Event received 
02-21 22:24:37.928: DEBUG/DockNotification(8269): UpdateDockNotification()
02-21 22:24:37.928: DEBUG/DockNotification(8269): Dock Status = Disconnected
02-21 22:24:37.928: DEBUG/DockNotification(8269): HDMI Status = Connected
02-21 22:24:37.928: DEBUG/DockNotification(8269): Dock ID  = 
02-21 22:24:37.928: DEBUG/DockNotification(8269): Dock Type  = 
02-21 22:24:37.928: INFO/PortalService(2461): onBind
02-21 22:24:37.928: ERROR/DockNotification(8269): mNM is NULL
02-21 22:24:37.937: DEBUG/DockAppUtility(8269): StartCustomPickerUIActivity()
02-21 22:24:37.937: DEBUG/DockAppUtility(8269): isDockConnected  : false
02-21 22:24:37.937: DEBUG/DockAppUtility(8269): isHDMIConnected  : true
02-21 22:24:37.937: DEBUG/DockAppUtility(8269): Dock ID  = 
02-21 22:24:37.937: DEBUG/DockAppUtility(8269): Dock Type  = 
02-21 22:24:37.937: INFO/ActivityManager(1482): Starting activity: Intent { act=com.motorola.dock.action.LaunchCustomPickerUI flg=0x10000000 cmp=com.motorola.dock.service/.ui.DockExperiencePickerActivity (has extras) }
02-21 22:24:37.947: WARN/WidgetAidService(3634): BroadcastReceiver onReceive called
02-21 22:24:37.947: DEBUG/WidgetAidService(3634): ACTION_HOME_SCREEN_CHANGED - -1
02-21 22:24:37.947: DEBUG/WidgetAidService(3634): HomeScreen has lost focus, store the previous state and move to pause
02-21 22:24:37.947: DEBUG/WidgetAidService(3634): Ignoring the HOME_SCREEN_CHANGED notification as the player is either in paused/playing state
02-21 22:24:37.967: DEBUG/BatteryChangeReceiver(8269): battery change detected 
02-21 22:24:37.977: DEBUG/DockService(8269): setChargingByAC false, at Mon Feb 21 22:24:37 EST 2011
02-21 22:24:37.977: DEBUG/BatteryChangeReceiver(8269): detect NOT charged by AC 
02-21 22:24:37.977: ERROR/DockNotification(8269): PortalService onServiceConnected
02-21 22:24:37.977: DEBUG/DockNotification(8269): PortalService send when connected
02-21 22:24:37.977: DEBUG/DockNotification(8269): PortalService send notification
02-21 22:24:37.977: DEBUG/PortalService(2461): Starting Foreground Status and Intent
02-21 22:24:37.997: DEBUG/DockExperiencePickerActivity(8269): onCreate() 
02-21 22:24:37.997: DEBUG/DockExperiencePickerActivity(8269): Dock Status = Disconnected
02-21 22:24:37.997: DEBUG/DockExperiencePickerActivity(8269): HDMI Status = Connected
02-21 22:24:37.997: DEBUG/DockExperiencePickerActivity(8269): dockId = null, dockType = null
02-21 22:24:37.997: DEBUG/DockExperiencePickerActivity(8269): Intent { act=com.motorola.dock.action.LaunchCustomPickerUI flg=0x10800000 cmp=com.motorola.dock.service/.ui.DockExperiencePickerActivity (has extras) }
02-21 22:24:37.997: DEBUG/DockExperiencePickerActivity(8269): mobileDocked is false
02-21 22:24:38.037: DEBUG/StatusBarPolicy(1482): updateDataIcon() -- mDataActivity = 3;    mDataState = 2;    mDataData = IconData(slot='data_connection' package=null iconUri=null iconId=10802e9 iconLevel=0)
02-21 22:24:38.147: ERROR/NetlinkEvent(1347): NetlinkEvent::FindParam(): Parameter 'UDEV_LOG' not found
02-21 22:24:38.167: DEBUG/DockExperiencePickerActivity(8269): IDLE
Attached Files
File Type: txt dock.txt - [Click for QR Code] (5.5 KB, 26 views)
The Following User Says Thank You to t0dbld For This Useful Post: [ Click to Expand ]
 
seferio
Old
#2  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Apr 2009
Would it be possible to create a program that enables mirroring after the HDMI is connected (and after this check is finished)? You would just need to know what system call and libraries are required to enable mirroring.
 
slhawkins
Old
#3  
Member
Thanks Meter 9
Posts: 50
Join Date: Dec 2010
Location: Wisconsin
Quote:
Originally Posted by t0dbld View Post
Code:
02-21 22:24:37.627: DEBUG/DockService(8269): Dock Status = Disconnected
02-21 22:24:37.627: DEBUG/DockService(8269): HDMI Status = Connected
02-21 22:24:37.627: DEBUG/DockService(8269): Dock ID = null
02-21 22:24:37.627: DEBUG/DockService(8269): Dock Type = null
02-21 22:24:37.627: DEBUG/DockService(8269): mLastDocked=false
02-21 22:24:37.627: DEBUG/DockService(8269): mLastDockType=
02-21 22:24:37.627: DEBUG/DockService(8269): mIsChargingByAC=false
02-21 22:24:37.627: DEBUG/DockService(8269): mACPresentTime=0
02-21 22:24:37.627: DEBUG/DockService(8269): interval =1298345077631
02-21 22:24:37.928: DEBUG/DockService(8269): Dock false, HDMI true Event received 
02-21 22:24:37.928: DEBUG/DockNotification(8269): UpdateDockNotification()
02-21 22:24:37.928: DEBUG/DockNotification(8269): Dock Status = Disconnected
02-21 22:24:37.928: DEBUG/DockNotification(8269): HDMI Status = Connected
02-21 22:24:37.928: DEBUG/DockNotification(8269): Dock ID  = 
02-21 22:24:37.928: DEBUG/DockNotification(8269): Dock Type  = 
02-21 22:24:37.928: INFO/PortalService(2461): onBind
02-21 22:24:37.928: ERROR/DockNotification(8269): mNM is NULL
02-21 22:24:37.937: DEBUG/DockAppUtility(8269): StartCustomPickerUIActivity()
02-21 22:24:37.937: DEBUG/DockAppUtility(8269): isDockConnected  : false
02-21 22:24:37.937: DEBUG/DockAppUtility(8269): isHDMIConnected  : true
02-21 22:24:37.937: DEBUG/DockAppUtility(8269): Dock ID  = 
02-21 22:24:37.937: DEBUG/DockAppUtility(8269): Dock Type  =
We need someone with both the dock and the webtop to post their results.. That'll help fill in the blanks.
The Following User Says Thank You to slhawkins For This Useful Post: [ Click to Expand ]
 
ankitb4u
Old
#4  
Member
Thanks Meter 2
Posts: 96
Join Date: Sep 2007

 
DONATE TO ME
Awesome post, I am all for it. Give me a day or two I am willing to pick up the regular dock.
Current
HTC One X AT&T White
HTC One X International version White 32 gig
Blackberry 9330 [work pager]

Past
Oh man, this is going to be looong
Nokia Lumia 900
iPhone 4s
Note
Nexus
HTC Inspire
iPhone 4s
Galaxy S2 Intr
This is all I can rmbr
 
kenio8185
Old
#5  
Member
Thanks Meter 3
Posts: 78
Join Date: Apr 2010
Quote:
Originally Posted by seferio View Post
Would it be possible to create a program that enables mirroring after the HDMI is connected (and after this check is finished)? You would just need to know what system call and libraries are required to enable mirroring.
This is what I'm hoping will be accomplished soon.
The Following User Says Thank You to kenio8185 For This Useful Post: [ Click to Expand ]
 
psufan5
Old
#6  
Senior Member
Thanks Meter 63
Posts: 1,231
Join Date: Dec 2009
would REALLY like this....
 
cegna09
Old
#7  
Senior Member
Thanks Meter 31
Posts: 281
Join Date: Jun 2009
I think this is more than just software. Mini and Micro USB has a 5th "ID" pin which can be used for just this purpose. I started some research last night, and i'm going to be doing some testing tonight to see if i can work this out. ID is set with resistance values between the ID pin and Ground. If no one beats me to it i'll post my findings.
Samsung Galaxy S3
Motorola Droid4 - Work Phone, stock

Past
Motorola Atrix - Neutrino Rom Mostly Broken
HTC Aria - CM7
HTC Fuze - Energy Rom
 
dew.man
Old
#8  
Senior Member
Thanks Meter 89
Posts: 432
Join Date: Nov 2006
Location: White Lake

 
DONATE TO ME
This is absolutely just software - just check out this video:

http://www.youtube.com/watch?v=7WzeIGZKW_Y

Notice how he uses the webtop/citrix client with just the HDMI cable plugged in to the phone!
 
cegna09
Old
#9  
Senior Member
Thanks Meter 31
Posts: 281
Join Date: Jun 2009
Quote:
Originally Posted by dew.man View Post
This is absolutely just software - just check out this video:

http://www.youtube.com/watch?v=7WzeIGZKW_Y

Notice how he uses the webtop/citrix client with just the HDMI cable plugged in to the phone!
did you watch the video? He put it in the dock each time. The dock has both a USB and an HDMI cable. Not once did he use webtop with just an HDMI cable.
Samsung Galaxy S3
Motorola Droid4 - Work Phone, stock

Past
Motorola Atrix - Neutrino Rom Mostly Broken
HTC Aria - CM7
HTC Fuze - Energy Rom
 
dew.man
Old
#10  
Senior Member
Thanks Meter 89
Posts: 432
Join Date: Nov 2006
Location: White Lake

 
DONATE TO ME
Quote:
Originally Posted by cegna09 View Post
did you watch the video? He put it in the dock each time. The dock has both a USB and an HDMI cable. Not once did he use webtop with just an HDMI cable.
Sorry guys - posted the wrong link.

This one:

http://www.youtube.com/watch?v=KjOND67hYCE

shows the same guy plugging in just the hdmi and the Atrix turns in to a nifty little trackpad!

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...