Dear All,
I have been accidentally move the /system/bin/sh file to my SD card,
now, all my app which need root was not function..
What should I do now...?
Please help..... T_T
Move it back.
thankz for reply..
But, any suggestion to move back?
cause now I can't move it back via my phone file manager as the sh file was a
read only file..
Please advise any suggestion that how i can move back
really need advise...
peter tham said:
thankz for reply..
But, any suggestion to move back?
cause now I can't move it back via my phone file manager as the sh file was a
read only file..
Please advise any suggestion that how i can move back
really need advise...
Click to expand...
Click to collapse
You can probably use adb or Terminal Emulator (Free on market) directly on your phone.
Regards
SprigganMaster said:
You can probably use adb or Terminal Emulator (Free on market) directly on your phone.
Regards
Click to expand...
Click to collapse
Dear SprigganMaster,if I use terminal emulator,what was the initial command?
Cause the 'sh' file I move from system,it seem like a script ,and when I open the scree of emulator,I can't type any things...
For your info,I move the 'sh' file from /system /bin/ folder to my SD card /folder.
by using apk root explore,as a result,without the 'sh' script file in /system/bin folder,when I can't access to root explore anymore-force close.
Then I can't move back the 'sh' file to the system/bin folder.
All those root apk does not work anymore...
Now,I am trying my best to get a way to move back the 'sh' file (which is read only file) to my system folder...
Can u guide me about it? Using terminal emulator or any alternative way to move back the file into system?
Waiting your prompt reply and really appreciate it.
Thankz....^^
Hello peter tham,
Please note : my phone is not rooted. I can't try these solutions and I'm quite new to android. Maybe someone with more experience could help you.
I'm not sure if Terminal Emulator use the sh file too but we can try...
To move file, the command is mv.
To copy a file, the command is cp.
Adapt this command with the correct folder where you put the sh file :
Code:
cp /FOLDER/sh /system/bin/
You will need to be root to copy a file to /system folder.
Usually, to gain root privileges, you use the command su.
If Terminal Emulator does not work, you can try with adb.
1- Download sh file to your computer.
2- open a shell (on windows : cmd, on linux whatever you're using as shell)
3- plug your phone in Charge Only mode with USB debuging On
4- Push the file with a command like this one :
Code:
adb push foo.txt /sdcard/foo.txt
adb push <local> <remote>
You can find more info on adb here :
http://wiki.cyanogenmod.com/wiki/ADB
and here :
http://developer.android.com/guide/developing/tools/adb.html
Good Luck
Related
Hi,
I was trying to get cyongen browser into my [Build]Android 2.2 Build FRG33 [ mccm v1.5a andriod built. To get that I copied the browser.apk from the cyongen to my this builts browser.apk in the system/app folder. I was able to over-write the file, but now browser icon disappered.
Following I have tried:
- Install the cyanogen browser using astro --> it installs but when i launch i get process com.android.browser error.
- I copied the original file before over-writing but when I try to install it using astro it gives me error.
Can some help me with this issue. I do not want to reinstall everything. Thank you
tinkoo81 said:
Hi,
I was trying to get cyongen browser into my [Build]Android 2.2 Build FRG33 [ mccm v1.5a andriod built. To get that I copied the browser.apk from the cyongen to my this builts browser.apk in the system/app folder. I was able to over-write the file, but now browser icon disappered.
Following I have tried:
- Install the cyanogen browser using astro --> it installs but when i launch i get process com.android.browser error.
- I copied the original file before over-writing but when I try to install it using astro it gives me error.
Can some help me with this issue. I do not want to reinstall everything. Thank you
Click to expand...
Click to collapse
this isnt really development related and should be posted in the android general section.
Do you have ABD setup? Or droid explorer?
If you have ADB setup, drop the browser.apk into your working tools folder then shift+right click on the tools folder, select open command prompt here and type the following (assuming your on windblows)
adb shell mount -o remount rw /system
adb push exactname.apk /system/app
adb shell reboot
Sorry for posting it to wrong section. I do not have ADB. I tried droid explorer but it did not work for my HD2.
what do you mean by it didnt work for you? Did it give an error?
I have windows 7 and I cannot install it. There seems to be some issue with droid explorer.
alright, I dont use droid explorer myself so not real sure..but all it does is gives you an interface for adb. Are you on windows 32 or 64 bit?
I am on Windows 64 bit. I got the old version working but When i connect my HD2 (in android), it does not recognize any devices. Thanks for helping.
Assuming your on windows 32 bit
go to this location
C:\Program Files\Droid Explorer\SDK
you should have a tools folder in the SDK folder?
If so, drop your apk into it and go back to the SDK directory. Then hold ****, and right click on the tools folder, open command prompt window here When it opens type in
adb devices
If that lists a number your good to go
type in
adb shell mount -o remount rw /system
adb push exactname.apk /system/app
adb shell reboot
EDIT : you posted as I was lol, Droid Explorer installs the same so the above commands should work.
Dear all,
Good day.
I would like to ask,can I access phone memory (HTC aria A6380)
on pc?
It was because I accidentally move a script file "sh"
from my /system/bin folder to my sd card.
Now I would like to cut back the file and paste it back to the original folder which in system file...
But,without the "sh" file in /system/bin/ folder,the root explore .apk can't work
So,I would need some expert advise...
You could just re-flash you rom.
Yes you can. You need to use the 'adb' tool. Download here: http://forum.xda-developers.com/attachment.php?attachmentid=630611&stc=1&d=1308537076 and extract it to a folder, then open a command line to that folder.
Connect your phone, and make sure USB debugging is enabled. Copy the file from your SD card to your computer. If you do not have S-OFF, you need to go to Clockworkmod recovery on your device before this will work.
From the command line, do adb devices to see if the phone is connected properly. Then do adb remount to mount the system partition as writable. Then do adb push C:\path\to\filename /system/bin/filename to copy the file. Then just disconnect and reboot the phone.
drumist said:
Yes you can. You need to use the 'adb' tool. Download here: http://forum.xda-developers.com/attachment.php?attachmentid=630611&stc=1&d=1308537076 and extract it to a folder, then open a command line to that folder.
Connect your phone, and make sure USB debugging is enabled. Copy the file from your SD card to your computer. If you do not have S-OFF, you need to go to Clockworkmod recovery on your device before this will work.
From the command line, do adb devices to see if the phone is connected properly. Then do adb remount to mount the system partition as writable. Then do adb push C:\path\to\filename /system/bin/filename to copy the file. Then just disconnect and reboot the phone.
Click to expand...
Click to collapse
how to add a command line?
peter tham said:
how to add a command line?
Click to expand...
Click to collapse
Open command prompt if you are on windows
Sent from my Liberty using XDA App
can this be done to remove system app?
Mysteryagr said:
can this be done to remove system app?
Click to expand...
Click to collapse
Yes. BUT... make sure you aren't removing a vital app, aka settings.apk.
Sent from my HTC Intruder
Hello. I am having a lot of trouble accessing root folders [/etc] to paste a new gps.conf. I was wondering if anyone might know why this is, or have a fix. I have searched for similar problems in the forums, and seemed to get some similar problems, but no specific answers.
Phone model: HTC Desire GSM
Android version: 2.3.7
Oxygen ROM 2.3.2-bravo
I have tried using root explorer (yes setting root and etc to r/w, not r/o) and ES explorer (turning on all the root access settings).
When I try to either paste a new gps.conf to the etc folder, it gives me no error messages, but will not overwrite the old file.
Any ideas are welcome
Try using terminal emulator:
Code:
su
cp /your/gps.conf /etc/gps.conf
Or using adb:
Code:
adb remount
adb shell "cp /your/gps.conf /etc/gps.conf"
RoberGalarga said:
Try using terminal emulator:
Code:
su
cp /your/gps.conf /etc/gps.conf
Or using adb:
Code:
adb remount
adb shell "cp /your/gps.conf /etc/gps.conf"
Click to expand...
Click to collapse
I tried this and it says it cannot copy - out of memory
Having searched for this issue, I found that it has nothing to do with memory, but simply that the user does not have permission to modify the contents of the folder. This can be changed using the chmod command, but I have no idea how to use the chmod command, it looks complex.
Any help is much appreciated
I don't use root explorer or but you should be able to use it to edit a folder's permissions.
I use total commander and all I do is navigate to the folder/file, long press it, click properties then permissions then enable write across the board. I imagine the process is basically the same for root explorer.
jr67 said:
I don't use root explorer or but you should be able to use it to edit a folder's permissions.
I use total commander and all I do is navigate to the folder/file, long press it, click properties then permissions then enable write across the board. I imagine the process is basically the same for root explorer.
Click to expand...
Click to collapse
Thanks, but I think you have to use chmod. For some reason root explorer / es file explorer, &c. cannot change this permission, because they do not have permission to change the permission.
I've messed with some of my files on my phone through ES File manager, and I kept getting errors with a specific folder, I then realized that, it's only happening with the folder I created while pushing a file through adb. ESFM has root permissions enabled, but I could not find where to view the permissions for a folder, only files. I also managed to change the stuff in the folder while in recovery. Do I need to set the permissions for the folder through adb right after i create it, or is it a bug somewhere with the ROM/device, or just a random error? If someone could provide an explanation it would be nice.
Viper 1.2.0
s-off
ML417 said:
I've messed with some of my files on my phone through ES File manager, and I kept getting errors with a specific folder, I then realized that, it's only happening with the folder I created while pushing a file through adb. ESFM has root permissions enabled, but I could not find where to view the permissions for a folder, only files. I also managed to change the stuff in the folder while in recovery. Do I need to set the permissions for the folder through adb right after i create it, or is it a bug somewhere with the ROM/device, or just a random error? If someone could provide an explanation it would be nice.
Viper 1.2.0
s-off
Click to expand...
Click to collapse
See if you can duplicate the error while pulling a logcat. That will help out in solving your problem.
if you dont wanna do that just adb remount and chmod the folder either through adb or adb shell access then restart phone
It's specific to only the folder i created through adb. I'm wondering if anyone else experienced it, or if it is only on my phone
what type of folder and either way you should be able to just adb shell then su then chmod /path to folder
t1gartist said:
what type of folder and either way you should be able to just adb shell then su then chmod /path to folder
Click to expand...
Click to collapse
I created the folder on the /sdcard while pushing a file from my computer. The folder was still accessable, I just wasn't able to copy anything into it/edit it. What permissions would be given to a folder like that if i didn't specify them?
you should have been able to read and write by default all of mine are... erm.... delete the folder and create it via root browser or what ever explorer you have and you should be able to long press and access permissions
I'm trying to make an AOSP ROM, and while doing so, I now have a dysfunctional bootloader. If your tablet is rooted, please duplicate the boot.img from your system and share it with me. Would very much appreciate.
Instructions:
Use CMD and paste these 2 lines:
adb shell "dd if=/dev/block/platform/soc.0/by-name/boot of=/sdcard/boot.img"
adb pull /sdcard/boot.img
Then from ADB directory, upload to somewhere easily accessible.
Does it matter if we have updated to 7.0 or not? I'm rooted and have updated to 7.0 and would be happy to help.
That would actually be a good idea. The ROM is supposed to be 7.0.0 anyways.
Running the first command comes up as " no such file or directory"
Do you already have ADB?
mr_verystock said:
Do you already have ADB?
Click to expand...
Click to collapse
Yep. I do adb devices to make sure it recognizes the tablet and all is good there.
Maybe so I'm the same page i just open up ADB as normal : open the command prompt in my platform tools. I paste the first line in : adb shell "dd if=/dev/block/platform/soc.0/by-name/boot of=/sdcard/boot.img" I get no file or directory.
Unable to get the dumb file:
adb shell "dd if=/dev/block/platform/soc.0/by-name/boot of=/sdcard/boot.img"
dd: /dev/block/platform/soc.0/by-name/boot: No such file or directory
Edit: does a backup from the recovery could make the task done ? I backup the boot from the TWRP and I get a file of 32Mb with the name: boot.emmc.win
adb shell
cd /dev/block/platform
ls
And tell me the output. I appreciate your help!
mr_verystock said:
adb shell
cd /dev/block/platform
ls
And tell me the output. I appreciate your help!
Click to expand...
Click to collapse
Nothing, it returns an empty result
Unusual... Normally there's soc.0 or msm_sdcc.1.
mr_verystock said:
Unusual... Normally there's soc.0 or msm_sdcc.1.
Click to expand...
Click to collapse
That command never worked for me on this tablet. Yes the default kernels is 32mb.
You can get it from twrp backup as .win and then rename it (if it is not compressed) or use AUT or SuperR's kitchen to obtain it.
Another method would be flashifire>backup.
Im still on MM so I can not help you.
Try these: https://drive.google.com/file/d/0Bz54O_w1LEYpQ1k0aDVHX29NbkE/view?usp=sharing
the rooted files I grabbed from TWRP backup, should be idential to the ones get using dd method.
the stock files I extracted from stock kdz file using WindowsLGFirmwareExtract-1.2.6.1-Release