Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e9147a6 authored by Frank Preel's avatar Frank Preel
Browse files

Emerald lock bootloader.

parent 9aae4af9
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -46,7 +46,11 @@ developer:

## Changelogs

### v0.15.0 (candidate)
### v0.16.0 (candidate)
- Lock emarald bootloader


### v0.15.0
- No shortcut created when installing from a non-admin account on Windows
- e-recovery assets
- Update German translation - by F. Wildermuth
+11 −8
Original line number Diff line number Diff line
@@ -27,15 +27,16 @@
# - 1 : generic error
# - 10: can't unpack system.img
# - 11: can't wipe userdata
# - 11: can't wipe metadata
# - 12: can't wipe metadata
# - 13: can't active partition
# - 20-30 : see partition_name index below
# - 101 : DEVICE_ID missing
# - 102 : ARCHIVE_PATH missing
# - 103 : fastboot folder path missing

partition_name=(gz_a lk_a md1img_a scp_a spmfw_a sspm_a tee_a boot_a dtbo_a vbmeta_a super)	
partition_image=(gz.img lk.img md1img.img scp.img spmfw.img sspm.img tee.img boot.img dtbo.img vbmeta.img super.img)
partition_error=(20 21 22 23 24 25 26 27 28 29 30)
partition_name=(boot_a dtbo_a vbmeta_a vbmeta_system_a vbmeta_vendor_a super lk_a logo preloader_a)	
partition_image=(boot.img dtbo.img vbmeta.img vbmeta_system.img vbmeta_vendor.img super.img lk.img logo-verified.bin preloader_yk673v6_lwg62_64.bin)
partition_error=(20 21 22 23 24 25 26 27)

DEVICE_ID=$1
ARCHIVE_PATH=$2
@@ -87,7 +88,6 @@ echo "unpacked archive"

sleep 1


# Wipe user data
if ! "$FASTBOOT_PATH" erase userdata ;
then 
@@ -97,12 +97,12 @@ fi
echo "user data wiped"
sleep 5

if ! "$FASTBOOT_PATH" erase metadata ;
if ! "$FASTBOOT_PATH" format md_udc ;
then 
  exit 12
fi

echo "meta data wiped"
echo "format md_udc"
sleep 5

#Flash partition
@@ -116,5 +116,8 @@ for i in ${!partition_name[@]}; do
done


"$FASTBOOT_PATH" --set-active=a
if ! "$FASTBOOT_PATH" --set-active=a ;
then 
  exit 13
fi
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ import java.nio.file.Paths;
 */
public abstract class AppConstants {

    public final static String APP_VERSION = "v0.15.0";
    public final static String APP_VERSION = "v0.16.0-dev";
    public final static String Separator = FileSystems.getDefault().getSeparator();
    public final static String OsName = System.getProperty("os.name");
    public final static String JavaHome = System.getProperty("java.home");
+2 −0
Original line number Diff line number Diff line
@@ -139,6 +139,7 @@ install_instr_startDownload=Keep pressing simultaneously "Power" & "Home" & "Vol
install_instr_startFastboot=Keep pressing simultaneously "Power" & "Volume Down" until a screen with green "START" appears to access Fastboot Mode
install_instr_startFastbootFromOptions=From options menu use "Volume Up/Down" to select "Fastboot" and "Power" to confirm
install_instr_acceptWarning=Accept warning by pressing on "Volume Up"
emerald_install_instr_accept_lock=Accept lock by pressing on "Volume Up"
install_instr_verifyHeimdall=Verify Heimdall
install_instr_oemUnlock=OEM Unlocking
install_instr_recoveryInstall=Recovery installation
@@ -252,6 +253,7 @@ script_error_unknown= The installation encounter an error
script_error_cantRebootBootloader= Failed to reboot into bootloader
script_error_cantUnpackSources=Failed to unpack /e/ sources
script_error_cantWipeData=Failed to wipe data
script_error_cantActivePartition=Failed to active partition
script_error_cantFlashBoot=Failed to flash Boot partition
script_error_cantFlashDtbo=Failed to flash dtbo partition
script_error_cantFlashRecovery=Failed to flash Recovery
+4 −1
Original line number Diff line number Diff line
@@ -71,7 +71,9 @@ download_lbl_complete=Le téléchargement est terminé, vous êtes maintenant pr
install_instr_turnOff=Éteignez le téléphone
install_instr_turnOffAgain=Éteignez à nouveau le téléphone
install_instr_startDownload=Continuez d'appuyer simultanément sur les boutons « Marche/Arrêt » & « Home » & « Volume moins » jusqu'à ce qu'un écran bleu apparaisse pour accéder au Mode de Téléchargement
install_instr_acceptWarning=Acceptez l'avertissement en appuyant sur « Volume plus »
install_instr_acceptWarning=Acceptez l'avertissement en appuyant sur "Volume plus"
emerald_install_instr_accept_lock=Acceptez le vérouillage en appuyant sur "Volume plus"
install_title_lockBootloader=Vérouillez le bootloader
install_instr_oemUnlock=Dévérouillage OEM
install_instr_recoveryInstall=Installation du mode de récupération
install_instr_leaveDownload=Continuez à appuyer simultanément sur les boutons « Power » & « Home » & « Volume moins » jusqu'à ce que l'appareil s'éteigne
@@ -344,3 +346,4 @@ script_error_cantFlashBoot_a =Erreur de flash boot_a partition
script_error_cantFlashDtbo_a =Erreur de flash  dtbo_a partition
script_error_cantFlashVbmeta_a =Erreur de flash  vbmeta_a partition
script_error_cantFlashSuper =Erreur de flash  super partition
Loading