1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-12 15:24:14 +03:00
mobile-nixos/devices/samsung-a5y17lte
2023-01-27 20:02:08 -05:00
..
firmware treewide: runCommandNoCC -> runCommand 2022-09-26 23:42:22 -04:00
kernel samsung-a5y17lte: Normalize kernel config 2023-01-27 20:02:08 -05:00
default.nix samsung-a5y17lte: Don't enable firmware by default 2023-01-26 19:12:29 -05:00
misc.json samsung-a5y17lte: Add additional autoport files 2021-01-09 16:26:28 -05:00
oem_props.json samsung-a5y17lte: Add additional autoport files 2021-01-09 16:26:28 -05:00
README.adoc samsung-a5y17lte: Add device-specific notes 2021-01-09 19:58:38 -05:00

= Samung Galaxy A5 (2017)
include::_support/common.inc[]

== Device-specific notes

=== Force-rebooting

To force-reboot the device, hold `Volume Down` + `Home` + `Power` for a couple
of seconds.

=== Odin mode

Holding `Volume Down` + `Home` + `Power` during power-up will go to the Samsung
specific *bootloader* mode.

=== Recovery

Holding `Volume Up` + `Home` + `Power` during power-up will boot the recovery
boot image.

=== Flashing system image

Using `heimdall` to flash `system.img`, either on the `USERDATA` or on the
`SYSTEM` partition seems to fail, for unclear reasons.

One can use TWRP to flash the partitions:

```
 $ adb shell dd of=/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM bs=8M < .../system.img
 $ # or
 $ adb shell dd of=/dev/block/platform/13540000.dwmmc0/by-name/USERDATA bs=8M < .../system.img
```

////

// As of 2021-01-09, this seems broken, rndis does not seem to work.

An alternative is to temporarily flash the "android burn tool" and use `dd`
through `ssh` to flash the image.

```
 $ bin/ssh-initrd dd of=/dev/disk/by-partlabel/SYSTEM bs=8M < .../system.img
 $ # or
 $ bin/ssh-initrd dd of=/dev/disk/by-partlabel/USERDATA bs=8M < .../system.img
```

////