Device ID changing, causes "new device" setup to happen - Android Q&A, Help & Troubleshooting

I have been having this issue with my S10 5G magisk rooted and edxposed running.
The problem is when I install a new app, my other apps fail to read any of their private data. When I chmod -R 777 /data they can read their data again.
I am not sure if this is EdXposed or what, other than its really annoying. I am begging anyone for help with this.

@elesbb
Device ID ( often refered to as Android ID ) is generated when you boot your Android phone first time and will be there forever. When you format everything and factory reset your device then this device ID is overwritten and re-generated and stored again. Similarly, if you ever install a new ROM on your Android device, then this device ID will be overwritten and re-generated when you boot the device first time.
Have never heard or read it that Magisk or EdXposed changes device's Device ID. And even then a change of Device ID is guaranteed to have nothing to do with file/folders and/or user permissions.

jwoegerbauer said:
@elesbb
Device ID ( often refered to as Android ID ) is generated when you boot your Android phone first time and will be there forever. When you format everything and factory reset your device then this device ID is overwritten and re-generated and stored again. Similarly, if you ever install a new ROM on your Android device, then this device ID will be overwritten and re-generated when you boot the device first time.
Have never heard or read it that Magisk or EdXposed changes device's Device ID. And even then a change of Device ID is guaranteed to have nothing to do with file/folders and/or user permissions.
Click to expand...
Click to collapse
Yes, this is what my exact understanding of this was as well.
What I discovered though, was each install of an application now cycles the "Device ID". And apps should not rely on the "Device ID/Android ID" as a forms of security for things like encryption, etc. This is coming from this here: https://android-developers.googleblog.com/2017/04/changes-to-device-identifiers-in.html
All I know is when I update my xposed module (being the course of debugging), I would then reboot the device. It does the "android is starting" prompt as if it was a fresh wipe of the device. All my data is still there. The system apps loose their settings though. The apps are there and all of its data. However, if I try to launch an app, it immediately force closes. Here is a logcat snippet of the Facebook, and textra app.
Facebook
Code:
11-23 14:33:40.830 14391 14391 W ContextImpl: Failed to ensure /data/user_de/0/com.facebook.lite/code_cache: mkdir failed: EACCES (Permission denied)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: FATAL EXCEPTION: main
11-23 14:33:40.950 14391 14391 E AndroidRuntime: Process: com.facebook.lite, PID: 14391
11-23 14:33:40.950 14391 14391 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.facebook.lite.ClientApplicationSplittedShell: java.lang.IllegalArgumentException: Optimized data directory /data/user/0/com.facebook.lite/dex is not owned by the current user. Shared storage cannot protect your application from code injection attacks.
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:1296)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.ActivityThread.handleMakeApplication(ActivityThread.java:7152)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7134)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at com.swift.sandhook.SandHook.callOriginMethod(SandHook.java:185)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at com.swift.sandhook.xposedcompat.hookstub.HookStubManager.hookBridge(HookStubManager.java:376)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at SandHookerNew_5sm3dthec8858ee0to4kj3c1ge.hook(Unknown Source:51)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.ActivityThread.access$1600(ActivityThread.java:274)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2102)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.os.Looper.loop(Looper.java:237)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8167)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
[COLOR="Red"]11-23 14:33:40.950 14391 14391 E AndroidRuntime: Caused by: java.lang.IllegalArgumentException: Optimized data directory /data/user/0/com.facebook.lite/dex is not owned by the current user. Shared storage cannot protect your application from code injection attacks.[/COLOR]
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at dalvik.system.DexFile.<init>(DexFile.java:141)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at dalvik.system.DexFile.loadDex(DexFile.java:210)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at dalvik.system.DexFile.loadDex(DexFile.java:177)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at X.02Q.A00(:67)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at X.01U.A04(:61)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at com.facebook.lite.ClientApplicationSplittedShell.attachBaseContext(:4738)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.Application.attach(Application.java:370)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.Instrumentation.newApplication(Instrumentation.java:1157)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:1288)
11-23 14:33:40.950 14391 14391 E AndroidRuntime: ... 14 more
Textra
Code:
11-23 14:34:20.354 9346 9346 W ContextImpl: Failed to ensure /data/user/0/com.textra/cache: mkdir failed: EACCES (Permission denied)
11-23 14:34:20.354 9346 9346 W ContextImpl: Failed to update user.inode_cache: stat failed: EACCES (Permission denied)
11-23 14:34:20.355 9346 9346 W ContextImpl: Failed to ensure /data/user_de/0/com.textra/code_cache: mkdir failed: EACCES (Permission denied)
11-23 14:34:20.355 9346 9346 W ContextImpl: Failed to update user.inode_code_cache: stat failed: EACCES (Permission denied)
[COLOR="red"]11-23 14:34:20.432 9346 26624 E SQLiteDatabase: Failed to open database '/data/user/0/com.textra/databases/messaging.db'.
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1806 SQLITE_CANTOPEN_EACCES[1806]): Could not open database[/COLOR]
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:300)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:218)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:737)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:284)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:251)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:1394)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:1339)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:974)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:448)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:391)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at com.mplus.lib.lg1.d(SourceFile:1)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at com.mplus.lib.mg1.<init>(SourceFile:6)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at com.mplus.lib.mg1.j0(SourceFile:1)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at com.mplus.lib.af1.run(Unknown Source:2)
11-23 14:34:20.432 9346 26624 E SQLiteDatabase: at java.lang.Thread.run(Thread.java:919)
So here you can see all the force closing is caused by the wrong owner/permissions. This also happens with the system apps, but the system apps just reset themselves and makes a new directory. Something is definitely changing the owner or whatever, which causes the device to think it has not been setup, prompting the "android is starting" prompt. It is EXTREMELY annoying to deal with and I am desperate for help.

Also,
running
Code:
chmod -R 777 /data
allows some apps to open (because they can now access the data), I do not know what is causing this device owner change..

Related

[APP] [ROOT] [7.1+] Oneplus 3/3t Control Center || All ROMs [07 MARCH]

Hey guys
This app is a result of me getting tired of some roms providing some features and some not.
So I created the PocketMode app in almost 6 hrs and it was my first android app.
This is the second iteration of the app and is completely revamped and greatly improved(I mean a lot....lot).
FEATURES:
1) Disables all enabled gestures and the fingerprint sensor while in pocket.
2) Full control of your phone's pocketmode service.
3) You won't see the fingerprint sensor getting unresponsive sometimes. Greatly improved the pocketmode part of the app.
4) You can toggle all the available gestures
5) Swap Home and Back Buttons
6) A little bit of theming
7) Starts automatically at boot, so you don't need to do anything except grant superuser rights.
8) HBM and sRGB modes included.
9) It works. 'nuf said !!
INSTRUCTIONS:
1) Download the apk from the second post.
2) Install like normal app.
3) open it for first time and grant root access.
4) Then enjoy the great UI
NOTE:
1) It performs perfectly fine in presence of other conflicting apps, like the cyanogenmod/LOS shipped pocketmode app. But I would suggest if you find the performance better of this one, then either uninstall the other app or freeze it because of redundancies in the system.
2) Although I've tested this rigorously, still bugs may be found and you may report them here.
HUGE SHOUTOUT OUT TO YETI-DESIGNS for the 2 amazing icons on this app. @Yeti12​
Original thread :: https://forum.xda-developers.com/oneplus-3/themes/app-pocketmode-roms-compatible-t3546798
Downloads, Sreenshots and Changelog
DOWNLOAD FROM HERE​
Changelog:
V1.0.0 :: 08-02-2017
LOOK FOR YOURSELVES.
V1.2.0 :: 06-03-2017
1) Added option to disable the "Double Tap power button to launch camera" while in pocket.(if your ROM supports it)
2) SUPORT for OxygenOS is added although the features are very limited as OOS handles everything quite well already.
3) Added Sweep2Wake toggles.
4) Added option to restore settings on boot on each page.
5) Various cosmetic changes.
6) Added 2 new icons. All thanks to @Yeti12 (look in the screenshots)
7) Squashed many bugs here and there
8) Many performance updates.
V1.2.1 :: 07-03-2017
1) Fixed force closing on OpenBeta 7.1.1​
NOTE :: Uninstall the previous app(if you have it) before installing this.
That's awesome. Instead of mindlessly complaining you actually went out your way to do something about it.
Downloading now. Will give you feedback.
Can not install. Parsing error.
Schrotty35 said:
Can not install. Parsing error.
Click to expand...
Click to collapse
On what rom are you installing? It clearly states 7.1.1 ONLY.
rituj26 said:
On what rom are you installing? It clearly states 7.1.1 ONLY.
Click to expand...
Click to collapse
Latest oos 4.0.2.
Parse error
Have install on 7.1.1 but whene i start get error and fc.
Schrotty35 said:
Have install on 7.1.1 but whene i start get error and fc.
Click to expand...
Click to collapse
Pls provide a logcat and in earlier post you said parse error. What exactly is the problem. Report rom and kernel too.
rituj26 said:
Pls provide a logcat and in earlier post you said parse error. What exactly is the problem. Report rom and kernel too.
Click to expand...
Click to collapse
I use lineage-14.1-20170202-UNOFFICIAL-oneplus3 and whene i start the app i get only a fc.
Pls post a logcat then
Okay guys
People facing the random FCs is due to the new gestures commit. I'll have to take a look at it. And will release soon. But I need to prepare for my exams too, so it might take some time.
rituj26 said:
Okay guys
People facing the random FCs is due to the new gestures commit. I'll have to take a look at it. And will release soon. But I need to prepare for my exams too, so it might take some time.
Click to expand...
Click to collapse
Older roms still work though
App crashes on official lineage os for OP3T at first start
Code:
02-07 22:39:50.044 11074 11074 D AndroidRuntime: Shutting down VM
02-07 22:39:50.045 11074 11074 E AndroidRuntime: FATAL EXCEPTION: main
02-07 22:39:50.045 11074 11074 E AndroidRuntime: Process: com.rituj.pocketmode, PID: 11074
02-07 22:39:50.045 11074 11074 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rituj.pocketmode/com.rituj.pocketmode.MainActivity}: java.lang.NumberFormatException: For input string: ""
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6126)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: Caused by: java.lang.NumberFormatException: For input string: ""
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at java.lang.Integer.parseInt(Integer.java:533)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at java.lang.Integer.parseInt(Integer.java:556)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at com.rituj.pocketmode.MainActivity.isEnabled(MainActivity.java:191)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at com.rituj.pocketmode.MainActivity.onCreate(MainActivity.java:80)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6679)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: ... 9 more
02-07 22:39:50.046 3486 4550 W ActivityManager: Force finishing activity com.rituj.pocketmode/.MainActivity
dago said:
App crashes on official lineage os for OP3T at first start
Code:
02-07 22:39:50.044 11074 11074 D AndroidRuntime: Shutting down VM
02-07 22:39:50.045 11074 11074 E AndroidRuntime: FATAL EXCEPTION: main
02-07 22:39:50.045 11074 11074 E AndroidRuntime: Process: com.rituj.pocketmode, PID: 11074
02-07 22:39:50.045 11074 11074 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rituj.pocketmode/com.rituj.pocketmode.MainActivity}: java.lang.NumberFormatException: For input string: ""
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6126)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: Caused by: java.lang.NumberFormatException: For input string: ""
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at java.lang.Integer.parseInt(Integer.java:533)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at java.lang.Integer.parseInt(Integer.java:556)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at com.rituj.pocketmode.MainActivity.isEnabled(MainActivity.java:191)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at com.rituj.pocketmode.MainActivity.onCreate(MainActivity.java:80)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6679)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
02-07 22:39:50.045 11074 11074 E AndroidRuntime: ... 9 more
02-07 22:39:50.046 3486 4550 W ActivityManager: Force finishing activity com.rituj.pocketmode/.MainActivity
Click to expand...
Click to collapse
OP UPDATED!!!
Fixed FC bug and a lot lot more.
Still parsing error on stock OOS 4.0.2.
Sent from my ONEPLUS A3003 using Tapatalk
Kickoff said:
Still parsing error on stock OOS 4.0.2.
Click to expand...
Click to collapse
It's for 7.1.1 only
Working fine on latest official LOS
Hi,
Thanks for the app :good:
Do you thinnk you can add a setting to set the capacitive buttons light timeout? It would be great!
Since you add the option to swap back and recent buttons maybe this is something possible?
Thanks in advance
well I wish this would also work for 7.0 roms on
Oos any luck that it will work in near future ?

Installing an app via TWRP (updater-script) unsuccessful, HELP!

Background:
I created a script that pretty much factory resets the phone and starts deleting apps from system/app and system/priv-app.
My problem pretty much is that when I try to add those apps back
When I add them via another flashable zip and I reboot, the apps don't start up and start crashing upon trying to open them up
I extracted the whole folder located in system/priv-app from the system.img of a previous firmware version
When I extract the folder of my current firmware version, it works. Which makes me believe that these apps are firmware specific?
The only problem is that I am trying to share these zips with other people and since they have different firmware versions (usually due to some carriers taking longer to release firmware or stuff like that)
Problem:
Anyway, here's the deal (I will use Samsung's Gallery app as an example). I have this script to add the Samsung Gallery's app:
Code:
ui_print ("Let's begin, mounting /system...");
run_program("/sbin/busybox","mount", "/system");
ui_print ("Extracting necessary files...");
package_extract_dir("system", "/system");
ui_print ("Setting necessary permission...");
set_perm(0, 0, 0755, "/system/priv-app/SecGallery2015");
set_perm(0, 0, 0755, "/system/priv-app/SecGallery2015/oat");
set_perm(0, 0, 0755, "/system/priv-app/SecGallery2015/oat/arm");
set_perm(0, 0, 0644, "/system/priv-app/SecGallery2015/oat/arm/SecGallery2015.odex");
ui_print ("Done, unmounting /system...");
run_program("/sbin/busybox", "umount", "/system");
But it doesn't work. I see that the app is added in the app drawer, but opening it up crashes it and closes it.
Here is the section of the logcat that is showing me what's wrong, maybe it'll show more clearly what the problem is (I have NO idea how to read logcats or even debug them :crying: )
Code:
01-25 16:04:00.297 4321 4321 E AndroidRuntime: FATAL EXCEPTION: main
01-25 16:04:00.297 4321 4321 E AndroidRuntime: Process: com.sec.android.gallery3d, PID: 4321
01-25 16:04:00.297 4321 4321 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.sec.android.gallery3d.app.GalleryAppImpl: java.lang.ClassNotFoundException: Didn't find class "com.sec.android.gallery3d.app.GalleryAppImpl" on path: DexPathList[[zip file "/system/framework/secvision.jar", zip file "/system/framework/allshare.jar", zip file "/system/framework/com.google.android.media.effects.jar", zip file "/system/framework/saiv.jar", zip file "/system/framework/secimaging.jar", zip file "/system/framework/twframework.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/system/framework/sechardware.jar", zip file "/system/priv-app/SecGallery2015/SecGallery2015.apk"],nativeLibraryDirectories=[/system/priv-app/SecGallery2015/lib/arm, /vendor/lib, /system/lib]]
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:680)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6469)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ActivityThread.access$1800(ActivityThread.java:229)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1887)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7406)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sec.android.gallery3d.app.GalleryAppImpl" on path: DexPathList[[zip file "/system/framework/secvision.jar", zip file "/system/framework/allshare.jar", zip file "/system/framework/com.google.android.media.effects.jar", zip file "/system/framework/saiv.jar", zip file "/system/framework/secimaging.jar", zip file "/system/framework/twframework.jar", zip file "/system/framework/com.google.android.maps.jar", zip file "/system/framework/sechardware.jar", zip file "/system/priv-app/SecGallery2015/SecGallery2015.apk"],nativeLibraryDirectories=[/system/priv-app/SecGallery2015/lib/arm, /vendor/lib, /system/lib]]
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.Instrumentation.newApplication(Instrumentation.java:1005)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:670)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: ... 9 more
01-25 16:04:00.297 4321 4321 E AndroidRuntime: Suppressed: java.io.IOException: No original dex files found for dex location (arm) /system/priv-app/SecGallery2015/SecGallery2015.apk ()
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexFile.openDexFileNative(Native Method)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexFile.openDexFile(DexFile.java:295)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexFile.<init>(DexFile.java:80)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexFile.<init>(DexFile.java:59)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexPathList.loadDexFile(DexPathList.java:279)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexPathList.makePathElements(DexPathList.java:248)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.DexPathList.<init>(DexPathList.java:120)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:86)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:47)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.LoadedApk.getClassLoader(LoadedApk.java:438)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:663)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: ... 9 more
01-25 16:04:00.297 4321 4321 E AndroidRuntime: Suppressed: java.lang.ClassNotFoundException: com.sec.android.gallery3d.app.GalleryAppImpl
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.Class.classForName(Native Method)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
01-25 16:04:00.297 4321 4321 E AndroidRuntime: ... 12 more
01-25 16:04:00.297 4321 4321 E AndroidRuntime: Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
01-25 16:04:00.297 823 2839 D InputDispatcher: Focused application set to: xxxx
01-25 16:04:00.297 823 2839 D ActivityTrigger: ActivityTrigger activityPauseTrigger
01-25 16:04:00.297 823 2839 W ActivityManager: Force finishing activity com.sec.android.gallery3d/.app.GalleryOpaqueActivity
Any help is appreciated

[Help] Substratum theme crashes themed app:

I'm trying to theme an app but I got stuck at an error that Force Closes the app. The overlay install goes well but when I try to open the app it force closes with the "You need to use a Theme.AppCompat theme or descendant with this activity" in the logcat.
The full error is:
HTML:
com.dragons.aurora.activities.AuroraActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.app.ActivityThread.-wrap11(Unknown Source:0)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6494)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor(AppCompatDelegateImplV9.java:2354)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV9.initWindowDecorActionBar(AppCompatDelegateImplV9.java:175)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplBase.getSupportActionBar(AppCompatDelegateImplBase.java:145)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.support.v7.app.AppCompatDelegateImplV9.invalidateOptionsMenu(AppCompatDelegateImplV9.java:715)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.support.v7.app.AppCompatActivity.supportInvalidateOptionsMenu(AppCompatActivity.java:239)
05-13 23:23:11.565 11110 11110 E AndroidRuntime: at android.support.v4.app.FragmentActivity$HostCallbacks.onSupportInvalidateOptionsMenu(FragmentActivity.java:928)

No voice typing on Zentwatch 2

I had reset my watch about 5 times or so, maybe less, but I am facing two issues.
Quick reply for Discord messages gives me this error
"Can't finish action. Reconnect to your phone."
But other actions work besides the other one I will mention now
In any text input field with a Mic icon for voice typing, tapping on the icon either shows the screen where it will tell you to speak and back out or just go back to the three options which are Mic, Emoji or Keyboard
Below is the logcat from my watch for the error which took me a bit to find.
Code:
04-13 20:08:58.864 1987 2108 E AndroidRuntime: FATAL EXCEPTION: EventBus0
04-13 20:08:58.864 1987 2108 E AndroidRuntime: Process: com.google.android.googlequicksearchbox:search, PID: 1987
04-13 20:08:58.864 1987 2108 E AndroidRuntime: java.lang.RuntimeException: Unchecked exception happened while running task: q[ServiceTransaction[SessionController#handleGenericClientEvent]]
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.shared.util.c.a.ca.run(SourceFile:2)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.shared.util.c.a.ak.a(SourceFile:1)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.shared.util.c.a.aj.run(Unknown Source)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.shared.util.c.a.f.run(Unknown Source)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.java:237)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at java.lang.Thread.run(Thread.java:761)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.shared.util.c.a.h.run(SourceFile:4)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: Caused by: java.lang.RuntimeException: Query received by transcription is not committed!
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.shared.util.a.g.g(SourceFile:2)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.staticplugins.ad.a.a.p.a(SourceFile:50)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.search.core.service.b.d(SourceFile:15)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.search.core.service.q.a(SourceFile:5)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.search.core.service.ax.run(SourceFile:2)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.libraries.gsa.h.a.b.run(Unknown Source)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.shared.logger.f.a.a.a.a(SourceFile:30)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.shared.logger.f.a.a.c.run(Unknown Source)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.shared.util.c.a.bz.a(SourceFile)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: at com.google.android.apps.gsa.shared.util.c.a.ca.run(SourceFile:1)
04-13 20:08:58.864 1987 2108 E AndroidRuntime: ... 10 more

Calender app does not work after de-bloating Xiaomi Mi 9

Hello everyone,
I hope thats the correct forum to post this question. I tried to find something through google search but it seems that there are only some stackoverflow development questions on that topic, which do not help a lot.
I have a MI9 (MIUI Global 10.2.30 stable) without root. Now I wanted to remove some default system apps and found this tool here: github.com/Saki-EU/XiaomiADBFastbootTools/releases/tag/6.6.2
I followed this list (and tailored it to my own needs): gist.github.com/Biswa96/81fe477079fa5279f7cfd7b98d5519c7
After finishing my de-bloating I realized that Google Calender (and also system calender) does not start any more. All I get is the error message "Failed to find provider com.android.calendar for user 0; expected to find a valid ContentProvider for this authority"
I tried to reinstall Google Calendar (and also all the removed bloat apps) but it doesn't help. Here is also the log file from adb logcat:
Code:
09-24 17:07:29.395 1441 2654 I ActivityManager: Start proc 29460:com.google.android.calendar/u0a99 for service com.google.android.calendar/com.google.android.syncadapters.calendar.CalendarSyncAdapterService caller=android
09-24 17:07:29.396 4352 4472 D PowerKeeper.Event: notifyAMProcStart processName: 10099 reason: com.google.android.calendar, pid:0
09-24 17:07:29.397 28323 28323 D Cal:D:AllInOne: onStart()
09-24 17:07:29.397 28323 28323 D Cal:D:AllInOne: onResume()
09-24 17:07:29.398 28323 29459 I Cal:D:Utils: setGoogleAccountsSyncable(): NOT syncable before, set it syncable
09-24 17:07:29.400 28323 28323 D AndroidRuntime: Shutting down VM
09-24 17:07:29.400 28323 29465 I FA : Tag Manager is not found and thus will not be used
09-24 17:07:29.400 28323 28323 E AndroidRuntime: FATAL EXCEPTION: main
09-24 17:07:29.400 28323 28323 E AndroidRuntime: Process: com.android.calendar, PID: 28323
09-24 17:07:29.400 28323 28323 E AndroidRuntime: java.lang.RuntimeException: Unable to resume activity {com.android.calendar/com.android.calendar.homepage.AllInOneActivity}: java.lang.SecurityException: Failed to find provider com.android.calendar for user 0; expected to find a valid ContentProvider for this authority
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3828)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3860)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.os.Looper.loop(Looper.java:201)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6815)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: Caused by: java.lang.SecurityException: Failed to find provider com.android.calendar for user 0; expected to find a valid ContentProvider for this authority
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:1950)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1918)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1868)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.content.IContentService$Stub$Proxy.registerContentObserver(IContentService.java:779)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.content.ContentResolver.registerContentObserver(ContentResolver.java:1988)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.content.ContentResolver.registerContentObserver(ContentResolver.java:1977)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at com.android.calendar.homepage.AllInOneActivity.onResume(AllInOneActivity.java:571)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1413)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.app.Activity.performResume(Activity.java:7400)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3820)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: ... 11 more
09-24 17:07:29.400 28323 28323 E AndroidRuntime: Caused by: android.os.RemoteException: Remote stack trace:
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at com.android.server.content.ContentService.registerContentObserver(ContentService.java:340)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.content.IContentService$Stub.onTransact(IContentService.java:76)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at com.android.server.content.ContentService.onTransact(ContentService.java:262)
09-24 17:07:29.400 28323 28323 E AndroidRuntime: at android.os.Binder.execTransact(Binder.java:733)
09-24 17:07:29.400 28323 28323 E AndroidRuntime:
09-24 17:07:29.401 28323 29459 I Cal:D:Utils: setGoogleAccountsSyncable(): NOT syncable before, set it syncable
09-24 17:07:29.402 589 589 E SELinux : avc: denied { find } for service=miui.mqsas.MQSService pid=28323 uid=10024 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:mqs_service:s0 tclass=service_manager permissive=0
09-24 17:07:29.402 28323 28323 E MQSEventManagerDelegate: failed to get MQSService.
09-24 17:07:29.403 4352 4472 D PowerKeeper.Event: notifyAMCrash packageName: 0, pid:28323
09-24 17:07:29.403 29460 29460 E ndroid.calenda: Not starting debugger since process cannot load the jdwp agent.
09-24 17:07:29.404 1441 3632 W ActivityManager: Force finishing activity com.android.calendar/.homepage.AllInOneActivity
09-24 17:07:29.405 1441 3632 D ActivityTrigger: ActivityTrigger activityPauseTrigger
09-24 17:07:29.407 28323 28323 I Process : Sending signal. PID: 28323 SIG: 9
09-24 17:07:29.407 1441 3527 D ActivityManager: report kill process: killerPid is:28323, killedPid is:28323
Does anyone has an idea how to fix it?
I had the same issue... I managed to solve it.
Code:
pm install-existing com.android.providers.calendar

Categories

Resources