init.goldfish.rc question

by Luca Belluccini » Fri, 30 Jan 2009 19:16:03 GMT

Sponsored Links
 For testing purposes (I'll use the emulator), I created a new target
(using vendor/manufact... structure) more or less equal to 'generic'
I used make TARGET...=mydevice and all seems to work.
There's only a strange thing: init.goldfish.rc is still called at init-
I would like to launch my init.mydevice.rc ...
LOCAL_PATH := $(call my-dir)

# kernel pre-built binary

ALL_PREBUILT += $(file)

# keyboard layouts
file := $(TARGET_OUT_KEYLAYOUT)/tuttle2.kl
ALL_PREBUILT += $(file)
$(file) : $(LOCAL_PATH)/tuttle2.kl | $(ACP)

# keymap
include $(CLEAR_VARS)
LOCAL_SRC_FILES := tuttle2.kcm

# board specific init.rc

# prebuilt drivers
# Product-specific compile-time definitions.

# The generic product target doesn't have any hardware-specific
# Superclass
$(call inherit-product, build/target/product/

# Overrides
PRODUCT_BRAND := mydevice
PRODUCT_DEVICE := mydevice
PRODUCT_NAME := mydevice



init.goldfish.rc question

by Andrew Green » Fri, 30 Jan 2009 20:12:08 GMT

 The name used to pick up the device-dependent init file is the name returned by 
/proc/cpuinfo under "Hardware" (it uses the first word only - as lowercase), 
which is set with the MACHINE_START() macro in your board file. You can change 
the name in that macro to "mydevice" to use init.mydevice.rc.


Windows LiveHotmailore than just e-mail. 


Sponsored Links

init.goldfish.rc question

by Luca Belluccini » Sat, 31 Jan 2009 12:16:06 GMT

 Thank you.
For 'your board file' you are pointing to kernel goldfish board source



init.goldfish.rc question

by Luca Belluccini » Sat, 31 Jan 2009 14:46:08 GMT

  noticed that only the specific file called
can be executed. If you try to define your file and execute it at init
process, a permission denied error occurs.
My question is: this "problem" occurs due to my target is derived from
goldfish (emulator)?

On 31 Gen, 13:15, Luca Belluccini <> wrote:


init.goldfish.rc question

by Luca Belluccini » Sat, 31 Jan 2009 14:57:54 GMT

 here should be some permission restrictions defined by
system/core/include/private/android_filesystem_config.h (at line 147:
"{ 00550, AID_ROOT, AID_SHELL, "system/etc/" },")
Why only these names? This stuff is goldfish target only?

On 31 Gen, 15:45, Luca Belluccini <> wrote:


init.goldfish.rc question

by Andrew Green » Sun, 01 Feb 2009 00:35:46 GMT


I was under the impression that you were porting to a new device. I see from
your later questions that you may be sticking with the emulator. This
information probably won't help you much if you are not building your own
kernel. Perhaps others will jump in with better advice.

Best regards,

Windows LiveHotmail:ore than just e-mail.


Other Threads

1. Need guidance in making the game's logic supporting multiple screens.


I've read the article "Supporting Multiple Screen" on Android
developers site. But that doesn't apply to game logic.

Let me get straight to the point. My situation is as follows:

- I'm creating a game using LunarLander code as a base.

- In my game, there'll be an object flying up from the bottom of the
screen. The object will fly in projectile motion.

- I set the starting velocity, gravity and angle so that the highest
point(of projectile motion) is almost at the top of the screen.

- The screen tested is Motorola Milestone. (480x854 resolution)
Meaning the object travels around 854 pixels vertically.

--- Problem ---
When I test the game on small device (Android Dev Phone 1/G1) which is
320x480.(has only 480 pixels vertical)  The object fly out of the
screen because it is set to travel for 854 pixels.

I'm thinking of adjusting starting velocity based on screensizes. But
that sounds unreliable when we've so many devices/resolutions out

How do you combat these kind of problem when making games?

Thank you in advance!


2. How to open a new Activity in a new "window" (calling a new activity)?

Hi there,

sorry for the following explanation... I just didn't know how to describe it

What I would like to do is when I click a certain button, my app should open
a new "window" and loading the selected content into this new window/view.
It shouldn't be like e.g. the send intent, which opens a completely
different, but still be part of my app just showing a completely new view...

 I just don't know right now, what I have to do or even if this is possible,
so if anyone could help me or direct into the correct direction or knows a
great tut for that...any sort of help is more than welcome...

Thank you very much


3. Build performance of 2.2 vs older sdk implementations

4. Device Seeding Program for Top Android Market Developers

5. Device Seeding Program for Top Android Market Developers


7. Solved WTA Droid tidak bisa masuk recovery