yashsingh1/xdaforums huggingface dataset:
[XDA-University] lacoursiere18:
Porting different variants such as TouchWiz to LG..to Sense..doesn't really work out well.. I'm not saying it is impossible but A LOT of the apps, especially system apps like SecMms..are tied into the framework.. so essentially you would have to port bits of touchwiz framework..
[XDA-University] Ultimate_Br:
thanks
[XDA-University] mn1968:
Yeah, this seems like it may be more difficult than I can handle. Oh well. Thanks for the reply.
[XDA-University] :
Can I port application from different vendor? Thank you
[XDA-University] changnhoc123:
You can port this app nokia XL's not, it's 2 of this file Gallery2.apk, Gallery2.odex , thaks !!!
[XDA-University] Arbaaz98:
bro i cannot recompile its getting me an error:confused:
[XDA-University] Guiver2:
Thanks you for this Rizal Lovins !!

Arbaaz98 : The error is ?
[XDA-University] gamzekal:
where is Screenhots?

They are gone:)
[MENTION=4666531]Rizal Lovins[/MENTION] please add them in thread again.

Thanks for great thread:good::good::good::good::good:
[XDA-University] daradan:
pls, can you re-add screenshots
[XDA-University] ponnex:
Hi great guide! :D although we cant finish this one without the screenshot :< it disappear and I think the link of the screens are through FB? anyways hoping for an updated screenies
[XDA-University] leon nunes:
And what about samsung to aosp
[XDA-University] :
A bunch load of changes has to be done
[XDA-University] leon nunes:
like modifying the framework as well as systemui?
[XDA-University] :
Framework.maybe systemui not sure how much camera related info it has there.and some jar files actually what we could do (at least those who have s4 for example and google play edition variant can actually do a good research to gain stock camera functionality in custom Roms since then you'll be able to track what's needed ;)
[XDA-University] berryman13:
What kind of changes are necessary for me to port NVIDIA Tegra SHIELD Tablet stylus launcher and game controller support? I am assuming it's very tough,
[XDA-University] :
Look inside manifest for uses lib

That'll do a hint ;)
[XDA-University] leon nunes:
thanks Ill learn how to modify stuff
[XDA-University] webnetxpress:
Is there an APP porting service?

If I have an app (and no aptitude to doing this on my own ;) Is someone available to "port" the app so that I could use it on my generic android device? If so, I'd be happy to pay someone for their time to do this. not sure if this is the right place to post this or not. If not, sorry. Thanks.
[XDA-University] vibhorchaudhary:
nice tut brother.. but it would be helpful if u go little more in deep :D
[XDA-University] AlfasMP:
[MENTION=4666531]Rizal Lovins[/MENTION] & other fellows ,

I tried to port an ICS stock camera from my SGS Duos. But it gave me a force close . It is now running with 4.4.4 kitkat and it only has a 3 MP camera app ( only supports upto 3 MP ).

Have a look at my logcat guys

Logcat

I can't understand what cause FC .

Can anyone read it and tell me about the problem ?

regards,
[XDA-University] lacoursiere18:
java.lang.UnsatisfiedLinkError: Couldn't load seccamera_jni from loader

Your missing some libraries..
[XDA-University] AlfasMP:
Thank you for the reply ,

But I already checked that thing and I can't find a library named seccamera_jni in my rom :(

Well can you have a little guess about its location or something like that ? ( yea little tough I know )

Regards,

AlfasMP
[XDA-University] lacoursiere18:
Have you looked in ICS where you are pulling the files from?
[XDA-University] AlfasMP:
Of course . But there is no above mentioned file ...

I pulled almost all of the libraries and frameworks (.so & .jar) from ICS , but have no luck

Name of that library is actually

seccamera_jni.xx ? Or is that file/lib compressed in an other one with different name ?

Who knows ...

Regards,

AlfasMP
[XDA-University] cwankhede:
Can you please update the pictures in this guide? Thanks :)
[XDA-University] somboons:
[MENTION=4666531]Rizal Lovins[/MENTION]

Cloud you please upload new picture ?
[XDA-University] UzUmAKI_NaRuTo1:
Confused

hey nice guide..!! thanks....:)

but theres a confusion

I understood whole tutorial...... but following thing makes everything messy !!

1. 'like this line' . i didnt get which line you talking about.

2. and the second line ........ starting from 'Leave file has been. . . . ..' i cldnt understand this !!

Plz can you explain !! and thanks in advance:)
[XDA-University] venkat kamesh:
Cool

this thread was amazing..... [MENTION=4666531]Rizal Lovins[/MENTION]

its not so easy to make such an easy thread with clear tut......

did a great job

thank you this tut helped me a lot.. that i may not explain in words :p
[XDA-University] letdatbassknock:
Is it possible to port FlyMe OS music player?
[XDA-University] Rizal Lovins:
Sorry long time no update :angel: THREAD updated with more friendly to understand

for complete Guide see this thread!! http://xdaforums.com/crossdevice-dev/sony/guide-understanding-android-t3112355
[XDA-University] Call190Now:
Will try later, thanks bro!
[XDA-University] oldman20:
please, help me! anyone there?
[XDA-University] :
Search for loadlib in the smali code. the uses-library is refered to framework files
[XDA-University] oldman20:
More clearly, please? Where i can find they?
[XDA-University] :
if you have notepad++

go to find in files, and enter loadlib

if you have any issues, i think this: http://xdaforums.com/showpost.php?p=52343237&postcount=12 explains it quite good,

and the first post: http://xdaforums.com/showthread.php?t=2737126

it is something i missed out (i see now) will check that out too :good:
[XDA-University] Saelfos Emaka:
Good

Thanks !Really awesome,, but is it possible in any way to port Xperia lollipop apps to Xperia jellybean 4.2 Roms? like Xperia lollipop SystemUI to Xperia c
[XDA-University] :
Well afaik it is not impossible. but not entirely possible. I think you can port some stuff. but I don't think full ui can be ported. This is due to some heavy changes in framework related files etc
[XDA-University] Kiranveer Singh:
Need help urgent...

I ported a rom for mtk6592

I removed all bugs ,, but only one is left now :(

Its an camera bug,,, only back camera is working

And focus is also fixed, when i replace cam lib files than it says can't connect to camera.. Plz help nobody helping me :(
[XDA-University] :
What does the log say? And what files did you replace. from port to base or from base to port?
[XDA-University] Kiranveer Singh:
I replaced all lib files...

But first a reolaced two files cameracustom.so and cameraservice.so

No i replaced all files but its nt working :(
[XDA-University] :
So it worked when you only replaced two files?
[XDA-University] Kiranveer Singh:
No :( its nt working
[XDA-University] Doom Slayer:
HI people.

Can you help me to fix error?

Here is the part of smali code which results error.

.line 23
new-instance v0, Lcom/sonyericsson/android/camera/configuration/parameters/DestinationToSave;

const-string v1, "EMMC"

const v4, 0x7f0a0048

sget-object v5, Landroid/os/storage/StorageManager$StorageType;->INTERNAL:Landroid/os/storage/StorageManager$StorageType;

const/4 v6, 0x0

invoke-direct/range {v0 .. v6}, Lcom/sonyericsson/android/camera/configuration/parameters/DestinationToSave;-><init>(Ljava/lang/String;IIILandroid/os/storage/StorageManager$StorageType;Lcom/sonyericsson/android/camera/configuration/parameters/DestinationToSave;)V

sput-object v0, Lcom/sonyericsson/android/camera/configuration/parameters/DestinationToSave;->EMMC:Lcom/sonyericsson/android/camera/configuration/parameters/DestinationToSave;

Here is my storage values.

storage_internal" id="0x010405a6
storage_sd_card" id="0x010405a7

I need to shrink code somehow, as simply changing values result the same error in this line.
[XDA-University] :
Sorry but what are you trying to do

Fix the location where camera app saves the file
[XDA-University] Doom Slayer:
Porting sony camera app to my gpe based rom.

CameraUI gives me FC.

If change it to

new-instance v0, Lcom/sonyericsson/android/camera/configuration/parameters/DestinationToSave;

const- v1,"0x010405a6

const v4, 0x7f0a0048

const/4 v6, 0x0

It will result a problem in line 75 which is:

.line 75

.local v6, "path":Ljava/lang/String;
invoke-static {v6, p0}, Lcom/sonyericsson/cameracommon/mediasaving/StorageUtil;->getStorageTypeFromPath(Ljava/lang/String;Landroid/content/Context;)Landroid/os/storage/StorageManager$StorageType;

move-result-object v7
[XDA-University] vjdinesh007:
Can you please port Asus Cover APk of Zenfone 2 to Zenfone 5 pls...

please port the Asus Cover View of Zenfone 2 to Zenfone 5. Below link for Asus Zenfone 2 Cover View APK...

http://m.downloadatoz.com/apps/com.asus.flipcover2,1427260.html
[XDA-University] :
Maybe its crashing due to missing info in framework related files which most likely can be the issue
[XDA-University] shag_on_e:
Hi Rizel, I'm looking to attempt porting SMemo2.apk from my Samsung GS4 to my 64 bit LG G4. Do you think it's possible to do this with the CPU difference?
[XDA-University] :
As it supports both cpu structure yes. it is like x86 computer and x64 you can use x86 apps on a x64 but other way isn't supported.
[XDA-University] shag_on_e:
I'm trying to gather the necessary resources like framework files and permissions but some things in the OP are hard to follow, translation issue I'm guessing. I've found some permissions files that tell the names of framework files they support. I'm concerned about putting twframework in my LG's framework folder. I wonder if it could cause boot probs or whatever. I've read through logcats after simply putting the .apk without the .odex file in /system/priv-app but I don't see any real hints there. Major problems here! Mass confusion!
[XDA-University] :
Framework files won't cause boot problem unless permissions are being placed in system/etc you can place flyme-res (as an example) in system/framework/ without it causing too issues. Note (in my case I can put the complete folder of flyme framework files (without replacing anything) and etc/permission from flyme without issues.

However doing the same with LG framework and permissions it will fail on boot.

So be careful. best thing is to actually just put the app you want to port in system/app and reboot.

Connect device to computer or use catlog on your phone and start log the issue

Also differed vendors uses different Framework related info.

Flyme Camera didn't relay on any Framework neither the music app.

LGmusic app and camera does rely on some Framework files.

Lenovo camera app doesn't neither browser. it is very hard to say sources it relies on. Get the best info would be logging the issue.

That was how I made flyme music player working (though it was only missing libs) so no necessarily Framework was needed and if it is Framework related (etc) Framework-resresources you'll have to be the info in the apk itself. (No root)
[XDA-University] iyyappan11:
Anybody can HELP to port LG QUICKMEMO PLUS apk for LENOVO A6000 PLUS

[MENTION=5085586]TitaniumZERO[/MENTION] [MENTION=5097981]abo hani[/MENTION] [MENTION=4940576]Minions_Army[/MENTION] [MENTION=5386198]Mikanoshi[/MENTION], [MENTION=3201113]Lasan[/MENTION] [MENTION=4356477]auni[/MENTION] [MENTION=4976506]Mtakween[/MENTION] [MENTION=4569900]ibanez7[/MENTION] [MENTION=2863152]Yorzua[/MENTION] [MENTION=1922851]Brut.all[/MENTION] [MENTION=4952610]badboy21102000[/MENTION] [MENTION=3648432]Bejda[/MENTION] [MENTION=662522]slekkas[/MENTION] [MENTION=2623456]GalaxyUser[/MENTION] [MENTION=4645794]CNexus[/MENTION] [MENTION=4945621]oracle01642[/MENTION] [MENTION=5093769]Aman_Arora[/MENTION][MENTION=4954533]DarkFalcon[/MENTION][/MENTION] [MENTION=5534302]android.zealot.fervor[/MENTION][MENTION=5138234]Ankush menat[/MENTION][/MENTION] [MENTION=5649771]leon nunes[/MENTION] [MENTION=5606278]AlfasMP[/MENTION][MENTION=4331076]mn1968[/MENTION] [MENTION=6104896]changnhoc123[/MENTION] [MENTION=5864212]Arbaaz98[/MENTION] [MENTION=4435346]LastStandingDroid[/MENTION] [MENTION=5976088]thienbaotan[/MENTION] [MENTION=3500377]jtreez30[/MENTION] [MENTION=5181721]rshbhghelani[/MENTION] [MENTION=5862077]justforreply[/MENTION] [MENTION=5146111]poria1999[/MENTION] [MENTION=5181721]rshbhghelani[/MENTION] [MENTION=5056266]lacoursiere18[/MENTION] [MENTION=5611526]milindbhaliwade[/MENTION] [MENTION=4243910]shag_on_e[/MENTION] [MENTION=6647526]Kiranveer Singh[/MENTION] [MENTION=3508509]vovanx500[/MENTION] [MENTION=4433143]venkat kamesh[/MENTION] [MENTION=5675996]oldman20[/MENTION]

Please port LG QUICKMEMO PLUS app from any LG SMARTPHONE STOCK ROM.

I used before LG L90 D410 smartphone. And I used to take notes by QUICKMEMO app. In that mobile took backup of my notes as a backup file format, now I can't restore that taken backup file because of I don't have LG mobile now (sold) and am now using LENOVO A6000 PLUS. I need to restore my notes (its some more personal that’s why am asking app), so I need QUICK MEMO PLUS app. And nobody doesn’t have LG mobile around me.

I have LENOVO A6000 PLUS mobile, version KITKAT 4.4.4, Please anyone port this app (from LG G2, G3, G4 or any LG smartphone app all smartphones has same app name) and make it should work (change framework file) on all android mobile (AOSP) & mine also.

It's little more difficult to understand this PORTING APP topic for me, just now seen this & have only mobile, that’s why came to ask your support.

If u need any files further please do let me know.

If any doubt is there, regards please PM or mail me to iyyan.om@gmail.com

Thanks to all in advance.
[XDA-University] shag_on_e:
I have the .apk but I am not quite good enough to port it yet. If you'd like I can share the apk with you then if I figure out what I'm doing I'll port it for you.
[XDA-University] iyyappan11:
Ya sure ! Please Share the app here. It will helpful to me & others who want to try out.

Thanks:)
[XDA-University] :
Dude. please respect that people have real lifes. you don't need to mention everyone, it is already enough that you probably have pm'd people and they might have ignored it since it requires some work. I don't know what it requires neither but you messaged me twice about it and I didn't take time to look into it since I had other stuff to do. but seriously mention everybody because you want it isn't okay. there are many explanations of what you should start to begin with if you want it so bad. One is in this thread your mention everybody in.

I give you a hint its in page one post one.

Read first. Then test. Then log. Then read the log. Then place "if needed" the files either in apk _(if libxx.so) and if framework related add the "needed" files in your framework folder. If missing info in framework decompile and look what it lacks. many tutorials is out there. At least you can try for your own. not all apps are as hard to port as you think. Take etc flyme apps

Music player wasn't hard at all "main functionality" at least. you can play your music and browse them.

But please try first instead of message people then write here and @ everyone out there, I and probably many others who was tagged find it very annoying.

Respect that thanks.
[XDA-University] shag_on_e:
So if I stick some touchwiz framework files in my LG G4 framework folder and the permissions files associated with them, is there a high chance of boot problems? No custom recovery has me nervous.
[XDA-University] :
Depends I guess if it relies on boot properties its rare to get it stuck in bootloop if you ask me only I got it on using "all framework files from G4 which was missing and permissions. then I got stuck. But Motorola, ZTE huawei and more has had no issues to boot. I'm tryin to get Motorola 2nd Gen Saturn (64-bit) apps to get it working. However it doesn't use 64 bit files at all.

And I noticed LG G3 seems to have the same structure. Strange that it isn't mentioned.
[XDA-University] :
A good thing is also to read https://source.android.com/devices/tech/dalvik/dalvik-bytecode.html

It will give you good explanations about what is what in the code and what it does.

Regards
[XDA-University] ROBERT CM:
Great work..!!

Thanks :)
[XDA-University] falanca:
nice tutorial thnx
[XDA-University] yyh991013:
Is it compatible with Touchwiz ROM？

I think porting Touchwiz-based apps is the most difficult problem on earth?

来自我的 SM-N9200 上的 Tapatalk
[XDA-University] Toqeer:
Not much dude.
[XDA-University] Jadimo:
Hello,

I'm trying to get the sony illumination app for Xperia SP working on CM12.1.

I've extracted the following files from an deodexed 4.1.2 rom and pasted them with proper permission:

/system/app/SemcIllumination/SemcIllumination.apk

/system/bin/illumination_service

/system/etc/permissions/com.sonyericsson.android.bootinfoif.xml

/system/etc/permissions/com.sonyericsson.illumination.xml

/system/etc/permissions/com.sonymobile.settings.illumination.xml

/system/framework/com.sonyericsson.illumination.jar

/system/framework/com.sonymobile.settings.illumination.jar

/system/framework/semc_bootinfoif.jar

/system/lib/hw/lights.default.so

/system/lib/liblights-core.so

/system/lib/libLightsJni.so

After a cache wipe and reboot the app was installed and even album app got additional permissions.

But it doesn't light the leds up. I'm getting this in logcat:

03-01 21:25:01.800	712	1748	W	ResourcesManager	Asset path '/system/framework/com.sonyericsson.illumination.jar' does not exist or contains no resources.
03-01 21:25:01.801	712	1748	W	ResourcesManager	Asset path '/system/framework/com.sonymobile.settings.illumination.jar' does not exist or contains no resources.
03-01 21:24:08.702	2973	3002	W	PackageManager	Failure retrieving resources for com.sonyericsson.illumination.service: Resource ID #0x0
03-01 21:25:07.017	3136	3136	E	ActivityThread	Failed to find provider info for com.sonymobile.settings.illumination

I'm sure that these files are in correct places and have (rw-r--r--) permissions.

Thanks in advance for any help :)
[XDA-University] mms6430:
SemcIlluminationSetting.apk
[XDA-University] shivbagdi:
I can use this guide for porting rom like touchwiz or sense
[XDA-University] umuturunc:
+1

GT-I9190 cihazımdan Tapatalk kullanılarak gönderildi
[XDA-University] neonkat:
this guide will help to port apps.for porting roms,you will also need to port the framework.
[XDA-University] :
The settings illumination jar file (framework) is missing.

Therefore you don't get it to work "yet"

Log tells you the issue

Also the etc/permission file might be needed. Good luck

---------- Post added at 02:37 PM ---------- Previous post was at 02:36 PM ----------

Well no since basically you'll need use proper files.

This is more good for porting specific apps. Like music player from HTC etc.
[XDA-University] shivbagdi:
how can i find lib and other stuff that need for apk that i wnat to port
[XDA-University] :
Either search for loadlib or check the logcat it'll tell you.

Here's a typical error in log if you're missing a lib

04-04 12:49:16.414 E/AndroidRuntime(8540): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/priv-app/LGEIME-/LGEIME-.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libjni_lgeime_native.so"

This indicates that I'm not having libjni_lgeime_native.so

Though it's strange since the lib is inside the app and shouldn't give me the issue
[XDA-University] shivbagdi:
can i port trebuchet launcher to touchwiz launcher with this guide
[XDA-University] quanganh2627:
In your case, even lib inside apk, but because it's standing at prebuilt of priv-app (or app folder, even), so android require depending lib must put in /system/lib or /vendor/lib or /system/vendor/lib only, then if build from source, it will create a symlink back to that apk's folder (android 5 and newer), otherwise u create by yourself. For app download from Play..., android see as user app, so it's a complete another story, right?
[XDA-University] :
It can also be built in or in priv-app/app/Lib/arm doesn't have to be in system/lib
[XDA-University] quanganh2627:
I know what you saying. But as your log said, your system find native lib when needed in /vendor/lib & /system/lib ONLY, then unless u extract from apk & put that lib to /system/lib by yourself otherwise this apk can't run. And generally, IME apks has some jar file too, also pls check it again.

I've been built a few Rom for my old Zenfone 5 & now is ZenFone 2, so meet this thing a lots. Actually it's been put in system/lib/arm or sometimes not, everything handle by houdini - one method provides by intel to run ARM libs on X86 devices. And how it works need more research as it till close-source now. I've been tried some apk like Asphalt 8. If on stock , it downloaded correct x86 version and run without problems. But if i flash any custom rom, i.e, RR, AICP..., then it downloaded a ARM version, so it can install on my ZenFone but can't run. But if i extract 2 lib of that Arm Asphalt 8, and put them to /system/lib/arm, suddenly it can run like charm.

Another, some prebuilt Asus apk which i sure it has Arm lib only, and non-existing in system/lib too, but existing in a list used by houdini (this file in /data, define whitelist & blacklist for houdini)
[XDA-University] Kezatic:
Guys, I need your help.

I'm trying to port the OnePlus Music Player to my device which is the OnePlus 2 (the app is only available on the OnePlus 3), but I ended up with the app crashing. So I followed the guide on your thread and now I'm stuck at finding the appropriate lib files. This is the error that I get:

10-18 09:50:10.139 E/AndroidRuntime(19314): Caused by: java.lang.ClassNotFoundException: Didn't find class "net.oneplus.odm.insight.tracker.AppTracker" on path: DexPathList[[zip file "/system/app/Music/Music.apk"],nativeLibraryDirectories=[/system/app/Music/lib/arm64, /vendor/lib64, /system/lib64]]

It didn't specify the missing lib files, so what should I do? :confused:
[XDA-University] :
To me it looks for a class (method) most likely in framework which doesn't exist. Could you give me the apk and framework files or link to the firmware you're using to port the app

As mentioned previously this is a typical library missing log. 04-04 12:49:16.414 E/AndroidRuntime(8540): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/priv-app/LGEIME-/LGEIME-.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libjni_lgeime_native.so"

In your case it's a special method it tries to call but fails since it doesn't exist.