I am developing an application that needs to access data on the sd card. When I run on my development device (an odroid with Android 2.1) I have root access and can construct the path using:
However, when I install this on a phone (2.1) where I do not have root access I get files == null. I assume this is because I do not have the right permissions to read the data from the sd card. I also get files == null when just trying to list files on /sdcard. So the same applies without my constructed path.
Also, this app is not intended to be distributed through the app store and is needs to use data copied separately to the sd card so this is a real use-case. It is too much data to put in res/raw (I have tried, it did not work).
I have also tried adding: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
To the manifest, even though I only want to read the sd card, but it did not help. I have not found a permission type for reading the storage.
Is there any way to read and process QR codes by manually? I mean that, I want to read QR code from my android software (not from QR code reader software) , then I want to get information behind the QR Code and than I want to connect and fetch some data from a database according to that information.
While developing such a android application, may I import QR code reader software jar file and can I access its api, if it is possible of course?
I'm writing a file manager app and I want to allow it for browsing with root permissions.
All I have so far is creation of a Process object using Runtime.exec("su"). Then I get output stream from it and write "ls" command. And here goes the question. How to read the output of the "ls"? Getting the input stream from the process gives me stdout of the "su" which is useless.
I finally took the plunge tonight on a whim with the help of Mahalo Cat, Thanks Bro, here is what I did so far, and I will keep adding to the original post as I see fit
My Software build is 2.27.651.6
I had both the Universal Androot and the Rom Manager on my phone already downloaded. I then was chatting with MC and simply hit the Universal Androot and rooted, LOL. Then I checked to see if I had SuperUser and I did. I then open the Rom Manager and had a blank screen for about 15 seconds and then there seemed to be a delay in the response of my phone, but then all came back, I then flashed the ClockWordMod recovery and then gave it superuser permission, then it brought me to a menu screen, where I then proceeded to scroll down to do a Nandroid backup, called it Stock_2.1 with no spaces "Very Important" and then it took about 3 to 4 minutes to do a full back up and then said back up was done. I then hit reboot phone in the menu. So that is it for tonight, I will play with it like this for a bit, then on the weekend I will flash a different ROM for the heck of it and see what that is like.
what does the root process actually change? Is it changing the boot loader, the rom, or both? If I decide that I don't want to be rooted, would flashing the sbf restore EVERYTHING that rooting does, back to normal? Like would a rooted and then flashed and a non rooted phone would be identical in every single way?
I was running stock 2.1 on my Droid and I recently rooted it using the instructions here: How-To Root your stock 2.1 Droid. It went off without a hitch. Then, I went to Froyo 2.2, as found here: Download: Newer Motorola Droid Froyo Leak FRF57 | Droid Life: A Droid Community Blog.
After switching to Froyo, it appeared that I was having some issues with my root. I still had the superuser ninja, and I could still use Terminal Emulator. When I opened upTitanium Backup though, it asked me to allow permission which I did, and then it told me that I was not rooted (Setup behaved similarly). So I went and applied the update patch available on the Droid-Life page where I got Froyo and it appeared to work. To my knowledge I AM rooted. I have a custom boot animation and Titanium and Setcpu are working fine. Titanium says my root access is ok and that I am using busybox 1.15.3 from app. All is well, EXCEPT that when I try to use the cp command via terminal emulator I cannot. I recently tried to add a custom boot animation using the following:
su mount -o rw,remount -t yaffs2 /Dev/block/mtdblock3 /system cp /sdcard/bootanimation.zip /system/media/bootanimation.zip mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system exit
After the first line of code I got:usage: mount [-r] [-w] [-o options] [-type] device directory
After the second line however I got the error cp not found. HOWEVER, I was able to apply the boot animation using root explorer. Also, i tested the command busybox and got busybox not found. I can still utilize cd /system app though.
Basically I need to know if I am only partially rooted. I am having a ball with this phone and I would hate to be unable to do some future root process because of a glitch now.
I have a non-rooted Motorola Droid running 2.2 and I want to root to try out a ROM. I want to make sure I do this right. I don't want to lose any data (pictures, texts, etc) and I don't want to lose any apps. I've read a bunch of threads and it sounds like this is the general order I should proceed in: 1 - Backup data with MyBackupPro 2 - Root 3 - Backup apps with Titanium Backup 4 - Install ROM Is this correct? Am I missing anything? Will the root method or ROM make a difference in terms of the process?
I have acer iconia b1 tablet and I tried to root it and during the process the USB cable disconnected .. now the device wont start. I tried to clear data and factory default and I tried clearing catch but nothing worked. I think the system crashed. I don't now what to do.
I am a amateur for android development. There are some problems which might need your assistance. I intend to process plenty of pictures via SD card. With the attached code, it seems not to work smoothly via SD card. The systme will report "bitmap size exceeds VM budget." Is there any solution can help to slove this problem?
how to root this galaxy s3 from tracfone (run on android 4.1.2) from the specification its look like the s3 from sprint.and how to get the msl / spc code for this phone (have been ask the tracfone cs so many time but they didnt give me)
How can I read the CID (Card Identification register) of an SD card with Java or C-Code in an Android phone? I tried "cat /sys/class/mmc_host/mmc1/mmc1:*/cid" but at least on the Samsung I7500 Galaxy it does not return the CID of the SD card because it is always the same number with different SD cards.
So, I have Itunes Agent and when I had the 2 GB card it synced perfectly, no problem. So I get the 16GB card and my computer suddenly doesn't even 'recognize' that there's a device connected. WTF, So, not very computer savvy, I figure it must be the computer because the card seems fine in the phone?
as seen above in the desire forum, im having this issue. it just occurred today.i have a 16GB Sandisk, stock and unrooted. i move about 4 apps to SD card (out of the 30 ish apps i have, only 4 were available to be moved to SD).Micro SD card mounted as Read Only? - HTC EVO? 4G (Sprint) - Android Forums - HTC Community.seems all of us having this issue posted today or within a day or so.. so it seems like it may be Froyo related.
After the update last night to 2.1. I can only read the files on the sd card. Deleting is not possible. Did a format with the phone and copied all over on the card, no luck. Putting the card in the PC. I can do everything with the files, copie, delete and so on. Then did a format with the pc fat32 and copied all back, again on the phone only read only.
Well I have a problem and need some help. So for no apparent reason I started getting an error with my sd card last night. At the notification bar, it says the sd card is mounted as read only. The phone gives me the option to try to fix it. It tries without success. I have tried resetting the phone and fidgeting with the card...both with no success. Its frustrating cause I can't take pictures as a result and all I see is that error message! Its an eyesore at the top of my screen.
I did a backup using Titanium Backup and Go Backup and after wiping my Motorola Defy, tried to restore apps, contacts etc. The problems I encountered were:
1) Go Backup can't recognize backup directory on SD card for some reason. 2) Can't move apps to SD. An error occurs: "Move Application: Failed to move application. There is not enough storage left." Needless to say, I have more than enough storage.
This is was I encountered by far, although I believe these are just a small part of the symptoms for a single problem. Maybe its because there are no permissions, or moving apps is impossible because of an existing app files on the SD card.
What is the actual cause for this? Or is there a tool to fix the permissions on the Defy?
I had a problem with my sd card, currently my device a lower entry lenovo A369i.
Few days ago i insert the sd card through my phone and it works perfectly. But a few hours ago while i operate my phone as usual and want to open gallery then the all media inside gallery was dissapear..
My Evo is rooted, but I have lost my recovery image. Attempts to re flash recovery via ROM Manager and ADB both failed. I now have a task bar message saying the card is mounted read only. I put it in an adapter, plugged into my PC and ran Check Disk, which appeared to restore R/W status. I then put it back in the phone, rebooted and tried to flash a new image with ROM Manager, I have the read only issue again. I still have root, root apps still receive SU permissions, but I have no nand access and cannot re flash CWM or Amon.
i took my sd card out (before i realized my pone was on) and i put it back in and get "Blank SD Card" even though i have a bunch of stuff on it. How can i fix this or format it? because i really want to use my camera but the phone wont format it! i click format and nothing happen!
If I format my card to ext3 will the phone be able to read it. I want to make a sym link to the internal storage on the sd card so all the apps will hopefully be able to use it. But fat32 doesnt support symbolic links...
My new HTC desire is unable to read or write to my 8GB SD card which was previously inside my HTC HD touch. Why is this? I've swapped the SD cards around - i.e. the 4 GB SD card which it came shipped with is now inside my HTC HD touch It doesnt have a problem reading or writingto the 4 GB SD card that it came shipped with. I would prefer not to have to format the card