Giter Site home page Giter Site logo

memoryprovider's Introduction

说明

有时需要在不同进程间使用一个变量,并且修改时要给出通知。 通过SettingsProvider可以满足, 但是如果还需要重启后恢复默认值。这个程序就是用于这种情况。

map暂存

dumpsys memory_provider -h
dumpsys memory_provider put test test
dumpsys memory_provider list

SeLinux 报错处理

./packages/services/Car/car_product/sepolicy/public/service.te
添加如下
type memory_provider, service_manager_type;

./packages/services/Car/car_product/sepolicy/private/service_contexts
添加如下
memory_provider  u:object_r:memory_provider:s0

./packages/services/Car/car_product/sepolicy/private/system_server.te
添加如下
allow system_server memory_provider:service_manager { add find };

./packages/services/Car/car_product/sepolicy/private/system_app.te
添加如下
allow system_app memory_provider:service_manager { add find };

sh调用

adb shell content call --uri content://memory_provider --method timeout --arg 10
adb shell content call --uri content://memory_provider --method cmd --arg ls

TODO

sharedUserId="android.uid.system"并非 "android.uid.shell"shell是否能够执行

memoryprovider's People

Contributors

tangzejin921 avatar

Watchers

 avatar

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.