Error installing Android app (browser) that is already preinstalled

0

I want to run tests in a specific version of the Chrome browser, and the device (e.g. Pixel) has a specific version (e.g. 67) preinstalled. (this is an example - the same applies to e.g. the Samsung Internet browser on Samsung devices)

Now I want to install a specific newer version (e.g. the 76) to run my tests in, so I specify it as an auxiliary app. During setup, installation fails with error "Package com.android.chrome is already installed as a default system app".

https://us-west-2.console.aws.amazon.com/devicefarm/home?region=us-east-2#/projects/66cd20af-0f7e-492b-a5ce-d81174486a49/runs/5bd0c9e9-7b39-40c5-ad34-2ec67289d887/jobs/00000

I expected this to work like it does with "adb install", or even "adb install -r -d" which allows downgrading versions as well.

Is it on purpose that you do not support updating system apps? Do you have a recommendation how to work around that?

mariogu
질문됨 5년 전247회 조회
2개 답변
0

Hello.

We don't officially support sending different Chrome versions as auxiliary apps; but, I see you're all ready using custom environments. You could install it manually during the Install phase.

You could do this via downloading it in session, something like

curl URL_TO_APK  > /tmp/chrome.apk
adb install -r /tmp/chrome.apk

Or you could embed it into your test zip file and install it from there

adb install -r $DEVICEFARM_TEST_PACKAGE_PATH/chrome.apk

Let us know if you need any more help.
Scott

답변함 5년 전
0

Works great, thank you!

mariogu
답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠