From cc19cc75eea5272d374a6ed91835d36a23158f2d Mon Sep 17 00:00:00 2001 From: Michael Evans Date: Fri, 18 Oct 2019 06:42:10 -0700 Subject: [PATCH] Move declaration of required permissions into core lib (#593) Summary: If we move the permissions into the library itself, the manifest merger will take care of adding them to consuming applications, making setup instructions easier. ## Changelog Move required permission declarations into flipper-core Pull Request resolved: https://github.com/facebook/flipper/pull/593 Test Plan: Using aapt we can dump the permissions of a sample app. `$ANDROID_HOME/build-tools/29.0.2/aapt d permissions sample-debug.apk ` ``` package: com.facebook.flipper.sample uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE' uses-permission: name='android.permission.INTERNET' uses-permission: name='android.permission.ACCESS_WIFI_STATE' uses-permission: name='android.permission.READ_EXTERNAL_STORAGE' uses-permission: name='android.permission.FOREGROUND_SERVICE ``` Reviewed By: priteshrnandgaonkar Differential Revision: D18006323 Pulled By: passy fbshipit-source-id: c4cf28ee698faa3e2b631462f2953976135b299c --- android/sample/AndroidManifest.xml | 2 -- android/src/main/AndroidManifest.xml | 3 +++ docs/getting-started.md | 9 +-------- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/android/sample/AndroidManifest.xml b/android/sample/AndroidManifest.xml index b23319b47..b23fd5e0c 100644 --- a/android/sample/AndroidManifest.xml +++ b/android/sample/AndroidManifest.xml @@ -9,9 +9,7 @@ - - + + + diff --git a/docs/getting-started.md b/docs/getting-started.md index 95988ebd6..ed0ae5788 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -22,14 +22,7 @@ Once you start Flipper and launch an emulator/simulator or connect a device, you ## Setup your Android app -Add the following permissions to your `AndroidManifest.xml`. The SDK needs these to communicate with the desktop app on localhost via adb. It won't make any external internet requests. - -```xml - - -``` - -It's recommended that you add the following activity to the manifest too, which can help diagnose integration issues and other problems: +It's recommended that you add the following activity to the manifest, which can help diagnose integration issues and other problems: ```xml