Unerasable files pushed via ADB - ONE Q&A, Help & Troubleshooting

Hi,
I recently pushed a folder (Download) to the sdcard of my OnePlus One via ADB in recovery. Now, I can't delete any of the files inside that folder via any (root) browser.
How can I fix that?
Thanks.

If you are unlocked, install Root Explorer, or the like, and check the directory permissions. Mine is set to 777, and I can delete it if I wish. Or you can change the permission of the files inside, and delete those, as you wish.
There are likely adp commands, as well. Perhaps someone will show with that know-how.

I tried that, though it unfortunately doesn't work via root browser.
I'll try it via adb later today.

adb remount (to gain rw-access to root partition)
adb shell rm -f <path to file> (to delete the apk)

Related

how do you change folder permissions???

hi
how does one change folder permissions? i have read that you cam do it with the root explorer app but is there a way to do it on the pc using the sdk? i connected my phone to the pc and issued the adb shell command and then attempted to use the chmod command but got a read only file system message.
dsMA said:
hi
how does one change folder permissions? i have read that you cam do it with the root explorer app but is there a way to do it on the pc using the sdk? i connected my phone to the pc and issued the adb shell command and then attempted to use the chmod command but got a read only file system message.
Click to expand...
Click to collapse
1) If you have ADB setup on your computer, hook your phone into the computer and connect into it via ADB.
2) Once in, "chmod" the directory or file(s) you wish to change permissions for.
IF you don't have ADB:
1) Download a terminal
2) su - to root
3) Change your directory
4) "chmod" to whatever pemissions you want
it means that folder/file you're chmod'ing was mounted ro. you cant change anything if its mounted as ro. to check just enter "mount" and you can see what are mounted as rw, ro etc
yantz
I would also suggest changing it back when you're done. This helps prevent you from accidently overwriting or deleting something and have to reflash if you're rooted.

Tried rooting my phone, can't push SU file

ok so I'm trying to root my G2 phone from T-mobile, I have followed the steps in this forum:
http://forum.xda-developers.com/wik..._Root_.2F_.22Permaroot.22.29_using_gfree_v0.7
all of the steps, I downgraded my firmware, I got permroot but when I get to step 2: copy files to phone it does not let me push the Superuser files onto my phone, it says permission denied. I have USB debuggin on and i have the screen on stay awake, I have superuser app on my phone but I don't know what i am doing wrong.
adb push su /sdcard/
adb push Superuser.apk /sdcard/ <---these 2 are the ones it doesn't let me push. i have them installed on my platform-tools directory and everything too.
Look here
Http://forum.xda-developers.com/showthread.php?t=879701
Sent from my T-Mobile_G2 using xda premium
What is this??
this is for ADB I already have adb
Instead of pushing to /sdcard, try pushing to /mnt/sdcard (/sdcard is just a symlink and I am not sure every system has it by default).
Example:
adb push Superuser.apk /mnt/sdcard/
Also, are you sure your sdcard is working properly? You could also just copy those files manually to your sdcard from your OS as well as you would any other file like music or videos. It would make no difference.
That totally worked!!!
Thanks man, I was stuck on that thing for like a week, ohh man thanks again.

[Q] cant copy big files (via USB-MTP, ADB)

hey!
I try to backup my backup. So I want to copy my nandroid-files from internal-SD to my computer. everything is working fine, but the two big files from data (810MB) and system (1200MB) cant be copied. If I try it with normal USB-MTP windows just ignores my copy-attempt. With adb pull I get an error:
adb pull sdcard/TWRP TWRP
results in copying everything instead of system and data: "failed to copy FROM to DEST: Permission denied"
any ideas?
I'm using JMZ-kernel, dev-unlock, root.
forgot to say: Also no access via Airdroid and ES Explorer/Root Explorer. I tried to copy those files somewhere on the SD-card, also tried to put them in a zip file.
The backup is in a special folder with protection, so you need to set the correct rights to copy the files, I think.
You may use these commands in Adb console:
adb shell
su
chmod -R 777 data/media/0/TWRP/
exit
After this it is possible to copy the files
Sent from my HTC One mini using xda app-developers app
THANKS!!!

adb push without windows permissions?

Hey Guys,
Whenever I push files to my device for example:
Code:
adb push C:\Users\Hy\Desktop\GoogleLGNexus4 /sdcard/
It pushes the files correctly but I am then unable to delete or move the files, it has some weird permission the only way I can delete the folders is to reboot into recovery and do
Code:
rm -rf /dir/
Any ideas how to fix this?
Thanks
EDIT: I've tried to use Recovery's "Fix Permissions" but it doesnt solve it
For example i pushed these files via adb and here Is me trying to move them http://i.imgur.com/akIAets.png and deleting http://i.imgur.com/L3WE9f7.png
Up
Sent from my Nexus 4

[Q] Create a .img file of the system partition

I bought a Moto G(XT1031) last week. I rooted it, and before removing any system apps, created a backup in TWRP of the system and boot partitions.
Now, I have the 8GB model(couldn't find a 16GB one cheap enough) and so I would like to create a .img of the system and boot partitions. I still have the TWRP backup, however I want to remove it from my phone as it's eating up almost a GB of precious space.
I've seen some assorted stuff on how to pull .img files from the phone, but I' m not sure which ones will work with mine. Any help would be appreciated!
You could use: adb pull /sdcard/TWRP c:/MotoG_Backup/TWRP
Now you can delete that folder from phone.
Then if you want to restore TWRP Backup: adb push c:/MotoG_Backup/TWRP /sdcard/TWRP/
Alternatively:
ADB Dumping Methods: *ROOT REQUIRED*
You need to grant the SuperSU permission popup that will appear on your phone.
System:
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/system of=/sdcard/system.img"
adb pull /sdcard/system.img​
lost101 said:
You could use: adb pull /sdcard/TWRP c:/MotoG_Backup/TWRP
Now you can delete that folder from phone.
Then if you want to restore TWRP Backup: adb push c:/MotoG_Backup/TWRP /sdcard/TWRP/
Alternatively:
ADB Dumping Methods: *ROOT REQUIRED*
You need to grant the SuperSU permission popup that will appear on your phone.
System:
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/system of=/sdcard/system.img"
adb pull /sdcard/system.img​
Click to expand...
Click to collapse
Why, thank you sir! I was unaware that you can push files to your device while in the recovery! That is why I wanted a system image file.
Thanks again!

Categories

Resources