yashsingh1/xdaforums huggingface dataset:
[Android General] corsicanu:
First of all add these lines to build.prop

persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb

After that push adbkey into the phone, to allow you to debug.

You will find the key as:

C:/Users/<your user>/.android/adbkey.pub (for windows)

[*]~/.android/adbkey.pub (for linux)

You need to push it into phone as:

/data/misc/adb/adb_keys

There are several ways to do that - adb push from recovery, zip to flash, include the key in rom flashable etc.

[MENTION=6173089]malbert16442[/MENTION] please add this to op to avoid more questions about this. Thank you! :)
[Android General] NetfariousIntent:
Thank you for your help! I'm gotta try it.
[Android General] malbert16442:
You could also dirty flash over a rom with usb debugging enabled. Ill add later
[Android General] RealWelder:
Is there another place that the adbkey can be stored? In /data/misc/adb/ it is blank on my stock ROM, but usb debugging works. I just need to figure out where it is stored so that I can do the same for my port ROM.
[Android General] corsicanu:
It`s the only place where it works. Probably you have insecure adb in the kernel and it works without the key. You can unpack the ramdisk and check for this line in default.prop.

ro.adb.secure=0

In stock ramdisk the value is 1 (secured adb, so it needs key), but can be disabled to debug it anywhere.
[Android General] NetfariousIntent:
I've heard that you actually helped yeah92duster make A5 2017 Grace ux rom port. Did he had any bootloop problems? I have ported 3 roms since now and everyone got with bootloop and nobody wants to help me. -.-
[Android General] Tisenoiazei100:
is "qualcomm to qualcomm" or "qualcomm to exynos" a thing that i should care about :/? I remember porting Galaxy Y(Broadcom) Stock to Galaxy I5500(Qualcomm) and i was able to bypass the splash screen but had bootloop from gpsd. I mean some stuff in framework are chipset related
[Android General] malbert16442:
no I port samsung roms from exynos to snap to MTK J2 prime as long as same base os this guide is failproof
[Android General] NetfariousIntent:
i hope this guide is too for Exynos to Exynos?
[Android General] enesuzun2002:
try to change that methods mentioned in logcat from base
[Android General] leejunsong:
i try all. but sill not work:rolleyes:
[Android General] enesuzun2002:
are you using android servers.so from base or port ?
[Android General] leejunsong:
i use all lib of stock
[Android General] enesuzun2002:
use dex2oat , libc , androdruntime , android servers, art , art-compiler from port try and tell me what happens
[Android General] enesuzun2002:
than use libandroid-runtime from stock and tell me what happens
[Android General] leejunsong:
new error :D maybe fix it :D

08-31 08:55:56.279 6730 6730 E AndroidRuntime: Error reporting crash
08-31 08:55:56.279 6730 6730 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void android.app.IActivityManager.handleApplicationCrash(android.os.IBinder, android.app.ApplicationErrorReport$CrashInfo)' on a null object reference
08-31 08:55:56.279 6730 6730 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java)
08-31 08:55:56.279 6730 6730 E AndroidRuntime:	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java)
08-31 08:55:56.279 6730 6730 E AndroidRuntime:	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java)
[Android General] enesuzun2002:
try to change from stock method must be in framework.jar/smali/com/android/os if changing method doesnt work just remove method
[Android General] Alejndrox097:
This guide only work with same android version?? ¿Not?
[Android General] Pavlex4:
Can someone please help me? I ported note 3 to s3 neo but it stucks at samsung logo!
[Android General] leejunsong:
bro ! i have this problem... i try add this lib from port but not work

]09-01 08:28:25.539 5430 5430 D AndroidRuntime: Shutting down VM
09-01 08:28:25.539 5430 5430 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
09-01 08:28:25.539 5430 5430 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libtlc_tz_dcm.so" not found
09-01 08:28:25.539 5430 5430 E AndroidRuntime:	at java.lang.Runtime.loadLibrary(Runtime.java)
09-01 08:28:25.539 5430 5430 E AndroidRuntime:	at java.lang.System.loadLibrary(System.java)
09-01 08:28:25.539 5430 5430 E AndroidRuntime:	at com.android.server.SystemServer.run(SystemServer.java)
09-01 08:28:25.539 5430 5430 E AndroidRuntime:	at com.android.server.SystemServer.main(SystemServer.java)
09-01 08:28:25.539 5430 5430 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
09-01 08:28:25.539 5430 5430 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
09-01 08:28:25.539 5430 5430 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
[Android General] enesuzun2002:
add libtlc_tz_dcm.so from port or stock rom must fix it
[Android General] Pavlex4:
Can someone please help me? I ported note 3 to s3 neo but it stucks at samsung logo!

Logcat: https://mega.nz/#!B5BBhIIB!Kc_8PR4XqpNR4Lb8RgfUiWc-kePyYKcyAShcL-OE8m8
[Android General] leejunsong:
not work. i try both :D
[Android General] enesuzun2002:
but in logcat it says couldnt find after you add it must work fine btw delete system/framework/arm and arm64 folders and wipe dalvik/cache and try again
[Android General] DaKillaz98:
Can I get some help? I am porting the Galaxy A7 2017 MM Firmware to the Galaxy Note 4 Edge N915T, and in my logcats, android vm shuts down without giving a reason. I have to disable only error filtering to see that the Android VM shuts down for seemingly no reason, then starts up, does this in a loop, can anyone please help?

E: only logcat. https://pastebin.com/7cGmtuqa

Verbose Logcat I couldn't include because the whole loop makes the text file 2 mb, too big for the site or pastebin.
[Android General] Alejndrox097:
Can port to another different android version?? 6.0.1 to 7.0.1????:confused:
[Android General] enesuzun2002:
guys i booted a8 2016 rom on my s6 but none of sensors ,fingerprint notfication led works

tried to change permission files in etc/permissions no luck changed all libs releated to sensor no luck again any help would be awesome

09-04 08:58:57.313 3811 3838 E SensorService: getSensorList a sensor (HRM Ambient Light Canceling) without holding its required permission: com.samsung.permission.HRM_EXT

09-04 08:58:57.313 3811 3838 E SensorService: getSensorList a sensor (HRMLED IR) without holding its required permission: android.permission.BODY_SENSORS

09-04 08:58:57.314 3811 3838 E SensorService: getSensorList a sensor (HRMLED RED) without holding its required permission: android.permission.BODY_SENSORS

09-04 08:58:57.314 3811 3838 E SensorService: getSensorList a sensor (HRM Proximity detecting) without holding its required permission: com.samsung.permission.HRM_EXT

09-04 08:58:57.314 3811 3838 E SensorService: getSensorList a sensor (HeartRate Sensor) without holding its required permission: android.permission.BODY_SENSORS
[Android General] enesuzun2002:
any idea?
[Android General] prototype74:
If all related sensor libs are stock then these issues must coming from the framework. Check ported framework.jar and services.jar compare all related sensor smalis with stock, adapt or replace if required.

May I ask you, did you replaced android_runtime.so or android_servers.so with ported libs? This may (I am not 100% sure) also cause such issues.
[Android General] DaKillaz98:
I will probably be soon making a video based tutorial to outline some of the requirements and help people get a visual hands on demonstration of how porting works, I have found out what went wrong on my error though, I was replacing dex2oat and libart.so when it was better to replace core-libart.jar I want to get my port booted and stable before I work on the videos however.
[Android General] DaKillaz98:
I now have an issue with sqlitedatabase though, this error loops over and over

https://pastebin.com/4JMNgNnW
[Android General] prototype74:
Try to replace libsqlite.so from port. Check epdg_apns_conf.xml file in /system/etc and replace it if necessary. If the issue still remains send us the full logcat
[Android General] DaKillaz98:
Replacing libsqlite.so didn't change much, besides it popping up much earlier in the logcat instead of later, replacing the epdg_apns_conf.xml did the job, I still get some sqlite errors, but they aren't preventing system startup any more. Now I need to edit systemserver.smali to fix the vibration editor.

Here is the full logcat for the rest. https://pastebin.com/f1wa2PBw
[Android General] DaKillaz98:
I seem to be stuck on one final thing. The SurfaceControl class has a method that is missing implementation. If I remove it, it complains about the method missing. If I make the method null, Native Registration will fail to find the class. I don't know how to fix this. https://pastebin.com/JtgkPt7M
[Android General] prototype74:
Send the port and stock smali of SurfaceControl here, I'll look into it. Also send the full logcat, maybe a library or something else cause this.
[Android General] leejunsong:
09-09 14:32:31.279 11491 11491 D AndroidRuntime: Shutting down VM
09-09 14:32:31.279 11491 11491 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
09-09 14:32:31.279 11491 11491 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.server.wm.WindowManagerService.showBootMessage(java.lang.CharSequence, boolean)' on a null object reference
09-09 14:32:31.279 11491 11491 E AndroidRuntime:	at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java)
09-09 14:32:31.279 11491 11491 E AndroidRuntime:	at com.android.server.SystemServer.startOtherServices(SystemServer.java)
09-09 14:32:31.279 11491 11491 E AndroidRuntime:	at com.android.server.SystemServer.run(SystemServer.java)
09-09 14:32:31.279 11491 11491 E AndroidRuntime:	at com.android.server.SystemServer.main(SystemServer.java)
09-09 14:32:31.279 11491 11491 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
09-09 14:32:31.279 11491 11491 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
09-09 14:32:31.279 11491 11491 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)

another error that i can't fix :(

https://drive.google.com/open?id=0BzDUbdvDYCICVG94ZkRDSFBFS1k
[Android General] prototype74:
Send full logcat. It must be something else causing an error.
[Android General] leejunsong:
https://drive.google.com/open?id=0BzDUbdvDYCICVG94ZkRDSFBFS1k my logcat here
[Android General] DaKillaz98:
Here is the link with the base, port smali and the corresponding logcat. Thank you for all the help friend, I really do appreciate it!

https://mega.nz/#F!3NYnTY4L!Z7f3yQypHOwfahrcS3Gtsw
[Android General] prototype74:
Ok I compared both and noticed that I faced this issue once with my ported ROM. It's easy to fix :) You must make a line null in setUserIdToLayer method :

That's the original method :

.method public setUserIdToLayer(I)V
.locals 2
.param p1, "userId" # I

.prologue
.line 921
iget-wide v0, p0, Landroid/view/SurfaceControl;->mNativeObject:J

invoke-static {v0, v1, p1}, Landroid/view/SurfaceControl;->nativeSetUserIdToLayer(JI)V

.line 922
return-void
.end method

You have to null the invoke-static line like this :

.method public setUserIdToLayer(I)V
.locals 2
.param p1, "userId" # I

.prologue
.line 921
iget-wide v0, p0, Landroid/view/SurfaceControl;->mNativeObject:J

[COLOR="Red"]const v0, 0x0[/COLOR]

.line 922
return-void
.end method

Also your base smali hasn't this method at all. No matter try the fix above and report back. :fingers-crossed:
[Android General] DaKillaz98:
Dude, you are the absolute best! I couldn't figure this out! Because of your help, I got an Optimizing Apps screen! Thank you so much!
[Android General] leejunsong:
i tried compare method and delete FEATURE_CONSUMER_IR but nothing change :rolleyes:
[Android General] corsicanu:
Check etc/permissions, you probably added IR permission in there. If so and your device doesn't have IR, delete it.
[Android General] leejunsong:
it work thanks so much :D
[Android General] maxx35000:
[MENTION=6173089]malbert16442[/MENTION]

Thank's again For this guide i Successfully port S8 Rom G950FXXU1AQH3 to J7 2017 ;)

only thing is On nougat this guide for native blur doesn't work anymore

https://xdaforums.com/showpost.php?p=69547250&postcount=10031

have you an idea for it ?
[Android General] maxx35000:
i fix an error like this in my s8 port by adding missing lib

my error

09-02 00:01:56.935 3468 3468 E AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for boolean com.samsung.android.security.CCManager.isMdfEnforced() (tried Java_com_samsung_android_security_CCManager_isMdfEnforced and Java_com_samsung_android_security_CCManager_isMdfEnforced__)

Fixed by add libcc_manager_jni.so

maybe add missing lib in your rom
[Android General] leejunsong:
tks i will try :D
[Android General] leejunsong:
no luck . it not relate lib :rolleyes:
[Android General] prototype74:
Delete sensorhub permission in /system/etc/permission
[Android General] leejunsong:
it work :D tks bro. Rom booted and systemui has stopped

09-10 12:14:23.409 7616 7616 E AndroidRuntime: Process: com.android.systemui, PID: 7616
09-10 12:14:23.409 7616 7616 E AndroidRuntime: android.view.InflateException: Binary XML file line #17: Binary XML file line #6: Error inflating class com.android.systemui.settings.ToggleSlider
09-10 12:14:23.409 7616 7616 E AndroidRuntime:	at android.view.LayoutInflater.inflate(LayoutInflater.java)
09-10 12:14:23.409 7616 7616 E AndroidRuntime:	at android.view.LayoutInflater.inflate(LayoutInflater.java)
09-10 12:14:23.409 7616 7616 E AndroidRuntime:	at android.view.LayoutInflater.inflate(LayoutInflater.java)
09-10 12:14:23.409 7616 7616 E AndroidRuntime:	at android.view.View.inflate(View.java)

https://drive.google.com/open?id=0BzDUbdvDYCICTHZvOUUwWnpwVDQ
[Android General] leejunsong:
i don't think this is bad deodex because it work perfect on my s5 :D
[Android General] corsicanu:
Try to delete SystemUI for now and see any other issues. After you fix them all you can try a full wipe. Also from my experience it's better to port a rom from scratch rather than porting a moded one. In the process of fixing things you can brake mods by mistake and end in loops.
[Android General] Dark_shadow_007:
Bro was ur fingerprint fixed??
[Android General] leejunsong:
add fingerservice from stock.. and replace mcRegistry from stock to port
[Android General] enesuzun2002:
guys any way to fix notification led? i fixed sensor issue
[Android General] Dark_shadow_007:
Add led line in floating feature

---------- Post added at 12:48 PM ---------- Previous post was at 12:48 PM ----------

thnx bro but i fixed forget to update post
[Android General] enesuzun2002:
thanks already find it
[Android General] Dark_shadow_007:
:good::cowboy:
[Android General] enesuzun2002:
btw maybe you know i have video player fcs
[Android General] prototype74:
Send base and port smali of IcccManagerService here, I'll look into it. Check if there is a IcccManager permission in etc/permission.
[Android General] leejunsong:
Uploaded smali :D

no exist icccManager permission, bro!

View attachment Smali.rar
[Android General] prototype74:
I found the issue, I hope. Your base smali hasn't an atimaSetLicenseStatusJNI()I method at all which mean you have to null a certain line in an another method in port smali. In this case it's the getTrustedBootData() method. Search for getTrustedBootData in port smali and do this :

That's the original method from your port smali :

.method public declared-synchronized getTrustedBootData()I
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation

monitor-enter p0

const/4 v0, 0x0

:try_start_2
invoke-static {}, Lcom/android/server/IcccManagerService;->atimaSetLicenseStatusJNI()I
:try_end_5
.catchall {:try_start_2 .. :try_end_5} :catchall_8

move-result v0

monitor-exit p0

return v0

:catchall_8
move-exception v1

monitor-exit p0

throw v1
.end method

You must null the invoke-static line like this :

.method public declared-synchronized getTrustedBootData()I
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation

monitor-enter p0

const/4 v0, 0x0

:try_start_2
[COLOR="Red"]const v0, 0x0[/COLOR] [COLOR="Gray"]//or const/4 v0, 0x0[/COLOR]
:try_end_5
.catchall {:try_start_2 .. :try_end_5} :catchall_8

move-result v0

monitor-exit p0

return v0

:catchall_8
move-exception v1

monitor-exit p0

throw v1
.end method

This should fix your issue. I think there was a similar issue some post before. :)

P.S remove //or const/4 v0, 0x0 if const v0, 0x0 did the job.
[Android General] leejunsong:
tks so much. it work. and i have new error

E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
09-20 14:19:18.309 2961 2961 E AndroidRuntime: java.lang.RuntimeException: Failed to start service com.android.server.UiModeManagerService: onStart threw an exception
09-20 14:19:18.309 2961 2961 E AndroidRuntime:	at com.android.server.SystemServiceManager.startService(SystemServiceManager.java)
09-20 14:19:18.309 2961 2961 E AndroidRuntime:	at com.android.server.SystemServer.startOtherServices(SystemServer.java)
09-20 14:19:18.309 2961 2961 E AndroidRuntime:	at com.android.server.SystemServer.run(SystemServer.java)
09-20 14:19:18.309 2961 2961 E AndroidRuntime:	at com.android.server.SystemServer.main(SystemServer.java)
09-20 14:19:18.309 2961 2961 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
09-20 14:19:18.309 2961 2961 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
09-20 14:19:18.309 2961 2961 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
09-20 14:19:18.309 2961 2961 E AndroidRuntime: Caused by: java.lang.RuntimeException: Unable to get provider com.android.providers.settings.SettingsProvider: android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 1806): Could not open database

https://drive.google.com/open?id=0BzDUbdvDYCICajN3ZWpmNUZzWmc
[Android General] gaganbajwa:
This thread for helping every one so plz plzplz help me

I port s8 rom for j7 pro but logvat problem file stop in 0 kb

Sir. Plzplz plz help me
[Android General] prototype74:
There are 2 ways to get logcats while booting :

1. You can enable adb at boot. If you choose this way, you need an adb unsecure enabled kernel. There is a instruction on OP.

2. Every galaxy device generates dump files while booting which has the logcat included. To access these files you have to navigate to :

/data/log/dumpstate_app_native.txt,

/data/log/dumpstate_booting_delay.txt or

/data/log/prev_dump.log

I think there was also something else
[Android General] leejunsong:
I change build.prop then get this error :crying:

09-21 14:10:11.079 3571 3571 D AndroidRuntime: Shutting down VM
09-21 14:10:11.079 3571 3571 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main
09-21 14:10:11.079 3571 3571 E AndroidRuntime: java.lang.RuntimeException: Product info is invalid.
09-21 14:10:11.079 3571 3571 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.a(ZygoteInit.java)
09-21 14:10:11.079 3571 3571 E AndroidRuntime:	at com.android.server.SystemServer.<init>(SystemServer.java)
09-21 14:10:11.079 3571 3571 E AndroidRuntime:	at com.android.server.SystemServer.main(SystemServer.java)
09-21 14:10:11.079 3571 3571 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
09-21 14:10:11.079 3571 3571 E AndroidRuntime:	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
09-21 14:10:11.079 3571 3571 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
09-21 14:10:11.119 3571 3571 E android.os.Debug: THIS IS SYSTEM_SERVER.. store dumpState!!
09-21 14:10:11.149 3664 3664 I dumpstate: begin
09-21 14:10:11.149 3664 3664 I dumpstate: do_add_date(1),use_outfile(/data/log/dumpstate_sys_error),use_socket(0),do_vibrate(1)
09-21 14:10:11.149 3664 3664 I dumpstate: do_fb(0),do_broadcast(0)
09-21 14:10:11.149 3664 3664 I dumpstate: divided dump process start
09-21 14:10:11.429 3571 3571 E android.os.Debug: !@Dumpstate > sdumpstate -k -t -z -d -o /data/log/dumpstate_sys_error
09-21 14:10:13.619 2216 2451 D VoldCmdListener: asec list
09-21 14:10:13.659 3664 3664 I dumpstate: divided dump process end, cat dump files
09-21 14:10:13.929 3664 3664 I dumpstate: delete divided dump files
09-21 14:10:14.309 3664 3664 I dumpstate: done
09-21 14:10:14.329 3571 3571 E AndroidRuntime: Error reporting crash
09-21 14:10:14.329 3571 3571 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'void android.app.IActivityManager.handleApplicationCrash(android.os.IBinder, android.app.ApplicationErrorReport$CrashInfo)' on a null object reference
09-21 14:10:14.329 3571 3571 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java)
09-21 14:10:14.329 3571 3571 E AndroidRuntime:	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java)
09-21 14:10:14.329 3571 3571 E AndroidRuntime:	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java)

Full log https://drive.google.com/open?id=0BzDUbdvDYCICR2VQTXJXd0Q2RGM
[Android General] prototype74:
Check if there is a ro.build.product=XXXXXXX line in your build.prop file (XXXXXXX = Product Info)
[Android General] leejunsong:
not work bro.. Just one change has occurred .. If i use build.prop of port then rom booted but get no sound
[Android General] prototype74:
Your ROM should boot with base build.prop anyway. Send your port and base build.prop. I'll compare them.
[Android General] leejunsong:
View attachment Build.rar :good::fingers-crossed:
[Android General] prototype74:
I compared both build.prop files and made necessary changes. I made those changes in your base build.prop so that your ROM use the stock properties.

Download it in from attachment and test it
[Android General] Dark_shadow_007:
Check etc;)
[Android General] prototype74:
This line just tell us that your ROM started the SystemUi. That's all. Share the full logcat so we can help you better.
[Android General] gaganbajwa:
Very veey thnx sir sir log file sucess but idk how to fix all e art and e android runtime

---------- Post added at 09:10 AM ---------- Previous post was at 09:08 AM ----------

Plz help me sir how to fix alll e art and e android runtime i send u my log file sir file sir is 20 mb

I semd u plz extract my zip file

Plz help me sir
[Android General] prototype74:
Relax mate, just share your logcat here, we will fix those errors together
[Android General] gaganbajwa:
Vey very thnx sir for fast helping thnx sir
[Android General] gaganbajwa:
Yah i bro my txt file 20 mb file bro plz help me sir
[Android General] gaganbajwa:
Fix this and my rom booted

---------- Post added at 09:57 AM ---------- Previous post was at 09:55 AM ----------

Fix this and my rom booted or not ?????

---------- Post added at 09:58 AM ---------- Previous post was at 09:57 AM ----------

Sir this is my first rom for j730gm s8 plus port
[Android General] prototype74:
If you are lucky, yes. But I am pretty sure you'll get other errors after you fixed this native method.