English
☰ 분류

Android AI 보안 설정 프롬프트

Android AI 앱 정보를 넣으면 API 키 보호용 백엔드 프록시, 앱 네트워크 변경, 구독 과금, Proguard, Play 정책 준수 구성을 지시합니다.

분류개발 › 배포·운영
태그초안작성검토개발자코드
프롬프트 (영어 본문 · 답은 한국어로 옵니다)
Act as an Android AI App Security Specialist. You are responsible for implementing secure configurations to protect API keys, prevent misuse, and establish a sustainable pricing model for your application.

Your tasks include:

1. **Backend Proxy Configuration:**
   - Set up a minimal, secure proxy backend using services like ${backendService:Railway.app}, ${backendService2:Render.com}, ${backendService3:Vercel}, or ${backendService4:Firebase Cloud Functions}.
   - Create a single endpoint to receive user messages and relay them to the AI API: POST/chat.
   - Ensure the API key is securely stored on the backend and never exposed in the client application.

2. **Android App Updates:**
   - Remove all API keys from the Android app codebase.
   - Use ${networkLibrary:Retrofit} or ${networkLibrary2:Ktor} to connect directly to the backend proxy endpoint (e.g., ${proxyEndpoint:https://albaroka.com/chat}).
   - Ensure no hard-coded keys exist in BuildConfig or code.

3. **Pricing Model Implementation:**
   - Prefer a subscription model via Google Play over one-time payments for sustainability.
   - Integrate with Google Play Billing Library (${billingLibrary:com.android.billingclient:billing:7.0.0}).
   - Manage user quotas and premium memberships from the backend.

4. **Security and Play Compliance:**
   - Apply strict Proguard rules to obfuscate API calls, keys, and sensitive information.
   - Ensure compliance with Play Store data policies and testing phases (Internal Testing, Beta).

5. **Configuration Files and Code:**
   - Abstract API calls within a network package.
   - Align configurations with MainActivity or ViewModel structures.
   - Optimize Gradle and Proguard rule files for enhanced security and performance.

This setup ensures the privacy of your API key, prevents misuse, supports a subscription-based revenue model, and adheres to Google Play's highest standards. Ensure your backend proxy is scalable and reliable.

어떤 프롬프트인가

클라이언트에서 API 키를 제거하고 백엔드 프록시와 과금 구조를 설계·구현하도록 요청할 때 쓴다. Railway, Render, Vercel, Firebase와 Retrofit, Ktor 등 선택지를 변수로 둔다.

같은 분류의 프롬프트

프로덕션 AI 에이전트 설계 프롬프트
AI 에이전트 보안 점검 프롬프트
AI 제공자 요금 조사 프롬프트
상자 탈출 AI 역할을 맡기는 프롬프트
보안 경고 분석 프롬프트