G7+ only boots into TWRP, Files/folders renamed. - Moto G7 Plus Questions & Answers

I have a Moto G7+ that has been rooted for years with no problems and I have been chasing a solution to a problem of when trying to rename/copy a file on my SD card, it would tell me that I needed permission to access it. After researching this problem, I found a solution to edit the platform.xml (in system\etc\permissions) and add an entry for external storage. I also deleted two downloaded instances of majisk.zip, which I don’t think did anything.
A couple of days later, I restarted my phone and it booted up until it displayed the “unlock for all features and data” screen and then it reboots to TWRP. In TWRP, if I go to MOUNT, the system partition is never checked. If I check it and restart the phone, system is always unchecked. I noticed on my backup G5 phone that the system partition isn’t checked, so this probably isn’t a factor. When I go into RESTORE, I have several restore points, but instead of dates, they all have long random alpha-numeric names.
If I select enable MTP under MOUNT, I can access my phone on my computer through file explorer. All of the files and folders in internal storage have been renamed to random 20+ character alpha-numeric names. I’ve been looking through the forums and I haven’t found any mention of this type of shenanigans.

Related

/System/App is where?

I switched from tnt-lite to Vegan and I like it - except the keyboard isn't as good. I see that there are presently two other keyboards when I go to the config page but there is no check box to select them. Searching around it seems that the way to make them work is to manually copy the keyboard apk from /data/app to /system/app - at least that is the consensus of the posts I have seen. Well, looking at my sdcard I can see a /data folder with no sub directory app but there are apk files in the data folder that I recognize so perhaps the instructions mean to copy the apk file from the data to the system folder? I'd give that a try but there is no system folder (showing). I poked around with a couple of different file explorers but nada. I thought I would be clever and explore from my PC by plugging in in usb mode but still I find no system folder. I'm guessing it is hidden but I thought the g-tab was rooted by default so shouldn't I be able to see it. So - what I really want is just to change out the keyboard so if you know how post that but just on principle now I'd like to find out if there is a system folder, where it is and how to get into it. Thanks!
/ *** is location relative to your base memory of your device (in this case your tablet).
/ by itself is called root. or your root directory. (think My Computer in windows). Everything on or connected to your device is located at /somethingorother.
/sdcard is typically where your sdcard is. Depending on your rom it might be your internal memory.
/emmc is where your internal memory is (maybe depending on your rom)
/system is where your base operation system files are located.
/sdcard/data is the location you referred to as being a data folder on your sdcard.
/data is where your phone stores data. Where internally installed apps go
if you open your favorite file manager you will see your location usually as /sdcard or home, mnt, sdcard or /mnt/sdcard it depends on your file manager. you need to "go up" a few folders to get to your root folder to find /system.
Hope i didn't make that more confusing then it actually is. Sorry if I did.
And the light clicks on ...
For some reason I was under the impression that everything had to happen down at the sd card level. I did work my way "up" and there was a system folder with apps in it! Another post said I had to make the folder RW but even though I was using terminal emulator the system was having none of that - "no sudo for you!" I went back to trolling the forum and WAY inside I found a post that was unclear to me but I tried it and IT WORKED (this is the original question about getting the keyboards to work). In my Settings/Language&Keyboard I see three keyboards:NI Keyboard, Tap 'n Tap Western Keyboard and Android Keyboard. It would look like a long press would allow you to select one but that is not the case. Having large hands, the android keyboard which seemed to be the default on my Vegan installation, was the only thing I didn't like about Vegan. The Tap n' Tap one that I had been using on TNT Lite fit me much better. So blah blah blah.... To select another keyboard you open up something that pops up a keyboard - I used Quick Office but any keyboard call seems to work. Long Press in the text area and up comes a menu for Input Method and on it were my three keyboards. The android was selected so I chose the tap n' tap instead. Apparently that switched the default and now the tap 'n tap is my new default. Problem solved. As for accessing the folders off of root - well that is a project for another day.
Well glad you got it working. If your tab is rooted then i recomend root explorer as good file manager. You can quickly change folders from r/o to r/w in one click as you explore it.
Sent from my GTablet using Tapatalk
enigma0456 said:
I switched from tnt-lite to Vegan and I like it - except the keyboard isn't as good. I see that there are presently two other keyboards when I go to the config page but there is no check box to select them. Searching around it seems that the way to make them work is to manually copy the keyboard apk from /data/app to /system/app - at least that is the consensus of the posts I have seen. Well, looking at my sdcard I can see a /data folder with no sub directory app but there are apk files in the data folder that I recognize so perhaps the instructions mean to copy the apk file from the data to the system folder? I'd give that a try but there is no system folder (showing). I poked around with a couple of different file explorers but nada. I thought I would be clever and explore from my PC by plugging in in usb mode but still I find no system folder. I'm guessing it is hidden but I thought the g-tab was rooted by default so shouldn't I be able to see it. So - what I really want is just to change out the keyboard so if you know how post that but just on principle now I'd like to find out if there is a system folder, where it is and how to get into it. Thanks!
Click to expand...
Click to collapse
Vegan support my other keyboard without issue (in fact it's the only rom I found) maybe you didn't wipe before flashing ?
Also root of the device is NOT accessible by usb unless you mean ADB...

[Q] Deleted root folder (/, not /sdcard)

Update 2:
So now I can see most of the files with ES, but OI file manager isn't seeing them. What the heck is going on? Ghost files?
Alright, so I'm in a bit of a pickle.
I was having problems with Rdio and wanted to wipe all traces of it from my phone to install an older version. Using ES File Explorer, I searched for all the files related to the app in "/" and once I found them, I foolishly used select all and delete. Problem is, it seems "select all" actually selected all the folders in / and not only those found using the search function.
The odd part is I can see all the folders in / when I use OI file manager (though some are empty, namely /data and /datadata), but not when I use ES.
Does anybody have an idea as to what I can do? Odd thing is the phone is working fine and not all files on it have been deleted (the files inside EFS seem to have been though, but I still have signal). I'm afraid to reboot it since I figure it might become bricked. I've got a recent Nandroid backup which wasn't deleted, so I'll be fine if I can get to recovery, but is there any chance of that not happening?
Anyways, I'm feeling really dumb and stressed out.
Thanks for looking and/or helping!
Cheers!
Update
Making a call seems to have restored the files (.bak and others) in the efs folder and some other files seem to be reappearing. Maybe if I just wait it out all the files will come back from the dead? Files that weren't showing 10 minutes ago are back and are dated earlier than today.
Again, I'm mainly looking to know if I can reboot into recovery (or normally?) without many problems.
Thanks!

Can't move TWRP folder off phone

I recently unlocked my bootloader using sunshine and installed TWRP. After rebooting into recovery, I immediately made a backup of my phone. When I plug my phone in, I can see the TWRP folder, but it shows as empty. None of my file explorers can see anything, either. TWRP, however, is able to see it when I go into the file manager. I can't get ADB to see the device when hooked up to my computer while in TWRP. MTP also doesn't work. Chmod 755 and 777 doesn't do anything. I was able to initially copy the TWRP folder into the downloads folder in the TWRP file manager, but now it just hangs there if I try to move it again.
How do I get access to my backup?
evanft said:
I recently unlocked my bootloader using sunshine and installed TWRP. After rebooting into recovery, I immediately made a backup of my phone. When I plug my phone in, I can see the TWRP folder, but it shows as empty. None of my file explorers can see anything, either. TWRP, however, is able to see it when I go into the file manager. I can't get ADB to see the device when hooked up to my computer while in TWRP. MTP also doesn't work.
How do I get access to my backup?
Click to expand...
Click to collapse
http://forum.xda-developers.com/droid-turbo/help/twrp-backup-file-location-t3259060
6Binford said:
http://forum.xda-developers.com/droid-turbo/help/twrp-backup-file-location-t3259060
Click to expand...
Click to collapse
Unfortunately, there aren't any solutions in that thread.
evanft said:
Unfortunately, there aren't any solutions in that thread.
Click to expand...
Click to collapse
There are two solutions in the first 4 posts:
ruledrbrt1 suggests http://forum.xda-developers.com/showpost.php?p=64048593&postcount=2
And GeoFX has the great : http://forum.xda-developers.com/showpost.php?p=64049328&postcount=5
Both work on my phone so they should work on yours too.
Have you given file explorer root privileges?
josephpalozzi said:
There are two solutions in the first 4 posts:
ruledrbrt1 suggests http://forum.xda-developers.com/showpost.php?p=64048593&postcount=2
And GeoFX has the great : http://forum.xda-developers.com/showpost.php?p=64049328&postcount=5
Both work on my phone so they should work on yours too.
Have you given file explorer root privileges?
Click to expand...
Click to collapse
I didn't even see GeoFX's post for some reason. That looks like it worked. Thanks!
TWRP and NAND Backups
I had the same question, and found the previous thread too. So what's the difference between these 2 locations?
/data/media/0/TWRP
and
/sdcard/TWRP
From my point of view, they are duplicates - same data in both folders, just duplicated into separate partitions. If this is true, then my 7.5 GB NAND backup, is really taking up 15GB of memory. Can that be true? I'm doubting it, but you never know.
I started to dive into this, because I was also wondering if NAND backups made copies of my media or not (photos, music, etc). After digging into it a bit, it looks like it does NOT make a backup of anything in the root folder "/data/media" in order to prevent it from non-stop backing up in a loop (you can't back up the location your backing up to, at the same time). This is also noted on github: https://github.com/TeamWin/Team-Win-Recovery-Project/issues/276 Logically, this would make sense since I currently have 25 GB of data in my /sdcard/ location. That's one helluva compression if you were able to get this down to 7.5GB! So I'm guessing this isn't included, which is also why I'm guessing that these are really the same. /sdcard/ must be a shortcut to the /data/media/0/ location, that's my best understanding.
So my original question still stands. What's the reason for these 2 locations, and is there a difference?
This also brings up the next question, what's the best way to make an all-encompassing backup? NAND + Titanium Backup + copy all the contents of your /sdcard/ over to your computer (or OTG drive)?
Florestan2 said:
I had the same question, and found the previous thread too. So what's the difference between these 2 locations?
/data/media/0/TWRP
and
/sdcard/TWRP
From my point of view, they are duplicates - same data in both folders, just duplicated into separate partitions. If this is true, then my 7.5 GB NAND backup, is really taking up 15GB of memory. Can that be true? I'm doubting it, but you never know.
I started to dive into this, because I was also wondering if NAND backups made copies of my media or not (photos, music, etc). After digging into it a bit, it looks like it does NOT make a backup of anything in the root folder "/data/media" in order to prevent it from non-stop backing up in a loop (you can't back up the location your backing up to, at the same time). This is also noted on github: https://github.com/TeamWin/Team-Win-Recovery-Project/issues/276 Logically, this would make sense since I currently have 25 GB of data in my /sdcard/ location. That's one helluva compression if you were able to get this down to 7.5GB! So I'm guessing this isn't included, which is also why I'm guessing that these are really the same. /sdcard/ must be a shortcut to the /data/media/0/ location, that's my best understanding.
So my original question still stands. What's the reason for these 2 locations, and is there a difference?
This also brings up the next question, what's the best way to make an all-encompassing backup? NAND + Titanium Backup + copy all the contents of your /sdcard/ over to your computer (or OTG drive)?
Click to expand...
Click to collapse
The way I understand it, and I might be wrong, is that before Android 4.0 (or maybe 5.0), the partition containing user data was called /sdcard and apps were stored in a separate partition. The partition where apps went was significantly smaller, which could result in people running out of space for apps while still having a ton of free user data. To remedy this, the newer version of android places apps and user data in the same partition (called media). The /sdcard that you see is a symlink (shortcut) to this new partition, and is included so that older apps that were designed to expect the /sdcard partition to be there will still work.

Can't restore from backup on a new phone

Part 1... I am trying to move everything from my old Samsung to a new Motorola. I was easily able to do this previously when I got the Samsung new but now am struggling. I go to Settings --> Data --> Restore and it immediately says "Sorry no backed-up data available". Every set of instructions I have seen online says that I should have the opportunity to choose the file from somewhere on my computer. I am pretty sure that's what I did last time.
The 2nd part of this issue is that when I go to Internal Storage on my new phone, only 3 or 4 of the Application Folders are showing and Tasker is not one of them. Therefore, I can't move my backup file into the directory that Tasker is looking for it. On my Samsung, I can see the folders for all of my apps but not on the Motorola. I enabled Developer Options thinking that might be issue but it didn't work. I have also tried 4 different file manager apps and set all to "Show Hidden Files" but nothing.
So, if any of you know how to correct either part of this, please let me know. Thank you.
The second point explained the first problem. The backups are contained in the "/sdcard/Tasker/config/" directory, either under the folder user or auto depending on whether it was a user backup or a scheduled auto backup.
Is this the folder you're saying doesn't exist? If that's the case, I'd think there is something wrong with the install.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
still confused
I'm confused. My Samsung S6 Active doesn't take a SD card and my new Moto can take one but doesn't have one yet. So where are all of the application files?
check your /storage/emulated/0/Tasker/config on your old Samsung. If you have made a backup of of your Tasker data from within Tasker, it should be there. Copy it to the new one.
On your new phone, open Tasker, Data, Restore. You can then choose where to find the file.
alienyd said:
check your /storage/emulated/0/Tasker/config on your old Samsung. If you have made a backup of of your Tasker data from within Tasker, it should be there. Copy it to the new one.
On your new phone, open Tasker, Data, Restore. You can then choose where to find the file.
Click to expand...
Click to collapse
I did all that as I mentioned in my OP. However, Tasker never gives me the opportunity to select file to restore. As soon as I select Restore, it immediately says "Sorry no backed-up data available".
StephenMN said:
I did all that as I mentioned in my OP. However, Tasker never gives me the opportunity to select file to restore. As soon as I select Restore, it immediately says "Sorry no backed-up data available".
Click to expand...
Click to collapse
That is weird. I would suggest re-install.
StephenMN said:
I did all that as I mentioned in my OP. However, Tasker never gives me the opportunity to select file to restore. As soon as I select Restore, it immediately says "Sorry no backed-up data available".
Click to expand...
Click to collapse
Before you can do anything on your new phone, you need to copy over the backups from your old phone. The fact that you find only "only 3 or 4 of the Application Folders are showing" suggests to me you are in the wrong place.
The actual tasker apk is "/data/data/net.dinglisch.android.tasker". That location is different from where the working directory is.
I'm guessing you are in the "/storage/emulated/0/data" directory and need to go up a level and look for the "Tasker" folder there. The config files are in "/storage/emulated/0/Tasker/configs"
Please be specific as to the full path where you are looking. All of these paths could be different depending on what version of Android and what device you are using. So the path on your old phone may well be different than the path on the new phone. You need to find the base path for what passes for user data; often the sdcard, or an partition setup to emulate an sdcard.
**** Edit ****
NOTE: all of these paths are ROOT paths. If your device is not rooted, and you use a file explorer, the path is simply Tasker/configs
And if on a new device the folder doesn't exist, just create by copying the folder from the old device to new.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
SOLVED!!!!!!!!!!
alienyd said:
That is weird. I would suggest re-install.
Click to expand...
Click to collapse
I was sure that this was the problem but I had same problem after re-installing. However, that suggestion did inspire me to figure it out. I first cleared all of the data and cache but that didn't do anything either. So, then, on a whim, I created a backup of nothing onto my new phone. Then, I went to Restore and it gave me the option to pick the file from other phone which was sitting in my Downloads folder. I guess that default directory doesn't get created until you backup your projects the first time. Since Tasker couldn't open its default file location, I was getting the error message.
Thanks for everyone's input.
StephenMN said:
I was sure that this was the problem but I had same problem after re-installing. However, that suggestion did inspire me to figure it out. I first cleared all of the data and cache but that didn't do anything either. So, then, on a whim, I created a backup of nothing onto my new phone. Then, I went to Restore and it gave me the option to pick the file from other phone which was sitting in my Downloads folder. I guess that default directory doesn't get created until you backup your projects the first time. Since Tasker couldn't open its default file location, I was getting the error message.
Thanks for everyone's input.
Click to expand...
Click to collapse
great to know you solved it.
I'm guessing, there might be a bug in Tasker, which occurs when you try to restore a backup BUT the default config folder is empty. Tasker decides just to throw up an error without even letting you choose any folder.
This is just my guess...
This was the solution to my problem as well! Before sending my Galaxy S7 Edge in for repair, I backed up Tasker, then restored my device to factory settings. After the return of my phone and reinstalling all apps, attempting to restore the previous Tasker backup resulted in only a "restore from Android cloud" option. I could see the xml backup that I had stored on my SD card (.../sdcard/Tasker/configs/user/backup.xml) but Tasker would not provide an option for a local restore. Finally, after performing a backup (of an empty Tasker setup) to the desired location, Tasker would then allow me to restore from the SD card. Now all is well but it certainly was frustrating spending so much time trying to get Tasker to perform a simple restore of a file that was in the expected location.
Thank you
StephenMN said:
I was sure that this was the problem but I had same problem after re-installing. However, that suggestion did inspire me to figure it out. I first cleared all of the data and cache but that didn't do anything either. So, then, on a whim, I created a backup of nothing onto my new phone. Then, I went to Restore and it gave me the option to pick the file from other phone which was sitting in my Downloads folder. I guess that default directory doesn't get created until you backup your projects the first time. Since Tasker couldn't open its default file location, I was getting the error message.
Thanks for everyone's input.
Click to expand...
Click to collapse
Logged in just to thank you. this has been bugging me for a couple of phones, but I usually just give up and manually copied my profiles over. this just saved me a lot of tapping!

Help!! - Unable to access my P20- Invalid PIN

Hi Guys,
I have an issue accessing my P20 pro, that I PRAY someone can help me with!
So, the story goes as such. I recently updated my P20 using Hurupdate, and as part of the process i disabled Screen lock in Developer options (i didnt delete the actual PINs, fingerprints etc from the phone) in order that i can get access to the data partition in decrypted format in TWRP and update the phone.
Upgrade appeared to go fine and phone worked no problems...until I tried to re-enable and re-implement fingerprint unlock. It asked me to set up a 6 digit PIN first, which i tried, but it seemed to go around in circles. Eventually it took a PIN, and then BOOM! I was unable to use that PIN to access the phone.
I've tried the old school method of deleting the locksettings.db file from /data/system (didnt seem to be any .key files for some odd reason), and now i dont get prompted for a pin, but i get a blank desktop. This is clearly because the data partition is still encrypted and the phone cannot access the data to start up my desktop etc.
My question, is there a way to remove the PINs/Fingerprints and security setting via TWRP on the P20, in order that the data partition mounts in decrypted format?
This is really important guys, so any help would be amazing. I have photos on the phone of a family member that recently passed away very suddenly, and I would be devastated if i couldnt get them back.
Cheers all.
Have you deleted ALL locksettings files and all files with .key ending? (Oh there were no key files)
password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
Something like that.
Yeah they are all gone. When i reboot the phone into the OS, i just get a blank desktop and no launcher.
crstephenson said:
Hi Guys,
I have an issue accessing my P20 pro, that I PRAY someone can help me with!
So, the story goes as such. I recently updated my P20 using Hurupdate, and as part of the process i disabled Screen lock in Developer options (i didnt delete the actual PINs, fingerprints etc from the phone) in order that i can get access to the data partition in decrypted format in TWRP and update the phone.
Upgrade appeared to go fine and phone worked no problems...until I tried to re-enable and re-implement fingerprint unlock. It asked me to set up a 6 digit PIN first, which i tried, but it seemed to go around in circles. Eventually it took a PIN, and then BOOM! I was unable to use that PIN to access the phone.
I've tried the old school method of deleting the locksettings.db file from /data/system (didnt seem to be any .key files for some odd reason), and now i dont get prompted for a pin, but i get a blank desktop. This is clearly because the data partition is still encrypted and the phone cannot access the data to start up my desktop etc.
My question, is there a way to remove the PINs/Fingerprints and security setting via TWRP on the P20, in order that the data partition mounts in decrypted format?
This is really important guys, so any help would be amazing. I have photos on the phone of a family member that recently passed away very suddenly, and I would be devastated if i couldnt get them back.
Cheers all.
Click to expand...
Click to collapse
Hey man,
I have got a similar situation. Did you manage to solve the issue?
You may have to go into the boot-loader and do a factory reset

Categories

Resources