Skip to content

Commit f5a4975

Browse files
committed
[DONTMERGE] surfna example configuration
This uses a TWRP device tree generated using - https://github.com/SebaUbuntu/TWRP-device-tree-generator And a known working recovery.img as a base. Though it does not boot. I guess one would need to investigate with other devices to have a better understanding of why. The recovery.img this produces has the same exact configuration and files, according to unpackbootimg, except for os level, os version and cmdline. Re-packing with those from the vendor recovery.img changed nothing. So, to recap, I have repacked from an unpackimg extraction BOTH this TWRP and the stock recovery. The repacked stock recovery still works, any TWRP will not. The only difference is the ramdisk.
1 parent 2b993d3 commit f5a4975

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

surfna-twrp.nix

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# SPDX-FileCopyrightText: 2021 Samuel Dionne-Riel
2+
# SPDX-FileCopyrightText: 2021 Daniel Fullmer and robotnix contributors
3+
# SPDX-License-Identifier: MIT
4+
5+
#
6+
# Usage
7+
# =====
8+
#
9+
# ```
10+
# $ nix-build --arg configuration ./sofiar-twrp.nix -A config.build.twrp
11+
# ```
12+
#
13+
14+
{ config, pkgs, lib, ... }:
15+
16+
{
17+
device = "surfna";
18+
androidVersion = 9;
19+
flavor = "twrp";
20+
source.dirs = {
21+
"device/motorola/surfna" = {
22+
src = builtins.fetchGit ~/tmp/TWRP/android_device_motorola_surfna;
23+
};
24+
};
25+
}

0 commit comments

Comments
 (0)