Digging Into Android Startup

Sdílet
Vložit

Komentáře • 31

  • @devunwired
    @devunwired  Před 9 lety +56

    For those who like to watch long videos, here is a screencast from the presentation I gave last night at *Denver Droids* on the Android boot process and application launching.

    • @russellcollins7148
      @russellcollins7148 Před 9 lety +2

      I watched this last night. I found it very interesting and well presented. Have you ever thought about getting into teaching about Android professionally? 😉😝
      Seriously though, your pace, tone, use of illustrations, and timely, informative, yet brief tangents are all evidence you've mastered this kind of stuff. New Circle is lucky to have you. Great job.

    • @randomgyandu
      @randomgyandu Před 9 lety

      Thanks Dave !

  • @tasomaniac
    @tasomaniac Před 8 lety +6

    Explanation of Zygote at 27:00 is very good.

  • @SushilShinde
    @SushilShinde Před 7 lety +6

    Excellent! Thank you for explaining.

  • @rambabu775
    @rambabu775 Před rokem +1

    Good content and the way of explaining is excellent!

  • @arvindmohansk01
    @arvindmohansk01 Před 2 lety +1

    Brilliant tutorial on boot up process. Could you please make a video on debugging crash reports / stack traces.

  • @sandeepkumarmishra7267
    @sandeepkumarmishra7267 Před 7 měsíci

    Very good & informative, thanks

  • @yamamarques27
    @yamamarques27 Před 3 lety +1

    Excellent video, very easy to understand and well explained.

  • @bharathkm
    @bharathkm Před 6 lety +2

    Excellent explanation ! Thank You

  • @denden4455
    @denden4455 Před 2 lety

    The best explanation ever

  • @lmagiczlukas4891
    @lmagiczlukas4891 Před 3 lety

    Thank you for your very detailed and helpful explaination.

  • @TensorWave
    @TensorWave Před 2 lety

    Awesome excellent!!!!!!! Thank you for this

  • @marchelomoratti1
    @marchelomoratti1 Před rokem

    awesome, very informative, thanks!

  • @arkapravabasu8726
    @arkapravabasu8726 Před 5 lety +2

    Awesome explanation! Are slides available for this talk?

  • @FakAr6
    @FakAr6 Před 4 lety

    Very good talk, thank you for sharing !

  • @shivashishpal7321
    @shivashishpal7321 Před 3 lety

    I thank you very very much for the couse

  • @stevet5629
    @stevet5629 Před 4 lety

    Thanks, excellent presentation

  • @PankajRai
    @PankajRai Před rokem

    Good content ❤

  • @dimitardihanov6279
    @dimitardihanov6279 Před 10 měsíci

    Does PPID mean that the process was "forked" from the original? So as zygote gets forked each time for every new process, PPID 2 means the kthreadd gets also copied (forked) for every subsequent kernel process?

  • @koushikdeb7874
    @koushikdeb7874 Před 3 lety

    Great work ..

  • @3bdoelnaggar
    @3bdoelnaggar Před 8 lety +1

    Well Explained Thanks

  • @Blundelll
    @Blundelll Před 9 lety +1

    Dave Smith You mentioned the bootanimation is a daemon that is loaded before the applications and is a 1 shot. Could you change init to make it not one shot and could an app have permissions to start these processes again?
    In the list of processes at the end, it shows the adb daemon has started /system/bin/sh is this the way emulators have root access and you wouldn't see this on a normal device? (does this infer adb is different for emulators or init.d is different)

    • @devunwired
      @devunwired  Před 9 lety +5

      The boot animation is defined as a service in init.rc (android.googlesource.com/platform/system/core/+/android-5.1.1_r1/rootdir/init.rc), and you can see the "oneshot" keyword. This indicates that init will not attempt to restart the binary once it exits. You could remove the keyword and rebuild the image, but it wouldn't be very useful as the boot animation would just run continuously and you couldn't kill it!
      Any user process can invoke /system/bin/bootanimation, but it won't do much because the state is controlled by a system property (service.bootanim.exit), which is set by SurfaceFlinger during boot to kill the animation. With this property set, the bootanimation binary will immediately exist when started. You can play around with this in the emulator by clearing the prop and restarting the binary. I don't believe a user-build allows you to change the prop.
      The adbd will always spawn the shell, on any system, because you need to connect over ADB first (i.e. `adb shell`). It is also true that this is how root access is delegated in eng, userdebug, user builds. For example, running `adb root` first tells the daemon that the next `adb shell` should be given root instead of the shell user.

  • @DinilGunaratne
    @DinilGunaratne Před 6 lety

    So in the x86 PC, BIOS, MBR, Bootloader are all separate. In mobile phones, its the Bootloader that contains all these 3?

  • @sharashchandraudupa5241

    Sir,thank you for this video.
    But I have a question that "what is the function of boot image and how it is differ from bootloader"

  • @randomgyandu
    @randomgyandu Před 9 lety

    Thanks for Sharing !

  • @dineshrakhyani517
    @dineshrakhyani517 Před 2 lety

    Hello Sir,
    a very great explanation, i have been looking all around and try to understand the process, but your video has helped me alot.
    i have an android phone, but my phone is going in boot loop and after showing MIUI it gives a black screen while white circle and middle which is in loop. Could you please explain on which file is corrupt.
    Also its going in recovery where it shows the NV data is corrupt

  • @nithesh53
    @nithesh53 Před 5 lety

    Hi @Dave Smith. can you share the ppt?

  • @Yudibilly
    @Yudibilly Před 5 lety

    I want to learn this for root android.Can it?

  • @mariomax2960
    @mariomax2960 Před 9 lety

    THX