[Q] Need help!! File Permissions - General Questions and Answers

Hi all,
I am new here and here goes my first post/querstion at XDA.
I was using some apk when my Device suddenly crashed. I restarted, everything looked fine. The problem started when I tried to open other apk which needs data file from Android Data folder for second operation. The apk was not able to access the files from data folder. I checked my file explorer and found the permissions(displayed at the end of the folder) have changed to -drw(for sure) from -rw(most probably). With this I am not able to delete/move any file from the device storage because the permissions of all other folders have changed to as abaove. If I try to move file, it makes a new copy on my extStorage but the original file is there as it is. The files can't be deleted either. Since my tab is rooted, I installed Root explorer to change file permissions. The permissions under Owner are all unchecked and Group/Others are checked. When I check the Read/Write/Execute permissions for owner, it says cannot be modified(its default disability message). Fed up of all this I went for Factory reset as a final option. I tried to backup using Ti but after some 10% it said not enough space. So I manually backed up whatever I could and went ahead with reset. I successfully did the factory reset and my tablet looked as fresh as when I bought it the first time. All factory apps only but when I was about to be happy, I opened the device storage just to find all those files and data still there, staring at me with their -drw stamp.
My device is Iberry(China I guess) and works on ICS. It is rooted. I had Su Superuser and busy box installed prior to the factory reset but after Factory Reset all apps are gone except their data in the device storage. Please help!

Related

[Q] Cannot Update/Install Apps: How to fix appname unsuccessful?

Has anyone found a quick way to fix the "appname unsuccessful" installer failure on the Xoom? I cannot install or update any apps as of this morning.
A Google of the problem does not come up with anything Xoom/Honeycomb specific but says that on other devices the procedure is to delete smdl2tmp1.asec from the .android_secure folder. However I cannot find this folder or file? I have Astro and ES explorer but neither can see the folder (I have show system files on) and nor can windows when it is connected by USB.
My Xoom is un-rooted and I cannot install any apps like root explorer (which may help) due to the fault.
Apparently a hard reset fixes it to but frankly it took so long to set the thing up how I want, I would like to avoid this if at all possible!
Thanks in advance,
Jim
Have you gone to settings/apps/manage apps/all tab/market/force stop/wipe data
Thanks for the reply.
Sorry, I should have mentioned but I have tried that - not working.
I am currently in process of backing up all 30 ish Gb to laptop to do factory reset if I cannot find an answer by this evening :-(

[Q] Rooted Nexus 5 - Return to total default '/supersu'?

Hey guys,
I've done a little Google-ing but I can't find an answer to this one...
So I rooted my new Nexus yesterday but today I started to create myself some backups of the stock ROM just in-case I ever need or want them.
While I was doing this I went through the following process:
1. Ran Google's Factory Image: https://developers.google.com/android/nexus/images#hammerhead.
2. Installed TWRP through Fastboot.
3. Rebooted my bootloader.
4. Opened TWRP's File Manager.
5. Noticed a weird folder...
So from the steps that I have listed above, I'm pretty sure that It's safe to say that the only data/software that is held on my device's storage at the particular point in time is Google's (excluding TWRP), correct?
So back to this weird folder... I noticed a folder in the following directory "/" and it was called "supersu". Is this folder something to do with the Stock Google OS or is this some kind of left-over folder from the ROM that I had used yesterday (unlikely seeing as I have just ran the factory image)?
Here is a DIR Listing of "/":
boot
cache
data
dev
etc
firmware
licence
persist
proc
recovery
res
root
sbin
sdcard
supersu (the folder which raised my suspicion)
sys
system
tmp
usb-otg
Am I in the wrong mindset? Does Google's Factory Image re-format the whole device including "/" or does it just do certain DIRs? Is that "supersu" folder mine or did Google already have that?
Thanks,
LewisD94
EDIT: I know what it is!
TWRP have a built-in service that allows you to install SuperSU to your device without having to download or flash it manually, I'm pretty sure that this folder would have landed it's self on my device when I installed the TWRP recovery through Fastboot... It's the only thing I can think of, testing it now but flashing the Factory Image without a custom recovery. Will report back with results.
FIXED: It must be something to do with TWRP's SuperSU service as I previously mentioned...
I have just ran Google's Factory Image: (https://developers.google.com/android/nexus/images#hammerhead) and installed ES File Explorer then navigated to "/" and I no longer have the folder in question...
New DIR listing of "/"
I don't have that folder. I have the latest TWRP installed. I really wouldn't worry about it though. Just delete it if you don't use Super SU
Sent from my Nexus 5
SuperSU is superuser which grants root access to apps. It was likely left over from a previous ROM because unless you completely wiped the SD card it remains inert.
When you return to completely stock like in the general sticky everything is going byebye.
There are stock ROMs hanging around development that are deodexed or odexed whatever you want. Some of them even have goodies inside.
When you root and unlock bootloader, the super user is installed during the process. Nothing to worry about. SU acts as your phones front door security screening any elevated/administrative task. This is what sprint personnel look for when excepting returns on devices. They know if your rooted and you try to say there is a issue with your device, if they see SU installed they'll know it was probably you who caused it. Besides the main fact but you have nothing to worry about. If you go completely stock and re lock your bootloader, just delete the folder off your SD card.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Must be a TWRP thing. I use CWM and I dont have a supersu folder.

[SOLVED] I Softbricked my phone, need some help!

-----SOLVED NOTE----
I did a reflash of the stock rom one more time with ODIN and it seems to have solved the problem. However I still have absolutely no idea about what was wrong with the phone, or why the first successful flash did not take care of the problem.
And a piece of advice, do not edit platform.xml. I swear I edited it correctly and then reverted to the correct settings, did using 3 spaces instead of a tab caused an error??? This will remain a mystery for me...
---------------------------
Hello All,
So I have the Verizon S3 i535, I edited the platform.xml file to give write permissions to external sd card and all hell broke loose after I reverted those changes. All of a sudden every app is getting that "unfortunately stopped" message. I cannot send any file to neither the internal nor the external sd card from my pc, file browsers cannot read any file on any of these cards, I tried pushing with adb but that does not work either. I tried factory reseting, and hard reseting to no avail.
I tried reflashing the stock rom with ODIN but after the flashing process nothing changes? (Does that have to do with me being on NE1).
I do not understand what is going on with the phone right now, flashing should have restored everything, I still get com.google.process.gapps stopped working then all sorts of apps stopping in the same manner, I still can't copy any file to any sort of storage on the phone.
Any idea what has happened and how I could fix it?
Thanks in advance.
That type of editing is not something I have done on Android.
Is there any chance it is a permissions issue and could be fixed with root permissions to a file manager or with adb?
dawgdoc said:
That type of editing is not something I have done on Android.
Is there any chance it is a permissions issue and could be fixed with root permissions to a file manager or with adb?
Click to expand...
Click to collapse
I would be willing to try that however I cannot connect to play store, neither the internet app connects to the internet so I cannot install apk's. I cannot "push" apks to the storage too I tried it via pc and via adb. So I cannot even install a root file manager.
Kingo root however accesses the system (through the pc) and manages to install itself. I have no idea how it can do it.
guguma said:
I would be willing to try that however I cannot connect to play store, neither the internet app connects to the internet so I cannot install apk's. I cannot "push" apks to the storage too I tried it via pc and via adb. So I cannot even install a root file manager.
Kingo root however accesses the system (through the pc) and manages to install itself. I have no idea how it can do it.
Click to expand...
Click to collapse
Glad to see you solved the problem.
I was speaking of using an adb shell to change the permissions of platform.xml to 0644 (-rw-r--r--) if they were set to something else. (I just checked my /system/etc/permissions/platform.xml to verify that was the settings on my device. I wasn't any more specific before because I hadn't checked the file locations nor its permissions.)

Help: files pushed with adb are now almost completely invisible

I have been using Nitrogen OS on my OnePlus 3T. I decided to try a Pie ROM, didn't like it, and wanted to revert back. I was having issues with TWRP mounting storage, so I decided to back everything up and wipe.
I used adb to pull the entire sdcard to my computer and verified all the files. I did a complete wipe in TWRP, then pushed the entire sdcard directory back to the phone. I verified everything was there with TWRP, then used it to restore from my last backup, and rebooted. Everything was totally normal.
Now, a day later, I've noticed that my files are not appearing in file managers. I don't know when this happened, whether it was first restart or what. They are on the phone, and taking up space, as can be verified with DiskUsage app, but they are just listed as 40 GB of "System data." See attached screenshot. My Files app can actually show some files, but they are listed as "Unsuccessful" and have no other info. See other attached screenshot. They no longer list in TWRP file manager either.
What gives? How did my files get turned invisible and "unsuccessful"? And can I get them back into usable files? Should I wipe, push backup file, restore, then push the rest?
Side note: TWRP now constantly asks about system modification, despite ticking the box to never ask again every time.

data/app problem, apps disapeared but folder seems OK

Hello Android lovers
I'll try to make it as simple and easy as I can, I searched a few hours on google, XDA and everywhere but can't find any answer.
I have a Asus Zenfone 2 with BORETS Stock ROM with android 6.0.1 and it worked fine since this week and a bad app update.
I updated MinMinguard to 2.1 and after reboot i got black screen... I can only press power button and see the reboot panel, and reboot, etc...
So I used TWRP to delete MinMinGuard in "data/app" folder, but first time I used it and I did some mess, copied some "com.xxxxxx" in another "app" folder inside the same, so like "data/app/app/com.xxxxx". before finally delete MinMinGuard folder.
And it worked, reboot was ok, apps was ok, all fine.
But I wanted to make it all clean, delete copied "app" folder in "data/app" but since everything is ****ed up. Android boot fine but I loose nearly all apps. Just left Asus apps every other is out, even playstore, google apps and stuff... So I can't do anything...
So, "data/app" folder is NOT empty
- each app folder have "base.apk", "lib" and "oat" folder (seems normal)
- tried to install ROM again a few times (to at least got play store and install apps again) did not worked
- formated cache and dalvik, after reboot I got "optimizing" popup and 88 apps instead of 135 before the mess.
- modified chmod of "app" folder because it's maybe just a reading problem as the folder is not empty.
And I'm out of idea................
I'd like not to format data/system as my backup is not up to date... And I don't even know if it''ll save the stuff...
If I have to format all, can you tell me how not to loose all my data (hard and ugly backup ), I saw a "data/data" folder, seems it will do the trick...
And about SMS I saw "/data/data/com.android.providers/telephony/databases/mmssms.db", will this work ?
Thanks a lot for your help
I'll have to move for 2 days and without my phone I'll have some troubles... ^^'
Nicopol. said:
Hello Android lovers
I'll try to make it as simple and easy as I can, I searched a few hours on google, XDA and everywhere but can't find any answer.
I have a Asus Zenfone 2 with BORETS Stock ROM with android 6.0.1 and it worked fine since this week and a bad app update.
I updated MinMinguard to 2.1 and after reboot i got black screen... I can only press power button and see the reboot panel, and reboot, etc...
So I used TWRP to delete MinMinGuard in "data/app" folder, but first time I used it and I did some mess, copied some "com.xxxxxx" in another "app" folder inside the same, so like "data/app/app/com.xxxxx". before finally delete MinMinGuard folder.
And it worked, reboot was ok, apps was ok, all fine.
But I wanted to make it all clean, delete copied "app" folder in "data/app" but since everything is ****ed up. Android boot fine but I loose nearly all apps. Just left Asus apps every other is out, even playstore, google apps and stuff... So I can't do anything...
So, "data/app" folder is NOT empty
- each app folder have "base.apk", "lib" and "oat" folder (seems normal)
- tried to install ROM again a few times (to at least got play store and install apps again) did not worked
- formated cache and dalvik, after reboot I got "optimizing" popup and 88 apps instead of 135 before the mess.
- modified chmod of "app" folder because it's maybe just a reading problem as the folder is not empty.
And I'm out of idea................
I'd like not to format data/system as my backup is not up to date... And I don't even know if it''ll save the stuff...
If I have to format all, can you tell me how not to loose all my data (hard and ugly backup ), I saw a "data/data" folder, seems it will do the trick...
And about SMS I saw "/data/data/com.android.providers/telephony/databases/mmssms.db", will this work ?
Thanks a lot for your help
I'll have to move for 2 days and without my phone I'll have some troubles... ^^'
Click to expand...
Click to collapse
If you still have TWRP, create a nandroid backup using the backup feature in TWRP, then save the backup on external sdcard or on PC. Then use the wipe feature in TWRP, then select the "advanced wipe" option then select the system partition, data partition, cache partition and dalvik cache, then swipe the slider to wipe, then you're ready to flash whatever custom ROMs are available for your device. After flashing your ROM, you can extract your data from the TWRP backup that you created and restore the data of your choice back onto the device.
Or, you can flash your original stock firmware. The easiest way to find what you need to do this is to do a Google search for:
"Return to stock (your model number)"
That should find the needed files, tools and instructions. After restoring stock firmware, start over with getting the device rooted and TWRP installed. Then you can extract the data of your choice from your TWRP backup and restore it on the device.
Sent from my LGL84VL using Tapatalk
Droidriven said:
If you still have TWRP, create a nandroid backup using the backup feature in TWRP, then save the backup on external sdcard or on PC. Then use the wipe feature in TWRP, then select the "advanced wipe" option then select the system partition, data partition, cache partition and dalvik cache, then swipe the slider to wipe, then you're ready to flash whatever custom ROMs are available for your device. After flashing your ROM, you can extract your data from the TWRP backup that you created and restore the data of your choice back onto the device.
Or, you can flash your original stock firmware. The easiest way to find what you need to do this is to do a Google search for:
"Return to stock (your model number)"
That should find the needed files, tools and instructions. After restoring stock firmware, start over with getting the device rooted and TWRP installed. Then you can extract the data of your choice from your TWRP backup and restore it on the device.
Sent from my LGL84VL using Tapatalk
Click to expand...
Click to collapse
As obvious as it was I forgot about the nandroid backup... ^^'
Thanks a lot for detailled steps
Edit : I made a backup of system and another backup of data. formated only system. flashed Borets ROM again. Started good but like a fresh new phone.
So I restored only data (folder "data/app" was empty) and again everything is messed up...
I'll go with fresh install and install back every apps (damn annoying), it seems "data/data" was fine so I hope all apps data will be safe... SMS is the most important...

Categories

Resources