How to play android crash?

i check the Android smartphone, in command line mode to enter:

adb shell monkey -v 10000 the result is----------------------------------------------------------------------<start>: procrank: // Exception from procrank: java.io.IOException: Error running exec(). Command: [procrank] Working Directory: null Environment: null ...... ......... . .. ... ............. // anr traces status was 0 meminfo: // meminfo status was 0 ** Monkey aborted due to error. Events injected: 21566 :Dropped: keys=6938 pointers=14444 trackballs=0 flips=0 ## Network stats: elapsed time=454194ms (0ms mobile, 0ms wifi, 454194ms not connected) ** System appears to have crashed at event 21566 of 1000000 using seed 0 -------------------------------------------------------------------------------------<end> 

Can I play an event that 21566 out of 100000 uses seed 0?

and just execute one event 21566 out of 100000?

(someone will tell me that "adb shell am start", but I do not own this command.)

+4
source share
1 answer

When using a monkey to reproduce errors, it may be necessary to complete all the events that it made in the previous run in order to reproduce the error. Since the error can be the cause of the entire chain of events (i.e., changes in settings, start / stop applications ..).

A monkey event can be as simple as a touch command in a specific position, and if it is not in the exact right application with the right settings, it may not cause an error.

In some cases, this may be the effect of a single event, which causes it to stop. For example, if an event launches an application, and this application always crashes, then one event, most likely, will fail every time.

+2
source

Source: https://habr.com/ru/post/1440687/


All Articles