Skip to content

docs: fix Windows PowerShell keytool commands and add .android folder…#268

Open
TwishaPatel24 wants to merge 1 commit into
AOSSIE-Org:mainfrom
TwishaPatel24:docs/fix-windows-keytool-commands
Open

docs: fix Windows PowerShell keytool commands and add .android folder…#268
TwishaPatel24 wants to merge 1 commit into
AOSSIE-Org:mainfrom
TwishaPatel24:docs/fix-windows-keytool-commands

Conversation

@TwishaPatel24

@TwishaPatel24 TwishaPatel24 commented May 26, 2026

Copy link
Copy Markdown

What I changed

  • Fixed keytool commands to use full path for Windows PowerShell
  • Added mkdir step to create .android folder on fresh Windows machines
  • Added Windows-specific troubleshooting section
  • Added note about safe-to-ignore "already exists" SQL errors
  • Added vector extension step before SQL migrations
  • Added Docker alternative for Windows users

Why

Fixes #262

%USERPROFILE% environment variable doesn't expand in PowerShell,
causing setup failures for Windows backend contributors.

Errors encountered without this fix:

  1. "Keystore file does not exist: %USERPROFILE%.android\debug.keystore"
  2. "FileNotFoundException: The system cannot find the path specified"
  3. "type vector does not exist" when running script 09
  4. Confusion about "already exists" errors during SQL migrations

Tested on

  • OS: Windows 11
  • Terminal: PowerShell

Summary by CodeRabbit

  • Documentation
    • Improved formatting of Android OAuth setup instructions with enhanced code block structure
    • Added Windows PowerShell-specific guidance with step-by-step instructions for keystore configuration and SHA1 fingerprint retrieval, including platform-specific warnings

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

BACKEND.md documentation for Android OAuth setup is enhanced by reformatting the SHA-1 fingerprint generation instructions into a multi-line code block and introducing a Windows PowerShell-specific subsection that addresses %USERPROFILE% environment variable expansion issues and provides explicit steps to prepare the .android directory and generate the debug keystore.

Changes

Android OAuth Setup Documentation

Layer / File(s) Summary
SHA-1 Fingerprint Generation Instructions
BACKEND.md
Android SHA-1 fingerprint generation steps are reformatted into a multi-line code block. A new Windows PowerShell subsection is added that warns about %USERPROFILE% not expanding in PowerShell, then provides step-by-step commands to create the .android folder, generate a debug keystore, and retrieve the Android debug keystore SHA1 fingerprint for use when creating the OAuth client.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

Documentation

Poem

A Windows rabbit hops through PowerShell's flow,
No %USERPROFILE% mysteries in the code,
The .android folder now finds its home,
SHA-1 fingerprints shine where bugs once roamed. 🐰

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'docs: fix Windows PowerShell keytool commands and add .android folder' accurately describes the main changes in the pull request, which focuses on fixing keytool command documentation and adding .android folder setup instructions for Windows users.
Linked Issues check ✅ Passed The pull request addresses all primary coding requirements from issue #262: fixing %USERPROFILE% expansion in keytool commands for PowerShell, adding explicit full path (C:\Users\YOUR_USERNAME\.android), and including mkdir step to create the .android directory for fresh Windows machines.
Out of Scope Changes check ✅ Passed The pull request remains focused on Windows PowerShell keytool documentation fixes. All changes are directly related to issue #262 objectives with no unrelated modifications detected.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Tools execution failed with the following error:

Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@BACKEND.md`:
- Around line 232-234: The three Windows command code blocks currently labeled
"```bash" should be changed to "```powershell" so the PowerShell
line-continuation backticks and Windows paths render correctly; update the
blocks containing the mkdir example ("mkdir C:\Users\YOUR_USERNAME\.android"),
the keytool generation block ("keytool -genkey -v ` -keystore
C:\Users\YOUR_USERNAME\.android\debug.keystore ` ..."), and the keytool list
block ("keytool -list -v ` -keystore
C:\Users\YOUR_USERNAME\.android\debug.keystore ` ...") to use the powershell
fence identifier.
- Line 227: Replace the incorrect product name capitalization "Powershell" in
the BACKEND.md heading text "For Windows Powershell:" with the correct
"PowerShell" (capital S) to ensure accurate documentation and consistent
formatting; locate the heading text in BACKEND.md and update it to "For Windows
PowerShell:".
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5ee46fc5-fb56-4f71-8109-43361f234b70

📥 Commits

Reviewing files that changed from the base of the PR and between 1cea2a6 and 561158b.

📒 Files selected for processing (1)
  • BACKEND.md

Comment thread BACKEND.md
6. Paste the SHA-1 fingerprint
7. Click **Create** and copy the Client ID

**For Windows Powershell:**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial | ⚡ Quick win

Inconsistent product name capitalization.

The heading uses "Powershell" but the correct capitalization for the Microsoft product is "PowerShell" (capital S). As per coding guidelines, documentation should maintain proper formatting and accurate information.

✏️ Proposed fix
-**For Windows Powershell:**
+**For Windows PowerShell:**
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
**For Windows Powershell:**
**For Windows PowerShell:**
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@BACKEND.md` at line 227, Replace the incorrect product name capitalization
"Powershell" in the BACKEND.md heading text "For Windows Powershell:" with the
correct "PowerShell" (capital S) to ensure accurate documentation and consistent
formatting; locate the heading text in BACKEND.md and update it to "For Windows
PowerShell:".

Comment thread BACKEND.md
Comment on lines +232 to +234
```bash
mkdir C:\Users\YOUR_USERNAME\.android
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Incorrect code block language identifier for PowerShell commands.

The code blocks contain PowerShell commands (using backtick ` for line continuation and Windows paths) but are labeled with bash identifier. This is misleading and could confuse users about which shell to use.

Change the code block identifiers from ```bash to ```powershell for all three command blocks in the Windows PowerShell section.

As per coding guidelines, documentation should have accurate code examples with proper formatting.

📝 Proposed fix for code block identifiers
 Step 1 - Create .android folder if it doesn't exist:
-```bash
+```powershell
 mkdir C:\Users\YOUR_USERNAME\.android

Step 2 - Generate keystore:
-bash +powershell
keytool -genkey -v -keystore C:\Users\YOUR_USERNAME\.android\debug.keystore
-alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000
-storepass android -keypass android `
-dname "CN=Android Debug,O=Android,C=US"

Step 3 - Get SHA1 fingerprint:
-```bash
+```powershell
keytool -list -v `
  -keystore C:\Users\YOUR_USERNAME\.android\debug.keystore `
  -alias androiddebugkey `
  -storepass android `
  -keypass android
</details>


Also applies to: 238-244, 246-252

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @BACKEND.md around lines 232 - 234, The three Windows command code blocks
currently labeled "bash" should be changed to "powershell" so the
PowerShell line-continuation backticks and Windows paths render correctly;
update the blocks containing the mkdir example ("mkdir
C:\Users\YOUR_USERNAME.android"), the keytool generation block ("keytool
-genkey -v -keystore C:\Users\YOUR_USERNAME\.android\debug.keystore ..."),
and the keytool list block ("keytool -list -v -keystore C:\Users\YOUR_USERNAME\.android\debug.keystore ...") to use the powershell
fence identifier.


</details>

<!-- fingerprinting:phantom:triton:puma -->

<!-- This is an auto-generated comment by CodeRabbit -->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOCS UPDATE: Fix Windows PowerShell keytool commands in BACKEND.md

1 participant