Skip to content
Advertisement

Tag: android

how to identify names of the partitions

From below partitions how know which partitions is boot and which one is system. Is there any different command I need to execute to read the partitions names. with df command Answer You can use df command. This will display something like that: The second option would be to read the /proc/self/mountinfo file.

/dev/mem and /dev/kmem not exists?

I would appreciate if some one can explain me why the two files do not exist? How Android kernel’s virtual memory space and physical space be like without have the 2 files? Edit: I am having Android 2.3.7 (Cyanogen mod), the 2 files do not exist: Edit2: I have checked the Samsung Galaxy S3 running ICS, the 2 files exist

Runtime.exec not working

I’m trying to run the following code to swap filenames. I’m using Runtime.exec. The code throws IOException. Anyway to fix this? And the error: 02-28 07:48:02.936: W/System.err(14399): java.io.IOException: Error running exec(). Command: [file1=/mnt/sdcard/fsimages_3, &&, file2=/mnt/sdcard/fsimages, &&, temp=”$(/system/xbin/mktemp, -dp, /mnt/sdcard)”, &&, /system/xbin/mv, “$file1”, $temp, &&, /system/xbin/mv, “$file2”, “$file1″, &&, /system/xbin/mv, $temp/”$file1”, “$file2”] Working Directory: null Environment: null It looks like Runtime.exec

Connecting to WiFi using adb shell

I have all the details to connect to a particular access point. I have to use that access point only, so all I require is the command to do it. Answer You can add a network entry into the wpa_supplicant.conf yourself (or within your script) Essentially connect manually once, then do: and integrate the network entry into your script for

Advertisement