System file read only - Android Q&A, Help & Troubleshooting

Hi CDA folks, I am trying to revive white Pandigital using ADB commands to push files on the system's folder of the device then flashing them.
The computer sees the device, adb has root access, yet when trying to push files is gives me an error indication that the system/data/midc is a read only.
tried adb remount over and over with no lick. Is there any other way to get to write on the system folder?

did you try
adb shell
su ?
Sent from my GT-S5670 using xda premium

soham jambhekar said:
did you try
adb shell
su ?
Sent from my GT-S5670 using xda premium
Click to expand...
Click to collapse
No I did not, and what if I don't have super user or busy box? How can I can them on the device in a black screen state?

Related

Telstra Deodex

I'm trying to deodex my atrix with the 4.1.4.2 sbf, but I'm having trouble. I think it's because I don't have superuser permissions of adb, how do I get this?
adb shell
Su
On the phone itll prompt you with a super user permissions.
Run the script now and it should work
Sent from my MB860 using XDA App
ChongoDroid said:
adb shell
Su
On the phone itll prompt you with a super user permissions.
Run the script now and it should work
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
Is this done through Terminal Emulator?

Adb 'push' doesn't take, why?

Whenever I push, chmod, then reboot, my device reboots but nothing else. Adb DOES recognize my device, I can install/uninstall, remount, etc... So wat?
I'm try'n to get a modded Ziggy script to run on boot (to further undervolt- others have gotten to run)
I've tried manually pasting in unit.d folder, then manually fixing perm.s but after I reboot, the permissions have reverted n nothing has changed.
Yes, I'm a noob, please help.
sent from rooted ThunderBolt
I've gotten weird problems with adb in Win7 by not running cmd as an admin
Ok, well I'm the admin. (only 1 user acct.) so I should be good
Sent from my ADR6400L using XDA App
Maybe you're pushing whatever to a system folder not mounted with write access? I know if you try pushing to say /system/etc/hosts and you dont have it mounted in write access and have root permission (on the phone in both cases), it will reset it back to the original on reboot.
yareally said:
Maybe you're pushing whatever to a system folder not mounted with write access? I know if you try pushing to say /system/etc/hosts and you dont have it mounted in write access and have root permission (on the phone in both cases), it will reset it back to the original on reboot.
Click to expand...
Click to collapse
Crap, I think ur right. I was fixing perms thru adb w chmod, but AFTER I pushed.
But regardless I don't think I set as R/W.
Also, wat would cause me not to be able to set permissions manually (for individual paths) using root explorer ( or similar file manager)?
Sent from my ADR6400L using XDA App
Nope, doesn't change a F'n thing. God I wanna swear soooo bad. almost more than I respect this forum.
Sent from my ADR6400L using XDA App
K, I found that adb thinks I'm mounted as R/O tho I'm mounted as R/W. WHY
Sent from my ADR6400L using XDA App
Dunno offhand; you're not being very descriptive and it's hard to read what you're saying. Try a different approach, like using sshdroid pro (with putty or xshell) and the command line there instead of adb. I dont really use adb to push/mod things on the phone unless there's no other choice (like rooting your phone). If you're using a custom rom, they generally have a small script built into them to mount the system folder(s) as r/w (type sysrw or sysro).
It was as simple as having slashes backwards, lol, figures.
Adb still thinks I'm in read-only tho. I tried "adb remount" to no avail.
I'm not familiar w/ the other things u mentioned (i can barely read em til I change my font)
R those things I DL? Put in my SDK?
I'LL check em out
Sent from my ADR6400L using XDA App
To be more descriptive: I'm using virusROM RC1B2 w/ updated Ziggy kernel (bfs).
I have a modified script (from Ziggy) that I recently pushed to system/etc/unit.d that I'm tryn to run.
After I push I type "adb shell chmod 755 /system/etc/init.d/04vddlevels" (file name).
Then adb says "can't chmod" cuz the file system is "read-only"
I try "adb remount" n then re-entering chmod n it says nothing n nothing happens.
I am mounted as R/W so I'm confused.
Hope that explains it btr, Thnx 4 the help!
Edit; I also have a "tweak" zip file I flashed from adrynalyne to enable script to run on boot encased the Rom isn't set up to, tho others (one that I know of) has had no problems. He hasn't been able to help either.
http://www.appbrain.com/app/sshdroid/berserker.android.apps.sshdroid
then you log into it with either
http://www.netsarang.com/products/xsh_detail.html
or
http://www.chiark.greenend.org.uk/~sgtatham/putty/
or if you're using linux or osx, you can do it natively on the terminal line with the ssh command.
You can transfer files over sftp (with ssh) using something like filezilla http://filezilla-project.org/
Tutorials:
http://www.netsarang.com/tutorial/xshell/list
http://www.howtoforge.com/ssh_key_based_logins_putty
http://psychologyit.rutgers.edu/helpdocs/filezilla.html
There's plenty of pages out there on ssh if you search google though. Just read up. It's the primary way to communicate (securely) remotely with a linux/unix server. It encrypts your traffic to and from a server (in this case, your phone). It also means no cables (though you can do that with wireless adb also).
Basically, it's a way of remotely using the terminal built into android (since it's linux) without having to use adb.
try this (all one line):
(for write perms)
adb shell mount -o remount,rw,noatime,nodiratime -t ext3 /dev/block/mmcblk0p25 /system
(to set back to read only)
adb shell mount -o remount,ro,noatime,nodiratime -t ext3 /dev/block/mmcblk0p25 /system
if that doesn't work, then you're not root, so you will have to type:
adb shell su -
to get root before doing the other commands
Cool Thnx, yeah I have seen that b4, I'm tryn it(adb thing 1st) now.
Sent from my ADR6400L using XDA App
Ok, I typed: adb shell mount.... N got "Device or resource busy" ?
Sent from my ADR6400L using XDA App
Next I tried: (all one line) "adb shell su -adb shell mount... n got permission denied. ??
Sent from my ADR6400L using XDA App
if you do it all as one line you have to put a ; in between the statements so it terminates the last command before doing another
Ok, wat does "device or resource busy" mean?
http://lmgtfy.com/?q="device+or+resource+busy"+android
Do I type: "adb shell su-" (then hit enter) ? Cuz I get "su- not found"
There's not supposed to be a space between 'su' and '-' , correct, cuz then I get a '#' sign n adb freezes.
Wow I'm a mess, lol, Thnx 4 help, maybe I should do some studying n come bak more prepared!
Yeah. I here ya. Thnx. Again
Sent from my ADR6400L using XDA App

[Q] adb pulling files

Hi, i need to get this files pn stock 2.2.2 and 2.3.4 without root and with locked bootloader
i was trying to get them via adb, but permission denied. Which options can u propose?
adb pull /system/xbin/su C:/uas/su.txt
adb pull /proc/cmdline C:/uas/cmdline.txt
adb pull /sys/firmware/fuse/ReservedOdm C:/uas/ReservedOdm.txt
but build.prop copyes ok!
adb pull /system/build.prop C:/uas/build.prop
Did you run adb with su permission
sent from my Atrix via XDA premium
how can i do that?
agurzhiy said:
how can i do that?
Click to expand...
Click to collapse
in command prompt:
adb root
nothing changes...

How can I put an archive of my PC to my internal SDcard using ADB commands?

I've got a backup archive in my PC and I can't access to my android, And my recovery mode (Android System Recovery 3e)only can restore with archives that be on internal SD
How can I put an archive of my PC to my internal SDcard using ADB commands?
I need do it with ADB because I haven't got CWM
Sent from my TOUCH97 using xda app-developers app
ad push <archive location> <internal sd>
Replace what's in <> with the proper path
An example for pushing an apk to my nexus 4 maybe something like
adb push adfree.apk /storage/sdcard0/
But I tend to first open terminal/cmd in the location of the file I want to push so I don't have to enter all the C:\users\demkantor\desktop.... And so on
Sent from my Nexus 4 using Tapatalk 2
Can you tell me basic commands, to know where I am, to see the folders of my location....
Sent from my TOUCH97 using xda app-developers app
You can try a few things like
mount
Or
adb shell
cal/proc/partitions
Or
ls -l /dev/block
Or
busybox df -hm
There are plenty of guides all over xda and the web on how to use adb, look one up and if you can't figure it out let me know and I'll try and help further
Sent from my Nexus 4 using Tapatalk 2

Can I Re-Root using Terminal Emulator?

Hi im using the lgp-769 v10g T-Mobile and i was rooted on this phone but i lost root and now in system xbin i have a file named su.old, i explored this using file browser, i found that i can access this file using terminal emulator which changes the $ sign to #. I accessed it via /system/xbin/su.old... anyways I'm wondering if there is anyway i can use this and terminal emulator to regain root? I also have busybox and kbox2 working in terminal without root if that even matters... can someone kindly point me in the right direction, it would be most appreciated. Thank you all.
Sent from my LG-P769 using XDA Premium 4 mobile app
DarksiderzSK4G said:
Hi im using the lgp-769 v10g T-Mobile and i was rooted on this phone but i lost root and now in system xbin i have a file named su.old, i explored this using file browser, i found that i can access this file using terminal emulator which changes the $ sign to #. I accessed it via /system/xbin/su.old... anyways I'm wondering if there is anyway i can use this and terminal emulator to regain root? I also have busybox and kbox2 working in terminal without root if that even matters... can someone kindly point me in the right direction, it would be most appreciated. Thank you all.
Sent from my LG-P769 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
When your have root (#) try this
Code:
cp /system/xbin/su.old /system/bin/su
chmod 644 /system/bin/su
or try
Code:
mv su.old su
Here is screenshot of the results of your suggestions. What should i do now?
Sent from my LG-P769 using XDA Premium 4 mobile app
Well it says cross device link using mv and it says can't create su and. something about can't stat system/bin/su cant chmod644
Sent from my LG-P769 using XDA Premium 4 mobile app
I ended up getting it to re-root using a few commands in terminal emulator if anyone is still stuck after OTA look into using terminal emulator
Sent from my LG-P769 using XDA Premium 4 mobile app
Hi can I root moto g4 with terminal emulator (first time doing it)

Categories

Resources