Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change internal memory path #1568

Open
XRedCubeX opened this issue Apr 12, 2020 · 4 comments
Open

Change internal memory path #1568

XRedCubeX opened this issue Apr 12, 2020 · 4 comments

Comments

@XRedCubeX
Copy link

XRedCubeX commented Apr 12, 2020

  • [NO] I am running an official build of TWRP, downloaded from https://twrp.me/Devices/
  • [YES] I am running the latest version of TWRP
  • [YES] I have read the FAQ (https://twrp.me/FAQ/)
  • [YES] I have searched for my issue and it does not already exist

Device codename:
TWRP version: <3.3.1>

WHAT STEPS WILL REPRODUCE THE PROBLEM?

<Go to the file manager and go to /sdcard>

WHAT IS THE EXPECTED RESULT?

<Going to the file manager and then to the /sdcard, the internal memory should be displayed correctly>

WHAT HAPPENS INSTEAD?

<The internal memory is not displayed because TWRP recognizes that the internal memory is located in /data/media/0 but in reality this device has the folder in /data/media>

ADDITIONAL INFORMATION

<The only way to fix it would be to move the / sdcard directory from /data/media/0 to /data/media />

Device Tree: https://github.com/XRedCubeX/twrp_device_E506plus

https://paste.omnirom.org/view/79f2fc23

@bigbiff
Copy link
Member

bigbiff commented Apr 12, 2020

My guess is that you are moving around in android versions? The 0 directory was added when multi-user was added to Android. Can you remove the 0 folder manually and see if that fixes your issue? TWRP doesn't make any assumptions other than /data/media/0 exists then use that as sdcard.

@XRedCubeX
Copy link
Author

No, my device only has android 5.1 and does not have the multiuser (strange😅), when I delete the directory nothing changes.

@bigbiff
Copy link
Member

bigbiff commented Apr 13, 2020

After deleting the directory, can you restart recovery and upload the recovery.log?

@XRedCubeX
Copy link
Author

I solved with the "RECOVERY_SDCARD_ON_DATA: = true" flag, I also made sure that at every start the TWRP must delete the 0 folder in / sdcard, however every time the ROM is successfully started and then restarts in recovery, the folder is recreated and must be deleted manually, it is not a problem as much because I will have to make a lollipop rom for that device and it will definitely not have the bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants