Skip to main content
Question

Trying to automate real device using TMA but getting error and unable to continue further.

  • November 19, 2025
  • 4 replies
  • 16 views

Forum|alt.badge.img

This is the complete error i am getting while trying to scan

- Impossible to connect to Appium Server at 'http://127.0.0.1:8585/'. Please, check if the address is correct and connection is possible. Original error: 'Command 'C:\\Users\\rishi_harjani\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s 9b09478b shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' exited with code 255'; Command output:

 

 

Also, This is the article(KB0015473) i followed to setup environment variable but nothing works. same issue. My android real device is successfully connected and visible in TMA but while trying to scan , I am getting the error. Any idea/suggestion how to resolve this. ?

4 replies

Mustafa
Forum|alt.badge.img+8
  • Technical Community Manager
  • November 21, 2025

Hi, ​@Rishiharjani 

Can you please clarify which software are you facing this issue with?


Forum|alt.badge.img
  • Author
  • Space Cadet
  • November 21, 2025

I have successfully installed TMA(Tricentis Mobile Agent) and successfully able to connect my android device within it. 

As a next step, when I am trying to scan mobile modules, In Desired Capabilities, I have entered the TMA as connection then select my android device and select the specific app within it  and click on connect . At that time, it is unable to connect and giving me the mentioned error, so i am unable to proceed further to continue with mobile POC using TMA 

 

This is the error - Impossible to connect to Appium Server at 'http://127.0.0.1:8585/'. Please, check if the address is correct and connection is possible. Original error: 'Command 'C:\\Users\\rishi_harjani\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s 9b09478b shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' exited with code 255'; Command output:

 

I hope this clarifies.


Mustafa
Forum|alt.badge.img+8
  • Technical Community Manager
  • November 21, 2025

@Rishiharjani Thank you for the clarification.

You can contact the Tricentis support team by visiting this link and choosing the method that fits you.

Please let us know if you have any questions.


Try the below to fix this issue

Enable ‘ Disable Permission Monitoring’ from the android real device 

lt can be found in the Setting -System- Developer - Debugging