Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/adb install helper #36

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
_site/
Gemfile.lock
68 changes: 68 additions & 0 deletions android-installer/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
layout: viewall
title: "Android Install Helper"
prompt: ""
keywords: ""
date: 2024-10-24 17:01:19
author: "blockarchitech"
hideFirstStepNumber: true
osSpecific: true
os: android
---

# Android Install Helper

This tool will guide you through the process of installing the Pebble app on your Android 13+ device.

<nodesktop>
<alert>
<strong>Important:</strong> This guide is not compatible with your device. Please use a computer running Google Chrome to install the Pebble app, or use the <a href="/apk-load-android">manual installation guide</a>.
</alert>
</nodesktop>

<div class="timeline">
<div class="step active">
<div class="step-circle">1</div>
<div class="step-content">
<h2>Connect your phone</h2>
<ol>
<li>Connect your phone to your computer with a USB cable.</li>
<li>Enable USB debugging on your phone.
<ul>
<li>Go to Settings > About phone > Software information.</li>
<li>Tap "Build number" seven times.</li>
<li>Go back to the main settings screen and tap "Developer options".</li>
<li>Enable "USB debugging".</li>
</ul>
</li>
<li>Click the button below to connect your device. Follow prompts from your browser.</li>
</ol>


<button class="mt-5 highlight" id="connect">Connect <i class="fas fa-link"></i></button>


</div>
</div>
<div class="line"></div>
<div class="step upcoming">
<div class="step-circle">2</div>
<div class="step-content">
<h2>Begin Installation</h2>
<p>Once you click the button below, we'll start the installation process on your phone. <em>Do not disconnect your phone during this process. Keep your phone awake during the process.</em></p>
<p id="status_text"></p>
<button class="mt-5 previousstep highlight" id="install"> Install <i class="fas fa-download"></i></button>
</div>
</div>
<div class="line"></div>
<div class="step upcoming">
<div class="step-circle">3</div>
<div class="step-content">
<h2>All done!</h2>
<a href="/setup-android">Continue with the Android setup guide.</a><br />
<img width="200" height="200" style="border:0;" src="{{ site.baseurl }}/images/setup/13.png">
</div>
</div>
</div>
<script src="{{ site.baseurl }}/res/js/adb.js"></script>
<script src="{{ site.baseurl }}/res/js/androidInstaller.js"></script>
91 changes: 91 additions & 0 deletions res/css/help.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,15 @@ qr img {
}
}

/* hide nodesktop stuff on desktop */
@media screen and (min-width: 601px) {
nodesktop {
visibility: hidden;
clear: both;
display: none;
}
}

.hidden {
display: none !important;
}
Expand Down Expand Up @@ -269,4 +278,86 @@ div.email-signup input[type="submit"] {
border-bottom-right-radius: 0.2em;
-webkit-appearance: none;

}

/* Alerts */
alert {
display: block;
padding: 1rem;
margin: 1rem 0;
border: 1px solid transparent;
border-radius: 0.25rem;
font-size: 1rem;
line-height: 1.5;
color: #333;
background-color: #fff3cd;
border-color: #ffeeba;
}

/* multi-step form */

.timeline {
position: relative;
padding-left: 40px;
}

.step {
display: flex;
align-items: center;
margin: 20px 0;
transition: opacity 0.3s;
}

.step-circle {
width: 30px;
height: 30px;
border: 2px solid var(--color-header);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: var(--color-foreground-dark);
margin-right: 20px;
background-color: white;
transition: background-color 0.3s, color 0.3s;
}

.step.completed .step-circle {
background-color: var(--color-header);
color: white;
border: 2px solid var(--color-header);
}

.step-content {
flex: 1;
}

.line {
position: absolute;
left: 54px;
top: 35px;
bottom: 0;
width: 2px;
background: #ddd;
z-index: -1;
}

.step.upcoming .step-circle {
background-color: white;
color: #ddd;
border-color: #ddd;
}

.step.upcoming .step-content {
opacity: 0.6;
}

.step.inactive {
opacity: 0.3;
}


button:disabled {
cursor: not-allowed;
}
Loading