summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/android/system-android.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/android/system-android.c')
-rw-r--r--firmware/target/hosted/android/system-android.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/hosted/android/system-android.c b/firmware/target/hosted/android/system-android.c
index 87b6584135..7d1fe9d458 100644
--- a/firmware/target/hosted/android/system-android.c
+++ b/firmware/target/hosted/android/system-android.c
@@ -39,6 +39,7 @@ uintptr_t *stackbegin;
39uintptr_t *stackend; 39uintptr_t *stackend;
40 40
41extern int main(void); 41extern int main(void);
42extern void powermgmt_init_target(void);
42/* this is the entry point of the android app initially called by jni */ 43/* this is the entry point of the android app initially called by jni */
43JNIEXPORT void JNICALL 44JNIEXPORT void JNICALL
44Java_org_rockbox_RockboxService_main(JNIEnv *env, jobject this) 45Java_org_rockbox_RockboxService_main(JNIEnv *env, jobject this)
@@ -56,7 +57,8 @@ Java_org_rockbox_RockboxService_main(JNIEnv *env, jobject this)
56 RockboxService_instance = this; 57 RockboxService_instance = this;
57 RockboxService_class = (*env)->GetObjectClass(env, this); 58 RockboxService_class = (*env)->GetObjectClass(env, this);
58 59
59 60 /* no better place yet, most of powermgmt.c is #ifdef'd out for non-native
61 * builds */
60 powermgmt_init_target(); 62 powermgmt_init_target();
61 main(); 63 main();
62} 64}