yashsingh1/xdaforums huggingface dataset:
[Android General] mrh87:
It's good to hear from you after a long time about this great thread.

And really i am big fan of you's.

Dear could please add some specific things about Higher CPU & GPU to Lower CPU & GPU.

Like: files and smali editing

And thanks from Heart for great thread
[Android General] mrh87:
Hello mate

I just copy the method from stock to port

But after copy i can't recompile the jar file.

Without edit can recompile.

I tried with winmerge and notepad++++ to copy

Compile and recompile with tickle my android

And i add the files also

Could you please check and help me

Files are here
[Android General] prototype74:
Well I'm not sure why recompile fails, maybe missing or not the correct resource available in framework-res.apk.

There is a simple but dirty solution to recompile framework without this error: null writeXml method in NotificationChannel.smali.

Edit whole method to this:

.method public writeXml(Lorg/xmlpull/v1/XmlSerializer;)V
.locals 0

return-void
.end method

in java lang for better understanding:

public void writeXml(XmlSerializer pXmlSerializer)
{

}

You see the method won't do anything anymore, just an unused parameter left (keep it as some other classes might call the method with given parameter).

However this might cause bugs in notification area after your ROM booted successfully.

Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Landroid/app/NotificationChannel;->writeXml(Lorg/xmlpull/v1/XmlSerializer;)V
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:825)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:268)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:246)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:61)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:417)
at brut.androlib.Androlib.buildSources(Androlib.java:348)
at brut.androlib.Androlib.build(Androlib.java:300)
at brut.androlib.Androlib.build(Androlib.java:267)
at brut.apktool.Main.cmdBuild(Main.java:238)
at brut.apktool.Main.main(Main.java:76)
Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x6
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1098)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:821)
... 10 more
Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65540
at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)
at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:348)
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1058)
... 11 more

I leave this log here as maybe someone else have a better idea than mine :o
[Android General] mrh87:
Hi Bro

I solved the above problem

But still rom not boot

Here is Logcat

Logcat Problems
[Android General] cnkzlyr:
Im using Aj A8 2016 port rom for S5 Exynos MM.

How to fix youtube fc in ported roms pkease help me. No any youtube version works all FC. Also with youtube vanced.

I can give log if needed but I think it is a common ported rom problem

[MENTION=5148215]Aj.xda[/MENTION] [MENTION=560039]jonathanm[/MENTION]ohammed [MENTION=4598795]Eleo[/MENTION] [MENTION=1775860]malbert[/MENTION] [MENTION=5405448]thereassaad[/MENTION] [MENTION=4710752]amtra[/MENTION] [MENTION=6377149]yash92duster[/MENTION]

---------- Post added at 08:21 AM ---------- Previous post was at 08:20 AM ----------

Im using Aj A8 2016 port rom for S5 Exynos MM.

How to fix youtube fc in ported roms pkease help me. No any youtube version works all FC. Also with youtube vanced.

I can give log if needed but I think it is a common ported rom problem

[MENTION=5148215]Aj.xda[/MENTION] [MENTION=560039]jonathanm[/MENTION]ohammed [MENTION=4598795]Eleo[/MENTION] [MENTION=1775860]malbert[/MENTION] [MENTION=5405448]thereassaad[/MENTION] [MENTION=4710752]amtra[/MENTION] [MENTION=6377149]yash92duster[/MENTION]
[Android General] Eleo:
If it is a common problem then you would find a fix easily. If not, then provide the logs
[Android General] yash92duster:
Lol

No fix to eol rom.:eek:

Use latest stock and port fresh and enjoy
[Android General] malbert16442:
Did you try fixing web view errors or updating the apk.
[Android General] malbert16442:
Never mind found log please refrain from posting text here upload to pastebin or similar site for fast replies. Or upload file to xda.

Found this interesting

Caused by: java.lang.NumberFormatException: For input string: ""
10-10 16:59:53.541 14914 15209 E Zygote : at java.lang.Integer.parseInt(Integer.java:620)
10-10 16:59:53.541 14914 15209 E Zygote : at java.lang.Integer.parseInt(Integer.java:643)
10-10 16:59:53.541 14914 15209 E Zygote : at android.app.SystemServiceRegistry.<clinit>(Unknown Source:1277)
10-10 16:59:53.541 14914 15209 E Zygote : ... 5 more
[Android General] cnkzlyr:
I will try this. Thanks for replying with a useful answer.

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

Okay I will post thanks
[Android General] ShaDisNX255:
Whoa! I'm so interested in this lol

I have a phone that has the same processor, CPU and GPU as another phone (both Samsung, of course) which one has plenty of TW stock based ROMs and mine doesn't, unfortunately. And you know how Samsung is, they disable premium features from less premium phones :rolleyes:
[Android General] malbert16442:
The process is as simple for some devices as using the other devices files with the kernel then unpacking said kernel and using stock zimage and dbt. However you may need to replace some vendor files for some issues. You might even need to build another zimage based on the port with simple fixes for drivers. Rom could boot with an inactive display lol :laugh . Depends on device will make a partially better solution in spare time.
[Android General] ShaDisNX255:
So, it would be something like using this: https://xdaforums.com/showthread.php?t=2073775 to unpack both kernels, keep both the original boot.img-dtb and boot.img-zImage and copying everything else from the "port" kernel and it should at the very least boot?

I am a noob at kernel modifying so I am trying to understand this at a very basic level :D

I tried (noobishly, I know haha) to boot the ROM and keeping my stock kernel but it didn't even start (I just saw a black screen)

I was kinda expecting it not to boot, but I really imagined that it would at least stay at the boot logo, but nope. Total black screen until forced a reboot and recovered my backup.

Then and there is when I realized I was messing with forces I could not control yet lol
[Android General] malbert16442:
Base will always be the port if they are the same cpu and gpu. Lol as I said its not so simple . This is something I would expand about in the future. As a reference what devices are you comparing.
[Android General] ShaDisNX255:
A J5 Pro and a J6. I did a very superficial comparison with stats I found online, they might not have the same internals as I am thinking in my mind but yeah, that's what I see that they have so much in common :o
[Android General] malbert16442:
GPU and display driver is different however PM me we could work on something
[Android General] ShaDisNX255:
Aaah, so in your experience and opinion would it be easier to port an 8.0 ROM in the J5 Pro or to port S8 or S9 firmware using this original guide? o:
[Android General] malbert16442:
It's easier to port if you have a similar device. You dont have a 8.0 base yet.
[Android General] cnkzlyr:
These are youtube logs with different times. Youtube gives fc when open a video, after start video loading circle turns. No fix when webview updated.

I can use apktool if you instruct me like "the problem is here"

Thanks in advance ? [MENTION=6173089]malbert16442[/MENTION] [MENTION=4598795]Eleo[/MENTION]
[Android General] cnkzlyr:
This one is full log (not filtered for youtube app)
[Android General] lijianjunyonghu:
Abort message: 'CANNOT LINK EXECUTABLE "/system/bin/cameraserver": cannot locate symbol "_ZNK8secdepth18DualCameraInfoData16getSolutionModelEv" referenced by "/system/lib/libseccameracore.so"...'

How to solve such a log
[Android General] malbert16442:
use fileseek to find

_ZNK8secdepth18DualCameraInfoData16getSolutionMod elEv

in port rom libs
[Android General] lijianjunyonghu:
thanks

I will try：d
[Android General] bysalihidriscan:
How to fix Wifi Connect Failed?
[Android General] ShaDisNX255:
I'm getting a few of these errors while trying to boot the port ROM

E AndroidRuntime: android.database.sqlite.SQLiteException: Can't downgrade database from version 128 to 126

This error stops quite a few processes and causes a soft reboot

How would I be able to fix it?

Thanks!
[Android General] malbert16442:
Clear the database files in /data or clean install rom
[Android General] ShaDisNX255:
I've tried both and it doesn't work, unfortunately :/
[Android General] prototype74:
Using libsqlite.so from port might fix it
[Android General] bysalihidriscan:
hi guys

Do you have the idea of ​​what this error is?
[MENTION=4637718]ananjaser1211[/MENTION] [MENTION=6173089]malbert16442[/MENTION]

E Zygote : Waiting Preload Resource
[Android General] ananjaser1211:
Wouldn't focus on this error unless its causing a real problem. try to disable preload in build.prop

Also a verbose / e filter log would be more helpful than an image
[Android General] bysalihidriscan:
Thanks anan I will try :highfive:

What build.prop code?
[Android General] ShaDisNX255:
I've got an interesting bug

Trying to port S9 stock firmware to J6

Booted fine, but there is a weird bug regarding the screen brightness

When I lock the phone and turn it back on, it is turned on lowest brightness

Brightness slider doesn't work

I have to reduce the brightness all the way down and then turn up so the brightness can go up o.O

Anything that has been encountered before?
[Android General] Cyterafle:
Hi,I want to port Note9 to J7 2016 but some smalis like Zygote aren't on stock framework
[Android General] Albe96:
Replace lights folder from stock services.jar to port services.jar .It should fix
[Android General] tokyo25:
I'm getting a few of these errors while trying to boot the port ROM

12-11 17:29:55.100 E/TspStateManagerInternal.TypePolicy( 2836): TspStateManager thresholds format was wrong. threshold =[Ljava.lang.String;@26be626

12-11 17:29:55.101 E/AndroidRuntime( 2836): !@*** FATAL EXCEPTION IN SYSTEM PROCESS: android.ui

12-11 17:29:55.101 E/AndroidRuntime( 2836): java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.ContentResolver android.content.Context.getContentResolver()' on a null object reference

12-11 17:29:55.101 E/AndroidRuntime( 2836):	at com.android.server.policy.TspStateManager.createDebugObjectIfNeeded(TspStateManager.java:130)

12-11 17:29:55.101 E/AndroidRuntime( 2836):	at com.android.server.policy.TspStateManager.init(TspStateManager.java:151)

12-11 17:29:55.101 E/AndroidRuntime( 2836):	at com.android.server.policy.PhoneWindowManager.init(PhoneWindowManager.java)

12-11 17:29:55.101 E/AndroidRuntime( 2836):	at com.android.server.wm.WindowManagerService$4.run(WindowManagerService.java)

12-11 17:29:55.101 E/AndroidRuntime( 2836):	at android.os.Handler$BlockingRunnable.run(Handler.java)

12-11 17:29:55.101 E/AndroidRuntime( 2836):	at android.os.Handler.handleCallback(Handler.java)

12-11 17:29:55.101 E/AndroidRuntime( 2836):	at android.os.Handler.dispatchMessage(Handler.java)

12-11 17:29:55.101 E/AndroidRuntime( 2836):	at android.os.Looper.loop(Looper.java)

12-11 17:29:55.101 E/AndroidRuntime( 2836):	at android.os.HandlerThread.run(HandlerThread.java)

12-11 17:29:55.101 E/AndroidRuntime( 2836):	at com.android.server.ServiceThread.run(ServiceThread.java)

Any idea for that?

Thanks!

Full log: https://drive.google.com/open?id=1mFUYHEqwdotBk1Yno-gmWgm7ok58zIlz
[Android General] mdrobiulhasan:
Hi mate

Give full specification of your devices and firmwares

Then devs can help you to solve the issues.:highfive:
[Android General] tokyo25:
My device : A5 2016

I want port Note Fe 7.0 to my device
[Android General] tokyo25:
Tks for help. I use 7.0 as BASE. :)
[Android General] marvelart:
Can you please tell me how to recover my phone? because I have already soft bricked my phone.
[Android General] DaRdamnDoG:
Hi, I am trying to port a J3 Nougat to J1 Lollipop, can I use the CSC features from J3 as my J1 does not have it. Thanks!
[Android General] Sands207:
what carrier are you using on both phones? rom and port?
[Android General] DaRdamnDoG:
One from US another from Asia (XME).
[Android General] SETSAE:
Is there anyone willing to port LINEAGE-OMS-14.1-20181117-UNOFFICIAL-SMT285-ALPHA to the SM-T280 WiFi model ?
[Android General] Eleo:
This thread is for Samsung ROM (i.e. Touchwiz). Not for AOSP/LOS based ROMs.
[Android General] SETSAE:
Fair enough , I suppose I misunderstood that exact point ? ...

Truthfully I've tried for days & I Just hoped for some help most of all ... I'm getting closer tho !
[Android General] DaRdamnDoG:
Hi fellow experienced devs & TS, I had just read the thread and I would like to ask about the first part regarding the kernel;

which kernel should I use? My device or Ported device?

I actually also had been trying to boot/maintain the Deodexed stock rom of my device, what would be your advise to do so? I've tried multiple methods from moving the deodexed APKs one by one to /system folder; or by just replacing the system/app, system/priv-app & system/framework folders instead rather than the whole OS; or flashing it via .zip format in TWRP recovery (using flashable .zip made from Lordroid's deodexer tool & ASSAYYED's kitchen 1.82 which most of the time gives me Error 6 or 7 be it an error caused by symlinking or metadata.

Hope you or fellow devs don't mind to spare a few minutes to share me some tips on my issues. Thanks.
[Android General] ShaDisNX255:
Stock kernel that can give you logs at boot.

Have you tried TOAD deodexer?
[Android General] DaRdamnDoG:
Hi sorry for the late reply, yes I have tried that actually I was quite active in TOAD's post as there were many issues deodexing my lollipop ROM, however i think there isn't much the Dev can do.

In reply to your answer, if my port ROM is marshmallow and my base is lollipop, so which 1 I should use?

Thanks again.
[Android General] ShaDisNX255:
I think if you're going to port a ROM using this guide, you need both of them to be the same Android version. I have never tried doing it with another android version different than stock
[Android General] DaRdamnDoG:
What if they are the same chipset? For example, J320 & J200G has the same exynos3475 but J3 is MM and J3 is only lolli. From what you said, can you please advice me the most appropriate way to flash/push/install the deodexed ROM into my device? And how should I be dealing with existing ones. Sometimes I get java problem, sometimes I get unable to detect boot.oat, sometimes the radio having problem although I only flash system app/privapp/framework. Lol
[Android General] antes533:
Guys can anyone know how to fix NFC in the ported firmware .... everything works fine except for nfc. I replaced all the libraries, but nothing helps.

01-09 13:55:31.886 3652 8637 D SecNfcJni: RoutingManager::nfaEeCallback: NFA_EE_UPDATED_EVT
01-09 13:55:31.889 3652 3652 D NfcService: MSG_NFC_ENABLE_FINISH
01-09 13:55:31.896 3652 3652 D AndroidRuntime: Shutting down VM
--------- beginning of crash
01-09 13:55:31.897 3652 3652 E AndroidRuntime: FATAL EXCEPTION: main
01-09 13:55:31.897 3652 3652 E AndroidRuntime: Process: com.android.nfc, PID: 3652
01-09 13:55:31.897 3652 3652 E AndroidRuntime: java.lang.SecurityException: getIccSerialNumber: Neither user 1027 nor current process has android.permission.READ_PHONE_STATE.
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1967)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1913)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at com.android.internal.telephony.IPhoneSubInfo$Stub$Proxy.getIccSerialNumberForSubscriber(IPhoneSubInfo.java:959)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at android.telephony.TelephonyManager.getSimSerialNumber(TelephonyManager.java:2600)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at com.android.nfc.NfcService.getPrefixOfIccid(NfcService.java:1309)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at com.android.nfc.NfcService$NfcServiceHandler.handleMessage(NfcService.java:6264)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:105)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:164)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:6944)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
01-09 13:55:31.897 3652 3652 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
01-09 13:55:31.900 2967 3715 V RescueParty: Disabled because of manual property
01-09 13:55:31.901 2967 3715 D Debug : !@DumpState : SHIP
01-09 13:55:31.901 2967 3715 D Debug : !@DumpState : debug level:0x4f4c
01-09 13:55:31.901 2967 3715 D Debug : !@Dumpstate : Finally, system will skip dumpstate
01-09 13:55:31.901 2967 3715 W ActivityManager: crash : com.android.nfc,0
[Android General] ShaDisNX255:
I'm just a noob here, but maybe you should check both port and stock NFC app (I think there is one in system/app... or priv-app I forget lol) and check in their permissions. Most likely one has a permission in the Manifest and the other needs it
[Android General] antes533:
I solved the problem, I had to fix the build host in the build prop:fingers-crossed:
[Android General] duhansysl:
Hello. Im having sms sending error. Still couldnt figure it out. When im trying to send an sms it says its failed to sent but its actually sent. What do i need to do in telephony? Comparing public ID's?

01-03 18:27:04.945 2456 2567 E RILC : invalid response length 12 expected 16

01-03 18:27:04.945 2456 2567 E RILC : responseFunction error, ret -1

01-03 18:27:04.945 8434 9156 D RilRequest: [0312]< SEND_SMS error: com.android.internal.telephony.CommandException: INVALID_RESPONSE ret=
[Android General] paulo boë:
Do you or someone else know how to port only the navbar?
[Android General] prototype74:
I guess you mean J3 is MM and J2 is LL right? You can't use LL as base to port MM to your J200G as libandroid libs and LL ramdisk aren't compatible with MM. You said both devices have same SoC? so get J3 kernel source code from Samsung's open source release center and compile kernel for your J2. Then get full J3 ROM and pack it with your own kernel. Flash it and hope it boots! :fingers-crossed:

But(!) It's not so easy as it sounds like. You might encounter major issues like non-working features e.g. bluetooth, wifi or in worst case LL bootloader can't boot TW MM at all.

Regarding to your deodex issues:

As far as I know ASSAYYED kitchen has a built-in deodexer. use it :)

Please share us more details like what you've ported. Also a full logcat would help more than 3 lines :)

Simply add:

qemu.hw.mainkeys=0

to build.prop if you're on 7.0+

If it didn't worked, enable it in framework-res.apk:

1. Decompile framework-res.apk

2. Locate to framework-res.apk/res/values/bools.xml

Search for config_showNavigationBar and set it's boolean to true:

<bool name="config_showNavigationBar">[COLOR="green"]true[/COLOR]</bool>

(or set false to disable navigation bar)

This might not fully enable navigation bar features e.g. navbar setting. You have to edit settings app and framework to enable or port all navbar features.
[Android General] paulo boë:
I decompiled the apk with apk easy tool. But i cant compile it. Its giving me an error.
[Android General] ShaDisNX255:
I suggest using something other than Apktool X. Since framework-res IS the file where it gets resources to re-compile, where is it going to get it when it can't find sources to re-compile the sources? xD

I dunno if there is a way using Apktool X, I use TMA on a PC
[Android General] duhansysl:
[MENTION=5377656]xXPR0T0TYPEXx[/MENTION] Hello. Firstly thanks for feedback.

Some of guys ported marshmallow from galaxy tab s into note 3 (they both have same soc, exynos5420) and in this rom, all of the ported roms i have this error. When im trying to send an sms, it gives me this error but the message is actually sent. Its just saying that its not sent but its actually sent. (Btw i have experience in roms, so i can do anything you suggest)

Here is the logs. Ril and error filter. Both. But the deal is probably ril logs. I suggest you to check it.

Ril log:

https://quickfileshare.org/U0m/log_ril.log

Error:

https://quickfileshare.org/U0n/log_e.log

By the way, sorry for linking logs. Its due to XDA's limit. Thanks.
[Android General] green emerald:
Hi, is it possible to port tw mm of s5 mini (G800H) for grand prime duos (G530H) ?

p.s the base of grand prime is 5.1.1 stock but is it possible to use los 13 kernel or files?
[Android General] prototype74:
Well just saying "Its giving me an error" won't help much to find your problem. You must have all framework apks installed first before you decompile/recompile any apk or jar.

So deodex isn't the real problem, you can't get your ROM booting to system coz it stuck at splash screen or bootloops at bootanimation, right? You can still make logcats (that's the debug you mean) while booting phone via ADB. If you have problems, enable adb insecure in kernel image (instructions in OP) or do it manually by booting to TWRP > advanced > file manager > data > log and copy/pull prev_dump.log (Android 5.0+ only) to sdcard partition (internal storage). Then you have a log from system. :)

Someone else ported it so why don't you report it to the developer of this ROM? :confused: The ROM dev can help you much more than me here right now.

So it's not lib related then. settings.db seems to be corrupted:

01-16 19:52:54.620 1035 1035 W SQLiteLog: (28) failed to open "/data/user/0/com.android.providers.settings/databases/settings.db" with flag (131138) and mode_t (0) due to error (13)

01-16 19:52:54.620 1035 1035 W SQLiteLog: (28) failed to open "/data/user/0/com.android.providers.settings/databases/settings.db" with flag (131072) and mode_t (0) due to error (13)

01-16 19:52:54.620 1035 1035 E SQLiteLog: (14) cannot open file at line 31588 of [5a3022e081]

Boot to TWRP delete settings.db in /data/user/0/com.android.providers.settings/databases and let Android rebuild it while booting. Caution!: You might lose all settings if you delete this database

As I said some posts before, you can't boot MM using LL base. Please don't try LOS 13 source, it's based on AOSP and not TouchWiz. Read more here
[Android General] duhansysl:
[MENTION=5377656]xXPR0T0TYPEXx[/MENTION] well, all devs discontinued this project a year ago. Thats why im trying to force my android skills to fix this issue. That is why i came here and looked for any help. I have sent the full logs. If you check it, you will see the exact error. Its in logril text file and starts with "SMS SENDING ERROR" or smth like that. Still waiting for any suggestions. Thanks. (My device is Note 3 N900 variant)