yashsingh1/xdaforums huggingface dataset:
[XDA-University] Stryke_the_Orc:
I don't know that it necessarily has anything to do with you freeze up issues, that could just be a bad battery or other hardware issue, but this was interesting to see...

09-04 12:14:00.051 E/Xposed ( 6725): java.util.regex.PatternSyntaxException: Missing closing bracket in character class near index 2:
09-04 12:14:00.051 E/Xposed ( 6725): [
09-04 12:14:00.051 E/Xposed ( 6725): ^
09-04 12:14:00.051 E/Xposed ( 6725):	at java.util.regex.Pattern.compileImpl(Native Method)
09-04 12:14:00.051 E/Xposed ( 6725):	at java.util.regex.Pattern.compile(Pattern.java:411)
09-04 12:14:00.051 E/Xposed ( 6725):	at java.util.regex.Pattern.<init>(Pattern.java:394)
09-04 12:14:00.051 E/Xposed ( 6725):	at java.util.regex.Pattern.compile(Pattern.java:381)
09-04 12:14:00.051 E/Xposed ( 6725):	at java.lang.String.split(String.java:1658)
09-04 12:14:00.051 E/Xposed ( 6725):	at java.lang.String.split(String.java:1639)
09-04 12:14:00.051 E/Xposed ( 6725):	at com.thanga.lunarstatus.Main$1.afterHookedMethod(Main.java:26)
09-04 12:14:00.051 E/Xposed ( 6725):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:682)
09-04 12:14:00.051 E/Xposed ( 6725):	at com.android.systemui.statusbar.policy.DateView.updateClock(<Xposed>)
09-04 12:14:00.051 E/Xposed ( 6725):	at com.android.systemui.statusbar.policy.DateView$1.run(DateView.java:55)
09-04 12:14:00.051 E/Xposed ( 6725):	at android.os.Handler.handleCallback(Handler.java:739)
09-04 12:14:00.051 E/Xposed ( 6725):	at android.os.Handler.dispatchMessage(Handler.java:95)
09-04 12:14:00.051 E/Xposed ( 6725):	at android.os.Looper.loop(Looper.java:211)
09-04 12:14:00.051 E/Xposed ( 6725):	at android.app.ActivityThread.main(ActivityThread.java:5321)
09-04 12:14:00.051 E/Xposed ( 6725):	at java.lang.reflect.Method.invoke(Native Method)
09-04 12:14:00.051 E/Xposed ( 6725):	at java.lang.reflect.Method.invoke(Method.java:372)
09-04 12:14:00.051 E/Xposed ( 6725):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016)
09-04 12:14:00.051 E/Xposed ( 6725):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
09-04 12:14:00.051 E/Xposed ( 6725):	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:115)

something in Xposed is malformed, if you have a module that monitors your power try removing it and see if the issue persists. Otherwise, I see nothing in your logs indicative of what you're experiencing.

also I would remove the logs from public view, you have all of your wifi information stored in there, access points, passwords and BSSID information...
[XDA-University] tapo85:
Thanks [MENTION=3053298]Stryke_the_Orc[/MENTION] very much.
[XDA-University] Paradoxumical:
Flashed a new kernel, everything booted fine. Realized I had lost deepsleep, so I went to recovery to wipe my dalvik and cache.

Bootloop.

Flashing back the old kernel does nothing, reflashing the ROM also does nada. I think it's xposed, but I'm not certain.

I'll appreciate any answer.

http://pastebin.com/wwpzLmHk

Edit: This is after flashing the ROM, kernel, SuperSU, etc - http://pastebin.com/S1MqstGx
[XDA-University] Stryke_the_Orc:
Looks that way, have you tried removing Xposed? I don't know if [MENTION=4898097]arter97[/MENTION] has an uninstall flashable zip or not, but I know one is/was offered with the official Xposed installer packages. If all else fails, do an advanced wipe, wipe system and both caches then try again.
[XDA-University] Paradoxumical:
Yes, I modified the official uninstall zip to remove the version that comes with [MENTION=4898097]arter97[/MENTION]'s ROM. I did try doing that (system wipe), and I still bootlooped. The culprit was something related to xposed in the data partion. Had to format, and reinstall from a nandroid. However, thank you. It's been a learning experience.
[XDA-University] Stryke_the_Orc:
For both of us, I was unaware that it persisted in the data folder, I was under the impression that xposed lived in system...
[XDA-University] Paradoxumical:
That's exactly what I thought... But, restoring System gave no problems. I restored Data and I was stuck in the loop all over again.
[XDA-University] r1akn:
I managed to create the log fie in my PC.

The problem is my phone turns off by itself sometimes.

How to get the logcat containing this info?

Should I just turn it on again (after the SOD) and create the file with "adb logcat > SODdebug.txt"

Edit:

Found this solution:

http://simonguest.com/2013/07/03/persistent-logging-in-android/

Is it good?

The method there is making the phone constantly creating log files.
[XDA-University] tdunham:
Maybe that would work but you cant just turn it on afterwards, it has to be running while the problem is occurring so it can capture a possible error/problem state.

I know touchwiz already keeps an ongoing error log:

dumpstate_app_error.txt.gz in data/log
[XDA-University] r1akn:
yea the logs stop to be written when I unplug the phone from the PC.

I have Nexus 5 rooted stock 5.1.1

I need a good method to catch the logs.

Am I missing something why is it so hard to achieve?

edit:

I think i found a simple solution.

I downloaded CatLog and it is recording the log so I can examine it after the SOD.

could it capture the error that makes the phone to turn off?
[XDA-University] Stryke_the_Orc:
Possibly, but it's more likely that the logs will stop prior to the device turning off. Run a log and when your device turns off send the log to a text file.

This would only work via a PC though, CatLog and any other app will not be able to save the logs if the device shuts down unexpectedly.
[XDA-University] r1akn:
The problem it's very rare. sometimes it takes several days and keeping it plugged in is not an option.
[XDA-University] Shujath:
Great, Thanks for sharing the info :)
[XDA-University] mystreetspirit:
Hi,

I have a new Samsung Galaxy S6 and I'm having random freeze and reboots.

I have several log cat of the problem. Before sending it to samsung assistance I would try to understand the problem.

I've already tried with: factory reset, another sim, without sim, only wifi connection. The problem has always occured again.

Can someone help me? What specific information you need? the entire log file in pastebin format?
[XDA-University] mystreetspirit:
.

Ok I uploaded two log on pastebin. In both the last seconds before the freeze + reboot are present:

http://pastebin.com/E0VqnyU7

http://pastebin.com/KR7mjMBn

Please, try to help me, I'm going crazy.
[XDA-University] rav3n21:
Great work man..thanks for posting helped me a lot..

Inviato dal mio LG-D855 utilizzando Tapatalk
[XDA-University] smartAgent47:
stuck on google logo

Hello i have a nexus 5 ..

I am stuck on google logo with a rom ... I did a clean flash yet i got stuck ... The rom is based on Marshmallow .. i want to know how to take logs when stuck on google logo ?

Please help ... m helpless pls help me ..

Thanks You
[XDA-University] Stryke_the_Orc:
http://xdaforums.com/showpost.php?p=47172724&postcount=3
[XDA-University] XDA-00:
Logcatting in bootloop

In post 3

Hello Stryke_the_Orc , please help me , I a unable to take logcat when in bootloop. I ran monitor.bat as admin but still shows that device is offline. In console it shows that device is unauthorised. I am using LG optimus L7II P715. I installed lg drivers and adb package. Tried ADB devices but showing "offline"

Unable to take logcat please help:crying:

UPDATE:- Logcatting in bootloop is working. You first have to authorize your device to pc by -

1. Start adb service. Type adb devices in cmd.

2. Connect Phone(with usb debugging enabed) to pc. A box will appear on your Phone. just click OK(see attached images)

3. Now reboot your Phone in recovery and then flash your bootlooping rom without wiping anything.

4. Now your Phone is stuck in bootloop but can access recovery (by combo. of keys)

5. Start ADB Monitor tool, go to your sdk folder-->tools-->right click on monitor.bat and run as administrator.

6. Your device will show on left side and on bottom you will see logcat.

7. Voila! Logcat is working in bootloop.
[XDA-University] tdunham:
Don't know if this applies but on some android versions you have to authorize adb access first or it will not connect. This has to be done while it is up and running. Then it will connect while testing during a boot loop.
[XDA-University] XDA-00:
Authorize in bootloop

Thanks
[XDA-University] tdunham:
You have to do it with a working operating system so it has to be working first to authorize.
[XDA-University] XDA-00:
Stuck in bootloop with ported rom. Here is the logcat. Please help:crying:

Logcat - verbose :--- http://pastebin.com/BxCS9R0s

Logcat - error :--- http://pastebin.com/ivDBLzMs

Logcat - fatal error :--- http://pastebin.com/Tvw70Gpb
[XDA-University] Tanuj97:
hello..i have recently ported a rom ...but its stuck in bootloop ..

the adb is configured ...I have checked adb in recovery mode too ..when I reboot in recovery and type adb devices the output shows my device serial number and beside it shows recovery ..this means the device is connected ..so when I reboot and boot into my rom ..and type adb logact ..it shows waiting for device ..and my device doesn't show up at all

how can I fix this
[XDA-University] TheRoyalSeeker:
Can any body help me with the issue of FC of my motoCamera?

Please.....

12-02 23:38:24.637 I/Timeline(1033): Timeline: Activity_launch_request id:com.motorola.camera time:4988111
12-02 23:38:24.640 I/ActivityManager(549): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.motorola.camera/.Camera} from uid 10078 on display 0
12-02 23:38:24.650 V/WindowManager(549): addAppToken: AppWindowToken{3c0244fd token=Token{f861d54 ActivityRecord{30154a7 u0 com.motorola.camera/.Camera t199}}} to stack=1 task=199 at 0
12-02 23:38:24.667 V/WindowManager(549): Adding window Window{24ea16b5 u0 Starting com.motorola.camera} at 4 of 11 (after Window{2fa5e7bf u0 com.nolanlawson.logcat/com.nolanlawson.logcat.LogcatActivity})
12-02 23:38:24.700 D/b (1033): Bundle[{source=AllApps, type=launched_activity, serial_number=0, component_name=com.motorola.camera/com.motorola.camera.Camera}]
12-02 23:38:24.826 I/ActivityManager(549): Start proc 26120:com.motorola.camera/u0a134 for activity com.motorola.camera/.Camera
12-02 23:38:24.949 W/ResourcesManager(26120): Asset path '/system/framework/com.motorola.motosignature.jar' does not exist or contains no resources.
12-02 23:38:25.678 V/WindowManager(549): Adding window Window{25763287 u0 com.motorola.camera/com.motorola.camera.Camera} at 4 of 12 (before Window{24ea16b5 u0 Starting com.motorola.camera})
12-02 23:38:25.796 V/WindowManager(549): Adding window Window{e4622d9 u0 SurfaceView} at 4 of 13 (before Window{25763287 u0 com.motorola.camera/com.motorola.camera.Camera})
12-02 23:38:25.912 I/ActivityManager(549): Displayed com.motorola.camera/.Camera: +1s142ms
12-02 23:38:25.912 I/Timeline(549): Timeline: Activity_windows_visible id: ActivityRecord{30154a7 u0 com.motorola.camera/.Camera t199} time:4989386
12-02 23:38:26.237 E/AndroidRuntime(26120): Process: com.motorola.camera, PID: 26120
12-02 23:38:26.237 E/AndroidRuntime(26120):	at com.motorola.camera.PreviewSize.<init>(PreviewSize.java:45)
12-02 23:38:26.237 E/AndroidRuntime(26120):	at com.motorola.camera.PreviewSize.<init>(PreviewSize.java:55)
12-02 23:38:26.237 E/AndroidRuntime(26120):	at com.motorola.camera.settings.VideoSizeSetting$1.performRead(VideoSizeSetting.java:39)
12-02 23:38:26.237 E/AndroidRuntime(26120):	at com.motorola.camera.settings.behavior.CameraParamBehavior.performCameraRead(CameraParamBehavior.java:25)
12-02 23:38:26.237 E/AndroidRuntime(26120):	at com.motorola.camera.settings.AppSettings.readParametersIntoSettings(AppSettings.java:417)
12-02 23:38:26.237 E/AndroidRuntime(26120):	at com.motorola.camera.device.callables.ReadParamsCallable.call(ReadParamsCallable.java:41)
12-02 23:38:26.237 E/AndroidRuntime(26120):	at com.motorola.camera.device.callables.CameraCallable.run(CameraCallable.java:47)
12-02 23:38:26.237 E/AndroidRuntime(26120):	at com.motorola.camera.device.CameraService$2.handleMessage(CameraService.java:108)
12-02 23:38:26.239 W/ActivityManager(549): Force finishing activity 1 com.motorola.camera/.Camera
12-02 23:38:27.887 I/ActivityManager(549): Process com.motorola.camera (pid 26120) has died
[XDA-University] tdunham:
com.motorola.motosignature.jar is missing? That's all I see.
[XDA-University] abo hani:
Hello, I'm Modding Xperia Keyboard, and Here's the story :

Keyboard background is set as a color, ok ?

And it's located in smali file " KeyboardView.smali ", And it's linked via ID not as smali color code, So i changed that color id to image id ( i want to change it from color to drawable ) .

Compiled, Signed, and got Force Close, the problem was that in smali there were 2 lines :

color_id

smali line ->getColor

So i've changed to drawable => i need to change "getColor" to something related to drawable, but i didn't know the right line.

Here's the logcat :

E/AndroidRuntime(17337): Process: com.sonyericsson.textinput.uxp, PID: 17337
E/AndroidRuntime(17337): java.lang.VerifyError: Rejecting class com.sonyericsson.textinput.uxp.view.keyboard.KeyboardSlider because it failed compile-time verification (declaration of 'com.sonyericsson.textinput.uxp.view.keyboard.KeyboardSlider' appears in /data/app/com.sonyericsson.textinput.uxp-2/base.apk)

Here's the original lines :

const v1, 0x7f04563d
invoke-interface {p1, v1}, Lcom/sonyericsson/textinput/uxp/controller/skin/ISkin;->getColor(I)I

Here's the modded lines :

const v1, 0x7f0200ad
invoke-virtual {v4, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
[XDA-University] XDA-00:
I ported LiquidSmooth but stuck at bootanimation:(

Here is the logcat:-

11-15 16:21:54.669: E/dalvikvm(23818): ERROR: couldn't find native method

11-15 16:21:54.669: E/dalvikvm(23818): Requested: Landroid/content/res/AssetManager;.setConfiguration:(IILjava/lang/String;IIIIIIIIIIIIII)V

11-15 16:21:54.679: E/dalvikvm(23818): Candidate: Landroid/content/res/AssetManager;.setConfiguration:(IILjava/lang/String;IIIIIIIIIIIIIII)V

11-15 16:21:54.679: E/dalvikvm(23818): JNI posting fatal error: RegisterNatives failed for 'android/content/res/AssetManager'; aborting...

11-15 16:21:54.689: E/dalvikvm(23818): VM aborting

11-15 16:21:54.689: A/libc(23818): Fatal signal 6 (SIGABRT) at 0x00005d0a (code=-6), thread 23818 (zygote)

11-15 16:21:55.919: E/MediaPlayerFactory(23885): calling dlopen on FACTORY_LIB

11-15 16:21:55.929: E/MediaPlayerFactory(23885): calling dlsym on pFactoryLib for FACTORY_CREATE_FN

11-15 16:21:55.929: E/MediaPlayerFactory(23885): registering DASH Player factory...

11-15 16:21:55.939: E/(23885): Qint android::get_number_of_cameras(): E

11-15 16:21:55.939: E/(23885): libaudcal: acph_init() - Allocated memory for acph_main_buffer!!

11-15 16:21:55.959: E/AudioHardwareMSM76XXA(23885): AudioStreamOutMSM72xx: Setting up correct values

11-15 16:21:55.969: E/AudioFlinger(23885): no wake lock to update!

11-15 16:21:57.789: E/audit_log(23892): Could not stat audit logfile /data/misc/audit/audit.log: Permission denied

11-15 16:21:57.789: E/auditd(23892): Failed on audit_log_open

Please help me devs.
[XDA-University] Stryke_the_Orc:
I believe this is the line that you should look at :

1-15 16:21:54.679: E/dalvikvm(23818): Candidate: Landroid/content/res/AssetManager;.setConfiguration:(IILjava/lang/String;IIIIIIIIIIIIIII)V

what's being returned isn't expected so it fails to continue.
[XDA-University] sharath.s.m:
Is it possible to take log during flashing without a pc...if so how...

Thks
[XDA-University] psycholyzern:
Hi. I got app crashing from gane Order and Chaos Online (com.gameloft.android.ANMP.GloftMMHM)

Could someone take a look at my log to see if I can fix it somehow. Because the crash did not happen to other user.

http://pastebin.com/HTiQqzKS
[XDA-University] Stryke_the_Orc:
Unfortunately, no, not that I'm aware of.
[XDA-University] and2:
Hi friends, i need some help.

I try to use (port) a SecMMS from a note 5 on my note edge so i can use the missed Messages on the peoplestripe. I get an error and don't know what to do. The logcat is attached.

Thank you fellows.
[XDA-University] tdunham:
Did you remove the prior mms app because its looking for "/system/priv-app/SecMms_Candy/SecMms_Candy.apk" and I think that's a different version than the one you're trying to install isn't it?

Our version on the Note 5 variant is called SecMms_Delight_Note_Usa.apk.

---------- Post added at 01:26 AM ---------- Previous post was at 01:25 AM ----------

And you might want to wipe cache & dalvik-cache when removing prior app to get rid of the old classes.dex that gets stored there too.
[XDA-University] and2:
Thank you Troy. Of course i deleted the original mms app :D . The apk i try to use is called "SecMms_Delight_Note_Open", i just tried to rename it to the original name of the Note Edge mms app - but it's the same error. I also did wipe the cache & dalvik-cache, but no difference. So i don't know how to go further, the tells me nothing, no missing resource or lib. I searched the whole web but couldn't find anything.

Anyway thank you for the year with alot of fun and a happy new year to you and all over here.
[XDA-University] tdunham:
Porting stuff is such a pain, I avoid if where possible.

Renaming the apk shouldn't matter, I do it all the time.

But isn't secmms_candy a 5.0 android app? Its possible you cannot port apk's arcross api levels since your framework doesn't support it if that is the case.

Maybe [MENTION=3053298]Stryke_the_Orc[/MENTION] can take a look at the log too but its looking like it's possibly not writing the classes to dalvik cache in data.

I see xposed in your log also. Specifically, it is referenced right within the fatal error section of mms. I wonder if it is conflicting somehow.

Maybe try adding the mms apk to a stock deodexed rom and see if the result is the same after a fresh flash to remove any other modifications from the equation. That would be just take an hour to test something like that I think too. ;)
[XDA-University] and2:
Yeah, it's a pain. Secmms_candy is the messages app from the 5.1.1 Note Edge. The 5.1.1 of the Note Edge is a bit differend than S6/ Note 5. May be i'll try your last sugestion or [MENTION=3053298]Stryke_the_Orc[/MENTION] will find something in the log. If not i use the peoplestripe just with the missed calls. Thx
[XDA-University] HKZ2627:
i cannot find the option platform tool and nothing happens when i press shift and right click i am trying to get a adb logcat of bootloop which im experiencing as a result of flashing xposed in cm 13 rom for g9011f
[XDA-University] Stryke_the_Orc:
I'd say you're getting this error because there's no secure storage on your device. This is stock?
[XDA-University] Stryke_the_Orc:
Platform tools isn't in the IDE, it's a folder within the Android SDK directory.
[XDA-University] and2:
Thank you for have a look mate. The renaming doesn't made any difference, it's the same error. In the manifest i just changed one thing

original

<application android:allowTaskReparenting="true" android:icon="@mipmap/ic_launcher_smsmms" android:label="@string/app_label" android:largeHeap="true" android:name="[COLOR="Blue"]com.android.mms.MmsApp[/COLOR]" android:supportsRtl="true" android:taskAffinity="android.task.mms" android:theme="@style/Theme.DeviceDefault">

to

<application android:allowTaskReparenting="true" android:icon="@mipmap/ic_launcher_smsmms" android:label="@string/app_label" android:largeHeap="true" android:name="[COLOR="blue"]MmsApp[/COLOR]" android:supportsRtl="true" android:taskAffinity="android.task.mms" android:theme="@style/Theme.DeviceDefault">

like in the manifest of the Note Edge MMS. But it is also the same error.

May be a dumb question but what should i change in the manifest?
[XDA-University] Amit.A:
yes but in build prop its true
[XDA-University] Stryke_the_Orc:
Hmm, that's odd. I'll take a look and see what I can come up with.

That may be so, but if the method itself doesn't exist, your phone won't have it ;)
[XDA-University] tdunham:
You cannot remove the entire classpath like this.

It still needs to remain in the form com.android.xxx or java will throw an invalid/unknown classpath error like its doing now.

If you didn't know already, you also need to re-sign the entire apk when modifying android.manifest and then also have signature verification disabled in framework or the system will ignore the apk.
[XDA-University] Stryke_the_Orc:
Good point, I made the assumption this was done. Thanks for pointing that out :cowboy:
[XDA-University] and2:
Good point but of course the apk is re-signed and the signature verification is disabled and there is no difference with or without com.android.xxx.

Gesendet von meinem SM-N915FY mit Tapatalk
[XDA-University] Carlyle_f:
can i get some help with this logcat please

http://www.hastebin.com/iqumeguzof.vhdl

information:

compiled from source

device: jagnm (LG G3 BEAT)

compiled without jack

the files mentioned in "F DEBUG" are NOT missing

thanks in advance
[XDA-University] judas1977:
Hello, I'm trying to compile RR 6, using 'clean cm device tree', no changes on my side.

However this has to be on my side, but what/where??

I have that errors:

frameworks/base/packages/SystemUI/res/values/styles.xml:303: error: Error retrieving parent for item: No resource found that matches the given name 'card'.

frameworks/base/packages/SystemUI/res/values/styles.xml:321: error: Error retrieving parent for item: No resource found that matches the given name 'card'.

frameworks/base/packages/SystemUI/res/values/styles.xml:330: error: Error retrieving parent for item: No resource found that matches the given name 'card'.

frameworks/base/packages/SystemUI/res/values/styles.xml:337: error: Error retrieving parent for item: No resource found that matches the given name 'card'.

frameworks/base/packages/SystemUI/res/values/styles.xml:353: error: Error retrieving parent for item: No resource found that matches the given name 'card'.

make: * [/home/judas77/android/remix/out/target/common/obj/APPS/SystemUITests_intermediates/src/R.stamp] Błąd 1

make: * Oczekiwanie na niezakończone zadania....

﻿
[XDA-University] Gayos24:
hello

My phone is offline, it's normal ? Note: my phone is not bootlooping, he is connected to my pc with a ROM perfectly working
[XDA-University] rocky78:
hello guys need some help

really need some help.

i attached my logcat, the thing is that all of a sudden i'm losing my

signal data ( websurfing, sms, etc).

couple of minutes after i took a logcat and tried fo figure it out

but don't have the skills for that.

mybe one of you can help me to figure this, why is this happening?
[XDA-University] xcongc:
Help

Hi All. I am trying to port MIUIv7 to CM 11 of my LG F160 device. Now got stuck at bootanimation screen.

This is the first time i port a rom. Total newbie. I got the logcat by logcat-color but dn't know how to fix the errors. I have to fix the Errors with [E] or [D] first and how to fix ?? How to know which error make the phone stuck at bootanimation??

Here my logcat.

http://pastebin.com/jUiDxXQ7
[XDA-University] Stryke_the_Orc:
You need to make sure that usb debugging is enabled on your device and that you allow your PC to connect.

Please upload the log to pastebin

It looks like the system path cannot be found in your ported ROM
[XDA-University] tdunham:
From what I understand, there are far too many framework supporting smali changes in 5.1.x that will prevent a successful port to 5.0.x.
[XDA-University] Stryke_the_Orc:
E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setBounds(andro id.graphics.Rect)' on a null object reference

The referenced object doesn't exist.
[XDA-University] sh A ne:
OK if I create the object then will it work?
[XDA-University] Stryke_the_Orc:
Maybe, the error is that it' missing the entire method, so likely you'd need to either port it from a working device, or if this is a port, find the path's that it requires and edit the existing method.

Edit - I'd recommend skimming this, it'll give you some basics on smali