So I installed an update version 3.x of Google App (katniss aka Assistant)on my Android TV. I can get it to run with reduced functionality as long as I don't sign into Google account. If I do sign in I get a crash on the Google App. Logging in ADB shows the following:
03-11 15:07:20.100 16604 16604 E AndroidRuntime: Process:
com.google.android.katniss:search, PID: 16604 03-11 15:07:20.100 16604
16604 E AndroidRuntime: java.lang.NoSuchMethodError: No static method
fromHtml(Ljava/lang/String;I)Landroid/text/Spanned; in class
Landroid/text/Html; or its super classes (declaration of
'android.text.Html' appears in /system/framework/framework.jar) 03-11
15:07:20.100 16604 16604 E AndroidRuntime: at meb.a(SourceFile:79)
03-11 15:07:20.100 16604 16604 E AndroidRuntime: at
ic.onCreate(SourceFile:73) 03-11 15:07:20.100 16604 16604 E
AndroidRuntime: at
android.app.Fragment.performCreate(Fragment.java:2198) 03-11
15:07:20.100 16604 16604 E AndroidRuntime: at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:942)
03-11 15:07:20.100 16604 16604 E AndroidRuntime: at
android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148)
03-11 15:07:20.100 16604 16604 E AndroidRuntime: at
android.app.BackStackRecord.run(BackStackRecord.java:793) 03-11
15:07:20.100 16604 16604 E AndroidRuntime: at
android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1535)
03-11 15:07:20.100 16604 16604 E AndroidRuntime: at
android.app.FragmentManagerImpl$1.run(FragmentManager.java:482) 03-11
15:07:20.100 16604 16604 E AndroidRuntime: at
android.os.Handler.handleCallback(Handler.java:739) 03-11 15:07:20.100
16604 16604 E AndroidRuntime: at
android.os.Handler.dispatchMessage(Handler.java:95) 03-11 15:07:20.100
16604 16604 E AndroidRuntime: at
android.os.Looper.loop(Looper.java:148) 03-11 15:07:20.100 16604 16604
E AndroidRuntime: at
android.app.ActivityThread.main(ActivityThread.java:5417) 03-11
15:07:20.100 16604 16604 E AndroidRuntime: at
java.lang.reflect.Method.invoke(Native Method) 03-11 15:07:20.100
16604 16604 E AndroidRuntime: at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:731)
03-11 15:07:20.100 16604 16604 E AndroidRuntime: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:621)
That seems to suggest a framework level issue. The Android TV is running Marshmellow 6.01 (I think) and Play Services 15.90 (also tried a few others including newer betas).
Any help would be greatly appreciated to get this sorted out. Do I need to replace some apk's? My first instinct is that somehow the Google App is not really compatible with Andriod 6.0 however it says it is and others have said they have it running.
I am pulling my hair out here! Help! (I won't be a good looking bald guy)
I having similar issues like that before this.
What I do flash original firmware and reedit back changes you want to do.
Uninstall or reinstall is not good way to solve the problem.
Related
I generated signed release universal apk for React Native 0.67.4 app and the release app installed on real device keeps crashing with the following error:
04-08 12:20:53.828 4299 4430 E AndroidRuntime: FATAL EXCEPTION: create_react_context
04-08 12:20:53.828 4299 4430 E AndroidRuntime: Process: com.xyz_app6, PID: 4299
04-08 12:20:53.828 4299 4430 E AndroidRuntime: java.lang.RuntimeException: Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
04-08 12:20:53.828 4299 4430 E AndroidRuntime: at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)
04-08 12:20:53.828 4299 4430 E AndroidRuntime: at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(Unknown Source:2)
04-08 12:20:53.828 4299 4430 E AndroidRuntime: at com.facebook.react.bridge.JSBundleLoader$1.loadScript(Unknown Source:10)
04-08 12:20:53.828 4299 4430 E AndroidRuntime: at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(Unknown Source:18)
04-08 12:20:53.828 4299 4430 E AndroidRuntime: at com.facebook.react.o.s(Unknown Source:177)
04-08 12:20:53.828 4299 4430 E AndroidRuntime: at com.facebook.react.o.d(Unknown Source:0)
04-08 12:20:53.828 4299 4430 E AndroidRuntime: at com.facebook.react.o$f.run(Unknown Source:68)
04-08 12:20:53.828 4299 4430 E AndroidRuntime: at java.lang.Thread.run(Thread.java:929)
The android studio is 2021.1.1 patch 2 and here is the output of ./gradlew --version:
% ./gradlew --version
------------------------------------------------------------
Gradle 7.4.1
------------------------------------------------------------
Build time: 2022-03-09 15:04:47 UTC
Revision: 36dc52588e09b4b72f2010bc07599e0ee0434e2e
Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 11.0.12 (Eclipse Foundation 11.0.12+7)
OS: Mac OS X 11.2 x86_64
The package was built with /gradlew assembleRelease following the standard signing config for React Native. Hermes enabled and ProGuard true in config. What is missing with the release package?
I developed an application that through some requests by AXIOS to certain apis it presents data, the app is very simple, I have checked all links and they all start with HTTP or HTTPS .. The application works perfectly if I generate the apk in DEBUG mode , but if I create an apk release the error comes ...
it is worth mentioning that this is a project ejected from the expo
this is the logcat log when i open the app release:
04-20 23:11:18.022 10873 10896 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
04-20 23:11:18.022 10873 10896 E AndroidRuntime: Process: com.radarcorona, PID: 10873
04-20 23:11:18.022 10873 10896 E AndroidRuntime: java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but no colon was found
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at okhttp3.HttpUrl$Builder.parse(HttpUrl.java:1333)
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at okhttp3.HttpUrl.get(HttpUrl.java:916)
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at okhttp3.Request$Builder.url(Request.java:165)
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at expo.modules.updates.loader.FileDownloader.addHeadersToManifestUrl(FileDownloader.java:190)
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at expo.modules.updates.loader.FileDownloader.downloadManifest(FileDownloader.java:79)
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at expo.modules.updates.loader.RemoteLoader.start(RemoteLoader.java:56)
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at expo.modules.updates.UpdatesController.lambda$start$0$UpdatesController(UpdatesController.java:307)
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at expo.modules.updates.-$$Lambda$UpdatesController$cVwvsx9XXcX6YuWbf7IvrVkJAiA.run(Unknown Source:6)
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)04-20 23:11:18.022 10873 10896 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
04-20 23:11:18.022 10873 10896 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)
04-20 23:11:18.024 10873 10894 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
04-20 23:11:18.036 2039 2882 W ActivityTaskManager: Force finishing activity com.radarcorona/.MainActivity
react-native: 0.61.5
I believe I found the solution to this error.
Removing expo-updates. As #fabiocosta88 mentioned on GitHub issue, the issue raises from expo-updates. Since I wasn't actually using the module in my project, I followed the guide to remove the module in all files it was defined. Here is the guide.
If uninstallation is not an option I believe that defining the EXPO_UPDATE_URL and EXPO_SDK_VERSION in the AndroidManifest.xml might solve the issue. I believe this guide defines how to get the EXPO_UPDATE_URL.
Setup wizard is getting crashed after the "set up as a new " screen when we connect to wifi it says:
checking for updates
and then Setup wizard crashes.
Android version: 7.1.2 GMS vesrion integrated in device:[7.1_r5]
We already have the framework changes added in our code but still we are getting the error
https://android.googlesource.com/platform/frameworks/base/+/b3ad567%5E%21/#F1
Logs:
09-19 17:39:19.360 9982 9982 E AndroidRuntime: FATAL EXCEPTION: main
09-19 17:39:19.360 9982 9982 E AndroidRuntime: Process: com.google.android.setupwizard, PID: 9982
09-19 17:39:19.360 9982 9982 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.google.android.setupwizard/com.google.android.setupwizard.account.AccountSetupWrapper}: **java.lang.SecurityException: Permission Denial: updateLockTaskPackages() from pid=9982, uid=10028 requires android.permission.UPDATE_LOCK_TASK_PACKAGES**
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2666)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6121)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: Caused by: java.lang.SecurityException: Permission Denial: updateLockTaskPackages() from pid=9982, uid=10028 requires android.permission.UPDATE_LOCK_TASK_PACKAGES
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1684)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1637)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at android.app.ActivityManagerProxy.updateLockTaskPackages(ActivityManagerNative.java:6774)
09-19 17:39:19.360 9982 9982 E AndroidRuntime: at
I am not sure exactly the reason why this happens, maybe your OpenGMS is not properly installed...
The setupwizard is install under "/system/priv-app", so you might change the permission level of android.permission.UPDATE_LOCK_TASK_PACKAGES in frameworks/base/core/res/AndroidManifest.xml as followings
android:protectionLevel="signature|setup|privileged"
This works in my case....
Able to fix the issue.
There seems to be a two setupwizard which are causing the issue
Add below piece of code in Android.mk for Setupwizard delivered as GMS application
LOCAL_OVERRIDES_PACKAGES := Provision Setup_Wizard
I have implemented the example for apply OpenCL in Android http://docs.opencv.org/trunk/d7/dbd/tutorial_android_ocl_intro.html
It uses a GLSurfaceView and it updates images from the camera in C++. The
C++ code uses GL libraries with glReadPixels
My question is, is it possible to take picture (with a photo resolution) with this architecture ? I tried to implement the camera.takePicture and this is my error:
04-28 16:57:18.237 203 9805 E Camera2ClientBase: takePicture: attempt to use a locked camera from a different process (old pid 0, new pid 32146)
--------- beginning of crash
04-28 16:57:18.260 32146 32279 E AndroidRuntime: FATAL EXCEPTION: GLThread 599
04-28 16:57:18.260 32146 32279 E AndroidRuntime: Process: edu.uab.cvc.camera, PID: 32146
04-28 16:57:18.260 32146 32279 E AndroidRuntime: java.lang.RuntimeException: takePicture failed
04-28 16:57:18.260 32146 32279 E AndroidRuntime: at android.hardware.Camera.native_takePicture(Native Method)
04-28 16:57:18.260 32146 32279 E AndroidRuntime: at android.hardware.Camera.takePicture(Camera.java:1434)
04-28 16:57:18.260 32146 32279 E AndroidRuntime: at edu.uab.cvc.camera.MyGLSurfaceView.takePhoto(MyGLSurfaceView.java:165)
04-28 16:57:18.260 32146 32279 E AndroidRuntime: at edu.uab.cvc.camera.MyGLSurfaceView.onCameraTexture(MyGLSurfaceView.java:139)
04-28 16:57:18.260 32146 32279 E AndroidRuntime: at org.opencv.android.CameraGLRendererBase.onDrawFrame(CameraGLRendererBase.java:131)
04-28 16:57:18.260 32146 32279 E AndroidRuntime: at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)
04-28 16:57:18.260 32146 32279 E AndroidRuntime: at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
04-28 16:57:18.276 779 3430 W ActivityManager: Force finishing activity edu.uab.cvc.camera/.MainActivity
Finally, I found the Google example for Camera2. the GLSurfaceView seems an implementation of this project. I compared the two projects and I created the necessary classes to take photo.
My NDK game works well in Debug mode, but crashes in release with the following log on Nexus 7:
E dalvikvm: dlopen("/data/app-lib/com.js.pathoflight-1/libPathOfLight.so") failed: dlopen failed: cannot locate symbol "__gnu_thumb1_case_uqi" referenced by
"libPathOfLight.so"...
W dalvikvm: Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/js /pathoflight/JSNativeActivity;
W dalvikvm: Class init failed in newInstance call (Lcom/js/pathoflight/JSNativeActivity;)
D AndroidRuntime: Shutting down VM
W dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41b01700)
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__gnu_thumb1_case_uqi" referenced by "libPathOfLight.so"...
E AndroidRuntime: at java.lang.Runtime.loadLibrary(Runtime.java:361)
E AndroidRuntime: at java.lang.System.loadLibrary(System.java:525)
E AndroidRuntime: at com.js.pathoflight.JSNativeActivity.<clinit>(JSNativeActivity.java:59)
E AndroidRuntime: at java.lang.Class.newInstanceImpl(Native Method)
E AndroidRuntime: at java.lang.Class.newInstance(Class.java:1130)
E AndroidRuntime: at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
E AndroidRuntime: at android.app.ActivityThread.access$600(ActivityThread.java:141)
E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
E AndroidRuntime: at android.os.Looper.loop(Looper.java:137)
E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5103)
E AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:525)
E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
W ActivityManager: Force finishing activity com.js.pathoflight/.JSNativeActivity
I'll appreciate any suggestion.
While removing different parts of the code I found that the issue was in a 3rd party library I used.
I changed its usage from "gnustl_static" version (.a) to "gnustl_shared" (.so) one and the problem disappeared!