Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download android/app/src/main/AndroidManifest.xml from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 5.97 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/83a59cae175e3c9a43b6f5d3f8749ca61b6b5072/android/app/src/main/AndroidManifest.xml
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@83a59cae175e3c9a43b6f5d3f8749ca61b6b5072/android/app/src/main/AndroidManifest.xml
-
curl -L -o AndroidManifest.xml https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/83a59cae175e3c9a43b6f5d3f8749ca61b6b5072/android/app/src/main/AndroidManifest.xml
5.97 kB
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools"> | |
| <uses-feature | |
| android:name="android.hardware.telephony" | |
| android:required="false" /> | |
| <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
| <uses-permission android:name="android.permission.READ_CALL_LOG" /> | |
| <uses-permission android:name="android.permission.READ_SMS" /> | |
| <uses-permission android:name="android.permission.SEND_SMS" /> | |
| <uses-permission android:name="android.permission.RECEIVE_SMS" /> | |
| <uses-permission android:name="android.permission.RECEIVE_MMS"/> | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> | |
| <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> | |
| <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> | |
| <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /> | |
| <uses-permission android:name="android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING"/> | |
| <application | |
| android:allowBackup="true" | |
| android:dataExtractionRules="@xml/data_extraction_rules" | |
| android:fullBackupContent="@xml/backup_rules" | |
| android:icon="@mipmap/ic_launcher" | |
| android:label="@string/app_name" | |
| android:roundIcon="@mipmap/ic_launcher_round" | |
| android:supportsRtl="true" | |
| android:theme="@style/Theme.HttpSMS" | |
| tools:targetApi="36"> | |
| <activity | |
| android:name=".MainActivity" | |
| android:screenOrientation="portrait" | |
| android:exported="true" | |
| tools:ignore="LockedOrientationActivity"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.MAIN" /> | |
| <category android:name="android.intent.category.LAUNCHER" /> | |
| </intent-filter> | |
| </activity> | |
| <activity android:name=".LoginActivity" android:screenOrientation="portrait" | |
| tools:ignore="LockedOrientationActivity" /> | |
| <activity android:name=".SettingsActivity" android:screenOrientation="portrait" | |
| tools:ignore="LockedOrientationActivity" /> | |
| <activity | |
| android:name="com.journeyapps.barcodescanner.CaptureActivity" | |
| android:screenOrientation="fullSensor" | |
| tools:replace="screenOrientation" | |
| tools:ignore="DiscouragedApi" /> | |
| <service | |
| android:name=".services.StickyNotificationService" | |
| android:enabled="true" | |
| android:foregroundServiceType="remoteMessaging" | |
| android:exported="false"> | |
| </service> | |
| <service | |
| android:name=".MyFirebaseMessagingService" | |
| android:foregroundServiceType="remoteMessaging" | |
| android:exported="false"> | |
| <intent-filter> | |
| <action android:name="com.google.firebase.MESSAGING_EVENT" /> | |
| </intent-filter> | |
| </service> | |
| <receiver android:name=".ReceivedReceiver" android:permission="android.permission.BROADCAST_SMS" | |
| android:exported="true"> | |
| <intent-filter android:priority="999"> | |
| <action android:name="android.provider.Telephony.SMS_RECEIVED"/> | |
| </intent-filter> | |
| <intent-filter android:priority="999"> | |
| <action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" /> | |
| <data android:mimeType="application/vnd.wap.mms-message" /> | |
| </intent-filter> | |
| </receiver> | |
| <receiver android:enabled="true" android:exported="true" android:name=".receivers.PhoneStateReceiver" android:permission="android.permission.READ_PHONE_STATE"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.PHONE_STATE" /> | |
| </intent-filter> | |
| </receiver> | |
| <receiver android:enabled="true" | |
| android:name=".receivers.BootReceiver" | |
| android:exported="true" | |
| android:permission="android.permission.RECEIVE_BOOT_COMPLETED"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.BOOT_COMPLETED"/> | |
| </intent-filter> | |
| </receiver> | |
| <!-- Need this to share the attachment images with native mms service --> | |
| <provider | |
| android:name="androidx.core.content.FileProvider" | |
| android:authorities="${applicationId}.fileprovider" | |
| android:exported="false" | |
| android:grantUriPermissions="true"> | |
| <meta-data | |
| android:name="android.support.FILE_PROVIDER_PATHS" | |
| android:resource="@xml/file_paths" /> | |
| </provider> | |
| <meta-data | |
| android:name="com.google.firebase.messaging.default_notification_channel_id" | |
| android:value="@string/notification_channel_default" /> | |
| <meta-data android:name="io.sentry.dsn" android:value="https://3413741bb211a873f5f93a00b8974a03@o291224.ingest.sentry.io/6539757" /> | |
| <!-- Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring. | |
| We recommend adjusting this value in production. --> | |
| <meta-data android:name="io.sentry.traces.sample-rate" android:value="0.5" /> | |
| <!-- Enable user interaction tracing to capture transactions for various UI events (such as clicks or scrolls). --> | |
| <meta-data android:name="io.sentry.traces.user-interaction.enable" android:value="true" /> | |
| <!-- https://developer.android.com/studio/build/manifest-build-variables --> | |
| <meta-data android:name="io.sentry.environment" android:value="${sentryEnvironment}" /> | |
| </application> | |
| </manifest> | |