I am trying this for one whole day but i still got this PERMISSION DENIED error after I given WRITE_EXTERNAL STORAGE PERMISSION also.
Now i tried this program in my phone. Again the same PERMISSION ERROR is on logcat.
i tried with many codes available in this website.It always fails.Guide me with some tuorials for copy database to sdcard
try {
File sd = Environment.getExternalStorageDirectory();
File data = Environment.getDataDirectory();
if (sd.canWrite()) {
String currentDBPath = "data/com.sri.tut/databases/image_storage.db";
String backupDBPath = "image_storage.db";
File currentDB = new File(data, currentDBPath);
File backupDB = new File(sd, backupDBPath);
if (currentDB.exists()) {
FileChannel src = new FileInputStream(currentDB).getChannel();
FileChannel dst = new FileOutputStream(backupDB).getChannel();
dst.transferFrom(src, 0, src.size());
src.close();
dst.close();
}
}
} catch (Exception e) {
}
This is my Logcat output.
09-14 08:36:07.663: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:09.413: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:09.963: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:10.203: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:10.654: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:10.854: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:11.083: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:11.283: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:11.683: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:11.934: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:12.224: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:12.463: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:12.734: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:13.053: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:13.413: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:13.694: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:13.914: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:14.303: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:14.563: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:36:14.804: ERROR/Movedb(12336): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:37:42.253: WARN/PackageManager(67): Mounting container com.sri.copydata-1
09-14 08:37:45.634: WARN/InputManagerService(67): Got RemoteException sending setActive(false) notification to pid 12336 uid 10053
09-14 08:37:52.463: WARN/PackageManager(67): Code path for pkg : com.sri.copydata changing from /mnt/asec/com.sri.copydata-2/pkg.apk to /mnt/asec/com.sri.copydata-1/pkg.apk
09-14 08:37:52.463: WARN/PackageManager(67): Resource path for pkg : com.sri.copydata changing from /mnt/asec/com.sri.copydata-2/pkg.apk to /mnt/asec/com.sri.copydata-1/pkg.apk
09-14 08:38:00.773: WARN/RecognitionManagerService(67): no available voice recognition services found
09-14 08:42:05.613: WARN/PackageManager(67): Mounting container com.sri.copydata-2
09-14 08:42:11.294: WARN/InputManagerService(67): Got RemoteException sending setActive(false) notification to pid 13273 uid 10053
09-14 08:42:20.063: WARN/PackageManager(67): Code path for pkg : com.sri.copydata changing from /mnt/asec/com.sri.copydata-1/pkg.apk to /mnt/asec/com.sri.copydata-2/pkg.apk
09-14 08:42:20.063: WARN/PackageManager(67): Resource path for pkg : com.sri.copydata changing from /mnt/asec/com.sri.copydata-1/pkg.apk to /mnt/asec/com.sri.copydata-2/pkg.ap
09-14 08:42:29.033: WARN/RecognitionManagerService(67): no available voice recognition services found
09-14 08:42:51.374: ERROR/Movedb(14575): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
09-14 08:43:14.043: ERROR/Movedb(14575): Error in Copyingjava.io.FileNotFoundException: /data/data/com.sri.assign/databases/AssignmentsDB (Permission denied)
If you connect the device to your pc and enable
copy files to/from computer etc...
You will not have access to write on the sd card.
Disconnect it from pc and try again or disable copy.
the log says you don't have permission to read data from /data/data/com.sri.tut/databases/image_storage.db, by default this /data directory is a linux system directory, its user and group owner is 'system', not your application, so you don't have the permission.
you can see the detail in adb shell, you will see such properties as below:
drwxrwx--x system system 2012-09-14 08:30 data
Related
3053-3135/? E/﹕ Couldn't opendir /data/app/vmdl1653487319.tmp: No such file or directory
3053-3135/? E/installd﹕ Failed to delete /data/app/vmdl1653487319.tmp: No such file or directory
6865-6865/? E/Finsky﹕ [2] com.google.android.finsky.wear.bl.a(3): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
4361-4361/? E//system/bin/webview_zygote32﹕ failed to make and chown /acct/uid_99069: Permission denied
4361-4361/? E/Zygote﹕ createProcessGroup(99069, 0) failed: Permission denied
4387-4387/? E/asset﹕ setgid: Operation not permitted
4296-4296/? E/PushMessage﹕ token..title:: null
6008-6008/? E/NetworkScheduler.ATC﹕ Received callback from client for task that is already complete.
ComponentInfo{com.google.android.inputmethod.latin/com.firebase.jobdispatcher.GooglePlayReceiver} task_check_update
3526-3543/? E/BatteryStatsService﹕ no controller energy info supplied
4296-4296/? E/PushMessage﹕ token..title:: fi8UxsDCdu0:APA91bGW6JEoNm-CZqemOBu_FiZ4YYAkfxCYGTyENFs8nXXBanCe_qyGhXL2hDR8_38SDeyghkbn_B3uaA_n6LpIqQsX2jFvOYXP8LDYDMLu2WSYtj2cj6A0pAi12-KxPMOgBhHOH5Mn
6008-2635/? E/ctxmgr﹕ [ProducerStatusImpl]updateStateForNewContextData: inactive, contextName=7
6008-6008/? E/ctxmgr﹕ [PlaceFenceHelper]NearbyBuffer is null!
6317-30075/? E/SQLiteCastStore﹕ End saving paired guest mode devices
3526-11492/? E/BatteryStatsService﹕ no controller energy info supplied
6008-6008/? E/ctxmgr﹕ [WorkInfo]Attribution was already enqueued pkg=com.google.android.gms, lbl=PlacesProducer_receive, start=unspec, stop=unspec.
6008-2635/? E/ctxmgr﹕ [WorkManager]Ongoing task not found: PlacesProducer_receive
3526-3542/? E/zygote64﹕ failed to kill 1 processes for processgroup 3624
356-356/? E/SELinux﹕ avc: denied { find } for interface=android.hardware.memtrack::IMemtrack pid=4585 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager
6008-2635/? E/ctxmgr﹕ [ProducerStatusImpl]updateStateForNewContextData: inactive, contextName=7
6008-6008/? E/ctxmgr﹕ [PlaceFenceHelper]NearbyBuffer is null!
3526-3683/? E/ConnectivityService﹕ RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=161, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
3772-3785/? E/RecentsTaskLoader﹕ Unexpected null component name or activity info: ComponentInfo{com.cbq.CBMobile/com.cbq.CBMobile.CBQMainActivity}, null
6865-6865/? E/Finsky﹕ [2] com.google.android.finsky.wear.bl.a(3): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
5024-5024/? E/asset﹕ setgid: Operation not permitted
3053-3603/? E/﹕ Couldn't opendir /data/app/vmdl447807582.tmp: No such file or directory
3053-3603/? E/installd﹕ Failed to delete /data/app/vmdl447807582.tmp: No such file or directory
6865-6865/? E/Finsky﹕ [2] com.google.android.finsky.wear.bl.a(3): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
5100-5100/? E//system/bin/webview_zygote32﹕ failed to make and chown /acct/uid_99070: Permission denied
5100-5100/? E/Zygote﹕ createProcessGroup(99070, 0) failed: Permission denied
5128-5128/? E/asset﹕ setgid: Operation not permitted
5069-5069/? E/PushMessage﹕ token..title:: null
3526-3543/? E/BatteryStatsService﹕ no controller energy info supplied
My problem is when I run my app on API level 23 devices,I have a an issue,when video is playing and I lock the device,after unlocking,it plays sound for 2-3 seconds and then there is no sound,and after a couple of seconds the screen is getting black.
LogCat
09-14 07:56:01.819 1641-1641/system_process E/PowerManagerService-JNI: Couldn't load power module (No such file or directory)
09-14 07:56:01.919 1641-1641/system_process E/art: DexFile_getDexOptNeeded file '/system/framework/org.apache.http.legacy.jar' does not exist
09-14 07:56:02.800 1641-1641/system_process E/ConsumerIrService: Can't open consumer IR HW Module, error: -2
09-14 07:56:02.921 1641-1706/system_process E/EventHub: could not get driver version for /dev/input/mice, Not a typewriter
09-14 07:56:04.158 1641-1641/system_process E/UsbDeviceManager: failed to write to /sys/class/android_usb/android0/f_rndis/ethaddr
09-14 07:56:04.158 1641-1641/system_process E/UsbDeviceManagerJNI: could not open /dev/usb_accessory
09-14 07:56:04.266 1641-1641/system_process E/LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gatekeeper.password.key: open failed: ENOENT (No such file or directory)
09-14 07:56:04.266 1641-1641/system_process E/LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/password.key: open failed: ENOENT (No such file or directory)
09-14 07:56:04.266 1641-1641/system_process E/LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gatekeeper.pattern.key: open failed: ENOENT (No such file or directory)
09-14 07:56:04.266 1641-1641/system_process E/LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gatekeeper.gesture.key: open failed: ENOENT (No such file or directory)
09-14 07:56:04.266 1641-1641/system_process E/LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gesture.key: open failed: ENOENT (No such file or directory)
09-14 07:56:04.274 1641-1641/system_process E/WifiService: Invoking mWifiStateMachine.setWifiEnabled
09-14 07:56:04.679 1641-1722/system_process E/BluetoothAdapter: Bluetooth binder is null
09-14 07:56:04.684 1641-1722/system_process E/BluetoothAdapter: Bluetooth binder is null
09-14 07:56:04.693 1641-2001/system_process E/WVMExtractor: Failed to open libwvm.so: dlopen failed: library "libwvm.so" not found
09-14 07:56:04.702 1641-1641/system_process E/InputMethodManagerService: Ignoring updateSystemUiLocked due to an invalid token. uid:1000 token:null
09-14 07:56:04.725 1641-1641/system_process E/FlpHardwareProvider: Error hw_get_module 'flp': -2
09-14 07:56:04.725 1641-1641/system_process E/LocationManagerService: FLP HAL not supported
09-14 07:56:04.726 1641-1641/system_process E/ActivityRecognitionHardware: Error hw_get_module: -2
09-14 07:56:04.726 1641-1641/system_process E/LocationManagerService: Hardware Activity-Recognition not supported.
09-14 07:56:04.741 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server
09-14 07:56:04.781 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server
09-14 07:56:04.782 1641-1715/system_process E/WifiStateMachine: Failed to reload STA firmware java.lang.IllegalArgumentException: command '16 softap fwreload wlan0 STA' failed with '501 16 SoftAP command has failed'
09-14 07:56:04.784 1641-1715/system_process E/WifiStateMachine: Unable to change interface settings: java.lang.IllegalStateException: command '18 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 18 Failed to set address (No such device)'
09-14 07:56:04.784 1641-1715/system_process E/WifiMonitor: killSupplicant p2pfalse init.svc.wpa_supplicant=unknown init.svc.p2p_supplicant=unknown
09-14 07:56:04.902 1641-1641/system_process E/BluetoothAdapter: Bluetooth binder is null
09-14 07:56:04.917 1641-1641/system_process E/BluetoothAdapter: Bluetooth binder is null
09-14 07:56:04.922 1641-1641/system_process E/BluetoothAdapter: Bluetooth binder is null
09-14 07:56:05.328 1641-1717/system_process E/ConnectivityService: Failed to find Messenger in unregisterNetworkFactory
09-14 07:56:06.506 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server
09-14 07:56:06.533 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server
09-14 07:56:06.687 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server
09-14 07:56:06.726 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server
09-14 07:56:06.737 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server
09-14 07:56:06.857 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server
09-14 07:56:06.862 1641-1662/system_process E/GpsLocationProvider: no AGPS interface in set_agps_server
09-14 07:56:10.042 1641-1715/system_process E/WifiHW: Failed to stop supplicant
09-14 07:56:10.042 1641-1715/system_process E/WifiNative-HAL: Could not start hal
09-14 07:56:10.042 1641-1715/system_process E/WifiStateMachine: Failed to start HAL
09-14 07:56:10.042 1641-1715/system_process E/WifiHW: Cannot open "/system/etc/wifi/wpa_supplicant.conf": No such file or directory
09-14 07:56:10.042 1641-1715/system_process E/WifiHW: Wi-Fi will not be enabled
09-14 07:56:10.042 1641-1715/system_process E/WifiStateMachine: Failed to start supplicant!
09-14 07:56:39.975 1641-1674/system_process E/Surface: getSlotFromBufferLocked: unknown buffer: 0xaaf4b0e0
09-14 07:56:39.975 1641-1674/system_process E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
09-14 07:56:39.990 1641-1715/system_process E/WifiStateMachine: Fail to set up pno, want false now false
09-14 07:56:39.997 1641-1715/system_process E/WifiStateMachine: Fail to set up pno, want false now false
09-14 07:56:43.721 1641-1715/system_process E/WifiStateMachine: Fail to set up pno, want false now false
These two line are printed every time when I lock or unlock the device.
09-14 07:56:43.721 1641-1715/system_process E/WifiStateMachine: Fail
to set up pno, want false now false 09-14 08:03:36.788
1641-1674/system_process E/Surface: getSlotFromBufferLocked: unknown
buffer: 0xaaf4b0e0
Any help is appreciated,thx.
They have fixed the issue in Android 6.0.1. Just update your Android OS version and it will be ok.
I successfully installed Android Studio on my Macbook Pro 8 Go memory under OS X El Capitan.I created a simple Hello World app and
then I tried to run the app, I was asked to create an AVD and chose Nexus 5 x config with x86. The device was created after downloading the image file and I ran the App. The Gradle process ran well and the app launched the emulator
I got the following message in the app window :
Error while waiting for device: Timed out after 300seconds waiting for emulator to come online.
The emulator showed only the word "Android".
The emulator has been running for a long time (more than 30 mn)
Below you'll find a very small extract of the emulator error window.
08-07 16:15:31.053 1203-1203/? E/perfprofd: unable to open
configuration file
/data/data/com.google.android.gms/files/perfprofd.conf 08-07
16:15:31.581 1198-1198/? E/cutils: Failed to read
/data/.layout_version: No such file or directory 08-07 16:15:34.368
1187-1187/? E/libEGL:
load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed:
library "/system/lib/egl/libGLES_emulation.so" not found 08-07
16:15:34.967 1187-1187/? E/SurfaceFlinger: hwcomposer module not found
08-07 16:15:35.401 1187-1187/? E/cutils-trace: Error opening trace
file: Permission denied (13)
--------- beginning of system
08-07 16:15:44.198 1197-1197/? E/cutils-trace: Error opening trace
file: Permission denied (13) 08-07 16:15:44.198 1197-1197/?
E/CameraService: setUpVendorTags: Vendor tag operations not fully
defined. Ignoring definitions. 08-07 16:15:46.354 1187-1219/?
E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build
property 08-07 16:15:46.428 1228-1304/? E/libEGL:
load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed:
library "/system/lib/egl/libGLES_emulation.so" not found 08-07
16:15:46.673 1228-1304/? E/cutils-trace: Error opening trace file:
Permission denied (13)
[ 08-07 16:15:46.684 1187: 1221 D/ ]
HostConnection::get() New Host Connection established 0xb70d02c0, tid 1221
08-07 16:15:50.397 1197-1324/? E/AudioFlinger: no wake lock to update!
08-07 16:15:50.400 1197-1197/? E/audio_hw_generic: Error opening input
stream format 1, channel_mask 0010, sample_rate 16000 08-07
16:15:50.514 1197-1197/? E/AudioFlinger: int
android::load_audio_interface(const char*, audio_hw_device_t**)
couldn't load audio hw module audio.r_submix (No such file or
directory) 08-07 16:15:50.566 1197-1197/? E/SoundTriggerHwService:
couldn't load sound trigger module sound_trigger.primary (No such file
or directory) 08-07 16:15:50.607 1197-1197/? E/RadioService: couldn't
load radio module radio.primary (No such file or directory) 08-07
16:16:34.734 1193-1193/? E/Netd: exec() res=0, status=768 for
/system/bin/iptables -w -t nat -N oem_nat_pre 08-07 16:16:35.220
1193-1193/? E/Netd: exec() res=0, status=768 for /system/bin/iptables
-w -t nat -A PREROUTING -j oem_nat_pre 08-07 16:16:35.459 1200-1200/? E/memtrack: Couldn't load memtrack module (No such file or directory)
08-07 16:16:35.491 1200-1200/? E/android.os.Debug: failed to load
memtrack module: -2 08-07 16:16:37.310 1193-1193/? E/Netd: exec()
res=0, status=768 for /system/bin/iptables -w -t nat -N
natctrl_nat_POSTROUTING 08-07 16:16:37.701 1193-1193/? E/Netd: exec()
res=0, status=768 for /system/bin/iptables -w -t nat -A POSTROUTING -j
natctrl_nat_POSTROUTING 08-07 16:16:48.729 1200-1200/? E/Minikin:
addFont failed to create font /system/fonts/NanumGothic.ttf 08-07
16:16:48.730 1200-1200/? E/Minikin: addFont failed to create font
/system/fonts/DroidSansFallback.ttf 08-07 16:16:48.730 1200-1200/?
E/Minikin: addFont failed to create font /system/fonts/MTLmr3m.ttf
08-07 16:17:06.251 1193-1193/? E/Netd: cannot find interface dummy0
08-07 16:17:08.653 1200-1200/? E/EmojiFactory_jni: Failed to load
libemoji.so: dlopen failed: library "libemoji.so" not found 08-07
16:18:44.164 1200-1200/? E/libEGL:
load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed:
library "/system/lib/egl/libGLES_emulation.so" not found 08-07
16:18:44.919 1200-1200/? E/Hyphenator: error loading hyphenation
/system/usr/hyphen-data/hyph-en-us.pat.txt
java.io.FileNotFoundException:
/system/usr/hyphen-data/hyph-en-us.pat.txt: open failed: ENOENT (No
such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or
directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593) 08-07
16:18:44.969 1200-1200/? E/Hyphenator: error loading hyphenation
/system/usr/hyphen-data/hyph-eu.pat.txt
java.io.FileNotFoundException:
/system/usr/hyphen-data/hyph-eu.pat.txt: open failed: ENOENT (No such
file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at libcore.io.IoUtils$FileReader.(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or
directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at libcore.io.IoUtils$FileReader.(IoUtils.java:207)
at libcore.io.IoUtils.readFileAsString(IoUtils.java:114)
at android.text.Hyphenator.loadHyphenator(Hyphenator.java:96)
at android.text.Hyphenator.init(Hyphenator.java:154)
at com.android.internal.os.ZygoteInit.preloadTextResources(ZygoteInit.java:207)
at com.android.internal.os.ZygoteInit.preload(ZygoteInit.java:186)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593) 08-07
16:18:45.058 1200-1200/? E/Hyphenator: error loading hyphenation
/system/usr/hyphen-data/hyph-hu.pat.txt
As cricket_007 suggested in the comment, it is generally suggested to use Genymotion or something similar since they're so much better.
Apart from that, if you're keen on running the emulator that comes with AS, you might also want to get Intel HAXM (Hardware Accelerated Execution Manager) driver from Android Package Manager. It provides hardware acceleration, but the benefits vary device to device.
When I run the emulator, the following error log is given:
12-01 12:33:40.900: E/logwrapper(41): executing /system/bin/e2fsck failed: No such file or directory
12-01 12:33:41.020: E/logwrapper(44): executing /system/bin/e2fsck failed: No such file or directory
12-01 12:33:43.600: E/cutils(56): Failed to read /data/.layout_version: No such file or directory
12-01 12:33:50.100: E/SurfaceFlinger(52): hwcomposer module not found
12-01 12:33:53.010: E/SurfaceFlinger(52): ro.sf.lcd_density must be defined as a build property
12-01 12:33:54.880: E/AudioFlinger(55): int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't load audio hw module audio.r_submix (No such file or directory)
12-01 12:34:17.380: E/memtrack(53): Couldn't load memtrack module (No such file or directory)
12-01 12:34:17.380: E/android.os.Debug(53): failed to load memtrack module: -2
12-01 12:34:40.450: E/logwrapper(318): executing /system/bin/ip failed: No such file or directory
12-01 12:34:40.540: E/logwrapper(319): executing /system/bin/ip failed: No such file or directory
12-01 12:34:40.620: E/logwrapper(320): executing /system/bin/ip failed: No such file or directory
12-01 12:34:40.670: E/logwrapper(321): executing /system/bin/ip failed: No such file or directory
12-01 12:34:40.860: E/logwrapper(322): executing /system/bin/ip failed: No such file or directory
12-01 12:34:40.940: E/logwrapper(323): executing /system/bin/ip failed: No such file or directory
12-01 12:34:41.070: E/logwrapper(325): executing /system/bin/ip failed: No such file or directory
12-01 12:34:49.790: E/EmojiFactory_jni(53): Failed to load libemoji.so: dlopen failed: library "libemoji.so" not found
12-01 12:36:16.980: E/PowerManagerService-JNI(438): Couldn't load power module (No such file or directory)
12-01 12:36:20.770: E/SurfaceFlinger(52): ro.sf.lcd_density must be defined as a build property
What can I do to fix it?
I've created an AVD (version 2.2) using preferences set as default.
However everytime I start it I got error messages list below:
12-26 16:19:07.566: ERROR/Zygote(33): setreuid() failed. errno: 2
12-26 16:19:15.707: ERROR/Zygote(33): setreuid() failed. errno: 17
12-26 16:19:17.635: ERROR/BatteryService(87): usbOnlinePath not found
12-26 16:19:17.635: ERROR/BatteryService(87): batteryVoltagePath not found
12-26 16:19:17.645: ERROR/BatteryService(87): batteryTemperaturePath not found
12-26 16:19:17.695: ERROR/SurfaceFlinger(87): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
12-26 16:19:48.305: ERROR/EventHub(87): could not get driver version for /dev/input/mouse0, Not a typewriter
12-26 16:19:48.305: ERROR/EventHub(87): could not get driver version for /dev/input/mice, Not a typewriter
12-26 16:19:48.495: ERROR/System(87): Failure starting core service
12-26 16:19:48.495: ERROR/System(87): java.lang.SecurityException
12-26 16:19:48.495: ERROR/System(87): at android.os.BinderProxy.transact(Native Method)
12-26 16:19:48.495: ERROR/System(87): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
12-26 16:19:48.495: ERROR/System(87): at android.os.ServiceManager.addService(ServiceManager.java:72)
12-26 16:19:48.495: ERROR/System(87): at com.android.server.ServerThread.run(SystemServer.java:184)
12-26 16:19:49.675: ERROR/SoundPool(87): error loading /system/media/audio/ui/Effect_Tick.ogg
12-26 16:19:49.685: ERROR/SoundPool(87): error loading /system/media/audio/ui/KeypressStandard.ogg
12-26 16:19:49.705: ERROR/SoundPool(87): error loading /system/media/audio/ui/KeypressSpacebar.ogg
12-26 16:19:49.716: ERROR/SoundPool(87): error loading /system/media/audio/ui/KeypressDelete.ogg
12-26 16:19:49.725: ERROR/SoundPool(87): error loading /system/media/audio/ui/KeypressReturn.ogg
12-26 16:19:54.736: ERROR/ThrottleService(87): Could not open GPS configuration file /etc/gps.conf
12-26 16:19:54.836: ERROR/ThrottleService(87): Error reading data file
12-26 16:19:55.816: ERROR/logwrapper(186): executing /system/bin/tc failed: No such file or directory
12-26 16:19:55.916: ERROR/logwrapper(188): executing /system/bin/tc failed: No such file or directory
12-26 16:19:55.995: ERROR/logwrapper(190): executing /system/bin/tc failed: No such file or directory
12-26 16:20:02.135: ERROR/logwrapper(202): executing /system/bin/tc failed: No such file or directory
12-26 16:20:02.245: ERROR/logwrapper(203): executing /system/bin/tc failed: No such file or directory
12-26 16:20:02.295: ERROR/logwrapper(204): executing /system/bin/tc failed: No such file or directory
12-27 00:20:16.924: ERROR/HierarchicalStateMachine(87): TetherMaster - unhandledMessage: msg.what=3
12-27 00:20:17.174: ERROR/HierarchicalStateMachine(87): TetherMaster - unhandledMessage: msg.what=3
12-27 00:20:21.224: ERROR/HierarchicalStateMachine(87): TetherMaster - unhandledMessage: msg.what=3
12-27 00:20:47.534: ERROR/MetadataRetrieverClient(34): failed to extract an album art
12-27 00:21:24.814: ERROR/ThrottleService(87): Error reading data file
Please let me know how can I fix these errors. Thanks a lot!
Unless you are experiencing actual problems, you can ignore error messages that occur during the startup of your emulator.