title: Firebase Admins SDK and App check SafetyNet
body: <p>I have firebase project connected to android app, and I am using App check (SafetyNet), and it work 100% well.</p>
  <p>Also I am using admins SDK (java) to connect and do action in the project. before using the App check every thing was working 100% well, but after enabling app check I can't access and all action fail.</p>
  <p>so how to deal with admin SDK and app check ?</p>
  <pre><code>   FirebaseOptions options = new FirebaseOptions.Builder().setCredentials(GoogleCredentials.fromStream(
              new ClassPathResource(&quot;/myproject-firebase-adminsdk.json&quot;).getInputStream()))
              .setDatabaseUrl(&quot;https://myproject-default-rtdb.firebaseio.com&quot;).build();
  
      if (FirebaseApp.getApps().isEmpty()) {
          FirebaseApp.initializeApp(options);
      }
  
  DatabaseReference ref2 = FirebaseDatabase.getInstance().getReference(&quot;/users&quot;);
       ref2.addListenerForSingleValueEvent(new ValueEventListener() {
          @Override
            public void onDataChange(DataSnapshot dataSnapshot) {
              Object document = dataSnapshot.getValue();
              System.out.println(document);
      }
  
      @Override
      public void onCancelled(DatabaseError error) {
          System.out.println(error);
  
      }
  });
  </code></pre>
  <p><a href="https://i.stack.imgur.com/P6ch5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P6ch5.png" alt="App check" /></a></p>