How to copy file to phone directory? - XPERIA X10 Themes and Apps

Dear all members,
I have tried many file explorers like Astro & EStrong but there is no way I can copy file to the phone system directory.
I understand that I will need to modify the permission so that I can copy file to the file system but how do I do that?
I really appreciate your kind advice, thanks.

A possible workaround if it is a contact list is that you on your computer could try to import the phone directory to Google Contacts and sync it over to your phone.

Ludolf71 said:
A possible workaround if it is a contact list is that you on your computer could try to import the phone directory to Google Contacts and sync it over to your phone.
Click to expand...
Click to collapse
Brother, thanks for your reply.
I was trying to copy the modified version of the YouTube.apk to the phone directory but I cannot do it so checking anyone know to get around it?

chongbh said:
Dear all members,
I have tried many file explorers like Astro & EStrong but there is no way I can copy file to the phone system directory.
I understand that I will need to modify the permission so that I can copy file to the file system but how do I do that?
I really appreciate your kind advice, thanks.
Click to expand...
Click to collapse
Root explorer

No need to move it manually I guess. Mount your SD-card, transfer the file to your phone and download Apps Installer or similar to install the application. If that don't work, you can move files with adb.

thor2002ro said:
you need adb....
and do this...
Code:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push YouTube.apk /sdcard/YouTube.apk
adb shell dd if=/sdcard/YouTube.apk of=/system/app/YouTube.apk
adb shell rm /sdcard/YouTube.apk
adb shell reboot
Click to expand...
Click to collapse
From the other thread you asked in - forum.xda-developers.com

Ludolf71 said:
No need to move it manually I guess. Mount your SD-card, transfer the file to your phone and download Apps Installer or similar to install the application. If that don't work, you can move files with adb.
Click to expand...
Click to collapse
Hi, I try to find adb in the marketplace but cannot find.
Any kind advice from fellow members, thanks.

chongbh said:
Hi, I try to find adb in the marketplace but cannot find.
Any kind advice from fellow members, thanks.
Click to expand...
Click to collapse
I am saying this again in this thread. Root Explorer
also adb is not a application you can download from market. You have to download the android sdk and set up environmental variables.

Is your dev Rooted???
you will need android SDK and follow the directions given above by XperiaX10iUser
to know more about SDK and to download SDK go here

Related

Root Question

I'm currently trying to browse through the files on the G1 and I go into astro and go into the data folder and there should be a hidden folder called app-private right under that folder but I cant see it, is there a special command I should be putting into a terminal emulator or something to see the hidden folders?
Any help is greatly appreciated.
Edit: Forgot to mention that I should have the root access, I did follow all steps in rooting the g1 so that I'd be able to put themes on it.
I dont thing you can see the content of data/app and data/app-private using astro, you can see it once you back it up to your sd
I don't think Astro can do it. You can browse normally via the terminal as root using ls.
derfolo said:
I don't think Astro can do it. You can browse normally via the terminal as root using ls.
Click to expand...
Click to collapse
I'm not familiar with any of the commands so would you be able to tell me which commands to use to browse through folders and copy documents or point me in the dirrection of where to look for those commands?
mappydamouse said:
I'm not familiar with any of the commands so would you be able to tell me which commands to use to browse through folders and copy documents or point me in the dirrection of where to look for those commands?
Click to expand...
Click to collapse
search for linux commands:
ls -l /data
is a good place to start .. but if you're not familiar with the commands i would recommend becoming familiar with file structures first .. you can "ls -l" anything you want
ls -l /data/app
ls -l /data/app-private
just for starters .. other commands are there .. most of what works on linux will work on the G1 .. JF has provided busybox commands as well which further simplify the Terminal
Ok thank you for the help I was using cd and ls to move through and look at files but as I'm more familiar with windows commands and not at all with linux anymore I couldn't figure out the copy and paste commands.
mappydamouse said:
Ok thank you for the help I was using cd and ls to move through and look at files but as I'm more familiar with windows commands and not at all with linux anymore I couldn't figure out the copy and paste commands.
Click to expand...
Click to collapse
in that case .. if you ARE familiar with the file structure and C:\> then try this:
http://www.yolinux.com/TUTORIALS/unix_for_dos_users.html
LucidREM said:
in that case .. if you ARE familiar with the file structure and C:\> then try this:
http://www.yolinux.com/TUTORIALS/unix_for_dos_users.html
Click to expand...
Click to collapse
Sweetness, this helps out a hell of alot, thank you very much.

Backup apps????

Is there a way to save some of my apps before I flash a new ROM? I have a few that I installed while the were free but now they are paid apps or no longer in the market. (Tether apps) I am going to flash one of the Haykuro roms but want to keep these apps to install on the new ROM. Thank for any suggestions!!
Some options:
- Look on the Market for a backup app
- Look for a file manager app and copy the stuff out of /data/app and /data/app-private
- Hook up Dream to a desktop and adb pull it to the computer
- Reboot into recovery and create a nandroid backup
Thanks for the tips, when using the file mgr, when I click on data, nothing is in the file. Am i looking in the wrong area???
jordanjf86 said:
Thanks for the tips, when using the file mgr, when I click on data, nothing is in the file. Am i looking in the wrong area???
Click to expand...
Click to collapse
They're hidden files. You must show hidden files, first.
ivanmmj2 said:
They're hidden files. You must show hidden files, first.
Click to expand...
Click to collapse
No, they're not hidden files. The problem is that /data is a protected directory. The file manager doesn't have permission to access it.
jashsu said:
No, they're not hidden files. The problem is that /data is a protected directory. The file manager doesn't have permission to access it.
Click to expand...
Click to collapse
Is there any way around that?
setuid, but that's insecure and a little bit of a hassle. I'd go the adb pull way.
You could also do it all manually inside the Terminal Emulator. Use su to gain root then cp /data/app/* /sdcard/somewhere
thanks!!!!

new scripts

Please emal me at if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
My version of appstosd
There will be a folder in your sdcard called apps(MK47) and it has all your app from the market(free and also paid). This is good for when you wipe your Dream.
here is the scripts.
Might want to update your OP with the attachment and bold the commands so its easier to read Nice work
mohsinkhan47 said:
Please emal me at [email protected] if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
Click to expand...
Click to collapse
this can come in handy for the hero roms if u use the facebook feature quite often under the people app. i know i tend to show people certain pics of me or friends and it just eats up internal memory. all i do is clear the cache but if i can use this script to do so it'd save me that lil bit of hassle i have to go thru myself, appreciate the script, just curious tho... anyone know where to find where the albums cache is stored? i kno how to brose thru folders but i much rather have somebody that KNOWS rather than me THINKING i know... lol thanks in advance.
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
cx92001 said:
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
Click to expand...
Click to collapse
I won't be on a computer until Saturday so gtalk to me at
[email protected] invte me and I will give u the app2sd
I can't reach the clutch..
Hi,
I've been looking for a shell search tool for my SE Xperia X10 Android 1.6 phone to search the file system, and this has been the only resource I have found thus far. I have managed to download and copy the scripts to my Android device, but I am unsure on how to execute the .asc scripts on the Android shell.
I was unable to adb push the file to \system\bin. I pushed the file to \data but even mounting the system volume as RW I am unable to mv the scripts to the \system\bin folder.
adb shell
$ su
# mount -o remount,rw /dev/mtdblock3 /system
# mv /data/searh.asc /system/bin
mv /data/searh.asc /system/bin
failed on '/data/searh.asc' - Cross-device link
I tried running the chmod 755 search.asc command anyway, and execute it using ./search.asc, but receive the message:
basename: not found
getopt: not found
[: not found
shift: can't shift that many
Edit: I have now tried this in recovery mode and mounting the /system folder with RW permissions, still no joy.
Could someone please clarify what is required to get these scripts to operate?
I have only dabbled in linux so I am most likely missing something fundamentally obvious here.
Temp-n00b-usr
I managed to find a work around.
I was attempting to locate the Creatouch.apk which was not in /system/app or /data/app. It was infact in /data/app-private. I have manged to pull the .apk for a backup and removed this from the phone now.
I just used the file explorer in Droid Screencast to locate the file by browsing the system.
It would still be handy to be able to search the file system from a PC environment however.

How do i add apk to custom rom?

Hi,
I have a few apps and would like to add into custom rom. I read and google but no help.
Using winrar and open custom rom, i create a folder /data/app and place all apk in "app" folder. non of the apps in that folder installed. Do i need to do more then just add the apk?
I read here http://forum.xda-developers.com/showthread.php?t=1198035 and no use. maybe OP not don't with the guide yet.
thx
cat2115 said:
Hi,
I have a few apps and would like to add into custom rom. I read and google but no help.
Using winrar and open custom rom, i create a folder /data/app and place all apk in "app" folder. non of the apps in that folder installed. Do i need to do more then just add the apk?
I read here http://forum.xda-developers.com/showthread.php?t=1198035 and no use. maybe OP not don't with the guide yet.
thx
Click to expand...
Click to collapse
Reread that thread. The answer is in there.
Hint: ROM flash packages never put anything in /data
you can preinstall apps to /data/app but it takes update script modding. if you havent figured it out it is a lot easier to add them as system apps in /system/app
@Dani897: I try adding apk to /system/app or /data/app but none are working. When I add apk to /system/app; after the rom flashed and reboot, Samsung kept on flashing forever.
cat2115 said:
@Dani897: I try adding apk to /system/app or /data/app but none are working. When I add apk to /system/app; after the rom flashed and reboot, Samsung kept on flashing forever.
Click to expand...
Click to collapse
check your permissions!
the data/app way need adition work in the update script. im not gonna get into that.
Dani897 said:
check your permissions!
the data/app way need adition work in the update script. im not gonna get into that.
Click to expand...
Click to collapse
Thanks. How do i check permission? in CWM? In cwm (red) v2.5.1.3 -->Install zip from sdcard --> toggle signature verification-->disable'
In advance, all i see is fix permissions.
cat2115 said:
Thanks. How do i check permission? in CWM? In cwm (red) v2.5.1.3 -->Install zip from sdcard --> toggle signature verification-->disable'
In advance, all i see is fix permissions.
Click to expand...
Click to collapse
no in a terminal emulator or in linux. they get screwy sometimes if you do editing in windows. i cant even seem to get ownership of one of my flash drives on my linux machine after i formatted it with windows.
if you are on a mac you can do it by clicking and choosing "get info" from the context menu apparently but i dont own a mac so i dont know.
i never used it but check out cygwin and do some googling on permissions in terminal/console. it might be best if you are not ready to install a new os. but you can also install ubuntu with the wubi installer inside windows of use a vm with osx or the linux distro of your choice pretty easily. please dont ask for support questions on doing those things.
you can find permissions of files in a directory with ls -l
you can change them with chmod an ususally one of the numbers below but there are others, google is your friend
666 is rw-rw-rw
644 is rw-r--r-
777 is rwxrwxrwx
755 is rwxr-xr-x
644 or 755 are the most likely that they should be.

[Q] Blur Camera won't install

Alright so here's my problem: After rooting my phone, I started to play around with a couple of camera apps from different ROMs such as MIUI. Me being an idiot though, deleted the stock Blur camera Apk. Using a system dump of the Atrix, 2 I tried to reinstall it, by placing it in system/app. For some reason. It wouldn't install (show up on my app directory). Anybody have any idea as to why this is happening? Any help would be greatly appreciated, because I really need a camera app.that's supports 1080p video. Thanks in advance!!!
farshad525hou said:
Alright so here's my problem: After rooting my phone, I started to play around with a couple of camera apps from different ROMs such as MIUI. Me being an idiot though, deleted the stock Blur camera Apk. Using a system dump of the Atrix, 2 I tried to reinstall it, by placing it in system/app. For some reason. It wouldn't install (show up on my app directory). Anybody have any idea as to why this is happening? Any help would be greatly appreciated, because I really need a camera app.that's supports 1080p video. Thanks in advance!!!
Click to expand...
Click to collapse
Push the sick app via adb. I read somewhere that with apps such as root explorer it doesn't work for some reason. Hope this helps.
Sent from my MB865 using Tapatalk
Yes, always use adb to push system apps. Root Explorer will not work.
Sent from my mAtrix2!!
For some reason i get permission denied whenever i try to push through adb. How do i get around this?
farshad525hou said:
For some reason i get permission denied whenever i try to push through adb. How do i get around this?
Click to expand...
Click to collapse
To copy anything to /system/app, you need root access.
This will be a 2 step process.
1) push the file from your computer to your phone in a directory that the shell has access to, i.e. /data/local for instance.
2) adb shell into the phone and su, remount /system as rw, then cp the file from /data/local/ to /system/bin
That should elimiate the issue with permission denied, with adb push.
jimbridgman said:
To copy anything to /system/app, you need root access, have you rooted the phone?
If you have rooted the phone, this will be a 2 step process.
1) push the file from your computer to your phone in a directory that the shell has access to, i.e. /data/local for instance.
2) adb shell into the phone and su, remount /system as rw, then cp the file from /data/local/ to /system/bin
That should elimiate the issue with permission denied, with adb push.
Click to expand...
Click to collapse
Yes my phone is rooted. How do I remount /system as rw? Then how do i cp the file? Thanks for your help!
I figured out how to push the file with adb, but the app still does not show up. Any other ideas?
farshad525hou said:
Yes my phone is rooted. How do I remount /system as rw? Then how do i cp the file? Thanks for your help!
Click to expand...
Click to collapse
Ok, run EVERYTHING between Code:, and End code from the command line. Just make sure you are in the directory you saved your backup camera.apk to, from your windows command prompt, before you run the commands below.
Code:
adb push BlurCamera.apk /data/local
adb shell
su
mount -o remount, rw /system
cd /data/local
cp BlurCamera.apk /system/app
chown root /system/app/BlurCamera.apk
chgrp root /system/app/BlurCamera.apk
chmod 644 /system/app/BlurCamera.apk
mount -o remount, ro /system
exit
exit
End code
That should hopefully fix it.
jimbridgman said:
Ok, run EVERYTHING between Code:, and End code from the command line. Just make sure you are in the directory you saved your backup camera.apk to, from your windows command prompt, before you run the commands below.
Code:
adb push BlurCamera.apk /data/local
adb shell
su
mount -o remount, rw /system
cd /data/local
cp BlurCamera.apk /system/app
chown root /system/app/BlurCamera.apk
chgrp root /system/app/BlurCamera.apk
chmod 644 /system/app/BlurCamera.apk
mount -o remount, ro /system
exit
exit
End code
That should hopefully fix it.
Click to expand...
Click to collapse
Sadly this didn't work either. I don't know what I'm doing wrong. Btw, thanks for your help so far!
Quick question....is the blurcamera.odex file still in the system/app. If you have deleted it also you will have to replace it as well.
JRW 28 said:
Quick question....is the blurcamera.odex file still in the system/app. If you have deleted it also you will have to replace it as well.
Click to expand...
Click to collapse
I could only find a deodexed system dump
Here ya go, zip has both camera.apk and odex. Try using file explorer again and make sure it is r/w . Hope it helps
http://db.tt/v0FQKpKr
JRW 28 said:
Here ya go, zip has both camera.apk and odex. Try using file explorer again and make sure it is r/w . Hope it helps
http://db.tt/v0FQKpKr
Click to expand...
Click to collapse
Thanks for the files! But once again sadly the file doesn't appear under my app drawer. I tried using adb and root explorer, with no luck. Is there anything I'm missing? Btw, JRW are those files from the atrix 2?
There both straight off of my phone...that's weird cause I have removed both of them trying out various cameras and never had a problem reinstalling them?
Are you rebooting afterwards?
JRW 28 said:
There both straight off of my phone...that's weird cause I have removed both of them trying out various cameras and never had a problem reinstalling them?
Are you rebooting afterwards?
Click to expand...
Click to collapse
Yeah I am. Can you walk me through what you do when you re install the apps? I am really confused. Is there anything that might be interfering?
Go into file explorer and make sure your system folder is r/w along with both the blurcamera.apk and blurcamera.odex.... then drop both of them into system/app and reboot. Wouldn't think anything else would be interfering?
JRW 28 said:
Go into file explorer and make sure your system folder is r/w along with both the blurcamera.apk and blurcamera.odex.... then drop both of them into system/app and reboot. Wouldn't think anything else would be interfering?
Click to expand...
Click to collapse
How do I make sure that BlurCamera.apk and BlurCamera.odex are both r/w?
Im not sure if it really matters on them but long pressing on either of them in file explorer should bring up the permissions and you can change from there. Do the same on your system folder just to double check that the permissions are correct
JRW 28 said:
Im not sure if it really matters on them but long pressing on either of them in file explorer should bring up the permissions and you can change from there. Do the same on your system folder just to double check that the permissions are correct
Click to expand...
Click to collapse
Yeah still no luck... no idea whats wrong
Try pushing them with ADB .....usually that will take care of it

Categories

Resources