hi,all
file :android2.3.4/frameworks/base/include/ui/InputManager.h
class:class InputManager : public InputManagerInterface
I make the following changes:
from:
--------------------
private:
sp<InputReaderInterface> mReader;
sp<InputReaderThread> mReaderThread;
sp<InputDispatcherInterface> mDispatcher;
sp<InputDispatcherThread> mDispatcherThread;
void initialize();
--------------------
to:
--------------------
private:
sp<InputReaderInterface> mReader;
sp<InputReaderInterface> mReader1; //Add a variable
sp<InputReaderThread> mReaderThread;
sp<InputDispatcherInterface> mDispatcher;
sp<InputDispatcherThread> mDispatcherThread;
void initialize();
--------------------
As above, I add a variable, leading to memory leaks, android upper restart.
I do not know why.