[GUIDE/TUTORIAL] Asus Transformer Pad TF300T Any version to Android 7.1 Nougat - Transformer TF300T General

[GUIDE/TUTORIAL/HOWTO] Asus Transformer Pad TF300T Stock to Android 7.1 Nougat with 2022 Bootloader unlock
This detailed step-by-step guide helps you transform your Asus Transformer Pad TF300T with Android 4.2.1 to a powerful one with Android 7.1 Nougat.
Don't expect Android 8 or newer on this tab, but 7.1 is already perfect ;-)
Netflix and Disney+ work.
This worked for me only with USB 2.
### I'll make a few notes using this style: PLEASE READ THEM.
Make sure you have latest official updates.
Connect tab to Wifi network.
Go to Settings > About > Update.
You may have to restart tab and do this step again to correctly fetch latest official update.
To check your tab is the correct model, go to Settings > About tablet. The details below are listed :
• Android 4.2.1 (Jelly Bean, versions from 4.1 to 4.3.1)
• GPS 7.9.11
• Wi-Fi 7.1.1.50
• BT 10.38
• Camera TF300T-000128
• Kernel 3.1.10*
• Build number
Tap 7 times on this item to unlock the developer options menu.
We need it later
It looks like J0P40D.WW_epad-10.6.1.27.5-20130902
################# TO GO FURTHER, your BOOTLOADER version MUST END IN 27.1 or 27.5 (27.5 in my case).
### If not: reboot tab and check again for system updates
### If it still not 27.1 or 27.5, go straight to the EXTRA part of this tutorial.
CHANGELOG
v14. Unlock bootloader in 2022
v13. Improved readability + Magisk v23
v12. Magisk 22.1 + minor tuto fixes
v11. Magisk 21, TWRP recovery 3.4, 14 wifi channels.
v10. Dropped SuperSU for Magisk, small tutorial improvements, Timduru ROM v39
v9. Timduru v38 and TWRP 3.3.1-0, updated pack
v8. Timduru v35 and better OpenGapps link
v7. Refresh pack v3 with ROM v32 and TWRP recovery 3.2.3-0
v6. Google Play certification + TWRP 3.2.1-0 (in new pack), Katkiss v29
v5. djibe pack v2 for shorter tutorial (now includes both UnLock_Device_App_V8 and V7)
+ STOP FORCING GPU RENDERING (slow down tab so much)
v4. Upgraded to Nougatella build25 and TWRP recovery official 3.1.1-0
v3. Details for manual update of bootloader
v2. Moved to Android 7.1 Nougat, recovery TWRP 3.1.0-0
v1. Initial release
0) BACKUP YOUR DATA
Backup SMS, photos, contacts before going any further (ex: use the backupyourmobile app).
Check that backup is located on microSD card. Then copy the backup on your PC.
1) DOWNLOAD
- djibe Transformer Pad TF300T pack v3: https://www.androidfilehost.com/?fid=17825722713688260169 or https://anonfiles.com/o2ydE3v9zf/djibe_Transformer_Pad_TF300T_pack_v3_zip
(contains Windows MTP drivers + ADB & fastboot drivers + Asus UnLock_Device_App_V7_update.apk + DMclient.apk for TF300T + ESFileExplorer 4.0.4 + KingoRoot 4.4.3.apk + official TWRP recovery 3.4.0-0 + Magisk root).
### Use Incognito web browser mode if needed to download pack.
Unzip pack on Windows desktop.
+ ROM KatKiss Android Nougat 7.1 (v39): https://forum.xda-developers.com/transformer-tf300t/development/rom-t3453702
Download latest build: https://downloads.timduru.org/android/tf300t/K.A.T/KatKiss/7.x/dev/ or https://www.androidfilehost.com/?fid=17825722713688257428
Thanks to @timduru for his perfect ROMs dedicated to Transformer tabs.
+ OpenGapps ARM 7.1 Pico (Pico Pico Pico only !): https://opengapps.org/?arch=arm&api=7.1&variant=pico
+ Mitmproxy Windows Installer v7.0.0: https://mitmproxy.org/
+ microSD card (FAT32 format), copy the zip files from Katkiss ROM, OpenGapps, Magisk.zip.
### If later on you have errors flashing ROM, GAPPS, MAGISK, try to use another freshly formated microSD (FAT32 partition format).
Then insert it in the tab.
2) INSTALL WINDOWS DRIVERS FOR ASUS TRANSFORMER PAD TF300T
- In Android, go to Settings > About tablet.
Tap 7 times on "Build number", a message says Developer menu is unlocked.
Go to Settings > Developer Menu > check USB debugging ON.
- Windows 8/10 :
On keyboard, type combo : "Windows key + R"
In the Windows Command Prompt, type :
Code:
shutdown -o -r -t 0
it opens Windows Recovery menu:
Go to Troubleshoot > Advanced Options > Startup settings > Restart
At reboot, hit 7 (Disable driver control).
Go to folder /Universal Naked Drivers 0.72 you unziped at start on your Desktop.
Select file android_apxusb.inf > Right click > Install.
Force driver install and wait until a success message prompts (it may never come Nevermind).
Repeat operation with android_winusb.inf .
You can plug tab in USB for driver install completion.
### Not working ? Run the CMD has administrator and write this command :
Code:
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 c:\...\android_winusb.inf
### c:\...\android_winusb.inf being the path to each .inf file. Repeat for each .inf file.
when finished driver installation, reboot PC as usual.
Tab should normaly be seen in Windows explorer as ASUS Transformer Pad TF300.
Make sure MTP file transfer protocol is active on the tablet.
3) ROOT TF300T
Thanks to @d.l.i.w and @GloGlorius, it works in 2022 !
Tablet must be fully charged.
In Android, go to Settings > Security > switch Unknown Sources ON.
Connect tablet to PC.
Copy Kingoroot 4.4.3.apk, ESFileExplorer.apk, DMClient.apk and UnLock_App_V7_update.apk to tablet.
Connect tablet your Wi-Fi network.
Windows connection to Wi-Fi network must be Private (https://support.microsoft.com/en-us...-windows-0460117d-8d3e-a7ac-f003-7a0da607448d),
On the right side of the taskbar, select the Wi-Fi network icon.
Under the name of the Wi-Fi network that you’re connected to, select Properties.
Under Network profile, select Private.
Using File Manager app, install kingo-root-4-4-3.apk and other apps stated above
Launch KingoRoot app.
Tap on One Click Root button.
Wait until ROOT SUCCEEDED is displayed.
Quit app.
### If root fails: wipe data/factory reset and use KingoRoot software for Windows.
4) UNLOCK SYSTEM FILES
Uninstall any installed Unlock App.
Launch ESFileExplorer app.
Tap on top left Hamburger icon to reveal menu > Tools > switch Root Explorer ON.
Kingoroot pops up: Request for root permission, tap on Allow.
Still within ESFileExplorer, go back to Menu > Local > 0.
Long press on DMClient.apk > Copy
Back to Menu > Local > Device > system > app > Paste > Overwrite.
Long press on DMClient.apk > More > Properties > Permissions: Change
Check on as follows:
Owner: Read + Write
Group: Read
Other: Read and confirm with OK
Long press on DMClient.odex > Rename > DMClient.odex.backup
Repeat the same process for UnLock_App_V7_update.apk.
Then restart tablet.
5) SETUP MITMPROXY
Back to computer.
Install Mitmproxy for Windows v5.0 (or 7.0.0) (thx to @Trigve and @Space Gate).
If using PC with Wi-Fi, it must be set as a Private network (see above).
Tablet and computer must be connected to the same router/box.
Find local IP:
- For Wi-Fi connection
Select Start > Settings > Network & internet > Wi-Fi and then select the Wi-Fi network you're connected to.
Under Properties, look for your IP address listed next to IPv4 address.
- For Ethernet connection
Select Start > Settings > Network & internet > Ethernet.
Under Properties, look for your IP address listed next to IPv4 address.
From Windows Start Menu, start mitmweb and grant network access.
Default web browser opens with GUI with url: http://127.0.0.1:8081/#/flows
Go to Options > check Display Event log and click Edit Options.
Scroll down to edit following options:
- block_global: unchecked
- showhost: checked
- ssl_insecure: checked
- tls_version_client_min: UNBOUNDED selected
- tls_version_server_min: UNBOUNDED selected
6) Transformer Pad TF300T BOOTLOADER UNLOCK
Back to tablet.
Go to Settings > Security > Screen lock > PIN.
Set 0000 and retype it on next screen.
Go to Settings > Wi-Fi, long press on local Wi-Fi network > Modify network
Check Show advanced options > Proxy settings > Manual
Proxy hostname: local ip of PC (see Step 5)
Proxy port: 8080
> Save
Disconnect and reconnect to Wi-Fi.
On tablet, launch stock Browser app.
Browse on tablet to mitm.it
Scroll down to download "Android certificate".
Set name: cert > OK, message tells: "cert installed"
Start Unlock Device Tool app.
Scroll down to agree to End User License Agreement.
Check I have read and... and tap on OK.
Check Agree and Press to unlock your device button.
Enter your PIN: 0000 and tap OK
Yipeeeeeeeeeee
After reboot , "The Device is UnLocked" is written on top left screen during boot logo.
Decrypt partitions: go to Settings > Security > Clear Credentials
7) FLASH TWRP 3.4 RECOVERY
Charge tab to 100% before continuing.
Start it in bootloader mode: hold Power + Volume- until you see 3 icons and release buttons.
Connect it to PC.
Open a Windows command prompt on the /djibe pack folder you unziped earlier:
select folder with left click, right click while holding SHIFT on keyboard > Open command windows here
or while in /djibe folder, type cmd in Windows address bar and confirm with Enter.
### Use fastboot.exe provided in archive. Latest Google binaries won't work.
In Windows Command Prompt (not Windows Powershell !), type:
Code:
fastboot devices
.
If the serial number is written, tab is well connected.
### If not: try this command :
Code:
./fastboot devices
### If still fails: try another USB port
### If still fails: Launch Windows Command prompt in Administrator mode
### If still fails: Check Universal Naked drivers installation
Now type:
Code:
fastboot -i 0x0b05 flash recovery twrp-3.4.0-0-tf300t.img
and wait for the "finished" success message,
### If it fails, try other tricks like above (change USB port, Run Command prompt in Administrator mode, redownload TWRP from official site)
then type:
Code:
fastboot -i 0x0b05 reboot-bootloader
and confirm with Volume+ to load RCK (recovery), it is now TWRP 3.4.
### FROM NOW ON, ONLY USE TWRP RECOVERY TO WIPE DATA OR PARTITIONS, never again bootloader's Wipe data icon !!!
8) SET FILESYSTEM TO F2FS AND NANDROID BACKUP
F2FS is the fastest filesystem for read and write partitions on flash memories. Compared to EXT4, gain is from 15 to 280 %.
No need to format the /System partition because it is Read only and Ext4 is still faster.
On TWRP first launch, check Never show this screen during boot again, then Swipe to Allow Modifications.
Go to Backup, make sure System, Data and Boot are checked.
Now tap on Select Storage button > set it on Micro SDCard,
Swipe to Backup.
Tap on the Home button.
Now go Wipe > Advanced Wipe.
Select Dalvik / ART Cache, System, Cache, Data, Internal Storage and Swipe to Wipe (NOT MICROSD).
Tap on Back button (to Advanced Wipe Menu).
Select Cache partition > Repair or Change File System > Change File System > F2FS and Swipe.
Go Back and back to Advanced Wipe Menu.
Select Data partition > Repair or Change File System > Change File System > F2FS and Swipe.
Tap on Home button.
9) FLASH ANDROID + GOOGLE APPS +/- MAGISK
Still on TWRP Home screen, Install > Storage: Internal Storage and change it to microSD card > OK.
### If it fails, use Kang Recovery (without F2FS partitions): https://androidfilehost.com/?fid=24052804347781183
Select KatKiss-7.1_TF300T*.zip, and Add More Zips,
then open_gapps-arm-7.1-pico*.zip and Swipe to Install.
### If it fails, install zips 1 by 1, make sure microSD is valid and that you downloaded OpenGapps ARM 7.1 PICO version.
OPTIONAL --------------
Go to Reboot > Recovery.
Back to TWRP, go to Install > Magisk.zip and Swipe to install.
Be patient.
Android 7.1 is installed.
When done prompts, tap on Wipe Cache/Dalvik and swype to confirm, wait.
Disconnect tab from PC.
Then Reboot System.
Let the tab start (long time).
10) ANDROID 7.1 Nougat
On Android first launch, immediately manually toggle Wifi ON or you'll run into an app crash (Wifi toggle button is on bottom right of screen).
If your Wi-Fi network is not listed, scroll down to Don't use any network for setup (and refer to chapter 12 to access it again)
Configure Android as you like.
Go to Settings > Performance
Check Set clock values on boot
For Maximum frequency, select 1700 MHz.
I/O Scheduler set zen and Set value on boot
In Settings > Mediascanner filters, uncheck Scan.
In Settings > About tablet, tap 7 times on build number, it unlocks the Options for developers in Settings.
Enter this new menu.
In the Hardware acceleration, make sure Force GPU rendering is NOT checked !!!
11) ROOT WITH MAGISK (OPTIONAL)
Magisk root is started with Android, no need for extra manipulation.
You can manage Superuser permissions and Magisk modules from Magisk Manager app.
12) OTHER APPS
- You can use GPS Status & Toolbox for faster GPS fix.
- Kernel Adiutor for advanced overclock
- KAT App to enhance Audio: https://forum.xda-developers.com/transformer-tf300t/development/app-t2824215
- Any Magisk Module or Xposed Module.
- Your tab doesn't see your local Wifi network? You are probably european and your Wifi is set to channel >= 11.
Go to Settings > Wi-Fi > 3 dots icon > Advanced > Change wifi regulatory domain > EMEA and Rest of World.
Reboot tablet, you now see your Wi-Fi listed.
### If not:
Go to Settings > Security > Switch Unknown sources ON
Download from Play Store Smartpack Kernel Manager or with KatBrowser go to m.apkpure.com
Reboot to TWRP recovery (hold power to shutdown > long press on Reboot)
Go to Mount > Check System partition
Go to Install > flash Magisk*.zip
Reboot > System
With Smartpack Kernel Manager, edit build.prop
Look for ro.wifi.channels and set a value of 14 (ro.wifi.channels = 14)
Reboot tab to list all Wifi networks.
- To uninstall Magisk, rename Magisk-v23.0.apk to uninstall.zip and flash it with TWRP recovery
- Edit build.prop
Reboot to recovery > Mount > select System
adb devices
adb root
adb remount
adb pull /system/build.prop
Edit with Notepad++ and save
adb push build.prop /system/build.prop
adb shell chmod 644 /system/build.prop
That's it.
Enjoy ;-)
Thanks : Timduru, @d.l.i.w, @GloGlorius, AOSP dev, TWRP team, ChainfireSuperSU, TopJohnWu
---------------------------------------------------------------------------------------------------
EXTRA - UPGRADING BOOTLOADER VERSION OF ASUS TRANSFORMER PAD TF300T
- Either use latest official updates in Settings -> About -> Update (While connected to Internet).
But if you are here, it seems to fail ;-)
- Manually update
In your bootloader version, check for the 2 first letters.
If the letters are corresponding, download the file from the official link.
US : http://dlcdnet.asus.com/pub/ASUS/Ee...7.1996726876.1498828408-1286149849.1498586515
WW : http://dlcdnet.asus.com/pub/ASUS/Ee...7.1996726876.1498828408-1286149849.1498586515
CN : http://dlcdnet.asus.com/pub/ASUS/Ee...4.1996726876.1498828408-1286149849.1498586515
JP : http://dlcdnet.asus.com/pub/ASUS/Ee...4.1996726876.1498828408-1286149849.1498586515
TW : http://dlcdnet.asus.com/pub/ASUS/Ee...7.1996726876.1498828408-1286149849.1498586515
Now, unzip the archive once to obtain it like this : WW_epad-user-10.6.1.27.5.zip (WW or whatever 2 letters you require)
Rename WW_epad-user-10.6.1.27.5.zip to EP201_768_SDUPDATE.zip .
###Beware not to rename it to EP201_768_SDUPDATE.zip.zip !
Copy EP201_768_SDUPDATE.zip to the root of a microSD card formatted in FAT32.
Insert microSD in TF300T shut down.
Start tab in Bootloader Mode (Power + Volume-).
Go to Recovery Mode (RCK)
Flash zip, reboot.
Normally it worked ;-)
Check bootloader version again for xxx.27.5 .
Start this tutorial from start again if bootloader ends in 27.5 .
If not, ask for help in this thread.
-----------------------------------------------------------------------------------------------------------------
KEYBOARD STUCK TO QWERTY
Thanks to @BotAlex
Go to Settings > Apps > AOSP keyboard.
Disable app and delete app data.
Reactivate app.
It should be fixed.
Or install another keyboard like Gboard.

hello,
assume :
Select /cache partition -> Repair or Change File System -> Change File System -> F2FS, Swipe.
Go Back and back to Advanced Wipe Menu.
Select /cache partition -> Repair or Change File System -> Change File System -> F2FS, Swipe.
Tap on Home button.
is :
Select /cache partition -> Repair or Change File System -> Change File System -> F2FS, Swipe.
Go Back and back to Advanced Wipe Menu.
Select /data partition -> Repair or Change File System -> Change File System -> F2FS, Swipe.
Tap on Home button.
Best regards.

I was under the impression that ONLY the data partition benefits from converting to f2fs

bonzoe said:
I was under the impression that ONLY the data partition benefits from converting to f2fs
Click to expand...
Click to collapse
You are right! It is very important to convert /Data only to F2FS, never /Cache, never /System.

Flash twrp3 recovery
Hi
I did like every step..
But at step 4 I get the succes messages and the finished messages But it just normally restarts?
I dont know what I am missing at this point. I did however never got a succes messages after installing the android_winusb.inf
Please shine some light!
Thank you

So, is there an advantage to using TWRP 3.0.2.0 over the KANG TWRP 2.8.7.2 that timduru says to use in his KatKiss 6.0.1 rom?

ImaPoBoy said:
So, is there an advantage to using TWRP 3.0.2.0 over the KANG TWRP 2.8.7.2 that timduru says to use in his KatKiss 6.0.1 rom?
Click to expand...
Click to collapse
Nope! Please stay on Kang TWRP as advised by Timduru in order to avoid any known issues caused by TWRP 3.0! Ever follow his install instruction for KatKiss 6.0.1 carefully.

bonzoe said:
I was under the impression that ONLY the data partition benefits from converting to f2fs
Click to expand...
Click to collapse
I read this and other IRL tests :
https://forum.xda-developers.com/showthread.php?t=2697069
Came to conclusion F2FS is great. I'd appreciate your advice.

ebonit said:
Nope! Please stay on Kang TWRP as advised by Timduru in order to avoid any known issues caused by TWRP 3.0! Ever follow his install instruction for KatKiss 6.0.1 carefully.
Click to expand...
Click to collapse
Never experienced any problems with any Timduru creations.
What are they ? (to improve mu tuts).
Thx for help.

Was trying to reply to this message :
Hi
I did like every step..
But at step 4 I get the succes messages and the finished messages But it just normally restarts?
I dont know what I am missing at this point. I did however never got a succes messages after installing the android_winusb.inf
Please shine some light!
Thank you
Click to expand...
Click to collapse
I'm having the same issue (I think)
On win 10, I never get confirmation message for the winusb driver (I got it for the apxusb), and the SN of my tab shows as ????????? when I try to get fastboot devices in step 4.
I tried on a win7 machine but I cant install the drivers (INF file you selected doesn't support this method of installation)
Any help greatly appreciated ofc

Eypisod said:
Was trying to reply to this message :
I'm having the same issue (I think)
On win 10, I never get confirmation message for the winusb driver (I got it for the apxusb), and the SN of my tab shows as ????????? when I try to get fastboot devices in step 4.
I tried on a win7 machine but I cant install the drivers (INF file you selected doesn't support this method of installation)
Any help greatly appreciated ofc
Click to expand...
Click to collapse
Simply flash Kang TWRP 2.8.7.2 !!! (https://forum.xda-developers.com/transformer-tf300t/development/recovery-twrp-t3046479). This is the right one for TF300T.

ebonit said:
Simply flash Kang TWRP 2.8.7.2 !!! (https://forum.xda-developers.com/transformer-tf300t/development/recovery-twrp-t3046479). This is the right one for TF300T.
Click to expand...
Click to collapse
Will I be able to do that without the drivers ? I'm under the impression that fastboot doesn't see my tab so I can't install a recovery.

I can't seem to pass the PC to tablet connection step. What could go wrong?
My PC's OS is Windows 10 Pro, 32bit version. I followed the below guide:
2 - INSTALL WINDOWS DRIVERS FOR ASUS TRANSFORMER PAD TF300T
- Windows 8/10 :
On keyboard, type combo : "Windows key + R"
In the command prompt, type : shutdown -o -r -t 0
it opens Windows Recovery menu:
Go to Troubleshoot -> Advanced Options -> Startup settings -> Restart
At reboot, hit 7 (Disable driver control) and follow instructions for Windows Vista/7.
when finished driver installation, reboot PC as usual.
- Windows Vista/Windows 7 :
Go to folder /Universal Naked Drivers 0.72 you unziped at start on your Desktop.
Select file android_apxusb.inf, then right click -> Install.
Force driver install and wait until a success message prompts.
Repeat operation with android_winusb.inf .
You can plug tab in USB for driver install completion.
Click to expand...
Click to collapse
Both installations responded "sucessful".
I then connect my TF300T to the PC with original charging/data cable, my PC doesn't seem to recognize the tablet. If I go to device manager, I will see an unknown USB with yellow (!).
What did I do wrong?
Thanks,

Eypisod said:
Will I be able to do that without the drivers ? I'm under the impression that fastboot doesn't see my tab so I can't install a recovery.
Click to expand...
Click to collapse
Please download the Asus PC Suite "ASUS PC Sync V1.0.97": https://www.asus.com/de/supportonly/ASUS Transformer Pad TF300T/HelpDesk_Download/
Install the PC Suite on your PC. Connect your Tablet with the PC via USB. Windows will ask for the driver. Point Windows on the folder of the PC Suite. The drivers will be there.

ebonit said:
Please download the Asus PC Suite "ASUS PC Sync V1.0.97":
~~~[link deleted because new members can't post outside link]
Install the PC Suite on your PC. Connect your Tablet with the PC via USB. Windows will ask for the driver. Point Windows on the folder of the PC Suite. The drivers will be there.
Click to expand...
Click to collapse
Still does not work.
*Windows did not ask for the driver.
*When try to update the driver through device manager (pointing to the folder:
ASUS Android USB Drivers
the result shows:
Update Driver Software - Unknown USB Device (Device Descriptor Request Failed)
The best driver software for your device is already installed
Windows has determined the driver software for your device is up to date
Same thing when I tried the "Universal Naked driver".

taz_devil said:
Still does not work.
Click to expand...
Click to collapse
Look at this site: http://gsmusbdriver.com/asus-transformer-pad-tf300t. There you will also find "how to install the USB driver"!
PS: First of all, please check whether on your tablet "USB debugging" is checked on or not. If not check it on!
Then connect your tablet with the PC again. Open the device manager. If there is seen "Android Device" ->ASUS Android Composite ADB Interface or something like that and "Portable Devices"->TF300T, your tablet is known. Then you may check the driver if an update is necessary .

ebonit said:
Look at this site: ~[deleted] There you will also find "how to install the USB driver"!
PS: First of all, please check whether on your tablet "USB debugging" is checked on or not. If not check it on!
Then connect your tablet with the PC again. Open the device manager. If there is seen "Android Device" ->ASUS Android Composite ADB Interface or something like that and "Portable Devices"->TF300T, your tablet is known. Then you may check the driver if an update is necessary .
Click to expand...
Click to collapse
I've done all those things. I am wondering if my data cable is the culprit. Ever since Android 4.x.x whenever I am charging this tablet, and when the battery is 80% or higher, the screen will wake up and the speaker beeps. I have to mute the speaker and over the screen when charging.

djibe89 said:
I read this and other IRL tests :
https://forum.xda-developers.com/showthread.php?t=2697069
Came to conclusion F2FS is great. I'd appreciate your advice.
Click to expand...
Click to collapse
Sorry for late reply, I have been on holiday.
All I know about f2fs is that Timduru recommends using it for data partition on his build. I just follow the experts advice when flashing.

djibe89,
Great job you did here!
Just a few comments. Timduru clearly emphasizes the following points in his installation guide and your guide may cause some confusion under the TF300T owners. I have seen newcomers on the Katkiss threads that had problems with their first install due to not following and using the prescribed versions and steps.
1) Timduru advises only to use twrp_tf300_kang_2.8.7.2.img and not TWRP 3.0.2-0
2) It is also suggested that UnLock_Device_App_V7.apk rather be used as some people had problems with V8.
3) He also suggests using UPDATE-SuperSU-V2.79-20161211114519.zip be used, but does not stipulate not using V2.52 which means this one is optional, your choice.
4) He also advises to ONLY change /data to from ext4fs to f2fs for /data and NOT to do this for /cache.
Just again, excellent job and thanks for sharing.

Hi, thx for posting.
I enhenced the tutorial with your statements.
However, for the TWRP and F2FS notes, it is related.
2.8 TWRP had problems with F2FS, and were buggy until latest 3.02-0. I have this version on all the devices I hack and have complete faith in it.
Enjoy.
See you

Related

[GUIDE/TUTORIAL/HOWTO] HTC One M8 Stock to Android 12

[GUIDE/TUTORIAL/HOWTO] HTC One M8 from Stock to Android 12.1 / LineageOS 19.1
[GUIDE/TUTORIAL/HOWTO] HTC One M8 any version (single SIM: m8ul, m8vzw and m8spr or dual SIM: m8dug and m8dwg) stock to Android 12.1 / LineageOS 19.1
This detailed step-by-step guide helps you transform your HTC One M8 (any version) to a powerful one with Android 12.
Make sure you have the One M8 model, in Android, go to Settings > About phone and check the model.
CHANGELOG
v6. Moved to Android 12
v5. Moved to Android 11, improve readability, update pack
v4. Prepare for Android 11, Updated pack with latest TWRP
v3. Updated pack with latest Magisk
v2.1. Drop ADB 15 sec installer and use latest adb and fastboot.
v2. Update pack and tutorial for TWRP 3.4.0-1
v1. Initial release
1) DOWNLOAD
- djibe HTC One M8 pack (~40 Mo) : https://bit.ly/djibe-onem8-pack
(includes HTC USB Drivers, recovery TWRP 3.6.1_9-0 for all m8, Magisk Root, adb & fastboot.exe).
Unzip the djibe folder from the zip on root folder of C:\ drive.
- ROM Unofficial LineageOS 19.1: https://forum.xda-developers.com/t/rom-12l-unofficial-m8-m8d-lineageos-19-1-stable.4464733/
Download latest build here (compatible with all M8 signel/double SIMs variants): https://www.androidfilehost.com/?w=files&flid=334966&sort_by=date&sort_dir=DESC
# M8 GPe partition layout is no longer supported. The device must first be converted to Sense firmware, otherwise installation will fail.
# Android 13 is incoming
+ MindTheGApps ARM 12.1: https://androidfilehost.com/?w=files&flid=322935&sort_by=date&sort_dir=DESC
+ Charge phone to 100%
+ MicroSD card formatted in FAT32
+ Copy ROM + Google Apps + both Magisk files on microSD card. Insert it in phone.
WARNING. This tutorial uses Microsoft Windows.
WARNING. Warranty is now void.
WARNING. Read carefully the sentences starting with ###.
2) BACKUP DATA AND INSTALL DRIVERS
Disable Antivirus.
Install drivers from my pack:
right click on HTCDriver.exe > click on Run as administrator and continue the setup.
Connect HTC One (while phone on) to PC, let drivers install.
In Windows explorer, HTC One should be available.
### If not make sure phone connection is in File transfer mode (see Android notifications).
### Phone is still not visible in Windows Explorer ? See fix at end of tutorial.
Collect all personal photos, videos, etc ... and backup these on PC.
Use an app like Backupyourmobile/SMS Backup & Resotre to backup texts, contacts, etc.
Check that backup is located on microSD card.
Then copy the backup on your PC.
Disconnect phone.
Check that you have the latest official updates.
### If your phone is Simlocked/carrier locked/Network locked, don't go further.
Visit official website of your network carrier (or call their support) to retrieve your desimlock code.
Ask them for details on how to remove simlock.
How do I know my phone is simlocked ? When you insert a SIM card from another operator, network is inaccessible.
Only a stock ROM can remove simlock.
To go back from custom ROM to stock, see dedicated section at the end of tutorial.
3) UNLOCK BOOTLOADER
In Android, go to Settings > About > Software information > More.
Tap 7 times on Build number. It unlocks Developer options.
Go back to the About menu, you can see the new Developer options menu.
Tap on it, accept the warning.
Toggle on the USB debugging option.
Connect phone, a message appears on phone : Allow USB debugging?
check Always allow and confirm by tapping on OK.
Now, open a Windows command on my "flash" folder (hold Shift + right click on folder -> Open a windows command here).
### Then navigate to my flash folder (if it is on desktop) with this command :
Code:
cd /d C:\djibe\flash
Enter command :
Code:
adb devices
, confirm by pressing Enter.
Command returns :
Code:
List of devices attached
HT35****** device
### If no device is found, uninstall and reinstall properly the drivers while antivirus is off. Or see fix at the end of this tuto.
### Or start fresh on another PC.
Now type :
Code:
adb reboot bootloader
Phone restarts in Fastboot mode. Wait till phone screen is blank in fastboot mode.
Type:
Code:
fastboot devices
Command returns :
Code:
HT35**** fastboot
### You may have to fix drivers again (see fix at the end of tuto)
Type:
Code:
fastboot getvar all
Bootloader must be in version 3.19 (Thx @sterphles)
Type:
Code:
fastboot oem get_identifier_token
, confirm by pressing Enter.
Command returns multiple lines.
Select with your mouse all the lines from
Code:
<<<< Identifier Token Start >>>>
(included)
to the line
Code:
<<<<< Identifier token end >>>>>
(included).
Now on keyboard copy (Ctrl + C combo), then open Notepad.
In Notepad, paste those lines (Ctrl + V combo).
Now manually remove all the (bootloader) strings from each line.
Your notepad should now look like this :
<<<< Identifier Token Start >>>>
37A5DBF4FE5F0D9F4425E54AA91AFDBF
2A20E9C67C3BB4FAE60263F76BDEC6AC
847BF9FFB11DAEA4AB88AC8710435449
9BC12E93DF4C54FFE3D064C4C810C49A
2CDAF2E0CD3A164FED4A568CB0FD2AC6
C01AA991733D949C00987062D691DE91
8AA1C97CEBC3ACE83FECE75A1D03CE72
62414C7DC36A73AFCBF433E1EBE2EDC7
E272F73309632D3EF8C86E472B65E8EF
37E46B52FE3F94FC69D1854CA3DE6F48
C3E10001B233A70B1EAF35134F51FCC6
353E0CC98534E6E60A241A7063D0BE2F
A5B752E75C1C47E6F739BDBE67D024DA
3292A14278247557632639802722A86C
E61424F7666AE085AA9905096FEED1AD
5ECBBD867544E95ABDDA277690B8CB55
<<<<< Identifier Token End >>>>>
Now visit this website : https://www.htcdev.com/bootloader/
Register on the site. Confirm registration with your email.
In the select menu, chose HTC One (M8), click Begin unlock Bootloader button.
Agree to legal terms.
Next page, go to the bottom and click continue to step 5.
In the bottom of this page, in the lower textarea "My Device Identifier Token",
copy and paste the multiple lines you just edited (my example is just above).
Click Submit.
HTC tells you : Token Submitted Successfully.
Open your mailbox (associated to your HTC account).
Copy the Unlock_code.bin file attached to email in my "flash" folder you unzipped.
In Windows command, type :
Code:
fastboot flash unlocktoken Unlock_code.bin
, confirm with Enter.
Command should return :
Code:
unlock token check successfully
Back to phone, press Volume+ to select "Yes, unlock bootloader", then Power button to confirm flash.
Now wait while phone is going to Factory reset.
Don't let Android restart by holding both Power + Volume- to enter bootloader immediately.
FASTBOOT menu is overlined in red.
4) FLASH TWRP RECOVERY
Using the same Windows command prompt, enter :
Code:
fastboot devices
to make sure phone is still available.
Then
Code:
fastboot flash recovery twrp-3.6.1_9-0-m8.img
Command returns :
Code:
finished. total time: x.xxxxs
Now on phone, press Volume- to highlight HBOOT, confirm with Power button.
You are back to the booloader screen (UNLOCKED is written on top line), press Volume- to navigate to RECOVERY, and confirm with Power button.
Phone reboots in TWRP recovery.
5) BACKUP STOCK SYSTEM
In TWRP, check Never show this screen and Swipe to Allow Modifications.
You land on TWRP Home screen.
Always make a backup of your stock system. We never know when a weird bug will decapitate the system.
Go to Backup menu, select all partitions and Backup to microSD card.
Backup the generated TWRP folder content from your microSD card to PC.
6) WIPE PARTITIONS
Back to Home menu, go to Wipe > Advanced wipe.
Select Dalvik / ART Cache, Cache, System, Data, Internal Storage then Swipe to Wipe, go back to Wipe menu.
### Don't wipe SDcard
7) FLASH ROM, ROOT/MAGISK AND GAPPS
Back to Home screen, tap on Install > choose lineage*.zip,
(if you don't see the files, tap on Select Storage and make sure Micro SDCard is active)
then Add more Zips -> Magisk*.zip,
then Add more Zips -> mindthegapps*.zip,
then Swipe to confirm Flash.
Wait for operation to end (can be long).
When completed successfully, tap on Reboot.
Tap on Do not install when TWRP asks for the app install.
Wait during long first boot.
Setup Android.
8) You can use Backupyourmobile to restore data,
use GPS Status & Toolbox app to enhance GPS fix.
That's it.
Enjoy,
djibe
THANKS to TWRP team, LineageOS team, tarkzim, ckpv5, alray, , Flyhalf205, icxj1, R1ghtC, gimmeitorilltell, All M8 contributors.
##################################################
A) Fastboot devices doesn't show any device connected
Install HTC USB drivers
Reboot PC
Open Windows Device Manager (Windows + R shortcut on keyboard > devmgmt.msc > hit Enter)
Search for phone at Other devices submenu > Device is named Android 1.0 or My_HTC
### If it is My_HTC > select it > right click > Uninstall. Disconnect phone. Reconnect phone. Now recognised as Android 1.0.
Select device Android 1.0 > right click > Update Driver
Search locally for driver > Show a list
Select ASUS Android Device.
Manufacturer: select Google, Inc. and set driver to Android Bootloader Interface
Confirm install.
B) Go back to stock from a custom ROM with a HTC One M8
- Either restore your TWRP backup with TWRP recovery
- Or restore a community TWRP backup with TWRP recovery (https://forum.xda-developers.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860 see posts 2 & 3)
### With S-ON and keep device Unlocked
To find suitable backup for device, boot phone in Bootloader mode (Power + Volume-)
Look at your hboot version (hboot 3.19.0000 is most frequent)
Launch a fastboot command:
Code:
fastboot getvar all
Make sure IMEI is a valid number.
Look at your CID and MID values. Try to find exact same TWRP backups for your phone.
### Flash only exact model versions.
Then wipe all partitions and restore the correct TWRP backup an angel made for you.
- If TWRP restore fails, start with these posts :
You will need a Rom Update Utility (RUU) for your exact model version.
This is compatible with S-ON, will need to relock your Bootloader (save your Unlock_code.bin +++) and need original recovery
https://forum.xda-developers.com/htc-one-m8/help/tutorial-how-to-stock-stock-twrp-t3086860
https://forum.xda-developers.com/htc-one-m8/general/guide-restore-european-htc-one-m8-to-t3072235
C) No IMEI visible and no cellphone network detected with HTC One M8
Composing *#06# shows an empty IMEI dialog window.
or Settings > About phone > IMEI. IMEI: Unknown, IMEI SV: Unknown
Refer to B) tutorial to get back to stock.
Tuto updated for latest TWRP recovery
Please remove the 15 second adb. The OP of adb 15 second states in his post that it's outdated and should not be used.
Never_Sm1le said:
Please remove the 15 second adb. The OP of adb 15 second states in his post that it's outdated and should not be used.
Click to expand...
Click to collapse
Very nice !
Thx, pack and tutorial updated.
Can I use this guide for my m8wl?
And if it's possible, which of the two builds should I download?
Alexcxvtr said:
Can I use this guide for my m8wl?
And if it's possible, which of the two builds should I download?
Click to expand...
Click to collapse
Hi, look at this first: http://droider.eu/2014/09/20/htc-one-m8-models/
Then pick the correct ROM.
Thank you .I did it by following your guide.
murphylim said:
Thank you .I did it by following your guide.
Click to expand...
Click to collapse
Thanks, it is always encouraging to have support.
Still a good phone
Hi, I updated pack with latest Magisk root version and checked download links.
For Windows 10 users, use HTC drivers version v4.17.0.001 - Download them from here - Zippyshare.com - HTC Mobile Driver v4.17.0.001.exe
Everything else works just fine. @djibe89 thank you.
hymnz said:
For Windows 10 users, use HTC drivers version v4.17.0.001 - Download them from here - Zippyshare.com - HTC Mobile Driver v4.17.0.001.exe
Everything else works just fine. @djibe89 thank you.
Click to expand...
Click to collapse
Hi, thanks for feedback.
Drivers 4.2.0.001 didn't work ?
djibe89 said:
Hi, thanks for feedback.
Drivers 4.2.0.001 didn't work ?
Click to expand...
Click to collapse
No. Not on Windows 10.
djibe89 said:
Now type :
Code:
adb reboot bootloader
Phone restarts in Fastboot mode. Wait till phone screen is blank in fastboot mode.
Type :
Code:
fastboot devices
Command returns :
Code:
HT35**** fastboot
### You may have to fix drivers again (see fix at the end of tuto)
Click to expand...
Click to collapse
Hi,
I'm at the stage of trying to unlock the bootloader. The phone restarts in fastboot mode but when i type in fastboot devices nothing happens.
and then if i skip that and type get_identifier_token. the return is waiting for any devices. and nothing happens.
What have I missed?
Thanks
i've since been able to get past this stage. I used htc driver 4.17. I'm now stuck on the token. cmd prompt keeps saying cannot load the file no such file or directory. but i'm so sure i have the file in the right folder
juggled_balls said:
Hi,
I'm at the stage of trying to unlock the bootloader. The phone restarts in fastboot mode but when i type in fastboot devices nothing happens.
and then if i skip that and type get_identifier_token. the return is waiting for any devices. and nothing happens.
What have I missed?
Thanks
i've since been able to get past this stage. I used htc driver 4.17. I'm now stuck on the token. cmd prompt keeps saying cannot load the file no such file or directory. but i'm so sure i have the file in the right folder
Click to expand...
Click to collapse
Hi, when
Code:
fastboot devices
doesn't return anything, it means there is an USB driver problem.
You'll have to try to fix from Windows Device Manager.
hymnz said:
No. Not on Windows 10.
Click to expand...
Click to collapse
Hi, the Driver installer from my pack (HTCDriver_4.2.0.001) sends an error during install, but then drivers finally install.
djibe89 said:
Hi, when
Code:
fastboot devices
doesn't return anything, it means there is an USB driver problem.
You'll have to try to fix from Windows Device Manager.
Click to expand...
Click to collapse
Thanks for your work. I managed to plod my way through everything and get it working. Very happy the old phone can keep going on.
juggled_balls said:
Thanks for your work. I managed to plod my way through everything and get it working. Very happy the old phone can keep going on.
Click to expand...
Click to collapse
Awesome !
Enjoy
Hi, tutorial and pack updated for Android 11
thx for the guide!
seamonkey420 said:
thx for the guide!
Click to expand...
Click to collapse
Hi, glad you liked it !
Enjoy your phone

[GUIDE/TUTORIAL/HOWTO] Sony Xperia SP stock to Android 10

[GUIDE/TUTORIAL/HOWTO] Sony Xperia SP stock to Android 10
[GUIDE/TUTORIAL/HOWTO] Sony Xperia SP (C5303 or huashan) to Android 10 Q / LineageOS 17.1
This detailed step-by-step guide helps you transform your Sony Xperia SP to a powerful one with Android 10 Q.
To make sure you are with a Xperia SP / C5303 / huashan:
On the smartphone, go to Settings > About phone. Check that the "Model number" is correct : C5303.
Just below note the "Android version". It must be 4.3.
### We need to make sure Bootloader can be unlocked before going further.
Open dialer, enter code
Code:
*#*#7378423#*#*
In the follow menu, go to Service info > Configuration > Rooting status.
Bootloader unlock allowed: Yes
If it is set on No, you cannot update your device. You can quit this tutorial and cry, you will never unlock it.
### You must be logged as a Microsoft Windows administrator to run console commands below.
### When you lose control of your Xperia SP, hold Power + Volume+ until tab restarts.
CHANGELOG -------------------
v1. Initial release
1) DOWNLOAD FILES
- djibe Xperia SP pack (~ MB): http://bit.ly/djibe-xperiasp-pack
(contains FlashTool Xperia Driver Pack 1.8 for USB drivers + fastboot + recovery TWRP 3.4.0-0 + flashable TWRP 3.4 + Magisk root + Smartpack Kernel Manager)
+ ROM LineageOS 17.1 https://forum.xda-developers.com/xperia-sp/orig-development/rom-lineageos-17-1-xperia-sp-t4147075
Download latest build: https://mega.nz/folder/r11xAbSL#Lwt5FOvHpV1POu_3OHU6Uw
+ OpenGApps ARM 10 Pico: https://opengapps.org/?arch=arm&api=10.0&variant=pico
+ Charge phone to 100 %.
NB. Use a USB2 port to connect tablet to PC.
2) INSTALL DRIVERS
Commands below are for Windows 10 installation of unsigned drivers.
### For other Windows versions, Google "windows X install unsigned driver".
On the keyboard of PC, use "Windows key + R" combo.
In the command prompt that opens, type:
Code:
shutdown -r -t 0 -o
This opens a Windows menu:
Go to Troubleshooting > Advanced Options > Settings > Restart
Upon restart, press on keyboard : key 7 - Disables drivers signature verification
After boot,
Start Flashtool Xperia Driver Pack 1.8,
check the Flashmode Drivers, Fastboot drivers, Common drivers Viskan board, start the installation and confirm the
forcing the driver installation. It ends by saying that everything was installed.
Restart Windows.
2bis, optionnal, FOR WARRANTY PURPOSE) Backup bootloader
Cannot help you precisely, didn't know about it at the time.
- Root. Follow Bin4ry root : http://forum.xda-developers.com/showthread.php?t=1886460
Download : http://forum.xda-developers.com/showthread.php?t=1886460
- Then Backup TA. https://github.com/DevShaft/Backup-TA
Unzip it in C:\
Make sure partition is saved.
3) BACKUP ALL YOUR DATA
Backup every SMS, photo, app login or sync everything in the cloud.
You will lose everything, including what is contained in the microSD card during bootloader unlock.
So backup everything and transfer every file to your computer.
### Do it now or you will regret it.
4) IMEI NUMBER AND UPDATES
On phone, go to Settings > About phone > Status > IMEI
Note the IMEI (15 digits). Store it.
If your Android version is lower than 4.3 (refer to beginning of tutorial),
connect to your Wifi network,
go to Settings > About phone > Software update > System.
5) MAKE SURE PHONE IS NOT SIMLOCKED
We need to check phone is not SIMlocked.
Open dialer, enter code again
Code:
*#*#7378423#*#*
Go to Service info > SIM lock. If everything is blank/unchecked ( [] ), phone is Desimlocked.
If not, you must contact your network provider for an unlock code.
### Don't move further until phone is simlocked. You cannot debrand/desimlock it using a custom ROM.
6) GENERATE BOOTLOADER UNLOCK CODE
From your PC, go to https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
At the bottom of the page, in "Select your device:" menu: select Xperia SP.
Enter your IMEI, check first 2 checkboxes "I acknowledge that", click Submit and complete the captcha to generate unlock key.
Note the unlock code (beginning and end of page paragraph C.)
7) CONNECT PHONE IN FASTBOOT MODE
Phone powered off, hold "Volume up" while you plug phone in USB.
The blue light appears at the front bottom edge, the drivers install in Windows.
8) UNLOCK BOOTLOADER
In Windows, copy the path to the "flash" folder you unziped earlier.
Open a Windows command prompt : Start menu > Command prompt > Start as administrator
Then type
Code:
cd /d thePathToFlashFolder
(ex: E:\root\djibe Sony Xperia SP\flash)
Type:
Code:
fastboot getvar version
If "version: 0.5" is returned, drivers are correctly installed.
Create this text: fastboot -i 0x0fce oem unlock 0xAPPENDYOURUNLOCKCODE
Paste the previous line in windows command:
Code:
fastboot -i 0x0fce oem unlock 0xYOURUNLOCKKEY
confirm with Enter. After 5 seconds, it is displayed Finished. Total time: ...
Bootloader is unlocked !
9) FLASH TWRP RECOVERY 3.4
Still in fastboot, type in console :
Code:
fastboot flash boot twrp-3.4.0-0-huashan.img
. Confirm with Enter.
Wait, then once the confirmed success,
type :
Code:
fastboot reboot
(confirm with Enter).
AND while it restarts, repeatedly click Volume+ AND Volume- buttons to access the recovery (can take a while).
Leave phone connected to PC.
10) BACKUP CURRENT ROM AND USE TWRP RECOVERY
You are now in TWRP recovery,
check Never show this screen during boot again and Swipe to Allow modifications.
Go to Backup, select all partitions.
Tap on Select Storage > select Internal Storage and confirm with OK.
Then swipe to start backup.
Click the TWRP icon to return to home.
Go to Mount. Select Data partition and make sure bottom right button is dsiplaying Disable MTP text.
Phone must be connected to computer.
In Windows Explorer, open Xperia SP device > Internal Storage.
Copy whole TWRP folder and save it somewhere safe on your PC.
Copy twrp-3.4.0-20200808-fota-huashan.zip in your Internal storage folder.
11) INSTALL A PERMANENT TWRP RECOVERY
The TWRP recovery you are using is temporary.
We need to flash it on a partition.
Back to TWRP home menu > Install > tap on twrp-3.4.0-20200808-fota-huashan.zip and Swipe to confirm flash.
12) FORMAT PARTITIONS
### Last warning before losing all your Data. Backup
Go back to Home menu.
Go to Wipe > Data Format, type yes and click OK.
Go Wipe > Wipe Advanced > Select Cache, Data and swipe to confirm flash.
Still from Windows Explorer, copy ROM + OpenGapps + Magisk on phone.
13) INSTALL ROM AND GOOGLE APPS
Still under TWRP home menu.
Go to Install > select lineage*.zip.
### If no file is visible, click Storage > select Internal Storage.
### If you get an error and flash fails, go to Reboot > Recovery and wait for TWRP to reboot.
Add more zip > OpenGapps*.zip file
Swype to confirm flash.
Wait while Install Zips are flashed.
At the end, select Wipe Dalvik and cache, Do not install TWRP app and then Reboot system.
Wait during long first boot.
Enhoy your new phone.
14) ROOT
Magisk grants you superuser privileges from boot.
No extra Root manipulation needed.
Configure Android as you like.
14) OVERCLOCK (optionnal)
Open built-in Files app.
Open microSD folder.
Install Smartpack Kernel Manager app from my pack.
Launch app and grant root access.
Go to CPU menu > Apply on boot, CPU Maximum Frequency 1728 MHz
13) Others
For faster GPS fix, use GPS Status and Toolbox and downlaod A-GPS data.
Your tablet is a rocket, enjoy
Thanks: LineageOS team, TWRP team, OpenGApps team, Flashtool Xperia Driver pack team, @CaHbKaUp, @CyberWalkMaN, @AdrianDC, Chippa_a, @Rootk1t
I respect your diligence. :good:
You have already created 17 guides of this type.
The devil is in the details.
Do you have all these 17 devices and have gone through step by step or have you created the guides based on the information collected from the XDA?
.
Hi @ze7zez.
Good question !
I started with my own Nexus One. It was horrible, XDA is not for mega noobs.
It then took me one whole week to flash Asus transformer Prime from my brother-in-law. Then I started writing detailed tuto for Android.
I hacked my parents phones and mine. But I had too few devices in my hands.
So recently I discovered my tutorials were read by 500.000+ users, so I think it is useful.
Now I buy second hands phones, 36€ for this Xperia SP (the first one was 30€ and Bootloader unlockable )
It took me the day (today) to write this tuto. I made screenshots for the first time and will publish it on ifixit.
I gonna sell both Xperia SP and I want a Nexus 4 now
Need some guidance
Hi, I am coming back to this device after almost 6 years. I was well versed in flashing ROMs etc then but I seem to have lost most of that knowledge now. Last I used this device, I had already rooted it, unlocked bootloader, IIRC changed the kernel, put a custom ROM "CM 11-20150901-SNAPSHOT......." As I recall I also installed both TWRP and CWM recoveries, made a backup of Stock ROM. The thing is I remember having issues with booting into either recovery which I some how corrected, but it again started giving me problems. Right now I can't boot into either of the recovery with either Power+Volume UP/Down, after the Sony logo the screen just remains black. I have to restart the phone with restart button in the back panel. Can you please guide me as to how to proceed. I want to get to this latest build but I can't even get into recovery. Thanks in advance.
Hi @shalabhvickysom, you can activate Developer Options > then Android Debug Bridge ADB.
Then use a computer and a terminal: adb reboot bootloader or adb reboot recovery.
Keep us informed.
Hi @shalabhvickysom, you can activate Developer Options > then Android Debug Bridge ADB.
Then use a computer and a terminal: adb reboot bootloader or adb reboot recovery.
Keep us informed.

[GUIDE/TUTORIAL/HOWTO] Sony Xperia Z3 Compact Stock to Android 11

[GUIDE/TUTORIAL/HOWTO] Sony Xperia Z3 Compact Stock to Android 11
[GUIDE/TUTORIAL/HOWTO] Sony Xperia Z3 Compact (z3c) Stock to Android 11 R / LineageOS 18.1
This detailed step-by-step guide helps you transform your Sony Xperia Z3 Compact to a powerful one with Android 11.
Netflix, Disney+ and my bank app work as 2021/10/19, gestures navigation too.
BEFORE GOING FURTHER
- Make sure you are with a Xperia Z3c
Go to Menu > Settings > About phone > Model number is: D5803 or D5833.
- Make sure bootloader is unlockable
Open phone app, dial *#*#7378423#*#* > Service info > Configuration > Rooting status: Bootloader unlock allowed: Yes
If No, you can cry, you cannot get further.
In previous menu, go to SIM Lock and make sure all the networks start with [].
If not, ask your Telecom provider the SIM unlock code.
### You must be logged as a Microsoft Windows administrator to run console commands below.
### When you lose control of Xperia Z3c, hold Power + Volume+ until phone restarts.
CHANGELOG
v1. Initial release
1) DOWNLOAD FILES
- djibe Xperia Z3 Compact pack: https://bit.ly/djibe-xperia-z3c
(contains Z3 USB drivers + adb + fastboot + recovery TWRP 3.3.1-0 theMuppets + Magisk 23)
+ ROM LineageOS Official 18.1 https://forum.xda-developers.com/t/official-lineageos-18-1-for-xperia-z3-compact.4308517/
Download latest build: https://download.lineageos.org/z3c
+ BitGApps ARM 11 (R44+): https://forum.xda-developers.com/t/custom-gapps-bitgapps-for-android.4012165/post-81060605
Download latest build: https://github.com/BiTGApps/BiTGApps-Release/releases
+ a microSD card. Copy ROM, BitGApps, Magisk on microSD card and insert it in phone.
+ Charge phone to 100%.
2) INSTALL DRIVERS
Right click on Windows Start menu > Device manager.
Right click on Computer's name (top of devices list) > Add legacy hardware.
Set folder's path of my Xperia_Z3_driver/ folder.
Click Next to install.
Reboot Windows.
3) IMEI NUMBER
On phone, go to Menu > Settings > About phone > Status > IMEI Information
Note the IMEI. Store it.
4) FIRMWARE NUMBER AND USB DEBUGGING
On phone, go to Menu > Settings > About phone > Build number
Make sure it is 23.5.A.1.291 and tap 7 times on it to unlock Developer options.
If not 23.5.A.1.291, go to Menu > Settings > About phone > Software update > System updates tab
### Don't go further if you are not with 23.5.A.1.291 firmware.
Go to Menu > Settings > Developer options > USB debugging, switch it ON and confirm it in next Dialog.
5) GENERATE BOOTLOADER UNLOCK CODE
From your PC, go to: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
At the bottom of the page, in Select your device: Select Xperia Z3 Compact
Enter your IMEI + check both checkboxes after this.
Copy the unlock code.
6) FASTBOOT MODE
Connect phone to USB.
Open the flash/ folder from my pack.
In Windows address bar, type "cmd" and hit Enter. A Windows Command window will open.
Now type
Code:
adb devices
Command returns: List of devices attached
YT91190206 unauthorized
If no Allow USB debugging? screen shows up on phone, disconnect and reconnect phone.
Check ON always allow from this computer and tap on OK.
Enter command:
Code:
adb reboot bootloader
Phone restarts and a blue light appears next to microSD cable.
Go back to Windows Device Manager.
Xperia has a yellow triangle in Mobile devices and is called S1Boot Fastboot.
Right click on it > Update driver > Browse my computer for drivers > Choose from a list > Force Sony sa0111 ADB Interface Driver.
(https://www.sony.co.uk/electronics/support/articles/SX278901)
Now you can enter command:
Code:
fastboot devices
Command returns: YT91190206 fastboot
7) UNLOCK BOOTLOADER
### All data will be lost
Fill the command with your Unlock Code:
Code:
fastboot oem unlock 0xYOURUNLOCKKEY
confirm with Enter. After 2 seconds, it is displayed OKAY.
Bootloader is unlocked !
8) FLASH TWRP RECOVERY 3.3
Still in fastboot, type in console :
Code:
fastboot flash recovery twrp-3.3.1-z3c-20200212-themuppets.img
. Confirm with Enter.
Wait, then once the confirmed success,
type :
Code:
fastboot reboot
, confirm with Enter
Let phone restart.
Shut it down.
Hold Power + Volume- until phone vibrates and release buttons, wait during TWRP boot.
9) BACKUP CURRENT ROM
You are now in TWRP recovery, Swipe to Allow Modifications.
Go to Backup, select Boot, EFS, System partitions.
Tap on Select Storage and select MicroSD Card.
Swipe to Backup.
Go to TWRP Home screen.
Go to Wipe > Advanced Wipe > Select Dalvik, Cache, Data, Internal Storage, System and swipe to confirm erasing.
Go to Wipe > Format Data, type yes and tap on botton right check icon.
10) INSTALL ROM, GAPPS AND MAGISK
Back to TWRP home menu.
Go to Install > Select Storage > Micro SD card > OK
Select lineage*.zip.
### If you get an error and flash fails, go to Reboot > Recovery and wait for TWRP to reboot.
Add more zip > BitGapps*.zip file,
Swipe to confirm flash.
Wait while Install Zips are flashed.
Root install - Optional:
Go to Reboot > Recovery
Back to TWRP > Go to Install > flash Magisk*.zip
At the end, tap on Wipe Cache/Dalvik, then Reboot System.
Wait during boot.
(Google search app will probably crash during Setup).
11) ROOT (Optional)
Configure Android as you like.
Magisk root starts with Android.
You can manage permissions and extra modules with Magisk Manager app.
If Magisk Manager doesn't download apk. Download official apk here: https://github.com/topjohnwu/Magisk/releases
12) TWEAKS
Go to Settings > About phone > Tap 7 times on Build number.
Go to Settings > System > Advanced > Developer options.
Advanced restart switched ON (Hold power > Restart > Restart to recovery to access TWRP easily later)
Android debugging switched ON
Windows animation scale to Animation scale .5x
Same for Transition animation scale and Animator duration scale to improve reactivity
For faster GPS fix, use GPS Status and Toolbox and download A-GPS data.
Your phone is a rocket, enjoy ;-)
Thanks: LineageOS team, TWRP team, BitGApps team, @NeoArian, @TheHitMan, TopJohnWu
Great tutorial, works like a charm. My Xperia Z3c has a second life !! Tnx !

[GUIDE/TUTORIAL/HOWTO] Sony Xperia Z2 Stock to Android 11

[GUIDE/TUTORIAL/HOWTO] Sony Xperia Z2 Stock to Android 11
[GUIDE/TUTORIAL/HOWTO] Sony Xperia Z2 (sirius/D6502/D6503) Stock to Android 11 R / LineageOS 18.1
This detailed step-by-step guide helps you transform your Sony Xperia Z2 to a powerful one with Android 11.
Netflix and Disney+ work as 2022/09/19, gestures navigation too.
BEFORE GOING FURTHER
- Make sure you are with a Xperia Z2
Go to Menu > Settings > About phone > Model number is: D6502 or D6503.
- Make sure bootloader is unlockable
Open phone app, dial *#*#7378423#*#* > Service info > Configuration > Rooting status: Bootloader unlock allowed: Yes
If No, you can cry, you cannot get further.
In previous menu, go to SIM Lock and make sure all the networks start with [].
If not, ask your Telecom provider the SIM unlock code.
### You must be logged as a Microsoft Windows administrator to run console commands below.
### When you lose control of Xperia Z2, hold Power + Volume+ until phone restarts.
CHANGELOG
v1. Initial release
1) DOWNLOAD FILES
- djibe Xperia Z2 pack: https://bit.ly/djibe-xperia-z2
(contains Z2 USB official drivers + adb + fastboot + recovery TWRP 3.3.1-0 Arian + Magisk 25.2)
+ ROM LineageOS Official 18.1: https://forum.xda-developers.com/t/lineageos-17-1-for-xperia-z2.4054605/
Download latest build: https://download.lineageos.org/sirius
+ BitGApps ARM 11 (v1.3+): https://forum.xda-developers.com/t/custom-gapps-bitgapps-for-android.4012165/post-81060605
Download latest build: https://github.com/BiTGApps/BiTGApps-Release/releases
+ a microSD card. Copy ROM, BitGApps, Magisk on microSD card and insert it in phone.
+ Charge phone to 100%.
2) INSTALL DRIVERS
Right click on Windows Start menu > Device manager.
Right click on Computer's name (top of devices list) > Add legacy hardware.
Set folder's path of my Xperia_Z2_driver/ folder.
Click Next to install.
Reboot Windows.
3) IMEI NUMBER
On phone, go to Menu > Settings > About phone > Status > IMEI Information
Note the IMEI. Store it.
4) FIRMWARE NUMBER AND USB DEBUGGING
On phone, go to Menu > Settings > About phone > Build number
Make sure it is 23.5.A.1.291 and tap 7 times on it to unlock Developer options.
If not 23.5.A.1.291, go to Menu > Settings > About phone > Software update > System updates tab
### Don't go further if you are not with 23.5.A.1.291 firmware.
Go to Menu > Settings > Developer options > USB debugging, switch it ON and confirm it in next Dialog.
5) GENERATE BOOTLOADER UNLOCK CODE
From your PC, go to: https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
At the bottom of the page, in Select your device: Select Xperia Z2
Enter your IMEI + check both checkboxes after this.
Copy the unlock code.
6) FASTBOOT MODE
Connect phone to USB.
Open the flash/ folder from my pack.
In Windows address bar, type "cmd" and hit Enter. A Windows Command window will open.
Now type
Code:
adb devices
Command returns: List of devices attached
CB5A2829N6 unauthorized
If no Allow USB debugging? screen shows up on phone, disconnect and reconnect phone.
Check ON always allow from this computer and tap on OK.
Enter command:
Code:
adb reboot bootloader
Phone restarts and a blue light appears on phone's top border.
Go back to Windows Device Manager.
Xperia has a yellow triangle in Mobile devices and is called S1Boot Fastboot.
Right click on it > Update driver > Browse my computer for drivers > Choose from a list > Force Sony sa0111.
(https://www.sony.co.uk/electronics/support/articles/SX278901)
Now you can enter command:
Code:
fastboot devices
Command returns: CB5A2829N6 fastboot
7) UNLOCK BOOTLOADER
### All data will be lost
Fill the command with your Unlock Code:
Code:
fastboot oem unlock 0xYOURUNLOCKKEY
confirm with Enter. After 2 seconds, it is displayed OKAY.
Bootloader is unlocked !
8) FLASH TWRP RECOVERY 3.3
Still in fastboot, type in console :
Code:
fastboot flash recovery twrp-3.3.1-sirius-20200221.img
. Confirm with Enter.
Wait, then once the confirmed success,
type :
Code:
fastboot reboot
, confirm with Enter
Let phone restart.
Shut it down.
Hold Power + Volume- until phone vibrates and release buttons, wait during TWRP boot.
9) BACKUP CURRENT ROM
You are now in TWRP recovery, Swipe to Allow Modifications.
Go to Backup, select Boot, EFS, System partitions.
Tap on Select Storage and select MicroSD Card.
Swipe to Backup.
Go to TWRP Home screen.
Go to Wipe > Advanced Wipe > Select Dalvik, Cache, Data, Internal Storage, System and swipe to confirm erasing.
Go to Wipe > Format Data, type yes and tap on botton right check icon.
10) INSTALL ROM, GAPPS AND MAGISK
Back to TWRP home menu.
Go to Install > Select Storage > Micro SD card > OK
Select lineage*.zip.
### If you get an error and flash fails, go to Reboot > Recovery and wait for TWRP to reboot.
Add more zip > BitGapps*.zip file,
Swipe to confirm flash.
Wait while Install Zips are flashed.
Root install (Optional):
Go to Reboot > Recovery
Back to TWRP > Go to Install > flash Magisk*.zip
At the end, tap on Wipe Cache/Dalvik, then Reboot System.
Wait during boot.
(Google search app will probably crash during Setup).
11) ROOT (Optional)
### Disney+ and Netflix tested without Root !
Configure Android as you like.
Magisk root starts with Android.
You can manage permissions and extra modules with Magisk Manager app.
If Magisk Manager doesn't download apk. Download official apk here: https://github.com/topjohnwu/Magisk/releases
12) TWEAKS
Go to Settings > About phone > Tap 7 times on Build number.
Go to Settings > System > Advanced > Developer options.
Advanced restart switched ON (Hold power > Restart > Restart to recovery to access TWRP easily later)
Android debugging switched ON
Windows animation scale to Animation scale .5x
Same for Transition animation scale and Animator duration scale to improve reactivity
For faster GPS fix, use GPS Status and Toolbox and download A-GPS data.
Your phone is a rocket, enjoy ;-)
Thanks: LineageOS team, TWRP team, BitGApps team, @NeoArian, @TheHitMan, TopJohnWu

[GUIDE/TUTORIAL/HOWTO] Nvidia Shield Tablet K1 Stock to Android 9

[GUIDE/TUTORIAL/HOWTO] Nvidia Shield Tablet K1 (shieldtablet) to Android 9 / LineageOS 16
This detailed step-by-step guide helps you transform your Nvidia Shield Tablet K1 tablet with Android 7 to a fresher one with Android 9.
### I'll make a few notes using this style: PLEASE READ THEM.
Before going further, make sure you have the correct model.
Go to Settings > About tablet > Model number: SHIELD Tablet K1
Make sure you have latest official updates.
Connect tab to Wi-Fi network.
Go to Settings > About tablet > System upgrade. Download if update is available.
See all my tutorials at https://github.com/djibe/Android-tutorials
CHANGELOG
v1. Initial release
1) DOWNLOAD
- djibe Shield pack: https://bit.ly/nvidiashielddjibepack
(contains USB drivers + fastboot & adb + TWRP 3.7 recovery + Magisk root).
Unzip pack on Windows desktop.
- ROM AOSPExtended Unofficial: https://forum.xda-developers.com/t/...ded-rom-v6-7-unofficial-shieldtablet.4063675/
Download latest build: https://androidfilehost.com/?w=files&flid=306219&sort_by=date&sort_dir=DESC
OR Android 8.1 / LineageOS 15 Unofficial: https://forum.xda-developers.com/t/...for-shield-tablet-omx-camera-working.4276915/
Download latest build: https://androidfilehost.com/?w=files&flid=325335&sort_by=date&sort_dir=DESC
And suitable Bitgapps package
+ BitGApps ARM 9 v1.8+: https://github.com/BiTGApps/BiTGApps-Release/releases/
+ Tablet must charged to 100%.
2) INSTALL WINDOWS DRIVERS AND BACKUP
Go to the folder you unzipped earlier.
navigate to SHIELD_Family_WHQL_USB_driver_201801 > SHIELD.
Right click on android_winusb.inf and select Install. Confirm with OK.
Restart Windows.
Make sure Google/provider account is synchronized.
Backup photos, documents, contacts before going any further (ex: use the backupyourmobile app).
Connect tab to PC and retrieve data.
3) UNLOCK BOOTLOADER OF NVIDIA SHIELD TABLET K1
In Android, go to Settings > About tablet.
Tap 7 times on "Build number", a notification confirms Developer menu is unlocked.
Go to Settings > Developer options and switch USB debugging ON.
Go to my /djibe folder you unziped earlier. In Windows address bar (ie E:\root\Nvidia Shield Tablet K1\djibe\flash), type cmd and hit Enter
to open a Windows Command.
Connect tablet to PC.
Enter command
Code:
adb devices
Command starts adb and returns
Code:
0424916025732008b275 unauthorized
ADB (Android Debug Bridge) has started but tab is waiting for authorization.
On tablet, authorize adb commands from Allow USB debugging dialog: tap on OK.
Then enter command
Code:
adb reboot bootloader
Tab restarts and displays nvboot screen.
Make sure [bootloader](version xxx) is 4.00.2016.04.
Go to Windows Device manager.
Check the Fastboot device > right click to update driver.
Select the manual installation and set SHIELD_Family_WHQL_USB_driver_201801 folder to install fastboot USB drivers.
Installation ends with Android Bootloader Interface.
You may have to unplug-replug tablet in USB.
Tablet should now be seen in Windows Device manager as Android Device > Android Bootloader Interface.
To test, back to Windows command, enter:
Code:
fastboot devices
Command returns
Code:
0424916025732008b275 fastboot
Enter command
Code:
fastboot oem unlock
Using Volume+, select Yes - Unlock bootloader, confirm by pressing Power.
Lowest message is now: LOCK STATE - unlocked
### Unable to run fastboot commands: < waiting for device > ? Go to Windows Device Manager
### While in ADB, driver for Android Device should be named Android Composite ADB Interface. In Fastboot: Android Bootloader Interface
### Click on View > Display hidden devices, right click on Nexus 7 > Uninstall. Reinstall drivers. No success ? Try from another computer
Use Volume keys to select Unlock bootloader and Power to confirm.
Tablet is unlocked.
Press Volume- to select Fastboot protocol and confirm with Power.
4) FLASH TWRP 3.7 RECOVERY
From Windows command, enter:
Code:
fastboot flash recovery twrp-3.7.0_9-0-shieldtablet.img
Command returns Finished. Total time: 0.995s
Back to tablet, use Volume keys to select Recovery mode, confirm with Power.
Wait during recovery boot.
Welcome to TWRP recovery.
Check Never show this screen during boot again and Swip to Allow Modifications.
Go straight to Backup > select Boot, System, Data partitions.
Swipe to Backup and wait during backup.
Back to home screen > Mount (tablet still connected to PC).
You can access tablet's storage folders from Windows Explorer if Data partition is checked and bottom right button show Disable MTP (within TWRP Mount menu).
From Windows Explorer, navigate to SHIELD Tablet > Internal Storage.
Copy TWRP folder and paste it somewhere safe on PC.
This is a perfect backup in case of crash.
5) FORMAT PARTITIONS
On tablet, now go to Wipe > Format data.
Type yes and confirm with bottom right check icon.
Now go to Wipe > Advanced Wipe. Select Dalvik / ART Cache, System, Cache, Data, Internal Storage and Swipe to Wipe.
We cannot flash on wiped partitions. Go to Reboot > Recovery and Swipe to Reboot.
6) FLASH ANDROID + GAPPS (+ MAGISK)
On restart, check Never show this screen during boot again and Swipe to Allow Modifications.
Connect tab to PC.
Back to Mount menu.
Copy ROM + GAPPS (+ Magisk) to Internal storage with Windows Explorer.
Go to TWRP Home > then Install.
Navigate to /data/media.
Select aosp-*.zip,
Add more zips > bitgapps*.zip
and Swipe to force install.
(For root, needed for Netflix : Reboot > Reboot to recovery then Install > Magisk.zip)
Android 9 is installed !
When done message prompts, tap on Wipe Cache/Dalvik and Swipe to Wipe.
Disconnect tab from PC.
Then Reboot System.
Let the tab start (a few minutes).
7) OPTIONAL: ROOT WITH MAGISK
### Only if you flashed Magisk via TWRP recovery
Configure Android as you like.
Magisk root starts with Android.
You can manage permissions and extra modules with Magisk Manager app.
10) OTHER APPS
- You can use GPS Status & Toolbox for faster GPS fix.
- Developer options
Settings > About tablet.
Tap 7 times on build number.
Back to Settings > Developer options
Set Windows animation scale, Transition animation scale and Animator duration scale to .5x
- Tablet not seen by Windows ?
Activate Developer options.
Go to Settings > System > Developer options > Default USB configuration > File transfer
That's it.
Enjoy ;-)
Thanks: @followmsi, @k23m, @nbehary, @DevSwift1, @flex1911, @yattodettaman, @emmett.tsai, TopJohnWu, TWRP team, LineageOS team, BitGApps team
------------------------------------------------------------------------------------------
BOOT TO RECOVERY
Hold Power + Volume- until Droid logo appears and release buttons, this is Bootloader.
Press Volume- twice to show Recovery mode and confirm with Power
I've done this, then struggled a bit to pass safetynet, finally was able to install netflix, but it stays on boot logo and after a while gives me error 501 172. How can I make netflix work?
tandero said:
I've done this, then struggled a bit to pass safetynet, finally was able to install netflix, but it stays on boot logo and after a while gives me error 501 172. How can I make netflix work?
Click to expand...
Click to collapse
Same here.
I need time to investigate.
tandero said:
I've done this, then struggled a bit to pass safetynet, finally was able to install netflix, but it stays on boot logo and after a while gives me error 501 172. How can I make netflix work?
Click to expand...
Click to collapse
I'm back,
this tutorial worked like a charm for me at this hour: https://www.droidwin.com/how-to-pass-safetynet-on-rooted-android-12/
But I did pass the safetynet earlier, it is just the application still gave me error 501, 172. I will try to include missing steps because some are the same as I performed and see if application will run.
tandero said:
But I did pass the safetynet earlier, it is just the application still gave me error 501, 172. I will try to include missing steps because some are the same as I performed and see if application will run.
Click to expand...
Click to collapse
What YASNAC app is writing ?
Added Netflix to Zygisk DenyList and cleared app data ?
yasnac:
basic integrity - pass
cts profile match - pass
evaluation type - basic
no, but just did and rebooted and still there is the same problem (i think, it is still on netflix logo, did not give an error yet), i will update this post soon
edit:
resulted in error 500 172 (https://help.netflix.com/en/node/125643)
tandero said:
yasnac:
basic integrity - pass
cts profile match - pass
evaluation type - basic
no, but just did and rebooted and still there is the same problem (i think, it is still on netflix logo, did not give an error yet), i will update this post soon
edit:
resulted in error 500 172 (https://help.netflix.com/en/node/125643)
Click to expand...
Click to collapse
Add Netflix to Zygisk DenyList (+ other services like in Droidwin post) and clear Netflix app data
Done that once again (cleared app data of netflix and google play store, google play servcies and google services framework).
Unfortunately right now it is stuck on logo, and did not give me the error yet. Which method have you used?
Rom works pretty good on my K1, much better/faster than stock. Battery drain is still there but is nowhere near as bad on a stock rom (I have a brand new battery installed).
For some reason the headphone jack is not compatible with this rom at all (plugging in headphones does nothing). Anyone else notice this?

Categories

Resources