top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Android: Is there a persistent storage for framework services like Apps have with preferences?

+3 votes
487 views

I want to know if there is a way to some settings to be used by framework services such as ActivityManagerService of WindowManagerService like apps can do with preferences. They should be able to store some of their variables into some persistent storage and read them at bootup.

Currently, I found only the xml files in res/res folder but this is editable only at compile time.

posted Apr 8, 2014 by Parveen

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

I wanted to know how external primary storage is created and removed in multiuser android framework. When a new user is created the framework creates a folder with userid in /mnt/shell/emulated eg: /mnt/shell/emulated/10 and MediaProvider creates DCIM, Alarms etc folders inside 10 in createDefaultFolders function.

I am trying to mount this 10 folder over itself using ecryptfs when user is created so that the data written to it is encrypted. When the user is removed I unmount 10 using ecryptfs. Then when I go to /mnt/shell/emulated and list files I don't see 10 folder. But when I do mkdir 10 there it says File Exists. So I need to trace if there is an error in removing encrypted files. Which process or service removes these folders? I also noticed there is a bind mount for oob for each new user. This links /mnt/shell/emulated/obb to /mnt/shell/emulated/10/obb. This mount is done after I mount ecryptfs over /mnt/shell/emulated/10 which means that obb mount point will also b encrypted. I am not sure if this is interfering with the folder removal process. How do I track where the removal is failing?

+1 vote

I am doing some changes in frameworks/base/, so i just wanted to know whether there is a faster process of building it. Currently what i follow is very slow i.e. I do

$ make -j4 installclean // which cleans *.img files from the /out folder
$ make -j4

and finally it creates all *.img. So apart from the above process, is there a way for a single line of change can be built fast ?

+3 votes

We know there are bootstrap themes for free to use but don't know if there is same for android layouts so that we can reduce the time while designing the app UI. If someone know, please share the link?

...