yashsingh1/xdaforums huggingface dataset:
[Android General] :
There are many many errors and i dont know which one is the right one.. Ive placed a logcat to look it up.
[Android General] :
hey guys, somehow the rom booted XD but now i have various fc's, one very bad is SecVideoEngineService. it doesnt let me touch anything :D solution?

edit: after reboot (to copy my adb key) it didnt boot again
[Android General] Tisenoiazei100:
You booted the rom? without capturing logcat XD. Next time you'll need to capture logcat. There are some libs needed to be replaced. Most difficult is when the method that's needed is inside libandroid_runtime or libhardware_legacy.so. A solution is to make a clean base rom without removing your previous rom. Take a copy of your previous rom kernel so youll not need to decompile again. Add app/framework/priv-app and whatever needed but this time in lib folder replace libandroid and it's extensions with port ones and then try to flash and boot it up. If it's booting take a logcat as its gonna crash due to some useless reasons and report it there.

EDIT: When I mean booting I mean on bootanimation.

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
meh, after one restart the rom didnt boot again :D
[Android General] Tisenoiazei100:
Ok try the instructions I wrote above if you want ;)

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] :
ok, rom gets more and more stable, im fixing some fcs. this makes me happy :D
[Android General] :
well guys, this rom was booting a few times, now it constantly reboots again. ive tried a thousand ways to fix it, no luck.
[Android General] akshi2000:
Can anyone help me here is my logcat..:confused::confused:

The rom is at samsung boot animation
[Android General] :
could be something from boot.img but not too sure. are you trying to boot an ux rom? because boot.img needs edits for that
[Android General] akshi2000:
No i am trying to port s6 edge exynos rom on my J7 2016.
[Android General] Tisenoiazei100:
Is J7 2016 a Exynos chip phone?? (if not prepare to fight hard ;) ). Error seems to come from libc.so inside lib folder. replace with S6 Edge one and test again. (Maybe later you'll need to replace libandroid and it's extensions like {libandroid-runtime.so} :eek: ). Good luck!

Στάλθηκε από το SM-G800H μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
Thanks bro trying to fix and logging again.:)

Edit- J7 2016 is exynos
[Android General] :
beatiful. thanks for all the help tisenoiazei, i will add u in credits if i post the roma

also huge thanks to this guide, the screenshot proves that its 100% working and i ported from exynos to snapdragon. wish u luck everyone
[Android General] Tisenoiazei100:
Congrats bro ? i also finished my port sucessfully even though im using google camera apk instead of samsung one :b.

Στάλθηκε από το SM-G600FY μου χρησιμοποιώντας Tapatalk
[Android General] :
hmm but, looking more deep into bugs, incall ui is not showing. what could it be ? log says

W ActivityManager: Unable to start service Intent { act=com.samsung.incallui.SEC_IN_CALL_SERVICE cmp=com.android.incallui/.secservice.SecInCallService VirtualScreenParam=Params{mDisplayId=-1, null, mFlags=0x00000000)} } U=0: not found

edit: fixed, just copied floating feature from a3 rom
[Android General] :
k, another problem :D i have tried several ux cameras, but there are no modes and filters. why?

and another, nfc is not appearing. i replaced nfc apks and edited the smali, still nothing.
[Android General] Tisenoiazei100:
Inside your etc folder there might be some nfc related xml's or other stuff. Replace them and check again then maybe youll need to add your device nfc key next ;). As for the camera open your lib folder and you might find libarcsoft stuff inside. Do a backup of your lib folder, delete stock libarcsoft libs and replace them with new ones and test again ;). If you get bootloops replace your modified lib folder with the backuped one.

Στάλθηκε από το SM-G600FY μου χρησιμοποιώντας Tapatalk
[Android General] :
now, modes got fixed but theres still no filters.
[Android General] Tisenoiazei100:
Download a Grace UX camera port zip and find inside the zip what libs and other stuff you need to replace. If you do that just do not replace anything from the zip. Replace files from your a3 2016 firmware and if the zip has something that your a3 2016 firmware doesn't have. Don't worry continue replacing like normal.

Also have you replaced your camera data folder??? If not replace and test again there might be two psd files inside stock and port keep your stock 2 files inside and replace whatever else
[Android General] :
yes man i have replaced everything, theres a n7 camera specifically for our j5 i copied everything.. im gonna look it up again though.
[Android General] malbert16442:
Guide update coming soon might add how to fix Samsung cameras if I get time
[Android General] malbert16442:
Happy that I am helping development for all devices and everyone is having success
[Android General] Tisenoiazei100:
Remember that there are a lot of things need replacement like libswiftkey,arcsoft libs and also stuff in etc folder and also in media folder if your have the same resolution with your port device you can replace the whole thing and get the new boot animation and charging screen. These changes might not be useful new devices but on devices like "Galaxy S5 Mini" they are needed so much. Finally build.prop edits, if you don't modify build.prop correctly on Galaxy S5 Mini an example your ROM will get mixed with old ancient TW remnants that tinker the framework causing unresponses and crashes ;)
[Android General] malbert16442:
Yah I need to get more in depth. I'm also trying with the visuals as people learn more as they see. If you want to do a video I'll be happy to put in op. But your right lot is not covered
[Android General] grumpycoder100:
Uhm sorry noob question but, does this tutorial apply omly if we are porting a firmware to our device or can we use this to port other TouchWiz ROMs to our device?

---------- Post added at 11:30 PM ---------- Previous post was at 11:30 PM ----------

I would honestly appreciate the video.
[Android General] :
Hm my rom is pretty successful for now, only aod must be fixed. One problem again- Sometime when i press the power button theres a 5 second delay until it turns on. Also one friend told me that alarm is laggy
[Android General] akshi2000:
Here is my filtered logcat. Help me. Thanks in Advance...
[Android General] corsicanu:
E art : Failed to register native method android.content.res.AssetManager.setConfiguration_(IILjava/lang/String;IIIIIIIIIIIIII)V in /system/framework/framework.jar

Fix this. Also read again first post. Cheers!
[Android General] Tisenoiazei100:
I don't think he needs to replace the smali in framework. He can use fileseek to check what libs has "setConfiguration" so he can replace them :/. Mostly "libandroid-runtime.so" which is a pain in the butt.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] corsicanu:
It's "failed to register" not "no implementation found". Because AssetManager.smali has more than needed.
[Android General] Tisenoiazei100:
Ah

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
Bro i fixed it Assetmanager.smali and logged again. Now i am getting these errors
[Android General] corsicanu:
Do you understand anything from that log? Yeah i'm rude but how can you expect you would port that rom if you ask here for each error you have? Add fonts folder from your port. This is the last time i'll help. Please learn to read logs and to understand them..
[Android General] Tisenoiazei100:
Do the same thing as you did with asset manager.smali. Find Timaservice.smali, replace with stock one, done and test again. Do the same thing always when you see these types of error. [MENTION=4658360]corsicanu[/MENTION] is right too, understand the logs a little better and then report ;)

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
Sorry bro but I have already added fonts from port and there is no lib named libemoji.so and libdatactrl. I understand logcat.
[Android General] Tisenoiazei100:
Nah fonts are not a big deal. It just misses some fonts which his stock J7 6.0.1 has but s6 edge doesn't.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
Thanks bro i have already copied fonts from port after the error. But error is happening again.

I will fix Timaservice.smali
[Android General] Tisenoiazei100:
libemoji.so is not a problem. Just Samsung has f#@"&€ up android so much that they even added an independent emoji engine :b. The same thing goes with libdatactrl

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
But bro i have already added fonts from port but error is happening again. What should i do now?
[Android General] Tisenoiazei100:
Font error is not a big deal just your j7 stock had few fonts more than s6 edge stock. Continue your port as normal and don't worry about these font issues nothing bad will happen.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
Okk thanks bro. But sorry to say when i was porting s6 edge. you said lot of errors come from libs. So i thought A5 2016 has same ui and multiwindows. That is why i changed my port rom to A5 2016
[Android General] NetfariousIntent:
Is there anyway how to make AOD work on the port?

Does someone know how to make a kernel with aod ?
[Android General] justforreply:
Can someone help me ?

I'm tring to port Tab S2 Marshmallow to Tab S with Marshmallow too, but after following all the steps in the OP, My device only gets stuck in bootloolp and I don't know what to do now since I'm still a noob in this ports thing, but I still have all the minimum necessarry knownlage (as it says in the OP). I have tooken this logcats of the problem. If someone can help me it will be so much appreciated.:D

The logs and tombstones are on my google drive: https://drive.google.com/drive/folders/0B8dsSfuxW8PyXzZLSXZ3MWtSZnM
[Android General] Tisenoiazei100:
Can you upload just your logcat on pastebin or mega? GDRIVE doesn't seem to load today neither on my computer neither on my phone.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] justforreply:
There you go sir:fingers-crossed:: https://mega.nz/#F!wkQT2SaB!CLrNHMl4bRNP21NURXTAlA
[Android General] Tisenoiazei100:
Decompile both stock and Tab S2 framework.jar and replace "Asset manager.smali" on Tab S2 framework with your stock one and then recompile. Do the same thing on every "RegisterNatives" fail you see in the future.

If you want to test something before doing this above, replace libandroid-runtime.so and libandroid-servers.so inside lib folder with Tab S2 one and test again if it gets stuck on splash screen "Tab S Logo" then put your stock libandroid-runtime.so and libandroid-servers.so back

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
Hi guys, some minor bugs left on my rom :D

1. Camera is having slight trouble with focusing + i get an awful noise from it

2. Lockscreen pattern doesnt work on some people but on some works (super strange)

3. Can u suggest battery tweaks because battery life on my rom is quite ****
[Android General] Tisenoiazei100:
For battery life: Open smart manager then open ram management and scroll to every part of apps running you want and then take a screenshot and send here.

Maybe you can remove some useless services

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
lol phone reboots when i open smart manager XD gonna fix that first then check it

do u have any idea of the other bugs?
[Android General] Tisenoiazei100:
LOL!! If you can open "applications" menu from settings then go to "running" section and take a screenshot and send here

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
Problem seems to be from a earlier "fix" thank god XD

heres the processes

Also if somebody could help me.. Still having 5 second delay in locscreen, i think its something related to deep sleep definitely
[Android General] Tisenoiazei100:
Even though I struggled to understand what's running...

Here's a debloat list/script from a guy named "sea-wa". His debloat list/script contains what you think is useless. This debloat script made my phone clean and simple like I wanted. (Remember keep a backup of your app,priv-app folders if something goes wrong)

https://xdaforums.com/s7-edge/themes/samsung-galaxy-s7-s7-edge-bloat-list-t3359654

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
thanks.. xD although my rom is already debloated like that
[Android General] nikkali25:
Sir.work on android 7?
[Android General] maxx35000:
[MENTION=6173089]malbert16442[/MENTION]

hi , i need advise plz

i start to port s7 edge exynos rom to j7 16 exynos

but i facing issue and don't know what to do

i fix first error i have

03-11 10:15:09.789 2369 2369 E art : Failed to register native method android.view.SurfaceControl.nativeSetVRCinemaMode(JZ)V in /system/framework/framework.jar:classes2.dex

and second

03-11 10:32:11.539 2369 2369 E art : Failed to register native method android.graphics.Canvas.native_setHighContrastText(JZ)V in /system/framework/framework.jar

but now on log i don't have any ART error or Android runtime i don't know what to do

here the log

thx for help
[Android General] Tisenoiazei100:
What lib you have currently replaced :b. I get "installd: Failed to read size" only when I replace Libskia.so

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk

---------- Post added at 01:42 PM ---------- Previous post was at 01:36 PM ----------

Yes you can use port any TW 7.0 ROM if you have a TW 7.0 or maybe 6.0.1(Need a few research) as base but you need to have a bit of experience in porting.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] maxx35000:
i found it in j7 16 framwork in

Canvas

DisplaylistCanvas

RenderNode

View

ViewRootimpl

editor

i try to edit all this file to see on s7 Framework thx i tell you if work :good:

i replace only libs for native blur

libc.so

libgui.so

libsurfaceflinger.so

libutils.so
[Android General] Tisenoiazei100:
Hmm is there any installd file inside bin or xbin if there is replace and test :/

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] maxx35000:
i try to replace by stock lib and edit more smali but same log again :(
[Android General] Tisenoiazei100:
Have you tried libandroid-runtime.so??? That's the reason of many causes

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] justforreply:
I'm having a lot of this "RegisterNatives" inssues so I wanted to ask you if there's a list of the most common .smali's that need to be replaced to get the port working so I can replace them all and save some time since replacing the libs didn't work (black screen). Also, my device is similar (in software) to s5 and in hardware to note 3 so if you (or someone who has one this devices or similar) can sent the list of this files to me it will be appreciated. :o;)
[Android General] Tisenoiazei100:
SystemSensorService.smali is the only by far common issue you get. Issues differ on any device.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
hi doods.. I'm having 3 final bugs on my rom!!!! And it will be fully bugless so thats awesome. They are super hard to fix tho.

1. Camera funky focus

2. Camera no filters

3. Lockscreen secure doesnt work FOR SOME USERS ONLY it just doesnt secure it

any help,from OP too.. i really want to get out of this magic circle and just release stable.

BTW lockscreen secure i think got fixed by changing selinux to enforcing.. i guess, no blue filter in my rom xD
[Android General] Tisenoiazei100:
Decompile camera apk and stock camera apk maybe they have lines you need to change for focus in CameraFeature.smali and CameraCommon.smali

AGAIN! have you added a3 2016 cameradata folder on your port

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] leejunsong:
Hi everyone. i have 2 bug on my rom . I don't know how to fix this

1. When i take screenshot or take picture via Camera. "CHMProvide has stopped working"

2. "Application MTP has stopped working" when i copy file from my device(A7 2016) to my computer

Help me. TKs :D
[Android General] corsicanu:
1&2 Missing libs - log and search for libs
[Android General] malbert16442:
Ill teach how to edit samsung cameras in new guide still editing to make it seem generic
[Android General] leejunsong:
tks bro.. this is my log. i try replace libjhead_jni.so from stock rom. but it not work :crying:

EDIT : It work now :D tks very much

View attachment log.txt
[Android General] grumpycoder100:
Hey there malbert, thanks for this guide, just started reading this a few days ago. So I was wondering, is it possible to just use any Marshmallow based TW ROMs as my base in order to port firmwares? I've been wanting to try this out, but I don't know what base I should use. Thanks in advance if you replied! :)
[Android General] Tisenoiazei100:
You can use an old base if it is let's say android 5.1.1 to 5.1 or 5.0.2. Sometimes you can even do 5.1.1 to 6.0.1. But why you wanna do that? :/

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] grumpycoder100:
Well one of the most obvious reasons is that I have a Note 3.. And Sammy stopped updating it few months ago and its at Lollipop 5.1.1. So I guess I'm able to use a custom MM TouchWiz ROM as my base, right?
[Android General] Tisenoiazei100:
So you wanna port MM Touchwiz of your phone which is LP 5.1.1. But if it's Snapdragon you have TW MM roms already :b. If it's the exynos one try porting from a low-range exynos device with the same resolution (Galaxy A5 2017) and try. Remember that's gonna be extremely hard without any basic knowledge of how android works.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] grumpycoder100:
Well, my Note 3 variant is the Snapdragon variant, but I want to try to port the A5 2017 firmware over to my phone. Thanks anyways! (I ran out of thanks to give XD)
[Android General] akshi2000:
I fixed some errors according to logcat. Now rom goes to optimizing apps then finishing boot and then it reboots. I dont know why and adb says device offline i am unable to take logcat. What should i do now? I am new in porting. Help me
[Android General] Tisenoiazei100:
Reflash, Run a logcat while it's booting and wait. when it reboots just pull the phone cable off or press Ctrl-C on your keyboard. Then examine and find the cause you can report here if you want.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
I tried this too the adb says device is offline. Here is what happening to device. Sorry if anything is wrong.

https://drive.google.com/file/d/0B_5x0HFxUJlxdXUyYjE2eG53Nk0/view?usp=sharing
[Android General] Tisenoiazei100:
As it seems there might be a service that fails to launch due to some lines being missing. maybe malbert can help :/.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
What should i do now?:confused:
[Android General] grumpycoder100:
Sorry again but what does this refer to? Should I place Apps, priv-apps and framework base in a new folder and deodex that folder, or should I just delete them and deodex the whole /system folder?
[Android General] Tisenoiazei100:
Go on TWRP recovery file manager and search in data folder some piece of log and move on your phone sd card and check.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk

---------- Post added at 04:33 PM ---------- Previous post was at 04:32 PM ----------

Sorry again but what does this refer to? Should I place Apps, priv-apps and framework base in a new folder and deodex that folder, or should I just delete them and deodex the whole /system folder?[/QUOTE]

Download svadeodexer and deodex your base and port.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] akshi2000:
I have tombstones log but what are the saying dont know
[Android General] grumpycoder100:
Download svadeodexer and deodex your base and port.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk[/QUOTE]

Ouh.. Finally understood that sentence. Thanks again!
[Android General] leejunsong:
Bug of Camera

I have bug of camera.. When i open camera... Device will reboot . Help me.

https://xdaforums.com/attachment.php?attachmentid=4078405&stc=1&d=1489776174
[Android General] Tisenoiazei100:
I can't find any "FATAL EXCEPTION" on your logcat. Can you please take new logcat.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] leejunsong:
Newlogcat is the same :crying:

https://xdaforums.com/attachment.php?attachmentid=4079969&stc=1&d=1489881374
[Android General] grumpycoder100:
Crap. Don't mind me asking questions non-stop, but what if the ROM I want to port and the base ROM I have has aroma in them? Anyway I can remove aroma, while keeping things intact?

ROM I want to port: https://xdaforums.com/samsung-a-series/development/rom-advanced-beta-t3540411

Base ROM I have: https://xdaforums.com/galaxy-note-3/development/rom-magma-nx-rom-t3508672
[Android General] :
Porting from a ported rom is harder. You can use the magma NX rom as a base for like libs and everything, kernel.. but as port use original firmware for the rom u want to port. Like A5 2017 for example.

BTW- now that im more experienced, i have a crazy idea= What are the chances to port S5 firmware to Core 2? Core 2 has a spreadtrum 8830 chipset and 800x480 resolution.

BTW 2- i have 1 minor bug in my rom- when i change time and date manually, after reboot date goes to 1 january 2015. how to fix?
[Android General] malbert16442:
Updated guide added new fixes and improved clarity
[Android General] Tisenoiazei100:
Does your Note3 have a clean TW 6.0.1 port with nothing fancy on it?

Clean bases result to good ports

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk

---------- Post added at 05:45 PM ---------- Previous post was at 05:43 PM ----------

There would be no way to port s5 to core2 you need to replace serious libs that you need luck and faith to achieve. J1 would be a good base for it.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
yes but i need base to be kitkat because.. core 2 has only kitkat
[Android General] Tisenoiazei100:
If it has art maybe 5.0 but depends on luck :/

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
actually just realised j1 has kitkat too. its not MUCH better but it has a white theme which is cool, and also some changes to lockscreen.. what do you think?
[Android General] Tisenoiazei100:
IDK try if own one. Core 2 was an unstable and hated device. I can find a pick some in the electronics recycling bin of my nearest shop. I mean so much hate :b

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
haha yeah :D back in the day i thought its gonna be super cool because it had the latest android (4.4.4) and transparent statusbar and i was like WOOOO THIS IS LIKE S5! LETS BUY IT. hell no :D i have replaced the glass+screen one time, after 4 days it broke, and now i have it with a new glass XD

btw gonna take a shot, why not.. i want to learn more :D

im gonna have the same errors, right? like runtime and art or no?
[Android General] Tisenoiazei100:
Of course and also you need to do some build.prop edits too maybe. Debloating is something sooo needed for this device.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
aham :) actually one guy made one debloated rom- SpeedRom its debloated and fast, but nah, i will port j1 and get another 100 thanks XD if even 100 people have core 2

i will stop talking offtopic because ban