adb for verification. Menu labels vary by device; the source posts do not specify exact Facebook or Android builds, so check your device documentation when a label differs.
adb works before changing permissions.Facebook and photos. If the screen is absent, check your device documentation.| Control | Typical label | What it controls |
|---|---|---|
| Gallery/media permission | Photos and videos, or Files and media | Standing access to the photo library |
| System photo picker | Selected photos / photo picker | Only the items you choose for one upload |
| Camera permission | Camera | Taking new photos, not reading existing ones |
Check adb before starting:
adb version
adb devices
Expected: adb version prints a version line, and adb devices lists your phone as device. If it shows unauthorized, unlock the phone and accept the RSA prompt.
What to do: Find the exact package name and see which media permission your build exposes.
adb shell pm list packages | grep -i facebook
Example output:
package:com.facebook.katana
package:com.facebook.lite
Use the package that matches the app you want to restrict. For example, if the output contains package:com.facebook.katana, use com.facebook.katana in the commands below.
Then inspect reported media permissions:
adb shell dumpsys package com.facebook.katana | grep -E "READ_MEDIA|READ_EXTERNAL_STORAGE|ACCESS_MEDIA_LOCATION"
Why: The permission name is not identical on every Android build. Newer builds may use READ_MEDIA_IMAGES; older ones may use READ_EXTERNAL_STORAGE. Confirming the name prevents you from applying a rule that the device ignores.
How to check: Open Settings > Apps > See all apps > Facebook > Permissions. The screen must list a media or photos entry, such as Photos and videos or Files and media. If it shows No permissions requested, Facebook currently has no standing media grant on that profile.
What to do: Open Settings > Apps > See all apps > Facebook > Permissions > Photos and videos, then select Don’t allow. If your build labels it Files and media, open that entry and select Don’t allow. If the only choices are Allow all and Select photos, choose Select photos and do not add any items; this is a partial restriction, not a full denial.
Return to the Facebook permission screen and confirm the media entry no longer says Allowed.
If you need a scriptable check or your build exposes the operation, use appops. Start with a read:
adb shell appops get com.facebook.katana READ_MEDIA_IMAGES
Expected on a denied app:
READ_MEDIA_IMAGES: deny
To deny it from adb on builds that accept the operation:
adb shell appops set com.facebook.katana READ_MEDIA_IMAGES deny
adb shell appops set com.facebook.katana READ_MEDIA_VIDEO deny
If READ_MEDIA_IMAGES is unknown, use the permission name printed by Step 1. For example, an older build may require READ_EXTERNAL_STORAGE instead. If appops rejects the command, use the Settings path; do not assume the command worked.
Why: Android’s runtime permission is the system gate. When it is denied, Facebook cannot read the whole gallery in the background. The system photo picker is separate: it lets you hand the app specific photos for a specific upload.
How to check: Reopen Settings > Apps > See all apps > Facebook > Permissions. The media row must show Don’t allow, Not allowed, or no allowed items. Then run:
adb shell appops get com.facebook.katana READ_MEDIA_IMAGES
The expected result is deny. A missing line or No operations means that operation name is not used on this build; repeat the check with the name from Step 1.

What to do: Apply the change cleanly and test what Facebook can actually see.
adb shell am force-stop com.facebook.katana
Then open Settings > Apps > See all apps > Facebook > Storage & cache > Clear cache. Do not tap Clear storage unless you accept being signed out.
Open Facebook and start a photo upload. The expected result is the Android system photo picker, not an unrestricted gallery grid inside Facebook.
Use this checklist:
adb shell appops get com.facebook.katana READ_MEDIA_IMAGES returns deny, or the equivalent permission name from Step 1 returns deny.Why: Force-stop removes the running process so the old permission state is not reused. Clearing cache removes cached thumbnails that can make it look as if Facebook still has gallery access. The picker test confirms the difference between standing gallery access and a one-time user selection.
How to check: You should see the system picker UI with limited items or folders, and the Facebook permission screen should not show Allowed. If you can still browse the entire gallery inside Facebook without a picker, you likely changed the wrong package or profile; repeat Step 1 for Facebook Lite, Messenger, or the work-profile copy.
Problem. adb cannot see the phone.
adb: device unauthorized. Please check the confirmation dialog on your device.adb kill-server && adb start-server && adb devices. The phone must appear as device, not unauthorized.Problem. The appops command rejects the media operation.
Error: Unknown operation string: READ_MEDIA_IMAGESadb shell dumpsys package com.facebook.katana | grep -E "READ_MEDIA|READ_EXTERNAL_STORAGE" and use the reported name. For example: adb shell appops set com.facebook.katana READ_EXTERNAL_STORAGE deny. If the command is still rejected, use Settings > Apps > Facebook > Permissions and verify there.Problem. Settings says no media permission, but Facebook still shows old photos.
No permissions requested, yet thumbnails remain visible.adb shell pm list packages | grep -i facebook, repeat the denial for the matching package, then force-stop and clear cache: adb shell am force-stop com.facebook.katana. Recheck the upload flow; it should open the system picker.Denying the Photos and videos permission removes Facebook’s standing access to your gallery, while the system photo picker still lets you share individual items on demand. For the next step, apply the same audit to other apps and, if you run local AI tools on the same phone, use How to Run an AI Model Locally on Android: Apps and Setup and How to connect n8n to a local LLM: step-by-step private automation setup with Ollama as companion setup guides.
Does denying Photos and videos stop Facebook from uploading screenshots?
No. It stops standing gallery access. The system photo picker can still pass a screenshot or any other single item that you explicitly select during an upload.
Will Facebook still work after I deny gallery access?
Yes for text, messaging, and camera-based actions, subject to separate camera permission. Photo sharing changes to the system picker flow, so you choose each item instead of letting Facebook browse the library.
Do I need to repeat this for Facebook Lite or Messenger?
Yes. Android permissions are per package. Run adb shell pm list packages | grep -i facebook, then repeat the Settings and verification steps for each package you want to restrict.
Can I revoke the permission with adb without root?
adb can usually verify app operations and, on many builds, set them without root. Exact behavior depends on the Android build; if appops is rejected, use Settings > Apps > Facebook > Permissions and confirm the result there.
Status: practical guide. Some statements come from vendors; verify in your environment.
Time required: 5–10 minutes. You need: an Android phone with Facebook installed, access to Settings, and optionally a USB cable plus adb for verification. Menu labels vary by device; the source posts do not specify exact Facebook or Android builds, so check your device documentation when a label differs.
Machine data: Citation Map JSON · JSON-LD · Semantic Embeddings — separate stage.
| Entity | Type | Role |
|---|---|---|
| facebook доступ к фото android | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| запретить доступ к галерее android | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| разрешения приложений android | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| Android | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
No independent confirmation is provided; source claims and editorial conclusions are separated below.
| Source | Type | Role |
|---|---|---|
| No external links | — | — |
Cite as: AI Release. Как запретить Facebook доступ к галерее на Android: пошаговая настройка разрешений. ai-release.org.