MakeMy Trip is not opening on my device Android Oppo - please help me in resolving this issue | Appium Forum
D
Daniel Posted on 01/12/2023

[info] [35m[Appium][39m Welcome to Appium v1.15.1
[info] [35m[Appium][39m Non-default server args:
[info] [35m[Appium][39m allowInsecure: {
[info] [35m[Appium][39m }
[info] [35m[Appium][39m denyInsecure: {
[info] [35m[Appium][39m }
[info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m
[info] [35m[HTTP][39m [90m{"desiredCapabilities":{"app":"C:\\common\\selenium\\appium\\mkmt.apk","platformName":"Android","udid":"f44c6d5c","deviceName":"f44c6d5c","platformVersion":"13"},"capabilities":{"firstMatch":[{"appium:app":"C:\\common\\selenium\\appium\\mkmt.apk","appium:deviceName":"f44c6d5c","platformName":"android","appium:platformVersion":"13","appium:udid":"f44c6d5c"}]}}[39m
[debug] [35m[W3C][39m Calling AppiumDriver.createSession() with args: [{"app":"C:\\common\\selenium\\appium\\mkmt.apk","platformName":"Android","udid":"f44c6d5c","deviceName":"f44c6d5c","platformVersion":"13"},null,{"firstMatch":[{"appium:app":"C:\\common\\selenium\\appium\\mkmt.apk","appium:deviceName":"f44c6d5c","platformName":"android","appium:platformVersion":"13","appium:udid":"f44c6d5c"}]}]
[debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1701426652831 (16:00:52 GMT+0530 (India Standard Time))
[warn] [35m[Appium][39m
[warn] [35m[Appium][39m ======================================================================
[warn] [35m[Appium][39m DEPRECATION WARNING:
[warn] [35m[Appium][39m
[warn] [35m[Appium][39m The 'automationName' capability was not provided in the desired
[warn] [35m[Appium][39m capabilities for this Android session
[warn] [35m[Appium][39m
[warn] [35m[Appium][39m Setting 'automationName=UiAutomator2' by default and using the
[warn] [35m[Appium][39m UiAutomator2 Driver
[warn] [35m[Appium][39m
[warn] [35m[Appium][39m The next major version of Appium (2.x) will **require** the
[warn] [35m[Appium][39m 'automationName' capability to be set for all sessions on all
[warn] [35m[Appium][39m platforms
[warn] [35m[Appium][39m
[warn] [35m[Appium][39m In previous versions (Appium <= 1.13.x), the default was
[warn] [35m[Appium][39m 'automationName=UiAutomator1'
[warn] [35m[Appium][39m
[warn] [35m[Appium][39m If you wish to use that automation instead of UiAutomator2, please
[warn] [35m[Appium][39m add 'automationName=UiAutomator1' to your desired capabilities
[warn] [35m[Appium][39m
[warn] [35m[Appium][39m For more information about drivers, please visit
[warn] [35m[Appium][39m http://appium.io/docs/en/about-appium/intro/ and explore the
[warn] [35m[Appium][39m 'Drivers' menu
[warn] [35m[Appium][39m
[warn] [35m[Appium][39m ======================================================================
[warn] [35m[Appium][39m
[info] [35m[Appium][39m Appium v1.15.1 creating new AndroidUiautomator2Driver (v1.37.2) session
[debug] [35m[BaseDriver][39m W3C capabilities and MJSONWP desired capabilities were provided
[debug] [35m[BaseDriver][39m Creating session with W3C capabilities: {
[debug] [35m[BaseDriver][39m "alwaysMatch": {
[debug] [35m[BaseDriver][39m "platformName": "android",
[debug] [35m[BaseDriver][39m "appium:app": "C:\\common\\selenium\\appium\\mkmt.apk",
[debug] [35m[BaseDriver][39m "appium:deviceName": "f44c6d5c",
[debug] [35m[BaseDriver][39m "appium:platformVersion": "13",
[debug] [35m[BaseDriver][39m "appium:udid": "f44c6d5c"
[debug] [35m[BaseDriver][39m },
[debug] [35m[BaseDriver][39m "firstMatch": [
[debug] [35m[BaseDriver][39m {}
[debug] [35m[BaseDriver][39m ]
[debug] [35m[BaseDriver][39m }
[info] [35m[BaseDriver][39m Session created with session id: 5eb70f4e-caba-4ddb-a916-fe568bc65c5f
[info] [35m[BaseDriver][39m Using local app 'C:\common\selenium\appium\mkmt.apk'
[debug] [35m[UiAutomator2][39m Checking whether app is actually present[info] [35m[ADB][39m Using 'adb.exe' from 'C:\Users\E001238\AppData\Local\Android\Sdk\platform-tools\adb.exe'
[info] [35m[AndroidDriver][39m Retrieving device list
[debug] [35m[ADB][39m Trying to find a connected android device
[debug] [35m[ADB][39m Getting connected devices...[debug] [35m[ADB][39m Connected devices: [{"udid":"f44c6d5c","state":"device"}]
[info] [35m[AndroidDriver][39m Using device: f44c6d5c
[info] [35m[ADB][39m Using 'adb.exe' from 'C:\Users\E001238\AppData\Local\Android\Sdk\platform-tools\adb.exe'
[debug] [35m[ADB][39m Setting device id to f44c6d5c
[debug] [35m[ADB][39m Running 'C:\Users\E001238\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s f44c6d5c shell getprop ro.build.version.sdk'[debug] [35m[ADB][39m Current device property 'ro.build.version.sdk': 33
[debug] [35m[ADB][39m Device API level: 33
[warn] [35m[UiAutomator2][39m Relaxing hidden api policy
[debug] [35m[ADB][39m Running 'C:\Users\E001238\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s f44c6d5c shell settings put global hidden_api_policy_pre_p_apps 1'[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 session
[debug] [35m[ADB][39m Removing forwarded port socket connection: 8200
[debug] [35m[ADB][39m Running 'C:\Users\E001238\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s f44c6d5c forward --remove tcp\:8200'[warn] [35m[UiAutomator2][39m Unable to remove port forward 'Error executing adbExec. Original error: 'Command 'C:\\Users\\E001238\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s f44c6d5c forward --remove tcp\:8200' exited with code 1'; Stderr: 'adb.exe: error: listener 'tcp:8200' not found'; Code: '1''
[info] [35m[UiAutomator2][39m Restoring hidden api policy to the device default configuration
[debug] [35m[ADB][39m Running 'C:\Users\E001238\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s f44c6d5c shell settings delete global hidden_api_policy_pre_p_apps'[debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1701426654398 (16:00:54 GMT+0530 (India Standard Time))
[debug] [35m[W3C][39m Encountered internal error running command: Error executing adbExec. Original error: 'Command 'C:\\Users\\E001238\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s f44c6d5c shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Exception occurred while executing 'delete':
[debug] [35m[W3C][39m java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS
[debug] [35m[W3C][39m at com.android.providers.settings.SettingsProvider.enforceWritePermission(SettingsProvider.java:2562)
[debug] [35m[W3C][39m at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1562)
[debug] [35m[W3C][39m at com.android.providers.settings.SettingsProvider.mutateGlobalSetting(SettingsProvider.java:1554)
[debug] [35m[W3C][39m at com.android.providers.settings.SettingsProvider.deleteGlobalSetting(SettingsProvider.java:1525)
[debug] [35m[W3C][39m at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:568)
[debug] [35m[W3C][39m at android.content.ContentProvider.call(ContentProvider.java:2548)
[debug] [35m[W3C][39m at android.content.ContentProvider$Transport.call(ContentProvider.java:538)
[debug] [35m[W3C][39m at com.android.providers.settings.SettingsService$MyShellCommand.deleteForUser(SettingsService.java:410)
[debug] [35m[W3C][39m at com.android.providers.settings.SettingsService$MyShellCommand.onCommand(SettingsService.java:284)
[debug] [35m[W3C][39m at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
[debug] [35m[W3C][39m at android.os.ShellCommand.exec(ShellCommand.java:38)
[debug] [35m[W3C][39m at com.android.providers.settings.SettingsService.onShellCommand(SettingsService.java:51)
[debug] [35m[W3C][39m at android.os.Binder.shellCommand(Binder.java:1073)
[debug] [35m[W3C][39m at android.os.Binder.onTransact(Binder.java:901)
[debug] [35m[W3C][39m at android.os.Binder.execTransactInternal(Binder.java:1331)
[debug] [35m[W3C][39m at android.os.Binder.execTransact(Binder.java:1268)'; Code: '255'
[debug] [35m[W3C][39m Error: Command 'C:\\Users\\E001238\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s f44c6d5c shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255
[debug] [35m[W3C][39m at ChildProcess.proc.on.code (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\teen_process\lib\exec.js:113:19)
[debug] [35m[W3C][39m at ChildProcess.emit (events.js:182:13)
[debug] [35m[W3C][39m at maybeClose (internal/child_process.js:961:16)
[debug] [35m[W3C][39m at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[31m500[39m [90m1571 ms - 4216[39m
[info] [35m[HTTP][39m [90m[39m