Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sharing android debug certificate across different developer machines in Android Studio

As Android debug builds get reinstalled when the same phone is connected to different MacBooks, is there any way for all development machines (MacBooks) to share the same debug certificate? It will help to avoid reinstallation on development devices.

like image 387
user1288005 Avatar asked Jan 14 '19 09:01

user1288005


2 Answers

Easiest thing to do this would be to check the debug keystore into your project and then reference it in build.gradle like so:

signingConfigs {
    debug {
        storeFile file('../keystore/debug.keystore')
        storePassword "android"
        keyAlias "androiddebugkey"
        keyPassword "android"
    }
    release {
        // ...
    }
}
like image 84
mick88 Avatar answered Oct 12 '22 22:10

mick88


I think that's possible. Android Studio automatically creates the debug keystore and certificate the first time you run or debug a project in Android Studio. Simply go to :

  • ~/.android/ folder on OS X and Linux
  • C:\Documents and Settings\.android\ on Windows XP
  • C:\Users\.android\ on Windows Vista and Windows 7, 8, and 10

on one of your development machine and find your debug.keystore file. Copy and paste the file on the other machines at the same location. Hope it will work!

like image 30
Nicola Gallazzi Avatar answered Oct 13 '22 00:10

Nicola Gallazzi