[Q] How to odex\deodex a new system APK - General Topics

Hi there guys, hows it going?
I needed to replace a system .apk file, but i ended screwing up my phone...
So the file was Bluetooth.apk and i pushed it onto /system/app/Bluetooth.apk, replacing the old file.
However, when i rebooted, the mobile hanged and i get the errors:
Code:
E/AndroidRuntime( 2301): Uncaught handler: thread android.server.ServerThread exiting due to uncaught exception
E/AndroidRuntime( 2301): *** EXCEPTION IN SYSTEM PROCESS. System will crash.
E/AndroidRuntime( 2301): dalvik.system.Stale[B]Dex[/B]CacheError: /system/app/Bluetooth.apk
E/AndroidRuntime( 2301): at dalvik.system.DexFile.isDexOptNeeded(Native Method)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.performDexOptLI(PackageManagerService.java:2171)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.scanPackageLI(PackageManagerService.java:2538)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.scanPackageLI(PackageManagerService.java:2105)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.scanDirLI(PackageManagerService.java:1992)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.<init>(PackageManagerService.java:582)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.main(PackageManagerService.java:339)
E/AndroidRuntime( 2301): at com.android.server.ServerThread.run(SystemServer.java:168)
E/AndroidRuntime( 2301): Crash logging skipped, no checkin service
I/ANDROID_DEBUG( 2301): dumpstate > /data/log/dumpstate_sys.log
I ripped this apk from a ROM where there was the .apk and the .odex file for each app in /system/app, so I think i'm missing something here.
Can anyone shed some light?
Thanks
Phk

Related

[WIP] Making Samsung Galaxy S Applications work

Hiya,
I've been trying to get the Samsung Galaxy Applications, such as Memo.apk to work. Right now I keep getting FC's when I try to start Memo.apk, it, however, installs without any problems.
I pushed twframework.jar and twframework-res.apk, which are part of my deodexed framework archiv, to /system/framework.
I've edited init.rc and added /system/framework/twframework.jar, at my end it looks like this
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/twframework.jar
I pushed touchwiz.xml to system/etc/permissions/ - if you can't be arsed to download the full system dump, here is the content:
Code:
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<library name="touchwiz" file="/system/framework/twframework.jar"/>
</permissions>
This allowed me to install Memo.apk without any problems.
However, as I already mentioned, I keep getting FC's - I'm done with my latin so maybe one of you guys know what to do next.
Here is the logcat output:
Code:
I/ActivityManager( 119): Starting activity: Intent { act=android.intent.action.MEMO_CREATE cmp=com.sec.android.app.memo/.MemoCreateActivity }
W/ResourceType( 723): Resources don't contain package for resource number 0x02050001
D/AndroidRuntime( 723): Shutting down VM
W/dalvikvm( 723): threadid=3: thread exiting with uncaught exception (group=0x4001b178)
E/AndroidRuntime( 723): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 723): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sec.android.app.memo/com.sec.android.app.memo.MemoCreateActivity}: android.view.InflateException: Binary XML file line #31: Error inflating class <unknown>
E/AndroidRuntime( 723): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
E/AndroidRuntime( 723): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime( 723): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime( 723): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime( 723): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 723): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 723): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 723): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 723): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 723): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 723): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 723): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 723): Caused by: android.view.InflateException: Binary XML file line #31: Error inflating class <unknown>
E/AndroidRuntime( 723): at android.view.LayoutInflater.createView(LayoutInflater.java:513)
E/AndroidRuntime( 723): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 723): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime( 723): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
E/AndroidRuntime( 723): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
E/AndroidRuntime( 723): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 723): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 723): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
E/AndroidRuntime( 723): at android.app.Activity.setContentView(Activity.java:1622)
E/AndroidRuntime( 723): at com.sec.android.app.memo.MemoCreateActivity.onCreate(MemoCreateActivity.java:114)
E/AndroidRuntime( 723): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 723): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
E/AndroidRuntime( 723): ... 11 more
E/AndroidRuntime( 723): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 723): at android.widget.TextView.<init>(TextView.java:320)
E/AndroidRuntime( 723): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 723): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
E/AndroidRuntime( 723): at android.view.LayoutInflater.createView(LayoutInflater.java:500)
E/AndroidRuntime( 723): ... 25 more
E/AndroidRuntime( 723): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-hdpi/memo_more_bg.png from drawable resource ID #0x2050001: .xml extension required
E/AndroidRuntime( 723): at android.content.res.Resources.loadColorStateList(Resources.java:1820)
E/AndroidRuntime( 723): at android.content.res.TypedArray.getColorStateList(TypedArray.java:289)
E/AndroidRuntime( 723): at android.widget.TextView.<init>(TextView.java:627)
E/AndroidRuntime( 723): ... 29 more
Deodexed Framework: http://ul.to/6ocdh7
Deodexed Memo.apk http://ul.to/vmv7tc
/system dump of the Galaxy S:
frifox said:
EDIT: Thanks to jimbob343 for /system dump. Hopefully with no objections, here it is: http://www.mediafire.com/?uinwwjl0jhn ([email protected])
Click to expand...
Click to collapse
Good work
this is the root cause:
Caused by: android.content.res.Resources$NotFoundException: File res/drawable-hdpi/memo_more_bg.png from drawable resource ID #0x2050001: .xml extension required
Click to expand...
Click to collapse
Does the file exist? I dont know what it means by ".xml extension required"
borjus86 said:
Good work,but don't work at me
Click to expand...
Click to collapse
*facepalm*
I'm not sure but:
At boot the system could actually be skipping the twframework files if they contain duplicate information to an already loaded framework.
So, a suggestion is to move the twframeworks to a higher priority in the bootclasspath by including them earlier in the path. Not too early mind... and you may actually find this then breaks something else. If you have a Galaxy S kernel you could check the order they use.
It may not work at all but you could try:
Code:
export BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:[COLOR="Red"]/system/framework/twframework.jar[/COLOR]:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar
This may just boot loop of course... if it does, move the twframework one to the next lowest priority in bootclasspath.
You need to logcat the boot though, whatever you do, to establish if the framework loads or if it's rejected and if it does load, does it all load.
That logcat above indicates to me that the necessary hooks in the framework weren't available to the app.
I'm just eagerly awaiting your touchwiz launcher, lol
Froyo?
it possible to support with Froyo?
as far as i know from playing with trying to get the HTC Sense framework loading you have to put the twframework before framework.jar
is there a twframework.apk file? is it might be looking for resources in that apk which aren't in the app you are trying to run.
as to how to make sure that frameworkapk is loaded i'm not sure.
You may need to get someone to integrate the framework into the app directly.
These are similar problems we encountered when trying to port the FM radio app to stock froyo.
Froyo
it support to froyo?
natz said:
it support to froyo?
Click to expand...
Click to collapse
Why the same question twice?? We can talk Froyo compatibility after there is some success...
since you have a system dump, maybe you can get the dialer pad.
Replacing the framework.jar from Galaxy S to Nexus One could be the ListView effect on the components, like the samsung ?
I'm trying to work on this as well to get the mediaplayer working on the nexus I am going to start trying some things based off what you did but I left my data cable at work so i'll try tomorrow when I get home
the ironic thing is, you guys want the programs that most vibrant users want off their phone
boodies said:
the ironic thing is, you guys want the programs that most vibrant users want off their phone
Click to expand...
Click to collapse
I think the media player in the vibrant is much nicer than stock android so I have no idea who wouldn't want that one
yes the media player is really nice. as well as the camera with touch to focus. maybe those can also be moved over.

Email policy mod with ParanoidAndroid

Hi All,
I've installed Paranoid Android 3.15, it works fine except when I install email+exchange packages with policy modded. After some minutes email start to crash and it never ends .
Below the log:
W/dalvikvm( 5178): threadid=1: thread exiting with uncaught exception (group=0x4
1d09a08)
E/AndroidRuntime( 5178): FATAL EXCEPTION: main
E/AndroidRuntime( 5178): java.lang.RuntimeException: Unable to bind to service [email protected] with Intent { act=com.android.email.POLICY_INTENT }: java.lang.SecurityException: No active admin ComponentInfo{com.android.email/com.android.email.SecurityPolicy$PolicyAdmin}
E/AndroidRuntime( 5178): at android.app.ActivityThread.handleBindService(ActivityThread.java:2700)
E/AndroidRuntime( 5178): at android.app.ActivityThread.access$1700(ActivityThread.java:156)
E/AndroidRuntime( 5178): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1337)
E/AndroidRuntime( 5178): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5178): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5178): at android.app.ActivityThread.main(ActivityThread.java:5234)
E/AndroidRuntime( 5178): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 5178): at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime( 5178): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
E/AndroidRuntime( 5178): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
E/AndroidRuntime( 5178): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5178): Caused by: java.lang.SecurityException: No active admin ComponentInfo{com.android.email/com.android.email.SecurityPolicy$PolicyAdmin}
E/AndroidRuntime( 5178): at android.os.Parcel.readException(Parcel.java:1425)
E/AndroidRuntime( 5178): at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime( 5178): at android.app.admin.IDevicePolicyManager$Stub$Proxy.setPasswordQuality(IDevicePolicyManager.java:889)
E/AndroidRuntime( 5178): at android.app.admin.DevicePolicyManager.setPasswordQuality(DevicePolicyManager.java:295)
E/AndroidRuntime( 5178): at com.android.email.SecurityPolicy.setActivePolicies(SecurityPolicy.java:457)
E/AndroidRuntime( 5178): at com.android.email.SecurityPolicy.<init>(SecurityPolicy.java:87)
E/AndroidRuntime( 5178): at com.android.email.SecurityPolicy.getInstance(SecurityPolicy.java:74)
E/AndroidRuntime( 5178): at com.android.email.service.PolicyService.onBind(PolicyService.java:75)
E/AndroidRuntime( 5178): at android.app.ActivityThread.handleBindService(ActivityThread.java:2687)
E/AndroidRuntime( 5178): ... 10 more
Have you some idea ?

CSipSimple: Incompatible with KitKat?

Hi all,
I've used CSipSimple for SIP VOIP calling for a while. Great app. Gave it a try with the Nexus 5 on the factory firmware and it explodes just after placing a call. Logcat shows:
Code:
E/AndroidRuntime( 3110): FATAL EXCEPTION: UAStateAsyncWorker
E/AndroidRuntime( 3110): Process: com.csipsimple:sipStack, PID: 3110
E/AndroidRuntime( 3110): java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.PHONE_STATE from pid=3110, uid=10083
E/AndroidRuntime( 3110): at android.os.Parcel.readException(Parcel.java:1461)
E/AndroidRuntime( 3110): at android.os.Parcel.readException(Parcel.java:1415)
E/AndroidRuntime( 3110): at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2373)
E/AndroidRuntime( 3110): at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1141)
E/AndroidRuntime( 3110): at android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:370)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver.broadCastAndroidCallState(UAStateReceiver.java:883)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver.access$400(UAStateReceiver.java:80)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver$WorkerHandler.handleMessage(UAStateReceiver.java:649)
E/AndroidRuntime( 3110): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3110): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3110): at android.os.HandlerThread.run(HandlerThread.java:61)
My guess is some new permissions management in KitKat requires additional application permissions for PHONE_STATE broadcasts. I believe this is something the developer will need to remedy, possibly by adding a new permission requirement to the application package?
Anyone else use CSipSimple, and could confirm they're seeing the same thing?
Just download the newest nightly. It fixes everything.
http://nightlies.csipsimple.com/trunk/
Any after November 2nd I think are fixed, but there are no reasons not to just install the latest nightly.
Nice! Fixed! Thanks
How You fix this error?
nrvate said:
Nice! Fixed! Thanks
Click to expand...
Click to collapse
How you fix this error please response quickly with solution
---------- Post added at 12:55 PM ---------- Previous post was at 12:51 PM ----------
nrvate said:
Hi all,
I've used CSipSimple for SIP VOIP calling for a while. Great app. Gave it a try with the Nexus 5 on the factory firmware and it explodes just after placing a call. Logcat shows:
Code:
E/AndroidRuntime( 3110): FATAL EXCEPTION: UAStateAsyncWorker
E/AndroidRuntime( 3110): Process: com.csipsimple:sipStack, PID: 3110
E/AndroidRuntime( 3110): java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.PHONE_STATE from pid=3110, uid=10083
E/AndroidRuntime( 3110): at android.os.Parcel.readException(Parcel.java:1461)
E/AndroidRuntime( 3110): at android.os.Parcel.readException(Parcel.java:1415)
E/AndroidRuntime( 3110): at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2373)
E/AndroidRuntime( 3110): at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1141)
E/AndroidRuntime( 3110): at android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:370)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver.broadCastAndroidCallState(UAStateReceiver.java:883)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver.access$400(UAStateReceiver.java:80)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver$WorkerHandler.handleMessage(UAStateReceiver.java:649)
E/AndroidRuntime( 3110): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3110): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3110): at android.os.HandlerThread.run(HandlerThread.java:61)
My guess is some new permissions management in KitKat requires additional application permissions for PHONE_STATE broadcasts. I believe this is something the developer will need to remedy, possibly by adding a new permission requirement to the application package?
Anyone else use CSipSimple, and could confirm they're seeing the same thing?
Click to expand...
Click to collapse
Please reply me on my mail "[email protected]"
Please asaP
Thanks you

[DEV][ROM][PORT][CM7.2] Magna Rom [CM10 Look][BackPorted CM10 Features]

Magna Rom
Based on CyanogenMod 7.2
With CyanogenMod 10 Backported Features and UI
BETA BUILDS​
<< DISCLAIMER >>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
*/
Click to expand...
Click to collapse
Features - Based on CyanogenMod 7.2 For bieltv.3
Network,Sensors.. works!!..No more patch needed
JellyBean Theme
JellyBean Transitions
JellyBean Statusbar (No Notification Mods)
JellyBean Settings
JellyBean Button Layout
All the above is build into the system..no external app.
ADW.Launcher
ES File Explorer
Latest Hosts file for Ad-Blocking
Google DNS Servers for better browsing
build.prop Tweaks​
Installation Guide :
*First flash bieltv.3's CM7 kernel (If you're on stock rom)
*If you're on any CM7 rom based on percy's CM7,please don't flash this rom.First flash the bieltv.3's kernel and then flash this rom.
1.Download the rom given below.
2.Place it in the root of your sd card.
3.Go to CWM and under mounts and storage,format system,data and cache.
4.Go back and wipe data and cache.
5.Again go to mounts and storage and mount system,data,cache and sd card.Mount the system 2nd time also.
6.Flash the rom
7.Wipe data and reboot.​
Downloads - https://www.mediafire.com/?0wjhjtg59gcd363​
Original Thread - http://forum.xda-developers.com/showthread.php?t=2317720​
Changelog - #1 - Initial Build
Buglist - 1. Statusbar FC.
2.Some other layout bugs.
Ss -
İf you update this rom i will very happy gj
e-tab4 cihazımdan Tapatalk kullanılarak gönderildi
Deopolos14 said:
İf you update this rom i will very happy gj
e-tab4 cihazımdan Tapatalk kullanılarak gönderildi
Click to expand...
Click to collapse
I'll fix the bugs soon.
provide me with a log cat of statusbar FC if you can aniket, it may be a small thing
mohamedrashad said:
provide me with a log cat of statusbar FC if you can aniket, it may be a small thing
Click to expand...
Click to collapse
here is the logcat - force closes due to power widget smali - I dont have the knowledge to deal with smali coding so someone who does will need to look at it
Code:
E/AndroidRuntime( 1702): FATAL EXCEPTION: main
E/AndroidRuntime( 1702): java.lang.RuntimeException: Unable to create service com.android.systemui.statusbar.StatusBarService: android.view.InflateException: Binary XML file line #95: Error inflating class com.android.systemui.statusbar.powerwidget.PowerWidget
E/AndroidRuntime( 1702): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2076)
E/AndroidRuntime( 1702): at android.app.ActivityThread.access$2500(ActivityThread.java:123)
E/AndroidRuntime( 1702): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993)
E/AndroidRuntime( 1702): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1702): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 1702): at android.app.ActivityThread.main(ActivityThread.java:3835)
E/AndroidRuntime( 1702): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1702): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 1702): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
E/AndroidRuntime( 1702): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
E/AndroidRuntime( 1702): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1702): Caused by: android.view.InflateException: Binary XML file line #95: Error inflating class com.android.systemui.statusbar.powerwidget.PowerWidget
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 1702): at android.view.View.inflate(View.java:8829)
E/AndroidRuntime( 1702): at com.android.systemui.statusbar.StatusBarService.makeStatusBarView(StatusBarService.java:365)
E/AndroidRuntime( 1702): at com.android.systemui.statusbar.StatusBarService.onCreate(StatusBarService.java:274)
E/AndroidRuntime( 1702): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2066)
E/AndroidRuntime( 1702): ... 10 more
E/AndroidRuntime( 1702): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 1702): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 1702): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
E/AndroidRuntime( 1702): ... 20 more
E/AndroidRuntime( 1702): Caused by: android.view.InflateException: Binary XML file line #21: Error inflating class <unknown>
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
E/AndroidRuntime( 1702): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.inflate(LayoutInflater.java:386)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 1702): at com.android.systemui.statusbar.powerwidget.PowerWidget.recreateButtonLayout(PowerWidget.java:243)
E/AndroidRuntime( 1702): at com.android.systemui.statusbar.powerwidget.PowerWidget.setupWidget(PowerWidget.java:169)
E/AndroidRuntime( 1702): at com.android.systemui.statusbar.powerwidget.PowerWidget.<init>(PowerWidget.java:121)
E/AndroidRuntime( 1702): ... 23 more
E/AndroidRuntime( 1702): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 1702): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 1702): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
E/AndroidRuntime( 1702): ... 30 more
E/AndroidRuntime( 1702): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/stat_power_background.xml from drawable resource ID #0x7f02008c
E/AndroidRuntime( 1702): at android.content.res.Resources.loadDrawable(Resources.java:1773)
E/AndroidRuntime( 1702): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
E/AndroidRuntime( 1702): at android.view.View.<init>(View.java:1972)
E/AndroidRuntime( 1702): at android.view.View.<init>(View.java:1920)
E/AndroidRuntime( 1702): at android.view.ViewGroup.<init>(ViewGroup.java:286)
E/AndroidRuntime( 1702): at android.widget.LinearLayout.<init>(LinearLayout.java:120)
E/AndroidRuntime( 1702): ... 33 more
Make sure that the class com.android.lidroid....
In statusbar_expanded.xml is under LinearLayout.
marcussmith2626 said:
here is the logcat - force closes due to power widget smali - I dont have the knowledge to deal with smali coding so someone who does will need to look at it
Code:
E/AndroidRuntime( 1702): FATAL EXCEPTION: main
E/AndroidRuntime( 1702): java.lang.RuntimeException: Unable to create service com.android.systemui.statusbar.StatusBarService: android.view.InflateException: Binary XML file line #95: Error inflating class com.android.systemui.statusbar.powerwidget.PowerWidget
E/AndroidRuntime( 1702): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2076)
E/AndroidRuntime( 1702): at android.app.ActivityThread.access$2500(ActivityThread.java:123)
E/AndroidRuntime( 1702): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993)
E/AndroidRuntime( 1702): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1702): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 1702): at android.app.ActivityThread.main(ActivityThread.java:3835)
E/AndroidRuntime( 1702): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1702): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 1702): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
E/AndroidRuntime( 1702): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
E/AndroidRuntime( 1702): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1702): Caused by: android.view.InflateException: Binary XML file line #95: Error inflating class com.android.systemui.statusbar.powerwidget.PowerWidget
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 1702): at android.view.View.inflate(View.java:8829)
E/AndroidRuntime( 1702): at com.android.systemui.statusbar.StatusBarService.makeStatusBarView(StatusBarService.java:365)
E/AndroidRuntime( 1702): at com.android.systemui.statusbar.StatusBarService.onCreate(StatusBarService.java:274)
E/AndroidRuntime( 1702): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2066)
E/AndroidRuntime( 1702): ... 10 more
E/AndroidRuntime( 1702): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 1702): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 1702): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
E/AndroidRuntime( 1702): ... 20 more
E/AndroidRuntime( 1702): Caused by: android.view.InflateException: Binary XML file line #21: Error inflating class <unknown>
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
E/AndroidRuntime( 1702): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.inflate(LayoutInflater.java:386)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 1702): at com.android.systemui.statusbar.powerwidget.PowerWidget.recreateButtonLayout(PowerWidget.java:243)
E/AndroidRuntime( 1702): at com.android.systemui.statusbar.powerwidget.PowerWidget.setupWidget(PowerWidget.java:169)
E/AndroidRuntime( 1702): at com.android.systemui.statusbar.powerwidget.PowerWidget.<init>(PowerWidget.java:121)
E/AndroidRuntime( 1702): ... 23 more
E/AndroidRuntime( 1702): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 1702): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 1702): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
E/AndroidRuntime( 1702): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
E/AndroidRuntime( 1702): ... 30 more
E/AndroidRuntime( 1702): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/stat_power_background.xml from drawable resource ID #0x7f02008c
E/AndroidRuntime( 1702): at android.content.res.Resources.loadDrawable(Resources.java:1773)
E/AndroidRuntime( 1702): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
E/AndroidRuntime( 1702): at android.view.View.<init>(View.java:1972)
E/AndroidRuntime( 1702): at android.view.View.<init>(View.java:1920)
E/AndroidRuntime( 1702): at android.view.ViewGroup.<init>(ViewGroup.java:286)
E/AndroidRuntime( 1702): at android.widget.LinearLayout.<init>(LinearLayout.java:120)
E/AndroidRuntime( 1702): ... 33 more
Click to expand...
Click to collapse
san122 said:
Make sure that the class com.android.lidroid....
In statusbar_expanded.xml is under LinearLayout.
Click to expand...
Click to collapse
Is there is posiblity to disable notification widget by default?
mohamedrashad said:
Is there is posiblity to disable notification widget by default?
Click to expand...
Click to collapse
Just delete the class in the statusbar
Com.android.systemui.powerwidget.
Sent from my GT-S5360 using Tapatalk 2
san122 said:
Just delete the class in the statusbar
Com.android.systemui.powerwidget.
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
I will do this and upload the status bar to test, another question, Pressing "show notification widget" in CM parts will show Them after deleting the class?
mohamedrashad said:
I will do this and upload the status bar to test, another question, Pressing "show notification widget" in CM parts will show Them after deleting the class?
Click to expand...
Click to collapse
no most likely settings.apk will force close if you do that as you have removed the power widget from the status bar
you need to sort out why the power widget is force closing
marcussmith2626 said:
no most likely settings.apk will force close if you do that as you have removed the power widget from the status bar
you need to sort out why the power widget is force closing
Click to expand...
Click to collapse
Icons of power widget needs resizing maybe :silly:
mohamedrashad said:
Icons of power widget needs resizing maybe :silly:
Click to expand...
Click to collapse
it does state on the orig thread one of the bugs is SystemUI FC on DPI Change - there are loads of dpi values in status_bar_expanded.xml to do with the header icons - maybe icons needs resizing too
marcussmith2626 said:
it does state on the orig thread one of the bugs is SystemUI FC on DPI Change - there are loads of dpi values in status_bar_expanded.xml to do with the header icons - maybe icons needs resizing too
Click to expand...
Click to collapse
Give me the app u want to resize
myaservip said:
Give me the app u want to resize
Click to expand...
Click to collapse
read previous posts - talking about powerwidget causing systemui to force close
myaservip said:
Give me the app u want to resize
Click to expand...
Click to collapse
Dialer needs resize.
I have mobile data upload me the app needs to resize and i will resize it asap
marcussmith2626 said:
read previous posts - talking about powerwidget causing systemui to force close
Click to expand...
Click to collapse
Smali???
I can resize but iam newbie with smali
Resizing might fix that
If i resized succes
I will upload
mohamedrashad said:
I will do this and upload the status bar to test, another question, Pressing "show notification widget" in CM parts will show Them after deleting the class?
Click to expand...
Click to collapse
No if you remove them then systemui will not work too.
Why?
As this class is defined in statusbarservice.smali
The only option to fix this is to look and fix each problem one by one.
marcussmith2626 said:
no most likely settings.apk will force close if you do that as you have removed the power widget from the status bar
you need to sort out why the power widget is force closing
Click to expand...
Click to collapse
No .Setting will not fc as it is just using sharedpreferences which will not effect settings in any way.
Sent from my GT-S5360 using Tapatalk 2
If anyone can provide me the systemui.apk.I will try to sort out the problem.

[Q] "android.process.media has stopped" Stock 5.1.1

Hi,
I've just updated my phone to stock 5.1.1 and I've deleted some system apps I don't need like I've done with 5.1.
Everythings works perfectly except that when I try to open the Download Manager it says "android.process.media has stopped" and I can't use it.
I've seen that I've deleted one more app thant with 5.1, DocumentsUI. Can it be this missing app that cause this error ?
Ive tried to put it back by extracting it from the system.img and moving it's folder in the right place with the same system right but the problem is still the same.
Kind regards
As it's a UI - User interface I'd say so. Start again and freeze apps you are not 100%sure of. You can unfreeze if it's needed.
SENT BY ENTANGLEMENT
I've done some investigations on my brother's phone and now I'm pretty sur that my problem is because I've deleted the Docs app that was in system\app\DocumentsUI.
Is there a way to put it back without flashing the whole ROM again ?
I've still got this problem. I have this logcat if someone is able to help me...
E/AndroidRuntime( 5031): FATAL EXCEPTION: main
E/AndroidRuntime( 5031): Process: android.process.media, PID: 5031
E/AndroidRuntime( 5031): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.providers.downloads.ui/com.android.providers.downloads.ui.DownloadList}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.action.MANAGE_ROOT dat=content://com.android.providers.downloads.documents/root/downloads }
E/AndroidRuntime( 5031): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
E/AndroidRuntime( 5031): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
E/AndroidRuntime( 5031): at android.app.ActivityThread.access$800(ActivityThread.java:151)
E/AndroidRuntime( 5031): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
E/AndroidRuntime( 5031): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 5031): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 5031): at android.app.ActivityThread.main(ActivityThread.java:5254)
E/AndroidRuntime( 5031): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 5031): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 5031): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime( 5031): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
E/AndroidRuntime( 5031): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.action.MANAGE_ROOT dat=content://com.android.providers.downloads.documents/root/downloads }
E/AndroidRuntime( 5031): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1781)
E/AndroidRuntime( 5031): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1501)
E/AndroidRuntime( 5031): at android.app.Activity.startActivityForResult(Activity.java:3745)
E/AndroidRuntime( 5031): at android.app.Activity.startActivityForResult(Activity.java:3706)
E/AndroidRuntime( 5031): at android.app.Activity.startActivity(Activity.java:4016)
E/AndroidRuntime( 5031): at android.app.Activity.startActivity(Activity.java:3984)
E/AndroidRuntime( 5031): at com.android.providers.downloads.ui.DownloadList.onCreate(DownloadList.java:35)
E/AndroidRuntime( 5031): at android.app.Activity.performCreate(Activity.java:5990)
E/AndroidRuntime( 5031): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/AndroidRuntime( 5031): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
E/AndroidRuntime( 5031): ... 10 more
Just dirty flash same rom. All the apps will be there

Categories

Resources