yashsingh1/xdaforums huggingface dataset:
[Android General] Tisenoiazei100:
-Does your RIL and IMEI work fine in other custom roms?

-You used that guide or tried to port it fully?(If you know what i mean)...

If you port from qcom to exynos or vice versa remember these chipsets behave very differently in terms of modem, bootloader, hardware etc...

Try replacing libsec-ril.so with A720F(Galaxy A5 201?) one...

Warning: Keep a backup of your original

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

---------- Post added at 07:26 PM ---------- Previous post was at 07:18 PM ----------

Well even you try hard you'll never succeed

Google upgraded dex to 0.3.7 for some useless reason so now a bases older than Nougat cannot read it...

Replacing oat2dex makes it even worse...

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
One guy ( i wont say who XD) Told me that i need nougat libs too, to be compatible with that framework. I plan to download tab s2 firmware since it has snapdragon, get the required libs out of it and try to port xcover 4 again. I just dont know which libs do i have to replace, libandroidruntime i guess?
[Android General] corsicanu:
Yes they work, i already ported some fw for my A500F and A300F snapdragon, from exynox devices, so i know mainly what i need. Used same method that never failed me on A700F (exynox) and succeeded the port, but the sim doesn't get detected. Since A7F is exy, wanted to ask, maybe there is something more that i need to look for. Like i already said, in the log i have many connect retry attempts from at_distributor and dmesg say failed to connect to rild. Also replaced ril related libs, same no sim, no imei, no modem, and with A720F ril related bin files doesn't boot. Gonna try again to port another fw, maybe it will just work out of the box... Thanks anyway.

I was the one who told you, no need to hide that. We were talking about having a full base fw like on MM ports, so you can't have it. Porting nougat from another snapdragon is lottery because you won't know what is the fault, kernel, lib, or framework. Specially when you know that you had many issues because of copy paste instead of read, compare, adapt.
[Android General] :
I have a little great idea that will help quite some people- Make a list of smalis that need to be replaced. I will port J3 2017 now, and i will make a list for every smali, first for booting, then for bugfixing and etc.. Do u think its a good idea? But ofc, for every device its different so u can't expect it to work from any list.
[Android General] ROBERT CM:
This is excellent idea, it to be just as reference and help a more people.

Because this thread need more details on any things, I think.

Waiting for your list :laugh:
[Android General] Tisenoiazei100:
For S5 Mini (possibly)

- DisplayEventReciever

- SystemSensorService

- NativeCrypto

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
Can i port A5 2015? Just because its older and i have some doubts its not gonna work. I want that old style :D
[Android General] Mohammed Bhere:
Can any one port for S4 mini??
[Android General] Tisenoiazei100:
This guide is to port TW to TW. S4 Mini has KK so take any TW KK as base and try bringing it on. If you are a guy that wants LL or MM take any device "WITH THE SAME OR CLOSER" chipset, port its kernel and lots of stuff i cant explain (medium to high dev skills needed)

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] Yahia Angelo:
I have note 3 exynos and want to port MM to LL base...i builded MM Kernel from galaxy tab S base (which have the same exynos 5420) and want to port MM Rom...Please tell How to Port It
[Android General] Tisenoiazei100:
---------- Post added at 07:08 PM ---------- Previous post was at 07:04 PM ----------

[/COLOR]

Does your kernel function properly?? I mean it stuck or passes the splash screen without throwing you to download mode. If so you have to take Tab S firmware, deodex it and finally add Note 3 vendors from github. Next is try to learn by yourself, it's not hard but not easy.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] Yahia Angelo:
I tried to flash tab s rom with my stock vendor and lib but it gave me black screen and cant take logcat

And when i flash the kernel in LP rom it gave me media errors only
[Android General] Tisenoiazei100:
Do not try stock try cm13 vendors from github

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] Yahia Angelo:
Ok..tnx bro...i will try
[Android General] :
Hello,

I've got a problem.

When I flashed the ROM, it at least goes to boot animation, but after a minute, it reboots to recovery.

Any suggestions?
[Android General] :
hi

So I haven't really made a new list of smalis for porting roms, but here's the ones just to boot ANY 6.0.1 firmware on J5 2015.

Debug

GpsLocationProvider

KnoxVpnPacProcessor

TADriver

SchedPolicyManager
[Android General] Tisenoiazei100:
Not many ROMs need KnoxVpnPacProcessor changed ?.

But good job ?

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] yazeed_twb:
Newbie qustion, what is the file location of this smalis?, thanks in advance
[Android General] :
Use windows search.
[Android General] malbert16442:
Update 4/19/2017

Added Knox Revert guide kernel based at end of guide

Added A new section for device Specific edits

(Small changes, big impact):D
[Android General] Tisenoiazei100:
I checked your guide again, as you said for camera its WIP. AFAIK you have to change resolutions in CameraFeature CameraSettongs idk***_boot_complete and a few more. I tried it for On7 but gives weirdo fc's about shutter.ogg being missing from an res/data folder

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] linhbs:
Very good. Thanks a lot
[Android General] an-_-dro:
thank you for this guide, will try this weekend. but i wanna ask... if i'm going to port S5 G900F to G900H is that still need all complex editing?
[Android General] :
Hello,

As you may know, i am porting A8 2016 to my Galaxy J5.

I encountered a strange problem. I tried replacing the smalis with the stock ones, still does not work.

Here's the logcat = http://www.mediafire.com/file/mesz0af3we5jm56/A8.txt
[Android General] malbert16442:
just location smalis:p
[Android General] malbert16442:
01-01 00:37:16.219 2084 2084 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: main

01-01 00:37:16.219 2084 2084 E AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for int android.os.storage.sensitive.SecureStorageLSM.lsmInitialize() (tried Java_android_os_storage_sensitive_SecureStorageLSM_lsmInitialize and Java_android_os_storage_sensitive_SecureStorageLSM_lsmInitialize__)

01-01 00:37:16.219 2084 2084 E

If you are new at dev or don't understand this concept reread guide
[Android General] Astrako:
Hi guys!

In first place, thanks for this awesome guide!

I have used it as base to port lastest MM LG G5 rom for LG G4.... Well, I haven't yet a bootable rom, I am stucked in bootanimation. I have solved many many errors, but now I am stucked here. I know that this guide is oriented to Samsumg devices, but any help here would be extremely appreciated ;)

Thanks in advance!
[Android General] corsicanu:
Unpack both kernels and compare bootclasspath located in init.environ.rc

Cheers!

LE: Send more of the log in a txt file attached.
[Android General] Astrako:
Thanks for your answer!

Yes I have compared both and I have put bootclasspath and systemclasspath from G5 in G4 kernel :confused:

Dalvik from jar files in systemclasspath is generated, see:

Ok here I've attached more log (but filtering some irrelevant terms)
[Android General] corsicanu:
Try to filter by E and look for this. I think this is causing the issues.

E art : No implementation found for int android.util.SeempLog.seemp_println_native(int, java.lang.String) (tried Java_android_util_SeempLog_seemp_1println_1native and Java_android_util_SeempLog_seemp_1println_1native__ILjava_lang_String_2)
[Android General] Astrako:
Thanks mate! I investigated this error when I saw it first time and smali files related with it are already present in framework jar from G5 (but not in G4 frame) I am using G5 framework so I don't know where is the problem :(
[Android General] Tisenoiazei100:
Replace libandroid_runtime.so and libandroid_servers.so with G5 ones and check if you get the same issue..

Remember to keep a backup of the original G4 ones

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] alidemeter:
hi

can we do this for port roms in device have similar hardware , like A710FD and A7108 :

Extract system.img of A710FD

make changes we need

extract file_contexts From A7108 Boot File

Repack A710FD System.img we made changes with file_contexts of A7108 !

Then Flash it with Odin

can we do this ?
[Android General] Astrako:
Hi mate, thanks!

I already tried too and replacing these lib the boot flow never reach bootanimation....

I will start again putting whole framework from G5.... Do you know how you identify if problem is due to libs or something in framework?

Thanks in advance!
[Android General] Tisenoiazei100:
By checking your log it gives this java.lang.UnsatisfiedLinkError: No implementation found for int android.os.storage.sensitive.SecureStorageLSM.lsmInitialize().

That means some code needed is missing, so by using fileseek search for the last words that is lsmInitialize() in G5 libs and it will show you what libs you have to replace with G5 libs (remember to keep backup of the originals). This is only for no implementation found errors. if it says failed to registernatives that means you have to replace the smali.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
Hello,

I have a really bad problem.

After replacing the smalis, nullifying the values, it still does not work.

E System : java.lang.VerifyError: Rejecting class com.android.server.LSManager because it failed compile-time verification (declaration of 'com.android.server.LSManager' appears in /system/framework/services.jar)

It loops in bootanimation and never goes further.

Any help?

Full log : https://hastebin.com/puhomakire.vbs
[Android General] Tisenoiazei100:
This issue comes from using old deodexer. Try SVADeodexer.

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

So im stuck with 1 last bug of my rom and every time i upload new version with the same bug. The bug is, it cant connect to Samsung servers, resulting in not being able to backup or restore data from Samsung cloud or update the software (not important) I want to fix this
[Android General] :
So, do i need to start everything to scratch?
[Android General] Tisenoiazei100:
Yes, unless you used new deodexer like SVA

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
Okay. Thank you!
[Android General] Tisenoiazei100:
Have you removed samsung services, scloud and samsung billing apk's???

If so, you have to add them back but ill prefer not to add samsung services as they are useless for the average user. You can update samsung apps from playstore afaik but all new samsung apps now require API 24 (Nougat).

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] :
Yea i did remove samsung billing and maybe more important stuff, I just thinked of that idea and now im deodexing A5 2017 apps (just apps) but not EXTREMELY debloated. Guess thats the problem

EDIT: but no, still the same. I edited build.prop, there was a line that said something like

official-release= false, i made it true, we will see now
[Android General] leejunsong:
Help me fix this bug of fingerprint :(

[IMG="https://dl.xda-developers.com/4/1/2/5/6/9/8/Screenshot_20170425-151535_1_.png?key=fahf8LIZKArHKvTjHPUMdw&ts=1493108273"]https://dl.xda-developers.com/4/1/2/5/6/9/8/Screenshot_20170425-151535_1_.png?key=fahf8LIZKArHKvTjHPUMdw&ts=1493108273[/IMG]
[Android General] RajKale99:
I port j5 custom Rom to my on7

It successfully booted but after boot

Screen touch not working at all

But after reverting back to stock all working fine
[Android General] Astrako:
Ok guys I have done progress on porting LG G5 MM on LG G4. Thanks for all the advices.

Well, for now phone boot and optimize apps, but when finish, it reboots on loop.

I have adjust framework code, so I prefer not using any LG G5 lib for now.

I have these errors now (I think that they are those what don't let rom start):

Could not create image space with image file '/system/framework/boot.art'. Attempting to fall back to imageless running. Error was: Only the zygote can create the global boot image

And these F:

F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x18 in tid 529 (installd)
F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
F DEBUG : Build fingerprint: 'lge/p1_global_com/p1:6.0/MRA58K/17073180631a5:user/release-keys'
F DEBUG : Revision: '11'
F DEBUG : ABI: 'arm64'
F DEBUG : pid: 529, tid: 529, name: installd >>> /system/bin/installd <<<
F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x18
F DEBUG : x0 00000000ffffffff x1 0000000000000fae x2 000000000000004f x3 0000007f881f16e8
F DEBUG : x4 74493057383186e5 x5 0000007f87cd4c10 x6 0000007f87ed0168 x7 0000007f881f3000
F DEBUG : x8 0000007f881da000 x9 0000000000000b59 x10 0000007f87cd02c8 x11 0000007f881f1000
F DEBUG : x12 0000007f880cf890 x13 74493057383186e5 x14 74493057383186e5 x15 000000000000270f
F DEBUG : x16 0000007f881f1ba0 x17 0000007f88059488 x18 0000007f87ec2000 x19 0000007f87cee000
F DEBUG : x20 0000007f87cd4c10 x21 0000007f87cd4c00 x22 0000000000000000 x23 0000007f881f1000
F DEBUG : x24 0000007ffeb06cf8 x25 0000007f87cd4c40 x26 0000000000000000 x27 0000007f87ed0168
F DEBUG : x28 0000007f881dcfe8 x29 0000007ffeb06900 x30 0000007f881db210
F DEBUG : sp 0000007ffeb06900 pc 0000007f881db384 pstate 0000000060000000
F DEBUG :
F DEBUG : backtrace:
F DEBUG : #00 pc 000000000000f384 /system/lib64/libselinux.so
F DEBUG : #01 pc 000000000000f800 /system/lib64/libselinux.so
F DEBUG : #02 pc 000000000000651c /system/bin/installd
F DEBUG : #03 pc 0000000000004aa0 /system/bin/installd (main+728)
F DEBUG : #04 pc 000000000001bfc8 /system/lib64/libc.so (__libc_init+100)
F DEBUG : #05 pc 0000000000003480 /system/bin/installd
F DEBUG :
F DEBUG : Tombstone written to: /data/tombstones/tombstone_00

Any idea or tip to manage them?

Thanks in advance!
[Android General] corsicanu:
Attach log as text and filtered for E. Behind that fatal there must be at least an error. Cheers!
[Android General] Astrako:
Here I go.... Hope somebody can give me some light on this.

the beggining of crash is at the end of optimizing apps, when system should be loaded, but it reboots.

I have removed some irrelevant terms in log, like Thermal, camera, sensor, etc.

Thanks for help!
[Android General] leejunsong:
anyone help me . Logcat no say anything
[Android General] corsicanu:
Look for these files:

E PackageManager: Could not read /system/etc/device_nfc.cfg -->/system/etc/device_nfc.cfg: open failed: ENOENT (No such file or directory)
E IpConfigStore: Error parsing configuration: java.io.FileNotFoundException: /data/misc/ethernet/ipconfig.txt: open failed: ENOENT (No such file or directory)

These 2 files are pushing it to F - mostly device_nfc.cfg one.. Cheers!
[Android General] mohsen8:
hi

i have ported rom for j3110 but home screen content is not show separate app screen default show all app on home is default how to change it??

and 4g symbole is allways show on even when data is off how to fix this bug??
[Android General] leejunsong:
I port rom of J7 2015 for A5 2016

but t get no sound and bug fingerprint sensor ?

Help me fix this :D

Thanks for reading ( help)
[Android General] Gilgamesh_7:
I have Note 5 (SM-N920P) for Sprint, which is came with a limited set of languages,

I tried to add more languages so I modified the language.xml but nothing happened then I realized that the whole system is stripped from all other languages,

I tried to disable the dm-verity as well but a red line is showing after booting (Kernel SElinux is not set to Enforcing) and the phone is stuck at Samsung logo,

What I need to do is to port a stock firmware from another Note 5 with multi-languages and to disable dm-verity,

So I decided to port N920GUBS3BQB1 for SM-N920G,

I set everything up in order to port the app and priv-app from SM-N920G,

I would be grateful if someone could provide me with instructions on how to do that,

Many thanks in advance
[Android General] :
Hey guys, and also [MENTION=7993373]Tisenoiazei100[/MENTION], i FINALLY managed to fix that SdpManagerService error on 5.1.1 port! Now i continue to fix others. If i manage to port 5.1.1 rom, i will be sending a smali list for that too (quite alot bigger list than 6.0.1 port)
[Android General] Tisenoiazei100:
Good ?

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] malbert16442:
If someone ever saw this error which in my head is the hardest error. It is really easy to fix

01-01 03:23:52.246 3994 4040 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Map android.hardware.scontext.ISContextService.getAvailableServiceMap()' on a null object reference

Simply replace motionrecognitionservice.jar with one from your stock rom or a bootable rom.

Error usually comes when your porting a device that is low end/mid end.
[Android General] kykint:
Deleted
[Android General] grumpycoder100:
Hey, so I was wondering. Somehow, I managed to make a full zip of my A5 2017 port using CM13 as my base XD . The thing is, I don't really know how long would it take to go for a first boot. Any experienced porters want to clarify my doubts?
[Android General] Tisenoiazei100:
15-20 mins. But you can take logcats and report here.

Στάλθηκε από το SM-G903M μου χρησιμοποιώντας Tapatalk
[Android General] hemu579:
HelpMe! how to extract system.img.ext4

sir, please give a guide to extract system.img.ext4

I tried ext4 unpacker and ex2 explorer,

that doesn't work,

when selected the file in ext4 unpacker, it was loading loading loading... and than system shows ext4 unpacker "not responding"

I searched on Google for that, in somewhere i saw that "ext4 unpacker doesn't unpack greater than 1gb file

so, that's my problem sir,

I want to extract 2.2gb file of system.img.ext4 marshmallow android.

please help me sir,
[Android General] GhaithSYR:
Bro im trying to port A3 2017 stock rom and C5 Pro

so the roms both show me this ...

and files in error its same on stock

i try lot of things

so what to do ??

plz help me

E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'android.database.Cursor android.content.IContentProvider.query(java.lang.String, android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, android.os.ICancellationSignal)' on a null object reference
[Android General] akshi2000:
I successfully booted a rom using this method thanks everyone who helped me. This rom was 32 bit. Now i decided to port S7 edge MM rom this is 64 bit so i replaced all libs from stock rom rom including all apps libs. I took only framework and apps from port. but in logcat it does not show any art or Android runtime error.

Thanks in advance
[Android General] :
So i decided to test the knox 0x0 thing on stock kernel, it didnt work. I took the resetprop from latest magisk for my arch, put it in sbin, put that init.knox.sh, edit init.rc (i put these lines in the end of the file) compiled, booted but still 0x1. No im not talking about download mode, i know its faking it in software so i checked with an app, nope
[Android General] mmotti:
I'm very new to this. Trying to see if I can at the very least get an S8 Port booting on my S7 Edge.

I'm currently stuck at the S7 Edge splash screen so I can't open ADB or anything to find out what's going on. Is there anything obvious to be checking at this stage? Something easily missed?
[Android General] doulc:
First of all thanks for your post.

Just suggestion to add to your thread Notepad++ is very handy

Your "KNOX STATUS REVERT (Kernel)" file attach is incomplete, I open it and check.

Btw, what is the file you use to repack rom to flash via Odin?
[Android General] :
Can i port J2 2016 MM to Core 2? In build prop j2 board is Sc9830I and mine is Sc7735s, but platformis sc8830 on both.
[Android General] grumpycoder100:
I thought porting to different boards wasn't quite possible, but maybe you could try it
[Android General] leejunsong:
i replace MediaScannerConnection.smali from stock rom, but it not working:(
[Android General] :
In some case replacing doesnt work. Log reports that you have missing method so use fileseek and add it. Or, in the port smali, fix the method that the log reports.
[Android General] RealWelder:
I'm having an issue trying to port cm12 to my tab which had 4.4.2. It hangs on bootanimation and it won't let me logcat because my device shows up as unauthorized in adb devices. Is there a way to get around this, I would really like to upgrade this thing.
[Android General] malbert16442:
This is only a guide for porting samsung firmware hence the title
[Android General] RealWelder:
I realize that, I was just asking how to get around the rsa key issue that you would have porting any version of Lollipop or higher. Without the ROM actually booting you can't authorize adb so you can't logcat it.
[Android General] corsicanu:
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.

Or, as secondary option, make debug insecure in kernel ramdisk - default.prop by changing/adding

ro.adb.secure=0

This second method requires some more knowledge to unpack the kernel. Cheers!
[Android General] RealWelder:
I'll give that a shot, I appreciate it.
[Android General] maxx35000:
[MENTION=6173089]malbert16442[/MENTION]

hi and thanks for this guide i have some trouble to port A5 2017 rom for J7 2016

i folow your guide to fix all errors i have and now i have this i don't know how to fix this issue can you help me pls

01-01 13:16:28.439 19193 19193 E System : ******************************************

01-01 13:16:28.439 19193 19193 E System : ************ Failure starting system services

01-01 13:16:28.439 19193 19193 E System : java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.server.wm.WindowManagerService.showBootMessage(java.lang.CharSequence, boolean)' on a null object reference
[Android General] malbert16442:
I remmeber this error long ago simply patch your kernel by swapping init.environ.rc with that of port. I attached mine a5 2017 one here
[Android General] maxx35000:
i try to see it tonight but i think i already have it :(
[Android General] corsicanu:
Hi man. I have same problem as [MENTION=4438591]maxx35000[/MENTION]. I`m trying to port AryaMod Note 7 rom for Note 3, to A5 2015. I fixed all the needed jars and I already edited init.environ.rc with that from the port.. You can find here a part of the log (E: filtered) or here a longer log... Beside the described problem i have another one regarding IR sensor - Note 3 has it and A5 doesn`t.. In the log i also have an error about IR HAL module missing. And when the errors occur in the log the phone vibrates once. Thanks for any feedback! Cheers!
[Android General] maxx35000:
ok so i already patched init.environ.rc with the a5 2017 one have this issue

here the log if you can take a look maybe i do Something wrong
[Android General] malbert16442:
this is your main error java.lang.RuntimeException: FEATURE_CONSUMER_IR present, but no IR HAL loaded!

remove the FEATURE_CONSUMER_IR

in

com.android.server.ConsumerIrService
[Android General] Chinhai:
I also got that and don't see the one with underscore. What to do with that please help?
[Android General] maxx35000:
i fix issue with using all etc folder from port ;)

thank's for help