Auto Boot / Start on charge - Samsung Galaxy M21 Questions & Answers

How to make in android 10 or 11 on M21 auto boot after plug charger (start on charge). Unpacking boot.img and changing init.rc doesn't work on android 10, 11.

Related

[UPDATE; MIUI 11 EU 9.12.5 Beta] [MIUI-11 Global ,China, EU ][Erfan GSIs]

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Latest update MIUI-11 here https://forum.xda-developers.com/mi-pad-4-plus/how-to/miui-11-global-china-t3994147/page4 +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++================
Warning:
Backup persist partition
(There are some project that changes your WIFI MAC Address. if it happened you will lost it forever.)
It shows wifi but after entering pwd it shows only saved. Can't connect at all.
-Boot TWRP
-connect your PC with USB
-your computer -Open CMD
cmd>adb shell
cmd>cd /dev/block/platform/soc/c0c4000.sdhci/by-name/
cmd>ls -l /dev/block/platform/soc/c0c4000.sdhci/by-name/
cmd>dd if=/dev/block/platform/soc/c0c4000.sdhci/by-name/persist of=/sdcard/persist.img
(keep your persist.img in the safe place)
--------------------------
How to restore it if you have a problem.
(load your persist.img into sdcard.)
cmd>dd if=/sdcard/persist.img of=/dev/block/mmcblk0p48
================================================================
+Update the best MIUI-11 Android 10/Q For MiPad4 Plus
------------------------------------------------------------------------------
++++++++++ A10 MIUI-11 China Beta ++++++++
------------------------------------------------------------------------------
+- Ported from Redmi Note 5 Pro (Redmi Note 5) using Erfan Tool by O Canal High Tech do VegaDados Bobo...
- MIUI 11 CN Beta 9.10.17
- Updated Security Patch: 2019-10-01
- More Debloated
+-install GApps ( ExliteGapps )
+-a little fix error
------------------------------------
Begin
1. Flash Vendor_for_CN_MIU-I11.zip https://mega.nz/#!9OZDFYxT!ZvU3Qlaw4E8oJFaItyi_IdsNRXCvPg7bksQSvtVpLWM
2. Flash System.img [MIUI11-Q-Aonly-VegaDataTests-10-20191017-ErfanGSI.img]
Download here hurry up https://drive.google.com/file/d/1eqFbi4mou3UxcQkH86y2mcsis2qqdj9h/view
3. Flash "allzygotefix2.zip" https://mega.nz/#F!AGAkXQYY!LPtbReZSBnZBneCMV8dp8Q
4. Flash Magisk latest stable version.
5. Reboot (the fist time boot --hello MIUI 11 CN
Not set wifi --No online during setup android.
6. Enable Developer mode set DPI ( Smallest width about 600 or any ...up to you )
-setup Fingerprint
-make Lock screen shot-cut on home-screen
-setting-->Home Screen Menu
set Swip up on the Home screen to = None
set App vault = Disable
-open wifi
-Flash Fix Treble Sound https://mega.nz/#!5DoHQIoA!vQStmoPfEFceOahuBjr4Wcz1S6espGsDA1NZFRQhLCQ
-New Fix System sound cracked " fixaudiogsi.zip"
https://mega.nz/#!cOZXGarJ!nneoUuB-gPqxBn5OQhFY-KdzIxa7L7Hd2S5niK2N8BE
------------
Make CN to EN
7. Install EdXposed
Magisk Manager install below mods
-Riru-Core (Magisk Mod)
-Riru-EdXposed YAHFA (Magisk Mod)
-EdXposedManager.apk
Edxposed Manager -- install below mod
-HiddenCore (com.cofface.ivader) ---xposed mod
-MIUI Anesthetist
More Debloated by yourself
8.Install Root Explorer (Root) or any you like
-Delete System Apps ( forbidden to delete such as..)
/System/app/MiuiSuperMarket
/System/app/Updater
Etc.
-----------------
Optional step for MicroG /NanoDroid User ( Later )
-----------------
9.Next step install Gapps
"ExLiteGApps-10.0_arm64-20191101_v2.3.zip"
https://sourceforge.net/projects/exlitegapps/files/Android 10/Plus-edition/
Note I use 2.3 version for now
Download and flash with TWRP
Reboot you will founded there are Gboard and Play store app already installed.
House keeping
---Fix sound bug .( by install Viper4A)
**How to install Viper4A with Android 10/Q
1.Download ROOTLESS DRIVER INSTALLER " v4afx-rootless_08.18.2019.zip" from here
https://zackptg5.com/android.php#viper
2.Flash " " v4afx-rootless_08.18.2019.zip"
3.Download archive ViPER4Android.rar extract to your phone storage
.Open and run v4a.apk from inside ViPER4Android folder.
4.open Magisk manager install Audio Modification library and restart
-If your launcher starts to flick on startup, flash that: Google Drive
(https://drive.google.com/file/d/1bWCEX4ri5LK1UwMHVxu6t9AJyLlTQ3wB/view?usp=sharing)
Just flash if launcher flicks on first boot
Fix error " Android System: your vendor image does not match the system......."
-edit (system/vendor----> bulid prop)
change line " ro.vendor.build.fingerprint = xxx to ro.build.fingerprint=xxx
and/or
-edit (system ---> bulid prop)
change " ro.treble.enabled=true" to " ro.treble.enabled=false"
- reboot
END
========================================
++++++++++ A9 MIUI-11 Stable +++++++++
========================================
All files
https://mega.nz/#F!AGAkXQYY!LPtbReZSBnZBneCMV8dp8Q
Info.:
Android Version: 9
- Ported from
Brand: xiaomi
Model: Redmi 7
MIUI 11 Global Stable V11.0.3.0
Security Patch: 2019-10-01
Fingerprint: xiaomi/onc_eea/onc:9/PKQ1.181021.001/V11.0.3.0.PFLEUXM:user/release-keys
-Note
- To login into your Google Account, you need to install Google Play Services, after do that, reboot.
Download: Hurry up it will delete soon
https://drive.google.com/file/d/18O4k8RWAcp_NX1HhUnGl1hvalzrtsMYg/view?usp=sharing
TWRP : TWRP-20191001-3.3.1.0-clover.img = https://mega.nz/#!NTYgnYpR!SghroCrXa9BhT89P3SzOefdBjnSmW2EZ2-gBSTaikqo
Step
1. Flash vendor (_vendor_miui11.zip)
2. Flash System Img (MIUI11-Aonly-VegaDataTests-9-20191025-ErfanGSI.img)
3. Flash permissiver _v4
4. Flash Disable Force Encryption Treble + Magisk
5. Reboot ( Take more times to boot )
6. install google services apk
7. Fix All Sound------------
-Flash Fix Treble Sound https://mega.nz/#!5DoHQIoA!vQStmoPfE...GsDA1NZFRQhLCQ
-New Fix System sound cracked " fixaudiogsi.zip"
https://mega.nz/#!cOZXGarJ!nneoUuB-g...7Hd2S5niK2N8BE
[Xiaomi.EU's MIUI 11 (Android Q/10) GSI]
--------------------------------------------------
- Ported from Redmi K20
- MIUI 11 BETA ver. 9.10.17
- Android 10
-- Updated Security Patch: 2019-10-01
- Xiaomi.EU include GAPPS, so, to use Google Play and these things, you need to install Google Play Services
-Download -ARM64 Aonly https://drive.google.com/file/d/19q6lPqGbyDaRdtzhN_dHsDdOkWcXiST8/view?usp=sharing
Step https://mega.nz/#F!AGAkXQYY!LPtbReZSBnZBneCMV8dp8Q
1. Flash vendor ( _vendor-MIUI.EU.zip )
2. Flash System.img ( MIUI11-EU-Q-Aonly-VegaDataTests-10-20191017-ErfanGSI.img )
3. Flash allzygotefix2.zip
-flash magisk
4. Reboot --(Take more time to boot at redmi logo)
5. install google services (gms)
6.reboot
7.login google account
8.Fix sound error ( install Viper4A)
9.Enable Developer mode adjust DPI go back to setting set ICon size
===============
----Supported GCam 7
----Tips:
- If you get some visual bugs, try to enable "Disable HW overlays" in Developer Mode
----Work function
DT2C/W
Face unlock
Fingerprint unlock
Full screen display
power boot menu
etc... you will test it
===================================
Very important
You will founded error sound, please install viper4A. ( howto down below)
**How to install Viper4A with Android 10/Q
1.Download ROOTLESS DRIVER INSTALLER " v4afx-rootless_08.18.2019.zip" from here
https://zackptg5.com/android.php#viper
2.Flash " " v4afx-rootless_08.18.2019.zip"
3.Download archive ViPER4Android.rar extract to your phone storage
.Open and run v4a.apk from inside ViPER4Android folder.
4.open Magisk manager install Audio Modification library and restart
5.Fix Sound bug
-Flash Fix Treble Sound https://mega.nz/#!5DoHQIoA!vQStmoPfE...GsDA1NZFRQhLCQ
-New Fix System sound cracked " fixaudiogsi.zip"
https://mega.nz/#!cOZXGarJ!nneoUuB-g...7Hd2S5niK2N8BE
https://sourceforge.net/projects/zjrdroid/files/GSIs/
Remark
ZJRDroid GSIs Updates, [31.10.19 22:51]
Hello everyone, it is with great sadness that I inform you that I am pausing all my work with GSIs, because currently I have no time to GSIs. We will continue to have GSIs, but infrequently.
Thank you for understand. @ZJRDroid
tom.android said:
[Xiaomi.EU's MIUI 11 (Android Q/10) GSI] *****recommend
- Ported from Redmi K20
- MIUI 11 BETA ver. 9.10.17
- Android 10
-- Updated Security Patch: 2019-10-01
- Xiaomi.EU include GAPPS, so, to use Google Play and these things, you need to install Google Play Services
-Download -ARM64 Aonly https://drive.google.com/file/d/19q6lPqGbyDaRdtzhN_dHsDdOkWcXiST8/view?usp=sharing
Step https://mega.nz/#F!AGAkXQYY!LPtbReZSBnZBneCMV8dp8Q
1. Flash vendor ( _vendor-MIUI.EU.zip )
2. Flash System.img ( MIUI11-EU-Q-Aonly-VegaDataTests-10-20191017-ErfanGSI.img )
3. Flash allzygotefix2.zip
4. Reboot
5. install google services (gms)
===============
Very important
You will founded error sound, please install viper4A. ( from Magisk' repo --ViPER4Android_FX_Legacy-v4.4.zip) only its driver that we want cause v4a not support Android 10
----Supported GCam 7
----Tips:
- If you get some visual bugs, try to enable "Disable HW overlays" in Developer Mode
----Work function
DT2C/W
Face unlock
Fingerprint unlock
Click to expand...
Click to collapse
Tablet ended in Bootloop with this
Everlite92 said:
Tablet ended in Bootloop with this
Click to expand...
Click to collapse
1.First thing first please install TWRP-20191001-3.3.1.0-clover.img = https://mega.nz/#!sHoXlaDK!ZIfuRrtl7...diEd-6iQS2YFNg
2.Clean Flash Wipe Advanced ( Davik + cache + data + system + vendor) and Format Data
( Not forgotten to backup your data before )
3.Reboot back to recovery do step to install gsi
Note --- Test with my Mi pad 4 Plus only
tom.android said:
1.First thing first please install TWRP-20191001-3.3.1.0-clover.img = https://mega.nz/#!sHoXlaDK!ZIfuRrtl7...diEd-6iQS2YFNg
2.Clean Flash Wipe Advanced ( Davik + cache + data + system + vendor) and Format Data
( Not forgotten to backup your data before )
3.Reboot back to recovery do step to install gsi
Note --- Test with my Mi pad 4 Plus only
Click to expand...
Click to collapse
Did everything, still bootloops =(
Everlite92 said:
Did everything, still bootloops =(
Click to expand...
Click to collapse
ok please wait I will extract current boot.img,vendor.img from my pad4plus. use twrp flash my boot.img and vendor.img then flash system MIUI11-EU-Q-Aonly-VegaDataTests-10-20191017-ErfanGSI.img don't forget to flash allzygotefix2.zip
https://mega.nz/#F!oTZzBKTB!sugkCk_ov7gcfdOuJeGV6g
Android 9 GSI boots up fine, only 10 doesnt want to
---------- Post added at 06:37 AM ---------- Previous post was at 06:15 AM ----------
tom.android said:
ok please wait I will extract current boot.img,vendor.img from my pad4plus. use twrp flash my boot.img and vendor.img then flash system MIUI11-EU-Q-Aonly-VegaDataTests-10-20191017-ErfanGSI.img don't forget to flash allzygotefix2.zip
https://mega.nz/#F!oTZzBKTB!sugkCk_ov7gcfdOuJeGV6g
Click to expand...
Click to collapse
Bootscreen is completly black. normal?
Everlite92 said:
Android 9 GSI boots up fine, only 10 doesnt want to
---------- Post added at 06:37 AM ---------- Previous post was at 06:15 AM ----------
Bootscreen is completly black. normal?
Click to expand...
Click to collapse
no firstboot mi logo then Redmi logo wait (take more time)
tom.android said:
no firstboot mi logo then Redmi logo wait (take more time)
Click to expand...
Click to collapse
Mi Logo appears, but no redmi logo. stays black. will wait longer but for now nothing happens
i hear the windows sound that a device is plugged in but no redmi logo.
Boot in mi pad 4 8"
Brightness no work and imei error id
Great work
Enviado desde mi ZTE A2017X mediante Tapatalk
davidroid1 said:
Boot in mi pad 4 8"
Brightness no work and imei error id
Great work
Enviado desde mi ZTE A2017X mediante Tapatalk
Click to expand...
Click to collapse
try Brightness Fix (mount vendor befor flash)
https://mega.nz/#F!5fBlFYxD!830A7OTeXkVX0jSZ-TfRXw
the twrp mega link is broken... (wrong c/p) "..." in link
here a working link:
TWRP-20191001-3.3.1.0-clover_mokee.img
Everlite92 said:
Mi Logo appears, but no redmi logo. stays black. will wait longer but for now nothing happens
i hear the windows sound that a device is plugged in but no redmi logo.
Click to expand...
Click to collapse
for me too. just a black screen and the windows sounds comes...
(with boot.img and vendor.img)
Mi Logo appears, then black screen, after some time windows sound, that a device was pluggin in
Windows Device Manager Shows: Qualcomm HS-USB Diagnostics 900E
deepblue2000 said:
for me too. just a black screen and the windows sounds comes...
(with boot.img and vendor.img)
Mi Logo appears, then black screen, after some time windows sound, that a device was pluggin in
Windows Device Manager Shows: Qualcomm HS-USB Diagnostics 900E
Click to expand...
Click to collapse
The new GSI's here with Android 10 are ending in blackscreen too. Only Android 9 Miui GSI Seems to work. LOS 17 GSI runs great. Don't get it....
I got it working now... but I have to think about it how I did it...
- first do not install the vendor.img which has @tom.android posted seperated
- I just installed the boot.img
So that the RedMi Logo shows up... there was a reboot loop... I let it as it is.. it rebooted many many times
In the meantime, I built a bathroom cabinet ... then I took a look at the MiPad4Plus, and there was no
reboot loop anymore, but it stuck at the Redmi Logo...
Then I rebooted twrp again, flashed again the rom.img and let it boot... and boot does work now..
but I cant activated cause, the wifi menu was missing, the back to twrp and installed allzygotefix2.zip again.
now wifi works and I could activate it...
deepblue2000 said:
I got it working now... but I have to think about it how I did it...
- first do not install the vendor.img which has @tom.android posted seperated
- I just installed the boot.img
So that the RedMi Logo shows up... there was a reboot loop... I let it as it is.. it rebooted many many times
In the meantime, I built a bathroom cabinet ... then I took a look at the MiPad4Plus, and there was no
reboot loop anymore, but it stuck at the Redmi Logo...
Then I rebooted twrp again, flashed again the rom.img and let it boot... and boot does work now..
but I cant activated cause, the wifi menu was missing, the back to twrp and installed allzygotefix2.zip again.
now wifi works and I could activate it...
Click to expand...
Click to collapse
So you wiped everything (vendor cache etc.) and then only flashed the boot img without vendor? could you describe every step you did?
yes I did wipe everything,
but I think you can follow the first steps how to install it from tom.android.
keep it in bootloop with the redme logo and go something to drink for 30-50minutes...
I think there are no other steps needed (seperated boot and vendor image from tom.android)
I will try it tomorrow again, to get a proof that it is working as tom.android wrote it.
but Chrome is freezing/lagging alot... and the homescreen does not rotate anymore.
deepblue2000 said:
yes I did wipe everything,
but I think you can follow the first steps how to install it from tom.android.
keep it in bootloop with the redme logo and go something to drink for 30-50minutes...
I think there are no other steps needed (seperated boot and vendor image from tom.android)
I will try it tomorrow again, to get a proof that it is working as tom.android wrote it.
but Chrome is freezing/lagging alot... and the homescreen does not rotate anymore.
Click to expand...
Click to collapse
i didnt mange to get to the redmi Logo. Mi Logo, blackscreen Reboot, Mi Logo Blackscreen. stays black.
the Redmi Logo shows up, if you follow the steps from Page 1 ..
but do not flash the vendor.img
edit:
I wanted to do it again, to understand what I did, so I wiped everything and formated data again
but now it works from the beginning.
Edit: chrome still freezes/crashes, but Edge works perfect
Edit: Bluetooth does not work, always crashing and brightness does not work

[GUIDE][TWRP][ROOT][FLASH] Xiaomi MI MIX3 5G Android 9 root, diagnostic port, codes

UNLOCK BOOTLOADER & ROOT DEVICE
1. Unlock Bootloader (Xiaomi procedure, 7 days via MI Unlock tool)
https://fossbytes.com/how-to-unlock-bootloader-on-xiaomi-devices-using-mi-unlock-tool/
2. Fastboot flash recovery TWRP and root the android 9 rom
(based on https://www.cyanogenmods.org/forums/topic/twrp-download-for-mi-mix-3-5g-and-rooting-guide/)
2.1 Install ADB for Windows and Xiaomi Drivers
2.2 Download TWRP for MI MIX3 5G Android 9 PIE - twrp-3.3.1-0-andromeda.img
https://androidfilehost.com/?fid=6006931924117900528
(based on https://forum.xda-developers.com/showthread.php?t=3941867)
2.3 Rename file to recovery.img and put it into ADB folder on Windows
2.4 Turn off the phone, Reboot to Fastboot (Volume Down + Power)
2.5 Plug the phone into computer
2.6 Open Windows CMD
2.7 Go to your ADB directory
2.8 Type the commands in cmd
cd C:/adb
fastboot devices
fastboot flash recovery recovery.img
2.9 Download Disable Force Encryption and Magisk Zip
https://www.cyanogenmods.org/downloads/disable-force-encryption-twrp-flashable-zip-treble/
https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
2.10 Copy the files to USB memory stick formatted to FAT32, you should have two files:
Magisk-v20.3.zip
DisableForceEncryption_Treble.zip
2.10 Turn on phone to recovery (Volume Up + Power)
2.11 Go to Menu > Wipe > Format Data > "yes" (this will format the data)
2.12 Go to Menu > Advanced > Fix Contents
2.13 Plug in your USB stick with files via OTG USB C connector
2.14 Go to Menu > Install > Select Storage > OTG
2.15 Select Magisk-v20.3.zip
2.16 Add more zips and select DisableForceEncryption_Treble.zip
2.17 Flash the zips and reboot device
UPDATE FOR TWRP
To gain root you may now only boot the recovery instead of flashing and proceed with flashing Magisk and Disable Force Encryption.
# fastboot boot recovery.img
TWRP 3.3.1-1 Xiaomi Mi Mix 3 5G (andromeda) by mauronofrio:
- Added Android 10 Support;
- Fixed compatibility.zip errors;
- Make the TWRP able to boot directly from fastboot;
- Removed TWRP app;
- Added dtbo and persist target to flash image menu;
- Fixed some problems with Stock ROMs flashing.
Download TWRP: https://androidfilehost.com/?fid=4349826312261701065
Thanks to @mauronofrio
## QUALCOMM DIAGNOSTIC PORT AND TOOLS
(based on https://forum.xda-developers.com/oneplus-7-pro/help/force-enable-volte-vowifi-t3934227)
1.1 Download
https://androidfilehost.com/?fid=11410963190603864074
https://androidfilehost.com/?fid=11410963190603912872
QPST_2.7.474.zip
QUD.WIN.1.1 Installer-10037.3 Setup.zip
Just use the standard settings and click on OK, next,
1.2 OPEN DIAGNOSTIC PORT FOR THE SESSION FOR QPST (WINDOWS CMD ADB)
cd C:/adb
adb devices
adb shell
su (you need to add root permisions on android screen)
setprop sys.usb.config diag,serial_cdev,rmnet,adb
1.3 Once The Port is up you can use your Qualcomm Tools.
1.4 For example you can change the VOLTE/VOWIFI settings with PDC Tool
Select your device, right click on "Commercial" and deactivate Sub0 and Sub1
Click on Oversea-Commercial_DS again and click on remove -- DO NOT CLICK REMOVE, JUST DE-ACTIVATE IT - your settings stick after a reboot, so no longer need to remove the profile (at least on my device my profiles stick, also makes it easier to go back to default)
## FORCE ENABLE VOLTE AND VOWIFI BUTTONS IN ANDROID
cd C:/adb
adb devices
adb shell
su (you need to add root permisions on android screen)
setprop persist.dbg.ims_volte_enable 1; setprop persist.dbg.volte_avail_ovr 1; setprop persist.dbg.vt_avail_ovr 1; setprop persist.dbg.wfc_avail_ovr 1
######################## CODES FOR THE DIALER #####################
1. Diagnostic codes:
*#*#6484#*#*
2. Testing
*#*#4636#*#*
3. Calendar
*#*#225#*#*
4. Google Play services
*#*#426#*#*
5. Rlz Debug Ul.
*#*#759#*#*
6. Imei Information
*#06#
Enter these codes into the Dialer to enable the options in Settings. (Settings < SIM Cards & mobile networks < Sim Card Settings < VoLTE Enabled/Make Calls using WLAN) . THEY ARE ENABLED BY DEFAULT
VoLTE *#*#86583#*#*
VoWIFI *#*#869434#*#*
##### FLASH ROM AGAIN IF ANYTHING FAILS VIA FASTBOOT ###
01. You need to have unlocked bootloader
02. Download latest ROM based on your model (mine is 5G EEA n78)
Mi MIX 3 5G EEA Stable Fastboot V10.3.21.0.PEMEUXM 9.0 Download 2.5 GB
https://xiaomifirmwareupdater.com/miui/andromeda/
03. Download Mi Flash Tool
https://www.xiaomiflash.com/
04. Open the Mi Flash Tool, install drivers (if the install fails go to Mi Flash directory and create folder logs and log; open app again and install drivers)
05. Unpack the rom fastboot tgz
06. Select the Folder where the rom is unpacked (it should containg numerous of flash files)
07. Tick the Clear Data at the bottom (don't choose the clear data and lock cause it will lock your bootloader again)
08. Turn off the phone, Reboot to Fastboot (Volume Down + Power)
09. Plug the phone into computer
10. Click refresh, phone should be visible
11. Click flash
12. After successfull flash there could be an error fastboot lock (don't bother since you want to be unlocked)
13. If you want root flash twrp and magisk again
Thank you so much for this guide! Can I flash gsi rom with this? Sorry for the noob question
Jktfong said:
Thank you so much for this guide! Can I flash gsi rom with this? Sorry for the noob question
Click to expand...
Click to collapse
I have not tried to load the GSI ROM on that model. I guess there was some other topic under ROM development opened for that
https://t.me/mimix3_5G feel free to join this telegram group chat if you need any help we are all running a custom gsi with aosp 9 and 10 (pixel experience) @mxtuu222
Since last 20.1.9 update lost ecryption in twrp. Installed the latest 3.3.1.1.perseus. since then got loops to twrp. But if i try to launch
fastboot boot C:\mimix\twrp-3.3.1-1-perseus.img it boots to the system.
How to fix it?
dont want to use my PC to start the system every time.
Regards
Most probably you get bootloop, because after the update the partition was encrypted, you need to either flash DisableForceEncryption_Treble.zip or make a backup and install fresh OS with the guide from scratch,
Hey. help me with my problem inversion of the axes of the accelerometer https://forum.xda-developers.com/android/help/inversion-rotated-x-y-axes-accelerometer-t4059277
flash persist did not help me
Root Mix 3 5G
Hello,
i have some problems at point of rooting. my phone accept twrp recovery it's fully working and stays as recovery but when i try to istall magisk 20.4, 19.3 or whatever it will stuck at Mi screen and won't boot. when i reflash original boot img it will boot again but no root. can someone help me?
thank you
Thank you so much for this guide Without it I would have gone a little crazy trying to do a simple reset and update of my phone Saved for reference and I always come back.

Problem upgrading from Android 9 to 10 with dm-verity and force encrypt disabled

Hi all, I have a Nokia 7 Plus TA-1046 and I received the update of Android 10 but it has forcibly downloaded itself (with automatic update disabled)
In TWRP I:
- disabled force encryption removing fields in /vendor/etc/fstab.qcom
- created/copied a .magisk file in /cache (this one path is when we are in TWRP while, when Android loads, the file (if created) resides in /data/cache, because for us /cache is a link of it) with inside it:
Code:
KEEPVERITY=false
KEEPFORCEENCRYPT=false
- installed Magisk v20.3
These steps worked flawlessy in Android 9 but not for Android 10; after android one logo, it reboots in loop (after a few tries, when it switchs automatically to inactive slot with Android 9, system started up normally)
Do you have any ideas or suggestions (obviously I want to find first a solution before a complete format :angel: ) on how to solve the above problem? Maybe related with the way of encryption in Android 10, different of one in Android 9, as described here and here?
death_jax said:
Hi all, I have a Nokia 7 Plus TA-1046 and I received the update of Android 10 but it has forcibly downloaded itself (with automatic update disabled)
In TWRP I:
- disabled force encryption removing fields in /vendor/etc/fstab.qcom
- created/copied a .magisk file in /cache (this one path is when we are in TWRP while, when Android loads, the file (if created) resides in /data/cache, because for us /cache is a link of it) with inside it:
Code:
KEEPVERITY=false
KEEPFORCEENCRYPT=false
- installed Magisk v20.3
These steps worked flawlessy in Android 9 but not for Android 10; after android one logo, it reboots in loop (after a few tries, when it switchs automatically to inactive slot with Android 9, system started up normally)
Do you have any ideas or suggestions (obviously I want to find first a solution before a complete format ) on how to solve the above problem? Maybe related with the way of encryption in Android 10, different of one in Android 9, as described here and here?
Click to expand...
Click to collapse
Me too

[SM-T505,T500,T507] Samsung Galaxy Tab A7 LTE GSI flashing guide [UPDATED] [Android 13 GSIs]

Just before we get started, I would like to say that you will not brick your device if you follow the steps as is without any, and I mean any deviations.
Read what works and what doesn't first!
Okay, enough preface, let's jump right in!
Firstly, pre-requisites(hardware):-
1.A micro SD card
2. A windows PC, windows 7 or later (32 or 64 bit)
3. A USB Type-C cable
4. A galaxy tab A7 running the latest one ui 4.x build
Pre-requisites (software on PC), you'll need:
1.Stock firmware:
Samsung Galaxy Tab A7 (LTE) Firmware Download SM-T505 Free Download
Samsung Galaxy Tab A7 (LTE) Firmware Download SM-T505 Free Download ⭐ Official and fast update ⭐ Max speed and free download ⭐ Best Samsung Galaxy website
samfw.com
Download the latest firmware from here
1.1 After downloading it, extract it on the PC and copy the AP file to your micro SD card, as we need it on the tab later
2. Samsung USB drivers
download them from here and install them on your pc, it'll take a while but it's essential for this process
https://developer.samsung.com/android-usb-driver
2.1 Reboot your PC after installing the drivers
3 Download the twrp.img from below
https://forum.xda-developers.com/t/...axy-tab-a7-10-4-sm-t500.4358595/post-87038713
(Yes, correct, download the .img as we won't be using Odin to flash custom recovery)
Copy this to your SD card as well
4. Download Canary apk of magisk delta from link below
https://huskydg.github.io/magisk-files/
Copy the apk to your microSD which has the previously extracted AP file
5. Download dynapatch from the file attached below credits to @redymedan for developing this!
Then move it to your micro SD card
6. Download the GSI image of your choice, and (make sure that it doesn't exceed 3.3GB after extraction) extract it from .img.xz format to .img format and then copy it to the micro SD card
(also, if it exceeds 3.3 GB, don't worry,follow the steps in important notes on how to expand your system partition to accommodate larger GSIs...)
7. If your gsi doesn't have gapps or you want to flash a system mod then download a vndklite variant of your gsi, as system is mounted as RW in vndklite gsi, where's system is mounted as read only in normal gsi images
8. Download Odin and extract it
https://samsungodin.com/
9. Download SmartPack kernel manager apk and copy it to the sdcard too
https://github.com/SmartPack/SmartPack-Kernel-Manager/releases
(We will be using this to flash twrp in a later step)
10. Download the brightness and watchdog fix module from below
Copy it to SD card
(Optional) 11. If you don't want your install storage encrypted, download the following two zips and move them to SD card,
[Pie/10/11] [System-as-root] Multidisabler: disables encryption, Vaultkeeper, auto-flash of stock recovery, proca, wsm, cass, etc.
The multi-disabler started life on the Exynos S10 range, the first Samsung devices to launch with Android 9 (Pie). Since then, it has grown to support a great many Samsung devices running either Android 9, 10 or 11, and with either an Exynos or a...
forum.xda-developers.com
https://zackptg5.com/downloads/archive/Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip
Process to flash GSI:
1) Unlock the bootloader
To unlock the bootloader, follow the steps from here...
https://forum.xda-developers.com/t/...4-unlock-bootloader-root-with-magisk.4185993/
2) After that patch the AP image we copied to the micro SD card earlier and then copy the patched ap to the micro sd card and then to the pc. Steps of patching can be found here
https://forum.xda-developers.com/t/...4-unlock-bootloader-root-with-magisk.4185993/
3) After patching the AP image, copy the patched image from downloads folder to your micro sd card
4. After that turn your device off
5. After the device is fully powered off, hold both volume up and volume down buttons simultaneously and connect it to your pc, then click volume up button once during the prompt to enter download mode
6) After entering download mode, select the BL, CP, and CSC (do not choose HOME_CSC!) files from the extracted firmware, after doing that, for AP, select the patched AP file we copied earlier and then click start on Odin.
7. After the flash is successfully finished, reboot your device and set it up, after setup install the magisk Canary apk from the micro SD card
8. After installing the apk, open it, and click 'OK' on additional setup prompt and the device will reboot after a few seconds
9. After the reboot completes, install the smart pack kernel manager apk we put in the SD card earlier, then open it, then, navigate to
Tools>Backup>(swipe to the right where it says "boot partition")> it changes to recovery partition> click on the plus symbol> two options show up, select the flash recovery option> select the twrp image from SD card (file manager opens automatically)> click on "select" and then flash it...
10. Then open magisk delta app, and reboot to recovery
11. After rebooting to recovery, flash dynapatch
12. Then reboot to recovery (very important)
(Optional)12.1 Flash multidisabler we downloaded earlier, along with disable dm Verity to disable FBE on integral storage. Also, if you intend to disable encryption, do flash both the zips not one.
13. Then select install>Micro SD Card>install image> select GSI image you downloaded> select System Image > swipe to flash, then factory reset and wipe data from within twrp (thank you @shorty9210 for the factory reset part!)
14. Here, hectic nature of you must be used...
15. Boot to your GSI, and set it up as fast as possible as a watchdog crash is triggered every 30-50 seconds which causes a reboot
16. Install magisk apk and reboot for additional setup
17. After reboot, open magisk and install the brightness and watchdog fix module
18. Reboot the device after installing module
19. At this point you won't get random reboots
20. Now you can enjoy your GSI...
Now, onto what works and what doesn't...
Working:
Boot
Touchscreen
Sound
WiFi
Bluetooth
Mobile data
Camera
Microphone
Doze
OTG
Power buttons
Volume buttons
Charging
Rotation
Gyroscope
Calling(works with VoIP)
Not working:
VoLTE
In call audio (in case of Sims)
Auto brightness
Offline charging
Untested:
Cast
USB tethering
MTP
Tested roms:
1. Trebledroid GSIs (don't use, as magisk doesn't work and gapps can't be properly installed for some reason)
2. Pixel experience ( magisk works and it's stable after running the watchdog command)
3. Google GSI (vanilla and Gapps, not recommended, due to it being extremely barebones and not having fixes for DT2W, and headsets)
4. Project Elixir (needs watchdog module, but mostly stable)
Now credits!
To team XDA for keeping this forum alive and well,
@phhusson for developing GSI images that actually made this possible
@topjohnwu for creating magisk
@agreenbhm for the TWRP image and for helping me,
@duyfken for correcting the firmware links, and also, for informing me to add the type of GSI for this device!
@shorty9210 for a correction
@huskydg for magisk delta development
And finally all other members of XDA for taking interest in the modding scene,
Thank you!
I'm quite new to the GSIs as a whole, so, I still can't find any workarounds for issues, I can only list them for everyone to know...
Important notes:
1. If your GSI has phh settings, do the following...
1.1 Enable double tap to wake
Settings>Phh Treble settings>Samsung features >Tick "Enable difficult tap to wake"
1.2 For making headphones work,
Settings>Phh Treble settings>Misc features>Tick "Use alternate way to detect headsets"
Also, Enable developer options>Enable "Disable Bluetooth A2DP hardware offload" and restart when prompted
2. If the gsi ROM you're trying to flash doesn't fit on current system partition, then,
*This process will wipe your system partition and will reset your recovery, so, keep the dynapatch zip and gsi image on hand, you will need it!*
Download latest platform tools from AOSP site, link below
https://developer.android.com/studio/releases/platform-tools
https://forum.xda-developers.com/t/...xy-tab-a7-10-4-sm-t500.4371123/#post-86050459
a) download the product.img from above link
b)Reboot to recovery from magisk app, then, in twrp, click on 'Reboot' button
c) click 'fastboot'
d) the device will now reboot and then after a few seconds, a twrp ui will appear with the text 'fastboot'
e) connect your device to a pc with the latest version of platform tools and drivers installed
f) run these commands in order
fastboot flash product product.img
fastboot erase system
fastboot resize-logical-partition system 3940000000
fastboot reboot recovery
g) after doing so, again reboot to recovery, flash dynapatch zip first
h) again reboot to recovery and flash your gsi image
i) this time images up to 3.9GB will be flashable
j) no need to format data if you're flashing same rom
And that's it you'll be able to enjoy bigger ROMs on your Galaxy Tab A7!
3. follow steps from here to get 4-speaker audio!
Post in thread '[ROM][SM-T500] Samsung Galaxy Tab A7 10.4 (2020) - LineageOS 19.1 (and TWRP 3.6.1)'
[ROM][SM-T500] Samsung Galaxy Tab A7 10.4 (2020) - LineageOS 19.1 (and TWRP 3.6.1)
Hello world, I have successfully built LineageOS 19.1 with Gapps for the SM-T500 (Tab A7 10.4 2020) using Andy Yan's LOS GSIs. Lineage is current as of 3/24/2022. I have also compiled TWRP version 3.6.1, based on Android 11 (previous release...
forum.xda-developers.com
4. Previously, we had to use either some magisk modules or SmartPack kernel manager to enable swap so that the device won't crash under load, but, now, 2GB of swap is allocated by default, which is plenty sufficient for daily usage, so, i recommend you not to use any modules or services that enable swap....
5. If zygisk is enabled after module is installed, some users reported that it breaks brightness fix, to remedy that, try flashing permissiver_v5 from below in twrp
Permissiver_v5.zip | by erfanoabdi for Generic Device/Other
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
androidfilehost.com
6. Also, please do not rely on extra dim if brightness fix module won't work, try above step , i did this previously and the edges of my screen got ruined(ghost imaging) due to the heat...
7. Please refrain from using any modules that spoof the device identity as it causes the phh Treble app to not display "Samsung features" at which point you can't use DT2W, so beware...
8. Recommended settings in magisk delta
a)magisk delta>settings>hide magisk app, you will be prompted to allow magisk delta to install apps, allow it and start the hiding> now, the magisk app will be under an alias you chose
b)magisk delta>settings>Zygisk(enable)
c)magisk delta>settings>Bootloop Protection (enable)
d)magisk delta>settings>Magisk Hide
9. Passing safetynet on Gapps GSIs
a)magisk delta>settings>Configure MagiskHide> now, tap on three dots, elect show system apps>then tick the boxes next to the following apps
Google Play Store, Google Play Services, Google Services Framework
b) Install the magisk module "shamiko" version 0.5.2, as later version causes Google services to crash... Download link below(warning, shamiko 0.6 causes all Google services to crash, also, is no longer working with magisk delta, so, use magiskhide present in the delta version)
https://github.com/LSPosed/LSPosed.github.io/releases/tag/shamiko-120
(Optional) You can also install this module below after installing shamiko for a higher chance to not fair safetynet randomly...
Releases · kdrag0n/safetynet-fix
Google SafetyNet attestation workarounds for Magisk - kdrag0n/safetynet-fix
github.com
c) After installing the module, reboot
d) clear data and cache for Google Play Store, Google Play Services, Google Services Framework
e) at this point you should pass safetynet successfully
10. Just a heads up, be sure to only download GSIs from the list in @phhusson GitHub, i.e, link below,
https://github.com/phhusson/treble_experimentations/wiki/Generic-System-Image-(GSI)-list
And, do not spend money on people that claim to give the "best GSIs" or whatever gibberish they use, only spend money as a donation to a developer, if you really enjoy their work, and would like to support them to keep up thier interest!
I had to mention this to put you on the cautious side of things!
11. Taskbar height is incorrect on some roms, and the magisk module from below link fixes it, credits to @wEER1234 for mentioning this, and to @Coxxs for delaying developing it!
Releases · Coxxs/hide-tablet-taskbar
A Magisk module to hide tablet gesture bar and more [Android 12.1+] - Coxxs/hide-tablet-taskbar
github.com
12. This is for improving the longevity of your device
12.1 To prolong the lifespan of your battery, install the "acc" magisk module, reboof, open a root terminal and run the following commands
acc -s mcc=200
acc -s mcc=3900
The first command limits the charging current to 200 mA and charges the battery at a power of 1.8W which greatly reduces the strain and heat evolved by the battery, and the second command only allows your battery to charge up to 3.9v (52%), as according to battery University, maximum cycles can be achieved by maintaining the voltage battery 3.9 and 3.7
12.2 This is to reduce the Power and heat evolved by the processor
Install smart pack kernel manager, grant root access, go to cpu section, and do the following
Big cpu cores:
Maximum frequency:1056Hz
Minimum frequency:902Hz
Little cpu cores:
Maximum frequency: 1017Hz
Minimum frequency:864Hz
At these frequencies the device stays stable and relatively less hot than at higher clocks...
* This guide is present for legacy reasons, use the guide in the first post *
Just before we get started, I would like to say that you will not brick your device if you follow the steps as is without any, and I mean any deviations.
Read what works and what doesn't first!
Okay, enough preface, let's jump right in!
Firstly, pre-requisites(hardware):-
1.A micro SD card
2. A windows PC, windows 7 or later (32 or 64 bit)
3. A USB Type-C cable
4. A Samsung galaxy tab a7 running Android 11 with January 2022 Security Patch
Pre-requisites (software on the pc), you'll need:-
1.Stock firmware:
Samsung Galaxy Tab A7 (LTE) Firmware Download SM-T505 Free Download
Samsung Galaxy Tab A7 (LTE) Firmware Download SM-T505 Free Download ⭐ Official and fast update ⭐ Max speed and free download ⭐ Best Samsung Galaxy website
samfw.com
from this link, select your respective country and download the firmware with January 2022 security patch level, then download it
1.1 After downloading it, extract it on the PC and copy the AP file to your micro SD card, as we need it on the tab later
2. Samsung USB drivers
download them from here and install them on your pc, it'll take a while but it's essential for this process
Samsung Android USB Driver | Samsung Developers
You need the driver only if you are developing on Windows and want to connect a Samsung Android device to your development environment over USB.
developer.samsung.com
2.1 Reboot your PC after installing the drivers
3. Download TWRP 3.6.1 beta 5 from here
[ROM][SM-T500] Samsung Galaxy Tab A7 10.4 (2020) - LineageOS 19.1 (and TWRP 3.6.1)
Hello world, I have successfully built LineageOS 19.1 with Gapps for the SM-T500 (Tab A7 10.4 2020) using Andy Yan's LOS GSIs. Lineage is current as of 3/24/2022. I have also compiled TWRP version 3.6.1, based on Android 11 (previous release...
forum.xda-developers.com
this is our custom recovery
4. Download magisk Canary apk from here
GitHub - topjohnwu/Magisk: The Magic Mask for Android
The Magic Mask for Android. Contribute to topjohnwu/Magisk development by creating an account on GitHub.
github.com
And copy the apk to your micro SD card
5. Download the SM-T500-GSI-kernel.zip from here
[Guide][SM-T500] Galaxy Tab A7 10.4 - Flash LineageOS or any other GSI rom.
These are instructions to flash LineageOS 18.1 GSI builds on our SM-T500. The same instructions should work for any other GSI rom out there. Some instructions here, like flashing an empty product.img and resizing system partition, are not...
forum.xda-developers.com
And copy this file to your micro SD card
6. Download dynapatch from the file attached below credits to @redymedan for developing this!
Then move it to your micro SD card
7. Download the GSI image of your choice, and (make sure that it doesn't exceed 3.3GB after extraction) extract it from .img.xz format to .img format and then copy it to the micro SD card
7.1 If your gsi doesn't have gapps or you want to flash a system mod (eg. Brightness fix) then download a vndklite variant of your gsi, as system is mounted as RW in vndklite gsi, where's system is mounted as read only in normal gsi images
GSI type should be "arm64_ab" if you want to you can also use vndklite variant!
8. Download Odin and extract it
Samsung Odin - Official Odin Download links
Samsung Odin, Official Odin Download links and flashing guides
samsungodin.com
These are all the pre requisites, and yes, every single one is required.
Process to flash GSI:
1) Unlock the bootloader
To unlock the bootloader, follow the steps from here...
[Guide][SM-T500/T505] Galaxy Tab A7 10.4 - Unlock Bootloader & Root with Magisk
I recently purchased the Galaxy Tab A7 10.4 (released in 2020) and couldn't help but notice that there's no dedicated thread in the forums for unlocking the bootloader or rooting (Although, the method should be very similar to what is followed...
forum.xda-developers.com
2) After that patch the AP image we copied to the micro SD card earlier and then copy the patched ap to the micro sd card and then to the pc. Steps of patching can be found here
[Guide][SM-T500/T505] Galaxy Tab A7 10.4 - Unlock Bootloader & Root with Magisk
I recently purchased the Galaxy Tab A7 10.4 (released in 2020) and couldn't help but notice that there's no dedicated thread in the forums for unlocking the bootloader or rooting (Although, the method should be very similar to what is followed...
forum.xda-developers.com
3. After patching the AP image, copy the patched image from downloads folder to your micro sd card
4. After that turn your device off
5. After the device is fully powered off, hold both volume up and volume down buttons simultaneously and connect it to your pc, then click volume up button once during the prompt to enter download mode
6) After entering download mode, select the BL, CP, and CSC (do not choose HOME_CSC!) files from the extracted firmware, after doing that, for AP, select the patched AP file we copied earlier and then click start on Odin.
7. After the flash is successfully finished, reboot your device and set it up, after setup install the magisk Canary apk from the micro SD card
8. After installing the apk, open it, and click 'OK' on additional setup prompt and the device will reboot after a few seconds
9. After the device starts up, turn it off again, and put it in download mode by holding both volume buttons simultaneously and then connecting it to your pc
10. After that, uncheck everything in Odin except AP, and select the TWRP file we downloaded as the AP file, and then click start
11. After the flash is complete, turn the device off and then hold power+volume up and then immediately connect it to your pc immediately
12. You will get warning about custom binary, and xyz, but ignore it and press power button once, then you'll enter the TWRP recovery
13. After entering TWRP flash the dynapatch zip file from your micro SD card
14. After flashing it. use the reboot to recovery option
15. After you device booted to recovery again, go to Wipe>Advanced Wipe and then wipe dalvik cache and cache partition
16. After wiping them, go back to the install section, click on install image
17. After that select your GSI .img file you extracted earlier
18. Then it will ask you on which partition it should flash the image onto
19. You have to select 'System Image' partition (if it isn't available, then flash dynapatch again and reboot to recovery, do it as may times until the System Image partition shows up)
20. Then swipe to flash it,
21. After it flashes, go back to install and install the T500 Kernel zip we put in the micro SD card earlier (this is to prevent reboots after a few seconds)
22. And bam, you're done, set the GSI up, and enjoy!
Now, let's get onto what works and what doesn't
What works:- (will add more as I keep testing)
Boot
Touchscreen
SD Card
Cameras
Speaker (follow point 7 in additional notes for 4-speaker audio!)
Headphones (disable A2DP offload in PHH settings first)
Wifi
Bluetooth
Mobile data
Wifi hotspot
Microphone
Power button
Volume Buttons
4G mobile data (go to mobile networks and select preferred network as 4G first)
Auto rotation
Extra dim
SMS
Charging
HW acceleration
MTP
USB Tethering
OTG
Brightness*
( Run these commands in a terminal emulator
su
echo 100 > /sys/class/backlight/panel0-backlight/brightness)(this is not persistent you have to run this everytime you reboot or you can setup a script or something that runs it during boot time itself)
What doesn't work:-
VoLTE
In call audio
Tested roms:
1. Pixel experience
2.ProtonAOSP
3.crDroid
4. Lineage OS
Not tested:-
Cast (i can't test this I don't have anything to cast to)
* Also be sure to read the important notes as it has highlighted some common issues and their workarounds...
Now credits!
To team XDA for keeping this forum alive and well,
@phhusson for developing GSI images that actually made this possible
@topjohnwu for creating magisk
@agreenbhm for the TWRP image and for helping me,
@duyfken for correcting the firmware links, and also, for informing me to add the type of GSI for this device!
And finally all other members of XDA for taking interest in the modding scene,
Thank you!
I'm quite new to the GSIs as a whole, so, I still can't find any workarounds for issues, I can only list them for everyone to know...
Important notes:-
1) if you are stuck in twrp after selecting reboot to system, then go to Advanced>Terminal and type exit_twrp and then reboot to system
2)The brightness patch has not worked for me on any gsi vndklite or normal, so, if it works for you then you are lucky, if not then I have informed you (brightness fix is in the initial post!)
3) I didn't try OTA updates as we used dynapatch and I'm skeptical about OTAs, so, i recommend you to dirty flash any new releases normally from twrp
4) Disable 'A2DP hardware offload' in Phh Settings>Misc settings and check the box next to disable A2DP offload and then do the same in developer settings too
5) Themed icons causes lags and causes some apps to lock the device up, so, proceed with caution
6) If the gsi ROM you're trying to flash doesn't fit on current system partition, then,
*This process will wipe your system partition and will reset your recovery, so, keep the dynapatch zip and gsi image on hand, you will need it!*
a) Download twrp from the link below (as it has fastboot)
[RECOVERY][UNOFFICIAL]TWRP 3.6.0 for 2020 Galaxy Tab A7 10.4[SM-T500]
/* * Disclaimer * * Your warranty is now void. * * We're not responsible for bricked devices, dead SD cards, * thermonuclear war, or you getting fired because the alarm app failed. Please * do some research if you have any concerns about features...
forum.xda-developers.com
b) Also download the product.img file from the above link
c) Flash this recovery from existing twrp
d) boot to this new twrp
e) here, click on 'Reboot' button
f) click 'fastboot'
g) the device will now reboot and then after a few seconds, a twrp ui will appear with the text 'fastboot'
h) connect your device to a pc with the latest version of platform tools and drivers installed
i) run these commands in order
fastboot flash product product.img
fastboot erase system
fastboot resize-logical-partition system 3940000000
fastboot reboot recovery
j) after doing so, again reboot to recovery, flash dynapatch zip first
k) again reboot to recovery and flash your gsi image
l) this time images up to 3.9GB will be flashable
m) no need to format data if you're flashing same rom
And that's it you'll be able to enjoy bigger ROMs on your Galaxy Tab A7!
Credit goes to @paziusss for this!
7) follow steps from here to get 4-speaker audio!
Post in thread '[ROM][SM-T500] Samsung Galaxy Tab A7 10.4 (2020) - LineageOS 19.1 (and TWRP 3.6.1)' https://forum.xda-developers.com/t/...eos-19-1-and-twrp-3-6-1.4421365/post-86917225
8. To flash gapps you need to have a Vndklite variant of GSI installed, then, grab your favourite set of gapps (Android 12L/12) depending on your rom and flash them from twrp!
9. For more fluid performance, download "Smart Pack Kernel Manager" from fdroid, open it grant root access, then go to the hamburger menu, select Vritual memory, and move the slider to 2048 mb, then, enable apply on boot, and reboot your device!
Well, I'm back everyone, and I'll be updating the post #1 with new instructions with regards to running Android 13 GSIs, and post #2 contains the old guide in case someone needs it!
Wow. Thank u very very much..will prepared guide ...every thing is clear
One thing i might clarify which is found on pazinuss. Guide. Where he put kernell
Q: Which GSI variant should I choose?
A: arm64 ab. Use the vndklite variant if you want to flash gapps or fix the brightness
The brightness fix is there with kernel also .
Thank you .....🖐️🖐️
drsanusi said:
Wow. Thank u very very much..will prepared guide ...every thing is clear
One thing i might clarify which is found on pazinuss. Guide. Where he put kernell
Q: Which GSI variant should I choose?
A: arm64 ab. Use the vndklite variant if you want to flash gapps or fix the brightness
The brightness fix is there with kernel also .
Thank you .....🖐️🖐️
Click to expand...
Click to collapse
I didn't mention it, as I found out that extra dim intensity control does the job just fine, but I'll add it in either way, thanks!
Hausemaster said:
I didn't mention it, as I found out that extra dim intensity control does the job just fine, but I'll add it in either way, thanks
Click to expand...
Click to collapse
What i mean for who want to flash gapps or root by magisk or flash any file to the rom (vndklite) only support flashing because it is mounted Read and Write but others are Read only .
Thank you
drsanusi said:
What i mean for who want to flash gapps or root by magisk or flash any file to the rom (vndklite) only support flashing because it is mounted Read and Write but others are Read only .
Thank you
Click to expand...
Click to collapse
We initially patched AP file initially, so, magisk will be available even after you flash a gsi but yeah you're correct about the gapps part, I forgot about them as I'm using a Pixel experience gsi, I'll add in the part about vndklite, thanks!
Edit: added it!
Again after step 7 when restart ...the message. (only official binary vbmeta allowed). In red .????.
So disturbing .i do googled revise my steps .even on odin this appear.
On thing i noticed. In developer mode .the oem unlock tab not appear at all.. but before was there ....what i miss ?? Any suggestions
drsanusi said:
Again after step 7 when restart ...the message. (only official binary vbmeta allowed). In red .????.
So disturbing .i do googled revise my steps .even on odin this appear.
On thing i noticed. In developer mode .the oem unlock tab not appear at all.. but before was there ....what i miss ?? Any suggestions
Click to expand...
Click to collapse
Did you boot to system and verify that bootloader was in fact unlocked, as, vaultkeeper will lock bootloader if you don't boot to system after unlocking...
Edit: if you directly flashed without booting, bootloader will relock and you have to wait for 7 days for OEM unlocking to be available again...
Now. After few days of lineage 19
Works like charm wow ...i am happy how lineage rom evolved over these years .
My main concern is battery life i left the tab for 24hr no any drop at all.before on stock was strange drop .
Other things . brightness fix didnt work .
Now one quistion ..if i want to try another one rom what i do .? From the bigening or what step i start
Thank u in advance
drsanusi said:
Now. After few days of lineage 19
Works like charm wow ...i am happy how lineage rom evolved over these years .
My main concern is battery life i left the tab for 24hr no any drop at all.before on stock was strange drop .
Other things . brightness fix didnt work .
Now one quistion ..if i want to try another one rom what i do .? From the bigening or what step i start
Thank u in advance
Click to expand...
Click to collapse
If you want to try another ROM, I suggest you to start from setup 15
drsanusi said:
Now. After few days of lineage 19
Works like charm wow ...i am happy how lineage rom evolved over these years .
My main concern is battery life i left the tab for 24hr no any drop at all.before on stock was strange drop .
Other things . brightness fix didnt work .
Now one quistion ..if i want to try another one rom what i do .? From the bigening or what step i start
Thank u in advance
Click to expand...
Click to collapse
Also, the battery drop may be because of GSI roms not setting cpu frequency according to usage, it just locks it at full frequency causing heat and heavy battery drain, try lowering clockspeeds using a kernel manager
edit: I use smart pack kernel manager
drsanusi said:
Now. After few days of lineage 19
Works like charm wow ...i am happy how lineage rom evolved over these years .
My main concern is battery life i left the tab for 24hr no any drop at all.before on stock was strange drop .
Other things . brightness fix didnt work .
Now one quistion ..if i want to try another one rom what i do .? From the bigening or what step i start
Thank u in advance
Click to expand...
Click to collapse
I found the actual brightness fix from the thread which we downloaded kernel from, I added the commands in the OP here...
If you're flashing big GSIs and flash fails due to insufficient system space, I've added a way to do so in the important notes...
Hausemaster said:
Just before we get started, I would like to say that you will not brick your device if you follow the steps as is without any, and I mean any deviations.
Read what works and what doesn't first!
Okay, enough preface, let's jump right in!
Firstly, pre-requisites(hardware):-
1.A micro SD card
2. A windows PC, windows 7 or later (32 or 64 bit)
3. A USB Type-C cable
4. A Samsung galaxy tab a7 running Android 11 with January 2022 Security Patch
Pre-requisites (software on the pc), you'll need:-
1.Stock firmware:
Samsung Galaxy Tab A7 (Wi-Fi) Firmware Download SM-T500 Free Download
Samsung Galaxy Tab A7 (Wi-Fi) Firmware Download SM-T500 Free Download ⭐ Official and fast update ⭐ Max speed and free download ⭐ Best Samsung Galaxy website
samfw.com
from this link, select your respective country and download the firmware with January 2022 security patch level, then download it
1.1 After downloading it, extract it on the PC and copy the AP file to your micro SD card, as we need it on the tab later
2. Samsung USB drivers
download them from here and install them on your pc, it'll take a while but it's essential for this process
https://developer.samsung.com/android-usb-driver
2.1 Reboot your PC after installing the drivers
3. Download TWRP 3.6.1 beta 5 from here
[ROM][SM-T500] Samsung Galaxy Tab A7 10.4 (2020) - LineageOS 19.1 (and TWRP 3.6.1)
Hello world, I have successfully built LineageOS 19.1 with Gapps for the SM-T500 (Tab A7 10.4 2020) using Andy Yan's LOS GSIs. Lineage is current as of 3/24/2022. I have also compiled TWRP version 3.6.1, based on Android 11 (previous release...
forum.xda-developers.com
this is our custom recovery
4. Download magisk Canary apk from here
https://github.com/topjohnwu/Magisk
And copy the apk to your micro SD card
5. Download the SM-T500-GSI-kernel.zip from here
[Guide][SM-T500] Galaxy Tab A7 10.4 - Flash LineageOS or any other GSI rom.
These are instructions to flash LineageOS 18.1 GSI builds on our SM-T500. The same instructions should work for any other GSI rom out there. Some instructions here, like flashing an empty product.img and resizing system partition, are not...
forum.xda-developers.com
And copy this file to your micro SD card
6. Download dynapatch from the file attached below credits to @redymedan for developing this!
Then move it to your micro SD card
7. Download the GSI image of your choice, and (make sure that it doesn't exceed 3.3GB after extraction) extract it from .img.xz format to .img format and then copy it to the micro SD card
7.1 If your gsi doesn't have gapps or you want to flash a system mod (eg. Brightness fix) then download a vndklite variant of your gsi, as system is mounted as RW in vndklite gsi, where's system is mounted as read only in normal gsi images
8. Download Odin and extract it
Samsung Odin - Official Odin Download links
Samsung Odin, Official Odin Download links and flashing guides
samsungodin.com
These are all the pre requisites, and yes, every single one is required.
Process to flash GSI:
1) Unlock the bootloader
To unlock the bootloader, follow the steps from here...
https://forum.xda-developers.com/t/...4-unlock-bootloader-root-with-magisk.4185993/
2) After that patch the AP image we copied to the micro SD card earlier and then copy the patched ap to the micro sd card and then to the pc. Steps of patching can be found here
[Guide][SM-T500/T505] Galaxy Tab A7 10.4 - Unlock Bootloader & Root with Magisk
I recently purchased the Galaxy Tab A7 10.4 (released in 2020) and couldn't help but notice that there's no dedicated thread in the forums for unlocking the bootloader or rooting (Although, the method should be very similar to what is followed...
forum.xda-developers.com
3. After patching the AP image, copy the patched image from downloads folder to your micro sd card
4. After that turn your device off
5. After the device is fully powered off, hold both volume up and volume down buttons simultaneously and connect it to your pc, then click volume up button once during the prompt to enter download mode
6) After entering download mode, select the BL, CP, and CSC (do not choose HOME_CSC!) files from the extracted firmware, after doing that, for AP, select the patched AP file we copied earlier and then click start on Odin.
7. After the flash is successfully finished, reboot your device and set it up, after setup install the magisk Canary apk from the micro SD card
8. After installing the apk, open it, and click 'OK' on additional setup prompt and the device will reboot after a few seconds
9. After the device starts up, turn it off again, and put it in download mode by holding both volume buttons simultaneously and then connecting it to your pc
10. After that, uncheck everything in Odin except AP, and select the TWRP file we downloaded as the AP file, and then click start
11. After the flash is complete, turn the device off and then hold power+volume up and then immediately connect it to your pc immediately
12. You will get warning about custom binary, and xyz, but ignore it and press power button once, then you'll enter the TWRP recovery
13. After entering TWRP flash the dynapatch zip file from your micro SD card
14. After flashing it. use the reboot to recovery option
15. After you device booted to recovery again, go to Wipe>Advanced Wipe and then wipe dalvik cache and cache partition
16. After wiping them, go back to the install section, click on install image
17. After that select your GSI .img file you extracted earlier
18. Then it will ask you on which partition it should flash the image onto
19. You have to select 'System Image' partition (if it isn't available, then flash dynapatch again and reboot to recovery, do it as may times until the System Image partition shows up)
20. Then swipe to flash it,
21. After it flashes, go back to install and install the T500 Kernel zip we put in the micro SD card earlier (this is to prevent reboots after a few seconds)
22. And bam, you're done, set the GSI up, and enjoy!
Now, let's get onto what works and what doesn't
What works:- (will add more as I keep testing)
Boot
Touchscreen
SD Card
Cameras
Speaker
Headphones (disable A2DP offload in PHH settings first)
Wifi
Bluetooth
Mobile data
Wifi hotspot
Microphone
Power button
Volume Buttons
4G mobile data (go to mobile networks and select preferred network as 4G first)
Auto rotation
Extra dim
SMS
Charging
HW acceleration
MTP
USB Tethering
OTG
Brightness*
( Run these commands in a terminal emulator
su
echo 100 > /sys/class/backlight/panel0-backlight/brightness)(this is not persistent you have to run this everytime you reboot or you can setup a script or something that runs it during boot time itself)
What doesn't work:-
VoLTE
In call audio
Haptic Feedback (vibration)
Not tested:-
Cast (i can't test this I don't have anything to cast to)
* Also be sure to read the important notes as it has highlighted some common issues and their workarounds...
Now credits!
To team XDA for keeping this forum alive and well,
@phhusson for developing GSI images that actually made this possible
@topjohnwu for creating magisk
@agreenbhm for the TWRP image and for helping me,
And finally all other members of XDA for taking interest in the modding scene,
Thank you!
Click to expand...
Click to collapse
Also! This tab does not have a Vibration motor so you might wanna remove that from the "What doesn't work:-" List.
wEER1234 said:
Also! This tab does not have a Vibration motor so you might wanna remove that from the "What doesn't work:-" List.
Click to expand...
Click to collapse
I didn't know that this didn't have one, thanks for the information, will do the necessary changes now!
This may be a silly question, but why exactly are we using the SM-T500 firmware here and not the SM-T505 firmware?
Samsung Galaxy Tab A7 (LTE) Firmware Download SM-T505 Free Download
Samsung Galaxy Tab A7 (LTE) Firmware Download SM-T505 Free Download ⭐ Official and fast update ⭐ Max speed and free download ⭐ Best Samsung Galaxy website
samfw.com
duyfken said:
This may be a silly question, but why exactly are we using the SM-T500 firmware here and not the SM-T505 firmware?
Samsung Galaxy Tab A7 (LTE) Firmware Download SM-T505 Free Download
Samsung Galaxy Tab A7 (LTE) Firmware Download SM-T505 Free Download ⭐ Official and fast update ⭐ Max speed and free download ⭐ Best Samsung Galaxy website
samfw.com
Click to expand...
Click to collapse
The firmware is of the t505 version, only the kernel, recovery and other stuff is from t500 as they work and are the only resources available for this device...
Edit: The link preview itself mentioned SM-T505, so, yeah...
Hausemaster said:
The firmware is of the t505 version, only the kernel, recovery and other stuff is from t500 as they work and are the only resources available for this device...
Edit: The link preview itself mentioned SM-T505, so, yeah...
Click to expand...
Click to collapse
I ask as Post 1 instructions has SM-T500 firmware, hence why I linked the SM-T505 firmware here.
Also for reference for those trying to work out which type of GSI image to get when downloading one (from a stock as a rock SM-T505):
{
"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"
}
duyfken said:
I ask as Post 1 instructions has SM-T500 firmware, hence why I linked the SM-T505 firmware here.
Also for reference for those trying to work out which type of GSI image to get when downloading one (from a stock as a rock SM-T505):
Click to expand...
Click to collapse
Oh my! Thanks for the sharp observation, I corrected it now in the OP
Edit: I also added the type of GSI that should be used for this device!
Edit 2: I also mentioned you in the credits, as you're the one who caught the errors! And once again, thank you very much for the corrections you saved the day!

Update Firmware to Android 11 for Lineage OS 19

For those looking to move to Android 12 but having issues with "No Sim" or constant crashing. I have gone ahead and consolidated everything needed to update your firmware prior to.
Prerequisites
Most up-to-date version of Android 11
Lineage Recovery
USB-C Cable
5-minutes
Downloads
ADBKit Github
Using ADBKit ensures you have the latest adb and fastboot. Otherwise '--slot=all' in our batch script might throw errors.​​Payload.bin files
The zip contains the already extracted files from the most recent OOS11 for 6T which can be found at OnePlus's website.​​Batch script
Will execute the fastboot commands recommended by Lineage for Android 11​​​Upgrade Steps
Download and extract latest ADBKit to desktop.
Download and extract Payload.bin to ADBKit folder on your desktop.
Download batch script to ADBKit desktop.
Reboot phone into Lineage recovery by powering down then holding Down + Power button.
In Lineage Recovery select 'Advanced' then select 'Enter Fastboot'
Ensure fastboot drivers are working. On Windows hit Winkey+R then type devmgmt.msc . If you see Android device with a yellow caution, then right click on the device > Update Drivers > Browse My Computer >Let Me Pick From An Available List. Then select Android 11 Bootloader.
In ADBKit folder run the lineage_android11fw_fajita.bat file. Once complete it will reboot your device.
Follow normal steps to install Lineage or your preferred Android 12 OS.
Note: Since we are just updating to latest Android 11 FW, you should be able to use this process to resolve any non-Lineage Android 12 issues as well.

Categories

Resources