yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Ok so I have an Idea for free network unlocks on this device. but initially I'll have to have one of these that's already unlocked to make it happen...

Sooo sometime in the near future I'm going to either use a crack-loader box to do it my self or I'll fork up the $6 to have an associate of mine do it for me if I'm unsuccessful in my own attempts....

BUT, once I have the one I own unlocked , I know how to make a free unlock package for it that we use twrp to install.

I did this same thing on my Alcatel IdealXTRA just last night, and I have 2 of them and so I paid to unlock 1 of them... after that I was able to Create a method to unlock and Guess What?

;) Now they are both unlocked isn't that something LMFAO !!!

So I will be working on that same thing for this device...

I'll keep this thread up to date with any progress I make toward that end...

And I may even share my package here if anyone shows a little love for all of my work/time/money that I'm throwing at this little project.
[Android Q&A, Help & Troubleshooting] Cursedmale:
Cricket ROM

I downloaded the package but could not find the cricket ROM to flash.

Where can i get it and is it a zip?

I have twrp installed but can not get adb up and i cannot boot.

I think my only hope is to install from Ext-SD.

Can you please help me out by posting a link to the twrp flash-able cricket ROM?
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Well SugarMTK keeps refusing to work,

now it says that username password or server location is wrong...

How vauge

anyone any ideas?

---------- Post added at 04:09 AM ---------- Previous post was at 04:08 AM ----------

Yes use external sd,

also it's not a flashable zip it's a restorable back-up.

please go back and re read the instructions carefully

---------- Post added at 04:25 AM ---------- Previous post was at 04:09 AM ----------

yep for what ever reason sugar is broken for me... :(
[Android Q&A, Help & Troubleshooting] LgPWN'd:
[MENTION=9800309]Cursedmale[/MENTION]

Is the SugarMTK tool working for u?

I'm having no luck now after a fresh Windows install....

Don't know if it's the tool or windows being a turd.

Need to know if it is still working for other folks here...
[Android Q&A, Help & Troubleshooting] Cursedmale:
Yes it worked for me 3 days ago. I had a little trouble at first because I misread the directions but after rereading them I had no trouble at all and everything works great.
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Can u confirm working today?

Yes 3 days ago it worked fine here too,

Now I'm trying to go back stock and the tool fails at log-in.

can u please try to just open the tool and log-in with the credentials supplied in the pizzaG prep kit?

If it still logs-in for you, then i'm doing something wrong.

But I think somehow TCL caught on and changed the log-in again.

And if so I know a lotta guys gonna be Pizzed about it...

For trouble-shooting purposes can you try it on your end today?

just try to log-in and see if the tool opens or if it gives Error
[Android Q&A, Help & Troubleshooting] LgPWN'd:
I'm pretty sure No one can Use Sugar now

Well I've tried different versions, from different places all over, and every password and username combo I can find on internet and NONE of them worked...

I think the ride's over please exit the platform to your left and thanks for frying your MTK based devices......

:(
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Oh well I can't go back stock....

But I did create a way to network unlock it and flash a liniageos16 pie gsi at the same time...

Does anyone have a stock twrp backup ?

I know right. I should have done that to start...

Doh!!!!
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Well Since I'm developing on this device anyway ,

I decided to build twrp from the latest sources.

I used omnirom source as that's the most up-to-date build of twrp.

Added a few lil customizations like our spash screen logo etc...

anyhow here's twrp from the latest source

EDIT:Link removed pending a TWRP update, look for links starting page 23

Also for anyone who wants to donate to my development costs

: as I need a new Server box to compile Android in-house :

can send me a pm and I'll share my Network Unlock Package.

takes only a few minutes to use this to unlock your phone,

only prerequisite is twrp...

---------- Post added at 02:19 AM ---------- Previous post was at 02:01 AM ----------

Ok so it has come to my attention that some of these on newer updates can't use fastboot.

That's So sad.

I have a work around for u but I'm not releasing the details publicly as I don't want my exploit patched in a security update...

So if u have this problem send me a private message and I'll give you the details how to

Get my latest copy of twrp recovery on your device without having root or fastboot.

And No it doesn't use spflashtool or any thing other than the exploit executable and a terminal emulator or adb

????
[Android Q&A, Help & Troubleshooting] franksmalls:
I have been unable to get into fastboot mode on this device. Can boot into recovery, but thats it.

Any ideas of how to get around this ?
[Android Q&A, Help & Troubleshooting] LgPWN'd:
EDIT:

post cleaned to prevent bricks...

Fastboot-fix kit on page 23
[Android Q&A, Help & Troubleshooting] clcombs262:
Hey can you PM me the exploit? And BTW I can't write to /data/locla/tmp says

adb: error: failed to copy 'C:\Users\Patron\Downloads\mtk-su_r16\arm\mtk-su' to
'/data/tmp/mtk-su': remote secure_mkdirs failed: Permission denied

I honestly couldn't care less about a brick either
[Android Q&A, Help & Troubleshooting] clcombs262:
Well copying to /sdcard then to /data/local/tmp worked

I now have tmp root (using mtk-su)

One note: won't your images trigger dm-verity on locked bootloader?
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Look what u did .

Try

/data/local/tmp/mtk-su

Then carry on with the Tut.

It's not going to let u create a new directory called

/Data/tmp.

But it should let u use /data/local/tmp

Try that and let us know how it goes

---------- Post added at 04:22 PM ---------- Previous post was at 04:20 PM ----------

They should not as they are stock images

Signed by the OEM

U should be ok

Let us know if it works for you

---------- Post added at 04:49 PM ---------- Previous post was at 04:22 PM ----------

[/COLOR [MENTION=9506190]clcombs262[/MENTION]

How's it going?

---------- Post added at 04:50 PM ---------- Previous post was at 04:49 PM ----------

Also [MENTION=9506190]clcombs262[/MENTION]

Can u tell me if stupid SugarMTK is

Working on your PC?

---------- Post added at 05:01 PM ---------- Previous post was at 04:50 PM ----------

The anticipation is killing me lol

Such a suspenseful moment...

Will my methods work?

Will [MENTION=9506190]clcombs262[/MENTION] get his phone bootloader unlocked?

I can't wait to see ?

---------- Post added at 05:07 PM ---------- Previous post was at 05:01 PM ----------

So here's the line of customized tetra that I'm working on.

I customize these and some others for a local mobile vendor.

They get resold on eBay and in the store ?

https://www.ebay.com/itm/Custom-Rom...-e78a-40ee-aabf-b64448b6c26c&epid=24025841707
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Well darn it got real quiet.

Wonder what happened....
[Android Q&A, Help & Troubleshooting] clcombs262:
Don't have access to a PC atm might be a few days before I can get to it
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Well let us know

Let us know how it turns out.

In a pinch I've used a tablet with otg and

Statically linked arm binaries of the adb and fastboot

And been able to do fastboot oem unlock...

But a PC is easier ?
[Android Q&A, Help & Troubleshooting] :
Nice work guys, I'm very happy to try out the new TWRP. I just reinstalled Sugar MTK at 9:18pm on 6-19-2019 and it's working fine. Unless you have a way to get fastboot working without Sugar MTK, you are just reinventing the wheel. I'm still around, just nothing to report. I've done what I can with this phone and this project is pretty much done for me. Every few weeks I'll install and play with a different GSI rom of android 9. The only other thing that is really needed at this point is a way to flash the lk files without Sugar MTK. When that's possible, let me know so I can test it out please. It would be nice to do away with Sugar MTK except for emergencies. Right now unlocked bootloader and root and GSI roms rely on Sugar MTK to get that modified lk file onto the phone. Any questions, just let me know
[Android Q&A, Help & Troubleshooting] LgPWN'd:
I wonder why sugar wasn't working for me....

I'm about to boot to windows and try sugar again....

I'll post back.

Also I'm waiting to see If our friend here ever gets to a pc to test my idea above out...

If you wanted to test it out you can .

love to here your feed back and great work on that cricket rom and your mods to LK..

Speaking of which I contacted you on a telegram about it , but could you share with me how you modified LK to not show the boot-screen nag alert?

I really want to extend that to another device I'm working on same chipset etc...
[Android Q&A, Help & Troubleshooting] LgPWN'd:
I can confirm for what ever reason sugar MTK is once again working here too...

A big old HMMMM?>>>>?
[Android Q&A, Help & Troubleshooting] LgPWN'd:
OK so,

My other device is the alcatel 5059r,

after using sugar to update it to the latest version of android, I find that the bootloader is re-locked the phone is back to STOCK, but

adb reboot bootloader

only results in rebooting the device... NO MORE FASTBOOT...

So to test my theory above I tried it on my device...

And IT WORKED,

Look to later posts for the answer and the fastboot-fix kit

Edit:

cleaned to prevent bricks

fix is on page 23

and ta-da you are now in fastboot and can continue with pizzaG's TUT to get the CricketROM or flash gsi's

[MENTION=5437200]PizzaG[/MENTION]

Here's lookin at you Kid ;)

If this helps you please hit thanks,

also I do so badly need a new P.C so donations are welcome just drop me a direct message i'll tell where to send it

---------- Post added at 01:12 AM ---------- Previous post was at 01:06 AM ----------

[/COLOR [MENTION=5437200]PizzaG[/MENTION]

Hey buddy, Will you test my LK downgrade method from your end?

also, Would you help me patch an LK.bin to remove it's bootloader warning message?

it would be greatly appriciated. thanks
[Android Q&A, Help & Troubleshooting] clcombs262:
Btw your method led to a hard brick
[Android Q&A, Help & Troubleshooting] LgPWN'd:
No way...

Maybe it's the images being pulled from a device.

Maybe use the file that [MENTION=5437200]PizzaG[/MENTION] said to put into sugar

Only rename it lk.bin and try that.

Are u sure u did everything correctly?

A post or 2 back you couldn't get the exploit or the files on your phone because you mis-typed

Are u sure u followed the instructions exactly?

Also.

Should be able to repair with Sugar MTK now that it's working again..

I just did this last night on the 5059r and it was fine.

I'm typing this reply on it now ?

Well I guess More Testing is Needed then.

I tell u what , I'll have another brand new tetra in a few days and I'll prove that this should work for tetra too.

Once that's figured out I'll re-post here my own results.

I can't see where you would end up being bricked by this ... So I'll definitely be re testing this on my end very soon
[Android Q&A, Help & Troubleshooting] LgPWN'd:
[MENTION=5437200]PizzaG[/MENTION]

Hey Bro never mind about the patching LK binary thing...

I just couldn't get it with HxD or bless hex editor, couldn't get IDA pro on linux...

BUT I found a neat program that allowed me to accomplish this anyhow.

It's called Ghidra and it was developed as a software reversing suite by our wonderful government...

Thanks A bunch N.S.A

so now I have my patched LK.bin for my other phone.

also I will look into this thing about the Brick mentioned above...

I don't see how it could brick the device using the proprietary binary files...

Oh well I'll be Modding another for Moogly Mobile with-in the next day or 2 and I'll first flash it with Sugar to make sure it's up-to-date and verify that it can't get fastboot,

then I'll do my method to fix fastboot by replaceing the LK file and see if I end with a brick...

I seriously doubt it'll be a brick.

But the issue may be that we flashed the modded LK.bin to the tetra....

didn't cross my mind that I used PizzaG's LK to remove the boot nag...

and the images I uploaded came from the device that had been modded...

I will get this straightened out and be back to post the updated step-by-step right here...
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Ok so to test my Idea in the fire... I just unboxed a brand new tetra from at&t.

for grins, I did adb reboot bootloader and it went right to fastboot....

SO I'm going to do a regular device upgrade in sugar MTK, then I assume After that I'll be locked out of fastboot and I'll prove this exploit from there...

STAY TUNED

---------- Post added at 01:37 AM ---------- Previous post was at 12:53 AM ----------

ok first try after update/upgrade to latest Firmware does indeed leave me with no way to reboot bootloader but... Now I exploit the phone....

---------- Post added at 01:44 AM ---------- Previous post was at 01:37 AM ----------

and it worked for me... BUT i didn't use the files pulled from the modded device ...

this time I used "U8M8Y0Y0CT00.mbn" from PizzaG's prep package and renamed it to lk.bin

I did it all on windows and I'll zip it up with instructions and upload it as another kit here soonly.

---------- Post added at 01:46 AM ---------- Previous post was at 01:44 AM ----------

here's what i did in the terminal/Powershell

PS D:\alcatel-tetra\unlock-stuff> ls

Directory: D:\alcatel-tetra\unlock-stuff

Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 12/10/2018 10:28 PM 537728 U8M8Y0Y0CT00.mbn
-a---- 6/14/2019 4:33 PM 13649920 alcatel-tetra-5041C-ENG-3.2.3-0.twrp.img
-a---- 6/17/2019 1:46 AM 13658112 alcatel-tetra-5041C-ENG-3.3.1-0.twrp.img
-a---- 6/7/2019 9:49 PM 97792 AdbWinApi.dll
-a---- 6/7/2019 9:49 PM 62976 AdbWinUsbApi.dll
-a---- 6/7/2019 9:49 PM 1334272 fastboot.exe
-a---- 6/7/2019 9:49 PM 1939968 adb.exe
-a---- 1/1/2019 12:00 AM 26036 exploit

PS D:\alcatel-tetra\unlock-stuff> ./adb push U8M8Y0Y0CT00.mbn /data/local/tmp/lk.bin U8M8Y0Y0CT00.mbn: 1 file pushed. 4.3 MB/s (537728 bytes in 0.119s)
PS D:\alcatel-tetra\unlock-stuff> ./adb push exploit /data/local/tmp/exploit exploit: 1 file pushed. 0.4 MB/s (26036 bytes in 0.056s)
PS D:\alcatel-tetra\unlock-stuff> ./adb shell U50A_ATT:/ $ chmod +x /data/local/tmp/exploit
U50A_ATT:/ $ ./data/local/tmp/exploit
New UID/GID: 0/0
U50A_ATT:/ # ls /dev/block/platform/bootdevice/by-name
boot expdb gz1 loader_ext1 md1dsp nvcfg otp preloader_a protect2 seccfg tee1
boot_para flashinfo gz2 loader_ext2 md1img nvdata pad4nvramwp preloader_b recovery simlock tee2
cache fota lk logo metadata nvram para proinfo redbend spmfw userdata
efuse frp lk2 mcupmfw mobile_info odmdtbo persist protect1 sec1 system vendor
U50A_ATT:/ # dd if=/data/local/tmp/lk.bin of=/dev/block/platform/bootdevice/by-name/lk
1050+1 records in
1050+1 records out
537728 bytes (525 K) copied, 0.119169 s, 4.3 M/s
U50A_ATT:/ # reboot bootloader
PS D:\alcatel-tetra\unlock-stuff>
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Ok so my method works.

But we used the wrong file for lk.

Need to use the file from PizzaG's gsi prep package in little kernel downgrade section.

It's U8... something.mbn

Anyhow instead of putting it in sugar.

Rename it to lk.bin and use my exploit method.

No need for sugar mtk any more.

Thanks to [MENTION=9506190]clcombs262[/MENTION]

For blindly testing my method.

And being good enough to come back and post results.

Thanks to [MENTION=5437200]PizzaG[/MENTION] for his prior work on this device, and for the lk downgrade file in his prep package. And the sugar mtk tool so I could recover from hard brick when testing this stuff

Thanks to the developer of the exploit that I still don't wish to name simply for the sake of not getting our hole patched.

I will actually wrap everything up in a small zip file and upload tody when I'm at my desk.

And also go back and scrub the thread a bit and kill links that go to wrong files...

Don't want bricks happening

Also

Warning:

To any who are using my updated TWRP.

It has come to my attention that it doesn't handle backup/restore correctly.

It's formatting system and vendor as f2fs instead of ext4.

I believe I can fix it and will upload a new update in the next day or two.

Cheers
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Alcatel Tetra 5041C Fastboot Fix

Thread {My posts } cleaned ,

All old Links are dead now to prevent any possible brick of devices....

Now we have here a 100% tested and WORKING!!!

method to fix Fastboot for the ones who can't get fastboot to work, And it doesn't need SugarMTK...

I've put together a kit.. assuming most users will be on windows I designed my kit to be a zip file that you extract to desktop,

then left-click and open a Powershell window,

then follow instructions in the kit's ReadME.txt

Here's the fastboot fix kit.

https://drive.google.com/open?id=1JfLzT6F66yBj6Qor_t4P9340CwLz5Y18

Here's the instructions assuming windows....

Instructions from a booted Tetra that has no reboot to fastboot functionality:

Extract this zip.
open the folder location in a terminel/CMD/Powershell window...

enable developers options.> enable OEM unlocking.>enable USB debugging
make sure the drivers are installed for your phone on windows {likely they are }
first get device recognised by adb

./adb devices

accept the prompt on the device.
after this move on

copy paste these commands one by one into terminal...

./adb push exploit /data/local/tmp/exploit

./adb push U8M8Y0Y0CT00.mbn /data/local/tmp/lk.bin

./adb shell

chmod +x /data/local/tmp/exploit

./data/local/tmp/exploit

Wait for it to say new UID 0

should now see # instead of $ in the prompt...

then type this command

dd if=/data/local/tmp/lk.bin of=/dev/block/platform/bootdevice/by-name/lk

after that completes type this...

reboot bootloader

Now you should see the fastboot prompt...
ENJOY

LgPWN'd @XDA.com

Thanks-Credits
PizzaG@xda.com for the LK downgrade file , all the work he's done so far and for SugarMTK to fix the bricks.

Thanks to clcombs262@xda.com
For blindly testing my method.
And being good enough to come back and post results.

instructions for linux are the same except,

remove the

./

from each adb command...

I will Post Updated TWRP here soon as I fix the make file...

Stay tuned for update for TWRP.

As always,

If this helps hit thanks,

and donations are welcomed

Cheers

Update:

you can grab the latest versions of the exploit file which is just mtk-su but use the arm32 bit version.

Get that here:

https://xdaforums.com/android/development/amazing-temp-root-mediatek-armv8-t3922213

Thanks to [MENTION=8132642]diplomatic[/MENTION] for his awesome work

Over there all can grab the latest release.

Rename it to exploit for my instructions to work.

Or adapt your commands to use (mtk-su) instead of (exploit)
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Updated New Release TWRP 3.3.1-0

Known Bugs:

Well I still haven't gotten the adb or mtp functions working correctly.

I wish for Kernel sources for this device.... :(

Working and Tested:

Back-up / Restore

Filemanager

Terminal

Themes

Flash zips

Flash images {added options to flash System,Vendor,Boot,or Recovery images} to make better for GSI use

NOT-Even-Tested {you tell me} :

Adb sideload

Here's the Freshest download Link:

https://drive.google.com/open?id=1B93vpB9gKgz2IralQhP9oaaJ2aE-X3OQ

;) Don't forget the thanks button ;)

also I build twrp from latest sources for other devices so PM me if you need TWRP for a non supported device.

I do accept donations, trying to raise enough funding for a new linux box with 32GB of ram and an i7 CPU

so that I can build complete roms and compile new binaries from source.

anyone wants to donate PM me.

Enjoy

[MENTION=5437200]PizzaG[/MENTION]
[MENTION=9506190]clcombs262[/MENTION]
[Android Q&A, Help & Troubleshooting] clcombs262:
Can you adapt this to work with SP flash tool? If you remember I'm hard bricked and can't boot. When I plug it in, though, it recognized as MT65xx preloader
[Android Q&A, Help & Troubleshooting] clcombs262:
And oh btw do you have telegram?
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Brick-Fix

and Why Are you not using SugarMTK to fix the brick?

I did what you did and it bricked me but SugarMTK was able to fix it right up....

About flash-tool

I have dissected Sugar and it's basically flash-tool written for specific devices...

so I'll try to get a read back from flash-tool,

and If i manage that, I can easily build a full ROM for flash-tool.

but I recommend just using sugarMTK if possible to un-brick for now...

I bet your like me and on Linux huh?

and don't have windows ? I dual/boot

well if that's the case let me know and I'll try to help you out asap.

don't want my good tester left hanging ;)

Also the GSI-prep package from [MENTION=5437200]PizzaG[/MENTION] needs updated.

the Firmware updated in sugarMTK so now the file in the littlekernel downgrade pack

named :

U8M8Y0Y0CT00.mbn

needs to be re-named to :

U8MA6060CT00.mbn

for his TuT to work correctly...

Just a heads up.

also a note that the file to be replaced is in a folder in /install location /bin/---Some numbers and letters here---/

would have been nice too...
[Android Q&A, Help & Troubleshooting] clcombs262:
I don't currently have access to any pc I can install things on

I'm getting a PC hopefully next Wednesday so I'll try to unbrick then

I've added you as a contact on telegram. I'm [MENTION=5702612]Inl[/MENTION]_colbycdev
[Android Q&A, Help & Troubleshooting] clcombs262:
Using this file I was able to gain a root shell with adb

Had to push to /sdcard then use adb shell to copy to /data/local/tmp because just pushing to /data/local/tmp results in permission denied
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Can't install?

Well I guess you can use the Spflashtools as a portable package on windows right?

Bro I can zip-up Sugar MTK so you can run it out of it's own folder too and upload somewhere for you if that helps...

basically I'd copy it's whole install folder from my p.c and then zip it up...

you download it and click the tool .exe in the install folder and it should run...

I mean it's worth a try.

let me know if you wanna try that.

Thanks for being such a good sport about testing my development work here...

oh and as for telegram...

if you added me it'll make it simple for me if you just say hi in a short text message on there...

I don't use telegram very much...

---------- Post added at 09:45 PM ---------- Previous post was at 09:43 PM ----------

and for flash tool,

it's going to require a day or so of reverseing the AUTH file from SugarMTK to get it working on flash tool...

got an idea just out of time at the moment.
[Android Q&A, Help & Troubleshooting] clcombs262:
Ok I'll message you on tg in a few minutes
[Android Q&A, Help & Troubleshooting] LgPWN'd:
Please clean this up

Deleted
[Android Q&A, Help & Troubleshooting] diplomatic:
Nice! Glad to hear it. :good:

Well, nice of you to drop me a note about mtk-su's success on the Alcatel Tetra 5041C. :rolleyes:

Avoiding discussion of the "exploit" and who opened this backdoor on your device is pretty asinine, since the original thread is already out there in the open. It lists several Alcatel models, and now includes this one. Any concerned researcher/developer would find it in less than a minute. In any case, here's a link to the original thread where everyone can download the latest version. No need to use 3rd party mirrors. Feedback is welcome!

Amazing Temp Root for MediaTek ARMv8 by [MENTION=8132642]diplomatic[/MENTION]​