It is possible but not advisible. It is highly likely the logo.bin file is responsible. A modified logo.bin, may do it. Heres where you get problems: Android Boot Flowand /e/ updates.
Youll likely have to teardown every /e/zip update to modd and reassemble. There likely will have to be a modded bootloader that skips the normal flow as well.
Hello @Tech-e1 and thank you very much for your feedback !
Indeed, the logo.bin file is involved in the issue.
But since I first installed the e-1.1 on this harpia-device, i made all the /e/ updates without any problem.
Don’t get me wrong, I have no intention of making the moto G5 bootloader relock!
This is just a workaround to prevent the N/A screen from appearing on startup.
Please read the passages to which the links point, not just the previews
I thought reviving a 2 year old post was not a good practice … as experienced on other Discourse instances. But maybe this community has other practice …
Indeed, my post point to several good ressources, but I just don’t know how to use them.
Right now, i’m stuggling with an old window XP in order to run a .bat file
Would you like to share where it makes you struggle ? I can see how ffmpeg might present difficulties on XP, but is running that script the only way to go in order to make an “easy start” ?
… but you have extracted a copy of your existing logo.bin ? I do not think that method would require a rooted phone just allow Developer options > Rooted debugging ?
… but is this “history” or from “unknown source” ??
Have you already learned how to open logo.bin ? Do you have access to Linux ? Sorry to ask so many questions
HEllo, and thank you very much for all your question : it mean you are trying to understand from where i’m talking, and thus trying to help me
Of course !
This is a dual boot eepc (Samsung NC10 CPU N270 @ 1.6GHtz, 2G RAM, 160 G SDD) with XP and Ubuntu. it is the first laptop I switched to linux OS.
The windows part has a C: and a D: hard-drive partition, all together with the linux partition, on this modest drive.
I installed perl in a folder in D:,
I tried to install FFmpeg in the same folder but the drive was full, couldn’t end the install.
I’m now transferring the folder to C: EDIT: here is the output of the command :
C:\motorun>compress.bat
INPUT file name (example.bmp):ac6d5344d58ebd8a407685cd050bb411.bmp
'ffmpeg' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
'perl' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Impossible de trouver C:\motorun\temp.raw
Le fichier spécifié est introuvable.
Appuyez sur une touche pour continuer...
Sorry, my system is set in french language. Can you read it ?
I don’t know, this is just my firt step, my firt try.
No, not yet. Should I ?
I will try this EDIT : tried, don’t find (Android 11)
Both ! But my understanding is that it worked for my Moto G4 Play.
C:\motorun>compress.bat is the commande I launched.
it replyed INPUT file name (example.bmp):
So i typed ac6d5344d58ebd8a407685cd050bb411.bmp wich is the name of a suitable image (720*1080 pixels)
the output of the command, let say the answer of the machine, was : 'ffmpeg' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. 'perl' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. Impossible de trouver C:\motorun\temp.raw Le fichier spécifié est introuvable. Appuyez sur une touche pour continuer...
deepL translate it to :
ffmpeg’ is not recognized as an internal or external command, an executable program or a command file.
perl’ is not recognized as an internal or external command, an executable program or a command file.
Unable to find C:\motorun\temp.raw
The specified file cannot be found.
Press any key to continue…
I will try the command you propose after my nap …
see ya later !
EDIT : ٩(ˊ〇ˋ*)
so here is the output :
C:\motorun>decompress.bat logo.bin
‘perl’ n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
‘ffmpeg’ n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Impossible de trouver C:\motorun\temp.raw
Appuyez sur une touche pour continuer…
Also, there is a ffmpeg for Ubuntu and the .bat file is very simple so you may be able to translate commands to bash. As usual, Internet is very helpful for that, for example https://tldp.org/LDP/abs/html/dosbatch.html.
Perl script should run as-is on Linux.
I bet we could have this conversation in french, sylvain
thank you for the
idea, clever indeed !
I just don’t know where to begin at with …
I tried to interpret the bat file on my linux machine with help of wine, but it failed.
Here are the result / output of the commands :
didou@L-indispensable-HP-Pavilion-dv5-Notebook-PC:~$ wine cmd
Microsoft Windows 6.1.7601
Z:\home\didou>cd Z:\Bureau\MotoG5Cedric\motorun
Chemin introuvable.
# mauvaise syntaxe de commande ! on recommence
Z:\home\didou>cd Z:\home\didou\Bureau\MotoG5Cedric\motorun
# là ça marche.
Z:\home\didou\Bureau\MotoG5Cedric\motorun>compress.bat
INPUT file name (example.bmp):ac6d5344d58ebd8a407685cd050bb411.bmp
Ne reconnaît pas « ffmpeg -i ac6d5344d58ebd8a407685cd050bb411.bmp -f rawvideo -s 720x1280 -pix_fmt bgr24 temp.raw » comme commande interne ou externe, ou fichier de commandes.
Ne reconnaît pas « perl compress.pl » comme commande interne ou externe, ou fichier de commandes.
temp.raw : fichier non trouvé
Fichier introuvable.
Fichier introuvable.
Appuyez sur une touche pour continuer...
J’en conclue qu’en l’état, wine ne sais pas aller chercher le ffmpeg et le perl de ubuntu…
ooops !
english version :
my conclusion it that, at that point, wine isn’t able to use ffmpeg and perl installed on the linux side …
My idea was more to understand what the Windows script does, and to find Bash commands to replace.
Just follow the blog post, entry point is https://azure.microsoft.com/fr-fr/free/.
I think this is the best solution, as the knowledge you will acquire could be reused later for other goals and purposes
This is a friendly follow to people who tried to help me here.
I’ve been trying to compile FFmpeg for windowsXP, without success.
I was able to install bash and docker on my latest Ubuntu linux machine (in the older one, the processor wasn’t handled correctly), but couldn’t compile for 32bit windows. Some bcrypt.dll was missing and could’t find a workaround. Abandoned.
Later i’ve found compiled version for supposedly winXP and Win32, but either I didn’t knew how to install them or they weren’t suitable for my old XP.
Long story short, I gave up this possibility.
But I enjoyed the journey (even if it was sometime hard) and managed to learn new things
My next option is to follow @smu44 idea.
Let’s study this
!!!
your other idea : windows .bat → linux bash
this could be more simple.
@echo off
set /p input=INPUT file name (example.bmp):
ffmpeg -i %input% -f rawvideo -s 720x1280 -pix_fmt bgr24 temp.raw
perl compress.pl
DEL temp.raw
::append compressed image to modified bin file
copy /b logo.bin+logo-moto.raw logo.bin
pause