From 4effc3611dd09c1523a2a95e020738527851143d Mon Sep 17 00:00:00 2001 From: r-zakarya <82443831+r-zakarya@users.noreply.github.com> Date: Sat, 15 Aug 2026 01:04:08 +0100 Subject: [PATCH] feat(android): prefill the sync password from a local, untracked include Asked for, but it opens the whole vault once the container is downloaded, so it does not belong in a versioned file - even in a repo with no remote. It lives in PMA.LocalConfig.inc, gitignored, with a template checked in so a fresh clone knows what to create. --- .gitignore | 3 +++ android-client/PMA.LocalConfig.template.inc | 7 +++++++ mainApk.pas | 10 +++++++--- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 android-client/PMA.LocalConfig.template.inc diff --git a/.gitignore b/.gitignore index f0aea95..dfa8707 100644 --- a/.gitignore +++ b/.gitignore @@ -78,3 +78,6 @@ Android64/ *.apk *.apk.idsig pmserverApk.res + +# Mot de passe de sync du banc d'essai - jamais versionne +android-client/PMA.LocalConfig.inc diff --git a/android-client/PMA.LocalConfig.template.inc b/android-client/PMA.LocalConfig.template.inc new file mode 100644 index 0000000..9fff643 --- /dev/null +++ b/android-client/PMA.LocalConfig.template.inc @@ -0,0 +1,7 @@ +// Modele. Copier en PMA.LocalConfig.inc (ignore par git) et remplir. +// +// Le mot de passe de sync ouvre TOUT le coffre une fois le conteneur +// telecharge : il n'a rien a faire dans un depot, meme sans remote. + +const + TEST_PWD = ''; diff --git a/mainApk.pas b/mainApk.pas index 3242a02..60d9c4d 100644 --- a/mainApk.pas +++ b/mainApk.pas @@ -39,6 +39,11 @@ const // donne acces qu'a du chiffre - mais a remplacer avant toute mise en ligne. TEST_TOKEN = '8765e5bf426039e9888f44bfbab27d489d12b7dbaaa54c8c695ae6af8b2a820e'; +// TEST_PWD vient d'un fichier LOCAL, hors depot : il ouvre le coffre entier +// une fois le conteneur telecharge. Absent apres un clone -> recopier +// PMA.LocalConfig.template.inc. +{$I android-client\PMA.LocalConfig.inc} + type TForm8 = class(TForm) private @@ -103,9 +108,8 @@ begin FPwd.Margins.Rect := RectF(8, 4, 8, 0); FPwd.TextPrompt := 'mot de passe de sync'; FPwd.Password := True; - // Jamais pre-rempli, meme pour un essai : il ouvre le coffre entier, et ce - // fichier est versionne. - FPwd.Text := ''; + // Pre-rempli depuis le fichier local, jamais depuis ce fichier-ci. + FPwd.Text := TEST_PWD; FToken := TEdit.Create(Self); FToken.Parent := Self; FToken.Align := TAlignLayout.Top;