[2009-10-12 이백]
소스 분석중 system_server 와 mediaserver 의 코드는 동일한 동작을 보이고 있습니다.
그래서 저번 스터디시에 혼동이 있었는데요. 훓어 보니 동일한 동작이 아니였습니다.
타겟의 ps 로 보면, mediaserver 가 system_server 보다 빨리 시작되었다는 것을 알 수 있는데, 저희는 zygote 를 따라 가다 보니 system_server 를 먼저 분석하게 되었지요.
우선 이번주 스터디를 위해서 각각의 역할을 클리어 하게 정의 되어야 할 것 같다.
프로세스의 상태를 보면 아래와 같습니다.
root 1 0 280 192 c00bd90c 0000c8dc S /init
:
root 1783 1 69252 19788 c00bd90c afe0c584 S zygote
media 1784 1 16232 3620 ffffffff afe0c45c S /system/bin/mediaserver
system 1807 1783 185064 26652 ffffffff afe0c45c S system_server
mediaserver 는 init 에 의해서 생성 되었고,
system_server 는 zygote 에 의해서 생성 되었다.
코드를 분석하면, 먼저 system_server 를 저번 주에 보았습니다.
자세히 보면, system_server 는 SurfaceFlinger::instantiate(); 만 실행하도록 되어 있습니다.
proc->supportsProcesses() 는 true 를 리턴하도록 되어 있기 때문이지요.
이로서 저번 시간에 왜 동일한 동작을 할까??? 에 대한 부분은 해결 되었습니다.
proc->supportsProcesses() 를 false 로 되는 환경이 있나 봅니다.
// frameworks/base/cmds/system_server/library/system_init.cpp
:
if (strcmp(propBuf, "1") == 0) {
// Start the SurfaceFlinger
SurfaceFlinger::instantiate();
}
// On the simulator, audioflinger et al don't get started the
// same way as on the device, and we need to start them here
if (!proc->supportsProcesses()) {
// Start the AudioFlinger
AudioFlinger::instantiate();
// Start the media playback service
MediaPlayerService::instantiate();
// Start the camera service
CameraService::instantiate();
}
:
실제로 mediaserver 에서 아래 서비스 provider 들이 시작 될 것입니다.
AudioFlinger::instantiate();
MediaPlayerService::instantiate();
CameraService::instantiate();
// frameworks/base/media/mediaserver/main_mediaserver.cpp
int main(int argc, char** argv)
{
sp<ProcessState> proc(ProcessState::self());
sp<IServiceManager> sm = defaultServiceManager();
LOGI("ServiceManager: %p", sm.get());
AudioFlinger::instantiate();
MediaPlayerService::instantiate();
CameraService::instantiate();
ProcessState::self()->startThreadPool();
IPCThreadState::self()->joinThreadPool();
}
proc->supportsProcesses() 를 false 로 되는 환경이 있나 봅니다.
아마도 위의 소스 코드의 주석을 봤을때는 simulator로 돌고 있을때는 false가 되지 않을까 싶은데요??
http://developer.android.com/reference/android/os/Process.html
여기에 보면 supportsProcess() 함수에 대한 설명을 해놓고 있네요.
Determine whether the current environment supports multiple processes.
Returns
- Returns true if the system can run in multiple processes, else false if everything is running in a single process.
coach handbags
Manchmal sind die Leute werben für sich als eine Sache und dann, wenn man tief in sie zu erhalten Sie erkennen, dass sie etwas ganz anderes sind . Entweder gab es einige gute Marketing an einem schrecklichen Buch , oder die Geschichte wurde nur in einer oberfl?chlichen Weise erkl?rt und einmal erreichen Sie das Mitte des Buches , merkt man, es gibt so viel mehr zu diesem Buch als jemand jemals gesagt habe .coach purses
Das Leben ist nicht permanent, so dass immer im Jetzt zu leben. Drücken Sie Ihre Dankbarkeit für Ihre Lieben in Worte. Zeigen Sie Ihre Versorgung mit Aktionen . G?nnen Alltag wie die letzte Episode des Lebens. Auf diese Weise , wenn Sie weg sind, geliebt diejenigen würde nichts zu spüren leid haben .coach purses outlet
Aber das abgelehnt Liebhaber oder Mate nicht leisten k?nnen, zu glauben, dass seine Geliebte hat frei von ihm abgewandt --- und so schreibt er unheimlich oder magische Objekte, die dem Eindringling . Er nennt ihn einen Hypnotiseur oder ein Dieb oder ein Haus - Leistungsschalter . In der überwiegenden Mehrzahl der F?lle jedoch, wenn ein Haus defekt ist, hat das Brechen lange bevor "Dritte" auf der Bildfl?che erschienen ist, begonnen.http://www.coachhandbagsoff70.com
Sie beginnen langsam. Die Geschichte beginnt sich zu entfalten. Sie sind unsicher . Es ist eine gro?e Verpflichtung schleppen diese W?lzer herum. Vielleicht wird dieses Buch nicht so toll, aber fühlen Sie sich darum, es auf schuldig. Vielleicht ist es bald so schrecklich Sie Hass - Lesen zu halten oder einfach nur stellte es sofort und nie wieder abholen . Oder vielleicht werden Sie kommen zurück, um es einige Nacht , betrunken oder einsam - brauchen etwas, um die Zeit zu füllen , aber es wird nicht besser sein , als es beim ersten Starten lesen war .Coach Factory
Ein Leser in Florida, offenbar durch einige pers?nliche Erfahrung zerschlagen, schreibt in sich zu beschweren : "Wenn ich ein Nickel im Wert von Waren zu stehlen , ich ein Dieb bin und bestraft , aber wenn ich die Liebe eines anderen Frau stehlen , ich bin frei . "Coach Outlet
Nichts wert, im Leben ist jemals einfach . Wenn Sie für eine gute Arbeit machen wollen, es geht um eine Menge harter Arbeit zu nehmen , es zu tun . Und du gehst zu haben , um aus der Komfort-Zone und einige Chancen , die den Mist erschrecken aus dir wird .coachfactory.com/stroe
Sie wollen einfach nur mehr von der Geschichte . Sie wollen lesen , vielleicht alles, was dieser Autor jemals geschrieben. Sie wünschte, es würde nie enden . Je n?her es auf den kleineren Seite der Seiten ist, desto langsamer Sie lesen, wollte es alle genie?en. Dieses Buch ist heute einer der Favoriten für immer. Du wirst immer wünschte, du k?nntest zurück , nie es gelesen zu haben und holen Sie es wieder frisch , aber auch Sie wissen, dass Sie besser mit dieser N?he , in Ihnen , für Ihr Herz und Verstand .Coach Outlet Online
Es fiel mir neulich , dass ich vielleicht nicht gekommen, das Leben zu lieben , wie ich , wenn ich hadn 't blind gewesen zu tun haben . Ich glaube an das Leben jetzt . Ich bin mir nicht so sicher, dass ich daran glaubte so tief sein, sonst . I don 't bedeuten, dass ich lieber ohne meine Augen gehen . Ich meine einfach , dass der Verlust von ihnen hat mich sch?tzen die mehr , was ich noch hatte .coach factory outlet online
nfl jerseys wholesale
nike air max 95
nike uk
louis vuitton outlet online
coach outlet online
yeezy boost 350
polo ralph lauren
tods shoes
chaussures louboutin
polo ralph lauren outlet
broncos jerseys
longchamp bags
michael kors outlet clearance
discount oakley sunglasses
louis vuitton factory outlet
coach outlet online
kate spade outlet online
birkenstock
coach outlet store online
mulberry
ray ban sunglasses sale
air max
coach factory outlet online
louis vuitton purses
air max
coach factory outlet online
michael kors outlet online
adidas nmd r1
christian louboutin uk
adidas nmd runner
ray ban sunglasses discount
rolex watches
kate spade outlet store
coach outlet online
fitflops sale
michael kors bags
true religion
discount oakley sunglasses
toms
polo ralph lauren outlet
rangers jerseys
coach factory outlet
eahawks jerseys
toms shoes
michael kors outlet online
michael kors outlet clearance
fendi bags
coach purses
cheap air jordans
birkenstock uk
coach factory outlet online
ralph lauren outlet online
coach factory outlet
jordan shoes
nfl jerseys
coach outlet online
michael kors outlet store
cheap jerseys
yeezy boost
coach outlet online
ralph lauren outlet online
adidas uk
coach factory outlet
packers jerseys
christian louboutin outlet
moncler pas cher
michael kors outlet clearance
michael kors outlet store
louboutin pas cher
fitflops clearance
michael kors purses
moncler uk
yeezy boost 350
michael kors outlet store
marc jacobs
fitflop
michael kors uk
nike sneakers
cheap air max
cheap oakley sunglasses
michael kors outlet canada
coach factory outlet online
adidas outlet online
coach outlet store online
coach outlet online
ralph lauren outlet
burberry outlet store
pandora charms sale clearance
coach outlet store online clearance
patriots jerseys
ray ban glasses
chaussures louboutin
pandora charms
coach factory outlet online
michael kors
kate spade outlet online
polo ralph lauren
fitflops sale
polo ralph lauren outlet online
james shoes
red bottom
adidas sneakers
cheap nike shoes
moncler coats
jordan uk
toms outlet
cheap jordans for sale
louis vuitton outlet online
mont blanc pen
cheap oakley sunglasses
pandora
valentino outlet
ralph lauren outlet
mbt
coach outlet store online
hollister clothing store
swarovski crystals
pandora charms sale clearance
abercrombie outlet
nike outlet
nfl jerseys cheap
michael kors outlet online
jordan femmes pas cher
fitflops sale clearance
hollister clothing
mont blanc pen
coach outlet online
michael kors outlet store
jimmy choo shoes
michael kors
moncler jackets
coach factory outlet
michael kors outlet online
pandora jewellery
cheap oakley sunglasses
ralph lauren outlet
cheap oakley sunglasses
mulberry bags
celine handbags
moncler jackets
adidas running shoes
air max 90
wireless beats headphones
nike roshe one
adidas
nike roshe shoes
michael kors outlet store
adidas yeezy boost
coach outlet store online
coach outlet online
kate spade bags
oakley sunglasses outlet
adidas yeezy boost
jordan shoes
coach outlet online
bercrombie
longchamp handbags
nike outlet store
true religion jeans outlet
gucci
nike outlet store
versace
michael kors outlet online
louis vuitton bags
burberry outlet
pandora jewelry outlet
ralph lauren uk
pandora charms sale
ed hardy clothing
cheap ray ban sunglasses
rolex replica watches
coach outlet online
dolce and gabbana outlet online
nike outlet online
yeezy boost
pandora jewelry outlet
louboutin shoes
oakley sunglasses outlet
yeezy boost
nfl jerseys wholesale
adidas outlet online
gucci bags
air jordans
fit flops
yeezy boost 350 v2
mulberry uk
marc jacobs outlet
michael kors outlet store
pandora jewelry
michael kors outlet
kobe bryant shoes
ralph lauren
oakley sunglasses outlet
coach outlet online
pandora charms outlet
louboutin outlet
cheap jordan shoes
yankees jerseys
michael kors outlet
adidas nmd r1
ghd hair
michael kors
cheap jordan shoes
adidas yeezy boost
heat jerseys
ralph lauren outlet
adidas superstars
adidas trainers
hollister kids
pandora charms
oakley sunglasses on sale
ray ban sunglasses cheap
coach outlet online
nike outlet
coach factory outlet online
oakley sunglasses cheap
michael kors bags
true religion jeans outlet
cardinals jerseys
coach outlet online
coach outlet online
montblanc
michael kors outlet store
michael kors handbags outlet
kate spade outlet online
longchamp soldes
coach outlet
tommy hilfiger windbreaker
moncler outlet online
moncler uk
tigers jerseys
fitflops clearance
ralph lauren
dansko outlet
christian louboutin sale
cheap oakley sunglasses
kate spade outlet
ray ban sunglasses outlet
polo ralph lauren outlet
jordan retro
coach factory outlet
longchamps
louboutin outlet
coach outlet online
nike tn pas cher
ray ban sunglasses discount
cubs jerseys
oakley sunglasses outlet
cavaliers jerseys
pandora charms outlet
red bottom
oakley sunglasses wholesale
mlb jerseys
adidas trainers
pandora jewelry store
louboutin shoes
adidas ultra boost
air max
red bottom shoes for women
discount nike shoes
coach outlet online
true religion outlet store
gucci handbags outlet
kate spade bags
louis vuitton handbags
kate spade purses
ralph lauren sale clearance uk
thunder jerseys
adidas yeezy boost
ray ban sale
longchamp handbags
nike air max
christian louboutin shoes
ralph lauren
swarovski uk
ed hardy outlet
true religion uk
fitflop
jerseys cheap
white sox jerseys
chi flat iron
ralph lauren sale
mulberry handbags
louboutin shoes
curry shoes
nike cortez classic
coach outlet online
dodgers jerseys
nmd adidas
lebron shoes
fake rolex watches
fitflops
polo ralph lauren
air max outlet
adidas nmd r1
christian louboutin
polo ralph lauren outlet
coach factory outlet
true religion sale
gucci outlet online
polo ralph lauren outlet online
pandora jewellery
sac louis vuitton pas cher
ray bans
beats by dre
yeezy shoes
louis vuitton outlet online
michael kors
birkenstock shoes
true religion jeans outlet
michael kors handbags clearance
coach handbags outlet
vans outlet
adidas outlet store
ralph lauren
christian louboutin pas cher
jordans
yeezy shoes
phillies jerseys
beats wireless headphones
coach factory outlet
ralph lauren sale clearance uk
yeezy 350 boost
louis vuitton factory outlet
eltics jerseys
cheap oakley sunglasses
coach factory outlet
ray bans
nike free run
fit flops
christian louboutin
michael kors outlet store
celine outlet online
birkenstock outlet
kate spade
michael kors outlet online
timberland boots outle
michael kors outlet clearance
hermes bag
fred perry shirts
polo ralph lauren
montblanc pens
beats headphones
cheap rolex replica watches
true religion jeans
adidas store
discount oakley sunglasses
coach outlet online
kate spade outlet online
nike air huarache
giants jerseys
adidas outlet store
longchamp handbags
coach outlet store
adidas nmd r1
michael kors outlet store
true religion outlet store
fred perry polo shirts
fitflops sale clearance
discount oakley sunglasses
michael kors outlet online
air jordans
ralph lauren sale
nike sneakers
tory burch outlet online
polo ralph lauren outlet online
texans jerseys
coach factory outlet online
mlb jerseys
polo ralph lauren outlet online
nike outlet store
discount oakley sunglasses
prada outlet online
pandora jewelry
nike store
coach outlet store
kate spade uk
tory burch outlet online
cheap nfl jerseys
pandora charms sale clearance
birkin handbags
gucci bags
polo ralph lauren
mulberry uk
pandora charms
rolex watches
nike blazer low pas cher
vans store
coach outlet online
cheap jerseys
burberry outlet
longchamp sale
yeezy boost
adidas yeezy boost 350
air max shoes
tods outlet
levis outlet
ray ban sunglasses discount
ralph lauren sale
louis vuitton
sac louis vuitton
pandora charms sale
coach outlet store online
warriors jerseys
cheap jordan shoes
nike free 4.0 flyknit
coach outlet store online
louis vuitton outlet store
birkenstock outlet
coach outlet online
mont blanc pens
gucci outlet online
pandora charms
cheap ray ban sunglasses
ray ban sunglasses outlet
parada bags
hermes bags
michael kors
christian louboutin shoes
louis vuitton outlet online
kd shoes
hermes outlet
adidas nmd runner
nike air force
toms
adidas nmd runner
polo ralph lauren outlet online
true religion outlet online
cowboys jerseys
rolex replica watches for sale
michael kors outlet clearance
coach factory outlet online
louboutin outlet
longchamp bag
lakers jerseys
coach outlet store
michael kors uk
pandora outlet
coach factory outlet online
49ers jerseys
michael kors outlet online
nike flyknit
cheap jordan shoes
rolex replica watches for sale
mulberry outlet uk
birkenstocks
coach outlet
birkenstocks
red sox jerseys
kd 8 shoes
gucci handbags outlet
michael kors
purs jerseys
longchamp outlet store
tommy hilfiger outlet
air max 90
coach factory outlet online
fitflops
toms outlet store
ed hardy store
cheap oakley sunglasses
fitflops sale
cheap oakley sunglasses
adidas sneakers
fitflop shoes
longchamp bags
true religion jeans outlet
hermes bags
fit flops
dansko
ralph lauren sale
fitflop shoes
cheap jordan shoes
adidas nmd runner
burberry sale
pandora uk
yeezy boost 350
ralph lauren outlet online
coach factory outlet store
fred perry polo shirts
sac longchamp
rockets jerseys
kate spade handbags
pandora bracelet
christian louboutin
gucci borse
ghd straighteners sale
coach outlet store
michael kors outlet store
michael kors handbags outlet
polo ralph lauren outlet online
cheap rolex watches
michael kors outlet online
christian louboutin outlet
air jordan shoes
coach outlet canada
adidas sneakers
burberry outlet online
longchamp bag
adidas
coach outlet online
ralph lauren outlet online
chaussure louboutin pas cher
mlb jerseys
swarovski sale
yeezy shoes
ralph lauren outlet online
nike outlet store online
coach factory outlet online
bulls jerseys
mbt
hermes outlet online
michael kors
coach outlet store
coach outlet online
coach factory outlet online
discount oakley sunglasses
michael kors outlet clearance
birkenstock outlet
ray ban glasses
pandora charms sale clearance
christian louboutin sale
michael kors handbags
michael kors
coach factory outlet online
air max 90
adidas superstars
nike air max 95
christian louboutin outlet
polo ralph lauren pas cher
toms
gucci
adidas superstar trainers
red bottom heels
pandora charms outlet
harden shoes
adidas superstar shoes
coach factory outlet online
nike free run flyknit
mlb jerseys
cheap nike sneakers
longchamp pliage
coach factory outlet online
true religion jeans outlet
michael kors outlet canada
michael kors
tory burch sale
michael kors bags
christian louboutin outlet
longchamp bags
michael kors bags
sac longchamp
ed hardy uk
yeezy boost 350
louis vuitton outlet store
polo ralph lauren outlet
toms outlet
louboutin outlet
christian louboutin shoes
michael kors outlet online
Air Max
Huarache pas cher
Nike Huarache
Moncler jackets
Fitflop clearance sale
Nike Air Max 2017
mens Nike Air Max
Nike Vapor Max
Canada Goose UK
Nike Roshe Run
Nike Roshe
Fitflop sale
Fitflop sandals
Air Max 2017
Adidas Yeezy Boost 350 v2
Nike Air Max 90 sale
Canada Goose parka sale
chaussure Salomon
Fitflop
Nike shoes for women
Salomon France
Moncler outlet store
Air Jordan 11
Air Max 90
Nike Air Huarache UK
Nike Air Max 90
Nike Roshe Run
Air Max 90 homme
Moncler outlet
Nike Roshe Run pas cher
Nike Air Max 2016
Fitflop
Roshe Run men
Yeezy Boost 950
yeezy boost
Nike outlet
Canada Goose parka
mens Nike Air Max
Hermes belts
Nike Huarache
cheap Jordan retro
Air Max 2017
Nike Air Max 90 hommes
Salomon speedcross 3
Nike Air Max 2017
Dr Dre Beats headphones
Air Max 90
Fitflop
Air Max 90
Nike Air Max Thea
Nike Air Huarache