Internal storage mount or permission problem (Oneplus One) - Android Q&A, Help & Troubleshooting

Hello all,
I've been flashing rooms on the phone for quite a while now, but last weekend i flashed a new CM14.1 ROM onto the phone with the new GAPPS with it. Before doing this i ofcourse wiped the needed partitions in order for them to work right. However, since i've done this and flashed the new software, the phone doenst have access to the internal storage while being booted into the system (OS)..
When i boot into TWRP, i have full access to the internal storage and i'm able to create new folders and copy/cut/paste files onto it. Down here, you see i've created a new folder using the PC while its booted in TWRP.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
When i try to do this while its booted in CM14.1 (android 7.1.1, but i think any ROM i'd flash) this happens:
To translate this from Dutch to English: "The new folder couldn't be created on this location. The device isn't responding anymore or the connection has been lost".
When i browse to the internal storage through the OS itself, it does show up. However, i dont have any access to create new folders or files or to change them:
Also when i try to take a picutre using the camera, it says this:
Even when i enable developer options and giving root to both apps and adb, it still doesnt have the required access to perform these actions:
Also going to the gallery, it says that there is no storage available:
I also looked up some info about the partition, which might be useful for those who have some knowledge about this.. This is what i found using the app "Diskinfo":
And i also used the commands ls -l to show the permissions of the /data/media/(and)0/ to see what rights are giving out:
As you see here, the app itself didnt have access to go to the storage location untill i gave it "su" rights. Does this mean the entire OS doesnt have access to this location because it simply doesnt have the right permissions for it?
If anyone has any suggestions or wants to help me figure out what is wrong, please feel free to reply here or through a PM. It would be highly appreciated.

///Edit
After searching around on the web i came across a post where someone said that running the TWRP advanced option "Fix Context" would reset all permissions that you normally dont do yourself. So i've ran that, it ran for like 0.5 second before being finished. After rebooting the phone into the system (OS/Android) all problems were solved and permissions were set right.
Therefore my problem is resolved now, and this topic could be closed ^^

Related

[Q] Corrupt files in /sdcard root

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
^^That's what's at the root of my gtab's /sdcard.
Also, there used to be two folders in that that I had created and are no longer there.
Here's what I was doing immediately before I noticed this:
I'm currently using TnT Lite. I need to be able to access wifi at work but my company uses EAP encryption and TnT doesn't have a setting for EAP. I decided that rather than switching roms, I would just switch settings menus (using the files found here: http://forum.xda-developers.com/showthread.php?t=857939).
Stupid me, I downloaded them to /sdcard2 rather than /sdcard. I booted into clockworkmod and tried to install the zip from the sdcard but clockworkmod couldn't find anything. I realized my mistake and rebooted the gtab and hooked up the usb to my pc. That's when I noticed the file corruption.
Everything still seems to work as it did before, I just don't have access to any of the files that were in those folders.
In case it matters, one folder held the TnT Lite rom and the other held several videos.
Does anyone have any idea what could have caused this?
Should I try to delete the corrupted files?
Any help with this is much appreciated.
I don't claim to know why this happens this is just what I did to fix my problem.
I noticed this on my gtab also, to the point my cal program wouldn't open. The only way I could fix it was to do an sd partition to it fix the issue. There are instructions on how to do that with cm8. This is from memory so please double check, go to the advanced options choose sd partition 2048/0. Please note that this wipes the sd card so back up prior.
I still get a few of those weird files buy not like before.
same thing happened to me but hasn't come back after
re-partitioning with cwm ... maybe that is the fix
I would *really* like to know why this happens (that and why
the sdcard2 gets wiped out sometimes).
Basically, you dare not trust android with any important data
and you never know if what's on it will disappear suddenly
Unfortunately, this makes the tablet just a toy
So is the best option really just to re-partition the sd card?
If I end up re-partitioning, will I have to flash the ROM over again? Or does partitioning just remove the user data?
Quote: will I have to flash the ROM over again?
No

Problems with ICS [encryption, security and recharging]

Hello
I would like my Android device encrypted, as it contains sensitive data. I'm currently on cm-9.0.0-rc1-tinystream-hephappy-p500 (RC1-Rev.B). Now, here is what happened:
- To encrypt internal
I went to Security in System Settings and touched "Encrypt Device". It gave some confirmations and I've accepted them however, now I'm kind of stuck on this screen.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
My first thought was "it is encrypting". But after hours of waiting, I wanted to check if it's done already. So I clicked the power-button once (just to unlock) and it asked for my password. I've entered it and it just went into my normal launcher. I've checked if anything had changed and no, my device has not been encrypted. Any logs somewhere? Any ideas what could have caused the problem?
- To encrypt SDcard
I did some research and didn't find something perfectly for my needs. Anyone has any idea on how to encrypt an SD card to properly work together with Android?
Note: I am using LINK2SD.
Thanks for your help
Another question that actually has nothing to do with my previous post that I post here because it's not worth a new thread: every time I plug in my phone into the charger, it boots automaticly. I don't want that, my previous build of CM9 did just recharge without booting, something I prefer. Any way to configure that?
Another question I want to add to the this thread: is it possible to combine a password lock and a slide lockscreen? Like when I encrypt the phone to enter a password to decrypt it again and then just use the normal slide lockscreen to unlock it each time after the decryption?
One last question: is there any way to encrypt the SQL database in Android? As it contains sensitive data... I've read something about SQLCipher but it doesn't get to work (any help would be appreciated).
Thread can be removed. Problems already solved. Discussion about security here: http://forum.xda-developers.com/showthread.php?t=1790964
And for the charging problem: http://forum.xda-developers.com/showpost.php?p=29217540&postcount=1787

Data lost but huge "system data" partition after a crash

Hi everyone.
I've a Nexus 5 which runs Android 6.0.1 but I think the problem is not especially related to the Nexus 5, so I post here.
What happened ? Few days ago my phone crashed (I didn't use it) and was slow to boot up. So I tried to force the reboot by pressing the power button for 15/20s and it worked.
But 5/10min after I saw the "Select language" menu ... The phone performed a factory/reset by itself. I don't know why.
First, I plug my phone to my computer and I've seen that 26GB/32GB were already in use.
So I tried to recover my pictures and videos with many apps and the one which worked was "Undeleter" (5$) but it didn't recover all my data.
Yesterday, I wanted to understand what happened really. I ran "DiskUsage" which give me this result for /storage/emulated/0 :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How can I access to the "System data" partition which has a size similar to the storage space used before the crash ?
Regards,
Laurent
EDIT :
Finally I backed up all my data !
Indeed, files of my memory (/sdcard) before the crash was in /data/lost+found/#1351681/0
Then, I was able to move them to /sdcard and to copy the files on my PC.
How to ?
Make sure your phone is rooted and install a file explorer such as Root Browser.
Open Root Browser and navigate until /data/lost+found/#xxxxx [in my case, with a Nexus 5 it was 1351681/0]
(Look for the directory which corresponds to your previous "sdcard".)
Now, you can see the files but you can't open them. So move (not copy!) them to /sdcard (I suggest you to do that folder by folder).
Great, you've recovered your files ! But now, transfer them to your computer to prevent damages (I was forced to do that and remove files after to continue because the storage was full).
You can do it in connecting your phone to your computer and via the explorer or you can use adb (adb pull /sdcard/directory_to_move path_to_a_dir_of_your_computer)
I hope it will be useful.
Laurent

MI A3 question concerning TWRP

Hello
I am complete new to the "custom ROM for mobile phones" business.
But i am familiar with Linux based Satellite Receivers where you
also can flash custom ROMS to enhance the functionality.
Or in other words - i know what bricked means.
Anyway what i have done so far:
I have an unlocked Bootloader on my Mi A3.
1st time (non permanent) flash of TWRP-3.3.1-2 into recovery for
a full backup of my phone to Sd-Card.
An encounter with Bootloop made
Now i want to make TWRP permament on both partitions.
But, after flashing TWRP into recovery again, i recognizing that
the "Unmodified System Partition" screen is not apearing anymore.
After my 1st twrp flash, twrp showed me a screen where something
about "Keep System Read only" was explained.
With a slider "Swipe to Allow Modifications".
This screen is not more apearing anymore.
Is this mandatory to go on ?
My goal is to have twrp, magisk and lineageos on my phone.
Last but not least i want to say:
A fantastic source of informations here but overwhelming btw. *g*
* Edit *
32 Views but no answers this could mean that my concern is not clear ?
After entering to twrp on my phone for the first time i saw this screen here
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As i explained above, i only wanted to make a backup from my phone
as a fallback if something goes wrong afterwards.
Due to this i pressed ´Keep Read Only´
Don´t know if the ´Never show this...´ was flaged
My thoughts was:
Keep Read Only is okay for now/backup.
And if necessary i can Swipe for modification next time.
My concern is the screen will not showing again.
In case of i HAVE to swipe to make modifications for the next steps,
what i have to do now that this screen will show up again
that i can make the f*ckn swipe ? :angel:
Thank you
Open twrp, goto mount, there's an option for mount read-only system.
m.h.mahadi said:
Open twrp, goto mount, there's an option for mount read-only system.
Click to expand...
Click to collapse
Thank you.

Creating Tablet image to transfer to others

Hi,
Newbie here so go easy!
Ive been changing the settings on an imported chinese tablet such as boot image, remove bloatware, download apps required, etc and it works great. However, I want to be able to create a full image of one tablet and transfer that to other tablets I buy so I dont have to manually do this every time. Basically a full backup and restore of everything on the tablet.
Can anyone assist on the best process to do this.
Thanks
If device's Android got rooted then you can perform a full NANDroid backup by means of either TWRP or FlashFire. FYI: ROOT is required for mounting all partitions as RW.
TWRP:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Flashfire:
Full article here:
How to Backup Android Device Completely 2023 (Updated)
If you plan to unlock bootloader or want to flash custom ROM, this guide is for you. In today's article, I will show you how to Backup Android Device
www.rootingsteps.com
Hi,
Thanks for the help.
The device is rooted but im struggling to get a TWRP recovery image for this tablet as its a chinese import. However, its a Rockchip RK3288 tablet. Any help with where to find correct version?
Also when I down loaded flash fire its starts up but crashes after a few seconds?
duckett100 said:
Also when I down loaded flash fire its starts up but crashes after a few seconds?
Click to expand...
Click to collapse
Do a LOGCAT to get the reason why.
[Tutorial] How To Logcat
Here's how to use logcat: There are two main ways to do a logcat, within android, and through adb. Logcat within android can be done one of two ways, through a Logcat app: Here are two good examples are either: aLogcat or Catlog I prefer...
forum.xda-developers.com
Hi, I worked out why flash fire was crashing, but some of the items in the app are greyed out so it doesn't allow a back up. I think its because I still have the standard recovery that came with the tablet instead of something like TWRP. And I cant find one online that will work.
Are there any other ways to do a full back up programmatically?

Categories

Resources