Root and SDCard switched - Xiaomi Mi 8 Lite Questions & Answers

I have a bit of an odd problem with my Mi 8 Lite after the last update using the Pixel Experience ROM...the SDCard is now the main storage and Root appears to be secondary...does this make sense to anyone? When the last update went through, I did a backup of my apps using Titanium Pro but as the SDcard looked like and acted like root, when I performed wipe, it wiped the card and everything on it...all of my music and apps (I was able to get the music back as I had it backed up and my apps were restored easily enough)...
I hope that anyone reading this can make some sense of what I have put here...if not please ask for more information...what I need to know is how I can change them back to how they are meant to be :silly:
I should also say that I can only access the sdcard when the phone is connected to the computer and I can't see root... When I am in TWRP I can't see the sdcard but I can access root...
Here is a screen of the directories showing them arse about...
[url]https://imgur.com/gallery/Uz8QYiy[/URL]
cheers
col

Fixed

Related

Root problem

Hey guys.. after like 2 months i still havent figured out what to do after following thousands of guides..
I've tried rooting my hero but it stucks on downloading .boot.img = FAILED (remote:no access) or sth like that.. i have followed every step in like 20+ guides?and i always get the same error no matter what i do.. also the one-click flash rooting fails because from what i've been told i have an updated kernel (or how its called) version and it is fixed :/
any info u might want i am open to tell you (like my kernel version etc) i just dont know what u need to "solve" my problem ;d just ask!
i just want to root it so i can have apps on my sd, bluetooth and nothing else
Dont worry, you havent bricked your Hero yet!
GO TO THIS>>>>>>
http://forum.xda-developers.com/showthread.php?t=543571
and read 3rd post first and first thenafter and read on. Ypu should find everything you need. Be patient.
And also this thread>>>>
http://forum.xda-developers.com/showthread.php?t=559613
thx A LOT for the replies! one of the few i got so far in multiple forums..
http://forum.xda-developers.com/showthread.php?t=543571 this is the guide i had followed and it failed ;/
http://forum.xda-developers.com/showthread.php?t=559613 i have a newer version of hero and i've been told that the flashrec is patched on mine ;/ is it possible or? i couldnt do the guide (some options werent there atleast)
bump
so i somehow managed to downgrade my hero, flash it through recovery and i can access the new menu from home + power button but it still says am not rooted... any ideas?:/
You have achieved major hurdles.
To get root you have to flash rooted rom like Mocado's. I have v2.8 which I think has everything I wanted. You can have your own choice>>>
http://www.thei.tguy.co.uk/hero/Older 'Updates'/
if i flash a rom do i loose my messages/contacts if i DONT backup?also can i partition my SD without rooting? and i have already tried Amon Ra with better terminal emulator but it fails ;d btw if possible try pm me
f--k this-.-
after all the good progress i've had..
i managed to root it, partition my SD and when i tried to move my apps it, midway, it asked me to restart my device..so i did.. and now all my apps are gone, factory reset has been made, contacts are lost, messages are lost..almost EVERYTHING is lost apart from application shortucts-.- :S i have made a backup but i dont know how to use it (lol-.-) pls reply
freaking p----ed...
sry for all the bumpness.. really in need of help
whenever i try to fastboot it says not allowed..and am about to cry..
stupid nandroid backup cant get it to work! pls help!
You flashed Amons recovery... With it you can format and partition sd card, and flash rom of your choice.
Yes you loose everything when flashing rom. You could have copied your contact on sim or sd, same for applications. You can reinstall but a word of advice,
Do your wipes first, I mean to ensure smooth running of rom. Hope it helps.
And when not sure please read, read and read, we are all here to help one another. Regards.
how can i do a backup for my contacts and messages? i have the .img files ;/
when i fastboot it says remote: not allow
also htc sync doesnt work now
and when i restore from recovery boot it says nandroid mobile sh failed run via console ;/
No dont flash .img.
Re- restoring contacts, I dont know any easy way but all your sim contacts can be copied. All phone contacts will have been wiped ,that swhat happenes when we install new os.
i thought it was the other way around and i copied everything on my mobile.. lol..
anw doesnt matter ;d just had 40 contacts anw ;d
can i restore messages, application saves and application folders at least? btw my phone aint working on htc sync now ROMS are still on btw
and how can i correctly partition my SD so any application i add it is saved on SD?thx ;d
Just one thing. Refrain from using foul languages as this forum is open to all ages of members and it will also reflect bad on you.
Install something like Astro, open it ,click menu and go from there to back up all your installed apps.
yeah sry forgot :/
will edit it right away
also thats what i mean, all my apps and their saves/settings are on backup.imgs :/ my hero is like a brand new one with modaco installed and nothing else... and htc sync doesnt load it, although i can use mass storage
Back up images are actually of rom itself. Sorry I dont know how to reinstate sms messages. This questiones was asked by a friend about his iPhone and again I couldnt answer as I never owned iPhone.
Anybody out there to answer question raised in above post?
meh doesnt matter i guess
i'll just "rebuild" it from scratch ;/
just wanna know what to do now so i get a partition on my SD.. i have a 2gb card which was partitioned before but i restored it.. i want 2 things
1) howto partition it for automatic saving apps on SD! and not having to move them everytime
2) how to make HTC sync works -.- i think i "broke" it:S i reinstalled it 4 times so far..nothing..
1) Format and partition feature s in your recovery. Format the whole card as fat32 and next make partition but again you will loose everything on card! After that you will need to mount your sd card ( option in recovery) so that you can put copy back everything on it. But why do you want to do it if everything is working?
2) Do you see ADB in system properties? If yes, drivers are installed correctly.
It is worth browsing Dream forums as Dream was first Android phone hence more to read and almost all can be related to Magic and Hero units operational practices except rooting and flashing bits.
one last thing man
atm i am looking for another application to connect to my hero to install other apks :/ currently i have apps2sd on hero although and i was wondering if all i have to do is Copy apps to SD and thats all? (whats dalvik cache that asks me to copy btw?)
i asked about formating and partitioning cause i am getting an 8gb in a few days and i was wondering if i should do it like that
and no i cant see ADB in system properties ;o how can i install the drivers ;/
1) i've read that modaco doesnt work with HTC sync anymore sometimes.. so i was wondering if there is anyway i can install apk without htc sync?
(tried with adb had 2 different errors)
2)is there anyway to like load 2-3 roms and swap between them without loosing anything? (if yes, how)
thx
edit: i reinstall htc sync and my drivers are gone! cant get them back..my pc doesnt even load APK files! :S

[Q] Ice Cream Sandwich Full Device Encryption and Flashing

If one enables full device encryption in Ice Cream Sandwich, am I correct in assuming that that the internal SD of that device is now not going to be available in the CWM recovery mode? And even if it was, the root fs would not be available? If so, this pretty much would make CWM flashing your device near impossible?
Does CWM even work if you use FDE? Or is it planned/
The question I guess is, when do you input your encryption password? Is it some pre-boot step?
I really want to enable device encryption but I can't find enugh details on how it works.
I did read this post on it., but it doesn't really answer my questions. And it is unclear if it encrypts the internal SD, or just the root FS?
http://source.android.com/tech/encryption/android_crypto_implementation.html
No one knows anything about this?
I got a Gnex today from Verizon in the US and I encrypted my phone after I unlocked the bootloader but before rooting. As a result I don't think I will be able to root because it doesn't seem that the modified boot.img that the instructions tell me to use can mount the encrypted system (it sat at the Google logo w/ the unlocked icon for 10 minutes before I pulled the battery and let it boot the stock boot.img) which came up fine.
It seems the only way to decrypt the phone is by doing a factory reset.
That's all I know. That being said, while a custom recovery may work for wiping partitions (such as cache), it would probably be mostly useless until the custom recovery is updated to support the encrypted file systems. I'm a *NIX user and an engineer, but don't have a lot of experience with Android's internals, so take all that with the appropriate sized grain of salt.
Regards,
Chris
Bump.
Anyone experimented with full device encryption / ROM flashing / SD Card? I'm curious about this as well, but not curious enough to experiment.
I dident try it myself, so i dont exactly know, how this works. But i think device encryption shouldent completly block clockworkmod recovery.
I think it could be a problem to make a backup while your device is encrypted. But i think it shouldent be a problem to recover a old system over an encrypted one. Encryption keeps people without the key away from reading data. This dosent mean you cant wright something over it and replace the locked data with some new one. But then you defenitly loose the old data. I dont think you can flash a new ROM or a recovery without a full wipe. You probably gona loose all the data you had on the old system.
But i general i think this is anyway a good think to do when you flash a new ROM.
I think you could give it a try, without briking your phone. But i dident try it, so i cant take any responsibility.
Would any of you happen to know how to get to the diagnostic mode?
ryfly65 said:
Would any of you happen to know how to get to the diagnostic mode?
Click to expand...
Click to collapse
I sonst exactly know hat diagnostic Mode you mean. Depends hat Diagnose you want to run. Do you want to read the logfiles in your phone, wher you can see what ist doing? You could use the app alogcat. An other way would be to run logcat over Eclipse.
Sent from my HTC Desire HD using XDA App
Hilmy said:
I sonst exactly know hat diagnostic Mode you mean. Depends hat Diagnose you want to run. Do you want to read the logfiles in your phone, wher you can see what ist doing? You could use the app alogcat. An other way would be to run logcat over Eclipse.
Click to expand...
Click to collapse
I need to edit modem information and enable a diag port for QPST, essentially allowing me to flash it to another carrier.
Is there any new information on this? Any help would be very appreciated!
Sent from my Galaxy Nexus using XDA App
I encrypted mine after flashing the stock ICS 4.0.3 image and rooting. CWM still loads, but when I try to use USB mass storage, windows tells me it needs to be formatted before the SD card can be used.
You can use titanium backup to make backups of your stuff, and restore them to a non-encrypted phone. I have found no other way to unencrypt the phone than factory reset either. When you encrypt, then go to settings > security > encryption, it just has a greyed out area saying "Phone is encrypted", which is stupid and needs to be fixed.
nevarDeath said:
I encrypted mine after flashing the stock ICS 4.0.3 image and rooting. CWM still loads, but when I try to use USB mass storage, windows tells me it needs to be formatted before the SD card can be used.
You can use titanium backup to make backups of your stuff, and restore them to a non-encrypted phone. I have found no other way to unencrypt the phone than factory reset either. When you encrypt, then go to settings > security > encryption, it just has a greyed out area saying "Phone is encrypted", which is stupid and needs to be fixed.
Click to expand...
Click to collapse
So if I factory reset the device from CMW I will not loose my pictures or TB in the internal SD?
What about flashing a new ROM?
Thanks!
I have been playing with ICS + FDE for several days doing different things. First off this is:
Nexus S 4G, running Pete's crespo4g OTA ROM
I flashed with CWM which is still on there and runs fine.
However: /data and /sdcard and /system (?) are encrypted and CANNOT be mounted.
To restore you have to 1) make a full backup over USB to a PC of the whole SDcard (or at least the important folders).
2) wipe and reformat everything. This isn't just a factory reset, this kills the sdcard as well.
3) mount (hopefully) the newly reformatted /sdcard and blow your backup from the PC onto the /sdcard
4) use CWM to restore a previous ROM.
That's pretty much it, give or take. Not for the faint of heart. However, if you are concerned enough to want encryption, you don't want to just say reboot recovery and voila all your files are belong to us, right?
---------- Post added at 03:58 PM ---------- Previous post was at 03:34 PM ----------
Also, the backup to PC part is just your sdcard. It doesn't back up the whole system. There might be a way to do that via adb, I don't know.
So i am running rooted runnig miui.us rom. I just tried to encrypt phone.. It ran for 2 and a half hours and I got impatient. thinking maybe i shouldnt have done it... Then after a little bit of panic i said **** it if i lose data i lose data... so i powered off and back on hoping i didnt and the rom booted back up with all my data intact..... •••••• Wish I had more to report but im not doing that again until someone can confirm that it works fine...... I have tried booting into cwm yet.. If i have an issue when i need to boot illl report back but if you dont hear from me here then assume I was able too.
Pete's to CM9 - still encrypted
IT does indeed take a fairly long time to encrypt. If I understand correctly it will build the encrypted partition on a loopback (or something like) before erasing the original (by overwriting?).
I've got more to report. I followed my plan (couple posts back) for unencrypting and reflashing my phone. (Nexus S 4g).
The first bits of this worked fine. I was able to flash CM9 onto my phone (works like a champ btw). While the phone was in recovery I mounted the SD and copied my backup back onto it.
However...
When CM9 booted I STILL got the "unlock your device" screen, still the same password, and it decrypted and booted. That was surprising, but not as much as when I looked for the SD card, it said it was incorrectly formatted! The only thing to do was reformat and copy with the phone on and unlocked.
So lessons learned: 1) a factory reset from _inside_the_ROM_ doesn't remove the encrypted partition at all and
2) As far as I can tell, the SD card _is_ encrypted along with /data
I'd be very interested to hear other's experiences, especially someone who can remove their SD storage.
Undoing FDE
First off - Lacking a device with removable storage to test with all I can tell you is that the sdcard is not accessible by any normal means after FDE is enabled without booting into the encrypted system.
"Removing" FDE required three steps beyond normal:
-Factory reset from within the ROM
-factory reset/wipe at recovery and/or format /data
-once into a running ROM, reformat the sdcard
Once all that is done (in addition to normal setup for ROM) you should be able to operate normally again.
problem with encryption on sgs2 with android 4.0.3
I really want to enable my device encryption too, but I can't !!!
the phone start encrypting after he ask me for a new secure password, rebooting and asking again for my password and surprise!!!.... the password is not match ?!?!
I repetead these steps for 3 times but the same result...the password does not match!!! ?
Please, if someone found a trick to repair this inconvenient, tell us in this post steps to be followed.
Regards!
SGS2, Android Icecream 4.0.3
leech2082 said:
So i am running rooted runnig miui.us rom. I just tried to encrypt phone.. It ran for 2 and a half hours and I got impatient. thinking maybe i shouldnt have done it... Then after a little bit of panic i said **** it if i lose data i lose data... so i powered off and back on hoping i didnt and the rom booted back up with all my data intact..... •••••• Wish I had more to report but im not doing that again until someone can confirm that it works fine...... I have tried booting into cwm yet.. If i have an issue when i need to boot illl report back but if you dont hear from me here then assume I was able too.
Click to expand...
Click to collapse
I did exactly what you did, and so far everything seems to be intact Thanks!

[Q] Problems with gallery, music, and ringtones....please help

I have been researching this problem for a couple days now and have not found any solutions please hlep before I go crazy. I have been using MeanRom for quite awhile now and love it....(great rom). I had no problems all the way up to 3.2, but then I flashed 3.6 (I also flashed the new radio). Every thing seemed to work great my phone was finaly running very smooth and not having any slowdown periods. I then noticed that my ringtones on my sd card did not show up for me to choose in the personalize app. After this I found that my pictures in my gallery and music in my HTC music app dont show up. When I use my akimbo audiobook player it finds the audiobooks on the sd card fine, also es explorer shows all the music and pictures are on my sd card and can be played or viewed through es explorer.
Equipment: EVO lte, 32 gb pny sd card
Things I have done to fix this problem:
--tested my sd card and it appears to be the real thing and functioning great
--tried another sd card had the same results
--tried coping my music, ringtones and pictures to internal memory......results same problem
--tried coping my ringtones to system ringtone folder and it still would not recognize them.
--copied the SD card to my computer, formated it and then copied data back.......result the same problem as before.
--did a system wipe, and factory reset, clean install of Mean rom 3.8, 3.9, and 4.0 .......result the same problem as above.
--removed all data from internal memory, did a clean install of Meanrom 4.0.......result the same problem
--used superwipe did a clean install of meanrom 4.0.....result the same problem
--did a data restore back to previous 3.2 meanrom.....result everything (music, pictures and ringtone) work again, but battery drain is horrible.
I have spent hours flashing roms, and searching the internet for a fix and can't find anything that works please help!!!!!!!!!!!!!!!!!!
Thanks in advance for your help.
I had the same problem with mine on a different Rom. All was fine until the flashes based on the new OTA base. I hope someone with an answer jumps in here.
fltinstructor said:
I had the same problem with mine on a different Rom. All was fine until the flashes based on the new OTA base. I hope someone with an answer jumps in here.
Click to expand...
Click to collapse
That is exactly where the problem started is when the MeanRom went to the new 2.13 base.
Had a similar issue with gallery not recognizing pics from sdcard2. Was on stock, rooted. Took phone back for secure element brick before I tried anything.
Ask me about my ability to annoy complete strangers!
So I kind of got around this by clearing everything. Doing a clean install of MeanRom 3.4 (last rom before 2.13 base). rebooted, added all my info for registering the phone. rebooted to recovery, cleared cache and dalvik, installed MeanRom 4.0 then used titanium back up to restore apps but not system data. Doing this got me ringtones, music and pictures to start working again.
Note: after installing updates to some apps in the Play store lost the SD card again. Used Titanium backup to revert apps back to pre update status and SD came back. Guessing it is an app causing problems but not sure since I had this problem even after a clean install of MeanRom 4.0 prior to installing my apps.
Johnday29 said:
So I kind of got around this by clearing everything. Doing a clean install of MeanRom 3.4 (last rom before 2.13 base). rebooted, added all my info for registering the phone. rebooted to recovery, cleared cache and dalvik, installed MeanRom 4.0 then used titanium back up to restore apps but not system data. Doing this got me ringtones, music and pictures to start working again.
Note: after installing updates to some apps in the Play store lost the SD card again. Used Titanium backup to revert apps back to pre update status and SD came back. Guessing it is an app causing problems but not sure since I had this problem even after a clean install of MeanRom 4.0 prior to installing my apps.
Click to expand...
Click to collapse
Can u figure out what app it was?
When I have some time I will try and let you know.

[Q] CWM error while making backup image of /data

This error is still not answered on the forums so im starting a new thread.
i get the error as the title.
sd card space is not the problem.
i tried formatting the sd card.
i have less than 50 apps installed.
wiped dalvik cache, and all other sorts people say on other posts.
(my phone is LG P936 so "fix permission" screws up the phone. all text disappears)
have latest cwm recovery.
and still get the error.
any answers please?
and please dont reply if you are going to write an opinion.
only answers please.
sorry for my rude behaviour but I'm sick and tired of reading posts full of opinions and "maybe"s.
Not sure if you ever got this fixed but I 'm suffering from the same error. I tried pretty much everything you tried (even fix permissions) and I have about 20GB free on my SD card so space shouldn't be an issue. I have not yet tried formatting the SD card since it has always worked and CWM is able to write to it because the following files are created:
- boot.img
- data.ext3.tar
- recovery.img
- system.ext3.tar
The files that are missing are (based on older backups):
- .android_secure.vfat.tar
- cache.ext3.tar (probably because I wiped it first?)
- nandroid.md5
I have attached the log from CWM in the hopes that someone can tell me what is wrong. The error occurs at the end of the progress bar of 'backing up /data'.
hey just use TWRP Recovery. It's way better than CWM. normal backup on cwm took me like an hour but twrp was never longer than 10minutes.
Today I have formatted the SD card and tried again, but as expected it did not change anything.
ceoleaders said:
hey just use TWRP Recovery. It's way better than CWM. normal backup on cwm took me like an hour but twrp was never longer than 10minutes.
Click to expand...
Click to collapse
I guess I will give this a try. Can I just install it over CWM or can they run side by side?
different reciveries cannot be run side by side as they are installed on a different partition. so it will always be installed over your current one.
ceoleaders said:
different reciveries cannot be run side by side as they are installed on a different partition. so it will always be installed over your current one.
Click to expand...
Click to collapse
Well, I tried TWRP and it also fails at backing up my data partition. The log is a bit more clear though and it seems to get stuck on "/data/data/com.android.vending/cache/images" which is the last line before it gives an error. I checked the "images" folder and it seems empty but I cannot delete it. Tried ES File Explorer and Terminal Emulator but no way to get rid of it. The folder appears to be related to Google Play, so I cleared all data and cache from Google Play, even uninstalled the updates but there 's simply no way to get rid of it. I 'm not sure if this is the reason why the backup fails, but I CAN copy the folder and even rename it.
Pff looks like I 'm going to have to do a clean install after all .
Hello, I too have this problem and unfortunately TWRP is not available for my phone.
I used to be able to do CWM backups fine on my old phone, and they work great on my tablet. But they consistently fail at "/data" on my Galaxy Ace II x. Might it be because I'm using Link2SD? I don't see why that would cause a problem, but maybe it's having trouble with the symlinks?
Hmm. Seems the issue was that, despite having only 1.28 GB total available storage space on stock, the backups wanted more than 4 GB. Cleared some room on my microSD card and suddenly backups worked fine! Of course, shortly after I installed CyanogenMod, which has much smaller backups...
Sent from my GT-S7560M using Tapatalk 4
I forgot to report back here but the only way I found to fix the problem was by doing a clean install. After that, I was able to backup my data partition again. I then restored my apps ' data with TB and was unable to backup the data partition again. I 'm guessing one of my apps had corrupt data, but never got to find out which one it was.
maybe your partition not match with recovery, like something wrong vold.fstab
Just in case anyone still wants to know how to fix this, I managed to solve it by running these commands:
1. run adb shell in recovery.
2. unmount data partition (umount /dev/block/mmcblk0p26). -> this one failed so I skipped it
3. run e2fsck /dev/block/mmcblk0p26
See http://forum.xda-developers.com/showpost.php?p=48659092&postcount=868 for original post.
I got a few HTREE errors and a bunch of duplicate names which I renamed when prompted. Booted the phone and rebooted into TWRP and now I am able to backup my data partition again. :good:
EDIT: Problem reappeared so I tried the above commands again but it said that the filesystem was clean. Ran 'e2fsck -f /dev/block/mmcblk0p26' instead and had to fix a bunch of HTREE errors from Facebook again and duplicate names from Xprivacy but now I 'm able to backup my data partition again.
Dude just selest the backup format as both zip and tar filea

[Q] I installed a new CWM via CWM and lost EVERYTHING! Please Help!

I was installing the new RR KitKat via clockworkmod but got an error stating "set_metadata_recursive: some changes failed". I goggled it and many people were saying I need to get a newer version of CWM. Since I usually install things by booting CWM I thought there couldn't be too much harm in installing this new CWM via my old CWM. Boy was I wrong. Everything in my internal storage was deleted. Literally said 11.78GB of 11.78GB free. My heart skipped a beat. Videos? Gone. Music? Gone. Pictures? Gone (still hurts). Even my nandroid backups and titanium backups were erased. Surprisingly, despite this, my phone and apps work perfectly well.
Thank God I made it a point to use onenote and google task to write down my notes or else I'd be crying behind a glass wall of emotion right now.
Is there anything I can do to get my stuff back?
You can use usb mode of your phone and connect to your computer as a usb drive, then you can use a software like recuva and scan for deleted things. Recuva is free as far as i know, you can use any software that rescues deleted files.

Categories

Resources