My question is how to copy a file from sdcard to /data/misc/wifi directory? I am working on a configuration tool for wiki supporting wpa enterprise. The configured file wpa_supplicant.conf must be put in / data/misc/wifi in order to work. So how can I move the file from sdcard to there? Is there any function calls to request a superuser access?
Basically I want to know how to get a list or array or any type of data about the files that have been stored in an package specific data section. By this I mean that after using something like:
FileOutputStream fOut = c.openFileOutput(fileName, 0); OutputStreamWriter osw = new OutputStreamWriter(fOut);
How can I get a list of the files saved to the data location of my application where this file and other files or saved so that I can choose which file I wish to read or edit. I've searched and searched for this but have not found anything of use any help will be greatly appreciated.
I can't seem to copy files to the sdcard inserted into the phone. When I try to do this with Windows Explorer, it just hangs there, and the sdcard area of the phone gets really hot. Once I unplug the USB cable Windows Explorer resumes, but the phone is still stuck there and unresponsive to any button/touch screen presses, and the phone remains hot. Copying from the sdcard works.
My application use the SDCard to store data (about 100 Mb of stuff). I would like to delete these file when the application is deleted through the application manager and offer a way to clear the data from there (like the Google Apps does). Any ideas ?
I'm making an Android Java app game (although this question applies to all languages really) and hope to release the first version soon. I'm nervous about how I save data in my game. My problem is that, if in a later update, I decide to store more data or store the same data in a different way, I need to be careful I don't lose or corrupt data for users that upgrade (i.e. I want users to be able to use data created by an old version in the new version, like their high scores from before).For example, say I want to save high scores in version 1.
My app is creating a directory by using File thisDir = getDir("mycustomname", Context.MODE_WORLD_WRITEABLE); It is stored at /data/data/package/app_mycustomname/. I can browse that directory with DDMS or with 'adb shell', of course, it is empty. My App then creates some subdirectories there, and those have subdirectories too, and so on, and creates files in several of those. My app can read all those dirs and files, too. Sometimes I have to take a look at this directory tree, but I cannot browse deep into that tree, neither using DDMS (both inside Eclipse and standalone) nor using the shell. I can see that there is a directory called / data / data / package / app_mycustomname / mysubdirectory and I can even 'cd' into this directory. But when I do a 'ls' there, the directory is reported to be empty, though I'm sure there must be something inside. app_mycoustomname has the permissions drwxrwx-wx app_mycoustomname/mysubdirectory has the permissions drwxrwxrwx. I have the same issue on the emulator and on the ADP1, both running a 1.1 firmware.
It appears as unformatted BUT, I know that the data is still there because the CWM manages to browse files if I get into the menu "install zip from /sdcard1", but it can't see anything if I try a "restore from sdcard1"...
So I have an ubuntu build and I'd like to try to repair the "masterboot" .
I never did this before so I don't really know what I need, SDCard is 32 GB class 10.
When I plug my phone from CWM and enable the mount the SDcard on usb I got this error message : Error mounting: mount: /dev/sdb1: can't read superblock
Here is the result of the "fdisk -l" command :
Code: Disk /dev/sdb: 32.0 GB, 32018268160 bytes 32 heads, 63 sectors/track, 31019 cylinders, total 62535680 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x4d544f4f
Device Boot Start End Blocks Id System /dev/sdb1 2048 62535679 31266816 b W95 FAT32
Which actually looks weird, I thought that my sdcard were ext4 formated, well but I am not 100% sure about that...
Here the result of the command "fsck -y /dev/sdb1"
Code: fsck from util-linux 2.20.1 dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN / Contains a free cluster (2). Assuming EOF. FAT32 root dir starts with a bad cluster!
Has anyone turned off copy protection on their app recently? We're finding that Motorola Backflip users can't see our paid apps, so we'd like to turn off copy protection as it doesn't seem to prevent pirating. But, we're worried that existing users will lose their saved preferences. According to bug 2047, the issue was fixed in November 2009, but according to some discussions, it actually still exists. It'd be great to hear positive or negative examples from anyone who's tried this recently. We're also thinking of putting out a dummy app to test things out and will report back if we do.
In ActionScript development, there are two classes, Bitmap, and BitmapData. Bitmap uses information from BitmapData to create a Bitmap. Is there an equivalent to BitmapData in the android API? I did some digging and BitmapFactory seems to be the closest, however, I'm facing problems with it.
I tried Bitmap bitmap = BitmapFactory.decode Resource(getResources(), R.drawable.buster);
As that was what I was seeing in most of the examples I came across, but it is telling me that the method getResources is undefined. I'm not really sure what is causing this as in another tutorial I did, getResources didn't cause any problems.
I'm not looking to simply draw a bitmap to the screen, I want to copy a section of the bitmap and place it on a new bitmap. In ActionScript, the method is bitmapData.copyPixels(), and I'm looking for a similar method in the Android API. The closest thing I could find was copyPixelsToBuffer(), but I'm not really sure if that does what I think it does.
I bought a hero used and went to hook it up to my work account (my only phone), but I can't talk my boss into paying for a data package and sprint wont split it out. Is there any way to trick sprint into thinking it is just a regular phone so they will connect it and I can just use it with wifi?I tried searching on this topic but didn't find anything.I might not have been searching for the right wording.
While driving across iowa i suddenly lost access to the internet and in my top bar had a large, empty triangle and another triangle w. an ! in the middle of it, telling me i'd lost my data pkg. because. . . (and then it ended). i had no internet access after that for 2 days until i returned home and it came back at exactly the same spot on the interstate where i'd lost it. i was in major metro areas during these 2 days and my wife's incredible always had internet access while i did not.
1- The sdcard is used in vfat filesystem, move simplely /data folder to sdcard will be cause some problems 2- Copy /data to /mnt/sdcard/data will not work completly because we got some error of permission
I tried to copy my wiped data from my phone, so i have to read raw data with dd command. I have root and BusyBox v1.14.2 installed, but when i type: dd if=/dev/block/mtdblock5 of=/sdcard/testfile or even just dd if=/dev/block/mtdblock5 I get: dd: /dev/block/mtdblock5: Input/output error Why can't I copy the data?
How do i efficiently copy a row data from one table to another table, where both of them are the same structure. i could go the much harder way of retrieving initial values from the row in the first table and then inserting to the second table. But i feel there is a more efficient way this can be done.