之前很好奇 為什麼
adb push test.apk /system/app
就可以把test.apk裝起來
然後把adb shell rm /system/app/test.apk
就可以把他刪除
原來是PackageManagerService裡有個AppDirObserver
其實就是extend android.os.FileObserver
然後再看FileObserver
原來他是用了linux裡的inotify這個feature
http://en.wikipedia.org/wiki/Inotify
Monday, November 1, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment