[Q] how to access phone memory via pc? - HTC Aria Q&A, Help & Troubleshooting

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

Related

accidentally move "/system/bin/sh" file on htc aria 2.2

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

[Q] Is there an easier way to move files?

Currently, if I want to add a new custom wallpaper. I make it on my PC using GIMP, save it, plug in my reZound, switch to disk drive, copy the file to my sd card, unplug my reZound, go to ES File explorer, navigate to ex_sd, copy the file, navigate to /system/customize/resources, paste the file, go to home, change wallpaper. Now, I can do all that faster than I can type out the steps, but is there someway to move the file straight from my PC to the /system/customize/resources folder?
Thanks
pmterp said:
Currently, if I want to add a new custom wallpaper. I make it on my PC using GIMP, save it, plug in my reZound, switch to disk drive, copy the file to my sd card, unplug my reZound, go to ES File explorer, navigate to ex_sd, copy the file, navigate to /system/customize/resources, paste the file, go to home, change wallpaper. Now, I can do all that faster than I can type out the steps, but is there someway to move the file straight from my PC to the /system/customize/resources folder?
Thanks
Click to expand...
Click to collapse
Just put them on your sd card in a folder called /media/images/ and you can apply them with the gallery
NilsP said:
Just put them on your sd card in a folder called /media/images/ and you can apply them with the gallery
Click to expand...
Click to collapse
Or I think he can push with adb. I don't know the exact commands so if anyone can help with the commands...
Sent from my ADR6425LVW using Tapatalk
xxxxxx.png is the name of the image:
adb push xxxxxx.png /system/customize/resource
NilsP said:
xxxxxx.png is the name of the image:
adb push xxxxxx.png /system/customize/resource
Click to expand...
Click to collapse
Probably need to adb remount first. Here's my suggestion, make a batch file/script something like this:
echo off
adb wait-for-device
adb remount
adb push somdirectory/newwallpaper.png /system/customize/resource/
MrSmith317 said:
echo off
adb wait-for-device
adb remount
adb push somdirectory/newwallpaper.png /system/customize/resource/
Click to expand...
Click to collapse
That works great. Thanks everyone. Now, what about the reverse? Is there a way to get the files (default wallpapers, apks, etc.) pushed to my computer? I tried running the same script and reversing the file and destination but that did not work.
Edit: Never mind, found it. adb pull
I haven't used adb commands since I was rooting my eris, thanks guys.

[Q] Unable to ADB push a ROM (using CM9 with CWM v6.0.1.0)

Hi guys,
This might be a common question/issue but i've tried to search and tried many ways. However i still am not able to do it successfully.
I'm trying to ADB push a ROM zip into my internal sdcard on my phone. Here's the steps i have used:
1. Open cmd in windows and locate the ADB path.
2. Plug phone into USB and boot into recovery.
3. Mount /sdcard/
Whenever i try that it always gives me "Error mounting /sdcard/". Why is this so? Do i need this step to do an ADB push?
I also tried doing ADB push without mounting /sdcard/ and it says file transfered in my cmd prompt window on my PC but i couldnt find the ROM zip file anywhere in /mnt/sdcard/.
Am i doing something wrong here?
Btw i'm using an SGS2 GT-i9100 with CM9 - 20120722 nightly (CWM version 6.0.1.0)
shadowcaster31 said:
Hi guys,
This might be a common question/issue but i've tried to search and tried many ways. However i still am not able to do it successfully.
I'm trying to ADB push a ROM zip into my internal sdcard on my phone. Here's the steps i have used:
1. Open cmd in windows and locate the ADB path.
2. Plug phone into USB and boot into recovery.
3. Mount /sdcard/
Whenever i try that it always gives me "Error mounting /sdcard/". Why is this so? Do i need this step to do an ADB push?
I also tried doing ADB push without mounting /sdcard/ and it says file transfered in my cmd prompt window on my PC but i couldnt find the ROM zip file anywhere in /mnt/sdcard/.
Am i doing something wrong here?
Btw i'm using an SGS2 GT-i9100 with CM9 - 20120722 nightly (CWM version 6.0.1.0)
Click to expand...
Click to collapse
And you are sure USB debugging is enabled on your phone? No need to do any kind of mount for ADB push command to work.
fxrb said:
And you are sure USB debugging is enabled on your phone? No need to do any kind of mount for ADB push command to work.
Click to expand...
Click to collapse
Yes USB debugging is turned on. Do i need to be in recovery to do ADB push?
shadowcaster31 said:
Yes USB debugging is turned on. Do i need to be in recovery to do ADB push?
Click to expand...
Click to collapse
No. Just connect the phone and enter ADB devices. Your phone should show up then.
fxrb said:
No. Just connect the phone and enter ADB devices. Your phone should show up then.
Click to expand...
Click to collapse
Great i can use adb devices. But now idea why it doesnt show my device ID correctly.
anyway i tried ADB push like this:
1. put my rom zip in the same folder as adb.exe
2. open cmd
3. type in "adb push ROM.zip /sdcard" (without the quotes)
4. i get error "failed to copy to 'ROM.zip' to '/sdcard': Is a directory"
Any idea how do i copy something into my /sdcard path?
edit: okay nvm i solved it. forgot another / after /sdcard.

[Q] Remove annoying CDROM mounts?

I tried to search but didn't see anything here. I remember having this issue on another phone but forgot how to fix (not an issue with my Nexus or S3). So anyone figured out how to stop the annoying images from mounting everytime I plug in USB?
I believe you need to remove the CD.iso file.
Once I get my DNA I'll make a bloat free ROM with that and vol wake fixed.
Sent from my ADR6425LVW using xda app-developers app
they are in the \etc folder labled cdrom.iso and PCTool.iso
crackeyes said:
they are in the \etc folder labled cdrom.iso and PCTool.iso
Click to expand...
Click to collapse
Yup, delete those and no more annoying pop-ups.
Sorry to hijack a topic, but I didn't want to create another forum for the same question.
But, how can this be made possible? Do we have to wait for S-Off? (Still kind of new to this whole thing)
I have tried deleting the .ISO files through Root Explorer, no avail.
I tried to use Rexdog's De-Bloating Mod modified slightly to indicate a deletion of the two .ISO files. (I left everything the same except for the "/META-INF/com/google/android/updater-script" File.)
I modified that single file to say this,
Code:
ui_print("Removing Bloatware");
run_program("/sbin/mount", "/dev/block/mmcblk0p32", "/etc");
package_extract_dir("etc", "/etc");
show_progress(1, 15);
delete("/etc/CDROM.ISO", "/etc/PCTOOL.ISO");
ui_print("Unmounting Filesystems . . .");
unmount("/etc");
ui_print("Finished");
I was going off on a whim by editing the single file and hoping that it would work, but it doesn't appear to have worked. Is there something I was missing, or something else?
BigRed35m said:
Sorry to hijack a topic, but I didn't want to create another forum for the same question.
But, how can this be made possible? Do we have to wait for S-Off? (Still kind of new to this whole thing)
I have tried deleting the .ISO files through Root Explorer, no avail.
I tried to use Rexdog's De-Bloating Mod modified slightly to indicate a deletion of the two .ISO files. (I left everything the same except for the "/META-INF/com/google/android/updater-script" File.)
I modified that single file to say this,
Code:
ui_print("Removing Bloatware");
run_program("/sbin/mount", "/dev/block/mmcblk0p32", "/etc");
package_extract_dir("etc", "/etc");
show_progress(1, 15);
delete("/etc/CDROM.ISO", "/etc/PCTOOL.ISO");
ui_print("Unmounting Filesystems . . .");
unmount("/etc");
ui_print("Finished");
I was going off on a whim by editing the single file and hoping that it would work, but it doesn't appear to have worked. Is there something I was missing, or something else?
Click to expand...
Click to collapse
try to make the .iso in lowercase. That is the way it showed up on mine,
BigRed35m said:
I have tried deleting the .ISO files through Root Explorer, no avail.
Click to expand...
Click to collapse
I just deleted those 2 files through root explorer, and plugged in usb to pc. no more pop-ups.
jasonpascoe said:
I just deleted those 2 files through root explorer, and plugged in usb to pc. no more pop-ups.
Click to expand...
Click to collapse
That's only going to work until you reboot. /system is write protected. You have to go onto recovery mount /sys as writeable and use adb to delete the 2 files.
str8upx said:
That's only going to work until you reboot. /system is write protected. You have to go onto recovery mount /sys as writeable and use adb to delete the 2 files.
Click to expand...
Click to collapse
You are indeed knowledgable. You don't happen to know a place where i can fnd instruction on how to do that, would you? (for a noob?)
BigRed35m said:
You are indeed knowledgable. You don't happen to know a place where i can fnd instruction on how to do that, would you? (for a noob?)
Click to expand...
Click to collapse
Make sure you install the htc drivers (htc sync is not required) which is the first option when you plug in your phone to the pc.
Assuming you have usb debugging enabled and downloaded the android sdk http://developer.android.com/sdk/index.html#win-bundle and extracted the zip.
Navigate to the platform-tools folder inside /adt-bundle-windows-x86_64/sdk/platform-tools/
In an empty space inside that folder hold down shift and right click, then select open command window here.
Now in the command window type:
adb devices (your devices serial # should be displayed)
adb reboot recovery
On the phone select: mounts and storage, then: mount /system
Now in the command window type each of the following:
adb pull /system/etc/CDROM.ISO
adb pull /system/etc/PCTOOL.ISO
adb remount
adb shell
rm /system/etc/CDROM.ISO
rm /system/etc/PCTOOL.ISO
exit
adb reboot
You have now made copies of both of these files on to your pc and removed them from your phone.
To restore these files open a command window and mount /sys in recovery as shown above then:
adb push CDROM.ISO /system/etc
adb push PCTOOL.ISO /system/etc

Root folder

Hey guys,
I am trying to get the the "up-most" folder of my HTC Droid DNA. On the phone itself I can get to a folder titled "/" which I'm assuming is the root folder of the phone. I want to get into the "/data" partition on my PC to try to fix a game file that is loading incorrectly. But when I plug the phone into my PC all I can see is the internal storage folder. I tried to enable hidden folders as well but no such luck. Any ideas?
Thanks in advanced!
Swannyman17 said:
Hey guys,
I am trying to get the the "up-most" folder of my HTC Droid DNA. On the phone itself I can get to a folder titled "/" which I'm assuming is the root folder of the phone. I want to get into the "/data" partition on my PC to try to fix a game file that is loading incorrectly. But when I plug the phone into my PC all I can see is the internal storage folder. I tried to enable hidden folders as well but no such luck. Any ideas?
Thanks in advanced!
Click to expand...
Click to collapse
You need to ADB pull it and do what you need to change and then ADB push it. However I would do only the folder like /data/Game-O-Pornstar or /data/com.your_game_name
So an example if I wanted to pull the /data/data folder I would run the command (go to android-sdk on your computer where you unlocked your phone and find platform tools or the folder that adb.exe is inside of. Hold shift, right click, choose "open command window here")
Assume first I made a new folder in platform tools and named it calculator.
"adb pull /data/data/com.android.calculator2 > C:\Android SDK\platform-tools\calculator"
It would put the contents of the com.android.calculator2 directory (folder) into my new folder that I created and called calculator. Then when I'm finished I would do the opposite to push it back
I was just trying to put the directions into more common language but here's the link to actually get the commands
http://developer.android.com/tools/help/adb.html
There's an app called Droid Explorer for the PC that will do this with an interface but the program will often wreak havoc on your adb and fastboot drivers and services.
Swannyman17 said:
Hey guys,
I am trying to get the the "up-most" folder of my HTC Droid DNA. On the phone itself I can get to a folder titled "/" which I'm assuming is the root folder of the phone. I want to get into the "/data" partition on my PC to try to fix a game file that is loading incorrectly. But when I plug the phone into my PC all I can see is the internal storage folder. I tried to enable hidden folders as well but no such luck. Any ideas?
Thanks in advanced!
Click to expand...
Click to collapse
Androidcommander
Thanks man. Ill give it a try.
Sent from my HTC6435LVW using xda app-developers app

Categories

Resources