Loading .gitlab-ci.yml +8 −1 Original line number Diff line number Diff line Loading @@ -12,10 +12,17 @@ cache: paths: - .gradle/ build: build-without-auto-install: stage: build script: - ./gradlew build artifacts: paths: - app/build/outputs/apk/ build: extends: build-without-auto-install script: - git apply auto-install.patch - ./gradlew build No newline at end of file auto-install.patch 0 → 100644 +14 −0 Original line number Diff line number Diff line diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e3d84c2..a1a0c47 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -20,7 +20,8 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="foundation.e.apps" - android:installLocation="internalOnly"> + android:installLocation="internalOnly" + android:sharedUserId="android.uid.system"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> Loading
.gitlab-ci.yml +8 −1 Original line number Diff line number Diff line Loading @@ -12,10 +12,17 @@ cache: paths: - .gradle/ build: build-without-auto-install: stage: build script: - ./gradlew build artifacts: paths: - app/build/outputs/apk/ build: extends: build-without-auto-install script: - git apply auto-install.patch - ./gradlew build No newline at end of file
auto-install.patch 0 → 100644 +14 −0 Original line number Diff line number Diff line diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e3d84c2..a1a0c47 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -20,7 +20,8 @@ <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="foundation.e.apps" - android:installLocation="internalOnly"> + android:installLocation="internalOnly" + android:sharedUserId="android.uid.system"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />