There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Unbricking a device with an ubuntu computer, trouble with .bat and .sh files and the device’s chipset

This is the second time I try to unbrick my device (asus X00PD) with my computer (Ubuntu 23.10) and Im not very smart, so I hope you are patient.

Turns out I can log in to fastboot mode on my device and my computer recognizes the device through fastboot:


<span style="color:#323232;">fastboot devices
</span><span style="color:#323232;">KCAJJFOES633VUN    fastboot
</span>

I’m following these instructions: xdaforums.com/…/fastboot-edl-unbrick-asus-zenfone…, Method 2:- Flashing Raw Firmware In Fastboot Mode.

I downloaded drive.google.com/folderview?id=10rvsIsw3pZ78Lg8eM…, (raw firmware) and extracted it. Inside this directory there are 2 .bat files: 8937.bat for Snapdragon 430, the one I need for my device and 8917.bat for Snapdragon 425. There is also a .sh file (I work with ubuntu): fastboot.sh

I don’t know how to run the .bat file I need on a ubuntu terminal. I also run ./fastboot.sh, but that only rebooted the device into an on and off loop.

How should I proceed?

Mojojojo1993 ,

Maybe someone can help me. Tried to unlock bootloader on my nexus 7 tablet. I can get the laptop to recognize the tablet but everytime I try to run adb the text is yellow. It then doesn’t recognize the adb command.

d3Xt3r ,
Mojojojo1993 ,

I’ll try this. Is it any different than the standard adb ? I tried android studio as well. It authenticed the tablet but wouldn’t let me do anything. All terminals didn’t seem to recognize the tablet. Or I was doing something wrong. I downloaded the fastboot and adb files. Hold shift right click open terminal.

I’ve flashed plenty lineage and cynomod before. Haven’t run into this before.

d3Xt3r ,

Not sure, will need to see a screenshot, your adb versions etc. XDA would be a better place to ask this.

Or maybe try it from a Linux distro like Ubuntu or something, adb is pretty easy to install from the official repos and there’s no need for any drivers. I find Linux just works better for stuff like this.

Mojojojo1993 ,

Think it would work or a raspberry pi ? I just downloaded the standard fastboot and adb files. I have the correct drivers as I downloaded the nexus 7 ones. Laptop recognizes tablet. I can access the internal files and get the security message. Terminal gives me error message

Doesn’t understand adb as command. In yellow font. After the first word it changes back to white font. I can’t run adb devices as it won’t run any command.

Was thinking might be work laptop with firewall preventing debugging.

d3Xt3r ,

work laptop

Ah, that explains it. There’s a lot of stuff that enterprises do to restrict such stuff.

A Raspberry Pi should work just fine.

Mojojojo1993 ,

Sweet. Do I need anything extra for a pi. I know from previous tinkering they had miniscule storage. Would I need new drivers and such ?

bartolomeo ,
@bartolomeo@suppo.fi avatar

Did I just witness Dexter helping Mojojojo??

Mojojojo1993 ,

Mojojojo wasn’t such a bad guy. Dexter knew this

d3Xt3r ,

No need for any drivers. You just need to install android-sdk-platform-tools, assuming you’re running Raspbian or similar the command would be sudo apt install android-sdk-platform-tools.

After that, type fastboot and/or adb and see if they work.

Mojojojo1993 ,

Sweet. I’ll need to dust of the pi. But yeah it’ll be running Raspbian.

d3Xt3r ,

If you look inside the fastboot.sh file, there’s this bit of code here:


<span style="color:#323232;">command_array=($1 $2 $3 $4 $5)
</span><span style="color:#323232;">
</span><span style="color:#323232;">for command in ${command_array[*]}; do
</span><span style="color:#323232;">	case $command in
</span><span style="color:#323232;">	8917)
</span><span style="color:#323232;">        down_platform="8917"
</span><span style="color:#323232;">	continue
</span><span style="color:#323232;">	;;
</span><span style="color:#323232;">	8937)
</span><span style="color:#323232;">        down_platform="8937"
</span><span style="color:#323232;">	continue
</span><span style="color:#323232;">	;;
</span><span style="color:#323232;">esac
</span>

That means you’re supposed to pass an argument to the script with the model? number of the device. So since your device is an 8937, run the script like so: ./fastboot.sh 8937

Further down the script, you can see what it actually does: it unlocks the device, flashes a bunch of partitions and finally reboots it. Since you didn’t specify the model number, it skipped the flashing bit and went directly to the reboot bit. :)

Edit: I also took a look at the .bat files, they basically do they same thing except under Windows, and it’s specific to the model.

vestmoria OP ,

thanks a lot! device unbricked

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines