Executive Summary:
There is something that needs to be fixed with the latest Android app that is preventing the creation of directories and permissions on sed directories. The work around detailed above to allow the Plex app on Android to launch worked but there were not quite enough steps. So with some back and forth with AI I have a bit more steps that might help someone without needing to do all of the back and forth that I did. HOWEVER there is still another problem I am debugging where the latest android release is having some weird issue where the app is restarting a video from the beginning of the video from time to time. Seems to be random but I am working on that next.
Guide to Installing ADB and Fixing the Plex App Crash
This guide will walk you through the three main stages: setting up your Google Pixel 7, installing the ADB tools on your computer, and executing the commands provided in the Plex forum.
Part 1: Prepare Your Google Pixel 7
You need to enable a hidden setting called “Developer Options” and then turn on “USB Debugging.”
Step 1: Enable Developer Options
-
Open the Settings app on your Pixel 7.
-
Scroll down and tap About phone.
-
Scroll to the very bottom and find Build number.
-
Tap the Build number seven times rapidly.
-
You will see a message pop up that says, “You are now a developer!”
Step 2: Enable USB Debugging
-
Go back to the main Settings page.
-
Tap System (it might be under “System & updates” on some versions).
-
Tap Developer options (this new menu item is near the bottom).
-
Scroll down and find USB debugging.
-
Toggle the switch ON.
-
A warning pop-up will appear. Tap OK.
Part 2: Set Up ADB on Your Computer (Windows, Mac, or Linux)
ADB is part of Google’s SDK Platform-Tools. You only need to download this small package.
Step 1: Download Platform Tools
-
Go to the official Android Developers website to download the SDK Platform-Tools.
-
Download the ZIP file corresponding to your operating system (Windows, macOS, or Linux).
-
Extract the contents of the ZIP file to an easy-to-access location, such as:
-
The extracted folder will contain the adb executable, among other files.
Step 2: Open a Command Window in the Tools Folder
This is the most crucial step for running the commands!
Windows
1. Open the platform-tools folder (e.g., C:\adb\platform-tools).
2. Click the address bar at the top of the folder window.
3. Type cmd and press Enter. A Command Prompt window will open directly in that folder.
Mac/Linux
1. Open the Terminal app.
2. Use the cd command to navigate to the folder. For example, if you saved it in your home folder: cd ~/adb/platform-tools
Part 3: Connect and Execute the Fix
Step 1: Verify ADB Connection
In the Command Prompt/Terminal window you opened in Part 2, Step 2, type the following command and press Enter:
adb devices
Expected Result: You should see a list of attached devices, and your Pixel 7 should show up with a status of device.
List of devices attached
XXXXXXXXXXXXXXX device
If it still says unauthorized, look at your phone screen and make sure you tap Allow on the pop-up.
Step 2: Execute the Plex Fix Commands
Now that ADB is running and connected, you can execute the commands one by one. Copy and paste each line below into the Command Prompt/Terminal and press Enter after each one.
These commands create necessary folders for Plex and ensure the app has the right permissions to access them. You won’t see any output if the command is successful; it will just go to the next line.
-
Create ‘files’ directory:
adb shell mkdir -p /sdcard/Android/data/com.plexapp.android/files
-
Create ‘cache’ directory:
adb shell mkdir -p /sdcard/Android/data/com.plexapp.android/cache
-
Set permissions for the main data folder:
adb shell chmod 771 /sdcard/Android/data/com.plexapp.android
-
Set permissions for the ‘files’ folder:
adb shell chmod 771 /sdcard/Android/data/com.plexapp.android/files
-
Set permissions for the ‘cache’ folder:
adb shell chmod 771 /sdcard/Android/data/com.plexapp.android/cache
After running the final command, you can unplug your phone and try opening the Plex app again. It should now launch correctly!
Troubleshooting Connection Issues
If you did not receive the “Allow USB debugging?” pop-up, but now have a data cable:
1. Check the USB Connection Mode (Primary Fix)
-
Unplug and replug your Pixel 7.
-
Look in your phone’s notification shade (swipe down from the top).
-
Tap the notification that says something like “Charging this device via USB” or “USB preferences.”
-
Under the “Use USB for” menu, make sure File transfer / Android Auto is selected.
2. Revoke USB Debugging Authorizations
If you enabled debugging before and it’s stuck in a bad state, revoking previous connections often forces the system to show the pop-up again.
-
On your phone, go to Settings > System > Developer options.
-
Scroll down and tap Revoke USB debugging authorizations.
-
Tap OK on the confirmation screen.
-
Unplug your phone, wait a few seconds, and plug it back in. The “Allow USB debugging?” prompt should now appear.