I am currently in the process of porting (or trying to) the SGS3 camera app to our phone.
I have sorted many com.sec.* dependency errors and finally got it to install but sadly I have hit a brick wall and can't work out to solve the current error. Thus I turn to XDA to help me, obviously once I get it working I will share the results for all to download in this thread.
The current error I am getting is:
Code:
05-29 21:17:05.225 W/dalvikvm(5171): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/sec/android/seccamera/SecCamera;
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraHolder.<init>(CameraHolder.java:98)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraHolder.instance(CameraHolder.java:66)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.isBackCamera(CameraSettings.java:1538)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.getDefaultCameraResolution(CameraSettings.java:1720)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.getCameraResolution(CameraSettings.java:1716)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.Camera.resizeForPreviewAspectRatio(Camera.java:2796)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.Camera.onCreate(Camera.java:744)
05-29 21:17:05.230 E/AndroidRuntime(5171): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1314]: 1910 cannot locate '_ZN7android6Camera7connectEii'...
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.seccamera.SecCamera.<clinit>(SecCamera.java:2425)
05-29 21:17:05.235 W/ActivityManager(2081): Force finishing activity com.sec.android.app.camera/.Camera
I presume this is a sign of another missing dependency but I am stuck as to what it could be.
Any help would be appreciated and apologies if this is in the wrong section.
HTF said:
I am currently in the process of porting (or trying to) the SGS3 camera app to our phone.
I have sorted many com.sec.* dependency errors and finally got it to install but sadly I have hit a brick wall and can't work out to solve the current error. Thus I turn to XDA to help me, obviously once I get it working I will share the results for all to download in this thread.
The current error I am getting is:
Code:
05-29 21:17:05.225 W/dalvikvm(5171): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/sec/android/seccamera/SecCamera;
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraHolder.<init>(CameraHolder.java:98)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraHolder.instance(CameraHolder.java:66)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.isBackCamera(CameraSettings.java:1538)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.getDefaultCameraResolution(CameraSettings.java:1720)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.getCameraResolution(CameraSettings.java:1716)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.Camera.resizeForPreviewAspectRatio(Camera.java:2796)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.Camera.onCreate(Camera.java:744)
05-29 21:17:05.230 E/AndroidRuntime(5171): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1314]: 1910 cannot locate '_ZN7android6Camera7connectEii'...
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.seccamera.SecCamera.<clinit>(SecCamera.java:2425)
05-29 21:17:05.235 W/ActivityManager(2081): Force finishing activity com.sec.android.app.camera/.Camera
I presume this is a sign of another missing dependency but I am stuck as to what it could be.
Any help would be appreciated and apologies if this is in the wrong section.
Click to expand...
Click to collapse
Hope you will get it working , would be near the best damn thing from s3 to our notes, PLEAS help him!
Cheers for the support but I am making no progress due to this error, google isn't helpful and my own trial and error is not working either
I'm look forward to seeing function camera in SG3 to our galaxy note too.
HTF said:
I am currently in the process of porting (or trying to) the SGS3 camera app to our phone.
I have sorted many com.sec.* dependency errors and finally got it to install but sadly I have hit a brick wall and can't work out to solve the current error. Thus I turn to XDA to help me, obviously once I get it working I will share the results for all to download in this thread.
The current error I am getting is:
Code:
05-29 21:17:05.225 W/dalvikvm(5171): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/sec/android/seccamera/SecCamera;
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraHolder.<init>(CameraHolder.java:98)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraHolder.instance(CameraHolder.java:66)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.isBackCamera(CameraSettings.java:1538)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.getDefaultCameraResolution(CameraSettings.java:1720)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.getCameraResolution(CameraSettings.java:1716)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.Camera.resizeForPreviewAspectRatio(Camera.java:2796)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.Camera.onCreate(Camera.java:744)
05-29 21:17:05.230 E/AndroidRuntime(5171): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1314]: 1910 cannot locate '_ZN7android6Camera7connectEii'...
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.seccamera.SecCamera.<clinit>(SecCamera.java:2425)
05-29 21:17:05.235 W/ActivityManager(2081): Force finishing activity com.sec.android.app.camera/.Camera
I presume this is a sign of another missing dependency but I am stuck as to what it could be.
Any help would be appreciated and apologies if this is in the wrong section.
Click to expand...
Click to collapse
I have been attempting the same thing, i am not getting any more library or framework errors, just a resource error which i am unsure how to fix.
I have been trying to get the camera apk from the Samsung Galaxy s3 to work on my S2, so far i have modified my framework.jar to get past the following problems;
***FIXED PROBLEMS***
Code:
W/dalvikvm( 5364): VFY: unable to resolve virtual method 1002: Lcom/sec/android/app/IWSpeechRecognizer/BargeInRecognizer;.startBargeIn (I)V
W/dalvikvm( 5364): Link of class 'Lcom/sec/android/app/camera/Camera$VoiceRecognizer;' failed
W/dalvikvm( 5364): VFY: unable to resolve static method 6283: Lcom/sec/android/hardware/SecHardwareInterface;.setmDNIeOutDoor (Z)Z
W/dalvikvm( 5364): VFY: unable to resolve static method 6282: Lcom/sec/android/hardware/SecHardwareInterface;.setAmoledVideoGamma (Z)Z
AND a bunch of CscFeature errors.
***********
The error list is much shorter than it was before, but i have never tried this before (modding an apk) but, i have figured out all the, odex, deodex, smali, classes.dex, resigning, blah blah blah, stuff on my own (with your help XDA and Google) but now have, what seems to be one final obstacle, and i was hoping someone here could help me.
Here are the important bits of the logcat...
******EXISTING PROBLEMS*******
Code:
E/AndroidRuntime(27527): FATAL EXCEPTION: main
E/AndroidRuntime(27527): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.sec.android.app.camera/com.sec.android.app.camera.Camera}: android.content.res.Resources$NotFoundException: Resource ID #0x7f030003
E/AndroidRuntime(27527): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1968)
E/AndroidRuntime(27527): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:1993)
E/AndroidRuntime(27527): at android.app.ActivityThread.access$600(ActivityThre ad.java:127)
E/AndroidRuntime(27527): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1159)
E/AndroidRuntime(27527): at android.os.Handler.dispatchMessage(Handler.java:99 )
E/AndroidRuntime(27527): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(27527): at android.app.ActivityThread.main(ActivityThread.jav a:4512)
E/AndroidRuntime(27527): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(27527): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(27527): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:794)
E/AndroidRuntime(27527): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:561)
E/AndroidRuntime(27527): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(27527): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f030003
E/AndroidRuntime(27527): at android.content.res.Resources.getValue(Resources.j ava:1019)
E/AndroidRuntime(27527): at android.content.res.Resources.loadXmlResourceParse r(Resources.java:2107)
E/AndroidRuntime(27527): at android.content.res.Resources.getLayout(Resources. java:858)
E/AndroidRuntime(27527): at android.view.LayoutInflater.inflate(LayoutInflater .java:394)
E/AndroidRuntime(27527): at android.view.LayoutInflater.inflate(LayoutInflater .java:352)
E/AndroidRuntime(27527): at com.sec.android.app.camera.AbstractCameraActivity. showEditableShortcutHelpTextDialog(AbstractCameraA ctivity.java:1906)
E/AndroidRuntime(27527): at com.sec.android.app.camera.AbstractCameraActivity. onCreate(AbstractCameraActivity.java:1028)
E/AndroidRuntime(27527): at com.sec.android.app.camera.Camera.onCreate(Camera. java:712)
E/AndroidRuntime(27527): at android.app.Activity.performCreate(Activity.java:4 481)
E/AndroidRuntime(27527): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1052)
E/AndroidRuntime(27527): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1932)
************************************************** ********************************
2 files in the apk reference Resource ID #0x7f030003
1. AbstractCameraActivity.smali
.line 1906
.local v3, inflater:Landroid/view/LayoutInflater;
const v6, 0x7f030003
2. R$layout.smali
.field public static final editable_shortcut_helptext_dialog:I = 0x7f030003
I feel like this may help too, this is a section of AbstractCameraActivity.smali leading up to the above referenced line.
Code:
.line 1898
iget-object v6, p0, Lcom/sec/android/app/camera/AbstractCameraActivity;->mEditableShortcutHelpTextDialog:Landroid/app/AlertDialog;
if-eqz v6, :cond_6
.line 1934
:cond_5
:goto_5
return-void
.line 1901
:cond_6
const-string v6, "AbstractCameraActivity"
new-instance v7, Ljava/lang/StringBuilder;
invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V
const-string v8, "create showEditableShortcutHelpTextDialog - "
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/StringLjava/lang/StringBuilder;
move-result-object v7
invoke-virtual {p0}, Lcom/sec/android/app/camera/AbstractCameraActivity;->getCameraSettings()Lcom/sec/android/app/camera/CameraSettings;
move-result-object v8
invoke-virtual {v8}, Lcom/sec/android/app/camera/CameraSettings;->getEditableShortcutHelpTextDialog()I
move-result v8
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v7
invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v7
invoke-static {v6, v7}, Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/StringI
.line 1902
invoke-virtual {p0}, Lcom/sec/android/app/camera/AbstractCameraActivity;->getCameraSettings()Lcom/sec/android/app/camera/CameraSettings;
move-result-object v6
invoke-virtual {v6}, Lcom/sec/android/app/camera/CameraSettings;->getEditableShortcutHelpTextDialog()I
move-result v6
if-eq v6, v9, :cond_5
.line 1903
new-instance v1, Landroid/app/AlertDialog$Builder;
invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/ContextV
.line 1904
.local v1, dialog:Landroid/app/AlertDialog$Builder;
invoke-virtual {p0}, Lcom/sec/android/app/camera/AbstractCameraActivity;->getLayoutInflater()Landroid/view/LayoutInflater;
move-result-object v3
.line 1906
.local v3, inflater:Landroid/view/LayoutInflater;
const v6, 0x7f030003
HTF said:
I am currently in the process of porting (or trying to) the SGS3 camera app to our phone.
I have sorted many com.sec.* dependency errors and finally got it to install but sadly I have hit a brick wall and can't work out to solve the current error. Thus I turn to XDA to help me, obviously once I get it working I will share the results for all to download in this thread.
The current error I am getting is:
Code:
05-29 21:17:05.225 W/dalvikvm(5171): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/sec/android/seccamera/SecCamera;
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraHolder.<init>(CameraHolder.java:98)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraHolder.instance(CameraHolder.java:66)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.isBackCamera(CameraSettings.java:1538)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.getDefaultCameraResolution(CameraSettings.java:1720)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.CameraSettings.getCameraResolution(CameraSettings.java:1716)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.Camera.resizeForPreviewAspectRatio(Camera.java:2796)
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.app.camera.Camera.onCreate(Camera.java:744)
05-29 21:17:05.230 E/AndroidRuntime(5171): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1314]: 1910 cannot locate '_ZN7android6Camera7connectEii'...
05-29 21:17:05.230 E/AndroidRuntime(5171): at com.sec.android.seccamera.SecCamera.<clinit>(SecCamera.java:2425)
05-29 21:17:05.235 W/ActivityManager(2081): Force finishing activity com.sec.android.app.camera/.Camera
I presume this is a sign of another missing dependency but I am stuck as to what it could be.
Any help would be appreciated and apologies if this is in the wrong section.
Click to expand...
Click to collapse
is your APK deodexed?
FuzzyMeep Two said:
is your APK deodexed?
Click to expand...
Click to collapse
Yeah it is deodexed. I just got my phone back from samsung support after I superbricked it so I can start working on this again I'll fire you a pm.
all i can say is WOW
if you get it working its a great leap for NOTE users
if you dont get it working its still a great endeavor
i tip my hat to you
I cant offer much in the wy of coding support fella but I can sure as hell give you one huge pat on the back and he massive smile of admiration bud.
Kudos to you and I hope you manage to sort it
Looking at a larger portion of my logcat it is the error FuzzyMeep Two posted that is causing my error. Therefore we are both stuck at the same place in the port
Is there a difference between the S3 camera app and the Note's camera app? They look the same to me.
Yes ...the S3 camera app is shiney and new. We all like things that are shiney and new.
i like the new S3 camera function like continuous shot.
All d vry best buddy..... Hope u really come out wid gud news.....
Sent from my GT-N7000 using XDA Premium HD app
irwanizam said:
i like the new S3 camera function like continuous shot.
Click to expand...
Click to collapse
For the continuous shot you can download fast burst camera from Android market till sgs3 camera is ported to our gnote.it also works fine.
Sent from my GT-N7000 using xda premium
Good luck, Looking to this once you get it working.
Sorry I am not able to offer assistance with porting.
thanks
so is this camera thing available or still in development ?
I used fast burst camera. The photos are all blurred with moderate left to right continuous shots.
Wonder if this occurs on s3 camera.
Sent from my GT-N7000 using xda premium
fadibakhos said:
so is this camera thing available or still in development ?
Click to expand...
Click to collapse
Still in development, making slow progress.
Related
Hi there, I want to share this tutorial for implementing Swipe-to-Remove Notification feature found in CyanogenMod to stock ROM (Gingerbread or earlier ROM). Sure it will be available on ICS but for those who like to add one to their custom ROM here's how Currently i don't know to whom should i give credit to, if anybody knows please post below and i'll add the link for the original modder. Thanks to:
1. like-p for help showing me what files to be edited
2. LeoMar75 for some info on how to control Stub switch case
This mod is based on Sony Ericsson Xperia Ray, so take care when adding to another device, some code might be different though so no direct copy paste, please learn some of the line first.
PS: For Froyo mod, please follow Jason-EX here
Requirement:
1. decompiled Framework.jar with Baksmali manager
2. decompiled SystemUI.apk with APK Multi Tool
3. Some Basic understanding about editing xml file and smali code.
4. WinMerge or other comparison tool (to better editing and comparing with my sample file)
5. Backup the framework.jar and SystemUI.apk first!
Files to be edited:
in SystemUI.apk
res/anim/
res/layout/status_bar_latest_event.xml
res/values/public.xml
smali/com/android/systemui/statusbar/LatestItemContainer$1.smali
smali/com/android/systemui/statusbar/LatestItemContainer.smali
smali/com/android/systemui/statusbar/StatusBarService$7.smali (or depends on your numbering, could be $8 or larger)
smali/com/android/systemui/statusbar/StatusBarService.smali
in framework.jar:
smali/com/android/internal/statusbar/IStatusBarService$Stub$Proxy.smali
smali/com/android/internal/statusbar/IStatusBarService$Stub.smali
smali/com/android/internal/statusbar/IStatusBarService.smali
UPDATE: This is the additional guide for other device when editing StatusBarService.smali. See here:
1. HTC based
2. Samsung based
Alright, let's mod one by one
1. Editing SystemUI.apk
1.1 Editing res/anim
We are registering anim object here, so swipe animation can be done.
Create folder anim (if not exists yet) inside /res folder
Create 2 file named slide_out_left_basic.xml and slide_out_right_basic.xml inside res/anim folder
for slide_out_left_basic.xml, edit the file and fill with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<translate android:duration="@android:integer/config_mediumAnimTime" android:fromXDelta="0.0" android:toXDelta="-100.0%p"
xmlns:android="http://schemas.android.com/apk/res/android" />
for slide_out_right_basic.xml, edit the file and fill with this
Code:
<?xml version="1.0" encoding="utf-8"?>
<translate android:duration="@android:integer/config_mediumAnimTime" android:fromXDelta="0.0" android:toXDelta="100.0%p"
xmlns:android="http://schemas.android.com/apk/res/android" />
Save both
Update: Mirko ddd (&shoman94 have pointed that out before but i have no idea where to change, sorry mate) have given me the tip to improve the gesture. read his post here Thanks mate, both of you!
1.2 Editing res/layout/status_bar_latest_event.xml
We are replacing LinearLayout object used in StatusBar with LatestItemContainer here, so notification can be removed. We handle the Styling first by editing this .xml first. Here are the steps:
Change the code from Original code to this (change the bold one)
Code:
<?xml version="1.0" encoding="utf-8"?>
<[B]com.android.systemui.statusbar.LatestItemContainer [/B]android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="65.0sp"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.statusbar.LatestItemView android:id="@id/content" android:background="@android:drawable/status_bar_item_background" android:paddingRight="6.0sp" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="64.0sp" android:shadowColor="#ff000000" android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
<View android:background="@drawable/divider_horizontal_light_opaque" android:layout_width="fill_parent" android:layout_height="wrap_content" />
<[B]/com.android.systemui.statusbar.LatestItemContainer[/B]>
Save
1.3 Editing res/values/public.xml
This one is for registering anim file that we made on step 1.1 to be available publicly and to be recognized in .smali program. Here are the steps:
Recompile your apk after putting anim file into /res folder
Decompile again the resulting apk
Inside /res/values/public.xml, you'll found something like this:
Code:
<resources>
.
.
.
[B]
<public type="anim" name="slide_out_left_basic" id="0x7f0c0000" />
<public type="anim" name="slide_out_right_basic" id="0x7f0c0001" />
[/B]
</resources>
[*]Remember the ID for both anim lines. This will be applied again on the step 1.4
1.4 Adding smali/com/android/systemui/statusbar/LatestItemContainer$1.smali and smali/com/android/systemui/statusbar/LatestItemContainer.smali
This is the class of LatestItemContainer that will be used to handle the notification list instead of LatestItemView. Here are the steps:
Please download from the attachment
insert the files inside to mentioned folder above
Inside LatestItemContainer$1.smali, there's an id that references the anim from step1.2. please edit it if you have different id for anim left or anim from previous step.
Code:
.line 53
:cond_0
const/high16 v1, [B]0x7f0c[/B]
and
Code:
.line 51
const v1, [B]0x7f0c0001[/B]
1.5 Add smali/com/android/systemui/statusbar/StatusBarService$7.smali (or depends on your existing framework numbering, could be $8 or larger)
This is additional function for StatusBarService to handle onClearNotification function. Here are the steps:
Extract the StatusBarService$7.smali from attachment
If StatusBarService$7.smali does not exist before, just place it inside, if not, skip this step.
If StatusBarService$7.smali exists, Please rename the file to StatusBarService$8.smali (or whatever higher number that is unused) and rename all the line inside the file from
Code:
StatusBarService$7
to
Code:
StatusBarService$8
1.6 Edit smali/com/android/systemui/statusbar/StatusBarService.smali
UPDATE: This is the additional guide for other device when editing StatusBarService.smali. See here:
1. Generic java readout
2. HTC based
3. Samsung based
This is the file that generate NotificationView. Please take care of the changes here more carefully because there might be some differences between vendors in this file. Here are the steps:
Open StatusBarService.smali and find this function
Code:
.method makeNotificationView(Lcom/android/internal/statusbar/StatusBarNotification;Landroid/view/ViewGroup;)[Landroid/view/View;
Find this code in the makeNotificationView function body:
Code:
invoke-virtual {v0, v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object v18
const v4, 0x7f0b0014
move-object/from16 v0, v18
move v1, v4
invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v10
Insert the bold code below between the existing code:
Code:
invoke-virtual {v0, v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object v18
[B] check-cast v18, Lcom/android/systemui/statusbar/LatestItemContainer;
.line 516
.local v18, row:Lcom/android/systemui/statusbar/LatestItemContainer;
move-object/from16 v0, v16
iget v0, v0, Landroid/app/Notification;->flags:I
move v4, v0
and-int/lit8 v4, v4, 0x2
if-nez v4, :cond_swno
move-object/from16 v0, v16
iget v0, v0, Landroid/app/Notification;->flags:I
move v4, v0
and-int/lit8 v4, v4, 0x20
if-nez v4, :cond_swno
new-instance v4, Lcom/android/systemui/statusbar/StatusBarService$7;
move-object v0, v4
move-object/from16 v1, p0
move-object/from16 v2, p1
invoke-direct {v0, v1, v2}, Lcom/android/systemui/statusbar/StatusBarService$7;-><init>(Lcom/android/systemui/statusbar/StatusBarService;Lcom/android/internal/statusbar/StatusBarNotification;)V
move-object/from16 v0, v18
move-object v1, v4
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/LatestItemContainer;->setOnSwipeCallback(Ljava/lang/Runnable;)V
.line 735
:cond_swno[/B]
const v4, 0x7f0b0014
move-object/from16 v0, v18
move v1, v4
[B] invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/LatestItemContainer;->findViewById(I)Landroid/view/View;[/B]
move-result-object v10
Once again, change
Code:
StatusBarService$7
to
Code:
StatusBarService$8
line if you happened to have StatusBarService$8.smali as the result of renaming on the previous step.
IMPORTANT LOGIC TO BE UNDERSTOOD: This step tells the function to:
1. cast the already made View Object to LatestItemContainer instead of using LatestView class.
2. Filter if the Notification is removable or not
3. the LatestItemContainer object (v18) is assigned with onSwipeCallback(new StatusBarService$7)
Change the following (still on the same function body):
Code:
move v1, v4
invoke-virtual {v0, v1}, Landroid/view/View;->setDrawingCacheEnabled(Z)V
.line 542
const/4 v4, 0x3
to
Code:
move v1, v4
[B] invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/LatestItemContainer;->setDrawingCacheEnabled(Z)V
[/B]
.line 542
const/4 v4, 0x3
Please note:
StatusBarService.smali might be different between vendor, so please adapt with your .smali to implement the above coding.
2. Editing framework.jar
2.1 editing smali/com/android/internal/statusbar/IStatusBarService$Stub.smali
Here are the steps:
Add this code on variable declaration part inside the file
Code:
.field static final TRANSACTION_onClearAllNotifications:I = 0xb
[B].field static final TRANSACTION_onNotificationClear:I = 0xc[/B]
.field static final TRANSACTION_onNotificationClick:I = 0x9
.field static final TRANSACTION_onNotificationError:I = 0xa
If the 0xc is already used on another static value, you must change it so it remains unique.
Find this code:
Code:
.method public onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z
.registers 14
.parameter "code"
.parameter "data"
.parameter "reply"
.parameter "flags"
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
.prologue
.line 39
sparse-switch p1, :sswitch_data_124
change to
Code:
.method public onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z
.registers 14
.parameter "code"
.parameter "data"
.parameter "reply"
.parameter "flags"
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
.prologue
.line 39
[B]sparse-switch p1, :sswitch_data_13e[/B]
Insert/replace this code (it is at the end of the file):
Code:
.line 176
const/4 v0, 0x1
goto/16 :goto_7
.line 39
:sswitch_data_124
.sparse-switch
0x1 -> :sswitch_f
0x2 -> :sswitch_1c
0x3 -> :sswitch_29
0x4 -> :sswitch_42
0x5 -> :sswitch_5f
0x6 -> :sswitch_7b
0x7 -> :sswitch_8d
0x8 -> :sswitch_c7
0x9 -> :sswitch_d5
0xa -> :sswitch_ef
0xb -> :sswitch_116
0x5f4e5446 -> :sswitch_8
.end sparse-switch
to
Code:
[B]
.line 176
const/4 v0, 0x1
goto/16 :goto_7
.end local v1 #_arg0:Ljava/lang/String;
.end local v2 #_arg1:Ljava/lang/String;
.end local v3 #_arg2:I
:sswitch_124
const-string v0, "com.android.internal.statusbar.IStatusBarService"
invoke-virtual {p2, v0}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V
.line 177
invoke-virtual {p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;
move-result-object v1
.line 178
.restart local v1 #_arg0:Ljava/lang/String;
invoke-virtual {p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;
move-result-object v2
.line 179
.restart local v2 #_arg1:Ljava/lang/String;
invoke-virtual {p2}, Landroid/os/Parcel;->readInt()I
move-result v3
.line 180
.restart local v3 #_arg2:I
invoke-virtual {p0, v1, v2, v3}, Lcom/android/internal/statusbar/IStatusBarService$Stub;->onNotificationClear(Ljava/lang/String;Ljava/lang/String;I)V
.line 181
invoke-virtual {p3}, Landroid/os/Parcel;->writeNoException()V
.line 182
const/4 v0, 0x1
goto/16 :goto_7[/B]
.line 39
:sswitch_data_13e
.sparse-switch
0x1 -> :sswitch_f
0x2 -> :sswitch_1c
0x3 -> :sswitch_29
0x4 -> :sswitch_42
0x5 -> :sswitch_5f
0x6 -> :sswitch_7b
0x7 -> :sswitch_8d
0x8 -> :sswitch_c7
0x9 -> :sswitch_d5
0xa -> :sswitch_ef
0xb -> :sswitch_116
[B]0xc -> :sswitch_124[/B]
0x5f4e5446 -> :sswitch_8
.end sparse-switch
it's important to note this
Code:
[B]0xc -> :sswitch_124[/B]
If you rename the static at the previous steps, please change the 0xc accordingly.
2.2 Editing smali/com/android/internal/statusbar/IStatusBarService$Stub$Proxy.smali
Here are the steps:
Insert these function code to the file:
Code:
.method public onNotificationClear(Ljava/lang/String;Ljava/lang/String;I)V
.registers 9
.parameter "pkg"
.parameter "tag"
.parameter "id"
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
.prologue
.line 359
invoke-static {}, Landroid/os/Parcel;->obtain()Landroid/os/Parcel;
move-result-object v0
.line 360
.local v0, _data:Landroid/os/Parcel;
invoke-static {}, Landroid/os/Parcel;->obtain()Landroid/os/Parcel;
move-result-object v1
.line 362
.local v1, _reply:Landroid/os/Parcel;
:try_start_8
const-string v2, "com.android.internal.statusbar.IStatusBarService"
invoke-virtual {v0, v2}, Landroid/os/Parcel;->writeInterfaceToken(Ljava/lang/String;)V
.line 363
invoke-virtual {v0, p1}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
.line 364
invoke-virtual {v0, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V
.line 365
invoke-virtual {v0, p3}, Landroid/os/Parcel;->writeInt(I)V
.line 366
iget-object v2, p0, Lcom/android/internal/statusbar/IStatusBarService$Stub$Proxy;->mRemote:Landroid/os/IBinder;
const/16 v3, 0xa
const/4 v4, 0x0
invoke-interface {v2, v3, v0, v1, v4}, Landroid/os/IBinder;->transact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z
.line 367
invoke-virtual {v1}, Landroid/os/Parcel;->readException()V
:try_end_21
.catchall {:try_start_8 .. :try_end_21} :catchall_28
.line 370
invoke-virtual {v1}, Landroid/os/Parcel;->recycle()V
.line 371
invoke-virtual {v0}, Landroid/os/Parcel;->recycle()V
.line 373
return-void
.line 370
:catchall_28
move-exception v2
invoke-virtual {v1}, Landroid/os/Parcel;->recycle()V
.line 371
invoke-virtual {v0}, Landroid/os/Parcel;->recycle()V
throw v2
.end method
Please inspect the code for this part:
Code:
[B]const/16 v3, 0xa[/B]
const/4 v4, 0x0
invoke-interface {v2, v3, v0, v1, v4}, Landroid/os/IBinder;->transact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z
The bold one must match on one of the switch case value at the end of IStatusBarService$Stub.smali,
in my phone actually the valid one is the TRANSACTION_onNotificationError (0xa) so if your NotificationError is not 0xa but 0xb for example, please change the bold one to 0xb
Save
2.3 editing smali/com/android/internal/statusbar/IStatusBarService.smali
Insert this function code to the file. Here are the steps:
Insert these function code to the file:
Code:
.method public abstract onNotificationClear(Ljava/lang/String;Ljava/lang/String;I)V
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
.end method
Save
There you have it AFAIK, the files that you need to take care more than others are:
1. smali/com/android/systemui/statusbar/StatusBarService.smali
2. res/values/public.xml
The rest can be applied from the attachment below directly. Ok that's all, after you are done, compile both SystemUI.apk and Framework.jar.
How to Compile the right way?
1. SystemUI.apk ->
Compile with APK Multi Tool, press y and y twice with all the requested input,
delete modified file from keep folder, and after that continue compiling.
Copy from original APK the META-INF and AndroidManifest.xml to the unsignedSystemUI.apk
rename unsignedSystemUI.apk to signedSystemUI.apk
select Zipalign from APK Multi Tool to optimize apk.
Rename to SystemUI.apk (move the original one just in case)
2. framework.jar ->
Smali inside Baksmali Manager
Replace classes.dex inside framework.jar with the generated one.
and apply on your phone.
Hope this helps you (programmer ofc, not end user ) to implement on your device.
G'day!
Mate, thank you so much for this - I have been trying to figure it out for our ROM for weeks LOL I'm going to give it a try this evening and I'll let you know if I get it! Thanks again
Dunc001 said:
Mate, thank you so much for this - I have been trying to figure it out for our ROM for weeks LOL I'm going to give it a try this evening and I'll let you know if I get it! Thanks again
Click to expand...
Click to collapse
Ok let me know mate
ill try it on my SGY
Looks fun! great post
tommytomatoe said:
Looks fun! great post
Click to expand...
Click to collapse
Updated step, to give you some warning about StatusBarService$7 naming convention
definitely gonna give this a try!!
great akaka.try it soon.
did u know how to port ICS layout to stock rom? can u write a tut?
this will be great!!
nvt992 said:
great akaka.try it soon.
did u know how to port have ICS layout to stock rom? can u write a tut?
this will be great!!
Click to expand...
Click to collapse
What layout? Do you mean ICS launcher layout or..?
no.see my attach
nvt992 said:
no.see my attach
Click to expand...
Click to collapse
Well do you have the original link? First, i know nothing about that, so i should learn first. and secondly, it's more about theme editing, so i think it's more about editing XML inside SystemUI.apk rather than coding a .smali like above. Thirdly, the shortcut for setting in ICS IMHO is not as efficient as Power Widget Status Bar.
hansip87 said:
Well do you have the original link? First, i know nothing about that, so i should learn first. and secondly, it's more about theme editing, so i think it's more about editing XML inside SystemUI.apk rather than coding a .smali like above. Thirdly, the shortcut for setting in ICS IMHO is not as efficient as Power Widget Status Bar.
Click to expand...
Click to collapse
this is for cm7
patch http://forum.xda-developers.com/showthread.php?t=1324924
or original theme
http://forum.xda-developers.com/showthread.php?t=1334922
hope u can do it
nvt992 said:
this is for cm7
patch http://forum.xda-developers.com/showthread.php?t=1324924
or original theme
http://forum.xda-developers.com/showthread.php?t=1334922
hope u can do it
Click to expand...
Click to collapse
Well ok thanks but don't count on me ok because i am currently researching for 2G/3G toggle button for PowerWidget, this one is not that high on my list, but you never know..
ok thank you
where can i get Baksmali manager?
lasmaty07 said:
where can i get Baksmali manager?
Click to expand...
Click to collapse
Check back later mate, just uploading right now because of on the original link, it's dead. I'll upload it for us all to share
EDIT: Uploaded. Click Baksmali Manager link on the first page to download. APK Multi Tool can be found on the same parent thread (Hacking General)
Done, but get this error when recompiling .apk
Code:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\me\Desktop\folder>apktool.bat b -f -d out
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: [email protected]
at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)
at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)
at brut.androlib.src.SmaliBuilder.buildFile(Unknown Source)
at brut.androlib.src.SmaliBuilder.build(Unknown Source)
at brut.androlib.src.SmaliBuilder.build(Unknown Source)
at brut.androlib.Androlib.buildSourcesSmali(Unknown Source)
at brut.androlib.Androlib.buildSources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Tried to do it manually like this and using apk multitool, but same error in log.
even tried to compile just after decompiling but that's no help.. same error
Any help?
jaggyjags said:
Done, but get this error when recompiling .apk
Code:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\me\Desktop\folder>apktool.bat b -f -d out
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: [email protected]
at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)
at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)
at brut.androlib.src.SmaliBuilder.buildFile(Unknown Source)
at brut.androlib.src.SmaliBuilder.build(Unknown Source)
at brut.androlib.src.SmaliBuilder.build(Unknown Source)
at brut.androlib.Androlib.buildSourcesSmali(Unknown Source)
at brut.androlib.Androlib.buildSources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Tried to do it manually like this and using apk multitool, but same error in log.
even tried to compile just after decompiling but that's no help.. same error
Any help?
Click to expand...
Click to collapse
APKTools is a bit outdated and i'm afraid some incompatibilites with Google SDK might be the source of the problem. search APK Multi Tools and use that one instead with SDK release 16 and up.
Hello, and thanks for the how-to!
Sadly I couldn't get it to work on my phone (Motorola Atrix 2). Some of the smali files were pretty different... I tried my best but there were definitely moments when I wasn't sure if I was doing the correct thing... SystemUI won't compile.
Hi, all. Seems the statusbarservice.smali is very different from each other. So to help you all, this is the java code that should give you a better understanding. Please read here https://github.com/nadlabak/android...m/android/server/status/StatusBarService.java
Sent from my ST18i using XDA App
This one is fun - I'm getting an FC every time an application requests keyboard input. If I hit the Google search icon on the top left of the home screen, it immediately FCs - that's what I'm using to test.
I downloaded aLogCat to the device via Google Play on my desktop, and ran it. Here is what I believe to be the relevant log section , from tapping the search icon, to re-entering aLogCat.
I believe the ClipboardEx service is causing the issue, possibly as an interference with another app I have installed - but I don't know what, or how to give you guys a list of apps installed without just typing each one.
This issue happened once to me, and a factory restore fixed it - two weeks later, and it's back. I'm not an experience Android guy, though I am a nerd and a developer. Surely this is something fixable. Does anyone have any thoughts on what could be causing this?
Code:
I/InputReader( 184): Touch event's action is 0x1 (deviceType=0) [pCnt=1, pending(waiting finished signal)=1, s=]
I/InputDispatcher( 184): Delivering touch to current input target: action: 0x1
I/InputDispatcher( 184): Delivering touch to current input target: action: 0x1
I/InputDispatcher( 184): Delivering touch to current input target: action: 0x1
I/ActivityManager( 184): START {intent.toShortString} from pid 383
D/PowerManagerService( 184): acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 1008000 uid : 1000 pid : 184 tag : ActivityManager
W/ActivityManager( 184): mDVFSLock.acquire()
D/Launcher.HomeFragment( 383): onPause
D/Launcher( 383): onPause
V/TaskCloserActivity( 3234): TaskCloserActivity onReceive()
D/KeyguardViewMediator( 184): setHidden false
D/ActivityManager( 184): Trying to launch applicationName
D/ControlPanelRemoteService( 3246): onDestroy()
D/OpenGLRenderer( 383): Flushing caches (mode 1)
D/dalvikvm( 3157): GC_CONCURRENT freed 259K, 5% free 6784K/7111K, paused 2ms+3ms
D/KeyguardViewMediator( 184): setHidden false
D/STATUSBAR-StatusBarManagerService( 184): setSystemUiVisibility(0x0)
D/STATUSBAR-StatusBarManagerService( 184): manageDisableList what=0x0 pkg=WindowManager.LayoutParams
D/libEGL ( 3157): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL ( 3157): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL ( 3157): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
D/OpenGLRenderer( 3157): Enabling debug mode 0
E/ClipboardServiceEx( 3157): Had failed to obtaining clipboardEx service.
D/AndroidRuntime( 3157): Shutting down VM
W/dalvikvm( 3157): threadid=1: thread exiting with uncaught exception (group=0x40bb01f8)
E/AndroidRuntime( 3157): FATAL EXCEPTION: main
E/AndroidRuntime( 3157): java.lang.NullPointerException
E/AndroidRuntime( 3157): at android.sec.clipboard.ClipboardExManager.updateData(ClipboardExManager.java:241)
E/AndroidRuntime( 3157): at android.widget.EditText.onFocusChanged(EditText.java:134)
E/AndroidRuntime( 3157): at android.view.View.handleFocusGainInternal(View.java:3727)
E/AndroidRuntime( 3157): at android.view.View.requestFocus(View.java:5420)
E/AndroidRuntime( 3157): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2154)
E/AndroidRuntime( 3157): at android.view.ViewGroup.requestFocus(ViewGroup.java:2110)
E/AndroidRuntime( 3157): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2154)
E/AndroidRuntime( 3157): at android.view.ViewGroup.requestFocus(ViewGroup.java:2110)
E/AndroidRuntime( 3157): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2154)
E/AndroidRuntime( 3157): at android.view.ViewGroup.requestFocus(ViewGroup.java:2110)
E/AndroidRuntime( 3157): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2154)
E/AndroidRuntime( 3157): at android.view.ViewGroup.requestFocus(ViewGroup.java:2110)
E/AndroidRuntime( 3157): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2154)
E/AndroidRuntime( 3157): at android.view.ViewGroup.requestFocus(ViewGroup.java:2110)
E/AndroidRuntime( 3157): at android.view.ViewGroup.onRequestFocusInDescendants(ViewGroup.java:2154)
E/AndroidRuntime( 3157): at android.view.ViewGroup.requestFocus(ViewGroup.java:2113)
E/AndroidRuntime( 3157): at android.view.View.requestFocus(View.java:5370)
E/AndroidRuntime( 3157): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1598)
E/AndroidRuntime( 3157): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2459)
E/AndroidRuntime( 3157): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3157): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3157): at android.app.ActivityThread.main(ActivityThread.java:4514)
E/AndroidRuntime( 3157): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3157): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3157): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
E/AndroidRuntime( 3157): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
E/AndroidRuntime( 3157): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 184): Force finishing activity com.google.android.googlequicksearchbox/.SearchActivity
E/android.os.Debug( 184): [email protected] > dumpstate -k -t -n -z -d -o /data/log/dumpstate_app_error
I/dumpstate( 3272): begin
W/ActivityManager( 184): Activity pause timeout for ActivityRecord{423f3fe0 com.google.android.googlequicksearchbox/.SearchActivity}
W/PowerManagerService( 184): Timer 0x7->0x3|0x0
I/PowerManagerService( 184): Ulight 7->3|0
D/PowerManagerService( 184): setLightBrightness : mButtonLight : 0
E/lights ( 184): write_int failed to open /sys/class/sec/sec_touchkey/brightness
I/InputReader( 184): Touch event's action is 0x0 (deviceType=0) [pCnt=1, pending(waiting finished signal)=0, s=0.70 ]
E/lights ( 184): write_int failed to open /sys/class/sec/sec_touchkey/brightness
I/PowerManagerService( 184): Ulight 3->7|0
D/PowerManagerService( 184): setLightBrightness : mButtonLight : 140
I/InputReader( 184): Touch event's action is 0x1 (deviceType=0) [pCnt=1, pending(waiting finished signal)=0, s=]
D/VoldCmdListener( 89): asec list
D/VoldCmdListener( 89): CommandListener::AsecCmd::runCommand -> --
I/dumpstate( 3272): done
D/KeyguardViewMediator( 184): setHidden false
D/Launcher( 383): onResume
D/STATUSBAR-StatusBarManagerService( 184): setSystemUiVisibility(0x0)
D/STATUSBAR-StatusBarManagerService( 184): manageDisableList what=0x0 pkg=WindowManager.LayoutParams
D/myTest ( 383): [MonthTheme] onResume!!
D/KeyguardViewMediator( 184): setHidden false
D/myTest ( 383): firstDayOfWeek = -1
I/power ( 184): *** release_dvfs_lock : lockType : 1
D/myTest ( 383): [MonthView] updateView.mStartDay: 1
D/DEFERED_APP_VISIBILITY( 184): tweaking closing app
D/PowerManagerService( 184): releaseDVFSLockLocked : all DVFS_MIN_LIMIT are released
W/ActivityManager( 184): mDVFSLock.release()
D/Launcher.HomeFragment( 383): onResume
I've now removed all downloaded applications from my Tab. No dice.
I'm going to see if I can dig up any more logs, then reset it I guess.
I've discovered that copying something to the clipboard also causes the FC. This is definitely an issue with TouchWiz's clipboard as far as I can figure out.
Weird because I know I've copy pasted from the tab before
Sent from my SAMSUNG-SGH-I727 using xda premium
jamesd86 said:
Weird because I know I've copy pasted from the tab before
Sent from my SAMSUNG-SGH-I727 using xda premium
Click to expand...
Click to collapse
It works for me, too, until the whole thing starts crashing, lol.
I reset to factory and re-installed all my stuff; it seems to be working now. I guess it's Samsung's way of reminding me to keep regular backups...
My tab crashed and then this same exact thing started happening. The logs mentioned ClipboardServiceEx.
I am rooted, so I started an adb shell and found that /data/clipboard has all the persistent clipboard entries (I love that feature by the way).
I did this:
su
mv /data/clipboard /data/oldclipboard
mkdir /data/clipboard
chmod 775 /data/clipboard
chown system.system /data/clipboard
reboot
This fixed it, although it cleared all my "held" info in the clipboard. A small price to pay. If you really had to, you could probably fish in /data/oldclipboard for it. Of course, now I will go delete oldclipboard.
Hope that helps someone.
Thanks for that info, you never know!
Pp.
Transmitted from another galaxy with an Infected P-5113.
same thing happening to me. but i was prompted to update my device so i clicked yes thinking it would fix the problem now im stuck on the "use google location" page of the setup forms because when i click next i guess theres a keyboard involved so it crashes. only other button is a back arrow which does nothing.
i havent ever messed with this stuff but i guess ill have to find out how to factory reset through the usb cable.
unwanted pain in the butt
dorkmo said:
same thing happening to me. but i was prompted to update my device so i clicked yes thinking it would fix the problem now im stuck on the "use google location" page of the setup forms because when i click next i guess theres a keyboard involved so it crashes. only other button is a back arrow which does nothing.
i havent ever messed with this stuff but i guess ill have to find out how to factory reset through the usb cable.
unwanted pain in the butt
Click to expand...
Click to collapse
If you plan to root, just do that, boot into recovery, do an adb shell and clear the clipboard directory.
If you aren't going to install a custom recovery then yeah, wipe it out.
wd5gnr said:
If you plan to root, just do that, boot into recovery, do an adb shell and clear the clipboard directory.
If you aren't going to install a custom recovery then yeah, wipe it out.
Click to expand...
Click to collapse
ok newbie here with samsung tabs having same problem, how do you boot into recovery and do an adb shell ? can see above how to clear the clipboard directory and i dont want to factory reset too hard to reload all the crap on ....
thanks
I had the same problem, I do not want to root my device, but I like to use the standard key board from Sumsung. I send a a-mail to a lot of dutch companies (resellers) to tell them about the problem. I think that Sansung must make a firware update to solve this problem. I what to ask all people who have problems with the keyboard to e-mail Samsung and there reseller to put preasure on Samsung to make a firmware.
I use a work a round, I use a 3e party keyboard untill Samsung makes a firmware update.
wd5gnr said:
I did this:
su
mv /data/clipboard /data/oldclipboard
mkdir /data/clipboard
chmod 775 /data/clipboard
chown system.system /data/clipboard
reboot
Hope that helps someone.
Click to expand...
Click to collapse
YEZZZZZ THANK YOU VERY MUCH!!!:good::laugh:
This worked perfectly on my Samsung Galaxy Tab 2 10.1 (P5110)
Thanks wd5gnr for the solution, worked very well!
Regards.
Glad it helped. I noticed someone asked earlier for more details.
There are plenty of root tutorials here. As for installing ADB there are a few ways to go and it depends on your PC's OS and if you want to get someone's simplified package or not. Read: http://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/ and the comments on that page too. If you google something like "installing ADB" you should find lots of help.
Once you have adb installed and can get to a shell, you should be good with my earlier instructions.
Hi all.
For last two days I was exploring a possiblity of using private Samsung frameworks in my own app, /system/frameworks/seccamera.jar in particular. Nothing worked yet so I'm wondering if it is possible at all.
Some background
I am developing an application which involves scanning QR codes and therefore is very dependent on camera picture quality. So I am struggling to have as much control over camera as possible from the application level. One of the features which greatly improve scanning speed and reliability is the ability of camera to do a spot exposure metering. However, there is no public API for specifying an exposure metering mode.
However with the built-in Camera app on Galaxy Tab 2 you are able to specify several exposure metering modes, spot metering mode among them. So I decided to investigate it further.
What I have already tried
1. I pulled the apk and odex files for built-in Camera app using Eclipse from /system/frameworks
2. I ran the odex file through baksmali and wound up with a handful of .smali files
3. I searched through them for "exposureMetering" and found a class com.sec.android.seccamera.SecCamera which supports specifying exposure metering mode through its Parameters inner class
4. I determined that this class resides in seccamera.jar (seccamera.odex) so I deodexed it separately:
Code:
java -jar baksmali-1.3.3.jar --deodex seccamera.odex -o seccamera
5. Then I dexed it together again:
Code:
java -jar smali-1.3.3.jar seccamera/ -o seccamera.dex
6. And finally I ran dex-file through dex2jar to create a jar library:
Code:
../dex2jar-0.0.9.8/dex2jar.sh seccamera.dex
which I linked as an external jar to my Eclipse project. I found out that SecCamera class has almost identical API to public android.hardware.Camera so it made converting my code much easier.
The project builds with no errors however it crashes almost instantly on startup with the following error:
Code:
06-28 16:49:31.648: E/AndroidRuntime(2329): FATAL EXCEPTION: main
06-28 16:49:31.648: E/AndroidRuntime(2329): java.lang.NoClassDefFoundError: com.google.zxing.client.android.camera.PreviewCallback
06-28 16:49:31.648: E/AndroidRuntime(2329): at com.google.zxing.client.android.camera.CameraManager.<init>(CameraManager.java:70)
06-28 16:49:31.648: E/AndroidRuntime(2329): at com.treelev.biennale.MainActivity.onResume(MainActivity.java:212)
06-28 16:49:31.648: E/AndroidRuntime(2329): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1158)
06-28 16:49:31.648: E/AndroidRuntime(2329): at android.app.Activity.performResume(Activity.java:4539)
06-28 16:49:31.648: E/AndroidRuntime(2329): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2448)
06-28 16:49:31.648: E/AndroidRuntime(2329): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2486)
06-28 16:49:31.648: E/AndroidRuntime(2329): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2000)
06-28 16:49:31.648: E/AndroidRuntime(2329): at android.app.ActivityThread.access$600(ActivityThread.java:128)
06-28 16:49:31.648: E/AndroidRuntime(2329): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1161)
06-28 16:49:31.648: E/AndroidRuntime(2329): at android.os.Handler.dispatchMessage(Handler.java:99)
06-28 16:49:31.648: E/AndroidRuntime(2329): at android.os.Looper.loop(Looper.java:137)
06-28 16:49:31.648: E/AndroidRuntime(2329): at android.app.ActivityThread.main(ActivityThread.java:4514)
06-28 16:49:31.648: E/AndroidRuntime(2329): at java.lang.reflect.Method.invokeNative(Native Method)
06-28 16:49:31.648: E/AndroidRuntime(2329): at java.lang.reflect.Method.invoke(Method.java:511)
06-28 16:49:31.648: E/AndroidRuntime(2329): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
06-28 16:49:31.648: E/AndroidRuntime(2329): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)
06-28 16:49:31.648: E/AndroidRuntime(2329): at dalvik.system.NativeStart.main(Native Method)
com.google.zxing.client.android.camera.PreviewCallback is one of my project classes, which I borrowed from ZXing project, so it is clearly there. I had to change it so it implements SecCamera.PreviewCallback instead of Camera.PreviewCallback. Maybe this is the culprit here.
Before that error there are a couple of other warnings:
Code:
06-28 16:49:31.625: I/dalvikvm(2329): Failed resolving Lcom/google/zxing/client/android/camera/PreviewCallback; interface 264 'Lcom/sec/android/seccamera/SecCamera$PreviewCallback;'
06-28 16:49:31.625: W/dalvikvm(2329): Link of class 'Lcom/google/zxing/client/android/camera/PreviewCallback;' failed
06-28 16:49:31.625: E/dalvikvm(2329): Could not find class 'com.google.zxing.client.android.camera.PreviewCallback', referenced from method com.google.zxing.client.android.camera.CameraManager.<init>
06-28 16:49:31.625: W/dalvikvm(2329): VFY: unable to resolve new-instance 111 (Lcom/google/zxing/client/android/camera/PreviewCallback;) in Lcom/google/zxing/client/android/camera/CameraManager;
06-28 16:49:31.625: D/dalvikvm(2329): VFY: replacing opcode 0x22 at 0x000c
06-28 16:49:31.632: I/dalvikvm(2329): Could not find method com.sec.android.seccamera.SecCamera.release, referenced from method com.google.zxing.client.android.camera.CameraManager.closeDriver
06-28 16:49:31.632: W/dalvikvm(2329): VFY: unable to resolve virtual method 1436: Lcom/sec/android/seccamera/SecCamera;.release ()V
06-28 16:49:31.632: D/dalvikvm(2329): VFY: replacing opcode 0x6e at 0x0007
06-28 16:49:31.632: I/dalvikvm(2329): Could not find method com.sec.android.seccamera.SecCamera.open, referenced from method com.google.zxing.client.android.camera.CameraManager.openDriver
06-28 16:49:31.632: W/dalvikvm(2329): VFY: unable to resolve static method 1435: Lcom/sec/android/seccamera/SecCamera;.open ()Lcom/sec/android/seccamera/SecCamera;
06-28 16:49:31.632: D/dalvikvm(2329): VFY: replacing opcode 0x71 at 0x0005
06-28 16:49:31.632: I/dalvikvm(2329): Could not find method com.sec.android.seccamera.SecCamera.setPreviewDisplay, referenced from method com.google.zxing.client.android.camera.CameraManager.openDriver
06-28 16:49:31.632: W/dalvikvm(2329): VFY: unable to resolve virtual method 1439: Lcom/sec/android/seccamera/SecCamera;.setPreviewDisplay (Landroid/view/SurfaceHolder;)V
06-28 16:49:31.632: D/dalvikvm(2329): VFY: replacing opcode 0x6e at 0x0016
So, what am I doing wrong here? Is it possible at all to use private frameworks in my custom app (as opposed to patching existing app)?
referencing libs
Have you included the jar in the libs dir or used the <uses-library> directive? Made any progress? The camera apk manifest includes the following <uses-library> elements:
<uses-library android:name="seccamera" />
<uses-library android:name="sec_feature" />
<uses-library android:name="sechardware" />
<uses-library android:name="secmediarecorder" />
Hey guys,
I have a stock de-odexed 4.1.2 rom from samsung for my SGH-I757M (S2HDLTE). I want to apply some tweaks to the system, such as adding an extended power menu, and additional toggles.
I have made modifications to the framework-res.apk to include two new string resources (Recovery, Download) and two new image resources (for the Recovery and Download entries). I compiled and decompiled that to get the hex values for the new resources and copied the new classes.dex file to my existing framework-res.apk (backed up of course).
I then decompiled android.policy.jar and copied GlobalActions$5.smali (this is the one that takes care of reboot) twice as GlobalActions$98.smali and GlobalActions$99.smali and made the necessary changes changing GlobalActions$5 to GlobalActions$98/GlobalActions$99 where applicable (did not add code to handle recover or download yet as I wanted to test it). I then recompiled that and pulled the new classes.dex into my existing android.policy.jar file.
I pushed both files to my phone, chmodded 644 and rebooted the phone. Success... I now have the extended power menu setup with the 2 new entries while they still perform the same action as GlobalActions$5.smali (reboot), at least I know I'm headed in the right direction.
Now I added the following smali code to my GlobalActions$98.smali and GlobalActions$99.smali in hopes of using the reboot(String reason) method to handle a "Reboot to Recovery" and "Reboot to Download":
Code:
const-string v2, "power"
invoke-virtual {p1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/os/PowerManager;
.local v1, pm:Landroid/os/PowerManager;
const-string v2, "recovery"
invoke-virtual {v1, v2}, Landroid/os/PowerManager;->reboot(Ljava/lang/String;)V
.end local v1
This code was found here:
http://www.thriveforums.org/forum/toshiba-thrive-development/13690-ics-reboot-recovery-shutdown-menu-3.html#post126616
This compiles without issue and the phone boots up without issue, but now when I long press the power button, it vibrates and nothing pops up, then after a couple of seconds, the phone reboots. Looking in my logcat provides me with this error message:
Code:
E/AndroidRuntime( 518): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime( 518): java.lang.VerifyError: com/android/internal/policy/impl/GlobalActions$98
E/AndroidRuntime( 518): at com.android.internal.policy.impl.GlobalActions.createDialog(GlobalActions.java:389)
E/AndroidRuntime( 518): at com.android.internal.policy.impl.GlobalActions.handleShow(GlobalActions.java:184)
E/AndroidRuntime( 518): at com.android.internal.policy.impl.GlobalActions.showDialog(GlobalActions.java:179)
E/AndroidRuntime( 518): at com.android.internal.policy.impl.PhoneWindowManager.showGlobalActionsDialog(PhoneWindowManager.java:1649)
E/AndroidRuntime( 518): at com.android.internal.policy.impl.PhoneWindowManager$6.run(PhoneWindowManager.java:1527)
E/AndroidRuntime( 518): at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime( 518): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 518): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 518): at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:957)
I'm brand new to smali (not to programming though), and have not found much useful information in the way of smali editing and would like some help resolving this java.lang.VerifyError if possible. I've attached GlobalActions.smali, GlobalActions$5.smali, GlobalActions$98.smali, GlobalActions$99.smali as a context for my edits above.
Any ideas what could be causing a java.lang.VerifyError?
[SOLVED] Extended Power Menu MOD Successfully Applied
Hey guys,
So I finally figured out the issue and thought I would post my solution just in case someone else comes by with a similar problem.
The issue was not with my code (which I thought I was misunderstanding), but with the fact that I had no valid reference to Context inside the inner class that I was working with. The following helped me to fix the issue:
1) I added an instance field for mContext to the class I was working with "GlobalActions$98.smali"
Code:
.field private mContext:Landroid/view/ContextThemeWrapper;
2) Then I had to invoke-static on the synthetic class GlobalActions;->$access200 (which returns the mContext from GlobalActions.smali) and store the result in a register for using with the power manager system service:
Code:
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions$98;->this$0:Lcom/android/internal/policy/impl/GlobalActions;
#getter for: Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
invoke-static {v0}, Lcom/android/internal/policy/impl/GlobalActions;->access$200(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;
move-result-object v0
After I did the above, the power manager worked perfectly for rebooting into recovery or download mode... Success tastes sweet
When all is said and done, the onPress method looks like the following:
Code:
.method public onPress()V
.registers 3
.prologue
iget-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions$98;->this$0:Lcom/android/internal/policy/impl/GlobalActions;
#getter for: Lcom/android/internal/policy/impl/GlobalActions;->mContext:Landroid/content/Context;
invoke-static {v0}, Lcom/android/internal/policy/impl/GlobalActions;->access$200(Lcom/android/internal/policy/impl/GlobalActions;)Landroid/content/Context;
move-result-object v0
const-string v1, "power"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/os/PowerManager;
.local v0, pm:Landroid/os/PowerManager;
const-string v1, "recovery"
invoke-virtual {v0, v1}, Landroid/os/PowerManager;->reboot(Ljava/lang/String;)V
return-void
.end method
This has been an excellent voyage of learning smali, and when I thought I misunderstood smali, it turns out that I was missing a concept in java which was passing my context to an inner class.
Hope this helps someone else out!
Introduction:-
Hello Friends!!Here I present to you Another Awesome Port...Z3 SystemUI For Stock JB 4.2.2...Hope you like it...
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 make nandroid backup before flashing it as a precaution!
*Try this MOD at your own risk!
Click to expand...
Click to collapse
Features:-
Added Quick Settings Flash Light Toggle
Drag And Drop To Add Or Remove Quick Settings
Added New Animations
Launch What's New Along With Google Now
Improved SuperStamina With New Widget
Added Two Different Versions Of SystemUI
NOTE- DO NOT USE ANY PART OF MY WORK IN ANY ROM OR ANY MOD WITHOUT MY PERMISSION!! IF YOU WANT TO USE, JUST WRITE ME A P.M...
Bugs:-
Flash Light toggle is not switching Off flashlight.
Download Link And Instructions:-
On next Post..
Credits:-
@serajr for precious help...
@kongaz2 for Original Z3 SystemUI...
DON'T FORGET TO HIT THANKS BUTTON!!
Downloads And Instructions
I have Included Two Different Versions of Z3 SystemUI...Both are Flashable Zips..Download Whichever you want...
Downloads:-
Z3 SystemUI Stock Version
Z3 SystemUI Theme Accent Version
For only those who are getting force close when charger is connected...Download this SystemUI - LINK
Instructions:-
Make Sure You're On Deodexed Stock ROM And Superuser MOD Installed.
Download Z3 SystemUI.
Go into CWM Recovery.
Flash Z3 SystemUI Zip.
Wipe Cache and Dalvik-Cache.
Reboot...Done!!:good:
DON'T FORGET TO HIT THANKS BUTTON!!:good::good:
Screenshots
Screenshots:-
STOCK VERSION-
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
THEME ACCENT VERSION-
DON'T FORGET TO HIT THANKS BUTTON!!:good::good:
Xperia C
Hey bro,,,,can you please port the same z3 system ui for xperia c....
Please bro i need it badly
Samuel Wankhede said:
Hey bro,,,,can you please port the same z3 system ui for xperia c....
Please bro i need it badly
Click to expand...
Click to collapse
Sorry friend..I can't help you..I don't have the device.. And its dual sim phone so it requires lots of changes in SystemUI..
support on xperia m?
Newbie_ID said:
support on xperia m?
Click to expand...
Click to collapse
Try it.. I don't think it'll work coz I specially made it for 4.2.2..But give it a try..
thanks bro,great job.Finally waited.
Superb work dude
Dude, after a few hours of flash it the systemui has stopped, any fix?
SmokinSickStyle said:
Dude, after a few hours of flash it the systemui has stopped, any fix?
Click to expand...
Click to collapse
Please post logcat of the force close..
Same here, system ui has stopped when i connected the charger to the phone
I don't know if this is what you request about the logcat but this is what logcat show me when systemUI Force close
//sorry for my english :silly:
Code:
12-09 21:59:40.744 D/StatusBar.NetworkController(6137): In updateSimIcon simState= READY
12-09 21:59:40.754 D/StatusBar.NetworkController(6137): In updateSimIcon simState= UNKNOWN
12-09 21:59:40.774 D/PhoneStatusBarPolicy(6137): updateSimState for subscription :0
12-09 21:59:43.347 W/InputDispatcher(789): channel '41ca7ca0 StatusBar (server)' ~ Consumer closed input channel or an error occurred. events=0x9
12-09 21:59:43.347 E/InputDispatcher(789): channel '41ca7ca0 StatusBar (server)' ~ Channel is unrecoverably broken and will be disposed!
12-09 21:59:43.357 W/InputDispatcher(789): Attempted to unregister already unregistered input channel '41ca7ca0 StatusBar (server)'
12-09 21:59:43.357 I/WindowState(789): WIN DEATH: Window{41ca7ca0 u0 StatusBar}
12-09 21:59:43.497 D/SystemUIService(6180): loading: class com.android.systemui.statusbar.phone.PhoneStatusBar
12-09 21:59:43.507 D/SystemUIService(6180): running: [email protected]
12-09 21:59:43.527 I/StatusBarManagerService(789): registerStatusBar [email protected]8
12-09 21:59:43.577 D/PhoneStatusBar(6180): mSettingsPanelGravity = 55
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 I/dalvikvm(6180): Could not find method com.android.systemui.statusbar.BaseStatusBar.onHeadsUpDismissed, referenced from method com.android.systemui.statusbar.policy.HeadsUpNotificationView.onChildDismissed
12-09 21:59:43.807 W/dalvikvm(6180): VFY: unable to resolve virtual method 2448: Lcom/android/systemui/statusbar/BaseStatusBar;.onHeadsUpDismissed ()V
12-09 21:59:43.807 I/dalvikvm(6180): Could not find method com.android.systemui.statusbar.BaseStatusBar.resetHeadsUpDecayTimer, referenced from method com.android.systemui.statusbar.policy.HeadsUpNotificationView.onTouchEvent
12-09 21:59:43.807 W/dalvikvm(6180): VFY: unable to resolve virtual method 2454: Lcom/android/systemui/statusbar/BaseStatusBar;.resetHeadsUpDecayTimer ()V
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 I/dalvikvm(6180): DexOpt: unable to optimize instance field ref 0x030b at 0x0c in Lcom/android/systemui/statusbar/policy/HeadsUpNotificationView;.canChildBeExpanded
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 I/dalvikvm(6180): DexOpt: unable to optimize instance field ref 0x030b at 0x2a in Lcom/android/systemui/statusbar/policy/HeadsUpNotificationView;.setNotification
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 I/dalvikvm(6180): DexOpt: unable to optimize instance field ref 0x030b at 0x0c in Lcom/android/systemui/statusbar/policy/HeadsUpNotificationView;.setUserExpandedChild
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 I/dalvikvm(6180): DexOpt: unable to optimize instance field ref 0x030b at 0x0c in Lcom/android/systemui/statusbar/policy/HeadsUpNotificationView;.setUserLockedChild
12-09 21:59:44.067 I/dalvikvm(6180): Could not find method com.android.internal.telephony.ITelephony.setPreferredNetworkType, referenced from method com.sonymobile.systemui.statusbar.tools.LteService.changeTo
12-09 21:59:44.127 D/PhoneStatusBar(6180): disable: < expand icons alerts ticker system_info back home recent clock search >
12-09 21:59:44.127 V/PhoneStatusBar(6180): setLightsOn(true)
12-09 21:59:45.429 D/StatusBar.NetworkController(6180): In updateSimIcon simState= READY
12-09 21:59:45.449 D/StatusBar.NetworkController(6180): In updateSimIcon simState= UNKNOWN
12-09 21:59:45.459 D/PhoneStatusBarPolicy(6180): updateSimState for subscription :0
Dominator_666 said:
Same here, system ui has stopped when i connected the charger to the phone
Click to expand...
Click to collapse
Alright.. I'll upload fixed SystemUI today.. Stay tuned..
josu2016 said:
I don't know if this is what you request about the logcat but this is what logcat show me when systemUI Force close
//sorry for my english :silly:
Code:
12-09 21:59:40.744 D/StatusBar.NetworkController(6137): In updateSimIcon simState= READY
12-09 21:59:40.754 D/StatusBar.NetworkController(6137): In updateSimIcon simState= UNKNOWN
12-09 21:59:40.774 D/PhoneStatusBarPolicy(6137): updateSimState for subscription :0
12-09 21:59:43.347 W/InputDispatcher(789): channel '41ca7ca0 StatusBar (server)' ~ Consumer closed input channel or an error occurred. events=0x9
12-09 21:59:43.347 E/InputDispatcher(789): channel '41ca7ca0 StatusBar (server)' ~ Channel is unrecoverably broken and will be disposed!
12-09 21:59:43.357 W/InputDispatcher(789): Attempted to unregister already unregistered input channel '41ca7ca0 StatusBar (server)'
12-09 21:59:43.357 I/WindowState(789): WIN DEATH: Window{41ca7ca0 u0 StatusBar}
12-09 21:59:43.497 D/SystemUIService(6180): loading: class com.android.systemui.statusbar.phone.PhoneStatusBar
12-09 21:59:43.507 D/SystemUIService(6180): running: com.androi[email protected]
12-09 21:59:43.527 I/StatusBarManagerService(789): registerStatusBar [email protected]8
12-09 21:59:43.577 D/PhoneStatusBar(6180): mSettingsPanelGravity = 55
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 I/dalvikvm(6180): Could not find method com.android.systemui.statusbar.BaseStatusBar.onHeadsUpDismissed, referenced from method com.android.systemui.statusbar.policy.HeadsUpNotificationView.onChildDismissed
12-09 21:59:43.807 W/dalvikvm(6180): VFY: unable to resolve virtual method 2448: Lcom/android/systemui/statusbar/BaseStatusBar;.onHeadsUpDismissed ()V
12-09 21:59:43.807 I/dalvikvm(6180): Could not find method com.android.systemui.statusbar.BaseStatusBar.resetHeadsUpDecayTimer, referenced from method com.android.systemui.statusbar.policy.HeadsUpNotificationView.onTouchEvent
12-09 21:59:43.807 W/dalvikvm(6180): VFY: unable to resolve virtual method 2454: Lcom/android/systemui/statusbar/BaseStatusBar;.resetHeadsUpDecayTimer ()V
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 I/dalvikvm(6180): DexOpt: unable to optimize instance field ref 0x030b at 0x0c in Lcom/android/systemui/statusbar/policy/HeadsUpNotificationView;.canChildBeExpanded
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 I/dalvikvm(6180): DexOpt: unable to optimize instance field ref 0x030b at 0x2a in Lcom/android/systemui/statusbar/policy/HeadsUpNotificationView;.setNotification
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 I/dalvikvm(6180): DexOpt: unable to optimize instance field ref 0x030b at 0x0c in Lcom/android/systemui/statusbar/policy/HeadsUpNotificationView;.setUserExpandedChild
12-09 21:59:43.807 D/dalvikvm(6180): DexOpt: couldn't find field Lcom/android/systemui/statusbar/NotificationData$Entry;.row
12-09 21:59:43.807 I/dalvikvm(6180): DexOpt: unable to optimize instance field ref 0x030b at 0x0c in Lcom/android/systemui/statusbar/policy/HeadsUpNotificationView;.setUserLockedChild
12-09 21:59:44.067 I/dalvikvm(6180): Could not find method com.android.internal.telephony.ITelephony.setPreferredNetworkType, referenced from method com.sonymobile.systemui.statusbar.tools.LteService.changeTo
12-09 21:59:44.127 D/PhoneStatusBar(6180): disable: < expand icons alerts ticker system_info back home recent clock search >
12-09 21:59:44.127 V/PhoneStatusBar(6180): setLightsOn(true)
12-09 21:59:45.429 D/StatusBar.NetworkController(6180): In updateSimIcon simState= READY
12-09 21:59:45.449 D/StatusBar.NetworkController(6180): In updateSimIcon simState= UNKNOWN
12-09 21:59:45.459 D/PhoneStatusBarPolicy(6180): updateSimState for subscription :0
Click to expand...
Click to collapse
Well friend...You took logcat but it is not showing the error.. The error in logcat usually starts with E/FATAL EXCEPTION: or E/FATAL MAIN: ... It's okay by the way.. I'll upload fixed SystemUI today...
Strange,I have no such problems.Perhaps the problem is not in fashion.
FC Fixed SystemUI
For Those Who are getting force close when charger connected to phone...Flash the SystemUI through recovery or extract from zip and manually replace the SystemUI from the Attachment...
Don't forget to hit THANKS button if you liked my work...
Amirxon said:
Strange,I have no such problems.Perhaps the problem is not in fashion.
Click to expand...
Click to collapse
Neither do I...Just few people are reporting this problem...Maybe the problem is in their charger...It might not be original...
Anyways I've uploaded Fixed SystemUI for them but they'll not get the Vibration and Charger Connected tone I've added when the cable is connected...Really Sorry for that Friends...
Okay bro,good luck.
STRYDER~007 said:
For Those Who are getting force close when charger connected to phone...Flash the SystemUI through recovery or extract from zip and manually replace the SystemUI from the Attachment...
Don't forget to hit THANKS button if you liked my work...
Click to expand...
Click to collapse
Thanks now works perfect