From 451574394e468c38d0899756aea459050f326779 Mon Sep 17 00:00:00 2001 From: r-zakarya <82443831+r-zakarya@users.noreply.github.com> Date: Thu, 17 Sep 2026 21:50:26 +0100 Subject: [PATCH] feat(apk): l'app s'appelle Vault, et la release n'est plus debuggable Delphi ecrivait android:debuggable=true meme en Release : sur un telephone avec le debogage USB actif, adb run-as ouvrait le dossier prive de l'app. Co-Authored-By: Claude Opus 5 --- android-client/build-apk.ps1 | 9 +++++++++ mainApk.pas | 2 +- pmserverApk.dproj | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/android-client/build-apk.ps1 b/android-client/build-apk.ps1 index 61a0a35..3a95dc2 100644 --- a/android-client/build-apk.ps1 +++ b/android-client/build-apk.ps1 @@ -70,6 +70,15 @@ $log | Select-String -Pattern 'lines,' | ForEach-Object { $_.Line.Trim() } New-Item -ItemType Directory -Force -Path "$stage", "$stage\classes", "$stage\library\lib\arm64-v8a" | Out-Null Copy-Item "$out\AndroidManifest.xml" "$stage\AndroidManifest.xml" -Force +# DELPHI MET android:debuggable="true" MEME EN RELEASE, et l'APK livre le +# portait. Sur un telephone ou le debogage USB est actif, `adb run-as` ouvre +# alors le dossier prive de l'application - donc vault.bin et les reglages - +# sans acces root. On le force a faux pour une release, et seulement la. +if ($Release) { + $mf = Get-Content "$stage\AndroidManifest.xml" -Raw + $mf = $mf -replace 'android:debuggable="true"', 'android:debuggable="false"' + Set-Content "$stage\AndroidManifest.xml" -Value $mf -Encoding utf8 +} Copy-Item "$out\pmserverApk.classes\*.dex" "$stage\classes\" -Force & $strip --strip-debug -o "$stage\library\lib\arm64-v8a\libpmserverApk.so" "$out\libpmserverApk.so" diff --git a/mainApk.pas b/mainApk.pas index 5a28ce7..8160e5c 100644 --- a/mainApk.pas +++ b/mainApk.pas @@ -494,7 +494,7 @@ begin // cache par la version du depot, et ce qui attend ici serait perdu. FPending := HasPendingFlag; PushConfig; - WebCall('PM.setVersion("Coffre 1.0.0")'); + WebCall('PM.setVersion("Vault 1.0.0")'); {$IFDEF DEBUG} // L'effacement du coffre local n'existe QUE dans les versions de debogage. // La page ne montre le bouton que si Delphi le lui dit, et Delphi ne le dit diff --git a/pmserverApk.dproj b/pmserverApk.dproj index 2e48883..ba5cb16 100644 --- a/pmserverApk.dproj +++ b/pmserverApk.dproj @@ -111,7 +111,7 @@ FireDACIBDriver;fmx;DbxCommonDriver;bindengine;IndyIPCommon;IndyProtocols;dbxcds;FmxTeeUI;FireDACSqliteDriver;DbxClientDriver;soapmidas;dbexpress;inet;CustomIPTransport;IndySystem;ibxbindings;FireDACCommon;bindcompdbx;rtl;DBXSqliteDriver;FireDAC;xmlrtl;ibxpress;dsnap;FireDACCommonDriver;IndyIPClient;bindcompfmx;ibmonitor;fmxFireDAC;fmxase;dbrtl;DBXInterBaseDriver;bindcomp;IndyCore;RESTBackendComponents;RESTComponents;IndyIPServer;dsnapxml;tethering;CloudService;FMXTee;soaprtl;soapserver;$(DCC_UsePackage) - package=com.embarcadero.$(MSBuildProjectName);label=Coffre;versionCode=1;versionName=1.0.0;persistent=False;restoreAnyVersion=False;installLocation=auto;largeHeap=False;theme=TitleBar;hardwareAccelerated=true;apiKey= + package=com.embarcadero.$(MSBuildProjectName);label=Vault;versionCode=1;versionName=1.0.0;persistent=False;restoreAnyVersion=False;installLocation=auto;largeHeap=False;theme=TitleBar;hardwareAccelerated=true;apiKey= Debug true $(BDS)\bin\Artwork\Android\FM_LauncherIcon_36x36.png @@ -145,7 +145,7 @@ FireDACIBDriver;fmx;DbxCommonDriver;bindengine;IndyIPCommon;IndyProtocols;dbxcds;FmxTeeUI;FireDACSqliteDriver;DbxClientDriver;soapmidas;dbexpress;inet;CustomIPTransport;IndySystem;ibxbindings;FireDACCommon;bindcompdbx;rtl;DBXSqliteDriver;FireDAC;xmlrtl;ibxpress;dsnap;FireDACCommonDriver;IndyIPClient;bindcompfmx;ibmonitor;fmxFireDAC;dbrtl;DBXInterBaseDriver;bindcomp;IndyCore;RESTBackendComponents;RESTComponents;IndyIPServer;dsnapxml;tethering;CloudService;FMXTee;soaprtl;soapserver;$(DCC_UsePackage) - package=com.embarcadero.$(MSBuildProjectName);label=Coffre;versionCode=1;versionName=1.0.0;persistent=False;restoreAnyVersion=False;installLocation=auto;largeHeap=False;theme=TitleBar;hardwareAccelerated=true;apiKey= + package=com.embarcadero.$(MSBuildProjectName);label=Vault;versionCode=1;versionName=1.0.0;persistent=False;restoreAnyVersion=False;installLocation=auto;largeHeap=False;theme=TitleBar;hardwareAccelerated=true;apiKey= Debug true $(BDS)\bin\Artwork\Android\FM_LauncherIcon_36x36.png