Failed to copy some files - Nexus 6P Q&A, Help & Troubleshooting

Hi, I have a problem where when I try to copy files to certain directories such as /system/vendor/lib it won't let me copy the files. If you know how to do it then please let me know, can it be done with terminal because I know on Linux sometimes terminal has to be used to copy files. Thanks!

DEVILOPS 007 said:
Hi, I have a problem where when I try to copy files to certain directories such as /system/vendor/lib it won't let me copy the files. If you know how to do it then please let me know, can it be done with terminal because I know on Linux sometimes terminal has to be used to copy files. Thanks!
Click to expand...
Click to collapse
Use a good root file manager like Solid Explorer or Root Explorer. Make sure the file manager has permissions from SU. You may also have to tick "Show root storage" in SE.

Try Solid Explorer... never had that problem.

Use twrp, mount system and use twrp filemanager, set chmod, always working.

coremania said:
Use twrp, mount system and use twrp filemanager, set chmod, always working.
Click to expand...
Click to collapse
set chmod for what? thanks

v12xke said:
Use a good root file manager like Solid Explorer or Root Explorer. Make sure the file manager has permissions from SU. You may also have to tick "Show root storage" in SE.
Click to expand...
Click to collapse
Thanks, it isn't a file explorer as I've tried on many different ones and have mounted r/w

galaxys said:
Try Solid Explorer... never had that problem.
Click to expand...
Click to collapse
I tried that

That might help

DEVILOPS 007 said:
set chmod for what? thanks
Click to expand...
Click to collapse
For the files you copy or replace you have to set the right permissions, btw amaze filemanager works pretty good, if don't want to use twrp, but twrp will always work

coremania said:
For the files you copy or replace you have to set the right permissions, btw amaze filemanager works pretty good, if don't want to use twrp, but twrp will always work
Click to expand...
Click to collapse
Okay thanks, chmod 644 or chmod 755? Thanks

DEVILOPS 007 said:
Okay thanks, chmod 644 or chmod 755? Thanks
Click to expand...
Click to collapse
That depends on the files you like to replace, look at the
files permission before you add or replace it, then you will know

Related

[Q] Trouble restoring "/system/app"

I (without heeding the warnings) decided it would be a good idea to delete certain apps (including Hero of Sparta, Lets Golf, etc.) once I got my tablet rooted. Luckily, there are two A500's in my household, so I was able to copy the /system/app directory from the other untouched tablet.
Problem is, I can't seem to copy the directory (or any apps from it) into my tablet. I've used both ASTRO and File Manager HD, but in both, the 'paste' command is greyed out. It's as if I don't have the necessary permissions.
So, what's going on?
did you set the Read-Write permission on that directory?
Post removed
No, thanks for the reminder.
Upon attempting to edit permissions, though, using a terminal emulator, I get an error after typing this:
Code:
su
cd /system/app
chmod 777 /system/app
And the error I get is:
"Unable to chmod /system/app: Read-only file system"
Zen_Jackal said:
No, thanks for the reminder.
Upon attempting to edit permissions, though, using a terminal emulator, I get an error after typing this:
Code:
su
cd /system/app
chmod 777 /system/app
And the error I get is:
"Unable to chmod /system/app: Read-only file system"
Click to expand...
Click to collapse
Silly question, but do you have your system rooted?
Yes, I do. Using GingerBreak as I'm still waiting on that 3.1 update
Zen_Jackal said:
Yes, I do. Using GingerBreak as I'm still waiting on that 3.1 update
Click to expand...
Click to collapse
OK, then try a file explorer like Root Explorer and you should be able to set the rights ro R/W and copy your files over.
Root Explorer worked like a charm. I'm suprised File Manager HD doesn't perform those functions. I got a good feeling when I saw that Root Explorer was requesting superuser permission.
Zen_Jackal said:
Root Explorer worked like a charm. I'm suprised File Manager HD doesn't perform those functions. I got a good feeling when I saw that Root Explorer was requesting superuser permission.
Click to expand...
Click to collapse
Glad to hear that worked. Root Explorer is what I use. Have been for over a year. I think File MAnager HD can also do it, but it is not as straight forward ad Root Explorer. Have fun.
BTW the permission setting 0777 means anyone can access it (or any other application), for the sake of having a better security the permissions should be changed to 445 so only root can access and execute those files (I'm not sure if APKs are considered excutables if they are not the 444 will be the right setting)
Sent from my A500 using Tapatalk

[HOWTO] Dalvik2Cache 90MB extra Space for Apps

found this http://forum.xda-developers.com/showthread.php?t=1174160 here in the forum, but cant get it to work on my neo
after a little seaching i found an other script that seems to work on NEO maybe on ARC too
also install-recovery.sh isnt execute on my neo so i put the call into hw_config.sh and it works fine now
howto.
1. push dalvik2cache /system/bin/dalvik2cache
2. adb shell
3. chmod 755 /system/bin/dalvik2cache
4. echo "/system/bin/dalvik2cache" >> /system/etc/hw_config.sh
5. reboot
btw. you need an inscured adb or an insecure kernel like this -> http://forum.xda-developers.com/showthread.php?t=1197263
if you do that, then at your own risk, do not complain when your phone is broken
hi,
i think it should also work without insecure adb and with stock kernel.
but root is needed...
copy the dalvik2cache file to sdcard first
with rootexplorer copy file to system/bin
set permissions
edit the hw_config.sh with editor (rootexplorer)
works great, thanks!
since my kernel supports init.d binaries/scripts u can actually just push it to /etc/init.d/ OR /system/etc/init.d/
it should work... though u may need to verify permissions... chmod 777 is best bet
DooMLoRD said:
since my kernel supports init.d binaries/scripts u can actually just push it to /etc/init.d/ OR /system/etc/init.d/
it should work... though u may need to verify permissions... chmod 777 is best bet
Click to expand...
Click to collapse
can you please post 1,2,3,4 simple guide to make this work with you fantastic kernel Doomlord?
i really need more space for apps
@inteks: what are the cons of this dalvik2cache? if there are cons
Alejandrissimo said:
@inteks: what are the cons of this dalvik2cache? if there are cons
Click to expand...
Click to collapse
i found out that some apps dont work just after install they need a reboot before they work ?!?!
dont know why!
DooMLoRD said:
since my kernel supports init.d binaries/scripts u can actually just push it to /etc/init.d/ OR /system/etc/init.d/
it should work... though u may need to verify permissions... chmod 777 is best bet
Click to expand...
Click to collapse
i placed a scipt in /etc/init.d/ but it isnt execute on startup ...
ps:
the script is startable and permissons should be ok.
if i place the name of that script (/etc/init.d/start.sh) at the end of hw_config.sh then its executet on startup
Hi friends,
I've been trying to do this but I really don't know how to use adb. I have Android SDK installed on my computer, and fastboot, flash...ect. But every time I type "adb remount" then I get the answer is 'adb' is not found (blah blah blah...).
Plus my phone can't boot to recovery. Anyone please tell me where can I find the instruction how to do it? I really want to have more space for my phone and move all installed apps to sd card (I also have my sd card partitioned with ext3 and fat32).
Many thanks in advance.
Saigonian said:
I've been trying to do this but I really don't know how to use adb.
Click to expand...
Click to collapse
Have a look at first post in this thread - you have to copy two files
Saigonian said:
Plus my phone can't boot to recovery.
Click to expand...
Click to collapse
You will have to unlock your phone first and then, using adb, install a custom kernel by fx. DooMLoRD from the link in my signature.
I dont know how to use cmd, can I use Root Explorer?
Anyway to revert it back? Because few apps are missing after it's done.
inteks said:
found this http://forum.xda-developers.com/showthread.php?t=1174160 here in the forum, but cant get it to work on my neo
after a little seaching i found an other script that seems to work on NEO maybe on ARC too
also install-recovery.sh isnt execute on my neo so i put the call into hw_config.sh and it works fine now
howto.
1. push dalvik2cache /system/bin/dalvik2cache
2. adb shell
3. chmod 755 /system/bin/dalvik2cache
4. echo "/system/bin/dalvik2cache" >> /system/etc/hw_config.sh
5. reboot
btw. you need an inscured adb or an insecure kernel like this -> http://forum.xda-developers.com/showthread.php?t=1197263
if you do that, then at your own risk, do not complain when your phone is broken
Click to expand...
Click to collapse
I'm sorry was that a typo? When your phone gets broken! Or if?
Sent from my LT15i using XDA Premium App
Hi harfot,
Thank you so much! I have it done now! But I wonder why the free space in my phone is now still the same (184MB - Because I only have a few apps installed).
inteks said:
hi,
i think it should also work without insecure adb and with stock kernel.
but root is needed...
copy the dalvik2cache file to sdcard first
with rootexplorer copy file to system/bin
set permissions
edit the hw_config.sh with editor (rootexplorer)
Click to expand...
Click to collapse
hey! This sounds like a best solution if you dont want to unlock the bootloader. But I am not too advanced user yet, could you please explain me this one with more details? actually I only need to know
1). which permissions exactly need to be set and
2). what to write inside the hw_config.sh file
Any help appreciated!
bump! no one has any ideas?
Thanks it's work in arc

[Q] "Application Not Installed " Google Maps v6.2.0

When I try to install this GMaps It always getting "Application not installed" error.I did
1.Backup older Gmaps,Street View then wipe data & Uninstalled both.
2.When I gonna install New GMaps app in the end of installation it show "application not installed"
3.Reboot device & try to install,still getting same result!
What should I do?
Thanks
crazykas said:
When I try to install this GMaps It always getting "Application not installed" error.I did
1.Backup older Gmaps,Street View then wipe data & Uninstalled both.
2.When I gonna install New GMaps app in the end of installation it show "application not installed"
3.Reboot device & try to install,still getting same result!
What should I do?
Thanks
Click to expand...
Click to collapse
Have you tried using adb if not wait for the signed version..
jr_718 said:
Have you tried using adb if not wait for the signed version..
Click to expand...
Click to collapse
Is this code correct
"adb remount
adb push /maps 6.2.0 -mod.apk / system/app"
?
Where should I place the app file?In "platform-tools" folder?
Thank you very much for helping me!
crazykas said:
Is this code correct
"adb remount
adb push /maps 6.2.0 -mod.apk / system/app"
?
Where should I place the app file?In "platform-tools" folder?
Thank you very much for helping me!
Click to expand...
Click to collapse
Our on the right path so far.. But the way I've always used adb I kinda dragged everything to the tools folder...I have the library and everything else there...try putting it on our tools folder and see what happens if not check the platform tools.. Just drop the map apk and try it out.
jr_718 said:
Have you tried using adb if not wait for the signed version..
Click to expand...
Click to collapse
jr_718 said:
Our on the right path so far.. But the way I've always used adb I kinda dragged everything to the tools folder...I have the library and everything else there...try putting it on our tools folder and see what happens if not check the platform tools.. Just drop the map apk and try it out.
Click to expand...
Click to collapse
I tried,but remount was not successful.Remount permission faild.Show"ADB remountperation faild".Why is this?I've rooted & s-off my device.Also
"adb shell
$ su"
NOT GIVING # istead of $.
Why is that?Even root explorer,i can't move apps to system/app (even mount as R/W)!Why is that?
crazykas said:
I tried,but remount was not successful.Remount permission faild.Show"ADB remountperation faild".Why is this?I've rooted & s-off my device.Also
"adb shell
$ su"
NOT GIVING # istead of $.
Why is that?Even root explorer,i can't move apps to system/app (even mount as R/W)!Why is that?
Click to expand...
Click to collapse
Hmm.. even root explorer.. that's strange you mean mount R/W to R/O in root explorer..
from my end i first did c:\androidsdk then was able to adb push etc...what i could suggest is wait for the signed version.. am on samsung galaxy t989, am at work, i can't really access nothing right now to check with you...i have my mytouch 4g at home...i know you have root access because you said you were able to backup and uninstall using titanium backup.. so i guess you have root access...but try the mount r/w to r/o and see what happens...
jr_718 said:
Have you tried using adb if not wait for the signed version..
Click to expand...
Click to collapse
jr_718 said:
Our on the right path so far.. But the way I've always used adb I kinda dragged everything to the tools folder...I have the library and everything else there...try putting it on our tools folder and see what happens if not check the platform tools.. Just drop the map apk and try it out.
Click to expand...
Click to collapse
jr_718 said:
Hmm.. even root explorer.. that's strange you mean mount R/W to R/O in root explorer..
from my end i first did c:\androidsdk then was able to adb push etc...what i could suggest is wait for the signed version.. am on samsung galaxy t989, am at work, i can't really access nothing right now to check with you...i have my mytouch 4g at home...i know you have root access because you said you were able to backup and uninstall using titanium backup.. so i guess you have root access...but try the mount r/w to r/o and see what happens...
Click to expand...
Click to collapse
Aha!Now I can push apks to system/app folder.Now how should I install it?Normal installation does not work,no.Reply me when you can.Thanks
Update-
After reboot unable to copy read permission of something in SYSTEM folder!All the other can R/W.But SYSTEM is only R/O.Oh... I donno what to do.I will wait for signed one as you said.
crazykas said:
Aha!Now I can push apks to system/app folder.Now how should I install it?Normal installation does not work,no.Reply me when you can.Thanks
Update-
After reboot unable to copy read permission of something in SYSTEM folder!All the other can R/W.But SYSTEM is only R/O.Oh... I donno what to do.I will wait for signed one as you said.
Click to expand...
Click to collapse
You can make the system r/w.
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblk3 /system
i know that's not the exact code but it works just fine for me.
crazykas said:
Aha!Now I can push apks to system/app folder.Now how should I install it?Normal installation does not work,no.Reply me when you can.Thanks
Update-
After reboot unable to copy read permission of something in SYSTEM folder!All the other can R/W.But SYSTEM is only R/O.Oh... I donno what to do.I will wait for signed one as you said.
Click to expand...
Click to collapse
Same way you posted...
jr_718 said:
Same way you posted...
Click to expand...
Click to collapse
It only worked one time.After reboot it does not work.By the way,if you can please answer to these questions.These are my last questions
1.When we gonna flash new rom instruction always say do a Nanandroid backup,no.Still im on rooted froyo.So How to do NANANDROID BACKUP?Where is this option?
On bootloader,rom manager or TB?
2.Do I need busybox?What is busybox?
crazykas said:
It only worked one time.After reboot it does not work.By the way,if you can please answer to these questions.These are my last questions
1.When we gonna flash new rom instruction always say do a Nanandroid backup,no.Still im on rooted froyo.So How to do NANANDROID BACKUP?Where is this option?
On bootloader,rom manager or TB?
2.Do I need busybox?What is busybox?
Click to expand...
Click to collapse
1. You can use Rom manager to backup..
http://forum.xda-developers.com/showthread.php?t=1186090
2. Busybox is a great tool for rooted users. It basically give you more linux / Unix based commands that you normally don't have access to. If you Google busybox you can find more info...
jr_718 said:
Same way you posted...
Click to expand...
Click to collapse
jr_718 said:
1. You can use Rom manager to backup..
http://forum.xda-developers.com/showthread.php?t=1186090
2. Busybox is a great tool for rooted users. It basically give you more linux / Unix based commands that you normally don't have access to. If you Google busybox you can find more info...
Click to expand...
Click to collapse
Hey I just found this app from market
market://details?id=com.beansoft.mount_system
It can mount system folder!Now I can copy apps!Yahooooo!Ah!I've set permission to this Gmaps app & rebooted device.But it is still not visible.But it is in system/app folder How I make this visible/install?
TIA

Best way to push modified apks

So I've started modifying my apks to create a custom theme for myself. The question I have, is what is the best way to get them back on my phone.
I pulled them with toolkit, and tried to push them that way, but it didn't seem to work as it said i was missing certificates...
I tried to just push the files into system/apps but that didn't seem to work.
Any suggestions?
Thanks in advance!
zbt1985 said:
So I've started modifying my apks to create a custom theme for myself. The question I have, is what is the best way to get them back on my phone.
I pulled them with toolkit, and tried to push them that way, but it didn't seem to work as it said i was missing certificates...
I tried to just push the files into system/apps but that didn't seem to work.
Any suggestions?
Thanks in advance!
Click to expand...
Click to collapse
Try it the easy way.. Root Explorer copy it in the right place and give the necessary rights.
B3rt0 said:
Try it the easy way.. Root Explorer copy it in the right place and give the necessary rights.
Click to expand...
Click to collapse
What do you mean by rights? Are you talking about r/w r/o?
zbt1985 said:
So I've started modifying my apks to create a custom theme for myself. The question I have, is what is the best way to get them back on my phone.
I pulled them with toolkit, and tried to push them that way, but it didn't seem to work as it said i was missing certificates...
I tried to just push the files into system/apps but that didn't seem to work.
Any suggestions?
Thanks in advance!
Click to expand...
Click to collapse
Are you trying to push files with the toolkit? Download the android SDK and push the files with adb. Its much better than root explorer as you'll be able to see changes immediately (except for the framework-res and SystemUI apk's). Also, try pushing to system/app (not system/apps).
Sent from my Nexus 4 using xda premium
zbt1985 said:
What do you mean by rights? Are you talking about r/w r/o?
Click to expand...
Click to collapse
I think he means permissions. Like said previously push them with adb as its much simpler, you can also set permissions with adb shell though I cant remember the exact syntax but it's a chmod command.
adb remount
adb push (name of apk) /system/app

lost all permissions after messing with platform.xml

Hello,
I have SM-N9005 variant and recently I updated to the latest android 4.4.2 leaked version with Odin, and then rooted with CF-Auto-Root.
After that, I lost the permission to write to external sdcard.
I searched and found this: http://forum.xda-developers.com/showthread.php?p=49603814
I backed up /system/etc/permissions/platform.xml and then I followed the instructions there.
After restart, a lot of app stopping messages showed and I had no access to file system or network anymore.
I used adb shell to restore the original platform.xml but it didn't helped in any way.
It seems that all mounts and networks are working, but none of the applications has permission to use any of them.
How do I resolve this, without wiping all my data?
Thank you!
You need to set the correct permissions on the .xml after you overwrite it back into the /system Off the top of my head I can't think what they are (just out of bed and got to work so still sleepy!)
radicalisto said:
You need to set the correct permissions on the .xml after you overwrite it back into the /system Off the top of my head I can't think what they are (just out of bed and got to work so still sleepy!)
Click to expand...
Click to collapse
I tried 644 and 777 but the problem persists.
rw-r-r which is 644 - read wrong
or chmod 666 -- forgive my lack of memory, it has been a long time since I have used chmod commands, few years since my glFTPD / site modding days.
radicalisto said:
rw-r-r which is 644 - read wrong
or chmod 666 -- forgive my lack of memory, it has been a long time since I have used chmod commands, few years since my glFTPD / site modding days.
Click to expand...
Click to collapse
The problem still persist
DxCK said:
The problem still persist
Click to expand...
Click to collapse
i dont know if it helps in your situation but did you try the "fix permissions" from a custom recovery like twrp?
there are also scripts you can execute in a terminal, the knoxout script linked in my sig for example has a permission fixer included.
A.N.Droid said:
i dont know if it helps in your situation but did you try the "fix permissions" from a custom recovery like twrp?
there are also scripts you can execute in a terminal, the knoxout script linked in my sig for example has a permission fixer included.
Click to expand...
Click to collapse
Thank you.
When i run this, no matter what are the parameters, for example: sh kn0x0ut.sh kn0x0ut
it says:
ERROR: Unknown parameter ""
Removing all temp folder /data/media/kn0x0ut_temp...
DxCK said:
Thank you.
When i run this, no matter what are the parameters, for example: sh kn0x0ut.sh kn0x0ut
it says:
ERROR: Unknown parameter ""
Removing all temp folder /data/media/kn0x0ut_temp...
Click to expand...
Click to collapse
just type sh kn0x0ut.sh to get all commands.
if you dont get this working, you can do it from twrp (i think cwm too)if you have it.
tap on "advanced" and then on "fix permissions".

Categories

Resources