Android keeps deleting my files while in recovery - android

I am trying to install a custom ROM on my HTC one m8. I unlocked the boot-loader, installed a custom recovery and everything works fine but whenever I try to put a custom ROM .zip on my SDcard, I see it with File Manager on my phone but if I reboot it on recover mode these files get deleted. I don't understand, help me please!

Resolved : sd card is too old and I can't write nor delete anything on it, I used adb push to put custom rom in the phone's internal memory

Related

Getting photos onto Android virtual device in IntelliJ IDEA

I'm working on an app to enable people to upload photos from their phone, and I need to be able to test this functionality out in the AVD via emulator. However the AVDs don't seem to have any photos in storage so I can't use them for testing.
Is there an efficient way to get photos onto the virtual device and preferably keep them there so I can run multiple tests on them? I know I can debug on my phone as well (and have been doing that), however I would prefer to do most of my debugging on the emulator if possible.
I'm using the IntelliJ IDEA for development.
One way would be to open cmd window and type adb shell. You can then create a folder for the images you'd like in the sdcard folder. Then you can exit the shell and push the images to the device using adb push cmd.
It's pretty simple actually.
adb shell
cd sdcard
md directoryName
exit
adb push /sdcard/directoryName /pathToImage
I solved the issue by starting the Android Device Monitor in IntelliJ (Tools>Android>Android Device Monitor), navigating to the File Explorer tab, and copying pictures over to the sdcard>Downloads folder. In the device emulator, I selected 'show SD card' before I was able to use the pictures from that folder. It will probably be easier if I can find out how to put the pics on a device folder instead of SD card, but for now this suffices.
Thanks for the suggestion eclipse, helped me go down the right path.

DDMS data drop down not working

I am running my application in HTC Sensation XE but i couldn't access the data->data files as i click the drop down nothing happens. I tried to reset the connection but it fails all the time don't know what the issue is can anyone help please. I have tried to find permissions but couldn't find it in my phone settings.
Here is a screen shot of it
When i open File Explorer first:
After clicking the data drop down button noting happens but the button disappears
There are private files under /data/data. It is right that you can not see anything in it.
What your should do is to root your phone and remount your /data/data partition.
Its because you have not set the permission to make your data accessible in your system.
You have to provide the permission to access the sdcard data from the settings then only you will be able to view and access the data->data folder.

Make device SD Card windows bootable by an android app

It may seem strange, but I wonder is an android app able to make the SD Card inside the device windows bootable? I thought of making the SD bootable and write ultimatebootcd to it. I did it through windows, but it would be so great if android can do it!
To make the SD card bootable, you have to modify the boot sector of the card. This can not be done from a standard Android application. If the Android device is rooted, it can almost certainly be done from a native Linux program, or an NDK program.
If the device is not rooted, you can probably not do what you want. As Chris Stratton commented, if the card is already made bootable, you could probably then change for instance what OS is booted up and how.
Say, there is startup code which loads and boots an OS, then you can change the configuration file for the bootloader. A starter: http://www.syslinux.org/wiki/index.php/Boot_an_Iso_image
I used Rufus and installed a syslynux on the SdCard from a PC running window 10.then I put the card back into the Moto phone. It's receiving files that I have moved from the internal storage to the card how ever I have not a chance to find out whether they Will open up In the PC or not.

Android: cannot access sdcard files from device

I'm working on an android app that writes and reads .PNG files from sdcard. I've already tried it on a device (htc) and it was working fine. Then I had to modify some code to correct some errors (Note that changes made had nothing to do with save/open function). But now just like that I can no longer save/open files on sdcard.
I've tried to open sdcard folder in DDMS File Explorer view (eclipse) but it appears empty and the permissions are d---------. I think it has something to do with the permissions but I have no idea what exactly is causing this problem and how to solve it.
To see if the problem was in my app I tested it on an emulator and it's working fine. So the problem is definitely related to the device.
Any suggestions?
Make sure you didn't connect the phone to your PC in "disk drive" mode.
I recall that in order to be able to view contents of certain directories with ddms you need to have rooted your phone to get the permissions.

Some users can't install app since installLocation is added to the manifest

Since I added the install location to the manifest (tried both auto and preferExternal) and made my update available in the Market I get some users that can't install the application on their (so far only HTC Desire with Froyo) devices. Is there any known issue on this? Or better a working solution?
I got also the following workaround from a user. Unmount the SD card, install the app, and mount the SD card again does succesfull install the app.
It seems that this is a specific error with this specific device model. Your app cannot help that much. But, among some hacks, the device owner can also try this:
How to Install Apps to the SD Card by Default on Android 2.2 Froyo

Categories

Resources