yashsingh1/xdaforums huggingface dataset:
[Android General] Kell5719:
Hi, my hardware keys doesn't lit up on touch but it is working (Galaxy A8(2018) android 7.1.1 Port from J7(2015) to Samsung Galaxy A3(2016). )

Hardware Keys Works but doesn't lit up..

Any Solution?

Port :Galaxy A8 2018

Android: 7.1.1

Device :Samsung Galaxy A3(2016)

Model :SM-A310F
[Android General] Dr.N@:
A8 has no hardware keys
[Android General] Kell5719:
Its easier because A3(2016) and J7 (2015) Have the same Hardware, and thank you :)
[Android General] XxViRUsPRO:
Hi Guys i Got Some Errors in

com.android.server.enterprise.storage.edmstoragehelper.OnCreate

com.android.server.enterprise.storage.edmstoragehelper.DoTablesCreationOrUpdate

com.android.server.enterprise.storage.edmstorageproviderbase.<init>

com.android.server.enterprise.storage.edmstorageprovider.<init>

com.android.server.enterprise.restriction.SPDControlPolicy.<init>

with SQLite Errors

While im Trying Port S7E O to A5 2017 But i try To Check if Theres Diff Btw These Smalis But No Diff:(

Any Idea to Fix Them:good:?
[Android General] Sands207:
same android version??
[Android General] XxViRUsPRO:
Sure:laugh: :laugh: :laugh:
[Android General] Jonas Hunter:
I tried to port galaxy j2(2018) rom for my galaxy j2. But when i try to install via twrp it says some symlink failed.

failed to install rom.....?

Please help me!?
[Android General] prototype74:
Install it again, wait till it fails with some symlinks then go to /tmp and extract recovery.log to /sdcard.

Open it with notepad++ and check why it fails.
[Android General] Jonas Hunter:
Maybe i can't port rom correctly.....?

I only port galaxy j2(2018) rom to my galaxy j2 similar to my galaxy j2 stock rom.

Maybe it can cause failed.........?
[Android General] prototype74:
Just pull

recovery.log

from /root/tmp and you'll know why the installation fails.
[Android General] Jonas Hunter:
Where?

From twrp or any root browser?

By the way, as i'm new to here how to attach documents or photos here? I can't attach or upload photo here.
[Android General] prototype74:
Just boot to TWRP flash your ROM with symlinks errors then go TWRP's filemanager and search for /tmp and pull recovery.log to /sdcard

If you reply to xda post, scroll down to additional options and you'll see an option "Manage Attachments"
[Android General] Jonas Hunter:
Thank you!

This is my device's specs.....
[Android General] prototype74:
Ok seems like you tried to port Nougat 7.1.1 for a device which runs Lollipop 5.1.1. Your installation probably fails due to small /system partition space.

If you want porting Nougat, you have to find a device with same SoC (in this case Exynos 3475). Only the indian variant of Galaxy On5 Duos (SM-G550FY) which has exynos 3475 got Nougat 7.1.1

If you have enough knowledge to build your own Nougat kernel, go for it and get it's source otherwise try to port any Lollipop 5.1.1 ROMs.
[Android General] Jonas Hunter:
But my device isn't exynos variant. It's spreadtrum sc8830.....

If porting device needed same SoC, then how developers port any rom for mediatek based devices?

This is my recovery.log

View attachment recovery.log
[Android General] prototype74:
Sorry my bad. Some J200 variants have an exynos chip.

Nevertheless, same SoC isn't mandatory as long as you porting ROMs from same Android version (that's why this awesome thread exists :angel:)

Just checked your recovery.log and the installation actually fails due /system space:

[...]
ioctl(): blank: Invalid argument
[COLOR="Red"]minzip: Error writing 8192 bytes from zip file from 0xbe9d6944: No space left on device[/COLOR]
minzip: Process function elected to fail (in inflate)
minzip: Can't extract entry to file.
minzip: Error extracting "/system/saiv/face/ed/model_3_parts_front_38pt.dat"
minzip: Extracted 1924 file(s)
minzip: Extracted 0 file(s)
-- Creating symbolic links
[COLOR="red"][B]failed to mkdir /system/vendor/firmware: No space left on device[/B][/COLOR]
symlink: failed to symlink /system/vendor/firmware to /data/local/media/vbc_eq: making parents failed
symlink: failed to symlink /system/vendor/firmware to /data/local/media/vbc_eq: No such file or directory
[U][COLOR="Red"]script aborted: symlink: some symlinks failed[/COLOR][/U]
symlink: some symlinks failed
Updater process ended with ERROR: 7
I:Legacy property environment disabled.
Error installing zip file '/external_sdcard/Download/Galaxy_J23G_Deodexed_SIGNED.zip'
Updating partition details...
I:Data backup size is 0MB, free: 5351MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done

Your system partition size

/system | /dev/block/mmcblk0p25 | [COLOR="Red"]Size: 1452MB[/COLOR] Used: 1070MB Free: 382MB Backup Size: 1070MB
Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent
Primary_Block_Device: /dev/block/mmcblk0p25
Display_Name: System
Storage_Name: System
Backup_Path: /system
Backup_Name: system
Backup_Display_Name: System
Storage_Path: /system
Current_File_System: ext4
Fstab_File_System: ext4
Backup_Method: files

Remove some apps and other files till your ROM size reach under 1,45GB
[Android General] Eleo:
Or it is possible to repartition device and increase system space

;)
[Android General] Sands207:
I want to port ROMs to the J3 Emerge sm-j327p. It's running 6.0.1. right now it's running build mmb29m with snapdragon 425 cpu cortex A53 with quallcomm gpu Adreno 308. I havent made a successful port yet, any suggestions on where to start?? I appreciate the help!!
[Android General] Jonas Hunter:
Then it heppened for my lower device space.

So i should delete unnecessary files & apps. Right?
[Android General] prototype74:
It's simple: get any Android Kitchen, find any TW Marshmallow firmware you want to port, follow the instructions at OP and start porting your own ROM. Also get every tool you'll may need like Notepad++ (especially to edit smalis), FileSeek, WinMerg etc. Last but not least, you'll also need ADB knowledge to get useful logs while porting your ROM.

Yes or follow [MENTION=4598795]Eleo[/MENTION]'s suggest with repartition system space but only if you know how it works.
[Android General] Sands207:
Excellent, will do. Thank you!!
[Android General] Jonas Hunter:
I able to fix symlink error by copying original symlink from j2 pro & rom is successfully installed, but i found a strange problem that my device is stucked at bootlogo & second time it restart & go to recovery mode automatically.?

This is my recovery.log

View attachment recovery.log
[Android General] melex24:
can be ported from a6 2018 to j7 2016 have the same hardware
[Android General] Cyterafle:
Yes
[Android General] miko12312:
Does this mean the note 7 firmware can be used on s7 to allow use of spen on device
[Android General] Cyterafle:
You can port from any Samsung
[Android General] Eleo:
If spen hardware integration is not present in device, it cannot use native spen. It will require a 3rd party app to get spen functions working, as aircommand.
[Android General] gaganbajwa:
No
[Android General] gaganbajwa:
How to add native blur
[Android General] Cyterafle:
Yes if he build Exynos7870 Oreo Kernel from A6 2018 kernel source
[Android General] gaganbajwa:
Arnaud brother u use telegram ???

If u use plz contact me in telegram

This is my telegram username [MENTION=7188290]gaganbajwa[/MENTION]1910
[Android General] Cyterafle:
Yes mine is [MENTION=511493]cyt[/MENTION]erafleDu77
[Android General] cnkzlyr:
Im using s5 g900h and 6.0.1 a8 2016 port rom I have 2 questions.

1- How to add more languages that is missing on a ported rom?

2- There is a youtube fc bug in all versions, (also vanced) getting fx after play any video. (Asked without log bcoz it may be a common possible issue on ported roms, if required I can take log later)

Thanks in advance.
[Android General] Albe96:
Hi, Someone please checkout my error!

https://hastebin.com/wazemaqife.scala

Imsservice FC

Thanks

Regards
[Android General] prototype74:
Missing smali class in imsservice.apk:

06-05 19:28:08.313 9441 9441 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/sec/rcs/service/api/[COLOR="red"]ProfileServiceImpl[/COLOR];
06-05 19:28:08.313 9441 9441 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sec.rcs.service.api.ProfileServiceImpl" on path: DexPathList[[zip file "/system/framework/rcsopenapi.jar", [...] zip file "[COLOR="Red"]/system/priv-app/imsservice/imsservice.apk[/COLOR]"] [...]

You can find it in imsservice.apk/smali_classes2/com/sec/rcs/service/api/ProfileServiceImpl.smali. Marshmallow 6.0+ still have this class in classes2.dex but it's not available in Nougat 7.0+ anymore.
[Android General] Albe96:
Well.I've ported a MM rom.And this class is also missing in imsservice.apk of MM.
[Android General] prototype74:
Hmm strange maybe again a samsung thing. base and port imsservice don't have this class?

Try to remove or null certain lines that use ProfileServiceImpl.smali in your imsservice but this could limit some services.

Second option, see attachments: I've attach an unmodified imsservice.apk from my Grace UX ROM which have all ProfileServiceImpl classes. Get these classes from my apk and fit them with yours or if neccesary use my imsservice.apk ;)
[Android General] Albe96:
Thanks for your reply.And yeah I don't have that class in port nor in base.I'll be trying your apk soon and I'll report! :good:

Thanks

Regards

EDIT: Not Working.Still Facing The Same Missing Class Error!
[Android General] cnkzlyr:
[MENTION=6173089]malbert16442[/MENTION] hi sir thank you for this guide.

But Im very noob. Im trying to port s5 neo rom to s5 exynos. MM rom to MM

I replaced app(except mcregistry) privapp and framework folders to base from port rom, deleted permissions and took all permissions from port rom. Took cscversion and swconfiguration, took floatingfeatures and featuredefault xmls from port rom, edited build.prop. Kernel is ready I think stock or s7 roms kernels should work. now what to do to boot the rom?

If fact I didnt understand services and framework jars part of guide. I can use apktool. Can anyone explain me with detailes in noob language please?

Can you devs also help me please if malbert is MIA [MENTION=5244417]Ale95[/MENTION] [MENTION=4710752]amtra[/MENTION] [MENTION=4598795]Eleo[/MENTION] [MENTION=5405448]thereassaad[/MENTION]
[Android General] Albe96:
First boot the rom.

What you've to do is-->

1. Deodex Port And Base ROM

2. Move Apps,Priv-Apps And Framework Folder Of Base Rom To Somewhere Safe.

3.Copy Apps,Priv-Apps And Framework Folder From Port ROM To Base ROM.

4.Now Remember We Moved Apps Folder Of Base ROM To A Safe Area?.Delete "mcRegistry" Folder And The ".drbin" File From Port ROM's system/app.And Copy Those From Base ROM's system/app.

5.That's All.Boot The ROM.First Then Do What Mentioned In OP
[Android General] cnkzlyr:
Bro thank you for answered me very much.

1-First, I guess I have an incomprehensibility.

Booting the rom means that, rom will pass the boot animation successfuly and I will see the setup wizard right? Or It will only show me boot animation to let me take log?

2-So I dont need to modify the services and framework jar to boot the rom?

Thanks in advance and for your patience :)
[Android General] Cyterafle:
How can I do for take log of my new rom?
[Android General] mdrobiulhasan:
Check Here

Logcat instructions
[Android General] Albe96:
Absolutely not.If it was that easy every one could port a rom.It'll not boot.You have take log when it's bootlooping.Then fix them with the help of log!

Haha.Yeah man it's not that easy
[Android General] Cyterafle:
Can we take logcats if the phone bootloops?
[Android General] mdrobiulhasan:
Yes you can

Check OP instructions
[Android General] Cyterafle:
Ok thanks I'll test it soon
[Android General] alastairgreen_Nexus:
Can i use this guide for porting 8.0.0 Nougat on my SM-A510Y using SM-A520F firmware?
[Android General] Cyterafle:
If you have Oreo kernel source or Oreo TW Kernel for your A510Y
[Android General] alastairgreen_Nexus:
Okay
[Android General] cnkzlyr:
S5 exynos doesnt have 5.1.1 tw rom it has 5.0 and 6.0.1. I want to port the s6 port rom of s5 snapdragon which based on 5.1.1. Is it possible?
[Android General] Albe96:
Yes,possible.Choose your 5.0 stock rom as base.
[Android General] Jonas Hunter:
I'm able to port nougat rom for my galaxy j2 bt when i tried to flash via twrp it stuck on installing SuperSU.

What should i do now?

Here is my logs......
[Android General] Albe96:
I'm wondering how could you able to port nougat without even installing it... ? And seems like it has nothing to with this thread.and you recovery log seems to be successfully installed.
[Android General] Jonas Hunter:
I port galaxy j2 pro(2018) rom to my galaxy j2 as vice versa.......

I just copy & paste everything from port to base rom.

I also take instructions from lineageOS 14.1 rom for my device:https://xdaforums.com/galaxy-j2/development/lineageos-samsung-galaxy-j2-t3659657

The log says successfully installed because i use system installer thats why i can save logs but when i use root installer on ASSAYYED kitchen it stucked on creating image as you can the picture.
[Android General] Albe96:
xD xD. Someone slap this guy twice xD.That's how you port it? xD
[Android General] gaganbajwa:
Can anyone help me

How to add native blur properly i add libs using [MENTION=4438591]maxx35000[/MENTION] but native blur not add in launcher added in lockscreen and power menu anyone body help me pls to add blur in launcher
[Android General] Jonas Hunter:
Then tell me the method of porting.
[Android General] Eleo:
Did you try the procedure in OP for example?
[Android General] tokyo25:
No implementation found for int[]

hi guys, 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

No implementation found for int[] android.view.SurfaceControl.nativeGetDisplayColorModes(android.os.IBinder) (tried Java_android_view_SurfaceControl_nativeGetDisplayColorModes and Java_android_view_SurfaceControl_nativeGetDisplayColorModes__Landroid_os_IBinder_2)
[Android General] malbert16442:
lol:laugh:
[Android General] tokyo25:
I really need help!

Please help me guys!
[Android General] prototype74:
You don't need to remove or null this native method. There is an other static method which invokes this nativeGetDisplayColorModes(android.os.IBinder) method in SurfaceControl.smali.

Search for this method:

.method public static getDisplayColorModes(Landroid/os/IBinder;)[I

And edit this red line:

.method public static getDisplayColorModes(Landroid/os/IBinder;)[I
.locals 2

if-nez p0, :cond_0

new-instance v0, Ljava/lang/IllegalArgumentException;

const-string/jumbo v1, "displayToken must not be null"

invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

throw v0

:cond_0
[COLOR="Red"]invoke-static {p0}, Landroid/view/SurfaceControl;->nativeGetDisplayColorModes(Landroid/os/IBinder;)[I[/COLOR]

move-result-object v0

return-object v0
.end method

to this:

.method public static getDisplayColorModes(Landroid/os/IBinder;)[I
.locals 2

if-nez p0, :cond_0

new-instance v0, Ljava/lang/IllegalArgumentException;

const-string/jumbo v1, "displayToken must not be null"

invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

throw v0

:cond_0
[COLOR="red"]const v0, 0x0
[/COLOR]
move-result-object v0

return-object v0
.end method

And your ROM won't use this native method anymore, I think...

Good luck!
[Android General] tokyo25:
thanks for help :D, i tried but logcat say: Verify Reject class :((
[Android General] prototype74:
I guess it's due to move-result-object v0:

.method public static getDisplayColorModes(Landroid/os/IBinder;)[I
.locals 2

if-nez p0, :cond_0

new-instance v0, Ljava/lang/IllegalArgumentException;

const-string/jumbo v1, "displayToken must not be null"

invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

throw v0

:cond_0
[COLOR="Blue"] const v0, 0x0[/COLOR]

[COLOR="Red"] move-result-object v0[/COLOR]

return-object v0
.end method

Try this method:

.method public static getDisplayColorModes(Landroid/os/IBinder;)[I
.locals 2

if-nez p0, :cond_0

new-instance v0, Ljava/lang/IllegalArgumentException;

const-string v1, "displayToken must not be null"

invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

throw v0

:cond_0
const/4 v0, 0x0

return-object v0
.end method

this one will now just return null; instead of return nativeGetDisplayColorModes(paramIBinder);

Good luck!
[Android General] blackmodder:
Hi! Will this work to port samsung firmware with newer android version to another samsung device with same chipset but with older android version ?
[Android General] Albe96:
Nope.This guide requires same android version for base and port firmware
[Android General] blackmodder:
Ok thank you. But is there a way to do that?
[Android General] Albe96:
There is.You gotta make kernel.Compare your defconfig with upper version's kernel defconfig.And make the changes.Then build the kernel with the source code of the port.Use the kernel with stock dtb. Flash with full firmware.You may need changes to ramdisks to boot it.Taking log can solve it.
[Android General] blackmodder:
Ok thank you very much but what changes I have to make? (I think I don't have to touch the lines referred to hardware but only software, right?)
[Android General] Albe96:
Except touchscreen and kind of hardware drivers.Try to look into the code what the lines are meant for.And go forward!
[Android General] blackmodder:
Ok thank you I will try.
[Android General] Douglas Gomes:
I did just that, the ROM started, plus, WiFi and sounds does not work. any idea how to fix it?
[Android General] Albe96:
Cool.Take log! What did you ported and to which device?

Maybe some drivers in defconfig are disabled..It's better idea to take logcat..
[Android General] Douglas Gomes:
I'm porting an oreo ROM from A3 2017 to my J7 Prime device.

what to look for in logcat?
[Android General] Eleo:
Well in your case, I'd say, firstly salve the fatal errors and try to boot
[Android General] Douglas Gomes:
as I said, it starts very well, but without wifi and without sounds, that's my problem.
[Android General] Albe96:
you had to merge ramdisk to boot it? or just booted with kernel edits? it can be kernel errors too.Logcat when connecting to wifi.You'll get a clue from that..
[Android General] Douglas Gomes:
a friend compile the kernel for me, I do not know compile, if I know it would be better. I'm going to install it again and see the log.
[Android General] Douglas Gomes:
[MENTION=7334959]Albe96[/MENTION]

any idea of the error?

edit

I put my headset on and it worked the audio, it does not work the speakers, can anyone help me?
[Android General] prototype74:
And what about in-call audio (handset)? Does it work too?
[Android General] Douglas Gomes:
Yes, I get the normal flame.
[Android General] prototype74:
Then I don't think it's a kernel problem.

Your speaker (probably) doesn't work due to non-fully compatible audio (hw) libs. I think A3 2017 and J7 Prime have different speaker modules which means using A3 2017's libs will make speaker unusable. Search for an other device with same SoC (Exynos7870) and have Oreo officially e.g. Galaxy A6. Get it's audio libs (e.g. audio.primary.universal7870.so) and some other files from system/etc and vendor/libs (or ask any exynos 7870 developer) to make speaker working again.
[Android General] blackmodder:
When I try to compile the kernel I get the error below. Can someone help me please? Thank you [MENTION=5377656]xXPR0T0TYPEXx[/MENTION] [MENTION=7334959]Albe96[/MENTION]

Edit: I solved the error
[Android General] Douglas Gomes:
I tried to port the A6 2018 plus it is very slow and the audio also does not work, where should I modify in the kernel? thanks for your help.

and regarding WiFi, any ideas?
[Android General] prototype74:
I meant the Galaxy A6 not the plus variant, and the plus variant isn't even a Exynos device :eek:. Try the audio (hw) libs, config etc. from A6 (SM-A600F).

As I said before I don't think it's kernel related as all other audio "outputs" are working (except speaker).

Regarding to WiFi: I think that's kernel related :mad: don't ask me how to fix this. I never built kernel images
[Android General] Albe96:
Check for audio driver configs.Make sure you've enabled the proper driver.I recommend you to remove a6's audio driver and add your own's.and for wifi check if these configs are enabled or not.If not enabled,enable them -->

This is for wifi hotspot fix btw.-->

Explain what's really happening.Is it not working/enabling?
[Android General] Douglas Gomes:
Is the library all you have in hw folder?
[Android General] Douglas Gomes:
I'll try this. the WiFi turns on and 2 seconds later turns off, but do not find any network. and does nothing else.
[Android General] blackmodder:
Hi. Since you successfully built A6 kernel how did you fix all the errors while building? (What changes you made in your defconfig?) Thank you
[Android General] Douglas Gomes:
I did not build, a friend built and sent me the kernel

What source are you compiling?
[Android General] blackmodder:
SM-A600FN_EUR_OO_Opensource
[Android General] Douglas Gomes:
Link?
[Android General] blackmodder:
http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=A6
[Android General] tokyo25:
I ported rom 7.1.1 from j7 to a5, i got Optimizing app screen but it stuck there. i have log here https://drive.google.com/open?id=16njdtaTk6naASR2Na8t1kg6iNLnexenu
[Android General] blackmodder:
[MENTION=5535206]Dougl@s123[/MENTION] can you ask your friend how he made it please? Because I'm not able to compile it. Thanks

Edit: Built successfully see post below
[Android General] blackmodder:
So I successfully built the kernel using J600 sources (another exynos7870 device).

Once I compiled the kernel do i have to replace the zImage into A6 boot.img extracted from the stock firmware and also the dtb image with my device stock (android 7.1.1) keeping A6 ramdisk? And then flash the new boot.img with A6 stock firmware? [MENTION=5535206]Dougl@s123[/MENTION]
[Android General] Douglas Gomes:
as I said friend, I do not know compile kernel, it was a friend who compiled it for me, send me an PM I give him his name.
[Android General] blackmodder:
So I made a flashable zip with SuperR kitchen but when I try to flash it recovery give me that error symlink: some symlink failed and aborts installation:confused:
[Android General] prototype74:
Use the copy log to sd option in TWRP>advanced when symlink fails. Open log and search for fail reports.
[Android General] blackmodder:
So that's the error I think minzip: Error writing 16384 bytes from zip file from 0xff88bc74: No space left on device
[Android General] prototype74:
So no space left. Probably your ROM size is too big for a certain partition or send full log here and let me check it.
[Android General] blackmodder:
Here you are