Skip to content

Build and Internal testing

By the end of this page you have a pd AAB in Internal testing, already tried by testers on real devices. An AAB (Android App Bundle) is the .aab file Google Play requires instead of an APK. You need before you start: the account from Google Play account, a project set up as in Set up the Expo project, and a backend already running pd as in Backend and demo account.

The developer adds the Android values to app.json. Shared values such as version, icon and android.package were already set in Set up the Expo project.

app.json (android section)
{
"expo": {
"android": {
"package": "th.co.ricesense.app",
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
}
}
}
Value RiceSense Reason
android.adaptiveIcon.foregroundImage ./assets/adaptive-icon.png An adaptive icon is one Android crops into a circle or rounded square depending on the device. Use a 1024×1024 PNG with a transparent background and the logo inside the central circle (about 66%) so the edges are not cut off
android.adaptiveIcon.backgroundColor #FFFFFF The background color behind the logo

2. Add a config plugin that makes the portrait feature optional

Section titled “2. Add a config plugin that makes the portrait feature optional”

Do this before the first build. An app locked to portrait ("orientation": "portrait") gets a required android.hardware.screen.portrait feature in its manifest. Play then treats the feature as mandatory, so some tablets, Chromebooks and Android XR cannot install the app, and the quick checks before sending for review report it as an issue. The developer creates this file. The app stays locked to portrait as before.

plugins/withOptionalPortraitFeature.js
const { withAndroidManifest } = require('expo/config-plugins');
const FEATURE = 'android.hardware.screen.portrait';
module.exports = function withOptionalPortraitFeature(config) {
return withAndroidManifest(config, (mod) => {
const manifest = mod.modResults.manifest;
manifest.$['xmlns:tools'] = manifest.$['xmlns:tools'] || 'http://schemas.android.com/tools';
const features = (manifest['uses-feature'] = manifest['uses-feature'] || []);
const existing = features.find((f) => f.$['android:name'] === FEATURE);
if (existing) {
existing.$['android:required'] = 'false';
existing.$['tools:replace'] = 'android:required';
} else {
features.push({
$: { 'android:name': FEATURE, 'android:required': 'false', 'tools:replace': 'android:required' },
});
}
return mod;
});
};

Then add the plugin to app.json.

app.json
{
"expo": {
"plugins": ["./plugins/withOptionalPortraitFeature"]
}
}

If plugins already has other entries, append this line to the existing list.

The Expo project owner runs this command, because it needs an EAS (Expo Application Services, Expo’s build service) login with the owner’s account.

Terminal window
eas build --profile pd --platform android
  • The pd profile does not set buildType, so it produces an .aab file and points at the production API
  • autoIncrement: true makes EAS bump the versionCode (Android’s build number, which Play never accepts twice) on every build
  • On the first Android build, EAS asks whether to create a keystore (the key file used to sign the app). Answer Yes so EAS creates and stores it
  • When the build finishes, download the .aab file from the project’s build page on expo.dev. You use it in step 7

The Expo project owner runs eas credentials -p android → picks the pd build profile → picks the keystore → Download existing keystore, then stores the file in the company’s secret store. Never keep it in the repo. This keystore acts as Play’s upload key. If it is lost, you cannot upload a new version until you ask Google for a reset.

The Google Play account owner goes to play.google.com/console and checks the account name at the top of Home every time before clicking Create app.

The account name must be the account of the company that owns the appGoogle Play Console · 19 Nov 2026
Play Console Home page: Welcome to your ricesense account, Organization account, Account ID 9065759258529561775 and the Create app button
1

Developer account name

The account that will own the app. People with access to several accounts see an account picker when they open Play Console

We enteredricesense · Organization account

WhyA package name used in one account cannot be used in another. If the name shown is not the company's account, switch accounts first

2

Create app

Opens the form that creates a new app in this account

The Google Play account owner clicks Create app and fills in two sections: App details and Declarations.

Top of App details (empty form, the values entered are in the list below)Google Play Console · 23 Nov 2026
Create app form, App details section before filling in: App name field, Package name field with a Check availability button, Default language set to the default English (United States) – en-US, and the App or game heading
1

App name

The name users see on Google Play, up to 30 characters

We enteredRiceSense

WhyUse the same name as in app.json. You can change it later on the Main store listing page

2

Package name

The app's identity on Android. Must match android.package of the pd build. The form checks that the name is still available

We enteredth.co.ricesense.app

WhyCannot be changed once set. Never use one with a .dv or .te suffix

3

Default language

The main language of the store page. Users whose language has no translation of ours see the text in this language

  • Thai – thOur choiceThe main store page is in Thai, and release notes use the <th> tag
  • English (United States) – en-USThe form's default (as in the image). The main store page is in English, and you have to add Thai as a translation yourself

WhyAll users are in Thailand. Change it to Thai before creating the app, because the default is English

4

App or game

The app type, which decides whether it is listed under Apps or Games in the store

  • AppOur choiceYou can pick an app category, such as Productivity
  • GameGoes under Games and needs a game category

WhyCan be changed later in Store settings

Free or paid and automatic protectionGoogle Play Console · 19 Nov 2026
Create app form scrolled down: Default language set to Thai – th, App selected, Free or paid set to Free, and the You'll get automatic protection box
5

Free or paid

Whether the app is a free download or must be bought

  • FreeOur choiceFree to download. Can be changed until the app is published. After publishing, you cannot change Free to Paid
  • PaidUsers pay before downloading. The account needs a payments profile to receive money

WhyThe app is only for farmers in the program. It is not sold and has no in-app purchases

6

Automatic protection

Play adds an installer check to the app's code. If a user got the app from another source, they are told to install it from Google Play

  • On (default)Our choiceAn app distributed outside Play tells users to install it from Play instead
  • Turn offNo installer check

WhyDoes not affect the dv and te builds, because they use different package names and are not on Play

All Declarations must be ticked before Create app worksGoogle Play Console · 19 Nov 2026
Create app form, Declarations section with all 3 boxes ticked: Developer Program Policies, Play App Signing Terms of Service, US export laws
7

Developer Program Policies

Confirms the app follows the Google Play developer policies

WhyRequired. Read the policies on user data and app permissions first, because they are the most common reason apps get suspended

8

Play App Signing

Accepts that Google keeps the app signing key and signs the app for distribution, which is mandatory for AAB files

WhyThe keystore backed up in step 4 is the upload key. The app signing key stays with Google

9

US export laws

Certifies that the app complies with US export law, including rules on software that uses encryption

WhyRequired. The app only uses standard HTTPS encryption

Click Create app to reach the app’s Dashboard. The remaining tasks are under the Show more link.

The app Dashboard (this image was taken after sending for review)Google Play Console · 23 Nov 2026
RiceSense app Dashboard: under the heading, the text Get started setting up your app with a Show more link, a box with the temporary name th.co.ricesense.app (unreviewed), Update status In review and Production Active 1 country / region

7. Upload the first AAB to Internal testing

Section titled “7. Upload the first AAB to Internal testing”

The Google Play account owner goes to Test and release → Testing → Internal testing → Create new release and drags in the .aab file from step 3. The app’s first file must be uploaded in the web page, because the Google Play API does not know an app that has never had a bundle, so eas submit cannot be used the first time. Internal testing is a track (release channel) for the internal team, up to 100 people, with no review wait.

The AAB upload boxGoogle Play Console · 23 Nov 2026
Create internal testing release page, App bundles section with a Drop app bundles here to upload box, an Upload button and Add from library, no file added yet
After upload you get an App bundle row (image from the release details page)Google Play Console · 23 Nov 2026
Release details page for 3 (1.0.0), App bundles section with an App bundle row: version 3 (1.0.0), API levels 24+, Target SDK 36, Required features 3
1

Upload app bundles

Where the .aab file goes. Drag the file into the box, or click Upload and pick the file

  • Upload / drag the file inOur choiceUploads a new file from your computer. Wait a moment for Play to process it
  • Add from libraryUses a file already uploaded to this app. Not available for an app that has never had a file

WhyThis is the app's first file, so the library is empty

2

App bundle row

The result after upload: versionCode and versionName, API levels, Target SDK and the number of Required features

We entered3 (1.0.0) · API 24+ · Target SDK 36

WhyCheck the numbers match the build you meant to send. If Play says the version code is already used, build again and EAS bumps the number

Scroll down to Release details and enter release notes inside the store page’s language tag. Use <th>, not <th-TH>. With the wrong tag, Play shows Unsupported language translation and the Next button cannot be clicked.

Release name and release notes (reopened from the Edit release details button)Google Play Console · 23 Nov 2026
Edit release details dialog for release 3 (1.0.0): Release name 3 (1.0.0) and Release notes in Thai inside the th tag, with Release notes provided for 1 language shown below
1

Release name

The release name, shown only in Play Console, not to users. Play fills it in from the file's version

We entered3 (1.0.0)

WhyKeep the filled-in value, since it already shows both versionCode and versionName

2

Release notes

The "What's new" text testers see, written inside a language tag, up to 500 characters per language

We entered<th> รุ่นทดสอบภายในแรกของ RiceSense: ภารกิจวันนี้ ระดับน้ำ บันทึกกิจกรรม ประวัติ และผู้ช่วย AI </th>

WhyThe text says "First internal test build of RiceSense: today's tasks, water level, activity log, history and AI assistant". The opening and closing tags sit on separate lines from the text. Below the field it must say Release notes provided for 1 language. The correct language code is shown in the language picker on the Main store listing page, for example Thai – th

Click Save as draft.

The Google Play account owner goes to the Testers tab of Internal testing → Create email list → names the list, adds the emails, then clicks Save changes.

Tester email list (reopened, so the dialog title is Edit email list)Google Play Console · 23 Nov 2026
Edit email list dialog for an existing list (when creating it the dialog title is Create email list, with the same fields): List name RiceSense internal testers, the Add email addresses field and 2 emails already added
1

List name

The tester list name. The list can be reused for every app in the account

We enteredRiceSense internal testers

WhyName it so it is clear which app and which track it is for

2

Add email addresses

Type emails separated by commas and press Enter, or upload a CSV file

WhyThey must be the Google accounts testers use to sign in to the Play Store on their phones

3

Email addresses added

Emails already in the list

We enteredadmin@futureofgoodlife.com, kiwt07@gmail.com

WhyInclude at least one system owner and one developer

Back on the Testers tab, tick the list you created and click Save.

Pick the tester listGoogle Play Console · 23 Nov 2026
Internal testing Testers tab with the RiceSense internal testers list ticked, 2 users

The Google Play account owner goes back to the draft release → clicks Next → the Preview and confirm page → clicks Save and publish.

Check the release before publishingGoogle Play Console · 19 Nov 2026
Preview and confirm page of the internal testing release: 1 Warning, download size 23.6 MB, App bundle 3 (1.0.0) and the Save and publish button
1

Errors, warnings and messages

Results of the file check. An Error must be fixed before you can continue. A Warning lets you continue

We entered1 Warning: There is no deobfuscation file associated with this App Bundle

WhyThis Warning means there is no R8/proguard mapping file. It does not block the release; it only makes crash stack traces in Play Console harder to read

2

Save and publish

Publishes this release to Internal testing

WhyInternal testing has no review wait. The bottom bar says Changes made will be published to Google Play immediately

A confirmation dialog appears. Click Save and publish again.

Confirm the releaseGoogle Play Console · 19 Nov 2026
Confirmation dialog Publish change on Google Play? with the text This change will be published immediately and Cancel and Save and publish buttons

Once published, the track is Active and the release shows Available to internal testers.

Internal testing is liveGoogle Play Console · 23 Nov 2026
Internal testing page: Track summary Active, Latest release 3 (1.0.0), temporary name th.co.ricesense.app (unreviewed), release 3 (1.0.0) with status Available to internal testers
1

Available to internal testers

Testers on the list can now install this release

We entered3 (1.0.0)

2

th.co.ricesense.app (unreviewed)

The temporary app name testers see before the app passes its first review

WhyNo need to fix it. The real name appears once the app details are complete and the app passes review

The Google Play account owner copies the opt-in link from the Testers tab and sends it to testers. Each tester opens the link on an Android phone signed in with an email on the list → joins → installs from the Play Store and tries every main screen. This build is pd, so it talks to the production API. Sign in with the demo account prepared in Backend and demo account. If you find a bug, the developer fixes it, then the Expo project owner repeats step 3 and the Google Play account owner uploads as in step 7. The bundle that passes this testing is the one released to Production.

  • app.json has android.adaptiveIcon and the ./plugins/withOptionalPortraitFeature plugin
  • The keystore is backed up in the company’s secret store
  • The app was created in the ricesense account with package name th.co.ricesense.app and Default language Thai
  • Internal testing is Active and testers can install from the Play Store
  • Testers have tried every main screen on the pd build, and the versionCode of the bundle that passed is written down

Next: Play Console and review