[Android Apps and Games] Snoopo:
Hey D4. chmod is not allowed on fat partitions on SD card. That maybe explains it for me why I get nullpointers:)

...>adb shell "logcat | grep 'ModuleLoader'"
I/ModuleLoader( 2082): Received Boot Broadcast
I/ModuleLoader( 2082): Loading Service...
I/ModuleLoader( 2422): Loading Service...
## that is boot! as you see nothing happens !? no module gets loaded.
## I double-checked and tried: app is isntalled on /data/app
## I also cleaned the approrpiate dalvik cache-files
## now I start the app and add 3 modules:
I/ModuleLoader( 2422): Executing commands:
E/ModuleLoader( 2422): Error: java.lang.NullPointerException
I/ModuleLoader( 2422): Executing commands: chmod 777 '/mnt/sdcard/modules/x8mddi
.ko'
I/ModuleLoader( 2422): Executing commands: insmod '/mnt/sdcard/modules/x8mddi.ko
'
I/ModuleLoader( 2422): Executing commands: chmod 777 '/mnt/sdcard/modules/mt.ko'

I/ModuleLoader( 2422): Executing commands: insmod '/mnt/sdcard/modules/mt.ko'
# after pushing save it looks like the app is restarting and these nullpointers get thrown:
E/ModuleLoader( 2422): Error: java.lang.NullPointerException
E/ModuleLoader( 2422): Error: java.lang.NullPointerException

See my comments within the code-quote.

I looked deeper in the log and found soem lines like:

E/ApplicationContext( 2422): Couldn't create directory for SharedPreferences file /data/data/com.d4.moduleLoader/shared_prefs/com.d4.moduleLoader_preferences.xml

or

E/WindowManager( 2422): android.view.WindowLeaked: Activity com.d4.moduleLoader.ModuleList has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4058af00 that was originally added here

E/WindowManager( 2422):	at android.view.ViewRoot.<init>(ViewRoot.java:259)

E/WindowManager( 2422):	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)

E/WindowManager( 2422):	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)

E/WindowManager( 2422):	at android.view.Window$LocalWindowManager.addView(Window.java:465)

E/WindowManager( 2422):	at android.app.Dialog.show(Dialog.java:241)

E/WindowManager( 2422):	at android.app.ProgressDialog.show(ProgressDialog.java:107)

E/WindowManager( 2422):	at android.app.ProgressDialog.show(ProgressDialog.java:95)

E/WindowManager( 2422):	at com.d4.moduleLoader.ModuleList$4$2.onClick(ModuleList.java:200)

E/WindowManager( 2422):	at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:159)

E/WindowManager( 2422):	at android.os.Handler.dispatchMessage(Handler.java:99)

E/WindowManager( 2422):	at android.os.Looper.loop(Looper.java:130)

E/WindowManager( 2422):	at android.app.ActivityThread.main(ActivityThread.java:3835)

E/WindowManager( 2422):	at java.lang.reflect.Method.invokeNative(Native Method)

E/WindowManager( 2422):	at java.lang.reflect.Method.invoke(Method.java:507)

E/WindowManager( 2422):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)

E/WindowManager( 2422):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)

E/WindowManager( 2422):	at dalvik.system.NativeStart.main(Native Method)

Does this bring us further?

In the meanwhile I add the modules to my phones store and make it a system app :)