[RECOVERY][3.3.1-3][grus]Unofficial TWRP for Xiaomi Mi 9 SE (Testing) - Xiaomi Mi 9 SE ROMs, Kernels, Recoveries, & Other

Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Code:
#include <std_disclaimer.h>
/*
*
* We are 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 included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/
Features:
- Nothing tested for now
Download:
TWRP 3.3.1-3 Unofficial by mauronofrio
TWRP 3.3.1-0 Unofficial by mauronofrio
Source code:
https://github.com/omnirom/android_bootable_recovery
https://github.com/mauronofrio/android_device_xiaomi_grus
Precompiled Stock Kernel in use
Donations:
Credits:
Created 2019-02-28

Thank for

Thanks for the recovery!

After flash of recovery, and rebooting recovery, I stay on boot screen off recovery. Booting to rom works.
Sent from my [device_name] using XDA-Developers Legacy app

putti71 said:
After flash of recovery, and rebooting recovery, I stay on boot screen off recovery. Booting to rom works.
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
Yes, another user report the same.problem, i need of some logs to make it work good, do you want to.help me?

mauronofrio said:
Yes, another user report the same.problem, i need of some logs to make it work good, do you want to.help me?
Click to expand...
Click to collapse
Sure, but I am quite good with logcats and I don't understand this:
adb shell dmesg > fileonyourpc
adb shell cat /tmp/recovery.log > fileinyourpc
adb shell logcat > fileinyourpc
Example:
adb shell dmesg > D:\Desktop\test.txt
after typed > you can drag and drop the text file on the terminal to get automatically the full path
Sent from my [device_name] using XDA-Developers Legacy app

putti71 said:
Sure, but I am quite good with logcats and I don't understand this:
adb shell dmesg > fileonyourpc
adb shell cat /tmp/recovery.log > fileinyourpc
adb shell logcat > fileinyourpc
Example:
adb shell dmesg > D:\Desktop\test.txt
after typed > you can drag and drop the text file on the terminal to get automatically the full path
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
ok, so these are the commands to show the logs
adb shell dmesg
adb shell cat /tmp/recovery.log
adb shell logcat
You should run them from a pc terminal using adb
This option is to save the output in a file directly
> fileonyourpc
fileonyourpc should be raplaced with the full path of the file, an easy way to do this is drag and drop the file where you want to save the log on the terminal page, so the terminal will get automatically the full path

mauronofrio said:
ok, so these are the commands to show the logs
adb shell dmesg
adb shell cat /tmp/recovery.log
adb shell logcat
You should run them from a pc terminal using adb
This option is to save the output in a file directly
> fileonyourpc
fileonyourpc should be raplaced with the full path of the file, an easy way to do this is drag and drop the file where you want to save the log on the terminal page, so the terminal will get automatically the full path
Click to expand...
Click to collapse
I hope this helps

putti71 said:
I hope this helps
Click to expand...
Click to collapse
Can you try 3.3.1-3?
TWRP 3.3.1-3 Unofficial by mauronofrio

mauronofrio said:
Can you try 3.3.1-3?
TWRP 3.3.1-3 Unofficial by mauronofrio
Click to expand...
Click to collapse
Tried it and still problem persists and phone stays in splash screen of TWRP
Sent from my [device_name] using XDA-Developers Legacy app

In previous version usb otg can't mount in twrp... What about the last?

copernic75 said:
In previous version usb otg can't mount in twrp... What about the last?
Click to expand...
Click to collapse
Cannot say, since TWRP is not booting and stays in splash
Sent from my [device_name] using XDA-Developers Legacy app

Thank you

Related

[GUIDE] getting titaniumbackup (and other root apps) temporarly working

first off, big thanks @teamwin for fre3vo!
this guide is for advanced users only, so I will not explain the adb stuff etc.
you will need to do this stuff FAST, as temp root only works for a short amount of time, but it was enough for me to restore some apps and settings
* install titaniumbackup & busybox installer from market (do not start them)
* reboot the phone and DO NOT start any application
* do the fre3vo stuff:
Code:
adb push fre3vo /data/local/tmp
adb shell chmod 777 /data/local/tmp/fre3vo
adb shell /data/local/tmp/fre3vo
* install superuser, su and set permissions
Code:
adb shell mount -oremount /dev/block/mmcblk0p22 /system
adb install Superuser.apk
adb push su /system/xbin/su
adb shell chmod 06755 /system/xbin/su
adb shell ln -s /system/xbin/su /system/bin/su
* start busybox installer and install busybox
* start titaniumbackup and do your stuff
again, this has to be done fault free and FAST, like within 2-3 minutes
attached are su & superuser used
Nothing attached
Thank you for this tuto, i try other from 3D Evo and don't work for me, now im not at home, but will try this one once at home.
Thank a lot!!!
Sent from my HTC Sensation Z710e using Tapatalk
<delete please>
Great man!! Thanks
I am guessing that all these files fre3vo, SU, Su.apk should be in the platform-tools folder? where adb is?
We can delete some apks,right?
jerrylzy said:
We can delete some apks,right?
Click to expand...
Click to collapse
No, but you can disable them
prateekgujral said:
I am guessing that all these files fre3vo, SU, Su.apk should be in the platform-tools folder? where adb is?
Click to expand...
Click to collapse
the 3 files have to be in your current working directory (which should not be the platform dir), and adb should be in your ${PATH}
but yes, you can also put the files where adb is located
blubbers said:
the 3 files have to be in your current working directory (which should not be the platform dir), and adb should be in your ${PATH}
but yes, you can also put the files where adb is located
Click to expand...
Click to collapse
I will have to put them where the adb is located as I havent changed the environment variables for accessing adb from anywhere.. i think it should be ok.. as I have been flashing radios and other apps like that only!! (previous Androids!)
I would usually just copy the file on to the platrform directory.. ADBed the thing and deleted the file oonce the job is done!
prateekgujral said:
I will put them where the adb is located as I havent changed the environment variables for accessing adb from anywhere.. i think it should be ok.. as I have been flashing radios and other apps like that only!! (previous Androids!)
I would usually just copy the file on to the platrform directory.. ADBed the thing and deleted the file oonce the job is done!
Click to expand...
Click to collapse
of course it will work, but it's not the proprer way to do things
blubbers said:
of course it will work, but it's not the proprer way to do things
Click to expand...
Click to collapse
Oh well!! as long as it works!!!
Anyway... thanks man!!
Found this!!
Excellent video tut
http://www.youtube.com/watch?v=1t9AXZWcFQU
prateekgujral said:
Found this!!
Excellent video tut
http://www.youtube.com/watch?v=1t9AXZWcFQU
Click to expand...
Click to collapse
might want to put this in the fre3vo thread, as this is thread goes beyond that
Followed your procedure above but just before I installed busybox - I pushed a new hosts file over which was taken from an adblocker program.
adb push hosts /etc/hosts
Edit: - hosts gets overwritten after few minutes
Pity - thought it might have been useful
Awesome worked great!
EddyOS said:
No, but you can disable them
Click to expand...
Click to collapse
I have uninstalled anything related to "stocks"
The widget , the app and one other have been uninstalled and are no longer present on my phone
Sent from my Nokia 3310 using Tapatalk, 2 carrier pigeons on crack and a cab
j2kquest said:
I have uninstalled anything related to "stocks"
The widget , the app and one other have been uninstalled and are no longer present on my phone
Sent from my Nokia 3310 using Tapatalk, 2 carrier pigeons on crack and a cab
Click to expand...
Click to collapse
Reboot and they'll probably come back
I get this
failed to copy 'su' to '/system/xbin/su': Read-only file system
Click to expand...
Click to collapse
I get all the way to Titanium backup saying its restoring an app and it hangs there. It gets superuser and everything it just doesnt seem to want to actually restore anything.
I get this problem
C:\android\tools>adb shell mount -oremount /dev/block/mmcblk0p22 /system
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: device not found
C:\android\tools>adb shell mount -oremount /dev/block/mmcblk0p22 /system
adb server is out of date. killing...
* daemon started successfully *
mount: Operation not permitted
C:\android\tools>adb shell mount -oremount /dev/block/mmcblk0p22/system
adb server is out of date. killing...
* daemon started successfully *
Usage: mount [-r] [-w] [-o options] [-t type] device directory
C:\android\tools>adb install Superuser.apk
adb server is out of date. killing...
* daemon started successfully *
2180 KB/s (196521 bytes in 0.088s)
adb server is out of date. killing...
* daemon started successfully *
pkg: /data/local/tmp/Superuser.apk
Success
adb server is out of date. killing...
* daemon started successfully *
C:\android\tools>adb push su /system/xbin/su
adb server is out of date. killing...
* daemon started successfully *
failed to copy 'su' to '/system/xbin/su': Read-only file system
Click to expand...
Click to collapse

Reboot from terminal emulator

I'm trying to reboot from terminal emulator. What I type is:
Code:
su
reboot
or
Code:
su
reboot -p
but it always returns
Code:
Not permited
.
Note that I get the same "Not permited" both with gaining and not gaining su access before executing the reboot command.
This is a known problem (see here for example) but I haven't been able to find a solution.
Of course, root is working fine on my rom so that's not the problem.
Anyone using reboot from terminal emulator?
Thanks
nor-ric said:
I'm trying to reboot from terminal emulator. What I type is:
Code:
su
reboot
or
Code:
su
reboot -p
but it always returns
Code:
Not permited
.
Note that I get the same "Not permited" both with gaining and not gaining su access before executing the reboot command.
This is a known problem (see here for example) but I haven't been able to find a solution.
Of course, root is working fine on my rom so that's not the problem.
Anyone using reboot from terminal emulator?
Thanks
Click to expand...
Click to collapse
Entering commands
Code:
su
reboot
reboot the phone for me. I'm on latest Carbon rom.
You could try
Code:
su
shutdown -r now
but that will probably have the same result...
Is there a specific reason you want to be able to reboot from terminal? If you are looking for quicker access to recovery or bootloader and are using an AOSP rom you could enable the advanced reboot menu in developer options to get those options from the power menu. Hope this helps.
zaak00 said:
You could try
Code:
su
shutdown -r now
but that will probably have the same result...
Click to expand...
Click to collapse
It instantly reboots, without the proper shutdown routine.
UnspecialEffects said:
Is there a specific reason you want to be able to reboot from terminal? If you are looking for quicker access to recovery or bootloader and are using an AOSP rom you could enable the advanced reboot menu in developer options to get those options from the power menu. Hope this helps.
Click to expand...
Click to collapse
I'm on stock rom and I suspect that's the source of the problem: infact in the thread I linked above the user is on a stock HTC One.
I'd like to do it from terminal so that I can create a reboot event on Tasker/Llama.

[GUIDE] Backing up a phone with broken display

I have seen several of threads asking about how to recover data from a phone that has a broken display.
Backing up a phone with broken display
Prerequisites
Rooted phone with broken display/digitizer/etc. Display is nonfunctional for whatever reason.
ADB for your platform. Downloads for Windows, Mac, and Linux can be found at my dev-host.
Drivers installed (Windows), rules file set up (Linux + Mac). Drivers for windows can be found here. Rules file for Linux can be found here.
Recovery file attached to this post. (twrp.img)
External sdcard with at least 2 GB free space inserted in your broken phone.
openrecoveryscript.txt file attached to this post.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Backing up your broken device
Extract the ADB zip somewhere convenient.
Move the twrp.img recovery file into the ADB extracted directory.
Move the openrecoveryscript.txt file into the ADB directory.
Open a command prompt / terminal window in the ADB directory.
Windows: Windows Key + R => Type in "cmd" then click "RUN".
Linux: Open a terminal window by selecting it from your applications.
ALL:
Code:
cd /path/to/ADB/directory
Pull the battery from your phone, place it back in and boot into recovery (VolUp + Home + Power).
Connect your phone to your computer
Make sure that the following command returns "XXXXXX recovery" before proceeding to the next step.
Code:
./adb devices
Expected output:
Code:
List of devices attached
XXXXXXX recovery
Now to install TWRP recovery to your device. Type the following commands ( after each line). Linux users: Make sure you prepend each command with "./", as in "./adb ...". ALL Make sure you type the commands in CAREFULLY.
Code:
adb push twrp.img /tmp/twrp.img
adb shell dd if=/tmp/twrp.img of=/dev/block/mmcblk0p18
Wait until the last command above returns an output similar to below before proceeding to the next step:
Code:
12916+0 records in
12916+0 records out
6612992 bytes (6.3MB) copied, 1.094278 seconds, 5.8MB/s
Now pull your phones battery and reboot into recovery once again.
Run the following command to make sure your phone has booted into recovery completely.
Code:
adb devices
Expected output
Code:
List of devices attached
XXXXXXX recovery
Type the following to set up a script that will backup your phone to your external sdcard.
Code:
adb push openrecoveryscript.txt /cache/recovery/openrecoveryscript
Reboot your phone once more. This time, TWRP will begin backing up your ROM.
Wait for the backup to finish. You will know it is finished when you feel your phone reboot once more.
Optionally, you can check the state of your backup by running the following command and reading the last couple lines of it's output.
Code:
adb shell cat /tmp/recovery.log
Click to expand...
Click to collapse
Click to expand...
Click to collapse
That's it! Your entire system (/system, /data, /cache, and boot) will be backed up to your external sdcard. Just pop the sdcard in your replacement phone and you're good to go.
Enjoy and donate to the TWRP devs! This would not be possible if TWRP did not use the OpenRecoveryScript scripting engine!
CNexus said:
I have seen several of threads asking about how to recover data from a phone that has a broken display.
Backing up a phone with broken display
That's it! Your entire system (/system, /data, /cache, and boot) will be backed up to your external sdcard. Just pop the sdcard in your replacement phone and you're good to go.
Enjoy and donate to the TWRP devs! This would not be possible if TWRP did not use the OpenRecoveryScript scripting engine!
Click to expand...
Click to collapse
wheres the openrecoveryscript.txt??
Sorry. It's attached here
http://forum.xda-developers.com/showthread.php?t=2353828
I'll attach it to this post when I get home, I keep forgetting.
Sent from my buttered S3

How to access private mode without access to screen? Galaxy S5

So, I'm an idiot and was working too close to my phone with some heavy tools. Long story short, I ended up dropping my Dewalt drill directly on the screen. It's completely ruined and no longer has any picture on the screen. The phone itself still turns on. I'm able to unlock with fingerprint, etc. The problem is...since I can't actually see anything on the screen, I'm not sure exactly where to press and swipe to access private mode. I had some files for work stored in private mode that I need to retrieve from the phone (customer contracts)...but since I can't see anything, I don't know exactly how to get them back. Any ideas? Thanks in advance!
Is adb debugging enabled on your device?
Fusseldieb said:
Is adb debugging enabled on your device?
Click to expand...
Click to collapse
I believe so, yes. I think I enabled it awhile ago.
mosesport said:
I believe so, yes. I think I enabled it awhile ago.
Click to expand...
Click to collapse
Perfect. Now you can make a .bat script that pushes a screenshot fron your device every second.
You do it in following way:
1. Create a normal text file and write in there:
Code:
:1
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png
goto 1
2. Rename it to Screenshot.bat
3. Run it and you will see a command prompt in loop getting screenshots from your device. Then open the newly created "screen.png". If you're using Windows 7, the image will update automatically every second and you will see a 'live feed' of your device's screen.
If your touchscreen is damged too, you will need inputting keyevents, like touch x y. If that's your case, just say me and I'll explain you.
Sent from my SM-G925F using XDA-Developers mobile app
Fusseldieb said:
Perfect. Now you can make a .bat script that pushes a screenshot fron your device every second.
You do it in following way:
1. Create a normal text file and write in there:
Code:
:1
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png
adb shell rm /sdcard/screen.png
goto 1
2. Rename it to Screenshot.bat
3. Run it and you will see a command prompt in loop getting screenshots from your device. Then open the newly created "screen.png". If you're using Windows 7, the image will update automatically every second and you will see a 'live feed' of your device's screen.
If your touchscreen is damged too, you will need inputting keyevents, like touch x y. If that's your case, just say me and I'll explain you.
Sent from my SM-G925F using XDA-Developers mobile app
Click to expand...
Click to collapse
When I try to run the script, the command prompt gives an error stating "adb is not a recognized as an internal or extermal command."
mosesport said:
When I try to run the script, the command prompt gives an error stating "adb is not a recognized as an internal or extermal command."
Click to expand...
Click to collapse
Install adb on your machine, reboot and try again.
Search here on xda for "15 seconds adb and fastboot installer".
(While installing, press Y for Yes when prompting to install it system wide)
Do not forget to reboot!
Sent from my SM-G925F using XDA-Developers mobile app

ADB tricks/Creating an Android multitool in C# for beginners in 20minutes.

This is a video i posted for beginners with no programming experience needed.
Its a video on how to create an android multitool with some great features.
Functions include
- installing APK
- sideloading zip
- making a backup
- rebooting normally, to bootloader and recovery via ADB
- rebooting via fastboot
- unlocking bootloader
- flashing system
- flashing data
- flashing zip file
- flashing recovery
- flashing boot(kernel)
Requirements
- A computer
- Microsoft visual studio community edition(free), Download
- ADB, adb DLL files and fastboot, Download
Heres my form1 source code file for reference if needed, View
So follow the video, Like, share and subscribe for more to come!
Additional things you can implement
ADB tricks
Hot reboot
adb shell su -c busybox killall system_server
Click to expand...
Click to collapse
Remove lockscreen password
adb shell su -c rm /data/system/*.key && adb shell su -c rm /data/system/locksettings*
Click to expand...
Click to collapse
Clear dalvik-cache
adb shell su -c rm -R /data/dalvik-cache
Click to expand...
Click to collapse
Factory reset
adb shell su -c recovery --wipe_data
Click to expand...
Click to collapse
you can make a debloater, similiar to this but replace it with the apps you wanna remove
adb shell su -c rm -R /system/app/firstAppToRemove && adb shell su -crm -R /system/priv-app/NameOfSecondApp
Click to expand...
Click to collapse
Clear connected wifi cache
adb shell su -c rm /data/misc/wifi/wpa_supplicant.conf
Click to expand...
Click to collapse
Purchase a phone with FRP but USB debugging enabled? pull this file, open it and the name of the persons gmail account is in it
adb pull /data/system/sync/accounts.xml
Click to expand...
Click to collapse
Change wallpaper
adb push Wallpaper.jpg /data/local/tmp && adb shell su -c mv /data/local/tmp/Wallpaper.jpg /data/system/users/0/wallpaper
Click to expand...
Click to collapse
Disable bootsounds
adb shell su -c mv /system/media/audio/ui/PowerOn.ogg PowerOn.ogg.disabled
Click to expand...
Click to collapse
Re-enable bootsounds
adb shell su -c mv /system/media/audio/ui/PowerOn.ogg.disabled PowerOn.ogg
Click to expand...
Click to collapse
More tricks with ADB upon request
May update this tonight and add more features
You always creating awesome stuff, and tutorials, proud of you.
Gonna update tonight and add a few things like passcode removal option, FRP bypassing, sending text messages and playing media thats on the device
Ricky Divjakovski said:
Gonna update tonight and add a few things like passcode removal option, FRP bypassing, sending text messages and playing media thats on the device
Click to expand...
Click to collapse
Awesome, would make for a nice personal tool.
Very nice guide
Thank you for sharing
Can you please tell me what are the busybox commands of reboot to recovery,download mode and fast reboot and restart system ui
sohamsen said:
Very nice guide
Thank you for sharing
Can you please tell me what are the busybox commands of reboot to recovery,download mode and fast reboot and restart system ui
Click to expand...
Click to collapse
Check the first post now
Updated with ADB tricks aswell you can i,plement in your own tools
Ricky Divjakovski said:
Updated with ADB tricks aswell you can i,plement in your own tools
Click to expand...
Click to collapse
Thank you
gonna update tonight and and txt message capabillities
Ricky Divjakovski said:
This is a video i posted for beginners with no programming experience needed.
Its a video on how to create an android multitool with some great features.
Functions include
- installing APK
- sideloading zip
- making a backup
- rebooting normally, to bootloader and recovery via ADB
- rebooting via fastboot
- unlocking bootloader
- flashing system
- flashing data
- flashing zip file
- flashing recovery
- flashing boot(kernel)
Requirements
- A computer
- Microsoft visual studio community edition(free), Download
- ADB, adb DLL files and fastboot, Download
Heres my form1 source code file for reference if needed, View
So follow the video, Like, share and subscribe for more to come!
Additional things you can implement
ADB tricks
Hot reboot
Remove lockscreen password
Clear dalvik-cache
Factory reset
you can make a debloater, similiar to this but replace it with the apps you wanna remove
Clear connected wifi cache
Purchase a phone with FRP but USB debugging enabled? pull this file, open it and the name of the persons gmail account is in it
Change wallpaper
Disable bootsounds
Re-enable bootsounds
More tricks with ADB upon request
Click to expand...
Click to collapse
How a bout carrier unlock ?
Ricky Divjakovski said:
This is a video i posted for beginners with no programming experience needed.
Its a video on how to create an android multitool with some great features.
Functions include
- installing APK
- sideloading zip
- making a backup
- rebooting normally, to bootloader and recovery via ADB
- rebooting via fastboot
- unlocking bootloader
- flashing system
- flashing data
- flashing zip file
- flashing recovery
- flashing boot(kernel)
Requirements
- A computer
- Microsoft visual studio community edition(free), Download
- ADB, adb DLL files and fastboot, Download
Heres my form1 source code file for reference if needed, View
So follow the video, Like, share and subscribe for more to come!
Additional things you can implement
ADB tricks
Hot reboot
Remove lockscreen password
Clear dalvik-cache
Factory reset
you can make a debloater, similiar to this but replace it with the apps you wanna remove
Clear connected wifi cache
Purchase a phone with FRP but USB debugging enabled? pull this file, open it and the name of the persons gmail account is in it
Change wallpaper
Disable bootsounds
Re-enable bootsounds
More tricks with ADB upon request
Click to expand...
Click to collapse
Can you please share that script please???????

Categories

Resources