1
Install Termux
https://f-droid.org/en/packages/com.termux/
2
Install Dependencies
apt update && apt upgrade && pkg i git && pkg i python3 && pkg update python && pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib && pip install --upgrade pip
3
Clone Repository
git clone https://github.com/infinitybayzid/TokenPickle
4
Prepare Credentials
Place your credentials.json file in your device's internal storage (not SD card). This file is required for authentication.
5
Setup Storage Access
termux-setup-storage
6
Navigate to Storage
cd /sdcard
7
Copy Credentials
cp -r credentials.json /data/data/com.termux/files/home/TokenPickle
8
Restart Termux
Close and reopen the Termux app to ensure all changes are applied.
9
Enter Project Directory
cd TokenPickle
10
Generate Token
python3 GenerateTokenPickle.py
After running this command, you'll receive a URL. Open it in your browser, log in with your Google account, and when you see "The authentication flow has completed", you can close the browser tab.
11
Copy Token File
cp -r token.pickle /sdcard
This copies the generated token.pickle to your device storage for easy access.