[GUIDE] Getting started with the Epic 4G. Everything you (probably) need to know. - Epic 4G Android Development

Purpose:
To get from a retail phone to custom ROM in one sitting. (My phone came with DG27 version of the OS on it, for the record.)
DISCLAIMER:
NO PORTION OF THIS GUIDE IS INTENDED FOR USE IN ANY WAY SHAPE OR FORM. NO CLAIMS OF FITNESS ARE MADE REGARDING ITS SAFETY OR USABILITY. IF YOU FOLLOW THIS GUIDE YOUR WARRANTY WILL BE VOID, YOUR PHONE WILL BREAK, YOU PROBABLY WONT BE ABLE TO READ GOOD AND ANY CHANCE AT HAPPINESS IN LIFE WILL LEAVE YOU. DO NOT USE THIS GUIDE, IT IS ABSOLUTELY INTENDED FOR EXPERIMENTAL AND EDUCATIONAL PURPOSE ONLY. I AM NOT RESPONSIBLE IF YOU IGNORE THIS WARNING AND PROCEED TO FOLLOW THE STEPS OUTLINED WITHIN.
Assumptions:
You know what ADB is, and you have it installed and a basic idea of how to use it.
You know how to install drivers, copy things to the SD Card, the basics. I came from the Evo where I had a LOT of experience, this is basically my jumpstart guide for anyone who "gets it".
What You Need:
Drivers:
32-bit: http://download2us.softpedia.com/dl.../SAMSUNG_USB_Driver_for_Mobile_Phones_x86.exe
64-bit: http://download2us.softpedia.com/dl...93/drivers/others/usb_drivers_GalaxyS_x64.zip
*Note: You can use whatever ROM/kernel you want, this is just the first one I tried, the steps are not really any different.*
Andromeda ROM: http://www.sdx-downloads.com/devs/noobnl/noobnl.andromeda.galaxy.rom.v1.1.1a.zip
Andromeda Kernel: http://forum.xda-developers.com/showthread.php?t=775110
Odin: http://www.sdx-downloads.com/devs/noobnl/Odin3epicv1.3.rar
DI18 Update: http://www.multiupload.com/X9AB1U56JV
PIT File: http://rapidshare.com/files/416399391/s1_odin_20100512.pit
Clockwork Recovery: http://www.sdx-downloads.com/devs/noobnl/one.click.clockworkmod2.5.1.0-flasher-fixed.zip
Steps:
Updating to DI18:
Make sure the phone is unplugged and powered off.
Slide out the keyboard and press and hold "1".
Press the power button.
After a moment the phone should say its in Download Mode (or Downloading).
Launch Odin.
Plug in phone.
It should come up in Odin (doesn't matter what it says as long as it says something, most likely at this point you will need to install drivers, do that, unplug phone, plug it back in, should come up in Odin now).
Select the PIT file on the right hand side in the appropriate section.
Select the .tar.md5 DI18 update image in the PDA section. Uncheck everything on the left EXCEPT "Auto Reboot", hit Start.
Phone will reboot when it is complete, DI18 should be installed, no root.
Installing ClockWork Recovery:
Go into Settings->Applications and enable USB debugging.
If you are on Windows 7 hit Start, type CMD, right click on cmd.exe when it comes up and select Run as Administrator.
Navigate to where you extracted one.click.clockworkmod2.5.1.0-flasher.zip
Type "run-try-last.bat" and hit enter (try to keep your screen awake, this only caused me a problem once and I'm not sure why, but, just do it).
It will come up with a prompt saying press any key to continue, hit a key and it will say something about rebooting ADB, just keep the phone screen on and let it do it's thing, after a bit you will see it copy a few files and do some stuff then the phone should reboot and the prompt will say "waiting 60 seconds", when the phone comes back up keep the screen on (you can check the setting to do this for you when you enable USB debugging btw).
After, ohhhh, about 60 seconds (who knew) the command prompt will change and say a few more things, and then "done".
Flashing Andromeda ROM and Kernel:
Copy the Andromeda ROM and Kernel to the root of your SDCard now, safely remove the device (should be an icon in your notification tray in windows).
Power off the phone. Hold Vol. Down, Camera button (on bottom right edge of the phone) and power. Unlike, say, the Evo you have to HOLD all three until you see the Samsung screen. After this you should be in Clockwork.
Do your nandroid backup, wipe your cache, wipe data (don't think it's strictly needed but, at this point your phone shouldn't have anything on it worth keeping anyway).
Now flash Andromeda ROM, then Andromeda kernel.
Reboot system now.
Done. Should have root, superuser, clockwork, Andromeda ROM and Kernel, and life should be good!
Citation:
Everyone here. Seriously, if you see a thread with [GUIDE], [ROM], [KERNEL], [PROJ] or just about anything else in []'s odds are the author and at least one person in that thread gave information that is contained within this guide.
NONE of this is my doing. This is just my attempt to streamline and collect in one place everything the average Android user needs to get up to date and well on their way.
Remember, this place, and it's users (you), are what makes it so awesome!
If anyone has any updates, tweaks, suggestions of corrections please feel free to post them and I will update the post as soon as I can.
Thanks again for all the help!

alcaron said:
DISCLAIMER:
NO PORTION OF THIS GUIDE IS INTENDED FOR USE IN ANY WAY SHAPE OR FORM.
NO CLAIMS OF FITNESS ARE MADE REGARDING ITS SAFETY OR USABILITY.
IF YOU FOLLOW THIS GUIDE YOU PROBABLY WONT BE ABLE TO READ GOOD AND ANY CHANCE AT HAPPINESS IN LIFE WILL LEAVE YOU.
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Hahaha that picture is awesome.

Related

[Q] Root or restore after Flash?

I did the wrong thing and assumed my phone was still rooted after using t-mobile's upgrade from froyo to gingerbread.
I flashed my phone and now I am stuck on the manual mode screen. I assume (oh boy) I cannot place a custom rom since my phone wasn't rooted and therefore doesn't have permission to write to the phone. (I can't flash bootloaders)
At this point my data on phone is trashed I am sure, but I do have the contents of my sd card intact. I didn't backup before I started - hijole! I know.
I am not sure if I can use Super one click to root and continue to install a custom rom, or I should go back to base line and restore to original. Problem is I don't know how to goto the original at this point, and I don't know if super one click will work with my phone at its current state.... Argh! Will post pic of screen when I go to lunch today... Thought i had it with me on my iPhone. I assume to much!
Can you be more specific on the manual mode screen and what it looks like? Just to clarify, when you flashed from Froyo to GB (using Kies Mini, I assume) you did lose root. However, that does not prevent you from flashing a custom ROM. You can use ODIN or Heimdall to flash a ROM, then use one of those again to flash a kernel with root, with CWM, with voodoo lagfix, all of the above, or use SuperOneClick (the latest) to root it.
I'm guessing you might be able to get into download mode which means you could ODIN RaverX3X's 2.3.6 Stock (http://forum.xda-developers.com/showthread.php?t=1353176) which is the Kies Mini official update just repackaged for ODIN. That will get you onto stock 2.3.6. From there you have options
I am supplying a pic of the "Manual Mode" I was referring to, and yes I did originally use Kies to upgrade from Froyo to GB. Again thanks for the info:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So it won't show since I am new to this forum
NEVERMIND, found the upload feature in this forum
djlalorocks said:
So it won't show since I am new to this forum
NEVERMIND, found the upload feature in this forum
Click to expand...
Click to collapse
Sweet, so you have it working?
I think he says is stuck on that screen.
Do a battery pull on your device to turn it off, then put it back in. To put it into download mode for odin, hold volume up+down while plugging your phone into your pc. Then use odin to flash.
Sent from my SGH-T959V using XDA App
The problem he initially had is the rainbow screen and, although he can get into download mode, he's been unable to get his computer to see the phone. Thus he couldn't use ODIN to re-flash a good ROM.
djlalorocks, can you verify the state of the phone now? The screenshot you gave, by the way, is the CWM recovery screen. If we can get a good CWM-based ROM onto your SD card then you could flash from there.
Do you have an SD card reader for your computer you can use? I know the phone's not working in mass storage so that option is out.
Edit: My apologies; I went back and re-read what you wrote. When I saw that you found the upload feature I thought you meant you got a ROM to upload to the phone. I didn't realize you meant the picture of the screen. I'm slow sometimes
Haven't had a chance to work on it... I am on a mac, and yes I can place files onto a sd. My windows computer is having usb driver issues.
djlalorocks said:
Haven't had a chance to work on it... I am on a mac, and yes I can place files onto a sd. My windows computer is having usb driver issues.
Click to expand...
Click to collapse
Heimdall (open source alternative to ODIN) works on the MAC, I believe. Regardless, if you can download Raver's Kj6-Rom-CWM-Offical-GB-2.3.6, put it on the SD card, go into the recovery screen (the one where you made the screen shot), use the volume down key to scroll to "install zip from sdcard", press the power button to select it, then select "choose zip from sdcard", scroll to where you put the file mentioned above, select it with the power button, then scroll to "Yes - Install sgs4g-OfficialGB2.3.6.zip" and select it.

[Q] I BRICKED my rotted GS2 Epic Touch when using ROM Man. FROZEN on Syst Recovery

I'll gladly donate to the person(s) who resolves, or helps me to resolve this problem. History: The title says it all... 2 weeks ago I rooted my Galaxy S2 Epic 4G TouchEL29 710 Gingerbread from Sprint. This is the second rooted phone I've owned, however the first phone in which I've rooted myself. It took many frusturating hrs to get it right. People don't understand that just because THEY know what they're talking about, I certainly had NO idea as I've never done it before and don't know terms and where to get downloads without correct links. Before I screwed up today I actually rooted a friend's Galaxy S Nexus! Weehoo for me I'm so smart I'll just go an extra step with my own phone today which brings me to...
Problem now: Today I decided to flash a custom ROM. MIUI I believe. I downloaded ROM Manager (I had it on my EVO 4G and it worked well) and as soon as it booted back up it LOCKED. I think I did what ALL first timers are terrified of doing. I bricked my phone. It's STUCK on the Android System Recovery <3e> screen. It has a white triangle in a black background with a yellow ! inside. Under it in red letters it says E: update file is backed up: Reportedted (spelled just like that) under that in yellow it says # MANUAL MODE# --Updating application...
Installing Apks.
Successfully updated application
On the top where it says Enter OK for reboot system now, apply update from sdcared, wipe data/fac reset and wipe cache partition I can scroll through those, but when I choose an option and click the "enter" key, nothing happens, it just stays frozen as though I've done nothing. I took my battery out several times and it goes directly back to this screen upon putting the battery back.
I've spent hours pouring over these (and other) forums and find questions similar to mine, but not exactly. I can get into downloading mode by holding the volume and the on button together. A lot of good it does when I don't know what to download.
I didn't mean to overfill everyone with so much information, but I think in order to get the answers I need, I need everyone to know what I have here. Again, my phone is bricked up. I can't do anything on it. My phone is very important to my job and daily life as I'm certain it is to many people. I shouldn't have been messing with stuff when I don't know what I'm doing, but now I'm relying on other people's kindness and knowledge to get me out of the mess I made. Thank you to everyone who tries helping and as I said before, I will gladly donate a bit of money for your time and wisdom if you're able to help me.
Sarah MN
Hey Sarah, I see you're a new member. In the top right corner of the site, there's a search box that says "Find your device". Type in "Epic 4G Touch" and you'll be able to see all of the sub-forums for your device. Normally, you're supposed to post a question like this in the "Questions & Answers" section, but I'll answer it for you anyways:
Here's what you'll need to flash your phone back to stock:
1. Relax, breathe. All is not lost, I promise you!
2. Download this. It will literally put your phone back to stock EL29 with root (latest Sprint OTA) with one click. Here's a video on how to do it if you're nervous: http://www.youtube.com/watch?v=v7pWjmKCsoc
3. Put your phone in download mode by holding Volume Up and Power when turning on your phone. Hit "Yes" (Volume Up) when you get the warning.
4. Plug your phone into your computer. Your phone should show up in ODIN and the program should look like this after you hit start:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As long as u can get into download mode, all is well.
-download Odin on ur computer
-find a stock rom for the epic touch
( hotfile.com/dl/138745617/0615e1c/SPH-D710_SPR_1_20111228163442.zip.html )
-unzip the rom.
-open Odin and fill the fields with the unzipped files. See the file names, and then select appropriately
Phone = xxxx_phone.tar or
Xxxxx_modem.tar
csc = xxxxxxxx_csc.tar
I'm not sure which tar files are present in the above link. If u download and unzip them, you'll be able to figure it out, just as how phone field is xxxxx_phone.tar. if not, just pm me or post it here
Once u fill the fields, put ur phone in download mode and connect it to the computer. Odin will detect ur phone and show a yellow box. Start the process and wait 5-6 minutes till u see a green box saying pass.
This will give u a stock rom, causing u to lose root access. you will have to reroot
All u had to do was go to the reboot option press the volume up then volume down then volume up and volume down and it should start working
Sent from my SPH-D710 using xda app-developers app

[TUTORIAL][UNLOCKED BOOTLOADER][STOCK] Apply root-level mods without root

Hi, I'm not fairly new to this forum but I silent read from a long time ago and now I decided to share something I found.
Let's say you're tired with rooting and xposed as some apps refuses to run upon detection of either or both of those, and custom ROMs out there didn't float your boat, you decided to return to the stock. No recoveries, just a plain stock. But you need that SystemUI with netmeter, or you're too lazy to re-log in 6 different Twitter accounts onto the Twitter app you've previously backed up using TitaniumBackup or similar.
Without any words let me start:
What you need:
Obviously an unlocked bootloader since we will flash a recovery, and locked ones can't do so.
Any custom recovery, either CWM or TWRP that's fine. Don't worry about its compatibility with the stock, as it'll be wiped again (if you want)
Flashtool, it already includes fastboot for flashing stuffs, otherwise why is this called Flashtool?
Your current FTF file
OPTIONAL : AromaFM if your mods isn't a flashable zip
For TWRP you can also use its built-in file manager
Steps:
Download and set up Flashtool
After installation there will be some folders like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
Install the drivers located in the Drivers folder, place your current firmware's FTF file to the firmwares folder, and for convenience, place your recovery in the x10flasher_lib folder, and rename it to something short and easy, like rec.img or similar.
Put your mods in the phone's storage/sdcard (and also your aromafm if you choose to use it).
Turn off your phone.
Open up Command Prompt (or console window of your choice, if you're not on Windows), and navigate to the flashtool/x10flasher_lib folder.
Run this on your console:
Code:
fastboot flash boot rec.img
change rec.img to your recovery's filename.
Plug in your phone with a USB cable while holding volume + button.
When done, plug it out and boot to your recovery by powering it on and pressing volume - button when the illumination bar lights up (depends on your recovery).
Apply your mods (flash mods, replace system files, remove bloatware etc.).
You may skip steps below if you change your mind to having a (compatible) custom recovery
When done turn off your phone again.
Open up your Flashtool, if asked for admin rights just say yes.
Click the bolt icon above the window, leave the Flashmode selected, and click OK
find your firmware, select it but don't flash it yet. Uncheck/check these options, you don't want to wipe your data, right?
Click to expand...
Click to collapse
Now press the flash button, located on the bottom-right of the window. When a window pops out (instructions to connect your phone while holding the back button), connect your phone with the Volume - pressed.
Wait the flash to finish, and unplug your phone.
Now you have your mods back and your app datas restored 'without root'~!
NOTE: I've done this on my Xperia E, for other phones I can't yet verify if this method works, so if anyone is interested to try this out go ahead and don't forget to report it back to me whether it's worked or not~

Boot Loop / Checksum Error when trying to root (Umidigi A7 Pro).

Spoiler: Phone Data:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi Guys,
I'm super new to the whole topic and am only doing this because I have a spare smartphone and wanted to learn something.
The bootloader is unlocked.
The USB drivers are installed on the PC.
USB Debugging is turned on.
Smartphone states "Orange State [...]" while booting.
Then I tried to extract the boot.img via the "MTK Droid Root & Tools v2.5.3" to flash this later with Magisk. But here I got the following error message:
Spoiler: MTK Error
The same messages have been there before I did anything on the smartphone for the first time.
From DE to ENG:
--->>> Connect to device <<<---
--- ERROR: --- TotalBytesPerChunk Not Found. Set default Page/Spare=2048/64 !!!--- unknown ROM structure, backup NOT possible!ATTENTION! a file (/system/recovery-from-boot.p) which restores the stock recovery in case of normal phone startup was found!
So I flashed a stock rom here from
Spoiler: link
Umidigi A7 Pro Stock Firmware ROM (Flash File)
Download Official Umidigi A7 Pro Firmware (original flash file) without any password for Free. We also provide the Stock Rom for other Umidigi devices.
xdafirmware.com
to the phone via the SP Flash Tool (because I did something that enabled the first Boot Loop), the phone restarts in factory state succesfully, I set it up once and then installed Magisk, and using Magisk patched the boot.img of the from I downloaded.
However, when I now want to flash it via the flash tool, this error message appears:
Spoiler: Flash Tool Error
And suddenly I am in boot loop. As soon as I flash the original boot.img, the phone starts as usual.
I have also tried the whole thing via TWRP, and as soon as I install Magisk.zip via the TWRP the boot loop angers me again. Also MTK still shows the same error.
Spoiler: I have followed the following instructions:
Main Guide: https://www.getdroidtips.com/root-umidigi-a7-pro/
Helping Video:
Spoiler: Magisk log
I'm happy about anything that helps me out getting this phone rooted
Sorry my friend that noone has yet to have replied to your inquiry here. Ill do my best to give you some of the knowledge I have when it comes to setting you in the right direction without failure next time. Today and for the last month or so I have been working hard with the Umidigi a7 pro 64gb. To be clear are you making sure to flash the magisk zip file of the boot.img file that you saved from the stock firmware. You shouldn't have to fiddle around with to many of the settings just when you do flash the patched file you have to make sure to uncheck everything other then boot.img patched file. I am very new to this as well and honestly it's a tricky process to get it ever done right on your first attempt. You seem to have and know enough knowledge on this topic. MTK is a finnacky processor. I myself have yet to get this device fully rooted yet. The issue I myself have is my PC is not properly updating the MTK and other drivers to make the magic happen which I think I am just going to have to get my other dell going again to try on a fresh PC that I just set up again for this exact thing. To my most recent knowledge though when it comes to the Umidigi a7 pro you have to follow each and every step closely and to a exact precise t or the whole operation will fail every time you try. Are you using your micro SD card to it's full potential and making sure that you saved the patched file properly. You also have to watch for corrupt files when it comes to this kind of thing. But you know enough to just trust the pages you are downloading your files from and make sure everything is signed and legit. Another thing is what seemed to help me is removing SP flash tool completely from my PC. Then re downloading it and starting from scratch by flashing your stock scatter file and I find when flashing hold the power button when it starts for just a few seconds only some people think to keep holding the power button through the entire flash process but to my knowledge what has worked from a noobs perspective is hold power for just a few seconds until the full load of the red bar comes and then when it goes away you can let go of power button and it will continue on with the rest of the manual installment process. There are a lot of high technical highs and lowes when it comes to what you can do here and from the info I've gotten MTK devices weren't really meant to be able to withstand even being remotely compatible devices for root. Honestly let me know how things are going lately for you as I know this post is a bit old. I myself have came close to periodically throwing this phone as far out of the window as it can reach, I'm not a quitter by any means and still today and even right now m working on that to try to help others in any way i possibly can and today I will get this device into full root accesss.

"Alcatel A30 Fierce" ROOTED/On-Going

Hello, I'm new to this- all of it, I've only just recently got into rooting and such things, but I'm progressing and that's what matters, no?
Anyway, I've successfully managed to root this phone via Magisk, that no one probably cares for anymore through trial and error and I'll do my very best to explain my method, and give updates as this is very on-going, there are certain issues and things I need to work out, but I appreciate any help, pointers, and such as before mentioned, I am new.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ALCATEL A30 FIERCE - Specs, and Specifications.
This phone was released in August, 2017.
Display - 5.5inches, 1280 x 720
Camera - 13 MP (Single Camera)
Hardware - MediaTek, 2GB RAM
Storage - 32GB, microSDXC
Battery - 3000mAh
OS - Android 7.0 Nougat
My own notes about this device.
Lots of MetroPCS Bloatware, can be a bit janky, but it's manageable.
It does not have a traditionally accessed Bootloader, no "adb reboot bootloader", this command just restarts the device to system.
Fastboot is odd, I managed to access Fastboot by some way I don't entirely understand, I'll go about what I did to get there later on in this post and try to recreate it later on as this post updates.
This device has colour states (if that's commonology), meaning, once the Bootloader is "unlocked", you will get an "Orange State" message before starting your phone that gets in the way of some things, I have yet to fix this, but I imagine we will if this gains traction, there will be a quicker fix!
No TWRP yet, as of posting, flashing a ported twrp.img through MTK_TWRP, or the TWRP_Port has not worked, and after flashing, neither will flashing the stock recovery but I've a quickfire way of getting around to fix this, if I can.
MTKCLIENT - https://github.com/bkerler/mtkclient
My Process, in the system, press the build number seven times to enable developer options - enable OEM Unlocking.
Then enable USB Debugging, and make sure you've installed adb and fastboot, as well as the correct drivers.
Through that link, follow the instructions specific to your operating system (I use POP OS and WINDOWS 11, YOU DON'T HAVE TO USE THE SAME AS ME), you may use the mtkclient_gui for an easier experience.
To unlock the bootloader, which will trigger "Orange State", open your terminal in the directory of the mtkclient and run python "mtk e metadata,userdata,md_udc", then, with your powered off device, and it will say something along the lines of "Preloader - Waiting for Device", with your USB Cable, and your wits about you, hold the volume down button (if this doesn't work for you, hold both volume buttons in" and plug your device into your PC with that command running. If the command completes, then run "python mtk da seccfg unlock", and this will unlock your bootloader.
WARNING: Unlocking the bootloader wipes the data of your device!
After this, dump your boot vbmeta with the commands in the mtkclient instructions, if this does not work for you with python or python3, I will provide the required files below.
Then, power your device back up, and install the patched magisk-app and push it to your sd card through adb, or traditional file transfer.
If you have your boot.img, push it to your sd card and patch it with magisk, then retrieve it from your phone - this is where my tutorial and mtk's tutorial take a bit of a turn!
I had a problem with the "reconnecting to preloader" phase, as it would not go through, or an error labeled [Unpack Requires A Buffer Of 12 Bytes] would crop up which prevented me from flashing the required files through "python mtk w boot,vbmeta boot.patched,vbmeta.img.empty". Let's go through some cautionary steps, what I did to achieve perma-root.
Create a funny-named file in the mtkclient directory labeled "DUMPY", do "python/python3 mtk_gui" and connect your powered off phone through the previously mentioned volume holding until it connects you in BROM mode. Under "read partitions", select all partitions, then "read partitions" and make sure the output is that "DUMPY" folder. This process will take awhile!
Once it finishes, rename your patched magisk-boot from [magisk.img name] to "boot.patched.bin" and under "write partitions", select the boot partition and write the boot.patched.bin to the boot partition! Once finished, start your device and install a root checker! It should be working!
If there are any errors, I will do my best to try and help you but keep in mind, I am very new to this, I hope it works for you too!

Categories

Resources