OBB folder locked. - Xiaomi Mi 9 Questions & Answers

It seems my android\OBB folder is write protected. I can't install certain apps that need to write to this folder. I can't seem to unlock it and have been trawling Google for solutions.
I can delete the folder, then create a new OBB folder, but I still can't copy a folder into it. I'm using a rooted EU rom if this helps. Thanks
It is rooted device with EU rom on it

Can someone check on their phone if they can copy a file or folder into the obb folder? I'm getting very desperate for a fix

perryano said:
It seems my android\OBB folder is write protected. I can't install certain apps that need to write to this folder. I can't seem to unlock it and have been trawling Google for solutions.
I can delete the folder, then create a new OBB folder, but I still can't copy a folder into it. I'm using a rooted EU rom if this helps. Thanks
It is rooted device with EU rom on it
Click to expand...
Click to collapse
no problem at all..
any magisk modules installed? maybe disable and check

perryano said:
Can someone check on their phone if they can copy a file or folder into the obb folder? I'm getting very desperate for a fix
Click to expand...
Click to collapse
Yes, it works.
I can read/copy/delete every file/folder inside /Android/Obb directory.
Stock MIUI 10 Global.

matchung said:
no problem at all..
any magisk modules installed? maybe disable and check
Click to expand...
Click to collapse
No magisk modules installed. Thank you

I have faced this exact problem a few weeks ago. It started after I flashed a ROM, MiRum if I'm not mistaken. Tried deleting it via TWRP and make a new folder, changing the folder permission, no luck. I don't know how exactly I got my issue resolved, but I think wiping your data (storage) will do. Just backup your data, wipe your device clean, reflash your ROM, restore everything, and you'll be good to go...I guess.
I'm sorry if I can't be of more help to you in this regard.

Enthunk said:
I have faced this exact problem a few weeks ago. It started after I flashed a ROM, MiRum if I'm not mistaken. Tried deleting it via TWRP and make a new folder, changing the folder permission, no luck. I don't know how exactly I got my issue resolved, but I think wiping your data (storage) will do. Just backup your data, wipe your device clean, reflash your ROM, restore everything, and you'll be good to go...I guess.
I'm sorry if I can't be of more help to you in this regard.
Click to expand...
Click to collapse
Thanks for the suggestion. I guess this might have to be the last resort as I can't seem to find any other fix. I have tried the permission stuff in twrp file explorer also and this doesn't help. Cheers

hope this may help: -> http://en.miui.com/thread-2950541-1-1.html

matchung said:
hope this may help: -> http://en.miui.com/thread-2950541-1-1.html
Click to expand...
Click to collapse
Thank you for this. I have seen this and unfortunately on miui 10 this option is not there. The only option for mock sd card is to formal it. There is nowhere to enable/disable it. Not that I can find with developer options also enabled.

have you ever try to toggle "MIUI Optimization"? will it help?
or you may check the group/permission of the folder, here is mine
6815767 drwxrwx--x 72 root sdcard_rw 4.0K 2019-06-13 10:12 data
6815746 drwxrwx--x 4 root sdcard_rw 4.0K 2019-06-06 18:10 obb
Click to expand...
Click to collapse

matchung said:
have you ever try to toggle "MIUI Optimization"? will it help?
or you may check the group/permission of the folder, here is mine
Click to expand...
Click to collapse
I will check that now. Where can I check the group/permissions for the holder?
Thank you

I am going with a wipe and reinstall of everything. Hope this works

And a fresh wipe and install fixed it

Related

[Q] bootanimation

Hello guys
I am at 4.4.4 rooted and I just realized that I cannot install a custom bootanimation on my Z1. I tried with recovery, manually, with app but nothing. Pls help me
mitsosJL said:
Hello guys
I am at 4.4.4 rooted and I just realized that I cannot install a custom bootanimation on my Z1. I tried with recovery, manually, with app but nothing. Pls help me
Click to expand...
Click to collapse
You know there's just one solution to this, and it takes time..
ruggyboss said:
You know there's just one solution to this, and it takes time..
Click to expand...
Click to collapse
Which?
mitsosJL said:
Hello guys
I am at 4.4.4 rooted and I just realized that I cannot install a custom bootanimation on my Z1. I tried with recovery, manually, with app but nothing. Pls help me
Click to expand...
Click to collapse
It seems to me that you have problem either of your root or correct permission of bootanimation you try to install. What happened when you try to install it?
kulvertti said:
It seems to me that you have problem either of your root or correct permission of bootanimation you try to install. What happened when you try to install it?
Click to expand...
Click to collapse
I'm rooted and it isn't the permissions
I even deleted the original bootanimation and when opened again the folder it was there again
mitsosJL said:
I'm rooted and it isn't the permissions
I even deleted the original bootanimation and when opened again the folder it was there again
Click to expand...
Click to collapse
You used file explorer to check out your /system/media folder right? which one? But if you delete something there it not supposed to be there if you have correct rw permission there. I first think that it could be problem with bootanimation you try to install but if you can't delete something there for good I guess first look at your permission to write that folder.
kulvertti said:
You used file explorer to check out your /system/media folder right? which one? But if you delete something there it not supposed to be there if you have correct rw permission there. I first think that it could be problem with bootanimation you try to install but if you can't delete something there for good I guess first look at your permission to write that folder.
Click to expand...
Click to collapse
I tried many and different bootanimations not just one and with different ways. I'm rooted and I use the root browser and the permissions are right. But the when I delete the original bootanimation or overwrite it after entering the media file it is there. (when I tried with recovery I got an error)
mitsosJL said:
I tried many and different bootanimations not just one and with different ways. I'm rooted and I use the root browser and the permissions are right. But the when I delete the original bootanimation or overwrite it after entering the media file it is there. (when I tried with recovery I got an error)
Click to expand...
Click to collapse
May I ask if you can change anything else in that folder in away it last after reboot?
kulvertti said:
May I ask if you can change anything else in that folder in away it last after reboot?
Click to expand...
Click to collapse
Basically no and yes. I moved the audio folder it moved successful but when I got back it was both at the moved and original location.
It's like the system generates the missing files by it self
mitsosJL said:
Basically no and yes. I moved the audio folder it moved successful but when I got back it was both at the moved and original location.
It's like the system generates the missing files by it self
Click to expand...
Click to collapse
I was suggesting factory reset.. Anyway have you tried another root file manager? (i use root explorer and everything works here, but you should try several apps)
ruggyboss said:
I was suggesting factory reset.. Anyway have you tried another root file manager? (i use root explorer and everything works here, but you should try several apps)
Click to expand...
Click to collapse
Nope I prefer staying with the original bootanimation than doing factory reset
mitsosJL said:
Basically no and yes. I moved the audio folder it moved successful but when I got back it was both at the moved and original location.
It's like the system generates the missing files by it self
Click to expand...
Click to collapse
Root again. Use "Easy Root Tool". If it stuck cleaning part just run it again and you should be good.
I was trying to change Xperia S bootanimation last year. Ending up to find that problem is much deeper then basic root and root explorer.
Didn't find the way how to apply custom one.
As I remember is somehow connected with bootloader or kernel
Sent from my C6903 using XDA Free mobile app
Don't know about Xperia S but with Z1 I can change bootanimation. I use X-plore by Lonely Cat Games with r/w rights and have zero problems.
I would suggest you do not have root.
Check if you have killed the ric.
Goto sys/kernel/security/Sony_ric and see if the file called enable says 0 or 1. Also check it just after a reboot.
If it's a 1 you will lose write permissions to the system partition after a reboot, which explains the symptoms you are talking about.
Changing the boot animation had nothing to do with kernel or bootloader, you just have to change the bootamimation.zip in system /media
Sent from my C6903 using XDA Premium 4 mobile app
gregbradley said:
I would suggest you do not have root.
Check if you have killed the ric.
Goto sys/kernel/security/Sony_ric and see if the file called enable says 0 or 1. Also check it just after a reboot.
If it's a 1 you will lose write permissions to the system partition after a reboot, which explains the symptoms you are talking about.
Changing the boot animation had nothing to do with kernel or bootloader, you just have to change the bootamimation.zip in system /media
Sent from my C6903 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
It is 1
What should I do to fix it?
mitsosJL said:
It is 1
What should I do to fix it?
Click to expand...
Click to collapse
Root your device again. Go here [ http://forum.xda-developers.com/showthread.php?t=2784900 and follow instructions from OP.
Flash this https://www.dropbox.com/s/hvzh6ztcuur3vzw/disable_ric_file.zip
Sent from my C6903 using XDA Premium 4 mobile app

Help.. phone bricked, deleted /carrier applications

I was trying to cleanup carrier bloatware off my phone and I think I deleted some apps that were critical.
I deleted ItsOnService.apk (NetworkSystemProvider) and ItsOnUID.apk. Unfortunately I didn't make a backup of them. Then, wifi and LTE/3g stopped working (even if Wifi is connected, internet is permanently not available).
The worst part of this is that the issue persists after reflashing back to stock. The problem is I don't think the stock roms contain the /carrier directory. And now I cannot complete the setup wizard because at first boot, I'm forced to select a wifi network and once I connect internet is not available, so the wizard won't proceed.
Is there anything I can do? If someone were to send me the missing APKs could I use recovery mode and sideload them?
Chanman said:
I was trying to cleanup carrier bloatware off my phone and I think I deleted some apps that were critical.
I deleted ItsOnService.apk (NetworkSystemProvider) and ItsOnUID.apk. Unfortunately I didn't make a backup of them. Then, wifi and LTE/3g stopped working (even if Wifi is connected, internet is permanently not available).
The worst part of this is that the issue persists after reflashing back to stock. The problem is I don't think the stock roms contain the /carrier directory. And now I cannot complete the setup wizard because at first boot, I'm forced to select a wifi network and once I connect internet is not available, so the wizard won't proceed.
Is there anything I can do? If someone were to send me the missing APKs could I use recovery mode and sideload them?
Click to expand...
Click to collapse
do you still have the rooted system image on ur sdcard?? just reroot
Google~Android said:
do you still have the rooted system image on ur sdcard?? just reroot
Click to expand...
Click to collapse
I do have the rooted image, as well as the stock image, I have applied both, the problem still exists. I think when I reroot or reflash it's not writing the /carrier directory, that must have come from somewhere else. I confirmed this by unpacking the TOT file and looking inside, it has all the apps, but it does not have the /carrier directory. Do you have ItsOnService.apk and ItsOnUID.apk? Maybe I could try sideloading them?
Chanman said:
I do have the rooted image, as well as the stock image, I have applied both, the problem still exists. I think when I reroot or reflash it's not writing the /carrier directory, that must have come from somewhere else. I confirmed this by unpacking the TOT file and looking inside, it has all the apps, but it does not have the /carrier directory. Do you have ItsOnService.apk and ItsOnUID.apk? Maybe I could try sideloading them?
Click to expand...
Click to collapse
nope i don't have a g4 as of now...shud be here in a week
Chanman said:
I was trying to cleanup carrier bloatware off my phone and I think I deleted some apps that were critical.
I deleted ItsOnService.apk (NetworkSystemProvider) and ItsOnUID.apk. Unfortunately I didn't make a backup of them. Then, wifi and LTE/3g stopped working (even if Wifi is connected, internet is permanently not available).
The worst part of this is that the issue persists after reflashing back to stock. The problem is I don't think the stock roms contain the /carrier directory. And now I cannot complete the setup wizard because at first boot, I'm forced to select a wifi network and once I connect internet is not available, so the wizard won't proceed.
Is there anything I can do? If someone were to send me the missing APKs could I use recovery mode and sideload them?
Click to expand...
Click to collapse
You need to know exactly what you deleted. The itsonuid is in the system/priv-app directory. I didn't see the itsonservice but didn't spend much time looking. You need to know if you deleted things out of carrier partition or vendor partition or both... Get a list together...
Agimax said:
You need to know exactly what you deleted. The itsonuid is in the system/priv-app directory. I didn't see the itsonservice but didn't spend much time looking. You need to know if you deleted things out of carrier partition or vendor partition or both... Get a list together...
Click to expand...
Click to collapse
Thanks, I can confirm what you're saying, I did find ItsOnUID in system/priv-app, so at least I can restore that one. However, I am pretty sure ItsOnService is in /carrier and I deleted it using ES File Explorer. I had deleted ItsOnUID with Titanium Backup. Titanium Backup was not able to find ItsOnService, so that's why I had used ES File Explorer, which confirms that ItsOnService must have been in /carrier.
Since it looks like there is no /carrier directory in these TOT files, is there some other way I can get ItsOnService.apk? Can anyone out there send it to me?
Chanman said:
Thanks, I can confirm what you're saying, I did find ItsOnUID in system/priv-app, so at least I can restore that one. However, I am pretty sure ItsOnService is in /carrier and I deleted it using ES File Explorer. I had deleted ItsOnUID with Titanium Backup. Titanium Backup was not able to find ItsOnService, so that's why I had used ES File Explorer, which confirms that ItsOnService must have been in /carrier.
Since it looks like there is no /carrier directory in these TOT files, is there some other way I can get ItsOnService.apk? Can anyone out there send it to me?
Click to expand...
Click to collapse
Might be a little late but here ya go.
2348z said:
Might be a little late but here ya go.
Click to expand...
Click to collapse
Thanks a lot!!!
Chanman said:
Thanks a lot!!!
Click to expand...
Click to collapse
No problem buddy. ?

Netflix issue solved!

For all people who has problems with netflix rename in /system/vendor/lib the file liboemcrypto.so to liboemcrypto.so.old and reboot after that mine worked i could finally login and watch everything again short solution for a terrible problem.
mastersjef said:
For all people who has problems with netflix rename in /system/vendor/lib the file liboemcrypto.so to liboemcrypto.so.old and reboot after that mine worked i could finally login and watch everything again short solution for a terrible problem.
Click to expand...
Click to collapse
So I tried for quite some time today to get this solution to work only to find myself completely unable to rename or delete the liboemcrypto.so file. I am rooted and running the stock vzw 6.0 rom but I can't figure this out. Tried a couple different root file managers and nothing worked. Some would tell me the rename/delete failed, others would act like it worked and then the file would still be there unchanged. Any suggestions? I assume I'm missing something simple...
JoeHockey said:
So I tried for quite some time today to get this solution to work only to find myself completely unable to rename or delete the liboemcrypto.so file. I am rooted and running the stock vzw 6.0 rom but I can't figure this out. Tried a couple different root file managers and nothing worked. Some would tell me the rename/delete failed, others would act like it worked and then the file would still be there unchanged. Any suggestions? I assume I'm missing something simple...
Click to expand...
Click to collapse
Did you mount /system read/write?
jbaumert said:
Did you mount /system read/write?
Click to expand...
Click to collapse
Since I don't know how to do that I would say I did not...
I dont have that file... I'm set to show all hidden files and have system mounted as r/w. I checked in system/lib and in system/vendor/lib and no go
Covert_Death said:
I dont have that file... I'm set to show all hidden files and have system mounted as r/w. I checked in system/lib and in system/vendor/lib and no go
Click to expand...
Click to collapse
you solved it ?

[LOGCAT] Can't set any secure screen lock

I was using a ROM with Android 8.1 but after returning to the NovaOS (Nougat) ROM whenever I try to add any secure lock screen method (PIN / Pattern / Pass) the settings application force closure. After trying to set Pattern method the settings app just force close, but after trying to set PIN/Pass method it actually set the pin but also force close and I cannot try again to set others methods because it ask for the pin and keeps closing.
This happens in any TW or Stock based ROM. But in AOSP/LineageOS ROMs works normally.
Things I already have tried:
* Full wipe
* Reinstall at least 5 different ROMs
* Installing ROMs with and without root/gapps
* Format /system and /data
* Encrypt and decrypt phone/Microsd card.
* Changing Kernel
* "Fix contexts" in TWRP
* Smash the phone to a wall
I do not know what I can do to solve this problem, I don't want to use my phone without a secure lock/fingerprint or use Oreo ROMs, can someone help me?
Maybe try flash stock firmware using odin first and then try other roms.
Even after flashing Stock Rom through Odin the problem persists, omg...
Tried flashing Stock and doing full wipe after too but no sucess...
I think some protected/secure partition are messed up, because I noticed now my wifi password are not being saved after a reboot too, and after I flashed Stock Rom via Odin and phone reboots to Stock Recovery to finish the process, at this point I get a error in recovery like "cannot find /misc partition", I dont know if this is normal or not.
Here is more detailed logs from adb logcat, honestly I'm starting to get afraid of this not being possible to solve, please guys, I need help, there so much experts and experienced people here, you are my last hope
AeonGV_ said:
Even after flashing Stock Rom through Odin the problem persists, omg...
Tried flashing Stock and doing full wipe after too but no sucess...
I think some protected/secure partition are messed up, because I noticed now my wifi password are not being saved after a reboot too, and after I flashed Stock Rom via Odin and phone reboots to Stock Recovery to finish the process, at this point I get a error in recovery like "cannot find /misc partition", I dont know if this is normal or not.
Here is more detailed logs from adb logcat, honestly I'm starting to get afraid of this not being possible to solve, please guys, I need help, there so much experts and experienced people here, you are my last hope
Click to expand...
Click to collapse
Did u change permissions of efs folder in root directory?
Give full permissions to efs folder
MarkTejo said:
Did u change permissions of efs folder in root directory?
Give full permissions to efs folder
Click to expand...
Click to collapse
Dude, you saved me, I already had lost my hopes , the directory you mentioned was really missing permissions, I just did what you said and the problem was solved, I really wanted to be able to retribute what you did for me, I'm very grateful to you, thank you bro, you're awesome!!!
AeonGV_ said:
Dude, you saved me, I already had lost my hopes , the directory you mentioned was really missing permissions, I just did what you said and the problem was solved, I really wanted to be able to retribute what you did for me, I'm very grateful to you, thank you bro, you're awesome!!!
Click to expand...
Click to collapse
Your welcome bro
Thanks alot
MarkTejo said:
Did u change permissions of efs folder in root directory?
Give full permissions to efs folder
Click to expand...
Click to collapse
Man u just saved me..... thak you so so so much.... you are the best....
Thanks to mark Good job!
AeonGV_ said:
Dude, you saved me, I already had lost my hopes , the directory you mentioned was really missing permissions, I just did what you said and the problem was solved, I really wanted to be able to retribute what you did for me, I'm very grateful to you, thank you bro, you're awesome!!!
Click to expand...
Click to collapse
Hi guys,
I have the same problem and I have not been able to give the permissions to the efs folder, I'm using root eplorer and giving rw permissions.
The efs folder handles these 0771 permissions and I try to change it to 0775 but when restarting the phone the changes are not applied.
please help:crying:
Same issue here, is it possible to make the change persistent through reboots? I can't set screen locks :/
MarkTejo said:
Did u change permissions of efs folder in root directory?
Give full permissions to efs folder
Click to expand...
Click to collapse
galaxy note 9(n960n) problem solved, thanks!

export magisk module list

Exist an easy way to export magisk module list? Export and import?
Clarifications needed... Which list are you talking about? The entire Magisk repo or just the ones you've installed (I'm gonna guess the latter)? And for what purpose?
Didgeridoohan said:
Clarifications needed... Which list are you talking about? The entire Magisk repo or just the ones you've installed (I'm gonna guess the latter)? And for what purpose?
Click to expand...
Click to collapse
only the one i have installed. full list for backup / reinstall purpose. installed and not active. xposed ha a function to export /import list. I like it.
If you just need a backup, make a backup of the Magisk image (/data/adb/magisk.img). That's where all modules are kept (for now, this might change in a future version of Magisk).
Didgeridoohan said:
If you just need a backup, make a backup of the Magisk image (/data/adb/magisk.img). That's where all modules are kept (for now, this might change in a future version of Magisk).
Click to expand...
Click to collapse
oh. perfect. no problem. can i restore? like in a rom change to a new rom? what is status for enabled disabled module?
simona70 said:
oh. perfect. no problem. can i restore? like in a rom change to a new rom? what is status for enabled disabled module?
Click to expand...
Click to collapse
I do this all the time.. back the files in location mentioned above to ext sdcard...wipe device for a clean flash (all except ext sdcard/EFS obviously)...flash new ROM, then flash gapps, then flash magisk, then still in TWRP, I copy the files back to correct location and reboot
73sydney said:
I do this all the time.. back the files in location mentioned above to ext sdcard...wipe device for a clean flash (all except ext sdcard/EFS obviously)...flash new ROM, then flash gapps, then flash magisk, then still in TWRP, I copy the files back to correct location and reboot
Click to expand...
Click to collapse
Thanks. Providential.
73sydney said:
I do this all the time.. back the files in location mentioned above to ext sdcard...wipe device for a clean flash (all except ext sdcard/EFS obviously)...flash new ROM, then flash gapps, then flash magisk, then still in TWRP, I copy the files back to correct location and reboot
Click to expand...
Click to collapse
Where are the ZIP files located, in case I just want to backup those rather than the img?
oroboros74 said:
Where are the ZIP files located, in case I just want to backup those rather than the img?
Click to expand...
Click to collapse
Zip files are not saved. It gets extracted in to the location as mentioned in this thread. But each time you flash a module the zip file is downloaded in to Download folder of your internal storage. Save it for future use.
Now /data/adb/magisk.img is no more used... What folder must I backup?
Didgeridoohan said:
If you just need a backup, make a backup of the Magisk image (/data/adb/magisk.img). That's where all modules are kept (for now, this might change in a future version of Magisk).
Click to expand...
Click to collapse
Hi how can i find data/adb/magisk/img
Sk7007 said:
Hi how can i find data/adb/magisk/img
Click to expand...
Click to collapse
That's an old post you're quoting, and the last part of it has come true...
All modules are currently stored in /data/adb/modules.
Didgeridoohan said:
That's an old post you're quoting, and the last part of it has come true...
All modules are currently stored in /data/adb/modules.
Click to expand...
Click to collapse
How to backup now then?
Sent from my motorola one power using Tapatalk
Always wondered the same..
73sydney said:
I do this all the time.. back the files in location mentioned above to ext sdcard...wipe device for a clean flash (all except ext sdcard/EFS obviously)...flash new ROM, then flash gapps, then flash magisk, then still in TWRP, I copy the files back to correct location and reboot
Click to expand...
Click to collapse
All modules are currently stored in /data/adb/modules. Would the concept of copying the files back to the correct location still work after a reboot?
rodken said:
All modules are currently stored in /data/adb/modules. Would the concept of copying the files back to the correct location still work after a reboot?
Click to expand...
Click to collapse
I actually havent tried it since the change from the img method
I can tell you i do backup and restore the magisk.db file....i have a Galaxy Active2 Watch, and if it even sniffs root i have to reset the watch and start over to get Samsung Pay working. So i flash the ROM/GApps, then Magisk, reboot and setup the ROM and Magisk, set my Android ID back to the previous one (to avoid having to reset the Watch, and have it connectable in Gear app) then copy the magisk.db to /data/adb, then reboot. Then enable MagiskHide, and hide Magisk Manager. When i restore my apps the Samsung ones are already in the MagiskHide list and Samsung Pay works as before, once i reconnect the watch.
Next time i flash ill try copying back the /data/adb/modules and let you know
rodken​
Just a quick update
I was about to flash a new ROM for testing, and thought about doing the test...copy the modules folder from /data/adb, and restore on new ROM and then realised that not all modules im using are going to like that, as some set symbolic links during install and some now use filesystem overlays as well (thinking busybox and Vanced Youtube)
Ive just decided rather than copying im going to stick with what works 100%, and install them by hand one by one
73sydney said:
rodken​
Just a quick update
I was about to flash a new ROM for testing, and thought about doing the test...copy the modules folder from /data/adb, and restore on new ROM and then realised that not all modules im using are going to like that, as some set symbolic links during install and some now use filesystem overlays as well (thinking busybox and Vanced Youtube)
Ive just decided rather than copying im going to stick with what works 100%, and install them by hand one by one
Click to expand...
Click to collapse
Thanks for the update.

Categories

Resources