Aller au contenu

probléme cryptage des


jaafar

Recommended Posts

salut j'ai changé code mais toujours le mémé problème lorsque je fais RUn il m'affiche un message d'exception

voila mon code

import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.ShortBufferException;
import javax.crypto.spec.SecretKeySpec;



public class PrivateExample{

protected static String crypting(String textToCrypting, String keyString ) {
// Objet de cette classe offre des fonctionnalités pour
// Chiffrement et le déchiffrement.
Cipher cipher = null;
try {
// Paramètre "DES" spécifie le type de chiffrement que nous voulons créer
// Par la méthode de l'usine. Il comprend l'algorithme, le mode et
// Remplissage. Vous pouvez définir seul algorithme et, dans ce cas par défaut
// Valeurs seront utilisées pour la mode et de rembourrage.
cipher = Cipher.getInstance("DES");
} catch (NoSuchAlgorithmException ex) {
// Algorithme cryptographique demandé n'est pas disponible
ex.printStackTrace();
} catch (NoSuchPaddingException ex) {
// Demande un mécanisme de remplissage n'est pas disponible dans l'environnement.
ex.printStackTrace();
}


// La longueur de keystring est de 8. Il est caractéristique importante
// Pour le chiffrement

byte[] keyData = keyString.getBytes();

// Objet clé spécifie une clé secrète
// On utilise pour construire la clé secrète pour notre moteur de chiffrement à partir d'un octet
// Tableau
SecretKeySpec key = new SecretKeySpec(keyData, 0, keyData.length, "DES");
try {
// Initialisation de la mise en place le type d'opération, c'est pour être
// Utilisé pour. Dans ce cas - pour le chiffrement.
cipher.init(Cipher.ENCRYPT_MODE, key);
} catch (InvalidKeyException ex) {
// Donnée objet clé est inapproprié pour l'initialisation de ce chiffre
ex.printStackTrace();
}


int cypheredBytes = 0;


byte[] inputBytes = textToCrypting.getBytes();
byte[] outputBytes = new byte[100];
try {
// Méthode doFinal crypte les données au tableau outputBytes.
//Chiffres pour inconnu ou grandes quantités de données mise à jour méthode plus recommandé
// Nombre d'octets cryptés sauvegardés dans cypheredBytes variable
cypheredBytes = cipher.doFinal(inputBytes, 0, inputBytes.length, outputBytes, 0);
} catch (IllegalStateException ex) {
ex.printStackTrace();
} catch (ShortBufferException ex) {
ex.printStackTrace();
} catch (IllegalBlockSizeException ex) {
ex.printStackTrace();
} catch (BadPaddingException ex) {
ex.printStackTrace();
}


String str = new String(outputBytes, 0, cypheredBytes);
inputBytes = str.getBytes();
return str;
}
// Changement d'état de l'objet de chiffrement pour le déchiffrement

protected static String decrypting(String textCrypting, String keyString ) {
//Object of this class provides the functionality for
//encryption and decryption.
Cipher cipher = null;
try {
//parameter "DES" specifies type of cipher we want to create
//through the factory method. It includes algorithm, mode and
//padding. You can define only algorithm and in that case default
//values will be used for mode and padding.
cipher = Cipher.getInstance("DES");
} catch (NoSuchAlgorithmException ex) {
ex.printStackTrace();
} catch (NoSuchPaddingException ex) {
ex.printStackTrace();
}


//The lenght of keyString is 8. It's important characteristic
//for encryption

byte[] keyData = keyString.getBytes();

//key object specifies a secret key
//it uses to construct the secret key for our cipher object from a byte
//array
SecretKeySpec key = new SecretKeySpec(keyData, 0, keyData.length, "DES");

try {
//change state of the cipher object for decrypting
cipher.init(Cipher.DECRYPT_MODE, key);
} catch (InvalidKeyException ex) {
ex.printStackTrace();

}
int cypheredBytes = 0;
byte[] inputBytes = textCrypting.getBytes();
byte[] outputBytes = new byte[1000];
try {
//decrypts data
cypheredBytes = cipher.doFinal(inputBytes, 0, inputBytes.length,
outputBytes, 0);
} catch (IllegalStateException ex) {

} catch (ShortBufferException ex) {

} catch (IllegalBlockSizeException ex) {

} catch (BadPaddingException ex) {

}

String str = new String(outputBytes, 0, cypheredBytes);
return str;
}

} 

04-01 13:25:30.437: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
04-01 13:25:30.437: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
04-01 13:25:30.437: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
04-01 13:25:30.437: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
04-01 13:25:41.656: ERROR/MemoryHeapBase(51): error opening /dev/pmem: No such file or directory
04-01 13:25:41.656: ERROR/SurfaceFlinger(51): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
04-01 13:25:41.797: ERROR/libEGL(51): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
04-01 13:25:42.256: ERROR/libEGL(62): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
04-01 13:25:46.267: ERROR/BatteryService(51): Could not open '/sys/class/power_supply/usb/online'
04-01 13:25:46.267: ERROR/BatteryService(51): Could not open '/sys/class/power_supply/battery/batt_vol'
04-01 13:25:46.267: ERROR/BatteryService(51): Could not open '/sys/class/power_supply/battery/batt_temp'
04-01 13:25:46.946: ERROR/EventHub(51): could not get driver version for /dev/input/mouse0, Not a typewriter
04-01 13:25:46.946: ERROR/EventHub(51): could not get driver version for /dev/input/mice, Not a typewriter
04-01 13:25:47.187: ERROR/System(51): Failure starting core service
04-01 13:25:47.187: ERROR/System(51): java.lang.SecurityException
04-01 13:25:47.187: ERROR/System(51):     at android.os.BinderProxy.transact(Native Method)
04-01 13:25:47.187: ERROR/System(51):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
04-01 13:25:47.187: ERROR/System(51):     at android.os.ServiceManager.addService(ServiceManager.java:72)
04-01 13:25:47.187: ERROR/System(51):     at com.android.server.ServerThread.run(SystemServer.java:162)
04-01 13:25:47.197: ERROR/AndroidRuntime(51): Crash logging skipped, no checkin service
04-01 13:25:49.798: ERROR/ActivityThread(110): Failed to find provider info for com.google.settings
04-01 13:25:49.798: ERROR/ActivityThread(110): Failed to find provider info for com.google.settings
04-01 13:25:49.798: ERROR/ApplicationContext(51): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml
04-01 13:25:49.798: ERROR/vold(26): Cannot start volume '/sdcard' (volume is not bound)
04-01 13:25:54.077: ERROR/ActivityThread(106): Failed to find provider info for android.server.checkin
04-01 13:25:55.017: ERROR/ActivityThread(51): Failed to find provider info for com.google.settings
04-01 13:25:55.017: ERROR/ActivityThread(51): Failed to find provider info for com.google.settings
04-01 13:25:55.777: ERROR/ActivityThread(106): Failed to find provider info for android.server.checkin
04-01 13:25:55.968: ERROR/ActivityThread(106): Failed to find provider info for android.server.checkin
04-01 13:26:02.557: ERROR/AndroidRuntime(231): Uncaught handler: thread main exiting due to uncaught exception
04-01 13:26:02.587: ERROR/AndroidRuntime(231): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ok.example.com/ok.example.com.main}: java.lang.ClassNotFoundException: ok.example.com.main in loader dalvik.system.PathClassLoader@4376aab0
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2324)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread.access$2100(ActivityThread.java:116)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.os.Looper.loop(Looper.java:123)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread.main(ActivityThread.java:4203)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at java.lang.reflect.Method.invokeNative(Native Method)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at java.lang.reflect.Method.invoke(Method.java:521)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at dalvik.system.NativeStart.main(Native Method)
04-01 13:26:02.587: ERROR/AndroidRuntime(231): Caused by: java.lang.ClassNotFoundException: ok.example.com.main in loader dalvik.system.PathClassLoader@4376aab0
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.Instrumentation.newActivity(Instrumentation.java:1097)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     ... 11 more
04-01 13:26:02.607: ERROR/dalvikvm(231): Unable to open stack trace file '/data/anr/traces.txt': Permission denied

Lien vers le commentaire
Partager sur d’autres sites

salut j'ai changé code mais toujours le mémé problème lorsque je fais RUn il m'affiche un message d'exception

voila mon code

import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.ShortBufferException;
import javax.crypto.spec.SecretKeySpec;



public class PrivateExample{

protected static String crypting(String textToCrypting, String keyString ) {
// Objet de cette classe offre des fonctionnalités pour
// Chiffrement et le déchiffrement.
Cipher cipher = null;
try {
// Paramètre "DES" spécifie le type de chiffrement que nous voulons créer
// Par la méthode de l'usine. Il comprend l'algorithme, le mode et
// Remplissage. Vous pouvez définir seul algorithme et, dans ce cas par défaut
// Valeurs seront utilisées pour la mode et de rembourrage.
cipher = Cipher.getInstance("DES");
} catch (NoSuchAlgorithmException ex) {
// Algorithme cryptographique demandé n'est pas disponible
ex.printStackTrace();
} catch (NoSuchPaddingException ex) {
// Demande un mécanisme de remplissage n'est pas disponible dans l'environnement.
ex.printStackTrace();
}


// La longueur de keystring est de 8. Il est caractéristique importante
// Pour le chiffrement

byte[] keyData = keyString.getBytes();

// Objet clé spécifie une clé secrète
// On utilise pour construire la clé secrète pour notre moteur de chiffrement à partir d'un octet
// Tableau
SecretKeySpec key = new SecretKeySpec(keyData, 0, keyData.length, "DES");
try {
// Initialisation de la mise en place le type d'opération, c'est pour être
// Utilisé pour. Dans ce cas - pour le chiffrement.
cipher.init(Cipher.ENCRYPT_MODE, key);
} catch (InvalidKeyException ex) {
// Donnée objet clé est inapproprié pour l'initialisation de ce chiffre
ex.printStackTrace();
}


int cypheredBytes = 0;


byte[] inputBytes = textToCrypting.getBytes();
byte[] outputBytes = new byte[100];
try {
// Méthode doFinal crypte les données au tableau outputBytes.
//Chiffres pour inconnu ou grandes quantités de données mise à jour méthode plus recommandé
// Nombre d'octets cryptés sauvegardés dans cypheredBytes variable
cypheredBytes = cipher.doFinal(inputBytes, 0, inputBytes.length, outputBytes, 0);
} catch (IllegalStateException ex) {
ex.printStackTrace();
} catch (ShortBufferException ex) {
ex.printStackTrace();
} catch (IllegalBlockSizeException ex) {
ex.printStackTrace();
} catch (BadPaddingException ex) {
ex.printStackTrace();
}


String str = new String(outputBytes, 0, cypheredBytes);
inputBytes = str.getBytes();
return str;
}
// Changement d'état de l'objet de chiffrement pour le déchiffrement

protected static String decrypting(String textCrypting, String keyString ) {
//Object of this class provides the functionality for
//encryption and decryption.
Cipher cipher = null;
try {
//parameter "DES" specifies type of cipher we want to create
//through the factory method. It includes algorithm, mode and
//padding. You can define only algorithm and in that case default
//values will be used for mode and padding.
cipher = Cipher.getInstance("DES");
} catch (NoSuchAlgorithmException ex) {
ex.printStackTrace();
} catch (NoSuchPaddingException ex) {
ex.printStackTrace();
}


//The lenght of keyString is 8. It's important characteristic
//for encryption

byte[] keyData = keyString.getBytes();

//key object specifies a secret key
//it uses to construct the secret key for our cipher object from a byte
//array
SecretKeySpec key = new SecretKeySpec(keyData, 0, keyData.length, "DES");

try {
//change state of the cipher object for decrypting
cipher.init(Cipher.DECRYPT_MODE, key);
} catch (InvalidKeyException ex) {
ex.printStackTrace();

}
int cypheredBytes = 0;
byte[] inputBytes = textCrypting.getBytes();
byte[] outputBytes = new byte[1000];
try {
//decrypts data
cypheredBytes = cipher.doFinal(inputBytes, 0, inputBytes.length,
outputBytes, 0);
} catch (IllegalStateException ex) {

} catch (ShortBufferException ex) {

} catch (IllegalBlockSizeException ex) {

} catch (BadPaddingException ex) {

}

String str = new String(outputBytes, 0, cypheredBytes);
return str;
}

} 

04-01 13:25:30.437: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
04-01 13:25:30.437: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
04-01 13:25:30.437: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
04-01 13:25:30.437: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
04-01 13:25:41.656: ERROR/MemoryHeapBase(51): error opening /dev/pmem: No such file or directory
04-01 13:25:41.656: ERROR/SurfaceFlinger(51): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
04-01 13:25:41.797: ERROR/libEGL(51): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
04-01 13:25:42.256: ERROR/libEGL(62): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
04-01 13:25:46.267: ERROR/BatteryService(51): Could not open '/sys/class/power_supply/usb/online'
04-01 13:25:46.267: ERROR/BatteryService(51): Could not open '/sys/class/power_supply/battery/batt_vol'
04-01 13:25:46.267: ERROR/BatteryService(51): Could not open '/sys/class/power_supply/battery/batt_temp'
04-01 13:25:46.946: ERROR/EventHub(51): could not get driver version for /dev/input/mouse0, Not a typewriter
04-01 13:25:46.946: ERROR/EventHub(51): could not get driver version for /dev/input/mice, Not a typewriter
04-01 13:25:47.187: ERROR/System(51): Failure starting core service
04-01 13:25:47.187: ERROR/System(51): java.lang.SecurityException
04-01 13:25:47.187: ERROR/System(51):     at android.os.BinderProxy.transact(Native Method)
04-01 13:25:47.187: ERROR/System(51):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
04-01 13:25:47.187: ERROR/System(51):     at android.os.ServiceManager.addService(ServiceManager.java:72)
04-01 13:25:47.187: ERROR/System(51):     at com.android.server.ServerThread.run(SystemServer.java:162)
04-01 13:25:47.197: ERROR/AndroidRuntime(51): Crash logging skipped, no checkin service
04-01 13:25:49.798: ERROR/ActivityThread(110): Failed to find provider info for com.google.settings
04-01 13:25:49.798: ERROR/ActivityThread(110): Failed to find provider info for com.google.settings
04-01 13:25:49.798: ERROR/ApplicationContext(51): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml
04-01 13:25:49.798: ERROR/vold(26): Cannot start volume '/sdcard' (volume is not bound)
04-01 13:25:54.077: ERROR/ActivityThread(106): Failed to find provider info for android.server.checkin
04-01 13:25:55.017: ERROR/ActivityThread(51): Failed to find provider info for com.google.settings
04-01 13:25:55.017: ERROR/ActivityThread(51): Failed to find provider info for com.google.settings
04-01 13:25:55.777: ERROR/ActivityThread(106): Failed to find provider info for android.server.checkin
04-01 13:25:55.968: ERROR/ActivityThread(106): Failed to find provider info for android.server.checkin
04-01 13:26:02.557: ERROR/AndroidRuntime(231): Uncaught handler: thread main exiting due to uncaught exception
04-01 13:26:02.587: ERROR/AndroidRuntime(231): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ok.example.com/ok.example.com.main}: java.lang.ClassNotFoundException: ok.example.com.main in loader dalvik.system.PathClassLoader@4376aab0
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2324)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread.access$2100(ActivityThread.java:116)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.os.Looper.loop(Looper.java:123)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread.main(ActivityThread.java:4203)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at java.lang.reflect.Method.invokeNative(Native Method)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at java.lang.reflect.Method.invoke(Method.java:521)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at dalvik.system.NativeStart.main(Native Method)
04-01 13:26:02.587: ERROR/AndroidRuntime(231): Caused by: java.lang.ClassNotFoundException: ok.example.com.main in loader dalvik.system.PathClassLoader@4376aab0
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.Instrumentation.newActivity(Instrumentation.java:1097)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316)
04-01 13:26:02.587: ERROR/AndroidRuntime(231):     ... 11 more
04-01 13:26:02.607: ERROR/dalvikvm(231): Unable to open stack trace file '/data/anr/traces.txt': Permission denied

Tu sembles appeler une classe qui n'est pas trouvée par le classloader

Caused by: java.lang.ClassNotFoundException: ok.example.com.main in loader dalvik.system.PathClassLoader@4376aab0

Ou as tu définis cette classe ?

Lien vers le commentaire
Partager sur d’autres sites

Tu sembles appeler une classe qui n'est pas trouvée par le classloader

Caused by: java.lang.ClassNotFoundException: ok.example.com.main in loader dalvik.system.PathClassLoader@4376aab0

Ou as tu définis cette classe ?

oui tu a raison il appel a la fonction main mais j'ai fait quelque changement et toujours le méme probléme

logcat

04-03 13:07:23.253: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
04-03 13:07:23.253: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
04-03 13:07:23.253: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
04-03 13:07:23.253: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
04-03 13:07:33.753: ERROR/MemoryHeapBase(51): error opening /dev/pmem: No such file or directory
04-03 13:07:33.753: ERROR/SurfaceFlinger(51): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
04-03 13:07:33.873: ERROR/libEGL(51): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
04-03 13:07:34.294: ERROR/libEGL(62): couldn't load <libhgl.so> library (Cannot load library: load_library[984]: Library 'libhgl.so' not found)
04-03 13:07:37.744: ERROR/BatteryService(51): Could not open '/sys/class/power_supply/usb/online'
04-03 13:07:37.744: ERROR/BatteryService(51): Could not open '/sys/class/power_supply/battery/batt_vol'
04-03 13:07:37.744: ERROR/BatteryService(51): Could not open '/sys/class/power_supply/battery/batt_temp'
04-03 13:07:38.433: ERROR/EventHub(51): could not get driver version for /dev/input/mouse0, Not a typewriter
04-03 13:07:38.433: ERROR/EventHub(51): could not get driver version for /dev/input/mice, Not a typewriter
04-03 13:07:38.725: ERROR/System(51): Failure starting core service
04-03 13:07:38.725: ERROR/System(51): java.lang.SecurityException
04-03 13:07:38.725: ERROR/System(51):     at android.os.BinderProxy.transact(Native Method)
04-03 13:07:38.725: ERROR/System(51):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
04-03 13:07:38.725: ERROR/System(51):     at android.os.ServiceManager.addService(ServiceManager.java:72)
04-03 13:07:38.725: ERROR/System(51):     at com.android.server.ServerThread.run(SystemServer.java:162)
04-03 13:07:38.734: ERROR/AndroidRuntime(51): Crash logging skipped, no checkin service
04-03 13:07:44.253: ERROR/ActivityThread(109): Failed to find provider info for com.google.settings
04-03 13:07:44.253: ERROR/ActivityThread(109): Failed to find provider info for com.google.settings
04-03 13:07:45.223: ERROR/ApplicationContext(51): Couldn't create directory for SharedPreferences file shared_prefs/wallpaper-hints.xml
04-03 13:07:47.883: ERROR/vold(26): Cannot start volume '/sdcard' (volume is not bound)
04-03 13:07:45.526: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
04-03 13:07:47.936: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
04-03 13:07:48.266: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
04-03 13:07:51.136: ERROR/AndroidRuntime(201): Uncaught handler: thread main exiting due to uncaught exception
04-03 13:07:51.206: ERROR/AndroidRuntime(201): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.cryptage/com.example.cryptage.DES}: java.lang.ClassCastException: com.example.cryptage.DES
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2324)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at android.app.ActivityThread.access$2100(ActivityThread.java:116)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at android.os.Looper.loop(Looper.java:123)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at android.app.ActivityThread.main(ActivityThread.java:4203)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at java.lang.reflect.Method.invokeNative(Native Method)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at java.lang.reflect.Method.invoke(Method.java:521)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at dalvik.system.NativeStart.main(Native Method)
04-03 13:07:51.206: ERROR/AndroidRuntime(201): Caused by: java.lang.ClassCastException: com.example.cryptage.DES
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at android.app.Instrumentation.newActivity(Instrumentation.java:1097)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2316)
04-03 13:07:51.206: ERROR/AndroidRuntime(201):     ... 11 more
04-03 13:07:51.246: ERROR/dalvikvm(201): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
04-03 13:07:53.046: ERROR/ActivityThread(51): Failed to find provider info for com.google.settings
04-03 13:07:53.096: ERROR/ActivityThread(51): Failed to find provider info for com.google.settings

Lien vers le commentaire
Partager sur d’autres sites

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

×
×
  • Créer...