[OFFICIAL][RECOVERY]TWRP 3.1.x for Galaxy SM-J5008/H/F/G/M/NO/Y/FN

robotsrules

Member
May 20, 2016
39
3
0
Thanks a lot for those images, vince2678.

I was wondering if you have any plans to build images of the newest TWRP 3.3.0 and upload them here, or here?

I'm really interested in the 3.3.0 version because I'm currently using ViperOS 6.3 (Android 9). And now that TWRP supports decryption of Android 9, I'm ready to encrypt my phone. But for that to happen, I need TWRP to be able to decrypt it as well so I can flash my stuff :p
 

palmbeach05

Senior Member
Oct 12, 2012
4,299
1,802
243
Thanks a lot for those images, vince2678.

I was wondering if you have any plans to build images of the newest TWRP 3.3.0 and upload them here, or here?

I'm really interested in the 3.3.0 version because I'm currently using ViperOS 6.3 (Android 9). And now that TWRP supports decryption of Android 9, I'm ready to encrypt my phone. But for that to happen, I need TWRP to be able to decrypt it as well so I can flash my stuff :p
I was thinking the same thing, but i was trying to see if it was going to be updated or if someone else was going to raise the question
 

robotsrules

Member
May 20, 2016
39
3
0
So I'm trying to build the recovery image myself, but I'm stuck in this error and I don't know how to fix it. I'm not even sure if I'm doing anything right tbh. Hahah

I'm using build scripts from this repository in order to build the recovery image. And this is the command I'm using:

Code:
$ RECOVERY_VARIANT=twrp ./scripts/build.sh --distro lineage --target recoveryimage --type eng --device j5lte --path ./ -j 4 --silent
And this is the output so far: https://pastebin.com/raw/i63iCGZP

Does anyone know why?! Any help would be appreciated. :D

EDIT: Found out why! Most building python scripts still rely on python2, but Arch Linux (my distro) defaults to python3. The solution is to create a local symlink to python2, e.g.:

Code:
$ ln -s /usr/bin/python2 ~/.local/bin/python
 
Last edited:
  • Like
Reactions: palmbeach05

palmbeach05

Senior Member
Oct 12, 2012
4,299
1,802
243
So I'm trying to build the recovery image myself, but I'm stuck in this error and I don't know how to fix it. I'm not even sure if I'm doing anything right tbh. Hahah

I'm using build scripts from this repository in order to build the recovery image. And this is the command I'm using:



And this is the output so far: https://pastebin.com/raw/i63iCGZP

Does anyone know why?! Any help would be appreciated. :D

EDIT: Found out why! Most building python scripts still rely on python2, but Arch Linux (my distro) defaults to python3. The solution is to create a local symlink to python2, e.g.:
Would your build include aroma support?
 

robotsrules

Member
May 20, 2016
39
3
0
Would your build include aroma support?
I thought it was included by default in most recent versions of TWRP? If it's not, I don't even know how to add support to it. But the dream of self-compiling TWRP has turned into a nightmare for me. I fixed that previous error and it even compiled a recovery image, but it was the LineageOS one, lol.

Then I searched a bit more on how to compile for TWRP and tried this:

Code:
$ export RECOVERY_VARIANT=twrp
$ ./scripts/build.sh -d lineage -t recoveryimage --type eng --device j5lte -p . -j 4 -s
It doesn't work either, I get these errors at some point:

Code:
error: bootable/recovery-twrp/otafault/Android.bp:15:1: module "libotafault" already defined
       bootable/recovery/otafault/Android.bp:15:1 <-- previous definition here
error: bootable/recovery-twrp/applypatch/Android.bp:15:1: module "applypatch_defaults" already defined
       bootable/recovery/applypatch/Android.bp:15:1 <-- previous definition here
error: bootable/recovery-twrp/otautil/Android.bp:15:1: module "libotautil" already defined
       bootable/recovery/otautil/Android.bp:15:1 <-- previous definition here
error: bootable/recovery-twrp/edify/Android.bp:15:1: module "libedify" already defined
       bootable/recovery/edify/Android.bp:15:1 <-- previous definition here
error: bootable/recovery-twrp/bootloader_message/Android.bp:17:1: module "libbootloader_message" already defined
       bootable/recovery/bootloader_message/Android.bp:17:1 <-- previous definition here
error: bootable/recovery-twrp/uncrypt/Android.bp:15:1: module "uncrypt" already defined
       bootable/recovery/uncrypt/Android.bp:15:1 <-- previous definition here
error: bootable/recovery-twrp/applypatch/Android.bp:30:1: module "libapplypatch" already defined
       bootable/recovery/applypatch/Android.bp:30:1 <-- previous definition here
error: bootable/recovery-twrp/otafault/Android.bp:50:1: module "otafault_test" already defined
       bootable/recovery/otafault/Android.bp:50:1 <-- previous definition here
error: bootable/recovery-twrp/applypatch/Android.bp:68:1: module "libapplypatch_modes" already defined
       bootable/recovery/applypatch/Android.bp:68:1 <-- previous definition here
error: bootable/recovery-twrp/applypatch/Android.bp:88:1: module "applypatch" already defined
       bootable/recovery/applypatch/Android.bp:88:1 <-- previous definition here
error: bootable/recovery-twrp/applypatch/Android.bp:119:1: module "libimgdiff" already defined
       bootable/recovery/applypatch/Android.bp:119:1 <-- previous definition here
error: bootable/recovery-twrp/applypatch/Android.bp:149:1: module "imgdiff" already defined
       bootable/recovery/applypatch/Android.bp:149:1 <-- previous definition here
error: bootable/recovery-twrp/applypatch/Android.bp:176:1: module "libimgpatch" already defined
       bootable/recovery/applypatch/Android.bp:176:1 <-- previous definition here
ninja: build stopped: subcommand failed.
18:35:33 soong bootstrap failed with: exit status 1
If I delete the bootable/recovery folder, compilation proceeds a bit more, but also fails a bit later:

Code:
[1/1] /home/user/git/lineage-16.0/out/soong/.minibootstrap/minibp /home/user/git/lineage-16.0/out/soong/.bootstrap/build.ninja
[1/1] /home/user/git/lineage-16.0/out/soong/.bootstrap/bin/soong_build /home/user/git/lineage-16.0/out/soong/build.ninja
/home/user/git/lineage-16.0/out/build-lineage_j5lte-cleanspec.ninja is missing, regenerating...
/home/user/git/lineage-16.0/out/build-lineage_j5lte.ninja is missing, regenerating...
[4/1085] including bootable/recovery-twrp/Android.mk ...
cat: external/busybox/busybox-full.links: No such file or directory
bootable/recovery-twrp/tests/Android.mk:63: error: FindEmulator: cd: bootable/recovery: No such file or directory
18:17:18 ckati failed with: exit status 1

#### failed to build some targets (01:21 (mm:ss)) ####
TL;DR: I quit for now
 

Olexpz

Senior Member
Dec 20, 2018
98
13
0
Please update this recovery to TWRP 3.2.3 version so that you can install TW 7.1 ports with support for aroma and custom android 9 firmware, without reinstalling the recovery.
 

palmbeach05

Senior Member
Oct 12, 2012
4,299
1,802
243
Please update this recovery to TWRP 3.2.3 version so that you can install TW 7.1 ports with support for aroma and custom android 9 firmware, without reinstalling the recovery.
Vince will do no such thing, as vince has abandoned this project. 3.2.3.0 recovery links available in bootlegers thread.