yashsingh1/xdaforums huggingface dataset:
[E 2015 Original Android Development] jacquelinexrose:
WIPED PHONE, can only access recovery, no OS, HELP!!

I had a problem with someone using remote spy software and hiding spy apps on my phone so I impulsively made this mistake, accident!

I have a MOTO E 2015, XT1527. I had this phone rooted with a custom rom installed. my OS was lollipop.

I went into TWRP recovery and wiped:

devlik cache

system

data

internal storage

chache

USB-OTG

I did not have an SD card inserted at the time

I am not very knowledgable on all of this (not so tech-savy but can follow instructions), but I need to fix this phone asap.

My phone keeps re-starting and will not go any further than the boot animation screen (if that's correctly stated). I can get into recovery mode but that's it. I have no backups. recovery tells me that I have uninstalled the OS, which I'm guessing means I have uninstalled everything else too!

I don't know what to do from here, what to do first or how to do it, I do have access to a computer, and need help PLEASE!!! I have been looking up ways to fix this but cant find clear answeres directed to this phone and problem specifically.

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

when I connect my phone to the computer it says this:

4.60 GB free of 4.98 GB

and the only file that appears is TWRP recovery. I don't know which app is best to open the file. When I used Adobe Reader, since its already on my computer, it says:

not supported file type, or the file had been damaged.
[E 2015 Original Android Development] KazuDante:
dont erase usb-otg its not necessary.....when u plug the phone in and it shows the the empty folder that just has the twrp folder (guessing that the phone has no system on it since it was erase....download a rom a gapp for example cm13 ( https://download.cyanogenmod.org/get/jenkins/157636/cm-13.0-20160409-NIGHTLY-otus.zip ) latest cm 13 ......then the gapps ( https://github-cloud.s3.amazonaws.c...esponse-content-type=application/octet-stream ) lastest as of today......once you download them create a folder with the twrp folder that u see when the phone is plugged in...name the folder to your choice.....copy over both the download files to the new folder.....once done back out to main menu and the select install and you will see your folder that you created in the list....choose it the both downloaded files will b in there...choose the cm13 first but dont swipe to install yet there is a button that will say add more zip press it then select the opengapp (second file that is not the cm13) then swipe to install once completed you will see in the lower right corner a reboot.....select it and your phone should be back to normal with cm13 running
[E 2015 Original Android Development] jacquelinexrose:
the ggaps link shows this:

<?xml version="1.0" encoding="UTF-8"?>

-<Error>

<Code>AccessDenied</Code>

<Message>Request has expired</Message>

<X-Amz-Expires>300</X-Amz-Expires>

<Expires>2016-04-09T21:42:42Z</Expires>

<ServerTime>2016-04-10T20:58:35Z</ServerTime>

<RequestId>95286402B9DC2B53</RequestId>

<HostId>LZ4NsL6phi9l+2tCRm1NlWnCB8t4GkkCCi8HUP8uqKGWbaTZWZs6WXSmQjXYRIrOyq5r24CuYjQ=</HostId>

</Error>

---------- Post added at 10:02 PM ---------- Previous post was at 09:58 PM ----------

cm13 is downloaded

---------- Post added at 10:03 PM ---------- Previous post was at 10:02 PM ----------

thank you so much!!!
[E 2015 Original Android Development] KazuDante:
Here the main link and what to select before the download

http://opengapps.org/

choose arm then 6.0 then pico (or your pref of choice)
[E 2015 Original Android Development] jacquelinexrose:
sorry for all of the posts, but do I create the new folder, IN the twrp folder? or do I create the new folder and put the twrp folder within the new folder?

---------- Post added at 10:07 PM ---------- Previous post was at 10:04 PM ----------

thank you, I checked pico, but stock is still checked off. is this okay?

---------- Post added at 10:09 PM ---------- Previous post was at 10:07 PM ----------

would I want super?

---------- Post added at 10:15 PM ---------- Previous post was at 10:09 PM ----------

I understand why the setting it pico now, that is what I want. Its downloaded, the only problem is that pico and stock were checked, and I couldn't get it off of stock. I know the file size will be larger, and I know it will give me all of the stock apps that I don't want on my phone, but is that all the difference it makes?

---------- Post added at 10:35 PM ---------- Previous post was at 10:15 PM ----------

ookay, I tried to install and it says failed:

no md5 file found

this package is for device: xt1505, xt1506 dsfkjhsdf: this device is surnia

(in red) error executing updater binary in zip '/sdcard/twrp/reloadandroidsystem/cm-13.blabla.zip'

error flashing zip

---------- Post added at 10:50 PM ---------- Previous post was at 10:35 PM ----------

I found this:

Download: cm-13.0-20160410-NIGHTLY-surnia.zip (285.49 MB)

..and this worked w/ the ggaps you posted (stock and pico) .

this was successful. android is now starting up.

what does all of this mean for my phone now that its working?

ROM, OS, etc?

---------- Post added at 10:51 PM ---------- Previous post was at 10:50 PM ----------

thank you so much, you saved my life!!!! :)
[E 2015 Original Android Development] IronTechmonkey:
This may not be a TWRP issue, and may be a matter of SD card corruption or failure but it did occur shortly after I was working in TWRP so I figured it might bear mentioning.

L5.1.1/CM12.1 December 2015, SuperSU 2.65, TWRP3.0.2r1

- 64GB Sandisk Ultra SD, initially accepted as formatted or formatted upon first use to Fat32; Working fine for a few months as repository for static data (ROM zips and app apks), work material (frequently edited text, DOCX and XLSX files), as well as apps and app data with a dynamic presence on the drive.

- Drive suddenly stopped appearing on device in CM and in TWRP. When re-inserted in CM, the system detects a card but times out as it is unable to find a mount point. Attempts to mount SD card in ROM result in the following error in CatLog:

"E/Vold (222): /dev/block/vold/179:65 failed to mount via VFAT (No such device or address)

E/Vold (222): Volume sdcard1 found no suitable devices for mounting :("

- Attempts to repair, partition or format the drive in TWRP result in mount error and the details of the drive have zeros where there should probably be other values.

/external_sd | | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB

Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage

Primary_Block_Device: /dev/block/mmcblk1p1

Alternate_Block_Device: /dev/block/mmcblk1

Display_Name: MicroSD Card

Storage_Name: MicroSD Card

Backup_Path: /external_sd

Backup_Name: external_sd

Backup_Display_Name: MicroSD Card

Storage_Path: /external_sd

Current_File_System: auto

Fstab_File_System: auto

Backup_Method: files

MTP_Storage_ID: 65537

- With SD in card reader attached to PC, the contents of SD are visible and can be copied to PC but files cannot be copied from PC to SD card. It looks like they are copied but they are gone when card reader is disconnected then reconnected. Same in Linux Ubuntu 14.x.

- Unable to delete or reformat partitions in any utility that I tested including: Dedicated GParted boot USB, EaseUS Partition Master, HP USB Disk Storage Format Tool on PC, GParted in Ubuntu 14 VM, GParted in Ubuntu 10.x live CD/USB.

- Although the SD drive shows as Fat32 in GParted, Windows 7 only offers exFat and NTFS as formatting options. Some research shows exFat can digitally "write protect" drives with a dirty bit or byte which causes very similar symptoms.

Soooo...the questions are: What in the realm of relatively normal android use might cause this? Has anyone heard of a disk or partition management setting or common form of drive corruption that could cause this? Considering that the 32GB replacement SD is doing OK I lean towards this being a problem with the SD card's drives logical instructor or physical corruption and but I wanted to throw it out there just in case anyone had a similar experience, or if this is something I caused accidentally from within TWRP, if that is even possible.
[E 2015 Original Android Development] Hakkinukai:
TYVM [MENTION=6485916]squid2[/MENTION] fo the excelent Job, Everything worked fine, and the updates are hot !!!
[E 2015 Original Android Development] arushdude:
rooting after OTA update of android 5.1 on otus xt1506

i am rooted on stock rom and i am recieving OTA update of 5.1 version..

will i be able to install twrp recovery and then root after updating to 5.1..!?

any help would be appreciated...!! :)
[E 2015 Original Android Development] PseudoDev:
You can. But frankly speaking, you have no reason to unless you are not going to flash ROMs, or kernels.

The only use of a custom recovery is to flash ROMs or Kernels. As you mentioned you are in stock, and about to receive updates for 5.1, this means that you are probably not interested for a custom ROM. If you are going to flash a recovery, there's no harm but why go through the process. If you are going to flash a ROM, go for it.

But i would recommend flashing this recovery and also flashing a ROM because there are a lot of 6.0.1 ROMs out here but again, that's your call. Hope this helped. :):)

and as far as backups are concerned, you can create a full backup of your phone by following this guide : http://xdaforums.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351
[E 2015 Original Android Development] IronTechmonkey:
As long as you've not yet unlocked the bootloader. My US 36 Retail Xt1511 would not install the update with unlocked boot-loader even though I was on unrooted stock with stock recovery.
[E 2015 Original Android Development] arushdude:
mine is unlocked too.. but i'll make a backup and then try updating.. lets see what happens..!
[E 2015 Original Android Development] Joel Oliveira:
How to iniciate CM 13 in BP Tools to use COM & LPT ?
[E 2015 Original Android Development] IronTechmonkey:
Bad things including TWRP settings reset after deleting folder named.. from Int SD

[MENTION=6485916]squid2[/MENTION]

Still on CM12.1 Dec 2015 unofficial build with twrp-otus-3.0.2-r1...

I had just noticed a folder with zero file size and no (apparent) contents created a few days ago named named .. in root of internal SD. I deleted the folder then after a reboot the entire contents of my internal SD were gone except for the folders that Android recreated upon boot. Some of those folders seem to be things that you would expect to see in root and not on Internal SD.

When I booted to recovery my TWRP settings were back to the defaults and TWRP was asking about write access to system. A factory reset and system restore did not restore the Int SD card (although I'm not sure it is supposed to) Perhaps I did something foolish by deleting that folder but I had never seen it before and found no reference to is on-line, and I am curious about what might be the connection to TWRP in re default settings. I'm not casting any blame (other than at myself), but would appreciate your take on this. Thanks.
[E 2015 Original Android Development] squid2:
The "folder" named .. is not actually a folder. On Linux/Unix systems, the .. folder is effectively a link to the parent directory. So if you delete .., you will delete the parent directory. This would result in the deletion of child directories too (including the folder you are in). So deleting .. would delete everything in that part of the internal SD.
[E 2015 Original Android Development] IronTechmonkey:
Thank you for the explanation. I had a sneaking suspicion that was the case since .. has been used to denote one level up tree for ages even in DOS, and I was well backed up so I took the chance. I suppose the fact that it was a link on a Linux/Unix based system could explain why it was visible via USB-MTP in Windows Explorer with no contents and not visible in file managers on the device (CM File Manager and MiXplorer) but this leaves me with 2 (more) questions:

1) It was dated a few days ago (June 16, 2016), and I had never seen it before. Do you know of anything that would cause such a link to appear on an Android device that had been in use for months since last flash?

2) Are the TWRP settings by any chance saved on the internal SD.

In any event, thanks again for the reply and for continuing to jam on CM13 (that batch of commits in the June 17th nightly, wow).
[E 2015 Original Android Development] ZimmyStardust:
Hello, I'm trying to flash TWRP but I get the following error is fastboot "<bootloader> Preflash validation failed" on the phone the message that I get is "Mismatched partition size (recovery)

Any help will be greatly appreciated!
[E 2015 Original Android Development] Elanza_48:
[MENTION=6485916]squid2[/MENTION]

Can you please upload the theme u used in the latest built?
[E 2015 Original Android Development] Yeshas Prabhakar:
Edit: deleted
[E 2015 Original Android Development] aputtapa000:
Returning back to Otus Stock Recovery

Hello All. I have recently rooted my phone and through the procedure used this twrp recovery. I recently got the OTA update on my E2 3G(Otus) for a security update but this update(when attempted to install) boots into TWRP and doesn't install the update. After my own research of this case, I found it necessary to revert back to the original/stock recovery. I flashed this and booted into the recovery to see the android logo w/"!" mark. I was happy to see the recovery working but my question is, will my installation of the OTA update work with this stock recovery(or you can also interpret this question as: Is this recovery the original stock recovery?)? If you ahve any questions or an answer to this question please let me know. THANKS!
[E 2015 Original Android Development] Elanza_48:
You should have used the flashfire apk by [MENTION=631273]Chainfire[/MENTION] instead of flashing the stock recovery.
[E 2015 Original Android Development] aputtapa000:
But now what?

Thank you for this response but since I have already flashed the stock recovery, my question is will the stock recovery be usable to update the device? If not, how do you use flashfire to flash the ota update for the E2? Thanks again!
[E 2015 Original Android Development] Elanza_48:
You can never flash ota updates manually via stock recovery on any phones ,also many devices like motorla doesn't provide any User Interface to use any functionality through stock recovery.

First download your ota package manually and then flash it via flashfire. To know more you can search on YouTube to know how to use it.
[E 2015 Original Android Development] aputtapa000:
Hi again,

I am not manually flashing the ota update because I will be using the random prompts the show up by Motorola asking if I am ready to install. However, you did clear one of my doubts where you said that there is no UI for the recovery which helps because when I had flashed the stock recovery, there were no options of usage so I was doubtful but now that you mention this, I am ready to install the ota update. Thanks for all the help! :good:
[E 2015 Original Android Development] ramakrishnamundru471:
Remove the option to erase microSD card

I use the advanced wipe option quite often. So i'm concerned that an accidental checking could delete all your data. So please remove the microSD optipn in advanced wipe.
[E 2015 Original Android Development] Elanza_48:
I mentioned that the stock recovery doesn't provide UI for manually flashing, but it has UI and can be used to flash OTA Updates through adb sideload. Just boot into recovery mode and press volome up +power. select the adb sideload option when the ui appears and then sideload via adb.

The flashfire apk is used to flash ota without stock recovery and hence not much headache.

My advice is to reflash the twrp and use flashfire apk.
[E 2015 Original Android Development] squid2:
Squid TWRP 3.0.2-r5

I've posted a new TWRP build with improved Nougat compatibility and many small updates from upstream. The download is up on the downloads tab as usual.
[E 2015 Original Android Development] Elanza_48:
Thank you sir !!
[E 2015 Original Android Development] 011COACH:
For what it's worth, the clock seems to be way off. I set the correct time zone for my region (UTC +1), but clock is showing 5h38m fast.
[E 2015 Original Android Development] IronTechmonkey:
In some versions of TWRP I've seen the clock be an hour off for part of the year (possibly due to outdated or different dates upon which "daylight savings time" starts and ends) but never a non-hourly time difference such as you are seeing.
[E 2015 Original Android Development] 011COACH:
I've never seen it either. I had no issue on twrp-otus-3.0.2-r1.img. But yes, a 38min discrepancy with r5.

Was I supposed do do any wipes? I just "fastboot flash recovery twrp-otus-3.0.2-r5.img" over top of r1. CyanogenMod 14.1 for Moto E 3G (otus) Dec 7 Build was already installed.
[E 2015 Original Android Development] hp5942:
Well I unlocked bootloader and tried to flash twrp-otus-3.0.2-r1.img by Fastboot and it succeeded but each time I reboot to recovery it shows stock recovery

Booting to twrp img is fine (Fastboot boot command), so is there any flashable zip for recovery or any solution to avoid stock recovery opening

Thanks
[E 2015 Original Android Development] dbarrera:
Stock ROM restores to stock recovery. What I did was, after flashing TWRP, install CM, that way recovery is not being restored to stock.
[E 2015 Original Android Development] Elanza_48:
Download both 3.0.2-r1 and r5 then copy r5 to the sdcard

Then flash r1 via fastboot then flash the r5 img through the flashed r1 version.
[E 2015 Original Android Development] 011COACH:
I reverted to CM13 and the clock issue was corrected.
[E 2015 Original Android Development] Joel Oliveira:
TWRP R5 takes a long time to start, and does not automatically install cm14.1 updates.
[E 2015 Original Android Development] dbarrera:
Recently I downloaded r5, can you explain how to flash the recovery image through recovery?
[E 2015 Original Android Development] Yeshas Prabhakar:
Deleted
[E 2015 Original Android Development] Elanza_48:
Of course you can !!
[E 2015 Original Android Development] Elanza_48:
Boot to the recovery, tap on the install option then tap on "install image" on the down right as shown in the pic.

Then select the recovery r5 img and then select the recovery partition as shown in pic.

Then swipe to flash,

Then goto the reboot menu and re boot the recovery.

That's it .
[E 2015 Original Android Development] Elanza_48:
As someone facing the network (RIL) problem till now on CM 14.1 i.e, because they might be using the SELinux mode changer apk, which leads to this problem. Please use the terminal emulator to change the selinx mode and uninstall that apk.

****APOLOGIZE FOR POSTING IN THE WRONG THREAD **
[E 2015 Original Android Development] dbarrera:
Thanks for your guidance!
[E 2015 Original Android Development] moto e2 3g:
Guys which recovery is better 3.0.2-r1 OR 3.0.2-r5. I mean is r5 stable or is having some bugs?
[E 2015 Original Android Development] zulfi984:
r5 is good.. no bugs
[E 2015 Original Android Development] Elanza_48:
Recovery is not build for stability and quality but compatibility. If you don't upgrade to the latest versions it won't be compatible to newer roms.
[E 2015 Original Android Development] moto e2 3g:
Thanks [MENTION=7935238]zulfi984[/MENTION] and [MENTION=6785482]Elanza_48[/MENTION] for your reply.

Can you plzz help how to upgrade to 3.0.2-r5 from r1.
[E 2015 Original Android Development] Elanza_48:
See this post

https://xdaforums.com/moto-e-2015/orig-development/twrp-recovery-moto-e-3g-2015-t3084849/page12
[E 2015 Original Android Development] moto e2 3g:
Do i have to wipe something like cache etc before flashing or can i simply flash img file from twrp
[E 2015 Original Android Development] Dev_Mashru:
Just flash the file.
[E 2015 Original Android Development] Elanza_48:
No, but select the recovery partition for installation.
[E 2015 Original Android Development] voshchronos:
Reporting in to say this worked perfectly on my XT1506. Nice. Backup and restoring also working flawlessly.
[E 2015 Original Android Development] Rush94:
facing issue while installling magisk they say its boot recovery.imng issue what should i do ?
[E 2015 Original Android Development] Elanza_48:
Is there any hope for getting the 3.1 update ?
[E 2015 Original Android Development] Dev_Mashru:
Yeah since [MENTION=6485916]squid2[/MENTION] released 3.1 for surnia, I'm hoping we'll soon get it too.
[E 2015 Original Android Development] squid2:
You'll get it, I'm running my 3.1.0-r1 (my fork) on my otus right now. When testing, I found that encrypting the system under LineageOS seems to have broken again, so I'll try to fix that, then test encryption support under the new TWRP build, then release it. If that takes too long, I'll just release what I have as is by the end of the weekend.
[E 2015 Original Android Development] Elanza_48:
Take ur time, no need to rush. Let us get a stable update. Or it will increase ur headache.
[E 2015 Original Android Development] Venkatesh narava:
I am also getting the same problem on my motoe2 3g 2015 after rooting my phone successfully while I am wiping my device it gave error 255 link what is the solution to this problem
[E 2015 Original Android Development] hafiz_binshah:
Anybody have the stock recovery image of otus?

Thank you.
[E 2015 Original Android Development] squid2:
Squid TWRP 3.1.1-r1

I've rebased my TWRP fork on the latest upstream release. It brings miscellaneous bug fixes from upstream. As usual, the download is on the downloads tab. For the case of otus, it's a more substantial release as I hadn't put out 3.1.0. The crypto issues I mentioned earlier appear to be LineageOS issues, so I'll deal with them another time.
[E 2015 Original Android Development] Ashokk8:
Is the latest 3.1.1 official version/bug free

Because someone already made a 3.1.1 twrp recovery for this device
[E 2015 Original Android Development] IronTechmonkey:
By "someone" I assume you mean the official TWRP website. Squid2's versions of TWRP, which I use on Otus and Osprey, are optimized and IMO generally better. These things should be described in the OP of this thread.

As to being a bug free, I don't think squid2 would release a buggy version of TWRP. That being said this is a development thread and there is always a chance that there is a bug, and this version was just posted within the last few hours so there won't be much feedback yet. Try it and let us know.
[E 2015 Original Android Development] Ashokk8:
Alright I am gonna give it a try

---------- Post added at 02:21 AM ---------- Previous post was at 02:00 AM ----------

I pressed install IMG and selected twrp 3.1.1 but it is asking to select these : 1. boot 2. Recovery

Which one should I press
[E 2015 Original Android Development] Dev_Mashru:
Recovery

---------- Post added at 12:26 PM ---------- Previous post was at 12:25 PM ----------

Does otus have any official twrp?

I don't think it does. I'm sorry if I'm mistaken.

And that somebody is [MENTION=6797815]Hamza Badar[/MENTION] AFAIK.
[E 2015 Original Android Development] IronTechmonkey:
You are not mistaken.Thanks for clarifying this. Indeed, there is no Otus in the main TWRP device list: https://twrp.me/Devices/.

Again, thanks for clarifying. Although I certainly have no problem with the fact that there are other TWRP builds (in fact it's nice to see any development going on) I use squids2's TWRP because squid2 is also the developer for the CM/LOS Otus ROMs that I use, as well as for other reasons described in the last paragraph of this post: https://xdaforums.com/showpost.php?p=72749276&postcount=851
[E 2015 Original Android Development] Ashokk8:
Thanks for the latest Recovery app.

It works perfectly.

Is there any possible way to get themes for TWRP for outs
[E 2015 Original Android Development] justin mathew:
I unlocked boot loader of moto e2 3g model but it shows cant load twrp.img pleasw help me sir
[E 2015 Original Android Development] justin mathew:
I cant download otus2.86 please give me other link to download it