Shortype
v1.0.0Text Expander and Snippet Shortcuts Android App
Installation
Everything needed to build Shortype from source — toolchain, first run, rebranding it as your own, and a signed release on Google Play.
Android only. iOS is not included or supported. Shortype is a native Android app. This item has no iOS version and no iOS source code.
Thank you for purchasing Shortype — a text expander for Android. This section takes you from the source archive to a signed build on your own Google Play listing.
Version: v1.0.0
Language: Kotlin, with Jetpack Compose and Material 3 for the UI and Room/SQLite for storage
Platform: Android 7.0 and newer, since expansion is built on Android's Accessibility API
There is no server to install. Shortype keeps everything on the device — no account, no backend, and no
INTERNETpermission at all. Nothing in this section involves hosting, a database server or a domain; the whole job is building the app and putting it on Google Play.
Toolchain
The Android Studio, JDK and SDK versions Shortype builds against.
Shortype is a standard Android Studio project, so a current Android Studio install is the only prerequisite. The versions below are what the project is developed and tested against.
| Tool | Version |
|---|---|
| Android Studio | Latest stable — it must support AGP 9.4 |
| JDK | 17 or newer to start Gradle — the build itself runs on JDK 25 |
| Gradle | 9.8 (wrapper included) · AGP 9.4.1 |
| Kotlin | 2.4.20 · KSP 2.3.12 · Room 2.8.5 |
| compileSdk / targetSdk | 37 |
| minSdk | 24 (Android 7.0) |
Confirm the Gradle wrapper runs before building:
./gradlew --versionThe JDK 25 toolchain
The build runs on a Java toolchain pinned in gradle/gradle-daemon-jvm.properties, and Gradle downloads it automatically on the first sync. The JDK bundled with Android Studio is enough to start that sync, so there is nothing to install by hand.
On Windows, rungradlew.batin Command Prompt, or.\gradlewin PowerShell, wherever these pages say./gradlew.
Generated code builds itself. Room generates its code with KSP during every build, so there is no code generator to re-run and nothing generated to commit.
First Run
Opening the project, turning on expansion, and the commands that must stay clean.
Open the project folder in Android Studio with File → Open, let Gradle sync, then press Run with a phone connected.
The app opens on Phrases with an Expansion is off card at the top. Nothing expands until the accessibility service is on, so turn it on first:
- Tap Enable on the card, then Open settings on the disclosure that follows.
- In the phone's Accessibility settings, open Shortype under Installed apps (or Downloaded apps) and turn on the switch.
- Back in the app, tap + on the Phrases tab and save
gm→Good morning.
Type gm in any app — or in the app's own Try your shortcuts field — and the suggestion bar offers the phrase. The Manual covers every screen from the user's side.
Android 13+ may say "Restricted setting". Android can hold back accessibility for apps installed outside the Play Store. Open Settings → Apps → Shortype → ⋮ → Allow restricted settings, then turn the service on again. Play Store installs are not affected.
Tests and lint
All three should stay clean as you make changes:
./gradlew testDebugUnitTest
./gradlew connectedAndroidTest
./gradlew lintDebugtestDebugUnitTest runs 70 JVM unit tests with no device — the matching rules, placeholders, list formatting and the backup formats. connectedAndroidTest runs 12 database and migration tests on a connected phone or emulator. lintDebug is Android Lint.
connectedAndroidTest uninstalls the app when it finishes. Export your shortcuts first if the test phone holds any you want to keep, and turn the accessibility service on again after reinstalling.After changing the database
The Room schema is the Shortcut entity in data/Shortcut.kt, and the database file is shortcuts.db.
The database is version 1 — the shipped schema, created whole on first launch. Once you have published, a schema change means raisingversionindata/AppDatabase.ktand passing a matching RoomMigrationtoRoom.databaseBuilder(…)in the same file with.addMigrations(…). Without it Room cannot open the old database, and the app fails for every existing user on update. Database Migrations walks through a complete, working example.
Rebranding
The six changes required before you can publish, and three optional ones.
Nine steps, to do in order, before your first upload to Google Play. The first six are required — without them the app still carries the Shortype branding, and Google Play refuses steps 2, 5 and 6 outright. The last three are yours to choose.
| # | Step | Required? | If you skip it |
|---|---|---|---|
| 1 | Launcher icon | Must | Your app ships with the Shortype logo |
| 2 | Package id | Must | Play rejects the upload — the id is already taken |
| 3 | App name | Must | The app calls itself "Shortype" everywhere |
| 4 | Backup file name | Must | Your users' backups are named shortype_backup_….json |
| 5 | Privacy policy link | Must | Play rejects the listing — accessibility apps must have one |
| 6 | Signing key | Must | Play rejects the upload — it accepts no unsigned or debug-signed build |
| 7 | Colours | Optional | Users keep the built-in palette |
| 8 | Version and tagline | Optional | The About row reads "Type less, say more · v1.0.0" |
| 9 | Project name | Optional | Only Android Studio shows "Shortype" |
Nothing else carries the demo branding. Everything a user can see comes from three places —
app_nameinres/values/strings.xml,AppConfig.kt, and the launcher icon — so once steps 1, 3, 4 and 5 are done there is no stray name left to hunt for.
There are no class, theme or database names to rename. The code uses neutral names —
MainApplication,MainActivity,ExpansionService,AppTheme,AppPalette, theTheme.Appstyle, the databaseshortcuts.dband the settings fileapp_settings— that work unchanged under any app name. Keep them that way after your first release: renaming the database or the settings file makes existing users lose their shortcuts or settings, and renamingExpansionServiceswitches their accessibility service off.
In the steps below, AppConfig.kt and the other Kotlin files are in app/src/main/java/<your package folders>/ — app/src/main/java/com/shahinlabs/shortype/ before step 2.
Step 1 — Launcher icon
Use Android Studio's built-in Image Asset tool. It writes every icon size for you, so no icon file is edited by hand. You need your logo as a square PNG, at least 512×512, ideally on a transparent background.
In the Project panel (Android view), right-click
app → resand choose New → Image Asset.Icon type — Launcher Icons (Adaptive and Legacy). Keep the name
ic_launcher.Foreground Layer — set Asset type to Image and choose your PNG under Path. Turn on Show safe zone and drag Resize until the logo sits fully inside the circle; anything outside it can be cut off on some phones.
Background Layer — a solid Color (its hex code) or a background Image.
Monochrome — optional; the shape Android 13+ uses for themed icons.
Asset Studio: Show safe zone, the Path to your logo, and the overwrite warning (boxed). Here the logo still reaches past the safe zone — drag Resize down until it fits inside the circle.
Click Next, then Finish. The warning that "An icon with the same name already exists and will be overwritten" is expected — you are replacing the Shortype icon.
Uninstall the app before checking the new icon. Android caches launcher icons, so running over the old install can keep showing the previous logo and nothing reports an error.
Done right: after uninstalling and running again, the phone shows your new icon (arrow) and your app name under it.
The tool writes these files; change them only by running Image Asset again:
| Location | What it is |
|---|---|
res/mipmap-anydpi-v26/ic_launcher.xml, …_round.xml | Adaptive icon (Android 8+): foreground and background |
res/mipmap-mdpi … res/mipmap-xxxhdpi | Your logo in each screen density, and the legacy icons |
res/values/ic_launcher_background.xml | Background colour — only when you chose Color |
app/src/main/ic_launcher-playstore.png | 512×512 icon — upload it in Play Console as the store listing icon |
"Duplicate resources ic_launcher_background"? The same colour name is defined in two files under
res/values/. Keepic_launcher_background.xmland delete theic_launcher_backgroundline from the other file, usuallycolors.xml.
Step 2 — Package id
The package id is com.shahinlabs.shortype. It identifies your app on Google Play and must be unique, so use a name you own, such as com.yourcompany.yourapp: all lowercase, only letters, digits and underscores, each part starting with a letter. Android Studio renames it for you — the folders in main, test and androidTest, and every package and import line. Rename the two parts one at a time.
A. Show the package parts as separate folders
In the Project panel (Android view), click ⋮ at the top of the panel → Appearance → untick Compact Middle Packages. Under app → kotlin+java you now see com → shahinlabs → shortype as three folders.
Project panel → ⋮ → Appearance → untick Compact Middle Packages.
Before: the two folders to rename — shahinlabs becomes your company name, shortype your app name.
B. Rename the company part
Right-click
shahinlabs→ Refactor → Rename… (or select it and press Shift+F6).Android Studio says "Package 'com.shahinlabs' is present in multiple directories". Click All Directories, so the tests move along with the app code.
The package is in three places — app code, instrumented tests and unit tests (top box). Choose All Directories (bottom box).
Type your company name, such as
yourcompany, and tick both Search in comments and strings and Search for text occurrences. Keep Scope on Project Files and click Refactor.If a Refactoring Preview panel opens at the bottom of the window, click Do Refactor.
C. Rename the app part
Right-click shortype — now inside yourcompany — and repeat part B with your app name, such as yourapp. Choose All Directories and tick both boxes again.
Done right: the Project panel shows com → yourcompany → yourapp under kotlin+java, and the androidTest and test folders carry the same names.
D. Check what the rename does not finish
Open app/build.gradle.kts. namespace and applicationId must both show your new id; if either still shows the old one, change it by hand — the two must be equal.
Before: namespace and applicationId (boxed) still hold com.shahinlabs.shortype. After step 2 both show your id.
Then open res/xml/accessibility_service_config.xml. The rename does not update android:settingsActivity, so change it by hand to your new id followed by .MainActivity:
Before: the boxed line still holds the old id, com.shahinlabs.shortype.MainActivity.
android:settingsActivity="com.yourcompany.yourapp.MainActivity"It powers the Settings row on your app's page in the phone's accessibility settings. With the old id, that row stops opening the app.
Press Ctrl+Shift+F (Find in Files) and search for
shahinlabs— nothing should be left outside the README. A search forshortypeshould find only what the next steps change:app_name(step 3),FILE_BASE_NAME(step 4) androotProject.name(step 9).File → Sync Project with Gradle Files, then Build → Clean Project.
Uninstall the old app from your phone — it has the old id, so it would stay installed next to the new one — then press Run.
Step 3 — App name
The package rename does not change the name users see. That is one string, app_name in res/values/strings.xml:
<string name="app_name">Your App</string>It is the launcher label, the accessibility service name in system settings, and every mention inside the app — the disclosure dialog, the cards, the Quick Settings tile and the About row. Spaces and capitals are fine.
Step 4 — Backup file name
FILE_BASE_NAME in AppConfig.kt names the files your users export and back up:
const val FILE_BASE_NAME = "yourapp"
// Export → yourapp_backup_2026-09-25_1430.json
// Auto backup → yourapp_auto_2026-09-25_143005.jsonUse lowercase with no spaces or punctuation, because it becomes a filename. It is safe to change at any time: import reads backup files whatever their name.
Step 5 — Privacy policy link
Google Play requires a privacy policy for every app that uses the Accessibility API. Write it with your app name, your name or company and a contact email, and say what the app does with data:
The accessibility service is used only to notice the shortcuts the user types and insert their saved phrases.
Password fields are never read. Typed text is processed in memory and never stored, logged or shared.
Shortcuts and settings are stored only on the device. The app has no internet access, no accounts, no ads and no analytics.
Export and automatic backup write files only to a location the user chooses.
The clipboard is used only in two cases, and its contents are never stored, logged or shared:
To fill
{clipboard}in a phrase the user saved. On Android 10 and newer only the app in focus may read the clipboard, so at that moment the service briefly adds an invisible 1×1 px window that takes focus, reads the clipboard once and closes within 0.7 seconds. The user can turn this off in Settings → Expansion → Allow {clipboard}.To paste a phrase into apps that refuse typed text. The phrase is put on the clipboard and pasted, and the previous clip is put back where Android allows.
Describe the clipboard use in your policy. Google Play Review has the details, under How the clipboard is used, for your policy and your accessibility declaration.
Host it on a public page — your website, a free Google Sites page or GitHub Pages — and paste the URL, including https://, into AppConfig.kt:
const val PRIVACY_POLICY_URL = "https://yoursite.com/privacy"A Privacy Policy row then appears in Settings → About. While the constant is empty the row stays hidden, so the app never shows a link that goes nowhere. Paste the same URL in Play Console under Policy and programs → App content → Privacy policy.
Step 6 — Signing key
Play accepts only builds signed with your own key. Release Builds covers creating the key and building the bundle.
Step 7 — Colours
| File | What it holds |
|---|---|
ui/theme/AppAccent.kt | The accent colours users pick from, also offered as suggestion bar colours. Each has a light and a dark tone, and the first entry is the default. For a new entry add a matching accent_* string and a line in accentLabel in ui/SettingsScreen.kt; BAR_CHOICES names PINK, so update it if you remove that one |
ui/theme/Theme.kt | AppPalette: page, card, border, text, danger and success colours for light and dark |
ui/theme/Dimens.kt | Spacing, card padding, grid column width and the maximum page width for small phones, phones and tablets |
res/values/colors.xml, res/values-night/colors.xml | page_background, the window colour while the app starts — keep it equal to pageBackground in Theme.kt |
Step 8 — Version and tagline
versionCode and versionName are in app/build.gradle.kts; the About row reads them automatically. Raise versionCode by one for every upload to Play. The tagline under the app name is APP_TAGLINE in AppConfig.kt.
Step 9 — Project name
Users never see it. rootProject.name = "Shortype" in settings.gradle.kts is the name in Android Studio's title bar — edit it, then File → Sync Project with Gradle Files. To rename the project folder too, close Android Studio, rename the folder on disk, and open it again with File → Open.
Final check before uploading
Your new icon shows on the phone after uninstalling and reinstalling.
namespace,applicationIdandsettingsActivityall hold your id, and Find in Files forshahinlabsfinds nothing outside the README.The Settings row on your app's page in the phone's accessibility settings opens the app.
The launcher, the accessibility settings page and Settings → About show your app name.
Settings → Data → Export as JSON saves
yourapp_backup_….json.Settings → About → Privacy Policy opens your page, and the same URL is in Play Console.
./gradlew testDebugUnitTestpasses, and a signed release.aabbuilds.
Demo Version
One switch builds a limited demo APK you can share before people buy.
The app works fully offline, so a demo can only be limited inside the app itself. Three constants in AppConfig.kt do it:
const val DEMO_MODE = false // true = demo build with the limits below
const val DEMO_MAX_PHRASES = 3 // used only while DEMO_MODE is true
const val DEMO_MAX_LISTS = 3 // used only while DEMO_MODE is truefalse(the default) — phrases and lists are unlimited, and the two numbers are ignored. Leave it this way for the app you publish.true— at mostDEMO_MAX_PHRASESphrases andDEMO_MAX_LISTSlists can be saved. Each tab shows Demo · 2 of 3 phrases, and the + button, Duplicate, Undo and Import all stop at the limit with a short message. Editing a saved shortcut always works.
To share a demo, set DEMO_MODE = true, build a signed APK (Release Builds), then set it back to false.
Never upload a demo build to Google Play. Users would hit the limit with no way past it. CheckDEMO_MODEisfalsebefore every release build.
Release Builds
Signing, building the bundle for Google Play, and code shrinking with R8.
Signing and building
- Choose Build → Generate Signed App Bundle or APK, pick Android App Bundle and click Next.
- Click Create new…, pick a keystore location outside the project folder, set the passwords and fill in your name.
- Choose the release build variant. The
.aablands inapp/release/— that is the file you upload to Play.
Choose Android App Bundle for Google Play, then Next (boxed). Pick APK only for a file to install directly, such as the demo.
Back up the keystore and its passwords. Every future update must be signed with the same key, and a lost key can't be recovered. Never put the keystore in the project zip you share or in a public repository.
Code shrinking with R8
Release builds are shrunk and obfuscated by R8, already switched on in app/build.gradle.kts:
buildTypes {
release {
optimization {
enable = true // false turns R8 off
}
}
}- R8 removes unused code and renames classes and methods to short names, so a decompiled APK shows scrambled code — and the APK is about five times smaller, roughly 2 MB instead of 9 MB.
- It affects only the release build; the Run button's debug build stays readable.
- No extra rules are needed. Classes Android looks up by name — the activity, the accessibility service, the Quick Settings tile and the Room database — keep their names automatically.
- R8 writes
app/build/outputs/mapping/release/mapping.txt, which translates the names back. An.aabcarries it to Play, so crash reports in Play Console stay readable; keep a copy for each release.
Leave R8 on. If a library you add later breaks only in the release build, add that library's keep rules to app/src/main/keepRules/ rather than turning R8 off.Releasing an update
- Raise
versionCode(andversionName) inapp/build.gradle.kts. - If you changed the columns of
data/Shortcut.kt, raise the database version and add a migration — Database Migrations shows how. - Sign with the same keystore as the first release.
Google Play Review
The extra declaration Play asks of an app that uses the Accessibility API.
Apps that use the Accessibility API get extra review on Google Play. Everything the app itself must do is built in; the rest is filled in once in Play Console.
| Requirement | Status |
|---|---|
| Prominent disclosure before sending the user to accessibility settings | Built in — ServiceDisclosureDialog, on every Enable path |
| Password fields are never read | Built in — the service skips any field Android marks as a password |
| No data leaves the device | Built in — no INTERNET permission, and the app's data is excluded from Google Drive backup |
| Privacy policy | Yours — Rebranding step 5, in AppConfig.kt and in Play Console |
| Signed release build | Yours — Release Builds |
| Clipboard use described | Yours — in the privacy policy and the accessibility declaration; see How the clipboard is used below |
| Accessibility declaration | Yours — App content → Accessibility API |
The accessibility declaration
Describe the feature in Play Console — for example, "Expands user-defined text shortcuts that the user types, and offers them in a small bar above the keyboard." — mention that the clipboard is read only to fill {clipboard} and written only to paste a phrase, and upload a short screen recording that shows the disclosure dialog and a shortcut expanding in another app.
How the clipboard is used
Describe both uses in your privacy policy (Rebranding step 5) and in the accessibility declaration, so Play reviewers and users are not surprised by them.
| Use | When | What happens |
|---|---|---|
Reading it for {clipboard} | Only when the user types a shortcut whose phrase contains {clipboard} | Android 10 and newer let only the app in focus read the clipboard. If the phrase has no {input:…} fields, the service adds an invisible 1×1 px window (TYPE_ACCESSIBILITY_OVERLAY, focusable but not touchable, so the keyboard stays open). When it gains focus it reads the clipboard once and is removed, after 0.7 seconds at the latest. With {input:…} fields, the visible fill-in form reads it instead. When a direct read works, always on Android 9 and older, no window is added. Code: showClipboardProbe in service/FillInPrompt.kt |
| Writing it to paste a phrase | Only in apps that ignore the normal way of inserting text (ACTION_SET_TEXT) | The phrase is put on the clipboard and pasted over the shortcut. The previous clip is put back half a second later where Android allows; on Android 10 and newer it often cannot be read, so the phrase stays on the clipboard. Code: replace in service/ExpansionService.kt |
In both cases the clipboard text is used only to type the phrase. It is never stored, logged or shared, and the app has no internet access.
Turning {clipboard} off
Settings → Expansion → Allow {clipboard} is on by default. When it is off, {clipboard} types nothing, the clipboard is never read for it, and the 1×1 px window is never shown. In code it is AppSettings.clipboardPlaceholder. To ship your app with it off by default, change its default to false in data/AppSettings.kt, in both the property and the prefs.getBoolean(KEY_CLIPBOARD_PLACEHOLDER, true) fallback. The paste fallback is part of inserting text and has no switch.
Never skip the disclosure. Play requires it to appear before the user is sent to accessibility settings. Every Enable button in the app goes through it; keep it that way if you add a new one.
Phone-to-phone transfer still works. Only Google Drive backup is excluded, inres/xml/backup_rules.xmlanddata_extraction_rules.xml. Moving to a new phone by cable or Wi-Fi still carries the shortcuts over.
Modifying the Source
How the project is laid out, how expansion works, and the constraints that are not obvious from reading the code.
Read this section in detail in your Documentation PDF, included in your download package.
Data Layer API
The classes and query methods behind the shortcut database, and the rules to follow when you build on them.
Read this section in detail in your Documentation PDF, included in your download package.
Database Migrations
A complete, working Room migration — adding a column without losing anyone's shortcuts.
Read this section in detail in your Documentation PDF, included in your download package.
Manual
How to use Shortype day to day — every screen in the app, in the order you will meet them.
This section explains how to use Shortype once it is installed. You save a phrase once with a short shortcut, then type the shortcut in any app — WhatsApp, Telegram, Gmail, notes apps, browsers — and get the full text. The app has three tabs along the bottom — Phrases, Lists and Settings — and the pages below follow the order you will actually meet them in: turn expansion on, save your phrases, type them anywhere, then fine-tune and back them up.
Everything stays on the device. There is no account, no sign-in and no internet access. Your shortcuts and settings live on the phone itself, password fields are never read, and what you type is never stored or shared.
The three tabs
- Phrases — your text shortcuts, with search, groups and sorting.
- Lists — shortcuts that type a whole list, such as a price list or opening hours.
- Settings — permissions, how expansion behaves, the suggestion bar, appearance, backups and help.
The keyboard icon at the top of the Phrases and Lists tabs opens Try your shortcuts, a practice field inside the app.
Turning On Expansion
The one switch everything depends on, and what the service is used for.
Expansion runs through an Android accessibility service, and nothing expands until you turn it on. While it is off, an Expansion is off card sits at the top of the Phrases and Lists tabs.
Turning it on
Six steps, about a minute. The phone's own screens look a little different between makers; the words to look for stay the same.
1. Tap Enable
On the Expansion is off card, tap Enable.
The card shows on Phrases and Lists until the service is on. Tap Enable (boxed).
2. Read the disclosure
Shortype explains what the service is used for before anything is turned on. Tap Open settings to agree, or Cancel to leave expansion off.
The disclosure Google Play requires. Tap Open settings (boxed).
3. Open Shortype in Accessibility
The phone's Accessibility settings open. Under Downloaded apps (or Installed apps), tap Shortype — it reads Off / 👉 Tap here to enable the service so your shortcuts work.
Shortype in the list of downloaded accessibility apps (boxed).
4. Turn on the switch
Tap the Use Shortype switch at the top.
Tap the switch (arrow).
5. Allow
Android asks Allow Shortype to have full control of your device? — its standard question for every accessibility service. Tap Allow. Shortype uses this only for the two things listed below.
Android's confirmation. Tap Allow (boxed).
6. Check that it is on
Go back to Shortype. The Expansion is off card is gone, and Settings → Permissions → Accessibility service reads Granted.
Done right: Accessibility service reads Granted (boxed).
What the service is used for
Only two things, and the disclosure lists them before you agree:
- Noticing when you type one of your saved shortcuts.
- Replacing that shortcut with its saved phrase, or offering it in a small bar above the keyboard.
Password fields are never read. What you type is not stored, collected or shared, and nothing leaves the phone.
Android 13+ may say "Restricted setting". For apps installed from outside the Play Store, Android holds back accessibility until you allow it. Settings → Help → Can’t turn on the service? walks you through it: open App info, tap ⋮, choose Allow restricted settings, then turn the service on again.
Force-stopping the app turns the service off. Android does this itself — from App info, or through some cleaner apps — and no app can prevent it. The Expansion is off card comes back; turn the service on again.
Phrases
Saving a shortcut, the rules it must follow, and organising a long list of them.
The Phrases tab lists every text shortcut you have saved. Each card shows the shortcut, its group, the phrase, and how often you have used it; a star marks a pinned one.
Adding a phrase
Tap +, fill in the editor and tap Save (or the tick at the top).
| Field | What it does |
|---|---|
| Shortcut | What you type, such as gm. One word, no spaces, up to 50 characters. Upper and lower case count as the same shortcut unless Case sensitive is on |
| Phrase | What gets typed instead — up to 20,000 characters, line breaks included |
| Placeholders | Insert today's date, the time, the clipboard, where the cursor goes, or a field to fill in — see Placeholders and Fill-in Fields |
| Expand instantly | For auto-replace mode: on, the shortcut is replaced the moment you finish typing it; off, it waits for a space or punctuation, so longer words that start with the shortcut still type normally |
| Group | Optional, such as Work, Replies or Addresses. Groups you already use are offered as chips under the field |
Saving a shortcut you already have shows You already have this shortcut; pick another one or edit the existing card. Leaving the editor with unsaved changes asks Discard changes? first.
Editing and the card menu
Tap a card to edit it. Its ⋮ menu has Pin to top (or Unpin), Duplicate and Delete.
The card menu (boxed). Pinned shortcuts stay at the top and show a star (arrow).
Finding a shortcut
- Search filters by shortcut, phrase or group as you type.
- Group chips under the search box show one group at a time; All shows everything.
- Sort (the icon at the top right) orders cards A to Z, Most used, Recently used or Newest first. Pinned shortcuts always come first.
Selecting several
Long-press a card to start selecting, then tap more cards. The bar at the top can select all, pin, or delete the selection.
Select all, pin and delete (boxed) act on every selected card.
Deleting can be undone. A message such as Deleted 2 shortcuts appears with an Undo button for a few seconds. Undo puts them back.
Placeholders and Fill-in Fields
Dates, times, the clipboard and the cursor filled in as a phrase is typed — and small forms that ask for a name.
Placeholders are filled in at the moment a phrase is typed. In the editor, tap a chip under the phrase to insert one at the cursor; the Preview shows what the phrase will look like right now.
The placeholder chips (top box) and the live preview (bottom box): {date} and {time} are already filled in.
| Placeholder | Typed as |
|---|---|
{date} | Today's date in the phone's format, such as Sep 26, 2026 |
{time} | The time, such as 2:30 PM |
{date:dd/MM/yyyy} | The date in your own format. Letters: d day, MM month, MMM month name, yyyy year, EEEE weekday, HH:mm time — {time:HH:mm} works too |
{clipboard} | The text you last copied. Types nothing while Settings → Expansion → Allow {clipboard} is off |
{cursor} | Nothing — the cursor is placed here after typing |
{input:Name} | Asks for Name in a small form, then types your answer |
Type {{ for a plain {. Anything else in braces, such as {name}, is typed exactly as written. How they work next to the chips, and Settings → Help → Placeholders, show the same list inside the app.
Fill-in fields
Tap Fill-in field, give the field a name such as Name, and tap Insert; the editor adds {input:Name}. A phrase can hold several fields.
When you type the shortcut, a small form opens over the app you are in — titled with the shortcut, one box per field. Type your answers and tap Insert, or Cancel to type nothing.
The form opens over the app you are typing in. Type the answer, then tap Insert (boxed).
The result of Hi {input:Name}, thanks for your order! It will ship on {date}. with Sam typed into the form.
How{clipboard}is read. On Android 10 and newer, only the app you are using may read the clipboard. So when a phrase with{clipboard}is typed, Shortype briefly opens an invisible window, reads the clipboard once and closes it, all in under a second. Nothing is stored or shared. Turn Settings → Expansion → Allow {clipboard} off and{clipboard}types nothing and the clipboard is never read.
{clipboard} types nothing? Check that Allow {clipboard} is on. Otherwise the clipboard was empty, or the phone did not let the app read it — a short message says so. Copy the text again and retry.
Lists
One shortcut that types a whole list — a price list, a menu or your opening hours.
The Lists tab works like Phrases, but each shortcut types a formatted list. Cards show the list and how many items it has.
Making a list
Tap + on the Lists tab.
Pick a style (boxed), then add the items. Drag an item by its handle (arrow) to change the order.
| Field | What it does |
|---|---|
| Shortcut | What you type, such as prices — the same rules as a phrase |
| Title | Optional line typed above the items, such as Price list: |
| Style | • Bullet, 1. Numbered, - Dash or None |
| Items | One box per item. Add item adds another, × removes one, and the handle drags it into place |
| Preview | Exactly what the shortcut will type |
Expand instantly and Group work as they do for phrases. Typing prices then types:
Price list:
• Haircut - $15
• Beard trim - $8
• Hair and beard - $20
• Kids haircut - $10
Suggestion Bar and Auto-replace
The two ways a shortcut turns into its phrase, and how to take one back.
By default, typing a shortcut offers its phrase in a small suggestion bar above the keyboard. Tap the suggestion to insert it, or just keep typing to ignore it. It works in every standard text field — chat apps, email, notes apps with rich text editors, and text fields on websites.
Browser address bars are the exception. The address bar of Chrome, Brave and other browsers does not report typing to accessibility services, so no text expander can see a shortcut typed there. Shortcuts work in text fields on websites and in every other app.
Typing gm in a notes app. Tap the suggestion (boxed) to insert it. Drag the grip handle (left arrow) to move the bar; ✕ (right arrow) hides it for this word.
- The bar shows up to ten matches: the exact shortcut first, then your most-used ones.
- Drag the grip handle to move the bar anywhere; Settings → Suggestion bar → Reset bar position puts it back above the keyboard.
- ✕ hides the bar for the word you are typing; it comes back for the next one.
- Settings → Suggestion bar → Bar color picks a neutral bar or one of the accent colours.
Auto-replace
Turn off Settings → Expansion → Show suggestions and shortcuts are replaced as you type, with no bar. Each shortcut then decides when: with Expand instantly on, the moment you finish typing it; with it off, when you type a space or punctuation after it — so a shortcut like ad does not break the word address.
Show suggestions off (arrow): shortcuts are replaced automatically as you type.
Backspace to undo
Pressed straight after a phrase is inserted, backspace puts the shortcut back. It is on by default, under Settings → Expansion → Backspace to undo.
One backspace (arrow) right after the expansion, and gm is back (boxed).
Some apps do not let other apps change their text. Banking apps, some games and some web views block accessibility services. When nothing can be inserted, a short message says so — there is no way around it from another app.
Matching
Case, capitals and partial matches — how a typed word is compared with your shortcuts.
The Settings → Matching section decides which typed words count as a shortcut.
| Setting | Default | What it does |
|---|---|---|
| Case sensitive | Off | Off, gm, Gm and GM all match. On, only the exact spelling matches — and gm and GM can be two different shortcuts |
| Match the case you type | On | Gm types Good morning and GM types GOOD MORNING. A shortcut saved with capitals is typed as you wrote it |
| Partial match | Off | Also suggests shortcuts that start with what you type, so go offers goodmorning |
| Minimum letters | 2 | With partial match on, how many letters (1 to 10) to type before partial matches show |
Partial match on shows the Minimum letters row (boxed).
Partial matches only show in the suggestion bar. Auto-replace never replaces a half-typed word; it waits for a whole shortcut.
Try It
A practice field inside the app, where your shortcuts really expand.
Tap the keyboard icon at the top of the Phrases or Lists tab — or Settings → Expansion → Try your shortcuts — to open a practice field. Shortcuts expand there exactly as they do in other apps, so it is the quickest way to check a new one. Your shortcuts are listed underneath as a reminder.
Type a shortcut and the suggestion bar appears (boxed); tap it to insert the phrase.
Only this field expands inside the app. Typing a phrase in the editor never expands it, so you can save phrases that contain other shortcuts.
Nothing expands here? The page says so when the accessibility service is off — turn it on first.
Excluded Apps
Apps where nothing ever expands — games, terminals and code editors.
Settings → Expansion → Excluded apps lists the apps on your phone. Switch one on and shortcuts never expand there, and the suggestion bar never appears. Use the search box to find an app quickly.
Calculator switched on (arrow): it reads Shortcuts off here.
The Excluded apps row in Settings then reads Off in 1 app. Switch an app off again to bring shortcuts back.
Quick Settings Tile
Pausing and resuming expansion from the notification shade.
Pausing stops every shortcut without turning off the accessibility service, so turning it back on takes one tap. There are three places to do it.
- The Quick Settings tile — swipe down twice and tap Shortype. It reads On or Paused.
- Settings → Expansion → Enable Shortype — the same switch inside the app.
- The paused card — while paused, the Phrases and Lists tabs show Shortype is paused with a Turn on button.
The Shortype tile (boxed). Tap it to pause; tap again to resume.
While paused, this card tells you why nothing expands. Turn on (boxed) resumes.
Adding the tile
Tap Settings → Expansion → Quick Settings tile. On Android 13 and newer, Android asks once and adds the tile for you. On older versions the row shows the steps: open Quick Settings, tap the pencil (edit) icon, find the Shortype tile, and drag it into your active tiles.
Save From Any App
Turning text you see in another app into a new phrase.
Select text in any app and choose Save as shortcut from the text-selection menu — or Share the text to Shortype. The editor opens with the text already in the Phrase field; add a shortcut and save.
On many phones Save as shortcut (boxed) is in the selection menu's ⋮ overflow, at the end of the list.
The selected text arrives in the Phrase field (boxed). Type a shortcut and tap Save.
Backup and Restore
Exporting your shortcuts, importing them — even from Gboard — and backing up automatically.
Everything is under Settings → Data. Shortcuts stay on the phone and are left out of Google Drive backup, so these files are how you move them to another phone or keep a copy.
The Data section, with the message an import leaves behind (boxed).
| Row | What it does |
|---|---|
| Export as JSON | A full backup — phrases, lists, groups and pins — to restore on any phone |
| Export as CSV | A spreadsheet file to open and edit in Excel or Google Sheets |
| Import shortcuts | From a JSON or CSV backup, or a Gboard personal dictionary export |
| Automatic backup | Saves a copy to a folder you choose after every change |
Importing
Pick the file, then choose how it joins what you already have:
Merge (boxed) is the safe choice.
- Merge keeps your shortcuts and adds the ones from the file; shortcuts in both get the phrase from the file.
- Replace all deletes your current shortcuts first. This cannot be undone.
The message afterwards counts what was added, updated and skipped. A row is skipped when its shortcut is empty, has a space in it or is over 50 characters; when its phrase is empty or over 20,000 characters; when a list has no items; or when the same shortcut already appeared earlier in the file, in which case the first one is kept. The message gives only the counts, not which rows were skipped; CSV import rules below lists every check. Either way the import runs as one step: if it fails, nothing changes.
Coming from Gboard? In Gboard, open Settings → Dictionary → Personal dictionary → ⋮ → Export. Import the PersonalDictionary.zip it saves as it is; every word with a shortcut becomes a phrase.The CSV format
shortcut,phrase,expand_immediately,list_style,list_title,list_items,group,pinned
gm,Good morning,true,,,,Replies,true
prices,"Price list:
• Product A - $10
• Product B - $15",true,bullet,Price list:,"Product A - $10
Product B - $15",,Phrases may contain commas, quotes and line breaks inside double quotes. list_style is bullet, numbered, dash or none; leave the three list_ columns empty for a plain phrase, and put one item per line in list_items. The header row is optional, columns may be in any order, and group and pinned can be left out.
CSV import rules
Exactly what an import accepts, for anyone who builds CSV files with a script or another system. After an import the app shows one message, Import done (added: N, updated: N, skipped: N). It does not say which rows were skipped or why, so check generated files against these rules. They are in data/transfer/ShortcutCodec.kt and ShortcutRepository.importRecords.
Header and columns
The header row is optional. It counts as a header only if it contains both
shortcutandphrase(trimmed, any case). Columns are then found by name, in any order. Unknown columns are ignored, and if a name appears twice the first one is used.Without a recognised header, every row, the first one included, is read as data in this fixed order:
shortcut, phrase, expand_immediately, list_style, list_title, list_items, group, pinned.Cells beyond the known columns are ignored. Missing cells at the end of a row read as empty.
Use the exact column names. A header with other names, such asabbreviation,expansion, is not recognised, so that row is imported as a shortcut namedabbreviation.
Rows that are skipped
These rows are left out and counted as skipped. The rest of the file still imports.
| # | The row is skipped when | Typical cause in generated files |
|---|---|---|
| 1 | shortcut is empty after trimming, or the row has no shortcut cell | An empty key column, or columns in the wrong order with no header |
| 2 | shortcut has whitespace inside it: a space, tab or line break, or a non-breaking space (U+00A0) or any other Unicode space | good morning used as a key, or a non-breaking space copied from a web page or Excel |
| 3 | shortcut is longer than 50 characters after trimming | The phrase and shortcut columns swapped |
| 4 | phrase is empty, or the row has no phrase cell. This applies to plain phrases only; see rule 6 for lists | A missing value, or a row that ends early |
| 5 | phrase is longer than 20,000 characters. For a list, this is the length of the typed-out list: title, markers and items | Very long text pasted into one cell |
| 6 | list_style is valid but list_items has no line with text in it | A list row whose items cell is empty or holds only spaces |
| 7 | The same shortcut was already on an earlier valid row of the file, ignoring case unless Case sensitive is on. The first valid row is kept; later ones are skipped | Duplicate keys, or gm and GM in one file |
Lengths count UTF-16 characters, as Kotlin's String.length does, so most emoji count as two. Spaces before and after shortcut are trimmed and do not count. Spaces in phrase are kept exactly as written, so a phrase made only of spaces is not empty and is imported.
Dropped without being counted: a row whose cells are all empty or only spaces, such as ,,,, or a blank line at the end of the file.
Imported, but maybe not as you meant
These rows are not skipped, so the counts look right, but a cell is read differently from what you may have intended:
| Cell | How it is read |
|---|---|
expand_immediately, pinned | Empty or missing: the default (true and false). false, 0 or no, in any case: false. Anything else is true, including off, n and f |
list_style | bullet, numbered, dash or none, in any case. An empty or unknown value, such as bullets, makes the row a plain phrase from the phrase cell, and the list_ cells are ignored. If that phrase is empty, rule 4 skips the row |
list_items | One item per line. Each item is trimmed and empty lines are removed |
phrase on a list row | Ignored. A list's phrase is always rebuilt from list_title and list_items |
group | Trimmed and cut to 40 characters. Empty means no group |
Problems that stop the whole import
Nothing is imported, and the app says why, when the file is empty, is larger than 20 MB, has a quote that opens but never closes, or has no row with at least two cells (so it is not a shortcut CSV). When every row is skipped, the app shows Nothing to import with the skipped count and changes nothing.
What Merge does to a shortcut you already have
The phrase, the list and expand_immediately come from the file. An empty group keeps your current group, pinned can pin a shortcut but never unpins it, and usage counts are kept. In a demo build, new shortcuts beyond the limit are left out and counted separately as over the demo limit.
Checklist for generated files
Write the header row with the exact column names.
Make each shortcut one word of 1 to 50 characters, trimmed, with no spaces of any kind, and unique ignoring case.
Never leave
phraseempty, unless the row is a list with a validlist_styleand at least one item.Write
trueorfalseforexpand_immediatelyandpinned.Put double quotes around every cell that contains a comma, a quote or a line break, and double each quote inside it (
"").Save as UTF-8. A byte-order mark, which Excel adds, is fine.
Finding the skipped rows. Compare added + updated with the number of rows in your file, or export the shortcuts as CSV again and compare the shortcut column with your file.JSON imports skip shortcuts by the same rules 1 to 7, and read list.style, list.items and group the same way. expandImmediately and pinned must be JSON true or false (or the strings "true" and "false"); any other value uses the default. Entries in the shortcuts array that are not objects are dropped without being counted, and a file whose version is higher than 1 is refused.
Automatic backup
Switch on Automatic backup and choose a folder — Android asks you to allow access to it. A copy is saved after every change, and the newest five are kept.
On: the row shows the folder and the last backup, with Change backup folder and Back up now underneath (boxed).
Only its own files are ever deleted. Automatic backups are named shortype_auto_<date>_<time>.json, and only files with that name are cleaned up, so anything else in the folder is safe. If the folder is moved or deleted, the row says The last backup couldn’t be saved — choose the folder again.
Settings
Permissions, expansion, matching, the suggestion bar, appearance, data, help and about.
The Settings tab is one scrolling page in eight sections.
| Section | What it holds |
|---|---|
| Permissions | The accessibility service, with a Granted or Grant pill — tap the row to fix it |
| Expansion | Enable or pause, Show suggestions, Backspace to undo, Allow {clipboard}, Excluded apps, Try your shortcuts and the Quick Settings tile |
| Matching | Case sensitive, Match the case you type, Partial match and Minimum letters — see Matching |
| Suggestion bar | Bar color and Reset bar position |
| Appearance | System default, Light or Dark, and the accent colour |
| Data | Export, import and automatic backup — see Backup and Restore |
| Help | Placeholders, battery optimization, and fixes for common problems |
| About | The app name, tagline and version, and the privacy policy |
Appearance
Pick System default, Light or Dark, and one of five accent colours — Blue, Green, Purple, Orange or Pink. The suggestion bar follows the same light or dark theme.
The dark theme with the green accent (boxed).
Help
The Help section shows only what applies to your phone:
- Placeholders — the full placeholder list.
- Battery optimization — Restricted means some phones stop the service after a while. Tap it and set the app to Unrestricted or No restrictions.
- Can’t turn on the service? — on Android 13 and newer, the steps for a "Restricted setting" message.
- Other apps watch your typing — appears when another accessibility app is on. If one of them is also a text expander, both react to your shortcuts; turn one off.
Battery optimization is Restricted here (boxed) — tap it to fix.
Troubleshooting
The usual problems and their fixes — most are also explained inside the app.
Most of these are also explained inside the app, under Settings → Help.
| Problem | Fix |
|---|---|
| Nothing expands | Check Settings → Permissions: Accessibility service must read Granted. Then check that Settings → Expansion → Enable is on. |
| Nothing expands after installing an update | Turn the accessibility service off and on in system settings. Android reloads the service only then. |
| The service switched itself off | Android turns it off when the app is force-stopped, from App info or by some cleaner apps. Turn it back on. |
| It stops working after a while | The phone is killing background services — common on itel, Tecno, Infinix, Xiaomi, Oppo and Vivo. Set battery usage to Unrestricted and lock the app in the recent-apps screen. |
| "Restricted setting" when turning on the service | Settings → Apps → Shortype → ⋮ → Allow restricted settings, then turn it on again. Play Store installs are not affected. |
| It does not work in one app | Some apps — banking apps, games, some web views — block accessibility services from changing their text. It cannot be worked around. Or the app is in Excluded apps. |
| No suggestion in a browser's address bar | Browser address bars (Chrome, Brave and others) do not report typing to accessibility services, so no text expander can see the shortcut there. Shortcuts work in text fields on websites and in other apps. |
| Shortcuts expand twice, or oddly | Another text expander is also on. Keep one. Settings → Help lists other apps that watch typing. |
| The suggestion bar is in the way | Drag it by its grip handle, or tap ✕ to hide it for that word. Settings → Suggestion bar → Reset bar position puts it back. |
{clipboard} types nothing | Check that Settings → Expansion → Allow {clipboard} is on. Otherwise the clipboard was empty, or the phone did not let the app read it. Copy the text again and retry. |
| The clipboard holds the phrase afterwards | Some apps accept only pasted text. Android 10+ does not let background apps read the clipboard, so the previous clip cannot always be put back. |
| A shortcut I typed in the editor did not expand | By design — inside the app only the Try it field expands. |
Changelog
What changed in each release, and whether it affects a customised build.
Every release of Shortype is listed here, newest first. Each entry ends with Affects customised builds — what to check if you have already rebranded or changed the source — so you can decide whether, and how, to update.
| Tag | Meaning |
|---|---|
| [NEW] | A feature that was not there before |
| [IMPROVED] | Existing behaviour made better, or a library or toolchain upgraded |
| [FIXED] | A bug fixed |
| [CHANGED] | Behaviour that now works differently — read these before updating |
v1.0.0 — November 2026
Initial release.
- [NEW] Text shortcuts that expand in any app through one accessibility service, including rich-text notes apps and text fields on websites.
- [NEW] A suggestion bar above the keyboard — movable and closable, most-used first — or auto-replace, with each shortcut choosing to expand instantly or after a space.
- [NEW] List shortcuts with bullet, numbered, dash or no markers, an optional title, and drag-to-reorder items.
- [NEW] Placeholders for the date, time, custom date formats, the clipboard and the cursor, and fill-in fields that ask for an answer as you type.
{clipboard}can be turned off in Settings. - [NEW] The Room schema is exported to
app/schemas/, with aMigrationTestHelpertest to build future migrations on. - [NEW] Case matching, case-sensitive mode, partial matching, and Backspace to undo.
- [NEW] Groups, pinning, sorting, search, usage counts, multi-select with Undo, and Duplicate.
- [NEW] Excluded apps, a Quick Settings tile, the Try it practice field, and Save as shortcut from any app.
- [NEW] JSON and CSV export and import, Gboard dictionary import, and automatic backup keeping the last five copies.
- [NEW] Light and dark themes with five accent colours, and layouts for small phones through tablets.
- [NEW] A one-switch demo build with phrase and list limits.
Affects customised builds: not applicable — first release. Database version 1.
Updating a customised build
When a new version comes out, the entry for it says which areas changed. To bring those changes into your own app:
- Keep your copy under version control. With Git, commit your rebranded project, unzip the new release beside it, and compare the two folders — Android Studio's Compare Directories (select both in the Project panel, then Ctrl+D) shows every changed file side by side.
- Keep your branding.
AppConfig.kt,app_nameinstrings.xml, the launcher icons inres/mipmap-*, your package name and your signing setup are yours — do not copy them over from the new release. - Check the database line. If an entry says the database version went up, its migration is included in the release; copy
data/AppDatabase.ktanddata/Shortcut.kttogether, so the migration comes with the new version number. - Check the accessibility line. If
res/xml/accessibility_service_config.xmlchanged, keep your ownandroid:settingsActivityvalue, and tell users in your release notes to turn the service off and on once. - Raise
versionCodebefore uploading the update to Google Play.
License
What your CodeCanyon licence lets you do with the source code, in plain language.
Shortype is sold on CodeCanyon under the standard Envato Market licences. This page explains them in plain language for this app. If anything here differs from Envato's own wording, Envato's licence terms are what count.
One purchase, one app
Each licence covers one end product — one app, published under one package name, by you or for one client. You can update that app as often as you like, for as long as you like.
Publishing two or more apps from the source — even with different names, colours or features — needs one licence for each app. A rebranded copy for a second client, or a second version of the app under another package name on Google Play, counts as another app.
Regular or Extended?
| Your app | Licence needed |
|---|---|
| Free to download, and free to use | Regular |
| Free to download, with ads | Regular |
| Paid to download | Extended |
| Free to download, but with in-app purchases or a subscription that unlocks features | Extended |
The rule behind the table: if users have to pay to get the app, or to use any part of it, you need the Extended licence.
What you can do
- Change anything in the source — the name, icon, colours, text, features and code.
- Publish the app on Google Play or any other store, under your own name and package id.
- Build the app for a client and charge for your work. You are buying the licence on your client's behalf, and the finished app is theirs.
- Keep using the source after your support period ends. The licence does not expire.
What you cannot do
- Share or resell the source code — as-is, modified, as a template, or as part of another source-code product, free or paid. This applies under both licences.
- Publish more apps than you have licences for.
- Pass the licence on to someone else, except to the client you built the app for.
Attribution
No attribution is required. You do not need to mention Shortype, ShahinLabs or CodeCanyon anywhere in your app or its store listing. The rebranding steps remove every visible mention of the Shortype name.
Third-party libraries
The libraries the app is built on — Jetpack Compose, Material 3 and its icons, Room, Lifecycle, Activity, AndroidX Core and Kotlin Coroutines — are open source under the Apache License 2.0, which allows commercial use, including in paid apps. You do not need to buy anything else to publish the app.
Not sure which licence fits your plan? See Envato's licensing FAQ, or contact us through the Support tab on the item page before you publish.
AI Disclosure
How AI tools were used to make Shortype.
AI tools helped write parts of the code, the documentation and the item description, and the Shortype logo was made with an AI image tool. The author reviewed and tested everything, and the screenshots show the real app.
Shortype has no AI features: nothing you store in it is sent to an AI service.