Confused about app launch...

618 views
Skip to first unread message

DieHardBattery

unread,
Oct 17, 2018, 1:15:29 PM10/17/18
to Tasker
I'm trying to find a specific app to launch when a BT device is connected on my galaxy tab s4. I'm looking for com.sec.android.desktopmode.uiservice. I am fairly certain that this is an actual app rather than a shortcut. I've gone through each sub menu related to DeX but haven't been able to find anything. Is there a way to just search for it by name?

TG

unread,
Oct 17, 2018, 1:29:20 PM10/17/18
to Tasker

DieHardBattery

unread,
Oct 17, 2018, 1:57:25 PM10/17/18
to Tasker
Possibly, but from what I could gather, it sounded like that issue could be because of a shortcut, not the app itself unless I'm misunderstanding.  I have been able to utilize this with an app called Automate, which had no issues finding the package.

Marta Hintz

unread,
Oct 18, 2018, 9:47:18 AM10/18/18
to Tasker
How are you looking for the app? With the launch app action and the All selected (bottom right).....

DieHardBattery

unread,
Oct 18, 2018, 9:56:41 AM10/18/18
to Tasker
Yes that is how I'm searching.

Robert Ryan

unread,
Oct 18, 2018, 10:18:47 AM10/18/18
to tas...@googlegroups.com
See attached. You don't see the circled icons? 

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

20181018_081649.jpg

DieHardBattery

unread,
Oct 18, 2018, 10:22:47 AM10/18/18
to Tasker
Yes I do see those.  If you long press those, a list comes up with sub commands you can use.  I've done that with every DeX icon and Dex System UI icon (the yellow circle), and I have been unable to find com.sec.android.desktopmode.
uiservice

Robert Ryan

unread,
Oct 18, 2018, 10:34:27 AM10/18/18
to tas...@googlegroups.com
You can only launch Activities, com.sec.android.desktopmode.uiservice is a Service. You need to launch the activity that would start that service. 

DieHardBattery

unread,
Oct 18, 2018, 10:38:49 AM10/18/18
to Tasker
Okay.  I have been thinking along the lines of the Automate app, which I stated previously works as intended, and is invoked by a "Start App" command, which I realize that term could be defined differently.  So if that's true, is Tasker capable of launching a service?

Robert Ryan

unread,
Oct 18, 2018, 11:09:51 AM10/18/18
to tas...@googlegroups.com
I've never done this, but I think you can use Send Intent to start a service. See Pent's responses in this thread

DieHardBattery

unread,
Oct 19, 2018, 9:40:36 AM10/19/18
to Tasker
So I checked out the thread you suggested, and I'm not sure that this will work based on the advice there.. Here's a screenshot:
Screenshot_20181019-082515_Tasker.jpg





















For category, I've tried Desk Dock, Launcher, Default, and None.  I believe I have everything else right according to the thread you linked to.  Still no dice.

Robert Ryan

unread,
Oct 19, 2018, 9:51:12 AM10/19/18
to tas...@googlegroups.com
Sorry, I have zero experience with starting services.

You might want to report this as a bug on the Tasker issue tracker

Jay M

unread,
Oct 20, 2018, 8:35:05 AM10/20/18
to tas...@googlegroups.com
Its not a bug not all services can be started the exact same way Pent said (no im not saying he's wrong) just what he wrote was specifically for the OP, the extras won't always be toggle:toggle so you cant just copy it word for word and change the package/class names extras have to be a key value pair separated with a comma and you need to know what they are. See sendIntent the userguide for more info and about how to find intents, Also note the text I highlighted that tells you what limitations this action has.

package: com.android.sec.desktopmode
class: com.android.sec.desktopmode.UIService

try this^ without using an extra notice you mixed up some words 



On Fri, 19 Oct 2018, 14:51 Robert Ryan, <rbr...@gmail.com> wrote:
Sorry, I have zero experience with starting services.

You might want to report this as a bug on the Tasker issue tracker

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
--

Jay M ︻芫══一

DieHardBattery

unread,
Oct 20, 2018, 9:08:51 AM10/20/18
to Tasker
 I tried what you suggested, and it didn't work.  I understand what you mean about not being to just copy verbatim from another example because of the potential of a lot of subtle differences.  Toggle made sense because in my mind, you are turning on/off or enabling/disabling something.   But it now seems like we are back to the question of whether or not this is an actual "service".  Despite the package having "uiservice" in the name, is it truly a service?  When I created this task in AutoMate app, the way to start it was to select the option to start an app, I don't remember any mention of a service anywhere.  DeX Mode is started one of 2 ways on the Tab S4.  It will launch automatically if you have the Samsung Keyboard cover (via pogo contacts), or you can manually start it via Quick Settings.

Jay M

unread,
Oct 20, 2018, 11:15:13 AM10/20/18
to tas...@googlegroups.com
The easiest way to find out what it is and how to fill in the info screen will be using a logcat its what I had to do to figure out how to switch to Live TV on my Android TV. If I hadn't sold my Note 8 for an XZ2 i'd look into this myself.

On Sat, 20 Oct 2018, 14:08 DieHardBattery, <stanch...@gmail.com> wrote:
 I tried what you suggested, and it didn't work.  I understand what you mean about not being to just copy verbatim from another example because of the potential of a lot of subtle differences.  Toggle made sense because in my mind, you are turning on/off or enabling/disabling something.   But it now seems like we are back to the question of whether or not this is an actual "service".  Despite the package having "uiservice" in the name, is it truly a service?  When I created this task in AutoMate app, the way to start it was to select the option to start an app, I don't remember any mention of a service anywhere.  DeX Mode is started one of 2 ways on the Tab S4.  It will launch automatically if you have the Samsung Keyboard cover (via pogo contacts), or you can manually start it via Quick Settings.

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

DieHardBattery

unread,
Oct 20, 2018, 1:01:51 PM10/20/18
to Tasker
So a logcat didn't produce much.  Perhaps it's the logcat app I'm using, or maybe the app gets killed and restarts when switching to and from DeX mode.  This is what I captured:

<<< log_count = 50 >>>
[10-20 11:56:33.244 16748:16748 D/ViewRootImpl@f6835bf[PopupWindow:b006260]]
Relayout returned: old=[1564,67][1907,655] new=[1564,67][1907,655] result=0x1 surface={valid=true 512056238080} changed=false

[10-20 11:56:33.266 16748:16748 D/ViewRootImpl@e0656e0[MainActivity]]
MSG_WINDOW_FOCUS_CHANGED 1

[10-20 11:56:33.267 16748:16748 D/DecorCaptionView]
updateButtonVisibility densityDpi = 280

[10-20 11:56:33.283 16748:16748 D/ViewRootImpl@e0656e0[MainActivity]]
Relayout returned: old=[528,0][1928,1050] new=[528,0][1928,1050] result=0x1 surface={valid=true 512057827328} changed=false

[10-20 11:56:33.285 16748:16748 D/ViewRootImpl@f6835bf[PopupWindow:b006260]]
MSG_WINDOW_FOCUS_CHANGED 0

[10-20 11:56:33.306 16748:16772 I/OpenGLRenderer]
prepareTree mLayerUpdateQueue is not empty, size = 1

[10-20 11:56:33.307 16748:16772 I/OpenGLRenderer]
name = PopupWindow$PopupBackgroundView, size (343, 588)

[10-20 11:56:33.413 16748:16772 D/OpenGLRenderer]
eglDestroySurface = 0x7738ed5700, 0x7738ee2000

[10-20 11:56:33.413 16748:16772 D/OpenGLRenderer]
endAllActiveAnimators on 0x77385bcc00 (MenuPopupWindow$MenuDropDownListView) with handle 0x77387fc800

[10-20 11:56:33.413 16748:16748 D/ViewRootImpl@f6835bf[PopupWindow:b006260]]
dispatchDetachedFromWindow

[10-20 11:56:33.413 16748:16748 D/InputEventReceiver]
channel '7896ae7 PopupWindow:b006260 (client)' ~ Disposing input event receiver.

[10-20 11:56:33.413 16748:16748 D/InputEventReceiver]
channel '7896ae7 PopupWindow:b006260 (client)' ~NativeInputEventReceiver.

[10-20 11:56:33.424 16748:16748 D/InputTransport]
Input channel destroyed: fd=88

[10-20 11:56:36.438 16748:16748 D/ViewRootImpl@e0656e0[MainActivity]]
ViewPostIme pointer 0

[10-20 11:56:36.513 16748:16748 D/ViewRootImpl@e0656e0[MainActivity]]
ViewPostIme pointer 1

[10-20 11:56:39.756 16748:16748 D/ViewRootImpl@e0656e0[MainActivity]]
MSG_WINDOW_FOCUS_CHANGED 0

[10-20 11:56:39.756 16748:16748 D/DecorCaptionView]
updateButtonVisibility densityDpi = 280

[10-20 11:56:39.769 16748:16748 D/ViewRootImpl@e0656e0[MainActivity]]
Relayout returned: old=[528,0][1928,1050] new=[528,0][1928,1050] result=0x1 surface={valid=true 512057827328} changed=false

[10-20 11:56:39.773 16748:16748 D/LogcatReader]
[Logcat] onActivityInBackground

[10-20 11:56:39.775 16748:16748 D/DecorCaptionView]
updateButtonVisibility densityDpi = 280

[10-20 11:56:39.799 16748:16772 D/OpenGLRenderer]
eglDestroySurface = 0x7739355100, 0x7739066000

[10-20 11:56:39.805 16748:16748 D/ViewRootImpl@e0656e0[MainActivity]]
Relayout returned: old=[528,0][1928,1050] new=[528,0][1928,1050] result=0x5 surface={valid=false 0} changed=true

[10-20 11:56:39.829 16748:16748 D/InputTransport]
Input channel destroyed: fd=78

[10-20 11:56:39.836 16748:16748 D/ViewRootImpl@e0656e0[MainActivity]]
Relayout returned: old=[528,0][1928,1050] new=[528,0][1928,1050] result=0x1 surface={valid=false 0} changed=false

[10-20 11:56:41.037 16748:16748 D/ViewRootImpl@e0656e0[MainActivity]]
Relayout returned: old=[528,0][1928,1050] new=[528,0][1928,1050] result=0x1 surface={valid=false 0} changed=false

[10-20 11:56:48.312 16748:16748 D/ViewRootImpl@e0656e0[MainActivity]]
dispatchDetachedFromWindow

[10-20 11:56:48.313 16748:16748 D/InputEventReceiver]
channel '732819c com.dp.logcatapp/com.dp.logcatapp.activities.MainActivity (client)' ~ Disposing input event receiver.

[10-20 11:56:48.313 16748:16748 D/InputEventReceiver]
channel '732819c com.dp.logcatapp/com.dp.logcatapp.activities.MainActivity (client)' ~NativeInputEventReceiver.

[10-20 11:56:48.319 16748:16748 D/InputTransport]
Input channel destroyed: fd=74

[10-20 11:56:48.424 16748:16748 D/InputTransport]
Input channel constructed: fd=74

[10-20 11:56:48.425 16748:16748 D/ViewRootImpl@86cd0b3[MainActivity]]
setView = DecorView@b5d9670[MainActivity] TM=true MM=false

[10-20 11:56:48.427 16748:16748 V/InputMethodManager]
Not IME target window, ignoring

[10-20 11:56:48.430 16748:16748 D/ViewRootImpl@86cd0b3[MainActivity]]
dispatchAttachedToWindow

[10-20 11:56:48.441 16748:16748 V/Surface]
sf_framedrop debug : 0x4f4c, game : false, logging : 0

[10-20 11:56:48.441 16748:16748 D/ViewRootImpl@86cd0b3[MainActivity]]
Relayout returned: old=[0,0][0,0] new=[0,0][2560,1600] result=0x7 surface={valid=true 512039735296} changed=true

[10-20 11:56:48.483 16748:16772 D/OpenGLRenderer]
eglCreateWindowSurface = 0x7738ef77c0, 0x7737f25010

[10-20 11:56:48.493 16748:16748 D/LogcatReader]
[LogcatLiveFragment] onServiceConnected

[10-20 11:56:48.493 16748:16748 D/LogcatReader]
[LogcatLiveFragment] Added all logs

[10-20 11:56:48.495 16748:16748 D/LogcatReader]
[Logcat] onActivityInForeground

[10-20 11:56:48.533 16748:16748 D/ViewRootImpl@86cd0b3[MainActivity]]
MSG_RESIZED_REPORT: frame=Rect(0, 0 - 2560, 1600) ci=Rect(0, 54 - 0, 108) vi=Rect(0, 54 - 0, 108) or=2

[10-20 11:56:48.542 16748:16748 D/ViewRootImpl@86cd0b3[MainActivity]]
Relayout returned: old=[0,0][2560,1600] new=[0,0][2560,1600] result=0x3 surface={valid=true 512039735296} changed=false

[10-20 11:56:48.636 16748:16748 D/ViewRootImpl@86cd0b3[MainActivity]]
MSG_WINDOW_FOCUS_CHANGED 1

[10-20 11:56:48.640 16748:16748 V/InputMethodManager]
Starting input: tba=android.view.inputmethod.EditorInfo@396d6a5 nm : com.dp.logcatapp ic=null

[10-20 11:56:48.640 16748:16748 D/InputMethodManager]
startInputInner - Id : 0

[10-20 11:56:48.640 16748:16748 I/InputMethodManager]
startInputInner - mService.startInputOrWindowGainedFocus

[10-20 11:56:48.648 16748:24162 D/InputTransport]
Input channel constructed: fd=78

[10-20 11:56:48.693 16748:16748 V/InputMethodManager]
Starting input: tba=android.view.inputmethod.EditorInfo@86181cb nm : com.dp.logcatapp ic=null

[10-20 11:56:48.693 16748:16748 D/InputMethodManager]
startInputInner - Id : 0

[10-20 11:56:50.323 16748:16748 D/ViewRootImpl@86cd0b3[MainActivity]]
ViewPostIme pointer 0

[10-20 11:56:50.378 16748:16748 D/ViewRootImpl@86cd0b3[MainActivity]]
ViewPostIme pointer 1



Jay M

unread,
Oct 21, 2018, 1:42:44 PM10/21/18
to tas...@googlegroups.com
yeah I cant see anything useful in there I think in later Android versions roots needed and without it you will only see its own logs.
Reply all
Reply to author
Forward
0 new messages