Skip to content

Conversation

@marcas1
Copy link

@marcas1 marcas1 commented Oct 22, 2025

Status

READY/IN DEVELOPMENT

Description

Changes in order to build with Android Studio Narwhal for Legacy (Android<10) and Modern (Android X)
Rewrite of build.gradle, gradle.properties, AndroidManifest.xml
Changes to .java files to adapt android library imports and deprecated functions.

Related Issues

[Issue with the 2020 code, not compiling with Android Studio in 2025](#39 (comment)

Todos

  • Test : Legacy Application runs.
  • Sims informations are not available (Authorizations are not available anymore on Android, so the code to read sim information as been commented out)

Test environment

APK Tested on a Android 9.
APK build on Linux Mint and Android Studio Narwhal 4 (2025.1.4)

General informations

Android version : 9 (tested). Should run on Android <=9 and Modern build on >10

OCS Inventory informations

Android agent version : 2.7 (not changed)

Deploy Notes

  • copy app/build/outputs/apk/{modern,legacy}/app-{modern,legacy}-{release-unsigned,debug}.apk to Sdcard
  • remove older OCSandroidAgent before runnin APK

Impacted Areas in Application

OCSSims (SIM informations)
OCSBios (Context)

** I heavily used a LLM coder for 6 hours as it's my first Android Project **

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.

1 participant