Unable to launch dialer package through appium on Android 7 Samsung S7 edge

trying to launch dialer app on samsung s7 edge and getting error in appium logs. same code and setup is working on samsung s6 edge with android 7.

we have tried with some other phones with android 7.1.1 version , it worked there as well .

is there any specific setup or property that needs to be set for samsung s7 edge ?

details:

android version 7.0 Android sdk platfrom tool: 26

below is the code

import unittest
import sys
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

class TestTestingBotClient(unittest.TestCase):
def setUp(self):
    desired_cap = {'appPackage': 'com.samsung.android.contacts', 'platformVersion': '7.0', 'platformName': 'android', 'deviceName': 'TA99300BKL','automationName': 'uiautomator2', 'appActivity': 'com.android.dialer.DialtactsActivity'}
    self.driver = webdriver.Remote( command_executor='http://0.0.0.0:4723/wd/hub',desired_capabilities=desired_cap)
def test_simple_example(self):
    pass
    #Test Actions Here

def tearDown(self):
    self.driver.quit()

if __name__ == '__main__':
unittest.main()

and following are appium logs:

[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“forward”,“tcp:8200”,“tcp:6790”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“shell”,“dumpsys”,“window”]
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [AndroidDriver] Extracting strings from apk null null /var/folders/21/dtwxlmps6fqf_snhlr01pwv80000gn/T/com.samsung.android.contacts
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices…
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“shell”,“getprop”,“persist.sys.locale”]
[debug] [ADB] Current device property ‘persist.sys.locale’: en-US
[debug] [ADB] No strings.xml for language ‘en’, getting default strings.xml
[debug] [ADB] Getting connected devices…
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“shell”,“rm”,“-rf”,“/data/local/tmp/strings.json”]
[debug] [UiAutomator2] No app capability. Assuming it is already on the device
[debug] [AndroidDriver] Running fast reset (stop and clear)
[debug] [ADB] Getting connected devices…
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“shell”,“am”,“force-stop”,“com.samsung.android.contacts”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“shell”,“pm”,“clear”,“com.samsung.android.contacts”]
[debug] [ADB] APK doesn’t exist. null
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/nextgenauto/Library/Android/sdk/build-tools/19.1.0/aapt
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Getting connected devices…
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“shell”,“pm”,“list”,“packages”,“io.appium.uiautomator2.server”]
[debug] [ADB] App is not installed
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Getting connected devices…
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“shell”,“pm”,“list”,“packages”,“io.appium.uiautomator2.server.test”]
[debug] [ADB] App is installed
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/nextgenauto/Library/Android/sdk/build-tools/19.1.0/aapt
[debug] [ADB] Getting connected devices…
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“shell”,“dumpsys”,“package”,“io.appium.uiautomator2.server”]
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: Error: Trying to proxy a session command without session id
[debug] [ADB] Getting connected devices…
[debug] [ADB] 2 device(s) connected
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“shell”,“am”,“force-stop”,“com.samsung.android.contacts”]
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running ‘/Users/nextgenauto/Library/Android/sdk/platform-tools/adb’ with args: [“-P”,5037,“-s”,“ce091609a5432c2501”,“forward”,“–remove”,“tcp:8200”]
[MJSONWP] Encountered internal error running command: TypeError: Cannot read property ‘toString’ of null
at UiAutomator2Server.getInstalledPackageVersion$ (…/…/lib/uiautomator2.js:94:22)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
[HTTP] ← POST /wd/hub/session 500 77485 ms - 176

System info

Platform I am automating : Android 7.0
Real Device : samsung s7 edge
python
MAC OSX