theme manager from MIUI 8.2.9.0 - Xiaomi Redmi 4X Themes, Apps, and Mods

Hello.
I need help.
On my new Redmi 4x rooted (with MIUI 8.2.9.0) I've uninstalled Theme manager app and now I can't set any notification.
I've tried installing the one got here http://en.miui.com/thread-563883-1-1.html but it crashes when I open that app or I try to choose a notification.
Any idea on how I can solve (possibly without reinstalling the rom)?
Thanks.
Here is the message after Theme manager crashes:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/android/thememanager/module/DependencyUtils;
at com.android.thememanager.ThemeApplicationConstants.<clinit>(ThemeApplicationConstants.java:8)
at com.android.thememanager.util.ApplicationHelper.deleteUnCompatibleResources(ApplicationHelper.java:98)
at com.android.thememanager.util.ApplicationHelper.initEnvironment(ApplicationHelper.java:43)
at com.android.thememanager.ThemeApplication.onCreate(ThemeApplication.java:80)
at miui.external.Application.onCreate(SourceFile:181)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4726)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
at android.app.ActivityThread.handleBindApplication(<Xposed>)
at android.app.ActivityThread.access$1600(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5441)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.thememanager.module.DependencyUtils" on path: DexPathList[[zip file "/system/framework/cloud-common.jar", zip file "/system/priv-app/com.android.thememanager/base.apk"],nativeLibraryDirectories=[/system/priv-app/com.android.thememanager/lib/arm64, /vendor/lib64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 19 more
Suppressed: java.lang.ClassNotFoundException: Didn't find class "com.android.thememanager.module.DependencyUtils" on path: DexPathList[[dex file "/data/dalvik-cache/xposed_XResourcesSuperClass.dex"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 20 more
Suppressed: java.lang.ClassNotFoundException: com.android.thememanager.module.DependencyUtils
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 21 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

I'm running the Global Developer ROM MIUI 9 7.9.22 and I pulled this APK out for you. I don't know if it will work or not but you can try pushing it to /system/app/ThemeManager/ and setting permissions. Good luck.

onestoploser said:
I'm running the Global Developer ROM MIUI 9 7.9.22 and I pulled this APK out for you. I don't know if it will work or not but you can try pushing it to /system/app/ThemeManager/ and setting permissions. Good luck.
Click to expand...
Click to collapse
Thanks!
I've installed it, then moved to system app with Link2SD but it keeps crashing.
Going to /system/priv-app I see that I now have the folder com.android.thememanager (with folder lib, folder oat and base.apk).
Folder lib is empty and trying to open folder oat I get the message Loading error! Acces denied.
In /system/app I don't have the folder ThemeManager but I see the file ThemeManagerService.apk, but trying to install it nothing changes.
Is there something else I can try?
Which permission were you talking about?
Thanks again!

solquest3 said:
Thanks!
I've installed it, then moved to system app with Link2SD but it keeps crashing.
Going to /system/priv-app I see that I now have the folder com.android.thememanager (with folder lib, folder oat and base.apk).
Folder lib is empty and trying to open folder oat I get the message Loading error! Acces denied.
In /system/app I don't have the folder ThemeManager but I see the file ThemeManagerService.apk, but trying to install it nothing changes.
Is there something else I can try?
Which permission were you talking about?
Thanks again!
Click to expand...
Click to collapse
Make sure your app permissions are set correctly:

Hmmm there's something I'm missing...
Opening File Manager +, selecting /system/app and checking Properties I see Permission Read.
Opening ES File Explorer, selecting /system/app and checking Properties I see Permission rwx r-x r-x.
Installing your apk again and converting it to system app with Link2SD I again find the folder com.android.thememanager inside /system/priv-app and I don't have the folder ThemeManager inside /system/app.
What do I have to do for having it installed there?

I'm sorry man. I don't know the answer. Hopefully someone with more advanced knowledge sees this thread. You can always re-flash your ROM to get everything back though.

Related

Vanilla Keyboard Help

I'm trying to put together a vanilla keyboard that works for most 2.1 roms (Im using Fresh rom right now).
I tried ripping the LatinIME.apk out of darchdroid but it failed to install. Here's the logcat, what am I missing?
Code:
E/PackageManager( 295): Package com.android.inputmethod.latin has no signatures that match those in shared user android.uid.shared; ignoring!
W/PackageManager( 295): Package couldn't be installed in /data/app/com.android.inputmethod.latin.apk
Mod. edit: not rom dev related, moved to q&a
Pull out the LatianIME.apk under system/app and push it to your phone
Then you need to lib files they are libjni_latinime.so and libjni_pinyinime.so
and it should work
killerxx2 said:
Pull out the LatianIME.apk under system/app and push it to your phone
Then you need to lib files they are libjni_latinime.so and libjni_pinyinime.so
and it should work
Click to expand...
Click to collapse
I pulled those files from DarchDroid and pushed them to /system/lib and /system/app respectively but I still don't get the option to enable LatinIME in text inputs.
giovannizero said:
Code:
E/PackageManager( 295): Package com.android.inputmethod.latin has no signatures that match those in shared user android.uid.shared; ignoring!
W/PackageManager( 295): Package couldn't be installed in /data/app/com.android.inputmethod.latin.apk
Click to expand...
Click to collapse
As u can see ur having a shared uuid issue where the system is flat out rejecting that apk. the reason being its not signed with the same keys as all the other apks in /system/framework and /system/app. to remedy this issue, u will need to resign ALL the apks in /system/app and /system/framework with testkeys. by signing them, i mean sign each individual apk like u would a rom.

[Guide] How to deodex SMemo.apk

SMemo.apk is making problem when trying to deodex it.
I found the dependencies files and it works great!
Download the 2 attached files: servlet.jar and memo.jar
put these files in your framework folder
Use these files to deodex SMemo.apk -
twframework.jar
com.google.android.maps.jar
secmediarecorder.jar
memo.jar
servlet.jar
deodex your SMemo.apk
Good luck! Don't forget to hit the "Thanks" button :good:
Nice work dude!
You also need twframework.jar and com.google.android.maps.jar but those are to find in /framework.
But anyway there are still some errors:
Code:
Error while disassembling method Lcom/diotek/gdocs/util/GDocsSync$1;->run()V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: Could not resolve the field in class Lcom/diotek/gdocs/util/GDocsSync; at offset 120
added full list of jar needed to deodex SMemo
firefds said:
added full list of jar needed to deodex SMemo
Click to expand...
Click to collapse
hm still the same
Code:
Error while disassembling method Lcom/diotek/gdocs/util/GDocsSync$1;->run()V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: Could not resolve the field in class Lcom/diotek/gdocs/util/GDocsSync; at offset 120
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1084)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:213)
at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:379)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:132)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:338)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:117)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
at org.jf.baksmali.main.main(main.java:297)
opcode: iput-quick
CodeAddress: 3
Method: Lcom/diotek/gdocs/util/GDocsSync$1;->run()V
What version of smali/baksmali are u using?
Bak/smali 1.3.2
Dont forget to add the -a 15 tag
Sent from my GT-I9300 using xda premium
Hi~
Thanks for your method, I can deodex SMemo.apk, now.
Do you know how to deodex SlideShow.apk?
I got this error message as below
Code:
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Lcom/sec/android/gallery3d/app/AbstractGalleryActivity;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:830)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:683)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/sec/android/gallery3d/util/KeyBoardManager; from file ./system/app/SlideShow.odex
Error while loading ClassPath class Lcom/sec/android/gallery3d/util/KeyBoardManager;
Yes.. take the secGallery2.apk from the app folder and change it to .jar
Then stick it in the framework folder snd use it to deodex slideShow.apk
Dont forget to delete it before flashing!
Sent from my GT-I9300 using xda premium
mike1986. said:
hm still the same
Code:
Error while disassembling method Lcom/diotek/gdocs/util/GDocsSync$1;->run()V. Continuing.
org.jf.dexlib.Code.Analysis.ValidationException: Could not resolve the field in class Lcom/diotek/gdocs/util/GDocsSync; at offset 120
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyzeInstruction(MethodAnalyzer.java:1084)
at org.jf.dexlib.Code.Analysis.MethodAnalyzer.analyze(MethodAnalyzer.java:213)
at org.jf.baksmali.Adaptors.MethodDefinition.addAnalyzedInstructionMethodItems(MethodDefinition.java:379)
at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:132)
at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:338)
at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:117)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:205)
at org.jf.baksmali.main.main(main.java:297)
opcode: iput-quick
CodeAddress: 3
Method: Lcom/diotek/gdocs/util/GDocsSync$1;->run()V
What version of smali/baksmali are u using?
Click to expand...
Click to collapse
It's working here with the kitchen 1.9.6, thanks firefds.
firefds said:
Bak/smali 1.3.2
Dont forget to add the -a 15 tag
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
1.3.3 >^^<
http://forum.xda-developers.com/showpost.php?p=26007283&postcount=1
I have a problem... how to solve?
Code:
All ODEX files:
(1) ./system/app/SlideShow.odex
(2) ./system/app/SMemo.odex
Enter file number (0 = cancel): 2
Enter any JAR file dependencies separated by colon (Enter=none).
NOTE: To ignore errors, type 'ignore' by itself or after dependencies
./system/app/SMemo.odex > smemo.jar servlet.jar
Disassembling ./system/app/SMemo.odex ...
java -Xmx512m -jar baksmali.jar -a 15 -d system/framework -x ./system/app/SMemo.odex
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Lcom/sec/android/framework/draw/Stage;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:830)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:683)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/diotek/diodraw/Stage; from file ./system/app/SMemo.odex
Error while loading ClassPath class Lcom/diotek/diodraw/Stage;
Try ./system/app/SMemo.odex again (y/n)? (default: y):
roxdragon said:
I have a problem... how to solve?
Code:
All ODEX files:
(1) ./system/app/SlideShow.odex
(2) ./system/app/SMemo.odex
Enter file number (0 = cancel): 2
Enter any JAR file dependencies separated by colon (Enter=none).
NOTE: To ignore errors, type 'ignore' by itself or after dependencies
./system/app/SMemo.odex > smemo.jar servlet.jar
Disassembling ./system/app/SMemo.odex ...
java -Xmx512m -jar baksmali.jar -a 15 -d system/framework -x ./system/app/SMemo.odex
Error occured while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException: Could not find superclass Lcom/sec/android/framework/draw/Stage;
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.loadSuperclass(ClassPath.java:830)
at org.jf.dexlib.Code.Analysis.ClassPath$ClassDef.<init>(ClassPath.java:683)
at org.jf.dexlib.Code.Analysis.ClassPath.loadClassDef(ClassPath.java:280)
at org.jf.dexlib.Code.Analysis.ClassPath.initClassPath(ClassPath.java:163)
at org.jf.dexlib.Code.Analysis.ClassPath.InitializeClassPathFromOdex(ClassPath.java:110)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:104)
at org.jf.baksmali.main.main(main.java:293)
Error while loading class Lcom/diotek/diodraw/Stage; from file ./system/app/SMemo.odex
Error while loading ClassPath class Lcom/diotek/diodraw/Stage;
Try ./system/app/SMemo.odex again (y/n)? (default: y):
Click to expand...
Click to collapse
Put your 2 jar files on /framework and try with option "a" (deodex app folder).
Solved thank youuuuu!
I must remove files / dependences?
firefds said:
Dont forget to delete it before flashing!
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
1. Into /system/app i have SecGallery2.jar ...rename it SecGallery2.apk?
2. I need delete "servlet" and "SecGallery2.jar" into /system/framework before flashing?
Thank you!
Anyone have a working deodexed SMemo they can put up a download for? I removed my originals from the phone and the odexed ones aren't working as it just FCs every time. All other apps are working great when I restore in system/apps
ok,solve problems,thanks
all framework add,it‘s do it,thanks!
I would also like a download link if possible? this is all to much for me to do myself, im ok rooting, modding framework & system apps but i cant get my head round things like this? If anyone gets this working please send me a Private Message with the link please? Would really like this too
I pulled SMemo app & SMemo Provider apks from the DragonICS Rebirth rom & added it to my rom & I now have SMemo, also pulled Voice Recorder too :0)
Sent via my pimped out Samsung Galaxy S III using Tapatalk
I am tired and I need help...what am I doing wrong>??
the command where I need to deodex the .odex file, it NEVER makes the damn 'out' folder...
it spits out some weird help menu..
-a, --api level
-b,-- no-debug-info
this sort of ****...plz someone help me..
this is neither an error, nor is it a solution...i dont know what to Google also?
This would be amazing if it got done. Keep up the great work guys
This method is not needrd anymore.. just use baksmali/smali 1.3.3. No need for extra files
Sent from my GT-I9300 using xda premium

[REQUEST] help me recompile

Warning: Wall of Text Incoming
I want to enable screen off animation in miui v4 rom(cm9 based) by vadim shved. but I get an error when I recompile my framework. I used this guide as reference http://forum.xda-developers.com/showthread.php?t=1595099
so... can someone do it for me?
I know that some of you guys will say "open settings then go to display settings and enable screen off animation" but I must say, SCREEN OFF ANIMATION IS NOT PRESENT IN ANY PART OF THE ROM'S SETTINGS.
Error Log:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Chito>cd..
C:\Users>cd..
C:\>cd android/apktool
C:\android\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Chito\apktool\framework\1.apk
C:\android\apktool>apktool d framework-res.apk framework1
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\android\apktool>apktool b framework-res-new.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc
toryException: java.io.FileNotFoundException: framework-res-new.apk (The system
cannot find the file specified)
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.DirectoryException: java.io.FileNotFoundException: fra
mework-res-new.apk (The system cannot find the file specified)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
Caused by: java.io.FileNotFoundException: framework-res-new.apk (The system cann
ot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
C:\android\apktool>
Click to expand...
Click to collapse
STEP BY STEP PROCESS
Step 1 : Get a copy of your framework-res.apk on your sd card. Do this by starting up root explorer on your phone, navigate to system - framework, scroll down and you should see framework-res.apk. Keep your finger pressed on it and you should see some options, select copy. Now press back twice and find the sdcard folder. Paste it anywhere you want (I made a folder for it so its easier to manage).
Step 2 : : Connect your phone up to your PC:
If you have sd card slots in your PC then unmount your sdcard from your phone by going to settings-SD card and Phone storage , take out your SD card and stick it in the SD card adapter that you should have gotten with your phone and stick that in the SD card slot in your PC
If you don't have an SD card slot then simply connect your phone to your PC via USB. When you connect it you should get a notification saying that the USB is connected, if you didn't you may need to install the drivers. On your phone drag down the notification bar and tap on "USB connected" and then tap "Connect storage to PC"
Step 3 : Now that your phone or SD card is connected you will need to navigate to where you put your framework-res.apk. cut it and paste it to a folder on your computer of your choice (somewhere easy to find). Now make a copy of it (yes that was not a typo we will need the original copy of framework-res if we fail, but we shouldnt fail). Anyway copy and paste it to the folder that you extracted "apktools". So for me that was "C:\Android\apktool" Yes i made a folder called android in C (easier to manage).
Step 4 : Now that we have a copy of framework-res.apk in the apktools folder we can modify it to enable the crt animation (at this point you can choose to disconnect your phone or SD card from your PC and connect it later or leave it in). Now we need to start up command prompt. This is where our years of command prompt navigating come into place . At this moment you should see "C:\Users\<Your Username>", you will need to navigate to where you extracted apktools, if you extracted it in "C:\" or somewhere else easy then this should be a walk in the park for you. If you extracted in "C:\" just type "cd C:\" then "cd apktool" and your there. For others, well....Go on to step 5 in a couple minutes
At the end of it you should see something like "C:\.......\apktool" (not the dots obviously)
Step 5 : now that you have framework-res.apk in the folder where you extracted apktools and you have command prompt open lets get started. First we will need to install framework to your system so we can compile correctly. To do this type "apktool if framework-res.apk" in command prompt. If you were successful you should see something like "I : Framework installed to C:\......."
Step 6: We will now need to decompile framework-res.apk. To do this type "apktool d framework-res.apk framework1". If it decompiled succesfully then there should be a folder called "framework1" where you extracted apktool.
Step 7 : Now we get to make that modification we need. Click on "framework1" --> "res" -- > "values". Find a file called "bools.xml" right click on it and click edit. Now we are looking for this line :
<bool name="config_animateScreenLights">true</bool>. Once you have found it change "<bool name="config_animateScreenLights">true</bool>" to "<bool name="config_animateScreenLights">false</bool>" now we save it (Do not click "save as" just click save)
Step 8 we will now need to recompile framework-res.apk. So open up the handy dandy command prompt and type "apktool b framework1 framework-res-new.apk". If all went well you should see a file called "framework-res-new.apk (Dont worry about all the writing in the command prompt window you saw, if you saw any). framework1 is the folder with our edited file
" NOTE: We are NOT using framework-res-new.apk as our new framework-res.apk IT WILL NOT WORK
Step 9 : This is where we are going to use 7zip. You have to open your original apk (the one we copy pasted into the apktool folder) with 7zip. right click on "framework-res.apk". Click "Open" and a window should show up check the box that says to open with a list of installed programs. You will need to browse to the folder you installed 7zip and click on "7zFM", then click "Ok". Now that we have our original "framework-res.apk" open in 7zip need to navigate to the "framework1" folder. Click on "Build -->apk" and there should be a file called "resources.arsc". Drag and drop this file in the 7zip window. You should get a confirmation box. Click "Ok" (There is already one in the 7zip window, the one we are dragging and dropping will replace it).
Step 10: Once we have replaced the "resources.arsc" file we can close the 7zip window. Now heres where the android SDK comes in handy. The rest of this tutorial will be split up into 2 parts; People with the android SDK and people without it
Click to expand...
Click to collapse

firmware 23.5.A.1.291

I deleted the system app Radio3 in the firmware for D5803 23.5.A.1.291.
When I tried to put it back by recreating /system/app/Radio3 and I put in it:
Radio3.apk
and also created
/system/app/Radio3/oat/arm/
with a symlink to
/system/odex.app/arm/Radio3.odex
All files owned and group of "root" and with permissions 644, yet when I try to open Radio3 I get:
Code:
11-21 18:39:25.233 1384 1384 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sonyericsson.fmradio.ui.FmRadioActivity" on path: DexPathList[[zip file "/system/app/Radio3/Radio3.apk"],nativeLibraryDirectories=[/system/app/Radio3/lib/arm, /vendor/lib, /system/lib]]
11-21 18:39:25.233 1384 1384 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
This makes me think that I'm supposed to also have /system/app/Radio3/lib/arm, but in my download of 23.5.A.1.291, I can't seem to find any lib directory in /system/app/Radio3. Can anyone here running 23.5.A.1.291 confirm that there is supposed to be some libs in /system/app/Radio3/lib/arm, and what those files are and where I might find them?
Cheers!
------------
EDIT: over 100 people have viewed this thread and no replies. Comeon folks. This is an easy one. Surely one of the 100 people is running 23.5.A.1.291. All you have to do is open up your file explorer app and look in /system/app/Radio3/ and tell me if there's a lib/ directory in there. Pretty please!
apexofservice said:
I deleted the system app Radio3 in the firmware for D5803 23.5.A.1.291.
When I tried to put it back by recreating /system/app/Radio3 and I put in it:
Radio3.apk
and also created
/system/app/Radio3/oat/arm/
with a symlink to
/system/odex.app/arm/Radio3.odex
All files owned and group of "root" and with permissions 644, yet when I try to open Radio3 I get:
Code:
11-21 18:39:25.233 1384 1384 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sonyericsson.fmradio.ui.FmRadioActivity" on path: DexPathList[[zip file "/system/app/Radio3/Radio3.apk"],nativeLibraryDirectories=[/system/app/Radio3/lib/arm, /vendor/lib, /system/lib]]
11-21 18:39:25.233 1384 1384 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
This makes me think that I'm supposed to also have /system/app/Radio3/lib/arm, but in my download of 23.5.A.1.291, I can't seem to find any lib directory in /system/app/Radio3. Can anyone here running 23.5.A.1.291 confirm that there is supposed to be some libs in /system/app/Radio3/lib/arm, and what those files are and where I might find them?
Cheers!
------------
EDIT: over 100 people have viewed this thread and no replies. Comeon folks. This is an easy one. Surely one of the 100 people is running 23.5.A.1.291. All you have to do is open up your file explorer app and look in /system/app/Radio3/ and tell me if there's a lib/ directory in there. Pretty please!
Click to expand...
Click to collapse
So this is what happened,since your system is odexed it will have its lib folder with the odex file inside it,probably the reason it isn't working is because you have only copied the apk and not the lib folder,causing the app not to launch since its odex file is missing.
The way you can make it work is:
1. Reflash the firmware of your device
2. The complicated route,extract the system files of a firmware file from 23.5.A.1.291,find folder Radio3 and copy it to your device.
Hope that will clear some things up!
Dinkec27 said:
So this is what happened,since your system is odexed it will have its lib folder with the odex file inside it,probably the reason it isn't working is because you have only copied the apk and not the lib folder,causing the app not to launch since its odex file is missing.
The way you can make it work is:
1. Reflash the firmware of your device
2. The complicated route,extract the system files of a firmware file from 23.5.A.1.291,find folder Radio3 and copy it to your device.
Hope that will clear some things up!
Click to expand...
Click to collapse
Thanks for the reply, but what you're saying doesn't match with what I'm observing.
1st, I don't find any odex files inside the lib folders, what I *do* see is symlinks inside oat/arm/ (for each system app) which point to ../../../odex.app/APPNAME.odex.
2nd, I have already done what you're calling the "complicated route", I extracted the system.ext4 from 23.A.1.5.291 and I mounted it and looked inside app/Radio3, but I don't see any lib/ directory there.
So, if you look at the error message I posted, you'll see that something is providing paths for libraries /vendor/lib, /system/lib, and /system/app/Radio3/lib. Well, I do see libradio...so in /system/lib, but I suppose this is a shared object for the cellular radio for the phone, not the FM Radio. Since /system/app/Radio3/lib doesn't exist, I wonder if it *should* exist. Like I said, I don't see any such folder in the firmware system partition that I extracted, but I supposed that it was also possible that something else was part of the install process that I'm missing. I'm basically looking for a sanity check here. Can someone who's running this firmware please tell me what you see inside /system/lib/Radio3. Pretty please?
In terms of your solution 1, it's not feasible for me since I spent a lot of time removing bloatware from my system partition (a lot of google apps, a lot of sony apps and other stuff that I don't want and don't use), so I don't want to reflash the whole partition and have to go back through and remove all that stuff again.
Surely someone on this forum is running 23.5.A.1.291 and can just tell me what you see in /system/app/Radio3. Puh-leez.
------------
EDIT: maybe when you say "it will have it's lib folder with its odex file inside it" you mean that instead of Radio3/oat/arm/Radio3.odex that I should have Radio3/lib/oat/arm/Radio3.odex? If so, that would be curious since it's not the same structure I see in the other apps in the /system dir and it's not what I see in the system partition I extracted, but I can try it. However, what would be really helpful is if someone running this firmware can confirm the file structure on their device.
apexofservice said:
Thanks for the reply, but what you're saying doesn't match with what I'm observing.
1st, I don't find any odex files inside the lib folders, what I *do* see is symlinks inside oat/arm/ (for each system app) which point to ../../../odex.app/APPNAME.odex.
2nd, I have already done what you're calling the "complicated route", I extracted the system.ext4 from 23.A.1.5.291 and I mounted it and looked inside app/Radio3, but I don't see any lib/ directory there.
So, if you look at the error message I posted, you'll see that something is providing paths for libraries /vendor/lib, /system/lib, and /system/app/Radio3/lib. Well, I do see libradio...so in /system/lib, but I suppose this is a shared object for the cellular radio for the phone, not the FM Radio. Since /system/app/Radio3/lib doesn't exist, I wonder if it *should* exist. Like I said, I don't see any such folder in the firmware system partition that I extracted, but I supposed that it was also possible that something else was part of the install process that I'm missing. I'm basically looking for a sanity check here. Can someone who's running this firmware please tell me what you see inside /system/lib/Radio3. Pretty please?
In terms of your solution 1, it's not feasible for me since I spent a lot of time removing bloatware from my system partition (a lot of google apps, a lot of sony apps and other stuff that I don't want and don't use), so I don't want to reflash the whole partition and have to go back through and remove all that stuff again.
Surely someone on this forum is running 23.5.A.1.291 and can just tell me what you see in /system/app/Radio3. Puh-leez.
------------
EDIT: maybe when you say "it will have it's lib folder with its odex file inside it" you mean that instead of Radio3/oat/arm/Radio3.odex that I should have Radio3/lib/oat/arm/Radio3.odex? If so, that would be curious since it's not the same structure I see in the other apps in the /system dir and it's not what I see in the system partition I extracted, but I can try it. However, what would be really helpful is if someone running this firmware can confirm the file structure on their device.
Click to expand...
Click to collapse
I don't have the lib folder there,only the apk,but not sure if there is a difference between SLiMM ROM and the stock firmware.
If you want I can send you my Radio3.apk and you can try that
Dinkec27 said:
I don't have the lib folder there,only the apk,but not sure if there is a difference between SLiMM ROM and the stock firmware.
If you want I can send you my Radio3.apk and you can try that
Click to expand...
Click to collapse
Thanks so much for checking. To me, this suggests that perhaps I have the permissions wrong (or something along those lines). I'm wondering if that's supposed to be a regular link to the odex file instead of a symlink. I'd be happy to check out your Radio3.apk to see if its any different than the one I've got. I'll just diff it first.
apexofservice said:
Thanks so much for checking. To me, this suggests that perhaps I have the permissions wrong (or something along those lines). I'm wondering if that's supposed to be a regular link to the odex file instead of a symlink. I'd be happy to check out your Radio3.apk to see if its any different than the one I've got. I'll just diff it first.
Click to expand...
Click to collapse
And it's solved! I double-checked the permissions on the oat/arm dirs I had made and they were at 744 instead of 755, changed that and now I'm working.
Cheers

[need help]Cannot delete/modify sd card files

Hi all, I have a problem with deleting/modifying files in SD card. Everytime I try to modify files in SD card, it requests access to SDcard which I will happily give, however file manager (miui and 3rd party file manager) always crashes after requesting access. Does anyone have any solution for this?
There is no problem with my sdcard, tested in another device. Tried formatting sdcard, no avail. My device is mi cc9 meitu edition
Summary error log says this :
android.content.res.Resources$NotFoundException: Drawable com.android.documentsui:drawable/abc_dialog_material_background with resource ID #0x7f070017
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_dialog_material_background.xml from drawable resource ID #0x7f070017
at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:854)
at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:634)
at android.content.res.MiuiResourcesImpl.loadDrawable(MiuiResourcesImpl.java:327)
at android.content.res.Resources.getDrawableForDensity(Resources.java:902)
at android.content.res.Resources.getDrawable(Resources.java:841)
at android.content.Context.getDrawable(Context.java:635)
at com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:2630)
at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2680)
at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:410)
at com.android.internal.app.AlertController.installContent(AlertController.java:263)
at android.app.AlertDialog.onCreate(AlertDialog.java:436)
at android.app.Dialog.dispatchOnCreate(Dialog.java:407)
at android.app.Dialog.show(Dialog.java:302)
at android.app.DialogFragment.onStart(DialogFragment.java:513)
at android.app.Fragment.performStart(Fragment.java:2548)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1334)
at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1581)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1642)
at android.app.FragmentManagerImpl.dispatchMoveToState(FragmentManager.java:3051)
at android.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:3008)
at android.app.FragmentController.dispatchStart(FragmentController.java:193)
at android.app.Activity.performStart(Activity.java:7264)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:2970)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:180)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:165)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:142)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6815)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_dialog_material_background.xml from xml type drawable resource ID #0x7f070017
at android.content.res.ResourcesImpl.loadXmlResourceParser(ResourcesImpl.java:1222)
at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:834)
... 33 more
Caused by: java.io.FileNotFoundException: res/drawable/abc_dialog_material_background.xml
at android.content.res.AssetManager.nativeOpenXmlAsset(Native Method)
at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:961)
at android.content.res.ResourcesImpl.loadXmlResourceParser(ResourcesImpl.java:1206)
... 34 more
Click to expand...
Click to collapse
Try mixplorer or Es filexplorer and give it strodge permission . then you can delete your files you want
hasanbd4 said:
Try mixplorer or Es filexplorer and give it strodge permission . then you can delete your files you want
Click to expand...
Click to collapse
The problem is I cannot give permission because it always crash after asking for permission
aetherain said:
The problem is I cannot give permission because it always crash after asking for permission
Click to expand...
Click to collapse
just go settings and apps>manage apps>sesrch which file manager you use.
Tap on that app and activate all permission.
Now say what happened??
hasanbd4 said:
just go settings and apps>manage apps>sesrch which file manager you use.
Tap on that app and activate all permission.
Now say what happened??
Click to expand...
Click to collapse
Tried that. Just go back again to ask for sd card permission then crash.
hi
aetherain said:
Hi all, I have a problem with deleting/modifying files in SD card. Everytime I try to modify files in SD card, it requests access to SDcard which I will happily give, however file manager (miui and 3rd party file manager) always crashes after requesting access. Does anyone have any solution for this?
There is no problem with my sdcard, tested in another device. Tried formatting sdcard, no avail. My device is mi cc9 meitu edition
Summary error log says this :
Click to expand...
Click to collapse
If your file was created or copied on twrp, then use twrp to delete it !
gringo80 said:
If your file was created or copied on twrp, then use twrp to delete it !
Click to expand...
Click to collapse
Nope, not twrp as I dont even have twrp haha.
aetherain said:
Nope, not twrp as I dont even have twrp haha.
Click to expand...
Click to collapse
your sdcard is encrypted by the userdata partition. you can delete your files only by using twrp or formatin data in twrp homescreen to disbale the encryption.

Categories

Resources