steps to make flashall_AFT working while flashing fastboot rom. - Asus ZenFone Max Pro M1 Guides, News, & Discussio

hello XDA,
this guide may worthless for some and at the same time may be life savior for others.
many of us including me have faced this issue that after extracting the fastboot firmware file when we get to click on falshall_AFT file it doesn't go as expected and do nothing.
here is the thing we can do to get it worked.
1. go to your system's my computer or this computer icon.
2. right click on it and open properties.
3. on the left pan there would be advance system setting option, click on it.
4. in the opened window look for Environment variables and click the button.
5. in system variables space look for Path variable.
6. select Path variable and click on edit.
7. in opened box now click on new button.
8. add C:\Windows\System32
9. click ok on every opened box.
10. go back to your firmware folder and now click on flashall_AFT file.
it should work now as expected and flash the rom and it's content it's own.
ps : thanks the post if it helps you.

i did this and still, nothing happens when i click the flashall_AFT.cmd file

freddymanson said:
i did this and still, nothing happens when i click the flashall_AFT.cmd file
Click to expand...
Click to collapse
try to run below command & share error message -
. /flashall_AFT.cmd

didnt work
nadeem_naddy said:
hello XDA,
this guide may worthless for some and at the same time may be life savior for others.
many of us including me have faced this issue that after extracting the fastboot firmware file when we get to click on falshall_AFT file it doesn't go as expected and do nothing.
here is the thing we can do to get it worked.
1. go to your system's my computer or this computer icon.
2. right click on it and open properties.
3. on the left pan there would be advance system setting option, click on it.
4. in the opened window look for Environment variables and click the button.
5. in system variables space look for Path variable.
6. select Path variable and click on edit.
7. in opened box now click on new button.
8. add C:\Windows\System32
9. click ok on every opened box.
10. go back to your firmware folder and now click on flashall_AFT file.
it should work now as expected and flash the rom and it's content it's own.
ps : thanks the post if it helps you.
Click to expand...
Click to collapse
complete all the steps but no luck , same problem there. flashall_AFT window open for 1 sec and close automatically.
---------- Post added at 02:32 PM ---------- Previous post was at 02:09 PM ----------
nadeem_naddy said:
try to run below command & share error message -
. /flashall_AFT.cmd
Click to expand...
Click to collapse
/flashall_AFT.cmd : The term '/flashall_AFT.cmd' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:2
+ /flashall_AFT.cmd
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (/flashall_AFT.cmd:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

nadeem_naddy said:
try to run below command & share error message -
. /flashall_AFT.cmd
Click to expand...
Click to collapse
the error was
1 was unexpected at this time
Click to expand...
Click to collapse
if i just use flashall_AFT.cmd witout the ./ symbol i get this
flashall_AFT.cmd : The term 'flashall_AFT.cmd' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ flashall_AFT.cmd
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (flashall_AFT.cmd:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command flashall_AFT.cmd was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\flashall_AFT.cmd". See "get-help about_Command_Precedence" for more details.
Click to expand...
Click to collapse
i tried ".\flashall_AFT.cmd" but it just says 1 was unexpected at this time

For me, it is working but I'm getting an error saying "target didn't report max download size".

freddymanson said:
the error was
if i just use flashall_AFT.cmd witout the ./ symbol i get this
i tried ".\flashall_AFT.cmd" but it just says 1 was unexpected at this time
Click to expand...
Click to collapse
using only file name won't help, shell needs a command to operate. try running flash_all_aft explicitly using command line.

Utsav_vats said:
For me, it is working but I'm getting an error saying "target didn't report max download size".
Click to expand...
Click to collapse
pls paste full error log coming on screen.

gur.gurdeep said:
complete all the steps but no luck , same problem there. flashall_AFT window open for 1 sec and close automatically.
---------- Post added at 02:32 PM ---------- Previous post was at 02:09 PM ----------
/flashall_AFT.cmd : The term '/flashall_AFT.cmd' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:2
+ /flashall_AFT.cmd
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (/flashall_AFT.cmd:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Click to expand...
Click to collapse
open the flashall_AFT.cmd in notepad++ and see what is there line 1 which is troubling. also pls tell me which window version you use. am not that pro but i will try to get a solution for you.

nadeem_naddy said:
open the flashall_AFT.cmd in notepad++ and see what is there line 1 which is troubling. also pls tell me which window version you use. am not that pro but i will try to get a solution for you.
Click to expand...
Click to collapse
using windows 10 Pro
this is the file:
@ECHO OFF
REM Version: V01
REM Date: 20180221
REM ============== USAGE ==============
REM flashall_AFT.cmd [Format option] [SN number]
REM [Format option]: 1=enable, 0=disable. default=0
REM Format userdata/cache
REM [SN number]: device SN number
REM Support multiple download image
Click to expand...
Click to collapse

freddymanson said:
using windows 10 Pro
this is the file:
Click to expand...
Click to collapse
REM is used to put comments in batch file. see where the actual script starts.

nadeem_naddy said:
REM is used to put comments in batch file. see where the actual script starts.
Click to expand...
Click to collapse
oh okay it is too long to paste here
@ECHO OFF
REM Version: V01
REM Date: 20180221
REM ============== USAGE ==============
REM flashall_AFT.cmd [Format option] [SN number]
REM [Format option]: 1=enable, 0=disable. default=0
REM Format userdata/cache
REM [SN number]: device SN number
REM Support multiple download image
REM ============== setting ==============
CLS
SET "dataerase=0"
SET "SSN="
SET "para="
SET "ERASEPARM="
set flash_raw=.\asus_flash_raw.exe
set fastboot=.\fastboot.exe
IF %1 EQU 1 ( SET ERASEPARM=-f )
IF %1 EQU 0 ( SET ERASEPARM= )
IF NOT [%2] EQU [] ( SET para=-s )
IF NOT [%2] EQU [] (
SET SSN=%2
)
call:flash
Click to expand...
Click to collapse

Still no luck
I think my problem is different ... Its opening but it's stopped on support all devices .... Please help

saidaivakar said:
I think my problem is different ... Its opening but it's stopped on support all devices .... Please help
Click to expand...
Click to collapse
Restore back old flashall_AFT.cmd and change the folder name to 8 char without spaces.
For eg. old folder name was "Asus Max Pro 2" just rename it to "asus" and try running flashall_AFT.cmd.

can't flash it's say write protected
any solution?

virgo79 said:
Restore back old flashall_AFT.cmd and change the folder name to 8 char without spaces.
For eg. old folder name was "Asus Max Pro 2" just rename it to "asus" and try running flashall_AFT.cmd.
Click to expand...
Click to collapse
Thanks brother it worked

freddymanson said:
oh okay it is too long to paste here
Click to expand...
Click to collapse
i also have the same problem so it only open for barely 1 sec and then gone...
i use win 7

marsianus said:
i also have the same problem so it only open for barely 1 sec and then gone...
i use win 7
Click to expand...
Click to collapse
did you find the solution yet?

I have used flashall_AFT.cmd for my zenpad.
open command prompt
go to directory where flashall_AFT.cmd is present
type command "flashall_AFT.cmd 1"
This will solve error of "1 was unexpected at this time"

virgo79 said:
Restore back old flashall_AFT.cmd and change the folder name to 8 char without spaces.
For eg. old folder name was "Asus Max Pro 2" just rename it to "asus" and try running flashall_AFT.cmd.
Click to expand...
Click to collapse
worked for me

Related

Need Help Installing ADB On MY Mac

These are the instructions I followed:
- Download the Android SDK for Macintosh at: http://developer.android.com/sdk/
- Extract it
- Download Fastboot for OSX (If not included with SDK)
- Extract fastboot and place it in your /tools folder.
- Open up a terminal window
- type: pico .bash_profile (this will create a .bash_profile)
- type the following in the new screen: export PATH=${PATH}:<sdkfolder>/tools
- Hit CNTRL + X
- Hit Y (for yes to save)
- It will return you to the terminal screen… type: exit
- Restart terminal.
but when i type adb in terminal i get this:
-bash: adb: command not found
what am i doing wrong?
I would suggest doing these steps again
Open up a terminal window
- type: pico .bash_profile (this will create a .bash_profile)
- type the following in the new screen: export PATH=${PATH}:<sdkfolder>/tools
- Hit CNTRL + X
- Hit Y (for yes to save)
- It will return you to the terminal screen… type: exit
- Restart terminal.
basically its not recognizing the adb command because its not properly installed (at least thats what i think, i havent used it in a while)
type the following in the new screen: export PATH=${PATH}:<sdkfolder>/tools
Click to expand...
Click to collapse
Did you actually type that exactly as shown, or did you replace <sdkfolder> with, well, the SDK folder like you were supposed to? Because if not that'll be why it isn't working.
Now in the step where it says <sdkfolder> do I just put the name of the folder that I extracted from my zip file sorry for the stupid question I'm usually on top of things but today isn't my day lol thanks
Yes loccy i did put macosx86 something in that part but in the step after i click CNTRL + X and click Y it still wont return to the original terminal screen instead it says file to be created: .bashprofile im not on my computer right now but thats what it said so i click enter and it returns me to my original terminal screen.
Oh wait do i have to put <macosx86 something something> like this or like this: macosx86 something something by itself with out the little arrows?
lmao dude point it towards the path
for example, in windows if
c:\\androidsdk\tools
was where the tools folder of the sdk was located, then the command would be
export PATH=${PATH}:c:\\androidsdk\tools
Click to expand...
Click to collapse
modify it so the path is what it is on your mac

How to use Android Emulator to test custom ROMs

Al Credits Goes TO Perceval from Hyrule
Perceval from Hyrule said:
** Currently writing this, please wait !
Hello there,
here is a new tutorial I'm sure you'll like. As usual it took me LOTS of work to get all info and make this to work, so now I share it with you and show how to run custom ROMs within Android SDK Emulator.
Please note it's mainly for XPERIA X10, but process is the same for other Android-powered devices. It will show you the process for Linux.
1. Download the latest Android SDK.
2. Open the archive, and copy the folder android-sdk-linux-x86 to a safe place. You can also rename it to an easier name. Example : I placed it in ~/Home and renamed it androidsdk.
3. Go to the SDK folder, then in the folder Tools/. Double-click on Android and choose Run.
4. Go to Available packages, and choose to install (choose at your will !)
Android SDK Tools, revision 8
Android SDK Platform-tools, revision 1
SDK Platform Android {VERSION(S) YOU WANT} (!) You need at least one Platform. For X10, you can download 1.6, 2.1. You can also add 2.2, 2.3.
Once it's done, close the window.
5. Download Xperia X10 add-on for SDK. (?) Read the PDF add-on guide, it is helpful !
Copy the folder (from the archive) XPERIA-X10_r1 inside the folder add-ons of your Android SDK folder ({androidsdk}/add-ons/).
6. Run terminal, go to your Android SDK folder, then in tools folder, and run
Code:
./android list target
.
Note the id number of the Android you want to develop (ie for me, Android 2.3 is
Code:
id: 3 or "android-9"
). (?) You might also want to note the name ("android-X") as it might be useful later.
7. Now, create AVD (a profile for emulator). Usual command (assuming you are INSIDE the /tools/ folder !) is
Code:
android create avd -n NAMEYOUWANT -t {ID}
So, for us, it will be
Code:
./android create avd -n myx10 -t 3
8. To generate the AVD, you will be prompted several info. Type these for Xperia X10 :
Create custom hardware profile : yes
SD Card support : yes
Asbstracted LCD density : 160 (correct if I'm wrong ?)
DPad support : no (?)
Accelerometer : yes
Max camera pixels (H) : 3264
Cache partition size : 66 (?)
Audio playback : yes
Trackball : no (?)
Max cam pixels (V) : 2448
Camera support : yes
Battery support : yes
Touch screen : yes
Audio record : yes
GPS : yes
Cache partition : yes
Keyboard : no
heap size : 32
RAM : 280
GSM Modem : yes
(?) I recommend you to create one profile for each Android version you want to run (so : you just have to change the ID, and create same profile). If you don't, you won't be able to run custom ROMs using other versions of Android (ie your AVD profile is 2.3 and you run a 2.1 custom ROM).
9. Done ! Take your custom ROM (downloaded, compiled... In this case, files are in {YourAndroidRepoFolder}/out/target/product/generic/. It comes with about 3 files, including a file called system.img. Copy this file into the folder (hidden) .android/myx10{In fact, the name you've chosen earlier "NAMEYOUWANT"}.avd/
10. Run terminal, go to Android SDK folder/tools/ (if you didn't close your current terminal, you're already in and run this command to run emulator WITH your custom ROM :
Code:
./emulator -avd myx10{again the "NAMEYOUWANT" you've chosen before}
Wait and enjoy !
(?) First boot is long - it's NORMAL. Just like on a real device, the OS will be cached and will work faster and faster.
Click to expand...
Click to collapse
Can you please make a video tutorial? I don't have terminal i use Windows
terminal on windows
TodorSRB said:
Can you please make a video tutorial? I don't have terminal i use Windows
Click to expand...
Click to collapse
in windows 7, press the start button, type in cmd, hit enter and viola! you are in a terminal
Great tutorial but the point that confuses me is: If we're creating AVD why do we need and where/how do we used device add-on for SDK?
Thanks
LastStandingDroid said:
Al Credits Goes TO Perceval from Hyrule
Click to expand...
Click to collapse
thanks
Thanks for this tutorial! Thanks +1 for you! :good:
there is a new version of ADT out since this tutorial was written. I am able to run a virtual machine but how can I get a custom rom on it? Please help.
thanks
mrdoc151 said:
there is a new version of ADT out since this tutorial was written. I am able to run a virtual machine but how can I get a custom rom on it? Please help.
thanks
Click to expand...
Click to collapse
You need to download more than one api, it creates the directory for addons and continue from there :beer:
thanks for the tutorial
A question, ¿how to compile a rom? :S
jomigp01 said:
thanks for the tutorial
A question, ¿how to compile a rom? :S
Click to expand...
Click to collapse
A Linux environment is best, and there are a million tutorials all over xda:beer:
Slithering from the nether regions of a twisted mind and tarnished soul
jacobmacek said:
in windows 7, press the start button, type in cmd, hit enter and viola! you are in a terminal
Click to expand...
Click to collapse
That is not terminal. If you need terminal in windows download CYGWIN. http://www.redhat.com/services/custom/cygwin/
Silly post *Removed*
I want to make it to this process for one x. in addition to those for xperia Where can I find one x
I have a flashable zip of the custom rom i need to test. Is there any way i could use that here?
2. Open the archive, and copy the folder android-sdk-linux-x86 to a safe place. You can also rename it to an easier name. Example : I placed it in ~/Home and renamed it androidsdk.
* I can't see any archive.
TodorSRB said:
Can you please make a video tutorial? I don't have terminal i use Windows
Click to expand...
Click to collapse
Download cygwin from HERE
It should help you
---------- Post added at 06:34 AM ---------- Previous post was at 06:29 AM ----------
OzoGaming said:
2. Open the archive, and copy the folder android-sdk-linux-x86 to a safe place. You can also rename it to an easier name. Example : I placed it in ~/Home and renamed it androidsdk.
* I can't see any archive.
Click to expand...
Click to collapse
Here the archive means the flashable custom rom :laugh:
Need a windows tutorial.....
This tutorial looks like for linux......please make a windows version tutorial
Black Screen here, any suggestion?
I saw that the ramdisk.img is also needed, but I dont know how to generate it
You can use fastboot / ADB to pull ramdisk.img for the device brand model you are trying to cook for. Tutorial on youtube- I have to watch it again guy is not a natural instructor - oh well grateful for the seeds and the few Linux tutorials: I want to try setup a profile for Doogee Mix due to little support for it. Think its worthy of a few custom options. [email protected] 'LastStandingDroid" Thank U - I was looking for how to unpack stockmix.rar to fastboot flash for a restore, Can I use those same basic files to create a skeleton profile for custom rom? I'm just frankensteining
Here the archive means the flashable custom rom :laugh:
Click to expand...
Click to collapse
in my "archive" i have only md5 files no folders pls help

flashtools in kubuntu

hi, I dont know if i am in right place or not, I am new and dont know exactly where to ask this
well, I've installed flashtools in kubuntu successfully, I configured it, it recognize the device but the problem is it doesnt recognize the ftf file
i have no idea why, can any one help me?
thank you for your time
bloodofJesus said:
Where did you get the ftf ? screenshots ? bash output ? logs ?
Click to expand...
Click to collapse
I get the ftf from xperiafrim
and I attached a screenshot so you can see ftf is present but does not recognize it
the ftf file work in windows
bloodofJesus said:
hmm I miss KDE, try dragging the ftf into the flash tool window, otherwise verify the md5 sum of the ftf, also make sure you're using the latest version.
Why are you running flashtool as root ?
Click to expand...
Click to collapse
yup kde is really good,
I tried draging it doesnt work
and if i dont run it as root it doesnt run some java file
and the md5 sum is correct, it works in win 10 perfectly
I dont know why but it seems to be kde problem...
bloodofJesus said:
Could you provide logs from flashtool ?
Click to expand...
Click to collapse
how to do it?
bloodofJesus said:
There should be a save log button on the main window, secondly check the preferences maybe there is a setting to make the logs more verbose (on mac I can just select Debug easily),
Thirdly run your flashtool like this;
Code:
sudo -s
java -jar yourFlashtool > flashlog.txt 2>&1
upload "flashlog.txt" and all the logs you could get.
Click to expand...
Click to collapse
I did all this but I could get only this line on flashlog.txt
Error: Unable to access jarfile /home/erfanyousefifar/Flashtool
it seems the command didn't run
bloodofJesus said:
where is your .jar file for the flashtool ? are you using flashtool-xperia from the repos or the one from the official site ?
Click to expand...
Click to collapse
I downloaded flashtools from official website
bloodofJesus said:
you're error
Code:
Error: Unable to access[B] jarfile[/B] /home/erfanyousefifar/Flashtool
My bad, the command needs to be ./FlashTool > flashlog.txt 2>&1 , for the log level of flashtool please check your settings, after you've done this, do what you tried to do before so we can see those errors, as for the flashtool log you can just copy and paste them from the flashtool window.
​
Click to expand...
Click to collapse
first of all, thank you for helping me
and here is the log
Running as root.
Used java home : ./x10flasher_lib/linjre64
(Flashtool:18448): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed
20/049/2016 20:49:01 - INFO - (MainSWT.java:1041) - Stopping watchdogs and exiting ...
20/049/2016 20:49:01 - DEBUG - (ProcessBuilderWrapper.java:93) - adb: no process found
20/049/2016 20:49:01 - DEBUG - (ProcessBuilderWrapper.java:93) - adb.linux: no process found
bloodofJesus said:
you're welcome but this doesn't help much though. did you try flashing your FTF while the log was running ?
Click to expand...
Click to collapse
yes I did try to flash, I opened the flash menu in flashmode and try to select the ftf , I chose the right directory, but it doesn't recognize any ftf file

7.1 beta flashing

So I tried to flash the zip file I did everything what they said on website http://downloads.oneplus.net/oneplus-3t/oneplus_3t_oxygenos_openbeta_3/ but when I tried command adb and this showed up http://imgur.com/9ScdkMC My device haven't been rooted or anything so it shouldn't be a problem.
I believe you are missing the file extension for the zip. It'll be easier if your rename the file (for example, rename it to OOSOB3). OnePlus releases the updates as zips, so you'll have to specify the file format.
In adb, use the command:
adb sideload OOSOB3.zip
Note three things:
1) The zip file has to be in the same folder as where you opened the command prompt, otherwise you will have to specify its exact location (for example, /C/user/yourname/desktop/OOSOB3.zip)
2) You have to specify the file name, but you can name it anything you want (such as OOSOB3.zip in the example). You do not have to add the ".zip" when renaming your file if your operating system is already hiding the file extensions, you only have to specify .zip in the command prompt.
3) You must include the .zip at the end of the command
Anova's Origin said:
I believe you are missing the file extension for the zip. It'll be easier if your rename the file (for example, rename it to OOSOB3). OnePlus releases the updates as zips, so you'll have to specify the file format.
In adb, use the command:
adb sideload OOSOB3.zip
Note three things:
1) The zip file has to be in the same folder as where you opened the command prompt, otherwise you will have to specify its exact location (for example, /C/user/yourname/desktop/OOSOB3.zip)
2) You have to specify the file name, but you can name it anything you want (such as OOSOB3.zip in the example). You do not have to add the ".zip" when renaming your file if your operating system is already hiding the file extensions, you only have to specify .zip in the command prompt.
3) You must include the .zip at the end of the command
Click to expand...
Click to collapse
I did what you've told me but it didn't work, I will try to download the zip file again
ms1021 said:
I did what you've told me but it didn't work, I will try to download the zip file again
Click to expand...
Click to collapse
Which part didn't work?
---------- Post added at 07:12 PM ---------- Previous post was at 07:07 PM ----------
If you are renaming the file, make sure you don't accidentally rename it to OOSOB3.zip.zip.
In Windows, set the file manager to show you "File Name Extensions" so there's no confusion.
Anova's Origin said:
Which part didn't work?
---------- Post added at 07:12 PM ---------- Previous post was at 07:07 PM ----------
If you are renaming the file, make sure you don't accidentally rename it to OOSOB3.zip.zip.
In Windows, set the file manager to show you "File Name Extensions" so there's no confusion.
Click to expand...
Click to collapse
That's the message I get when I do as you told me
C:\Users\Miłosz_PC\Desktop>adb sideload OOSOB3.zip
loading: 'OOSOB3.zip'
* cannot read 'OOSOB3.zip' *
ms1021 said:
That's the message I get when I do as you told me
C:\Users\Miłosz_PC\Desktop>adb sideload OOSOB3.zip
loading: 'OOSOB3.zip'
* cannot read 'OOSOB3.zip' *
Click to expand...
Click to collapse
It might be that your command prompt is not opening where you zip file is.
Move your zip file to your desktop, then hold shift and right click your desktop. From the menu, select "Open command window here"
Test to make sure your adb is enabled system-wide by simply typing in:
adb
If a context menu shows up with a list of commands that you can use, then sideload as described earlier from there.
You can also test to make sure that adb can detect your phone by typing in:
adb devices
This will return your phone's serial number if it is properly connected.
Anova's Origin said:
It might be that your command prompt is not opening where you zip file is.
Move your zip file to your desktop, then hold shift and right click your desktop. From the menu, select "Open command window here"
Test to make sure your adb is enabled system-wide by simply typing in:
adb
If a context menu shows up with a list of commands that you can use, then sideload as described earlier from there.
Click to expand...
Click to collapse
I cannot see sideload command in this menu :/
ms1021 said:
I cannot see sideload command in this menu :/
Click to expand...
Click to collapse
It won't show every command, just the most commonly used ones. The point of that was just to make sure that you can use adb from your desktop. Sideload should work anyways.
Also, make sure you have enabled USB debugging in the developer's options.
Anova's Origin said:
It won't show every command, just the most commonly used ones. The point of that was just to make sure that you can use adb from your desktop. Sideload should work anyways.
Also, make sure you have enabled USB debugging in the developer's options.
Click to expand...
Click to collapse
I enabled USB debugging but I get the same thing, maybe I should use "Install from internal storage" option :/
ms1021 said:
I enabled USB debugging but I get the same thing, maybe I should use "Install from internal storage" option :/
Click to expand...
Click to collapse
Eh, internal storage works just as well. Bummer you couldn't get adb working, but I guess it doesn't really matter if you rarely use it.
Anova's Origin said:
Eh, internal storage works just as well. Bummer you couldn't get adb working, but I guess it doesn't really matter if you rarely use it.
Click to expand...
Click to collapse
I did it with internal storage option thanks for help

SO... This happened... Secure Boot Error Code 1003 MODIFIED!!!

So, I wanted to go back to stock, after trying multiple steps listed here in XDA-dev, and multiple youtube videos and webpages. I will list the erros bellow :
LgUP - "unknown device"... I been having issues with this software since I first attempt to run it. I tried on 2 different computers and have the same issue. Installed the DLL first (like many suggested ) then LGUP and nothing
Flashtools14 - I get the .kdz and attempt to do either "normal" or "CSE" . after comes another window, stating the progress, do not disconnect the phone .. blah blah. After going thru that it stops at 9 % and nothing happens.
After couple of weeks, I thought that if Relocking the bootloader i would be able to go into the "factory Reset" with out booting from TWRP and going back to stock..*stupid move*, and so I did... And here we are with error 1003 MODIFIED
I been looking for answers in order to fix this issue, but they go to the same path... using LGUP or FLASHtools in which both dont work with me
I have this phone
LG G4 H811 Tmobile
Now im trying to see if i can conver a KDZ into a TOT since that process I also know.
If somebody have another method please let me know!
I cant go into recovery since I keep getting the error. pretty much I have a paper weight.
An3ru said:
So, I wanted to go back to stock, after trying multiple steps listed here in XDA-dev, and multiple youtube videos and webpages. I will list the erros bellow :
LgUP - "unknown device"... I been having issues with this software since I first attempt to run it. I tried on 2 different computers and have the same issue. Installed the DLL first (like many suggested ) then LGUP and nothing
Flashtools14 - I get the .kdz and attempt to do either "normal" or "CSE" . after comes another window, stating the progress, do not disconnect the phone .. blah blah. After going thru that it stops at 9 % and nothing happens.
After couple of weeks, I thought that if Relocking the bootloader i would be able to go into the "factory Reset" with out booting from TWRP and going back to stock..*stupid move*, and so I did... And here we are with error 1003 MODIFIED
I been looking for answers in order to fix this issue, but they go to the same path... using LGUP or FLASHtools in which both dont work with me
I have this phone
LG G4 H811 Tmobile
Now im trying to see if i can conver a KDZ into a TOT since that process I also know.
If somebody have another method please let me know!
I cant go into recovery since I keep getting the error. pretty much I have a paper weight.
Click to expand...
Click to collapse
can you try this file place in c: programfiles /lge/lgup/model
ther error you got am not sure what it is this is for LGUP to recognize your phone.
raptorddd said:
can you try this file place in c: programfiles /lge/lgup/model
ther error you got am not sure what it is this is for LGUP to recognize your phone.
Click to expand...
Click to collapse
Hey Raptorddd
we read each other again, i did put those files in the C:/programFiles(x86)/LGelectronics/LGUP/model
Fire up LGUP and still have the same issue Model " uknonw " COM Ports [ COM41, GENESIS]
An3ru said:
Hey Raptorddd
we read each other again, i did put those files in the C:/programFiles(x86)/LGelectronics/LGUP/model
Fire up LGUP and still have the same issue Model " uknonw " COM Ports [ COM41, GENESIS]
Click to expand...
Click to collapse
have done a search with that specific error see if someone fix it. ?
raptorddd said:
have done a search with that specific error see if someone fix it. ?
Click to expand...
Click to collapse
Wich error you mean, the one in LGUP or The modified 1003?, Yes i have done research on both errors, but nothing seems to work.
An3ru said:
Wich error you mean, the one in LGUP or The modified 1003?, Yes i have done research on both errors, but nothing seems to work.
Click to expand...
Click to collapse
sorry i have no idea. maybe pos in thread go back to stock.
So if I understood you correctly you still have download mode?
Then it can be fixed.
If you want I can guide you through..
For this you need any Linux or best would be if just using FWUL ( http://tinyurl.com/FWULatXDA ).
I recommend to use the persistent mode version so your settings and installations survive a reboot / shutdown.
instructions:
Boot FWUL, choose language & login
Download the KDZ file you want to flash (we need to know the path later e.g. /home/android/Downloads/)
Open the folder LG
Connect device in download mode to the PC
Double click "LG laf NG" icon
Type in the new opened terminal:
sudo python2 auth.py
[*]sudo python2 partitions.py --list
If this lists your partitions then we can proceed with flashing.
Download my brand new kdz manager tool into FWUL: (right click and save as)
When you are not using the persistent mode of FWUL: plug in a big USB stick (e.g. 32 GB or more) into FWUL and extract the attached file there
When you are using the persistent mode of FWUL: just extract it in your download folder
You need to know the full path so best is copying the path from the file manager (e.g. /home/android/Downloads/ ) or leave the file manager open there
Open another terminal (black little icon in the panel)
cd and directly behind this paste the path you copied (e.g. cd /home/android/Downloads/ )
press ENTER
bash kdzmanager.sh -x FILLINFULLPATH-TO-DOWNLOADED-KDZ
(e.g. bash kdzmanager.sh -x /home/android/Downloads/h811blablubb.kdz)
once finished type:
bash kdzmanager.sh --test --flash extracteddz/
(just like this as "extracteddz" is the path generated by the kdzmanager)
This will just test flashing and not actually flash. Let me know the results of this (copy & paste output)
if you can't wait the next step would be actually flashing ofc:
WARNING: by default the kdzmanager will not overwrite userdata (which would be like a factory reset) and I would recommend to leave it out always and better choose the LG factory reset menu (after flashing completed) if required. If you still want to flash it use --with-userdata as a parameter (can take a loooong time then btw).
bash kdzmanager.sh --flash extracteddz/
sfX
Sent from my LG-H815 using XDA Labs
steadfasterX said:
So if I understood you correctly you still have download mode?
Then it can be fixed.
If you want I can guide you through..
For this you need Linux or best would be if to just use FWUL ( http://tinyurl.com/FWULatXDA ). I recommend to use the persistent mode version so your settings and installations survive a reboot / shutdown.
First instructions:
Boot FWUL, choose language & login
Download the KDZ file you want to flash
Open the folder LG
Connect device in download mode to the PC
Double click "LG laf NG" icon
Type in the new opened terminal:
sudo python2 auth.py
sudo python2 partitions.py --list
If this lists your partitions then we can proceed with the flashing.
I have to go to now but will go on tomorrow with the rest of the instructions if you want to go this way..
sfX
Sent from my LG-H815 using XDA Labs
Click to expand...
Click to collapse
Sure man i will do this and try to instal linux or go into your guide. One questions, which version of linux i need !?. I did a quick read on your post, is quite alot information to take, but i will try it!!!
Edit. I was able to download virtual box with extensions. Plug in my lg g4 and make sure that it read it. Double click on LG laf (auth) - * there is no LG laf NG* - termina opens, open new terminal type first command, ask for password - password is different than the ones mentioned in the OP - error : Python2: cant open file 'auth.py' : [Errno 2]\ No such file or directory
An3ru said:
Sure man i will do this and try to instal linux or go into your guide. One questions, which version of linux i need !?. I did a quick read on your post, is quite alot information to take, but i will try it!!!
Edit. I was able to download virtual box with extensions. Plug in my lg g4 and make sure that it read it. Double click on LG laf (auth) - * there is no LG laf NG* - termina opens, open new terminal type first command, ask for password - password is different than the ones mentioned in the OP - error : Python2: cant open file 'auth.py' : [Errno 2]\ No such file or directory
Click to expand...
Click to collapse
use his FWUL dont use linux use that one he provided. also please hit the thanks buttonto my friend steadfsterx.. on lower part right hand side..:good:
raptorddd said:
use his FWUL dont use linux use that one he provided. also please hit the thanks buttonto my friend steadfsterx.. on lower part right hand side..:good:
Click to expand...
Click to collapse
Hey Raptorddd
yeah I use the program he suggest me, im just waiting on him, also thank you for the help! I appreciate it
An3ru said:
Hey Raptorddd
yeah I use the program he suggest me, im just waiting on him, also thank you for the help! I appreciate it
Click to expand...
Click to collapse
It seems you havent downloaded the latest FWUL version v2.0? In v1 there is no LG laf NG.. But we can use that FWUL version as well. it's just very very outdated
If you want to have the best FWUL experience use v2.0 and download the persistent mode version of FWUL (it's the ZIP) and read the FAQ to make the persistent mode available in VirtualBox!
This combo is fantastic
I come back in about 3 hours to complete the guide...
sfX
Sent from my LG-H815 using XDA Labs
steadfasterX said:
It seems you havent downloaded the latest FWUL version v2.0? In v1 there is no LG laf NG.. But we can use that FWUL version as well. it's just very very outdated
If you want to have the best FWUL experience use v2.0 and download the persistent mode version of FWUL (it's the ZIP) and read the FAQ to make the persistent mode available in VirtualBox!
This combo is fantastic
I come back in about 3 hours to complete the guide...
sfX
Sent from my LG-H815 using XDA Labs
Click to expand...
Click to collapse
Oh yeah, the main download server was a lil confusing but i was able to download it, i will be out. But i will be reading the FAQ and the new set of instructions!!!!
An3ru said:
Oh yeah, the main download server was a lil confusing but i was able to download it, i will be out. But i will be reading the FAQ and the new set of instructions!!!!
Click to expand...
Click to collapse
sorry for any confusion but thx for reporting. I have updated the OP to point to the new versions more clearly.
will come back asap
OK here you go: https://forum.xda-developers.com/showpost.php?p=73756863&postcount=7
let me know how it goes
steadfasterX said:
So if I understood you correctly you still have download mode?
Then it can be fixed.
If you want I can guide you through..
For this you need any Linux or best would be if just using FWUL ( http://tinyurl.com/FWULatXDA ).
I recommend to use the persistent mode version so your settings and installations survive a reboot / shutdown.
instructions:
Boot FWUL, choose language & login
Download the KDZ file you want to flash (we need to know the path later e.g. /home/android/Downloads/)
Open the folder LG
Connect device in download mode to the PC
Double click "LG laf NG" icon
Type in the new opened terminal:
sudo python2 auth.py
[*]sudo python2 partitions.py --list
If this lists your partitions then we can proceed with flashing.
Download my brand new kdz manager tool into FWUL: (right click and save as)
When you are not using the persistent mode of FWUL: plug in a big USB stick (e.g. 32 GB or more) into FWUL and extract the attached file there
When you are using the persistent mode of FWUL: just extract it in your download folder
You need to know the full path so best is copying the path from the file manager (e.g. /home/android/Downloads/ ) or leave the file manager open there
Open another terminal (black little icon in the panel)
cd and directly behind this paste the path you copied (e.g. cd /home/android/Downloads/ )
press ENTER
bash kdzmanager.sh -x FILLINFULLPATH-TO-DOWNLOADED-KDZ
(e.g. bash kdzextract.sh -x /home/android/Downloads/h811blablubb.kdz)
once finished type:
bash kdzmanager.sh --test --flash extracteddz/
(just like this as "extracteddz" is the path generated by the kdzmanager)
This will just test flashing and not actually flash. Let me know the results of this (copy & paste output)
if you can't wait the next step would be actually flashing ofc:
WARNING: by default the kdzmanager will not overwrite userdata (which would be like a factory reset) and I would recommend to leave it out always and better choose the LG factory reset menu (after flashing completed) if required. If you still want to flash it use --with-userdata as a parameter (can take a loooong time then btw).
bash kdzmanager.sh --flash extracteddz/
sfX
Sent from my LG-H815 using XDA Labs
Click to expand...
Click to collapse
Hey steadfasterX, I download version 2 of the FWUL and still have the same error. as Sudo not found. Am I doing something wrong?! o.o
An3ru said:
Hey steadfasterX, I download version 2 of the FWUL and still have the same error. as Sudo not found. Am I doing something wrong?! o.o
Click to expand...
Click to collapse
you double clicked "LG laf NG" icon ? in this terminal u have to type the auth command
consider to come into IRC instead (channel carbon-user on freenode)
or just by clicking this link: http://webchat.freenode.net/?channels=Carbon-user
sfX
Saw something a few posts back about virtualbox or vmware...
FWIW, Historically, virtualized Linux Guests don't do so well with USB. I've always had to install it natively or use a LiveUSB distro with persistence.
barcodelinux said:
Saw something a few posts back about virtualbox or vmware...
FWIW, Historically, virtualized Linux Guests don't do so well with USB. I've always had to install it natively or use a LiveUSB distro with persistence.
Click to expand...
Click to collapse
VirtualBox plus FWUL works like a charm.
Sent from my LG-H815 using XDA Labs
steadfasterX said:
Download my brand new kdz manager tool into FWUL: (right click and save as)
When you are not using the persistent mode of FWUL: plug in a big USB stick (e.g. 32 GB or more) into FWUL and extract the attached file there
When you are using the persistent mode of FWUL: just extract it in your download folder
You need to know the full path so best is copying the path from the file manager (e.g. /home/android/Downloads/ ) or leave the file manager open there
Open another terminal (black little icon in the panel)
cd and directly behind this paste the path you copied (e.g. cd /home/android/Downloads/ )
press ENTER
bash kdzmanager.sh -x FILLINFULLPATH-TO-DOWNLOADED-KDZ
(e.g. bash kdzmanager.sh -x /home/android/Downloads/h811blablubb.kdz)
once finished type:
bash kdzmanager.sh --test --flash extracteddz/
(just like this as "extracteddz" is the path generated by the kdzmanager)
This will just test flashing and not actually flash. Let me know the results of this (copy & paste output)
if you can't wait the next step would be actually flashing ofc:
Click to expand...
Click to collapse
Your tool is far better than this one because your tool has extracted many such partitions of LG G4 H811 20o KDZ which that tool didn't. E.g. PERSISTENT, DEVINFO, MODEMST1, MODEMST2, DRM etc.
rizkhan999 said:
Your tool is far better than this one because your tool has extracted many such partitions of LG G4 H811 20o KDZ which that tool didn't. E.g. PERSISTENT, DEVINFO, MODEMST1, MODEMST2, DRM etc.
Click to expand...
Click to collapse
yea thx!!
and just checkout my new signature
.
steadfasterX said:
yea thx!!
and just checkout my new signature
Click to expand...
Click to collapse
Well. Yet another PhD thesis :good:. There is one thing that I couldn't understand though. At one place you mentioned that Hint: not wiping userdata can occur in a bootloop while at the other place you said WARNING: by default the kdzmanager will not overwrite userdata. Does it mean that flashing can cause bootloop if kdzmanager is used with default options?
Secondly, does it also support TOTs as LGUP does?

Categories

Resources