Android :: Can I Change Write Access For Root Directory
Jan 18, 2010
I need to be able to write textfiles to the root directory of my Android device (as this related questions explains).
Can I change write permissions for root directory / and if so, how?
I tried pushing a file using adb, but it said file system was read-only
Its pretty annoying that I cannot control my own device, that everything is so restricted
EDIT 1:
This thread has evolved into discussing Sygic Navigation and their API, which seems to be wrong when it comes to the Android platform. I have some other questions that discuss Sygic and their navigation software.
View 7 Replies
Feb 17, 2010
How do I create a shared directory with read/write permissions to all applications installed on my phone and that is not on the sdcard?
I tried that :
File f = new File("/tmp");
f.mkdir();
but it is not working.
View 1 Replies
View Related
Apr 17, 2009
I wrote a file to the sdcard, but it failed as follow:String sdcardFIle = "/sdcard/xxx.txt" FileOutputStream fos = openFileOutput (sdcardFile, Context. MODE_ WORLD_ WRITABLE ) ; openFileOutput failed, because fIle "/sdcard/xxx.txt" contains a path seperator. It is so strange. Is there another way to handle the situation?
View 5 Replies
View Related
Mar 31, 2010
I'm trying to save a file in a subdirectory in Android 1.5.I get a exception saying I can't have directory separator in a file name ("/"). I'm missing something of working with files in Android..I thought I could use the standard Java classes but they don't seem to work.I searched the Android documentation but I couldn't fine example and google is not helping me too.I'm asking the wrong question (to google).
View 2 Replies
View Related
Jan 4, 2010
I m using Android 1.5 my data directory does'nt have the read/write permissions
System.out.println("DAta can write??--->"+Environment.getDataDirectory().canWrite());
System.out.println("DAta can read??--->"+Environment.getDataDirectory().canRead());
So please suggest me how to provide permission for the data directory.
What m trying to do is to create a file and add some content to it iin the Data storage of the emulator like as below
private void writeToSDCard() {
try {
File lroot = Environment.getDataDirectory();
if (lroot.canWrite()){
File lfile = new File(lroot, "samplefile.txt");
FileWriter lfilewriter = new FileWriter(lfile);
BufferedWriter lout = new BufferedWriter(lfilewriter);
lout.write("XXXXXXXXXXXXXXXXXX");
lout.close();
}
} catch (IOException e) {
Log.e(m_cTAG, "Could not write file " + e.getMessage());
}
}
View 2 Replies
View Related
Aug 19, 2009
How to remount /sdcard directory to read/write on emulator?
I read this:
http://android-tricks.blogspot.com/2009/01/mount-filesystem-read-write.html
But i don't know how to apply that to remount /sdcard directory in read-write mode?
View 1 Replies
View Related
Jun 21, 2012
I'd like to know if there's a way to write files into the main directory just before the system shutdown, something like this:
End all processes (-> unmount disks?) -> mount /sdcard rw and / rw -> copy files from /sdcard to / -> unmount disks -> shutdown/reboot
Same with boot image (flash, in this case, and not copy / mod files)... is it possible? Or do I require to boot into recovery for these operations? I know I can remount as rw my system directory via ADB
Also, is it possible to do the same thing with the build.prop file? This, or during startup (before mounting partitions with standard permissions).
Of course, this having root (but not a special kernel to enable this kind of "before mounting" thing).
View 5 Replies
View Related
Feb 9, 2009
Is it possible to write data or create folder in system directory like /system/media/audio/alarms. i.e other than our respective package.
View 2 Replies
View Related
Aug 19, 2010
I save some resources in the res/raw directory which i then would like to read with my custom loader.
how can i do this?
ideally i would get a BufferedReader on them.
View 3 Replies
View Related
May 7, 2009
Can any one tell me which is the best way to access the file system in android device, also i want to list all the files in the application directory.
View 3 Replies
View Related
Mar 16, 2010
I get a lot of requests in my application to allow for custom icons packs from BetterCut / Open Home. The way it seems to work is you install BetterCut or Open Home, then you can install tons of these free icon packs from the market. Once installed both those apps (and other apps) will poll for those icon packs and use the icons. I want to know how to poll the install applications for the asset folders that are available. I have opened up a few of the icon packs and verified that there is an assets folder in there and they are full of all the icon png files. I've searched on here, other code sites, google, etc., but haven't found any leads.
From the answer below I have written some code to try and list a file from my own projects assets directory but it does not seem to work.
Resources r = this.getResources();
AssetManager a = r.getAssets();
String[] list = a.list("/");
Log.d("test", "Length of / is "+list.length);
for (String s : list) { Log.d("test", s); }
Log.d("test", "Length of /assets is "+a.list("/assets").length);
Log.d("test", "Length of /assets/ is "+a.list("/assets/").length);
Log.d("test", "Length of /assets/ is "+a.list("/assets/").length);
Log.d("test", "Length of ./assets/ is "+a.list("./assets/").length);
Log.d("test", "Length of ./assets is "+a.list("./assets").length);
This is the output:
03-16 12:25:04.591: DEBUG/test(13526): Length of / is 6
03-16 12:25:04.591: DEBUG/test(13526): AndroidManifest.xml
03-16 12:25:04.591: DEBUG/test(13526): META-INF
03-16 12:25:04.591: DEBUG/test(13526): assets
03-16 12:25:04.591: DEBUG/test(13526): classes.dex
03-16 12:25:04.591: DEBUG/test(13526): res
03-16 12:25:04.591: DEBUG/test(13526): resources.arsc
03-16 12:25:04.614: DEBUG/test(13526): Length of /assets is 0
03-16 12:25:04.637: DEBUG/test(13526): Length of /assets/ is 0
03-16 12:25:04.661: DEBUG/test(13526): Length of /assets/ is 0
03-16 12:25:04.692: DEBUG/test(13526): Length of ./assets/ is 0
03-16 12:25:04.716: DEBUG/test(13526): Length of ./assets is 0
I figured out that you can read from the assets directory without actually using the folder name:
InputStream is = assetManager.open("test.png");
I also tried this with an asset in Appliction 2 from Application 1, where the folder path is /asset/icon/image.png:
InputStream is = assetManager.open("icon/image.png");
Next I figured out that you can list a directory inside assets:
String[] list = assetManager.list("icons");
That also works great. The only thing failing right now is how to list the base directory assets.
View 3 Replies
View Related
Mar 16, 2010
"This interface provides random read-write access to the result set returned by a database query." but I can't find any way to update a database with a cursor.I have started noting things like this as a sidewiki entry for the documentation page.
View 3 Replies
View Related
Dec 25, 2009
I downloaded a PDF file to my Droid.I can see that it is in the "Downloads" folder when I mount the Droid to my laptop via the USB.My question is, how do I access this file from the phone?I can't get to the directory to try to open it.I can access the PDF through my Gmail account using the Preview option. However, I wanted to save the file to the SD card. So, I searched this and another forum on how to do that and the only way I could find was to access my gmail account through the browser and download. I did this and the file was put in the Downloads folder on the SD.How do you access the Downloads directory and for that matter, any directory that you may want to create on the SD?
View 4 Replies
View Related
Mar 1, 2010
Is there a right associated with write/read access to the sd card that needs to be set in the manifest.xml file? I'm currently trying to write to the sd card using a standard FileOutputStream here:
FileOutputStream out = new FileOutputStream("/ sdcard/images/"+imageName);
bmp.compress(Bitmap.CompressFormat.JPEG, 90, out);
But it doesn't seem to be working. It just says the location isn't found, which can happen if there are no permissions to read/write to the location.
View 2 Replies
View Related
Sep 7, 2010
Has anyone figured out how to access your MS Exchange company directory on the Epic? My co-worker who has an Evo is able to when he goes to compose a new message, he has the option to search the company directory. But I do not on the Epic.
View 3 Replies
View Related
Jul 8, 2010
I've rooted my phone, but I still can't figure out how to access the / directory from my computer. Specifically, I want to be able to open /system/media/audio/ringtones so I can put new ringtones in there. Is there a good way to do this? I tried copy/pasting with astro file maager, but it won't let me paste into that directory, I assume because I don't have permission.
View 9 Replies
View Related
Feb 1, 2009
I just got the Dev Phone G1 so I install my apk, named myapp.apk on it.
But my application's working directory is /system/myapp which is mounted
as read-only.
So I want to change my working directory to /data.
How can I change this?
View 4 Replies
View Related
Oct 11, 2013
I have some apps such as Google Drive where I have no options to set the download directory, so it will only download to my internal storage in the default Downloads folder. How can I change this default Downloads folder to something else?
View 4 Replies
View Related
Nov 22, 2013
I have one bitmore 1010 tablet with custom rom cyanogedmod, I delete some files from root directory and now the tablet is not load android os. I see only the bitmore image in screen and nothing else.
can I restore the image from android control v1.3.1?
View 1 Replies
View Related
May 20, 2013
My Ainol Novo 9 Spark can't write on my extSD/USB devices. I tried to format/remount but nothing works. The SD Card is working fine in my Galaxy Note.
View 2 Replies
View Related
Jan 17, 2010
I found out that you can use something like this to create a file:
CODE:............
When running the above code I get an IllegalArgumentException stating:
CODE:......
And Im guessing the "/" is not appreciated. I wanted the "/" since I need to write the file to the root directory of the device, as stated in the API in trying to follow:
CODE:.........
Question is: how do I place a file in the root-directory? I have been looking around for an answer, but havent found one yet.
View 1 Replies
View Related
Nov 4, 2011
I have an HT-PAD1051 - seems to be pretty close to the HeroTab M10.
I have rooted the device but can not get access to the root directory in the internal sd card. (There is no external sd card slot on this particular device). Part of teh internal sd card is mapped to a /mnt/ directory and folders in that directory are accessible. But no access to the root directory. So, when I try to flash Clockwork Mod recovery using ROM Manager it fails due to not being able to access the directory.
View 2 Replies
View Related
Oct 11, 2012
but I can't delete some file in this directory ".ifs" folder Because. Yesterday I'm rooted my phone (This is a first time i root Android phone) i've explore alot of file in my phone
I found "logo.jpg" ( I Guest this is BOOT SCREEN PICTURE FILE ) in ".ifs folder" I Think if i replace with another JPG file. I can change BOOTSCREEN another Picture too.
when i copy and replace with new JPG file in this directory. I CAN'T replace it. But it create Duplicate file with "logo-Copy.jpg"
I do this 2 time but not work.
I can't delete or replace "logo.jpg" file in " mnt .ifs " Directory
that useless. So ! I want to delete "logo-Copy.jpg" or "logo-Copy (2).jpg" but I CANNOT DELETE IT TOO.
I'm use ROOT EXPLORER program SD Maid and ES EXPLORER it still not work ( SET mounted read and write )
View 3 Replies
View Related
Oct 16, 2010
Is there an easier method to changing where pics save as they're taken? Our first child was born Monday and of course i take 10+ pics a day, and get tired of moving them to her folder via Astro every night.
View 1 Replies
View Related
Jun 23, 2010
I even tried flashing a custom rom (Fresh) on the last attempt and it just seems like it is giving me the Sprint stock Rom. Shouldn't the custom Rom look different? Once rooted do I still need to use Unrevoked method to grant superuser access for Apps?
View 9 Replies
View Related
Apr 6, 2010
I recently rooted my droid eris and installed the sense-able2.0 custom rom. I was just wondering if I could delete the zip files out of the root directory after they are installed?
View 1 Replies
View Related
Jul 6, 2012
I'm a newbie trying to develop some small utilities. Need some info on how to get started with writing a root app.
View 7 Replies
View Related
Jun 2, 2014
I am using a mt6582m device with kitkat 4.4.2 with supersu. I can use root to write to system, data and cache using es file explorer, can also read and write to any sd card, but apps like titanium backup, online android backup, ram expander can't read/write to sd card.
Eg.1: ti backup read backups, can do all operation except backup and restore.
I had read a lot, changing backup path didn't worked nor any odex file is there. Using v6.1.5.6.
Eg. 2: ram expander can create swap file on sd but can read it saying 'not found'. Swap can be used with cache partition.
Eg. 3: online nandroid backup says pat not vaild.
I had tried, sd fix app, manually editing platform.xml, xposed module to 'handel external storage', change permissions using es file explorer, editing ramdisk.
There is storage/sdcard0 and 1
Also mnt/sdcard and mnt/sdcard2 (symlinked)
Also mnt/media_rw/sdcard0 and 1 (not readable even in es file explorer)
View 9 Replies
View Related
Sep 14, 2010
I have tried rooting using both the Regaw method and using the writeup from CCapasso. Using the Regaw method after Step 3 I get the error msg "cannot stat 'unrevoked': No such file or directory. Using the CCappasso method after Step 6 I get the msg: [1]killed/data/local/asroot2/system/bin/sh.
I have downloaded the files and have them in C: drive
I have turned on debugging
I have unmounted the SD card
I have installed HTC Sync
I have phone on "charge only" when hooked to the computer
View 3 Replies
View Related
Feb 19, 2010
I installed Android at C drive, but avd automately installed on windows directory. because my windows directory have kanji, maybe this prblem emulator can not start up. SDK Setup.exe could not success,too. Who can tell me how can change avd directory to other place.
View 2 Replies
View Related