Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

From boot, is there a way to know which .img is going to be run?

Can I write a script / program that would run from init.rc (e.g. from pre-init), and print the .img (system/recovery)?

Where is the earliest place I can know this? Where is this written?

Edit: I want to know (automatically detect) whether I'm in recovery mode.

share|improve this question
1  
There are no .img files run at boot. Could you please be a little clearer on what it is you want to do -- so we have a chance to understand? Thanx :) –  Izzy Feb 10 '13 at 15:03
    
Thanks .I want to know if this is a recovery mode or not. can i know that from boot? from init.rc? (can i write a program which would run from init.rc that prints recovery if this is recovery mode) –  user28192 Feb 13 '13 at 8:13
    
Is there a special init.rc for recovery? In recovery mode, the init.rc is from /recovery/etc/init/rc ? Thanks! –  user28192 Feb 13 '13 at 9:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.