Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Howto read /dev/mtd/mtd1

Howto read /dev/mtd/mtd1

Put your problem here if it does not fit any of the other categories.

Howto read /dev/mtd/mtd1

Postby FireFart » Thu Aug 13, 2009 9:35 pm

Hi!
I have to read the File /dev/mtd/mtd1 on my Android.
Actually this is what i am supposed to do:
md5sum /dev/mtd/mtd1

Now heres my Problem:
I can create the File object, and File.exists() returns true.
But i cannot read the File in. The BufferedReader throws no Exception, it just returns null. When i connect via adb i can access this File.

The Permissions are:
crw------- 1 0 0 90, 2 Aug 13 05:07 mtd1

Is there a way to read the File via an AndroidApp?

Heres to codepart:
public static String calculateMD5(File updateFile) throws IOException {
String calculatedDigest;
Process process = Runtime.getRuntime().exec(
new String[] { MD5_COMMAND, updateFile.getAbsolutePath() });

try {
process.getOutputStream().close();
BufferedReader br = new BufferedReader(new InputStreamReader(
process.getInputStream()), 1024);
calculatedDigest = br.readLine();

br.readLine() just returns null
FireFart
Freshman
Freshman
 
Posts: 3
Joined: Wed Aug 12, 2009 7:06 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 11 guests