How to install debug.keystore for each Android project?

I am developing some applications that need a system UID. So I made a special keystore file "PFDebug.keystore" made from AOSP platform.pk8 and platform.x509.pem.

I installed it in the Eclipse window -> preferences> android> build> cutstom debug keystore. It works great.

But I also develop unprivileged applications that use my own debug.keystore file. Therefore, I have to change the keystore file for each assembly. I know that default debug.keystore is used when I install empty.

How can I link debug caching files for each android project?

+5
source share
1 answer

This can be done using gradle. For each project, you have build.gradle in which you can specify signConfig. For instance:

 signingConfigs {
        debug {
            storeFile file("../debug.keystore")
        }

        release {
            storeFile file("../prod.keystore")
            storePassword 'prod'
            keyAlias 'prod'
            keyPassword 'prod'
        }
    }
+3
source

All Articles