I am porting Android 4.1 to Desire HD
This is my ERROR logcat.....
E/dalvikvm( (1247): : ERROR: couldn't find native method
E/dalvikvm( (1247): : Requested: Llibcore/net/RawSocket;.createLjava/io/FileDescriptor;Ljava/lang/StringV
E/dalvikvm( (1247): : Candidate: Llibcore/net/RawSocket;.createLjava/io/FileDescriptor;SLjava/lang/String]V
E/JNIHelp ( (1247): : RegisterNatives failed for 'libcore/net/RawSocket', aborting
D/AndroidRuntime( (1252): :
D/AndroidRuntime( (1252): : >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( (1252): : CheckJNI is ON
E/dalvikvm( (1252): : ERROR: couldn't find native method
E/dalvikvm( (1252): : Requested: Llibcore/net/RawSocket;.createLjava/io/FileDescriptor;Ljava/lang/StringV
E/dalvikvm( (1252): : Candidate: Llibcore/net/RawSocket;.createLjava/io/FileDescriptor;SLjava/lang/StringV
E/JNIHelp ( (1252): : RegisterNatives failed for 'libcore/net/RawSocket', abortin
Anybody who knows how to solve?
I want to try to solve this problem....
hi all,
I am working in reversing apk aplication. I have got with sucess normally. I got a aplication not working now. It is do with API level v14.
I have decompile, compile and sing with sucess.
For test I to use emulator with Device Nexus S.
When i to install original application run without problems but with aplication decompiled, compiled and signed not working.
I have to used java tool and apk for sign. Nothing work.
I got the follow message:
"Unfortunately, aplication name has stopped.
I have read but don´t have seen same problem.
Any suggest?
A greeting.
To help you, we really need a logcat.
Because you have an emulator, I guess you have android-sdk installed.
To get your logcat, do:
adb logcat
After doing this, let it run.
Run your application in your emulator now. When it says "force close", you stop adb logcat by doing Ctrl+C
Then you copy the text with your error in it.
Thanks in advance
Sent from my Galaxy Nexus running Android 4.2 JB
hi, i did that.
I got the follow message.
Code:
I/ActivityManager( 82): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.anite.handy/.ui.core.ResumeActivit
y} from pid 181
D/PermissionCache( 36): checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (1379 us)
W/WindowManager( 82): Failure taking screenshot for (180x300) to layer 21005
I/ActivityManager( 82): Start proc com.anite.handy for activity com.anite.hand
y/.ui.core.ResumeActivity: pid=492 uid=10040 gids={3002, 3001, 3003, 1015}
I/dalvikvm( 492): Turning on JNI app bug workarounds for target SDK version 10.
..
W/NetworkManagementSocketTagger( 82): setKernelCountSet(10040, 1) failed witherrno -2
I/Process ( 82): Sending signal. PID: 492 SIG: 3
I/dalvikvm( 492): threadid=3: reacting to signal 3
I/dalvikvm( 492): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 82): Sending signal. PID: 492 SIG: 3
I/dalvikvm( 492): threadid=3: reacting to signal 3
I/dalvikvm( 492): Wrote stack traces to '/data/anr/traces.txt'
I/Handy ( 492): HandyApp.onCreate() pid=492
I/Process ( 82): Sending signal. PID: 492 SIG: 3
I/dalvikvm( 492): threadid=3: reacting to signal 3
I/dalvikvm( 492): Wrote stack traces to '/data/anr/traces.txt'
D/AndroidRuntime( 492): Shutting down VM
W/dalvikvm( 492): threadid=1: thread exiting with uncaught exception (group=0x4
09c01f8)
E/AndroidRuntime( 492): FATAL EXCEPTION: main
E/AndroidRuntime( 492): java.lang.RuntimeException: Unable to create application com.anite.handy.app.HandyApp: java.lang.SecurityException
E/AndroidRuntime( 492): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3957)
E/AndroidRuntime( 492): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
E/AndroidRuntime( 492): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
E/AndroidRuntime( 492): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 492): at android.os.Looper.loop(Looper.java:137)E/AndroidRuntime( 492): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 492): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 492): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 492): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 492): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 492): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 492): Caused by: java.lang.SecurityException
E/AndroidRuntime( 492): at com.anite.handy.app.HandyApp.onCreate(Unknown Source)
E/AndroidRuntime( 492): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
E/AndroidRuntime( 492): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3954)
E/AndroidRuntime( 492): ... 10 more
W/ActivityManager( 82): Force finishing activity com.anite.handy/.ui.core.ResumeActivity
W/InputManagerService( 82): Window already focused, ignoring focus gain of: [email protected]
I/Process ( 82): Sending signal. PID: 492 SIG: 3
I/dalvikvm( 492): threadid=3: reacting to signal 3
I/dalvikvm( 492): Wrote stack traces to '/data/anr/traces.txt'
W/ActivityManager( 82): Activity pause timeout for ActivityRecord{4142a7e0 com.anite.handy/.ui.core.ResumeActivity}
I/Process ( 82): Sending signal. PID: 492 SIG: 3
I/dalvikvm( 492): threadid=3: reacting to signal 3
I/dalvikvm( 492): Wrote stack traces to '/data/anr/traces.txt'
W/NetworkManagementSocketTagger( 82): setKernelCountSet(10040, 0) failed with errno -2
W/ActivityManager( 82): Activity destroy timeout for ActivityRecord{4142a7e0 com.anite.handy/.ui.core.ResumeActivity}
Check your "HandyApp Application" is declared in your manifest
I suggest you take a look at this one:
http://developer.android.com/guide/topics/manifest/manifest-intro.html
If you don't understand it just reply here and I'll fix it for ya
Sent from my Galaxy Nexus running Android 4.2 JB
i have checked AndroidManifest.xml decompiled file and i can see android:name=".app.HandyApp" in code.
Full code atached here
View attachment AndroidManifest.rar
Anyone have any suggestion? I can share the target if need.
Thanks
i have the same problem
unfortunately application has stop.
i have the same problem but its worse.
i have been installed kaspersky security using apk not from manual installed by google play.
and iam forget to unistalled it before i upgrade my android software.
after the process done it show message "unfortunately......." it keep showing up even after i klik "ok" or restart
i can't do anything with my device now (can't type anything, can't touch anything, even pick up incoming call) because of the pop up n start being stressed
anyone can help? :crying:
*My Device is galaxy Note II
Hi, I am not sure if this is the right thread, but since I don't know exactly where sould I post this I will post it here and if someone knows a better thread they sould tell me to go there.
My problem is with the game called Rhythm Racer 2, I have been in to this game since 2011 when I got Galaxy S 2, and it was working even on my Galaxy Tab S (SM-T805) until I was updated to lollipop, since then it just pops "Unfotunately Rhythm Racer 2 Has Stopped", also the same problem applies in Galaxy Note 4 (N910F), only there it doesn't work even on kitkat and in lollipop either, and the problem is that this app doesn't getting any update, it's on its initial version since 2011 and discontiniued, I know it's just a game and noone can know exactly what's the problem but I think the same error applies also in other apps that doesn't work since lollipop and based on that I think there is a solution someway.
I will apreciate any feedbak and advice on what should I do, Thanks.
Exception
Please provide logs for logcat.
use below command
$ adb logcat
You can verify it by your own to see why you got crash.
Waiting for logs .
I came across this same error caused by having installed the JDK 7 instead of 6. Hope it helps some other people with this error.
please check below link
http://stackoverflow.com/questions/6161931/java-lang-securityexception-when-install-apk
This is what I get when I try to run the app:
---- Oct 15, 2015 1:50:24 AM ----
10-15 01:47:42.044 9007 9007 I Timeline: Timeline: Activity_launch_request id:com.AvatarLabs.RhythmRacerX time:75719530
10-15 01:47:42.049 3837 5012 W ActivityManager: NORMAL SET : srcAppInfo.processName = com.sec.android.app.launcher, destAppInfo.processName = com.AvatarLabs.RhythmRacerX
10-15 01:47:42.159 3837 8545 I ActivityManager: Start proc com.AvatarLabs.RhythmRacerX for activity com.AvatarLabs.RhythmRacerX/com.unity3d.MobclixPlugin.MobclixPluginActivity: pid=12571 uid=10193 gids={50193, 9997, 3003} abi=armeabi-v7a
10-15 01:47:42.489 12571 12571 E AndroidRuntime: Process: com.AvatarLabs.RhythmRacerX, PID: 12571
10-15 01:47:42.489 12571 12571 E AndroidRuntime: java.lang.UnsatisfiedLinkError: Bad JNI version returned from JNI_OnLoad in "/data/app/com.AvatarLabs.RhythmRacerX-1/lib/arm/libmono.so": 0
10-15 01:47:42.509 3837 3937 W ActivityManager: Force finishing activity com.AvatarLabs.RhythmRacerX/com.unity3d.MobclixPlugin.MobclixPluginActivity
10-15 01:47:42.859 3837 3937 I WindowManager: Screenshot max retries 4 of Token{b537e72 ActivityRecord{35dd2f7d u0 com.AvatarLabs.RhythmRacerX/com.unity3d.MobclixPlugin.MobclixPluginActivity t403 f}} appWin=Window{27d1c81f u0 Starting com.AvatarLabs.RhythmRacerX} drawState=4
10-15 01:47:43.364 3837 3959 W ActivityManager: Activity pause timeout for ActivityRecord{35dd2f7d u0 com.AvatarLabs.RhythmRacerX/com.unity3d.MobclixPlugin.MobclixPluginActivity t403 f}
10-15 01:47:44.864 3837 8850 I ActivityManager: Process com.AvatarLabs.RhythmRacerX (pid 12571)(adj 9) has died(476,758)
---- Oct 15, 2015 1:50:24 AM ----
This is the entire logcat, I know this is weird, you mean that lollipop has JDK 7 and the game uses JDK 6 and that's the problem, and do I have to install JDK 6 some way on my device or try to make the propper changes to my .apk file?
Hi,
I'm bulding android for my single board computer with connected 7 inch lcd touch screen. It's working like a charm, but one issue. SystemUI.apk is crashing all the time with following error log:
Code:
I/ActivityManager( 368): Start proc com.android.systemui for restart com.android.systemui: pid=1883 uid=10001 gids={50001, 1028, 1015, 3002, 3001}
D/SystemUIService( 1883): loading: class com.android.systemui.statusbar.tablet.TabletStatusBar
D/SystemUIService( 1883): running: [email protected]
I/StatusBarManagerService( 368): registerStatusBar [email protected]0
W/ResourceType( 1883): Failure getting entry for 0x7f0200db (t=1 e=219) in package 0 (error -75)
D/AndroidRuntime( 1883): Shutting down VM
W/dalvikvm( 1883): threadid=1: thread exiting with uncaught exception (group=0x40d30930)
E/AndroidRuntime( 1883): FATAL EXCEPTION: main
E/AndroidRuntime( 1883): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #48: Error inflating class com.android.systemui.statusbar.policy.CompatModeButton
Does anyone know how to fix this or what's the reason for the crash?
Thank you very much in advance.
Update
rotowsky said:
Hi,
I'm bulding android for my single board computer with connected 7 inch lcd touch screen. It's working like a charm, but one issue. SystemUI.apk is crashing all the time with following error log:
Code:
I/ActivityManager( 368): Start proc com.android.systemui for restart com.android.systemui: pid=1883 uid=10001 gids={50001, 1028, 1015, 3002, 3001}
D/SystemUIService( 1883): loading: class com.android.systemui.statusbar.tablet.TabletStatusBar
D/SystemUIService( 1883): running: [email protected]
I/StatusBarManagerService( 368): registerStatusBar [email protected]0
W/ResourceType( 1883): Failure getting entry for 0x7f0200db (t=1 e=219) in package 0 (error -75)
D/AndroidRuntime( 1883): Shutting down VM
W/dalvikvm( 1883): threadid=1: thread exiting with uncaught exception (group=0x40d30930)
E/AndroidRuntime( 1883): FATAL EXCEPTION: main
E/AndroidRuntime( 1883): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #48: Error inflating class com.android.systemui.statusbar.policy.CompatModeButton
Does anyone know how to fix this or what's the reason for the crash?
Thank you very much in advance.
Click to expand...
Click to collapse
Hope for an Update , and that it works , ( I think so )
Mmh?
Hi,
I am currently trying to build TaintDroid 4.3 for x86 emulators. Since I am new to building Android, I thought this would be a good place to get help/information.
So, I built Android 4.3_r1 and Android 4.3_r1 with TaintDroid successfully for ARM. These are the steps I did to build it for x86:
- Download goldfish 2.6.29 and a patch from appanalysis to add xattr support for yaffs: appanalysis.org/files/yaffs_xattr.patch
- After patching the kernel I built it successfully
- I built the TaintDroid source as followed:
Code:
. build/envsetup.sh
lunch aosp_x86-eng
make clean
make -j4
- The build finishes without any errors
- I created an AVD like this: android create avd -n test -t 1 --abi default/x86
- Eventually I started the emulator like this: sudo emulator -kernel MYKERNEL -system MYSYSTEM.IMG -data MYUSERDATA.img -ramdisk MYRAMDISK.img -avd test -verbose
Unfortunately the emulator doesn't boot properly and only shows me the android animation, even after setting the execution mode to portable.
So I looked into logcat and got the following:
Code:
D/AndroidRuntime( 3081): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 3081): CheckJNI is ON
E/dalvikvm( 3081): Bad asm offset offThread_jitToInterpEntries (108), should be 104
E/dalvikvm( 3081): Bad asm offset offThread_inJitCodeCache (132), should be 128
E/dalvikvm( 3081): Bad asm offset offThread_pJitProfTable (136), should be 132
E/dalvikvm( 3081): Bad asm offset offThread_jitThreshold (140), should be 136
E/dalvikvm( 3081): Bad asm offset offThread_jitResumeNPC (144), should be 140
E/dalvikvm( 3081): Bad asm offset offThread_jitResumeNSP (148), should be 144
E/dalvikvm( 3081): Bad asm offset offThread_jitResumeDPC (152), should be 148
E/dalvikvm( 3081): Bad asm offset offThread_jitState (156), should be 152
E/dalvikvm( 3081): Bad asm offset offThread_icRechainCount (160), should be 156
E/dalvikvm( 3081): Bad asm offset offThread_pProfileCountdown (164), should be 160
E/dalvikvm( 3081): Bad asm offset offThread_callsiteClass (168), should be 164
E/dalvikvm( 3081): Bad asm offset offThread_methodToCall (172), should be 168
E/dalvikvm( 3081): Bad asm offset offThread_jniLocal_topCookie (176), should be 172
E/dalvikvm( 3081): Please correct the values in mterp/common/asm-constants.h
E/dalvikvm( 3081): VM aborting
After fixing the values and rebuilding the source code I still can't run the emulator and get the following messages through logcat:
Code:
D/AndroidRuntime( 3974): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 3974): CheckJNI is ON
D/dalvikvm( 3974): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 3974): Added shared lib libjavacore.so 0x0
D/dalvikvm( 3974): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 3974): Added shared lib libnativehelper.so 0x0
W/dalvikvm( 3974): Exception Ljava/lang/NullPointerException; thrown while initializing Ljava/lang/ThreadGroup;
E/dalvikvm( 3974): thread classes failed to initialize
W/dalvikvm( 3974): CreateJavaVM failed: dvmPrepMainThread failed
E/AndroidRuntime( 3974): JNI_CreateJavaVM failed
I/ServiceManager( 787): service 'media.audio_flinger' died
I/ServiceManager( 787): service 'media.player' died
I/ServiceManager( 787): service 'media.camera' died
I/ServiceManager( 787): service 'media.audio_policy' died
I/mediaserver( 3975): ServiceManager: 0xb9c51b30
I/AudioFlinger( 3975): Using default 3000 mSec as standby time.
I/CameraService( 3975): CameraService started (pid=3975)
I/Netd ( 3976): Netd 1.0 starting
W/InterfaceController( 3976): Warning (dlopen failed: library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library
I also tried to use goldfish 3.4, but the error message about libnetcmdiface.so and the NullPointerException while initializing Ljava/lang/ThreadGroup still remains and I don't really know what that lib does and why it's missing. I think the media services are dying because of that though.
I know this is not a TaintDroid board, but I don't think this issue is only related to TaintDroid and could happen to any Android source, which was modified or ported to x86.
To use TaintDroid properly I need a kernel with xattr support for yaffs. This is why I patched the kernel and why I also tried goldfish 3.4.
I appreciate any help you can give me.
xLyte
Hello,
When I use Facebook, there IS thé following error :
Code:
FATAL EXCEPTION: ContactsProviderWorker
Process: android.process.acore, PID: 6295
java.lang.RuntimeException: Package manager has died
at android.app.ApplicationPackageManager.queryContentProviders(ApplicationPackageManager.java:696)
at com.android.providers.contacts.ContactDirectoryManager.getDirectoryProviderPackages(ContactDirectoryManager.java:219)
at com.android.providers.contacts.ContactDirectoryManager.scanAllPackages(ContactDirectoryManager.java:256)
at com.android.providers.contacts.ContactDirectoryManager.scanAllPackagesIfNeeded(ContactDirectoryManager.java:191)
at com.android.providers.contacts.ContactDirectoryManager.scanAllPackages(ContactDirectoryManager.java:181)
at com.android.providers.contacts.ContactsProvider2.updateDirectoriesInBackground(ContactsProvider2.java:1885)
at com.android.providers.contacts.ContactsProvider2.performBackgroundTask(ContactsProvider2.java:1704)
at com.android.providers.contacts.ContactsProvider2$1.handleMessage(ContactsProvider2.java:1523)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: android.os.TransactionTooLargeException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:496)
at android.content.pm.IPackageManager$Stub$Proxy.queryContentProviders(IPackageManager.java:2842)
at android.app.ApplicationPackageManager.queryContentProviders(ApplicationPackageManager.java:694)
... 10 more
What is the origin of problem and how correct?
I use WIKO PULP 4G with ANDROID 5.1.1
Thanks.