* Maguro SE Manager app crash
@ 2012-03-20 23:18 William Roberts
2012-03-21 1:40 ` William Roberts
0 siblings, 1 reply; 3+ messages in thread
From: William Roberts @ 2012-03-20 23:18 UTC (permalink / raw)
To: selinux
[-- Attachment #1: Type: text/plain, Size: 3271 bytes --]
On maguro the SE Manager app crashes, see the logs at the end. Some
information on the build:
I updated my local manifest file at Noon pacific time.
I kept with the instructions in the repo.
I did a clean build.
My guess is that function SELinux.getBooleanNames() is returning NULL,
I am debugging it now. Is anyone else having this problem?
D/AndroidRuntime( 566): Shutting down VM
W/dalvikvm( 566): threadid=1: thread exiting with uncaught exception
(group=0x40a7b1f8)
I/bluedroid( 196): bt_enable: ret: -1, errno: 19
E/AndroidRuntime( 566): FATAL EXCEPTION: main
E/AndroidRuntime( 566): java.lang.RuntimeException: Unable to start
activity
ComponentInfo{com.android.seandroid_manager/com.android.seandroid_manager.SEAndroidManager}:
java.lang.NullPointerException
E/AndroidRuntime( 566): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
E/AndroidRuntime( 566): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
E/AndroidRuntime( 566): at
android.app.ActivityThread.access$600(ActivityThread.java:123)
E/AndroidRuntime( 566): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
E/AndroidRuntime( 566): at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 566): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 566): at
android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 566): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 566): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 566): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 566): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 566): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 566): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 566): at
java.util.Arrays$ArrayList.<init>(Arrays.java:38)
E/AndroidRuntime( 566): at java.util.Arrays.asList(Arrays.java:154)
E/AndroidRuntime( 566): at
android.widget.ArrayAdapter.<init>(ArrayAdapter.java:128)
E/AndroidRuntime( 566): at
com.android.seandroid_manager.SEAndroidManager$SELinuxBooleanFragment$myBooleanAdapter.<init>(SEAndroidManager.java:76)
E/AndroidRuntime( 566): at
com.android.seandroid_manager.SEAndroidManager$SELinuxBooleanFragment.onCreate(SEAndroidManager.java:119)
E/AndroidRuntime( 566): at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:795)
E/AndroidRuntime( 566): at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
E/AndroidRuntime( 566): at
android.app.BackStackRecord.run(BackStackRecord.java:622)
E/AndroidRuntime( 566): at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1382)
E/AndroidRuntime( 566): at
android.app.Activity.performStart(Activity.java:4474)
E/AndroidRuntime( 566): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1929)
E/AndroidRuntime( 566): ... 11 more
W/ActivityManager( 196): Force finishing activity
com.android.seandroid_manager/.SEAndroidManager
W/ActivityManager( 196): Force finishing activity
com.android.seandroid_manager/.SEAndroidManager
--
Respectfully,
William C Roberts
[-- Attachment #2: Type: text/html, Size: 5345 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Maguro SE Manager app crash
2012-03-20 23:18 Maguro SE Manager app crash William Roberts
@ 2012-03-21 1:40 ` William Roberts
2012-03-21 13:14 ` Stephen Smalley
0 siblings, 1 reply; 3+ messages in thread
From: William Roberts @ 2012-03-21 1:40 UTC (permalink / raw)
To: selinux
[-- Attachment #1: Type: text/plain, Size: 4052 bytes --]
Alright I found the problem (it was my mistake), the manifest file changes
included adding a path to device/samsung/tuna which caused my prebuilt
kernel file to overwritten with the default kernel which doesn't have se
linux enabled in the config. Is their any particular reason we don't make
tuna's kernel a selinux enabled kernel and commit that back to the branch?
I know it's not hard to set TARGET_PREBUILT_KERNEL or just cp zImage to
kernel, just wondering what the communities feelings on that are.
On Tue, Mar 20, 2012 at 4:18 PM, William Roberts
<bill.c.roberts@gmail.com>wrote:
> On maguro the SE Manager app crashes, see the logs at the end. Some
> information on the build:
>
> I updated my local manifest file at Noon pacific time.
>
> I kept with the instructions in the repo.
>
> I did a clean build.
>
> My guess is that function SELinux.getBooleanNames() is returning NULL,
>
> I am debugging it now. Is anyone else having this problem?
>
> D/AndroidRuntime( 566): Shutting down VM
> W/dalvikvm( 566): threadid=1: thread exiting with uncaught exception
> (group=0x40a7b1f8)
> I/bluedroid( 196): bt_enable: ret: -1, errno: 19
> E/AndroidRuntime( 566): FATAL EXCEPTION: main
> E/AndroidRuntime( 566): java.lang.RuntimeException: Unable to start
> activity
> ComponentInfo{com.android.seandroid_manager/com.android.seandroid_manager.SEAndroidManager}:
> java.lang.NullPointerException
> E/AndroidRuntime( 566): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
> E/AndroidRuntime( 566): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
> E/AndroidRuntime( 566): at
> android.app.ActivityThread.access$600(ActivityThread.java:123)
> E/AndroidRuntime( 566): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
> E/AndroidRuntime( 566): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> E/AndroidRuntime( 566): at android.os.Looper.loop(Looper.java:137)
> E/AndroidRuntime( 566): at
> android.app.ActivityThread.main(ActivityThread.java:4424)
> E/AndroidRuntime( 566): at java.lang.reflect.Method.invokeNative(Native
> Method)
> E/AndroidRuntime( 566): at
> java.lang.reflect.Method.invoke(Method.java:511)
> E/AndroidRuntime( 566): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
> E/AndroidRuntime( 566): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
> E/AndroidRuntime( 566): at dalvik.system.NativeStart.main(Native Method)
> E/AndroidRuntime( 566): Caused by: java.lang.NullPointerException
> E/AndroidRuntime( 566): at
> java.util.Arrays$ArrayList.<init>(Arrays.java:38)
> E/AndroidRuntime( 566): at java.util.Arrays.asList(Arrays.java:154)
> E/AndroidRuntime( 566): at
> android.widget.ArrayAdapter.<init>(ArrayAdapter.java:128)
> E/AndroidRuntime( 566): at
> com.android.seandroid_manager.SEAndroidManager$SELinuxBooleanFragment$myBooleanAdapter.<init>(SEAndroidManager.java:76)
> E/AndroidRuntime( 566): at
> com.android.seandroid_manager.SEAndroidManager$SELinuxBooleanFragment.onCreate(SEAndroidManager.java:119)
> E/AndroidRuntime( 566): at
> android.app.FragmentManagerImpl.moveToState(FragmentManager.java:795)
> E/AndroidRuntime( 566): at
> android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1032)
> E/AndroidRuntime( 566): at
> android.app.BackStackRecord.run(BackStackRecord.java:622)
> E/AndroidRuntime( 566): at
> android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1382)
> E/AndroidRuntime( 566): at
> android.app.Activity.performStart(Activity.java:4474)
> E/AndroidRuntime( 566): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1929)
> E/AndroidRuntime( 566): ... 11 more
> W/ActivityManager( 196): Force finishing activity
> com.android.seandroid_manager/.SEAndroidManager
> W/ActivityManager( 196): Force finishing activity
> com.android.seandroid_manager/.SEAndroidManager
>
>
>
>
> --
> Respectfully,
>
> William C Roberts
>
>
>
--
Respectfully,
William C Roberts
[-- Attachment #2: Type: text/html, Size: 5993 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Maguro SE Manager app crash
2012-03-21 1:40 ` William Roberts
@ 2012-03-21 13:14 ` Stephen Smalley
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Smalley @ 2012-03-21 13:14 UTC (permalink / raw)
To: William Roberts; +Cc: selinux
On Tue, 2012-03-20 at 18:40 -0700, William Roberts wrote:
> Alright I found the problem (it was my mistake), the manifest file
> changes included adding a path to device/samsung/tuna which caused my
> prebuilt kernel file to overwritten with the default kernel which
> doesn't have se linux enabled in the config. Is their any particular
> reason we don't make tuna's kernel a selinux enabled kernel and commit
> that back to the branch? I know it's not hard to set
> TARGET_PREBUILT_KERNEL or just cp zImage to kernel, just wondering
> what the communities feelings on that are.
Hmm..still shouldn't crash the app; we'll look into that.
For crespo and wingray, we modified the LOCAL_KERNEL and
LOCAL_WIFI_MODULE definitions to point into the appropriate kernel
source tree (e.g. kernel/samsung/arch/arm/boot/zImage) rather than using
the prebuilt kernel. I'll do that for tuna as well. You'll still have
to build the SE-enabled tuna kernel from source before building AOSP,
but the build process will then automatically pick up the right kernel
rather than the prebuilt one by default. I suppose we could replace the
prebuilt one, but we don't generally distribute binaries, just source
code.
--
Stephen Smalley
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-21 13:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-20 23:18 Maguro SE Manager app crash William Roberts
2012-03-21 1:40 ` William Roberts
2012-03-21 13:14 ` Stephen Smalley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.