Accessing apk files - Captivate Themes and Apps

Thank you in advance, this is a great community.
I am running cognition 3.04 and making my first attempt at transparent widgets. However, I am uncertain if I am properly set up to access and reinstall apk files. I can find them on my phone using the file explorer in Andriod Mate. However, it appears that when I plug my phone into the usb or use any other file exploring software, the base directory is /mnt/sdcard/ . I feel that I am missing a critical component of this process, as I do not have ready access to the files I need to alter and eventually replace.
Thank you again,
Dez

Dezdemona said:
Thank you in advance, this is a great community.
I am running cognition 3.04 and making my first attempt at transparent widgets. However, I am uncertain if I am properly set up to access and reinstall apk files. I can find them on my phone using the file explorer in Andriod Mate. However, it appears that when I plug my phone into the usb or use any other file exploring software, the base directory is /mnt/sdcard/ . I feel that I am missing a critical component of this process, as I do not have ready access to the files I need to alter and eventually replace.
Thank you again,
Dez
Click to expand...
Click to collapse
You would need to copy them from ur /system/app folder to some folder on ur sdcard to see them on computer.
Below is the file system layout.
/ (root)
/system
/system/app
/...
/...
/...
/sdcard
/sdcard/...
/sdcard/...
/sdcard/...
/sdcard/external_sd
/sdcard/external_sd/...
/sdcard/external_sd/...
/sdcard/external_sd/...
When u connect to computer, it mounts only the internal and external sd cards. It does not mount the system areas like system, data, etc.

Related

[Q] Clarification on "push to..."

I've read many times around the forum that apps can be installed by pushing them to the correct directories, but I'm not quite sure how to do that. When my phone is connected to my PC, I can only view the /sdcard directory. In ES File Explorer I can view the other directories but I'm looking for some clarification on how to proceed with pushing apps
pushing means to move the app / file directly to the place it should be, instead of letting the phone do it.
example: if you have an app that will not install, you use a app such as root explorer (many others out there too) and you get that app, move it to /system /app and there ya go, the app is in its right place.
the same goes for files, and other things, there are lots and lots of folders / subfolders, and sometimes this method is the only way. its fairly simple.
i hope i cleared that up for ya ???
azzledazzle said:
pushing means to move the app / file directly to the place it should be, instead of letting the phone do it.
example: if you have an app that will not install, you use a app such as root explorer (many others out there too) and you get that app, move it to /system /app and there ya go, the app is in its right place.
the same goes for files, and other things, there are lots and lots of folders / subfolders, and sometimes this method is the only way. its fairly simple.
i hope i cleared that up for ya ???
Click to expand...
Click to collapse
OK I think you have
I can put the app on my SDcard...then using ES File Explorer, I can copy the file, move to the directory I want, and paste the file. If I do this with an app, will it require installing, or will simply putting it in the proper directory allow me to run it ?
Thanks !
it will not need installing this is the beauty of it. Pushing it, you are putting it where it belongs - manually, hence the saying 'manually push through file explorer'
but once you have put the desired app / file in its correct place, its advised to reboot instantly, other wise it may not show up.
oh and finally, to do such things the system (phone) must be mounted as RW
azzledazzle said:
it will not need installing this is the beauty of it. Pushing it, you are putting it where it belongs - manually, hence the saying 'manually push through file explorer'
but once you have put the desired app / file in its correct place, its advised to reboot instantly, other wise it may not show up.
oh and finally, to do such things the system (phone) must be mounted as RW
Click to expand...
Click to collapse
Thanks for your help AzzleDazzle! Can I mount as RW through ES file explorer, or is it advised to do so through the ADB with standard linux chmod commands?
no you dont need to go through so much hassle.
im not sure if there is an option in file explorer for RW but there is with root explorer
you can also download sgs tools this can mount RW too, and even most kernels have this feature too

[Q] [AOKP] Cannot access root files to install boot animation

So, I've rooted my captivate and have installed build 32 of aokp.
I'm trying to install a custom boot animation. However i cannot access /system/media from my computer and when i try to copy and paste the .zip from the sdcard, file manager won't let me. /data/local does not exist.
I should mention i'm running blue infinium.
Any help? I'm pretty sure i'm being stupid but i've tried everything i can think of and read a bunch of threads.
Thanks in advance,
JSP
jsb_front said:
So, I've rooted my captivate and have installed build 32 of aokp.
I'm trying to install a custom boot animation. However i cannot access /system/media from my computer and when i try to copy and paste the .zip from the sdcard, file manager won't let me. /data/local does not exist.
I should mention i'm running blue infinium.
Any help? I'm pretty sure i'm being stupid but i've tried everything i can think of and read a bunch of threads.
Thanks in advance,
JSP
Click to expand...
Click to collapse
Unless I'm mistaken, you actually want to put your boot animation in /system/media.
And if you have ADB installed, you can just reboot to recovery, hook up the USB cable, put your bootanimation.zip into the /platform-tools folder where ADB resides, and issue this command:
adb push bootanimation.zip /system/media/bootanimation.zip
If you don't have ADB, you'll need to get a root-level file manager (ES File Explorer, Root Explorer, etc) to move the file.
Noob mode activated:
I'm assuming ADB is an app, and the code i'm supposed to enter is entered on the phone through a terminal program?
Otherwise thanks, makes sense. Anyway to access /system files through windows explorer?
Thanks again
*EDIT* Also, thats what i've been trying to do with the file manager. But when the file is selected/cut/copied, i cannot access the root files. I have tried several different root file systems.
jsb_front said:
Noob mode activated:
I'm assuming ADB is an app, and the code i'm supposed to enter is entered on the phone through a terminal program?
Otherwise thanks, makes sense. Anyway to access /system files through windows explorer?
Thanks again
Click to expand...
Click to collapse
ADB is on the computer, you run it in terminal or command prompt. There isn't a way to access /system through windows explorer
Sent from my CM9 ICS i897 Captivate
korockinout13 said:
ADB is on the computer, you run it in terminal or command prompt. There isn't a way to access /system through windows explorer
Sent from my CM9 ICS i897 Captivate
Click to expand...
Click to collapse
Alright, thank you. Also, does terminal=cmd? I understand terminal can be on the phone, but i always thought, on windows anyway, that terminal is synonymous with command prompt.
Thank you all for the help
jsb_front said:
Noob mode activated:
I'm assuming ADB is an app, and the code i'm supposed to enter is entered on the phone through a terminal program?
Otherwise thanks, makes sense. Anyway to access /system files through windows explorer?
Thanks again
*EDIT* Also, thats what i've been trying to do with the file manager. But when the file is selected/cut/copied, i cannot access the root files. I have tried several different root file systems.
Click to expand...
Click to collapse
ADB is Android Debug Bridge - it's part of the Android SDK that you have to download and install from Google. It's a pretty handy tool to have.
As korockinout13 pointed out, no dice with the Windows Explorer seeing the root files, and terminal does equal cmd/command prompt.
With the explorer app on your phone, you'll have to look around and find a setting that will tell Android to mount your /system folder as read-write. I believe in Root Explorer there's a button near the top that switches read-only and read-write.
Looked around on explorer and couldn't find the setting. Root explorer costs 4$ and I've tried a couple others. All giving me the read only memory error. I'll just have to wait till I get home to do it over adb. Thanks for all the help.
root access wont let you "see" your root folders when you mount your phone as SD card.
adb is one of many options.
copy to sdcard, then use a root level manager to move
wait!! there was this on the portal today.... Quick ADB Pusher.. adb file pusher GUI
http://www.xda-developers.com/android/push-files-to-your-device-with-quick-adb-pusher/
Got it to work with Ghost Commander. There's an option to remount files as ro/rw.
Works great. Thanks for your help!
That bootanimation is screwed up - it's not zip, files are stored. It took me a while to figure it out.

Transfer system files to external SD card?

My motherboard is toast, I bought a broken phone on ebay and switched out the motherboards but it isnt working. Phone works fine but wont recognize sim card or connect to network. Its just a camera/wifi device atm. So anyway..... I can still get the old motherboard to kinda work enough to play with it, the home buttons dont work or the power button and sometimes freezes up. Is there a way I can put the old motherboard in the phone and copy the system files to the external sd card or computer, then wipe the new motherboard and copy the files from the old mb to the new mb? I believe I have tried everything else but if anyone has any suggestions Im all ears
Thanks!
The easiest way would probably be to take the motherboard you're wanting to pull stuff from, hook it up (in the phone), and via USB in ADB do something like this:
adb pull / \backup
That would create a folder at the top level of your C: drive with all the contents of the phone on it. You could then move all of that to the new motherboard.
(That would probably be something like:
adb push \backup /
but I'm not 100% sure on that. You may have to do a more one-by-one procedure.)
when I try to push the backup I get this message....
failed to copy '\backup/acct/uid/0/task' to 'acct/uid/0/task' : Operation not permitted
Sooooo what did I do wrong??
Also I couldnt find where it saved the backup on my computer.
Ok, found the backup folder on my c: drive but what do I do with it now?
Bump cause I still havent figured this out Seems like I dont have the correct permissions in adb.
poprocksncoke said:
when I try to push the backup I get this message....
failed to copy '\backup/acct/uid/0/task' to 'acct/uid/0/task' : Operation not permitted
Sooooo what did I do wrong??
Also I couldnt find where it saved the backup on my computer.
Ok, found the backup folder on my c: drive but what do I do with it now?
Click to expand...
Click to collapse
If you typed in your backup like what you wrote above (\backup/acct/uid/0/task), it's likely that you're running into an error because you flipped your slashes midway through.
The backup folder needs to be in the platform-tools folder of the ADB installation, as that's where ADB pushes from.
Once you have that, reboot into recovery mode. This may not be 100% necessary, but I usually find that pushes work better from there as the file system is (usually) read-write.
Then, try this:
adb push \backup /
(You may have to switch the slash before the word backup so it reads /backup, I'm not 100% sure.)
If that doesn't work, drag an individual folder out of the backup folder to the main platform-tools folder and type:
adb push /acct \
You'll have to repeat that for each folder, but it should work.
If all that fails, you can try to make a CWM flashable zip file. I don't know exactly what the procedure is for doing this, but I would guess that the answer exists somewhere on this site.
jmtheiss said:
If you typed in your backup like what you wrote above (\backup/acct/uid/0/task), it's likely that you're running into an error because you flipped your slashes midway through.
The backup folder needs to be in the platform-tools folder of the ADB installation, as that's where ADB pushes from.
Once you have that, reboot into recovery mode. This may not be 100% necessary, but I usually find that pushes work better from there as the file system is (usually) read-write.
Then, try this:
adb push \backup /
(You may have to switch the slash before the word backup so it reads /backup, I'm not 100% sure.)
If that doesn't work, drag an individual folder out of the backup folder to the main platform-tools folder and type:
adb push /acct \
You'll have to repeat that for each folder, but it should work.
If all that fails, you can try to make a CWM flashable zip file. I don't know exactly what the procedure is for doing this, but I would guess that the answer exists somewhere on this site.
Click to expand...
Click to collapse
Actually what I typed was adb push \backup / then it gave me that error. It stored the backup folder on my c: drive, I will move it to the tools folder and see if that works. Going to go search on how to make a CWM flashable zip file now. Maybe i'll give that a shot too. Thanks for your help.
So If I am getting this correctly, I take the custom ROM I have flashed to my phone and then I can add my system files to to the system folder in the ROM I can then flash the ROM again and it will install all my files?
In theory, yes, that should work. All the CWM update file does is write the files inside of it to the folders that the updater-script file tells it to.
Again, this should work IN THEORY.
poprocksncoke said:
So If I am getting this correctly, I take the custom ROM I have flashed to my phone and then I can add my system files to to the system folder in the ROM I can then flash the ROM again and it will install all my files?
Click to expand...
Click to collapse
Ok, I tried this and put the .zip on my sdcard and ran it from recovery. Got an error that I didnt have enough space. Any suggestions?

[Q] Unable to transfer files to/from usb stick

Hi,
I've upgraded my galaxy note to ICS. After upgrade I'm unable to transfer files from/to usb-stick(using usb-connector). I used to(before ICS) transfer files from/to usbstick, but after upgrade it is not working. Any solution?
When I connnect USB stick to galaxy note, I can see the contents of the stick. I can even select files to get copied, but when I go to destination directory, "Paste here" button is disabled.
FYI, "USB debugging" option is disabled.
Do you have write permission on the destination directory and is it mounted as read/write?
syncopath said:
Do you have write permission on the destination directory and is it mounted as read/write?
Click to expand...
Click to collapse
Thanks for the quick reply. How do I check whether the usb-storage device is mounted in read or write mode?
syncopath said:
Do you have write permission on the destination directory and is it mounted as read/write?
Click to expand...
Click to collapse
Seem it is mounted read/write as I could create directories on the usb device. but copy of files is not working.
try it using es file explorer
nkommuri said:
Seem it is mounted read/write as I could create directories on the usb device. but copy of files is not working.
Click to expand...
Click to collapse
I mean the destination directory needs to be mounted as read/write. What tool are you using to view your files? Although I don't have it myself (I use the Linux prompt) I understand that Root Explorer has a remount function.
nkommuri said:
Seem it is mounted read/write as I could create directories on the usb device. but copy of files is not working.
Click to expand...
Click to collapse
by the look of the above post hes trying to copy files from phone to USB external
Oh I see, sorry. Could it be an issue with not being root on the Note and therefore no write permission on the USB stick?
r u sure that to copy files from phone to usb drive requires root ? i dont know for what it would need root
Yes, I'm trying to copy files from phone to usb drive. It used to work before ICS upgrade with out root.
Thanks for your replies. "ES File Explorer" solved my problem. Now I can transfer files from phone to usb-device using usb-connector. Thanks a lot.
nkommuri said:
Thanks for your replies. "ES File Explorer" solved my problem. Now I can transfer files from phone to usb-device using usb-connector. Thanks a lot.
Click to expand...
Click to collapse
Had the same problem. File explorer fixed it.
Thanks!

[GUIDE][Windows] Making backups with adb

NOTE: The Nexus 4 does not have a physical sd card. However, the user directory on the phone is located at /storage/sdcard0/ and will, for the purposes of this guide, be referred to as the sdcard.
Click to expand...
Click to collapse
Making sdcard backups with MTP is often unreliable. First of all, files are not always immediately updated with the ones on your phone. As a result, there may be folders missing, files that you deleted on your phone still showing up, etc. Also, the Date modified values of files are changed to the time that the files were moved onto your computer, which can cause errors when restoring them to your phone; i.e. photos in gallery not appearing in order. Other times, MTP is simply not available (if you have an older computer or an unsupported OS, for example). The best way to go about a backup is by using adb (Android Debug Bridge).
So, let's get started.
1. First, you're going to need some variant of the Android SDK/Software Development Kit as well as the Nexus 4 drivers installed. I won't show you how to do this, as there are already many guides and tutorials available.
Here's the link to the official Google ADT/Android Developer Tools.
2. Once you've got everything on your computer set up, open up the Settings app and go to About phone. Scroll down and quickly tap the Build number tile seven times. You have now enabled Developer options.
Go back, enter Developer options and enable USB debugging. An authorization pop-up will appear; allow it.
3. Now, open up a command prompt window and change directory to the location of adb on your computer. If you installed the official SDK, this will be under
Code:
folderyouextractedto\sdk\platform-tools
Connect your phone via USB and type
Code:
adb devices
You should see something like this:
Code:
List of devices attached
random numbers and letters device
If you don't, you probably don't have the drivers installed properly OR you failed to authorize your computer for USB debugging.
4. Make a folder on C:\ (or whatever your OS drive is) with NO SPACES in the file name. You can now make the backup.
Type
Code:
adb pull /storage/sdcard0/ C:\folderyoumade
You are now backing up your entire sdcard. This can take a while, depending on how many files you have on your phone.
When the copy is complete, you should see something like
Code:
x files pulled. 0 files skipped.
0 files skipped is very important, as it confirms that all of the files were copied over correctly.
To backup specific folders on it, simply change the command to that directory on your phone.
i.e.
Code:
adb pull /storage/sdcard0/folderyouwant/ C:\folderyoumade
5. To restore a backup, simply type
Code:
adb push C:\folderyoumade /storage/sdcard0/
NOTE: Restored folders DO NOT replace existing folders on your sdcard. They are merged (so pre-existing files in a folder remain, while any new files are copied in).
Click to expand...
Click to collapse
NOTE: I recommend that you do not use your phone during a backup or restore so as to make sure all files are properly copied.
Click to expand...
Click to collapse
Remember, this is only an sdcard backup. App and system data are NOT copied over. If you want to make a backup of your app data, the easiest way to do this is with Titanium Backup, Helium, or a similar app and then backup those files using adb pull. If you wish to make a complete backup of your file system (not including sdcard though), make a nandroid from recovery.
Reserved
klvnhng said:
Reserved
Click to expand...
Click to collapse
Good method if MTP failes or crashes! Thanks!
Thanks!
I get remote object '/storage/sdcard0' not a file or directory when I try pull. Help?:crying:
nphone said:
I get remote object '/storage/sdcard0' not a file or directory when I try pull. Help?:crying:
Click to expand...
Click to collapse
You forgot the frontslash at the end of 0. Try that
On some devices you can't specify destiny forlder in order to use adb push or pull, you have to use current folder:
Code:
cd C:\folderyoumade
adb pull /storage/sdcard0/folderyouwant/
It's better to backup the sdcard this way than using adb backup because it also backups the Android folder inside the sdcard.
Or much shorter;
adb pull /sdcard C:\SDCARDBackUp
__________________________________________________
Device: Google Nexus 4 (LG-E960) 16GB (MAKO)
ROM: SimpleAOSP-L-ROM (Stable Build 7)
Kernel: Stuxnet v4.5 (3.4.105)
Gapps: PA-Gapps-5.0.1-BETA4 (MINI)
_________________________________________________
Is there a way for pull to skip files which already exist in your specified destination? Sometimes it errors in the middle of a long transfer because it doesn't like a file name or something.
I was looking for a better way to push my virtual sd card backup, as using the copy and paste method in windows doesn't copy all of the files for some reason. It will copy all the files from the sd card to the PC, but not back again. I was having to search through every folder and copy and paste to get everything copied back. Thank you so much for this tutorial. I knew about adb push command, but I never tried it, because I always thought the copy and paste method would be easier. Boy was I wrong. This way pushes all the files in one try. Soooo much easier.
I have a question, can I also backup this file directory: /storage/emulated/0? Or is this something else, I checked both folder and they seem to be the same.
Hi,
I've done a full backup using adb backup, including the whole content of my sd card (using the -shared option).
However, when restoring my device using adb restore, nothing is restored on my sd card (not the apps and not the files).
Am I doing something wrong?
Is there any special option to use for the restore?
Is there any other way to restore my apps&data from my backup file (.ab) using other commands ?
The content of my backup file seems correct though.
Thanks!
NikoBe00 said:
Hi,
I've done a full backup using adb backup, including the whole content of my sd card (using the -shared option).
However, when restoring my device using adb restore, nothing is restored on my sd card (not the apps and not the files).
Am I doing something wrong?
Is there any special option to use for the restore?
Is there any other way to restore my apps&data from my backup file (.ab) using other commands ?
The content of my backup file seems correct though.
Thanks!
Click to expand...
Click to collapse
Sounds like the adb backup didnt copy the /storage/sdcard0/android/ folder on the sdcard perhaps? Maybe try using adb pull to copy the scdard seperately in addition to doing the adb backup to be safe. You could push the sdcard data back manually if the restore doesnt. See below:
scandiun said:
On some devices you can't specify destiny forlder in order to use adb push or pull, you have to use current folder:
Code:
cd C:\folderyoumade
adb pull /storage/sdcard0/folderyouwant/
It's better to backup the sdcard this way than using adb backup because it also backups the Android folder inside the sdcard.
!
Click to expand...
Click to collapse
it doesnt work
Why?
klvnhng said:
You forgot the frontslash at the end of 0. Try that
Click to expand...
Click to collapse
I font understand why is the front slash required?
I also forgot the front slash and was facing the same problem. Now its working after adding the front slash.
So, why is the front slash required and what does it mean ?
can I backup the sd card even if it is external using this method (apps are moved there too)?
edit: ok, I got the android folder from sd card, the message was:
/storage/sdcard1/Android/: 147 files pulled. 0 files skipped.,
but how am I supposed to see them?
I contacted AppMgr III, maybe they can tell me

Categories

Resources