Related
I switched the OS on my OP3 to Resurrection Rom and I didn't get a chance get the OxygenOS camera app before I made the switch. Would someone mind uploading the camera app apk somewhere? I want to test it out against the camera that comes with Resurrection. Thanks!
I would, but I can't seem to find the apk, do you know where exactly I have to search?
Edit: I just found it. It was under /system/priv-app/
OnePlusCamera.apk
crysen said:
I would, but I can't seem to find the apk, do you know where exactly I have to search?
Edit: I just found it. It was under /system/priv-app/
OnePlusCamera.apk
Click to expand...
Click to collapse
Thank you so much! Hopefully this will work with resurrection...I'll report back my findings.
Don't you need to have the libs that goes with it? I doubt the apk alone will be sufficient.
EDIT/// Just as I thought, results in app crashing when launching the app. Seems we need the libs to get it working. Someone can manage to find them?
matssa said:
Don't you need to have the libs that goes with it? I doubt the apk alone will be sufficient.
EDIT/// Just as I thought, results in app crashing when launching the app. Seems we need the libs to get it working. Someone can manage to find them?
Click to expand...
Click to collapse
I would if I knew where to find them or how they are called
Here's a list from another thread. Looks like just libcam* so that would be a good start. The libs might not work with a new kernel, though.
Libcamalgo.so
Libcameracustom.so
Libcameraclient.so
Libcameraservice.so
Libcamerametadata.so
Click to expand...
Click to collapse
Scrawson said:
Here's a list from another thread. Looks like just libcam* so that would be a good start. The libs might not work with a new kernel, though.
Click to expand...
Click to collapse
This is all I found for the search "libcam":
"libcamera_client.so"
"libcamera_metadata.so"
"libcameraservice.so"
Once for 32-bit and once for 64-bit.
The path is /system/lib and /system/lib64
I created 2 folders with the lib files:
OnePlusCamera lib files
crysen said:
This is all I found for the search "libcam":
"libcamera_client.so"
"libcamera_metadata.so"
"libcameraservice.so"
Once for 32-bit and once for 64-bit.
The path is /system/lib and /system/lib64
I created 2 folders with the lib files:
OnePlusCamera lib files
Click to expand...
Click to collapse
Gonna test it out. I'm on CM13 from Grarak, so can't say if it will work. I replaced the old ones with these ones.
EDIT/// Tested it out, still FC:
Code:
06-22 13:54:50.518 8252 8252 E AndroidRuntime: FATAL EXCEPTION: main
06-22 13:54:50.518 8252 8252 E AndroidRuntime: Process: com.oneplus.camera, PID: 8252
06-22 13:54:50.518 8252 8252 E AndroidRuntime: Theme: themes:{}
06-22 13:54:50.518 8252 8252 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.oneplus.camera.OPCameraApplication: java.lang.ClassNotFoundException: Didn't find class "com.oneplus.camera.OPCameraApplication" on path: DexPathList[[zip file "/data/app/com.oneplus.camera-1/base.apk"],nativeLibraryDirectories=[/data/app/com.oneplus.camera-1/lib/arm64, /vendor/lib64, /system/lib64]]
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:579)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4724)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:740)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(<Xposed>)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.app.ActivityThread.-wrap1(ActivityThread.java)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5461)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.oneplus.camera.OPCameraApplication" on path: DexPathList[[zip file "/data/app/com.oneplus.camera-1/base.apk"],nativeLibraryDirectories=[/data/app/com.oneplus.camera-1/lib/arm64, /vendor/lib64, /system/lib64]]
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.app.Instrumentation.newApplication(Instrumentation.java:982)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:574)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: ... 13 more
06-22 13:54:50.518 8252 8252 E AndroidRuntime: Suppressed: java.io.IOException: No original dex files found for dex location /data/app/com.oneplus.camera-1/base.apk
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at dalvik.system.DexFile.openDexFileNative(Native Method)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at dalvik.system.DexFile.openDexFile(DexFile.java:295)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at dalvik.system.DexFile.<init>(DexFile.java:80)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at dalvik.system.DexFile.<init>(DexFile.java:59)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at dalvik.system.DexPathList.loadDexFile(DexPathList.java:279)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at dalvik.system.DexPathList.makePathElements(DexPathList.java:248)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at dalvik.system.DexPathList.<init>(DexPathList.java:120)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:58)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at android.app.LoadedApk.getClassLoader(LoadedApk.java:376)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at de.robv.android.xposed.XposedBridge$1.beforeHookedMethod(XposedBridge.java:190)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:720)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: ... 10 more
06-22 13:54:50.518 8252 8252 E AndroidRuntime: Suppressed: java.lang.ClassNotFoundException: com.oneplus.camera.OPCameraApplication
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at java.lang.Class.classForName(Native Method)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
06-22 13:54:50.518 8252 8252 E AndroidRuntime: ... 16 more
06-22 13:54:50.518 8252 8252 E AndroidRuntime: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
06-22 13:54:50.520 1266 2416 W ActivityManager: Force finishing activity com.oneplus.camera/.OPCameraActivity
06-22 13:54:50.578 1266 6612 I OpenGLRenderer: Initialized EGL, version 1.4
06-22 13:54:51.035 1266 1509 W ActivityManager: Activity pause timeout for ActivityRecord{e85bb1a u0 com.oneplus.camera/.OPCameraActivity t509 f}
06-22 13:54:51.098 2786 3069 W LocationOracle: Best location was null
matssa said:
Gonna test it out. I'm on CM13 from Grarak, so can't say if it will work. I replaced the old ones with these ones.
Click to expand...
Click to collapse
I just manually searched in the lib directory and found some more libs, that looked as if they were also for the camera.
I uploaded them already.
/system/lib/:
libmm-qcamera.so
libmmcamera_interface.so
libopbaselib.so
libopcamera.so
libopcamerahw_interface.so
libopcameralib.so
/system/lib64/:
libopbaselib.so
libopcamera.so
libopcameralib.so
So 6 new libs for /system/lib/ and 3 new for /system/lib64/
crysen said:
I just manually searched in the lib directory and found some more libs, that looked as if they were also for the camera.
I uploaded them already.
/system/lib/:
libmm-qcamera.so
libmmcamera_interface.so
libopbaselib.so
libopcamera.so
libopcamerahw_interface.so
libopcameralib.so
/system/lib64/:
libopbaselib.so
libopcamera.so
libopcameralib.so
So 6 new libs for /system/lib/ and 3 new for /system/lib64/
Click to expand...
Click to collapse
Ah crap, reflashed my ROM... Gonna try it again after
matssa said:
Ah crap, reflashed my ROM... Gonna try it again after
Click to expand...
Click to collapse
Just tested it out, still FC. Ins't there any libs with the apk in data/app/com.oneplus.camera-1 ?
matssa said:
Just tested it out, still FC. Ins't there any libs with the apk in data/app/com.oneplus.camera-1 ?
Click to expand...
Click to collapse
I don't even have a folder named com.oneplus.camera-1.
numbere said:
I don't even have a folder named com.oneplus.camera-1.
Click to expand...
Click to collapse
Strange, cause when looking in the log, I have the following:
06-22 14:08:15.679 14580 14580 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.oneplus.camera.OPCameraApplication: java.lang.ClassNotFoundException: Didn't find class "com.oneplus.camera.OPCameraApplication" on path: DexPathList[[zip file "/data/app/com.oneplus.camera-1/base.apk"],nativeLibraryDirectories=[/data/app/com.oneplus.camera-1/lib/arm64, /vendor/lib64, /system/lib64]]
If I am reading correctly, I think some files are missing in the different folders.
matssa said:
If I am reading correctly, I think some files are missing in the different folders.
Click to expand...
Click to collapse
That's odd. If you find out what's needed I'll upload the files.
matssa said:
Just tested it out, still FC. Ins't there any libs with the apk in data/app/com.oneplus.camera-1 ?
Click to expand...
Click to collapse
numbere said:
I don't even have a folder named com.oneplus.camera-1.
Click to expand...
Click to collapse
That's apparently the wrong path. I can find it under /data/data/com.oneplus.camera
There's also /data/data/com.oneplus.camera.service
They both have the subfolders "cache" and "code_cache" and "/data/data/com.oneplus.camera" additionally has a "shared_prefs"-folder.
However there are no libs only .xml and .cache files.
Edit: I just uploaded the OnePlusCameraService.apk, maybe that's the missing piece you need.
numbere said:
That's odd. If you find out what's needed I'll upload the files.
Click to expand...
Click to collapse
crysen said:
That's apparently the wrong path. I can find it under /data/data/com.oneplus.camera
There's also /data/data/com.oneplus.camera.service
They both have the subfolders "cache" and "code_cache" and "/data/data/com.oneplus.camera" additionally has a "shared_prefs"-folder.
However there are no libs only .xml and .cache files.
Click to expand...
Click to collapse
Thanks for this info. I'm not very good in terms of android programming so I don't think I will be able to sort this out ^^ I'll keep trying but can't be sure i'll be able to do it :/ We might need a real dev to take a look
Won't work that way you will need to deodex the apk by pulling framework, system/app and private app folders to PC and use an arm64 deodex tool for 5.0.1+ to do it. I did it with my op2 and got the deodexd apk which pretty much works with any device as long as I push it in system folder. Hope that helps Good Luck !
This is why I love this community. I go offline for 24 hours (I just finished my work day) and I come back to some great posts about people working on this. I wish I was as informed about all of this as you guys are (seems there's a lot I can learn) and so I don't know how much I can contribute. I'll keep monitoring this thread to see what great fruit all of this collaborating will produce. If you guys want me to do any tests, I'm ready and waiting. I'm using the unofficial Resurrection rom by kenzolo (http://forum.xda-developers.com/one...-resurrectionremix-m-v5-7-0-20160616-t3399921). You guys all rock!
lead3r1 said:
Won't work that way you will need to deodex the apk by pulling framework, system/app and private app folders to PC and use an arm64 deodex tool for 5.0.1+ to do it. I did it with my op2 and got the deodexd apk which pretty much works with any device as long as I push it in system folder. Hope that helps Good Luck !
Click to expand...
Click to collapse
http://forum.xda-developers.com/and.../script-app-joeldroid-lollipop-batch-t2980857
My phone is arriving tomorrow and I have this little doubt regarding camera.
I love RR on my D855 LG G3, but compared to stock LG ROM, quality sucks.
Do you loose any quality switching from Oxygen to CM?
Thanks!
I was on a Custom Rom Darthstaler. Everything(Xposex, Su) was running perfectly. After like a week, my phone froze during a video call. I restarted it and found it stuck on samsung bootsplash screen. I tried cleaning everything and flashing rom again, flashed stock rom using Odin and Smart Switch emergency rom install. None of them worked. I tried repairing the partition using PIT file but that did not worked either. Today I decided to check what waas causing the endless splashscreen , so I connected it to my computer and used ADB logcat feature. What is saw was audio process dying again and again in a loop.
Code:
02-02 07:44:35.430 2986 2986 F DEBUG : Tombstone written to: /data/tombstones/tombstone_06
02-02 07:44:35.430 2986 2986 E : ro.product_ship = true
02-02 07:44:35.430 2986 2986 E : ro.debug_level = 0x4f4c
02-02 07:44:35.430 2986 2986 E : sys.mobilecare.preload = false
02-02 07:44:35.460 2975 2975 I ServiceManager: service 'media.audio_flinger' died
02-02 07:44:35.460 2975 2975 I ServiceManager: service 'media.player' died
02-02 07:44:35.460 2975 2975 I ServiceManager: service 'media.resource_manager' died
02-02 07:44:35.460 2975 2975 I ServiceManager: service 'media.camera' died
02-02 07:44:35.500 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:35.610 5139 16315 I ServiceManager: Waiting for service media.audio_policy...
02-02 07:44:35.700 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:35.900 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:36.100 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:36.300 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:36.500 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:36.610 5139 16315 I ServiceManager: Waiting for service media.audio_policy...
02-02 07:44:36.710 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:36.830 5139 5548 D BatteryService: [email protected] : batteryPropertiesChanged!
02-02 07:44:36.830 5139 5548 D BatteryService: level:34, scale:100, status:2, health:2, present:true, voltage: 3876, temperature: 369, technology: Li-ion, AC powered:false, USB powered:true, POGO powered:false, Wireless powered:false, icon:17303445, invalid charger:0, maxChargingCurrent:0
02-02 07:44:36.830 5139 5548 D BatteryService: online:6, current avg:487, charge type:1, power sharing:false, high voltage charger:false, capacity:280000, batterySWSelfDischarging:false, current_now:738
02-02 07:44:36.910 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:37.110 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:37.310 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:37.510 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:37.610 5139 16315 I ServiceManager: Waiting for service media.audio_policy...
02-02 07:44:37.710 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:37.910 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:38.120 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:38.320 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:38.520 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
02-02 07:44:38.610 5139 16315 W AudioSystem: AudioPolicyService not published, waiting...
02-02 07:44:38.720 3331 3331 E SamsungPowerSound: media.audio_policy not published, waiting...
Please help me with it. I would really like to have my phone back working.
Search AndroidFileHost for AudioFixTmobile.zip
Hi,
i've just installed the latest viper10 (v5.9.0) rom to my HTC 10. I want to change some stuff in the venom tweaks, but when i try to change an icon (carrier icon, status bar icon etc...) it shows an error : "Venom tweaks - the application has stopped".
I tried to clean the cache of the venom tweaks and venom hub in app manager, log out and log in again into my account, reinstall the rom with and without wipe and did a record when the massage appears. I cant upload the zip here and post a link so i will send you in pm if you can halp me.
I use the latest twrp recovery and stock kernel.
Thanks for your help.
szbbalint said:
Hi,
i've just installed the latest viper10 (v5.9.0) rom to my HTC 10. I want to change some stuff in the venom tweaks, but when i try to change an icon (carrier icon, status bar icon etc...) it shows an error : "Venom tweaks - the application has stopped".
I tried to clean the cache of the venom tweaks and venom hub in app manager, log out and log in again into my account, reinstall the rom with and without wipe and did a record when the massage appears. I cant upload the zip here and post a link so i will send you in pm if you can halp me.
I use the latest twrp recovery and stock kernel.
Thanks for your help.
Click to expand...
Click to collapse
just upload it to drive/dropbox or any other filehoster. Or unzip it and pull out the logcat.txt and upload oit.
j to the 4n said:
just upload it to drive/dropbox or any other filehoster. Or unzip it and pull out the logcat.txt and upload oit.
Click to expand...
Click to collapse
i cant post any link because i'm a new user... so i copy/paste the logcat.txt
04-09 08:22:40.548 8009 8009 E AndroidRuntime: FATAL EXCEPTION: main
04-09 08:22:40.548 8009 8009 E AndroidRuntime: Process: com.m0narx.tweaks, PID: 8009
04-09 08:22:40.548 8009 8009 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content: }
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.app.Activity.startActivityFromFragment(Activity.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.app.Activity$HostCallbacks.onStartActivityFromFragment(Activity.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at com.m0narx.tweaks.widgets.Misc.InstallBg(Misc.java:292)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at com.m0narx.tweaks.fragments.ScreenStatusBarHeaderOperator.onPrefChange(ScreenStatusBarHeaderOperator.java:69)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at com.m0narx.tweaks.widgets.BasePreferences.onPreferenceChange(BasePreferences.java:568)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.callChangeListener(HtcPreference.java:346)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at com.htc.libs.preference.HtcTwoStatePreference.onClick(HtcTwoStatePreference.java:55)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.performClick(HtcPreference.java:855)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at com.htc.libs.preference.HtcPreferenceScreen.onItemClick(HtcPreferenceScreen.java:155)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.os.Looper.loop(Looper.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
04-09 08:22:40.548 8009 8009 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: FATAL EXCEPTION: main
04-09 08:36:34.861 13283 13283 E AndroidRuntime: Process: com.m0narx.tweaks, PID: 13283
04-09 08:36:34.861 13283 13283 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content: }
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.app.Activity.startActivityFromFragment(Activity.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.app.Activity$HostCallbacks.onStartActivityFromFragment(Activity.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at com.m0narx.tweaks.widgets.Misc.InstallBg(Misc.java:292)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at com.m0narx.tweaks.fragments.ScreenStatusBarHeaderOperator.onPrefChange(ScreenStatusBarHeaderOperator.java:69)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at com.m0narx.tweaks.widgets.BasePreferences.onPreferenceChange(BasePreferences.java:568)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.callChangeListener(HtcPreference.java:346)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at com.htc.libs.preference.HtcTwoStatePreference.onClick(HtcTwoStatePreference.java:55)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.performClick(HtcPreference.java:855)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at com.htc.libs.preference.HtcPreferenceScreen.onItemClick(HtcPreferenceScreen.java:155)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.os.Looper.loop(Looper.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
04-09 08:36:34.861 13283 13283 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: FATAL EXCEPTION: main
04-09 08:37:23.409 13569 13569 E AndroidRuntime: Process: com.m0narx.tweaks, PID: 13569
04-09 08:37:23.409 13569 13569 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content: }
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.app.Activity.startActivityFromFragment(Activity.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.app.Activity$HostCallbacks.onStartActivityFromFragment(Activity.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at com.m0narx.tweaks.widgets.Misc.InstallBg(Misc.java:292)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at com.m0narx.tweaks.fragments.ScreenStatusBarHeaderOperator.onPrefChange(ScreenStatusBarHeaderOperator.java:69)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at com.m0narx.tweaks.widgets.BasePreferences.onPreferenceChange(BasePreferences.java:568)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.callChangeListener(HtcPreference.java:346)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at com.htc.libs.preference.HtcTwoStatePreference.onClick(HtcTwoStatePreference.java:55)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.performClick(HtcPreference.java:855)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at com.htc.libs.preference.HtcPreferenceScreen.onItemClick(HtcPreferenceScreen.java:155)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.os.Looper.loop(Looper.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
04-09 08:37:23.409 13569 13569 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: FATAL EXCEPTION: main
04-09 08:43:09.097 14645 14645 E AndroidRuntime: Process: com.m0narx.tweaks, PID: 14645
04-09 08:43:09.097 14645 14645 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content: }
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.app.Activity.startActivityFromFragment(Activity.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.app.Activity$HostCallbacks.onStartActivityFromFragment(Activity.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at com.m0narx.tweaks.widgets.Misc.InstallBg(Misc.java:292)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at com.m0narx.tweaks.fragments.ScreenStatusBarHeaderOperator.onPrefChange(ScreenStatusBarHeaderOperator.java:69)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at com.m0narx.tweaks.widgets.BasePreferences.onPreferenceChange(BasePreferences.java:568)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.callChangeListener(HtcPreference.java:346)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at com.htc.libs.preference.HtcTwoStatePreference.onClick(HtcTwoStatePreference.java:55)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.performClick(HtcPreference.java:855)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at com.htc.libs.preference.HtcPreferenceScreen.onItemClick(HtcPreferenceScreen.java:155)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.os.Looper.loop(Looper.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
04-09 08:43:09.097 14645 14645 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: FATAL EXCEPTION: main
04-09 08:45:45.240 16696 16696 E AndroidRuntime: Process: com.m0narx.tweaks, PID: 16696
04-09 08:45:45.240 16696 16696 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content: }
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.app.Activity.startActivityFromFragment(Activity.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.app.Activity$HostCallbacks.onStartActivityFromFragment(Activity.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at com.m0narx.tweaks.widgets.Misc.InstallBg(Misc.java:292)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at com.m0narx.tweaks.fragments.ScreenStatusBarHeaderOperator.onPrefChange(ScreenStatusBarHeaderOperator.java:69)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at com.m0narx.tweaks.widgets.BasePreferences.onPreferenceChange(BasePreferences.java:568)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.callChangeListener(HtcPreference.java:346)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at com.htc.libs.preference.HtcTwoStatePreference.onClick(HtcTwoStatePreference.java:55)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.performClick(HtcPreference.java:855)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at com.htc.libs.preference.HtcPreferenceScreen.onItemClick(HtcPreferenceScreen.java:155)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.os.Looper.loop(Looper.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
04-09 08:45:45.240 16696 16696 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
04-09 08:47:51.066 17721 17867 I System : exec(su -c logcat | grep AndroidRuntime @ com.m0narx.tweaks.process.LogcatWriter.run)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: FATAL EXCEPTION: main
04-09 08:47:59.895 17721 17721 E AndroidRuntime: Process: com.m0narx.tweaks, PID: 17721
04-09 08:47:59.895 17721 17721 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content: }
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.app.Instrumentation.execStartActivity(Instrumentation.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.app.Activity.startActivityForResult(Activity.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.app.Activity.startActivityFromFragment(Activity.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.app.Activity$HostCallbacks.onStartActivityFromFragment(Activity.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.app.Fragment.startActivityForResult(Fragment.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at com.m0narx.tweaks.widgets.Misc.InstallBg(Misc.java:292)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at com.m0narx.tweaks.fragments.ScreenStatusBarHeaderOperator.onPrefChange(ScreenStatusBarHeaderOperator.java:69)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at com.m0narx.tweaks.widgets.BasePreferences.onPreferenceChange(BasePreferences.java:568)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.callChangeListener(HtcPreference.java:346)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at com.htc.libs.preference.HtcTwoStatePreference.onClick(HtcTwoStatePreference.java:55)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at com.htc.libs.preference.HtcPreference.performClick(HtcPreference.java:855)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at com.htc.libs.preference.HtcPreferenceScreen.onItemClick(HtcPreferenceScreen.java:155)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.widget.AdapterView.performItemClick(AdapterView.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.widget.AbsListView.performItemClick(AbsListView.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.widget.AbsListView$PerformClick.run(AbsListView.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.widget.AbsListView$3.run(AbsListView.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.os.Looper.loop(Looper.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
04-09 08:47:59.895 17721 17721 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
04-09 08:48:16.454 17998 17998 E AndroidRuntime: FATAL EXCEPTION: main
04-09 08:48:16.454 17998 17998 E AndroidRuntime: Process: com.m0narx.tweaks, PID: 17998
04-09 08:48:16.454 17998 17998 E AndroidRuntime: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.PICK dat=content: }
04-09 08:48:16.454 17998 17998 E AndroidRuntime: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java)
Click to expand...
Click to collapse
szbbalint said:
i cant post any link because i'm a new user... so i copy/paste the logcat.txt
Click to expand...
Click to collapse
Seemy you got no album app installed.
Install HTC Gallery or Google Photos.
j to the 4n said:
Seemy you got no album app installed.
Install HTC Gallery or Google Photos.
Click to expand...
Click to collapse
Yes, that was the problem.. Thank you for your help.
szbbalint said:
Yes, that was the problem.. Thank you for your help.
Click to expand...
Click to collapse
you are welcome.
I am trying to replace the xml resource "config_webview_packages" in android package.
I've tried both systemWideReplacement and setReplacement in hookinit resource
Code:
XposedBridge.log("Detected android package");
XModuleResources modRes = XModuleResources.createInstance(MODULE_PATH, null);
XResources.setSystemWideReplacement("android", "xml", "config_webview_packages", modRes.fwd(R.xml.config_webview_packages));
XposedBridge.log("Replaced config_webview_packages");
int id = modRes.getIdentifier("config_webview_packages", "xml", "android");
XposedBridge.log(id + " " + modRes.getXml(id));
When I use system wide replacement in initZygote, the device goes into bootloop, this is the logcat.
Code:
05-13 21:28:06.959 1975 1975 D AndroidRuntime: Shutting down VM
05-13 21:28:06.959 1975 1975 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
05-13 21:28:06.959 1975 1975 E AndroidRuntime: java.lang.RuntimeException: Failed to create service com.android.server.webkit.WebViewUpdateService: service constructor threw an exception
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:104)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.server.SystemServer.startCoreServices(SystemServer.java:516)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.server.SystemServer.run(SystemServer.java:339)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.server.SystemServer.main(SystemServer.java:222)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:890)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:780)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.server.SystemServiceManager.startService(SystemServiceManager.java:93)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: ... 7 more
05-13 21:28:06.959 1975 1975 E AndroidRuntime: Caused by: java.lang.NoSuchFieldError: android.content.res.XModuleResources#mCachedXmlBlockIds
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at de.robv.android.xposed.XposedHelpers.findField(XposedHelpers.java:116)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at de.robv.android.xposed.XposedHelpers.getObjectField(XposedHelpers.java:894)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at android.content.res.XResources.isXmlCached(XResources.java:1121)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at android.content.res.XResources.getXml(XResources.java:1105)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.server.webkit.SystemImpl.<init>(SystemImpl.java:81)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.server.webkit.SystemImpl.<init>(SystemImpl.java)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.server.webkit.SystemImpl$LazyHolder.<clinit>(SystemImpl.java:67)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.server.webkit.SystemImpl.getInstance(SystemImpl.java:71)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: at com.android.server.webkit.WebViewUpdateService.<init>(WebViewUpdateService.java:58)
05-13 21:28:06.959 1975 1975 E AndroidRuntime: ... 10 more
When I try setReplacement in handleInitPackageResources, the code works but the resource doesn't get replaced.
Kinda stuck now.. any help?
Did you ever make it work? I have a similar issue: https://forum.xda-developers.com/t/cant-get-simple-resource-replacement-to-work.4219491/
try to create the modRes instance on the zygote and the replace on handleInitPackageResources
static XModuleResources modRes;
@override
public void initZygote(StartupParam startupParam) throws Throwable {
modRes = XModuleResources.createInstance(startupParam.modulePath, null);
}
public static final String TARGET = "android";
//public static final String TARGET = "com.android.systemui";
@override
public void handleInitPackageResources(XC_InitPackageResources.InitPackageResourcesParam resparam) throws Throwable {
if (!resparam.packageName.equals(TARGET)) {
return;
}
//resp.res.setReplacement(TARGET, type, name, modRes.fwd(res));
resp.res.setReplacement(TARGET, "layout", "video_menu_item", modRes.fwd(R.layout.video_call_menu_item));
}
I have a google pixel 5 with lineageos 20 installed. I get the error "Profiles Trust Provider keeps stopping" popping up. The relevant section of the log is below; it's crashing because it needs android.permission.BLUETOOTH_CONNECT permission but doesn't have it. I don't have any bluetooth triggers configured in my system profiles.
Any suggestions for how to work around this would be welcome. Is there some way to grant that permission?
Thanks,
Keith
02-14 18:34:47.944 7484 7484 D AndroidRuntime: Shutting down VM
02-14 18:34:47.945 7484 7484 E AndroidRuntime: FATAL EXCEPTION: main
02-14 18:34:47.945 7484 7484 E AndroidRuntime: Process: org.lineageos.profiles, PID: 7484
02-14 18:34:47.945 7484 7484 E AndroidRuntime: java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for AttributionSource { uid = 10179, packageName = org.lineageos.profiles, attributionTag = null, token = [email protected], next = null }: AdapterService getBondedDevices
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at com.android.bluetooth.Utils.checkPermissionForDataDelivery(Utils.java:482)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at com.android.bluetooth.Utils.checkConnectPermissionForDataDelivery(Utils.java:514)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getBondedDevices(AdapterService.java:2123)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getBondedDevices(AdapterService.java:2115)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at android.bluetooth.IBluetooth$Stub.onTransact(IBluetooth.java:642)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at android.os.Binder.execTransactInternal(Binder.java:1285)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at android.os.Binder.execTransact(Binder.java:1244)
keithr42 said:
I have a google pixel 5 with lineageos 20 installed. I get the error "Profiles Trust Provider keeps stopping" popping up. The relevant section of the log is below; it's crashing because it needs android.permission.BLUETOOTH_CONNECT permission but doesn't have it. I don't have any bluetooth triggers configured in my system profiles.
Any suggestions for how to work around this would be welcome. Is there some way to grant that permission?
Thanks,
Keith
02-14 18:34:47.944 7484 7484 D AndroidRuntime: Shutting down VM
02-14 18:34:47.945 7484 7484 E AndroidRuntime: FATAL EXCEPTION: main
02-14 18:34:47.945 7484 7484 E AndroidRuntime: Process: org.lineageos.profiles, PID: 7484
02-14 18:34:47.945 7484 7484 E AndroidRuntime: java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for AttributionSource { uid = 10179, packageName = org.lineageos.profiles, attributionTag = null, token = [email protected], next = null }: AdapterService getBondedDevices
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at com.android.bluetooth.Utils.checkPermissionForDataDelivery(Utils.java:482)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at com.android.bluetooth.Utils.checkConnectPermissionForDataDelivery(Utils.java:514)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getBondedDevices(AdapterService.java:2123)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder.getBondedDevices(AdapterService.java:2115)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at android.bluetooth.IBluetooth$Stub.onTransact(IBluetooth.java:642)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at android.os.Binder.execTransactInternal(Binder.java:1285)
02-14 18:34:47.945 7484 7484 E AndroidRuntime: at android.os.Binder.execTransact(Binder.java:1244)
Click to expand...
Click to collapse
I have the same problem. Did you file a bug? Did you find a solution? I use LineageOS for microG, so I cannot report a bug. https://wiki.lineageos.org/how-to/bugreport