Coder Social home page Coder Social logo

advancedandroid's Issues

AMS中缓存mProviderMap即使缓存了目标ContentProvider,还是需要判断ContentProvider是否与客户端运行中同一进程

分析得很好,只是有个地方似乎不太对,可以讨论:

ActivityManagerService对于ContentProvider启动请求的处理.png 时序中:

AMS中缓存变量mProviderMap即使缓存了目标ContentProvider,还是需要判断ContentProvider是否与客户端运行中同一进程
中,如果ContentProvider与客户端进程可以运行中同一进程,即android:multiprocess为true,客户端进程还是需要实例化自己的ContentProvider。

场景是:ContentProvider所在APK进程CRUD调用,肯定会启动ContentProvider,它将会被缓存到AMS的mProviderMap,
此时另一个APK进程启动,判断android:multiprocess为true,即ContentProvider与客户端运行中同一进程中,此时该APK所在应用需要实例化一份自己的ContentProvider

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.