unable to copy a certain file - General Questions and Answers

Not sure which channel to put this in, please move if this is not the correct one.
I am unable to copy a certain file. At first I tried using a cloud share app, then USB file transfer, then ADB, then local file browsing apps, finally a terminal emulator. All fail. I can see the file and the app that created it can interact with it, but I cannot copy the file, permission denied. Phone is rooted. This is a large file created by TitaniumBackup. It's large because the backed up app has a lot of data, about 4 GB worth. I can copy all the small files that Titanium creates during its backup process, including the apk and properties files. And I can rename the big file, even delete it, just not copy.
I don't think it matters but this is a rooted Pixel 5 with stock ROM.

Apparently the same issue is within Titanium itself. It can delete backups but not upload to the cloud using the built-in function to Sync to Google Drive. I am thoroughly confused.

Can you run 'chmod 777' for that special file in advance as your system has been rooted?

James_Watson said:
Can you run 'chmod 777' for that special file in advance as your system has been rooted?
Click to expand...
Click to collapse
No issue chmoding but then can't copy still. Tried copying to the same dir and to my Download and Documents folders, same result.
{
"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"
}

PRL77 said:
No issue chmoding but then can't copy still. Tried copying to the same dir and to my Download and Documents folders, same result.
View attachment 5147605
Click to expand...
Click to collapse
According to the screenshot, it means that you have no permission to create cp.gz in this directory. So, try to run chmod for the directory at first.

James_Watson said:
According to the screenshot, it means that you have no permission to create cp.gz in this directory. So, try to run chmod for the directory at first.
Click to expand...
Click to collapse
I was told that chmod doesn't function in /sdcard due to how it's mounted. So I went into /data/media/0/TitaniumBackup that can chmod there but still can't adb pull the file.
Before chmod: -rw------- 1 u0_a256
After chmod: -rwxrwxrwx 1 u0_a256
But pull still fails:
adb pull /data/media/0/TitaniumBackup/ws.clockthevault-20201130-045341.tar.gz vaultcopy.tar.gz
adb: error: failed to stat remote object '/data/media/0/TitaniumBackup/ws.clockthevault-20201130-045341.tar.gz': Permission denied

It's gotta be size related. This file is just over 4.3 GB.

This is resolved. Someone helped me on another forum: https://android.stackexchange.com/questions/231624/unable-to-copy-a-certain-file

Related

I can't pull an app from the sdcard

I just rooted the phone (I know this because I installed a screen shot app and it works) and I'm trying to copy a private app that is free off of my phone onto my computer. But, I cannot figure it out. Could someone please give me step-by-step instructions. I would really appreciate this.
It sounds like you have completed this process:
http://forum.xda-developers.com/showthread.php?t=581577
But read it and make sure you complete the last step to flash the recovery rom.
www.androidspin.com/downloads...roc-v1.2.3.img
He kind of botched the last command instead of:
adb shell flash_image recovery recovery-RA-heroc-v1.2.3.img
it should be:
adb shell
cd /sdcard/
su
flash_image recovery recovery-RA-heroc-v1.2.3.img
Once you make sure this is done, turn of your phone and then hold Home button and press end button. This should load the recovery, choose Nandroid Backup once you are done backing up you will want to flash Modaco's 1.1 rom. More information can be found here:
http://forum.xda-developers.com/showthread.php?t=581846
Once this is done connect your phone to your pc, and open command prompt.
type in:
cd "the directory where the sdk is" \tools
then type:
If you are using appstosd with ext2 and fat32 partitioned sdcard:
adb pull /system/sd/app app
If you are using just fat32, no appstosd:
adb pull /data/app app
this will put all your apps into a directory named app in your \tools folder on your pc.
for private apps just replace app with app-private
alternatively, you can move apps one at a time with the command:
leave out " ".
adb pull /system/sd/app/"appname" "appname"
This will place the file directly into your tools directory. Hope this helps.
Yep, thats what I did. But I didn't flash the recovery rom. If I do that will it erase all my applicastion that I have installed? I didn't want to do that because the app I want to backup was free when I downloaded it but now it's not.
Ok, so I followed all the instructions above and go the in MoDaCo rom flashed. Then, when I tried to pull the apps off the sdcard I get a permissions denied error.
{
"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"
}
Thanks.
Now I have a new problem. It says "adb: not found". Now what?
Thanks for being so helpful everyone.
adb is a command that is run outside of the shell
for example your prompt would still be at
c:\android-sdk-windows\tools>adb pull /data/app-private (location)
you can't use adb inside of adb shell
Ah, I didn't know adb had to be run outside of the shell.
Now it says there aren't any files in app-private but I know there are two in there.

Has anyone installed a modified widgetlocker.apk to nexus s?

So I installed widgetlocked from the market and it all runs lovely. However, I wanted to use the Ultralinx mods for it.
I tried a few different ways, extracting it with root explorer. Copying the .apk to my desktop and modding the files there and signing them with signapk, but the modified .apk will not install no matter what I try. It always comes up with 'Application not installed'.
I am a bit newb at this I admit but have installed other apks just fine.
Any help appreciated
Figured it out. HAD to use adb. No other method would I tried would work, but that did first time!
I was trying to PM you, but they weren't going through...
Anyway, is there any chance you could tell me how you did this? I've tried every other method and nothing has happened. Whether it's because I own a Nexus S or a Mac, I don't know, but it's pretty hard (though I am new to this).
Regards,
Jon.
I usually use WidgetLocker, would you mind explaining what the modded one is? Thanks
The modded version I mention is UltraLinx's lovely unlock slider mod as in these pics.
{
"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"
}
Both available from here: http://www.theultralinx.com
As I mentioned the only method I could get to work was using ADB and Ultralinx actually has a youtube video on his site about how to do it, but I will list it here anyway.
Your phone needs to be rooted to do any of this...
Install WL as normal from market.
Copy the file com.teslacoilsw.widgetlocker-1.apk from data/app to /sdcard somewhere using astro or rootexplorer etc.
Then move that file to your computer desktop into the /sdk/tools dir where adb.exe is.
Add the WL modded files from Ultralinx to that .apk in the /res/drawable-hdpi/ directory using winrar or whatever program you use to open/mod .apk files. Make sure it has overwritten the original files!
Fire up a command promt and change dir to where adb.exe is sdk/tools or whatever.
type these next couple of lines and enter after each one;
abd shell mount /system
adb push com.teslacoilsw.widgetlocker-1.apk /system/app
Then reboot your phone and that should be it done. You can select the new slider from WL options (it modded the iphone slider so select that).
As I say, this is the only way I could get the thing to work.
Coming from windows mobile this whole abd thing of modding stuff seemed a right pain in the arse but I guess like anything once you have done it once you know it for next time and I think this mod is worth it.
Hi,
thanks for the instructions!
I've encountered an issue and would appreciate if you could help. So i follow your steps, however i get the following issue after the push command:
failed to copy 'com.teslacoilsw.widgetlocker-1.apk' to '/system/app/com.teslacoilsw.widgetlocker-1.apk': Read-only file system
I'll really appreciate if you could help, thanks!
Update: So i managed to push it successfully. Problem was I needed to enter the command adb remount beforehand in order for it to let me write.
sage: mount [-r] [-w] [-o options] [-t type] device directory
Red-Teams-MacBook-Prolatform-tools cloakroom$ adb push com.teslacoilsw.widgetlocker-1.apk /system/app
3158 KB/s (1202848 bytes in 0.371s)
However, even after rebooting the phone I am still stuck with the old iphone slider and not the one made by ultralinx. Any thoughts as to why this is?
Do i have to uninstall widgetlocker from my phone before i pushed the modded apk?

[Q] Cannot delete folder in data/data

I downloaded Quadrant on my HTC One to Benchmark it and then I uninstalled it however when I rebooted my phone I got a UID inconsistency error and I discovered it was this app so I had to manually delete the .apk to resolve it because for some reason it was still lingering anyway the folder for it is still in my Data/Data directory and no matter what I try I'm unable to delete it. I've used Root Explorer and Ftp'd in but no luck yet. Any suggestions are appreciated!!
Hello Sir
Chronos300 said:
I downloaded Quadrant on my HTC One to Benchmark it and then I uninstalled it however when I rebooted my phone I got a UID inconsistency error and I discovered it was this app so I had to manually delete the .apk to resolve it because for some reason it was still lingering anyway the folder for it is still in my Data/Data directory and no matter what I try I'm unable to delete it. I've used Root Explorer and Ftp'd in but no luck yet. Any suggestions are appreciated!!
Click to expand...
Click to collapse
Just make sure you have tap on "Mount as R/W" in Root Explorer
it is mounted a R/W
I just had exactly the same **** happen to me with quadrant. I resolved the uid issues by format cache partition and deleted the apk but that folder in data is not deleteable.
Can't install quadrant either as it says error 24. Well I have no idea what's wrong and also the free space for the folder in data matches the stats for the asec data folder. Weird !
I would put my trust in the original linux/unix command line utilities. I can recommend "Terminal IDE" as a package of a terminal emulator and a base system. Just start it, install the "system", then go to the command line. With
Code:
su
you should get root rights. And with
Code:
rm -r /path/to/whatever
you should either be able to delete it or get a more or less meaningful error message.
@ccxxx i followed your method but remained unable to delete the facebook folder...
{
"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"
}
I have also tried using root explorer...
Any suggestions??
Sent from my GT-N7100 using Tapatalk
Well, I/o error is bad. It usually means that the memory is physically broken but I think it can also be caused when the filesystem is corrupted.
I renamed the folder instead of deleting it and everything worked perfectly... does this still mean the memory is corrupted?
Sent from my GT-N7100 using Tapatalk

internal storage problem

my phone can't see its internal storage, though the data is still there. I'm running tin latest developer preview, flashed clean and rooted with code blue. everything was fine, but I dirty flashed xtra smooth 1.5 and then reverted to my stock rooted backup a day later because of battery issues. since then I cannot download any file from the browser, it starts and then says unsuccessful after a second, and I also can't download a file from my google drive. play store works fine however. if I open the aosp gallery the folders for my internal storage images (camera, instagram, vsco, downloaded, etc.) just show as blank, with pictures saying "no thumbnail available." however, videos show blank as well but have the play button, and if I hit it the file will play normally, and if I attach one of the blank images to something like hangouts or an email they will show up. if I try to the back up function of any apps that offer it, like my alarm clock or pedometer it fails. though they can see the old file is there and restore from it. lastly, file explorer programs show my sdcard folder to be empty, though they are obviously not. I generally use es, but have tried several others with the same result. if I view it via twrps file explorer in recovery things are normal. any help?
Read the /sdcard sticky in general
thanks, it is a great sticky, but after reading it i dont see any solution/reference to my problem. the issue is not that data is deleted or corrupt or anything along those lines, it is that my phone- when booted into android- is not seeing my files. the data is there, but something is wrong and i cannot see them. for clarification, its not just /sdcard that is showing as empty in file explorers, /data, /storage and many others are showing empty too, though not everything as folders like /sys and /system are showing up as normal.
Mine is doing the exact same thing and is blowing my mind, it knows the folders are there, it says I have 7 GB full but the folder is emptey in any file explorer
heres the error i get when trying to download a podcast, i get a similar EACCESS permission denied error when trying to back up an app, but like i said, if the app already has a backup on the storage i can restore it no problem
{
"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"
}
It's like there is something disabling it from being seen by the system
I had a similar issue, doing this resolved it:
adb shell
su
restorecon -FR /data/media/0
Dr-Smith said:
I had a similar issue, doing this resolved it:
adb shell
su
restorecon -FR /data/media/0
Click to expand...
Click to collapse
Thanks bro! This fixed my SD issues!!

Cannot create symlinks in Android 7.1.2

I am on LineageOS 14.1-20170703-NIGHTLY-bacon and whenever I try to create a symbolic link (symlink) with terminal, i got the following error:
I am trying to redirect the contents of my syncthing folders to their default paths in android (music, sygic data...)
Code:
su
ln -sf /source-path /destination-path
"Cannot create symbolic link. Operation not permitted"
Click to expand...
Click to collapse
I have tried with all the virtual paths to my internal storage that I have found:
/storage/emulated/0/
/storage/self/primary/
/mnt/sdcard/
/sdcard/
I have read that there is no way to create symbolic links in a FAT/FAT32/NTFS partitons. I have not created any partitions in my internal storage. How can I check if my internal storage is EXT2/3/4 or not?
My OPO is rooted and Terminal app got SU permissions enabled.
Thanks in advance.
jfromeo said:
I am on LineageOS 14.1-20170703-NIGHTLY-bacon and whenever I try to create a symbolic link (symlink) with terminal, i got the following error:
I am trying to redirect the contents of my syncthing folders to their default paths in android (music, sygic data...)
Code:
su
ln -sf /source-path /destination-path
I have tried with all the virtual paths to my internal storage that I have found:
/storage/emulated/0/
/storage/self/primary/
/mnt/sdcard/
/sdcard/
I have read that there is no way to create symbolic links in a FAT/FAT32/NTFS partitons. I have not created any partitions in my internal storage. How can I check if my internal storage is EXT2/3/4 or not?
My OPO is rooted and Terminal app got SU permissions enabled.
Thanks in advance.
Click to expand...
Click to collapse
Use "Disk Info" app to know about your partitions.
Mr.Ak said:
Use "Disk Info" app to know about your partitions.
Click to expand...
Click to collapse
Thanks.
The app says it is formatted under ext4 filesystem, so I do not know why I cannot creat symlinks in it...
{
"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"
}
jfromeo said:
Thanks.
The app says it is formatted under ext4 filesystem, so I do not know why I cannot creat symlinks in it...
Click to expand...
Click to collapse
Sorry, I don't know much about terminal.

Categories

Resources