Hey guys!
I need your help. I'm trying to port the OnePlus Music Player to the OP2. As you all may or may not know, the app will crash on every ROM available for the OP and no one has made a port yet. I think it's crashing is due to the missing lib files based on the logcat. I,ve been using this thread as guide to port the app:
http://forum.xda-developers.com/showthread.php?t=2476050
However, the problem now is I can't find the appropriate lib file(s) for the app. I tried to look into the logcat, but it gave me this error instead:
10-18 10:51:30.636 E/AndroidRuntime(13731): 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]]
By the way, the app is extracted from a ROM from this thread:
https://forums.oneplus.net/threads/port-oxygenos-3-x-x-deodexed-magisk-root-xposed.467707/
So now, I need you're guys help to me find the appropriate lib file(s) and to get this app working. Any help would be greatly appreciated
Kezatic said:
Hey guys!
I need your help. I'm trying to port the OnePlus Music Player to the OP2. As you all may or may not know, the app will crash on every ROM available for the OP and no one has made a port yet. I think it's crashing is due to the missing lib files based on the logcat. I,ve been using this thread as guide to port the app:
http://forum.xda-developers.com/showthread.php?t=2476050
However, the problem now is I can't find the appropriate lib file(s) for the app. I tried to look into the logcat, but it gave me this error instead:
10-18 10:51:30.636 E/AndroidRuntime(13731): 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]]
By the way, the app is extracted from a ROM from this thread:
https://forums.oneplus.net/threads/port-oxygenos-3-x-x-deodexed-magisk-root-xposed.467707/
So now, I need you're guys help to me find the appropriate lib file(s) and to get this app working. Any help would be greatly appreciated
Click to expand...
Click to collapse
here you go!:laugh:
instal like a normal apk. Onle for MM
XpRoPhEtX2015 said:
here you go!:laugh:
instal like a normal apk. Onle for MM
Click to expand...
Click to collapse
Thnx dude. BTW, just curious, how did you get it to work?
Related
Ok I'm posting this in hope that a developer will answer.
I have been trying to edit .xml files on the droid x. I'm running linux (who runs windows anyway) I have experience in c++ and scripting , but non in themeing.
I have download a bunch of xml file editors. The problem is that every time I open one with the editor I get a error saying " coding not supported ". What ia the deal here and why? Does anyone have any suggestions or ideas why?
Thank you xda
The .xml files need to be decompiled first. Otherwise, they are unreadable. The only way I know off is to decompile the entire apk file with apk manager or aapt.
Note that you have to recompile the apk (xml) before putting it back on your phone.
GL
Thank you makes sense.
B-dub25 said:
Ok I'm posting this in hope that a developer will answer.
I have been trying to edit .xml files on the droid x. I'm running linux (who runs windows anyway) I have experience in c++ and scripting , but non in themeing.
I have download a bunch of xml file editors. The problem is that every time I open one with the editor I get a error saying " coding not supported ". What ia the deal here and why? Does anyone have any suggestions or ideas why?
Thank you xda
Click to expand...
Click to collapse
Still working with this myself. You need to look on google code for smali/baksmaling, as this is what is used to compress/decompress the xml files.
Thank you systemadmin that's what I thought I had to do, decompile the. Xml file ,but just didn't now how thank you for your reply.
No worries. I have been working on trying to theme and what not myself, and it seems pretty complex at the beginning. Im trying to get some tips from like bignadad, acidbath, and some of the other big developers out here, but they are usually pretty busy and I haven't had much luck. If you start making some progress, send me a PM and share the love =)
Sent from my DROIDX using XDA App
I'm trying to modify framework-res.apk and I am able to decompile it. I modified styles.xml and colors.xml. My problem is that I can't compile it back. I'm getting a lot of errors when I try to. I'm using the latest version of apk multi-tool. I'll post the logs later because I'm on phone right now, but anyone has any idea of what might be causing the problem? Any help is appreciated.
Tapatalked.
Silvane said:
I'm trying to modify framework-res.apk and I am able to decompile it. I modified styles.xml and colors.xml. My problem is that I can't compile it back. I'm getting a lot of errors when I try to. I'm using the latest version of apk multi-tool. I'll post the logs later because I'm on phone right now, but anyone has any idea of what might be causing the problem? Any help is appreciated.
Tapatalked.
Click to expand...
Click to collapse
Even I am trying to compile it but i also get errors.. I edited styles.xml
Sent from my GT-S5360 using XDA
Use yhe lattest apk manager not apk tool is a old one brotha
Hehehe apk manager more powerfull than apktool
Sent from my GT-S5360 using xda premium
umm...I always failed when using stock framework-res.apk. after that I try to copy the same framework-res.apk to c:users/<username>/apktool/framework/ then rename it to 1.apk. I don't know why, but it works.
@evanlocked: I thought both apk manager and apktool are actually same program. the difference is only on its interface. IMO it doesn't matter which one did everyone choose.
kurotsugi said:
umm...I always failed when using stock framework-res.apk. after that I try to copy the same framework-res.apk to c:users/<username>/apktool/framework/ then rename it to 1.apk. I don't know why, but it works.
@evanlocked: I thought both apk manager and apktool are actually same program. the difference is only on its interface. IMO it doesn't matter which one did everyone choose.
Click to expand...
Click to collapse
Yeah but I face some issue using apk tool bro on my laptop but using apk manager its works
Sent from my GT-S5360 using xda premium
Thanks for the replies guys. I was able to compile it successfully with apk manager. Now my problem is that I can't push it via adb. Says no devices found, although when not in recovery it works fine enough. Any ideas or alternative methods to push framework-res?
Tapatalked.
Make a update script and flash it.
I always use to flash it
& it works awesome
Silvane said:
Thanks for the replies guys. I was able to compile it successfully with apk manager. Now my problem is that I can't push it via adb. Says no devices found, although when not in recovery it works fine enough. Any ideas or alternative methods to push framework-res?
Tapatalked.
Click to expand...
Click to collapse
m still stuck with those probs how did ya make it work?
I used apk manager instead of apk tool and it compiled. I've yet to try the apk I modded though. XD
Tapatalked.
Silvane said:
I used apk manager instead of apk tool and it compiled. I've yet to try the apk I modded though. XD
Tapatalked.
Click to expand...
Click to collapse
thanks for the thread and the posts you all made, i have been searching for a thread like this for 2days. going to try apk-manager now and the renaming framework-res.apk to 1.apk.
Im using APK Tool and no prob. at all when de/re-compile .apk
The question is...
Why after recompile the signed/unsigned .apk the size always smaller than the original .apk? Is that normal? Tho even smaller its installable and work
Altermania said:
Im using APK Tool and no prob. at all when de/re-compile .apk
The question is...
Why after recompile the signed/unsigned .apk the size always smaller than the original .apk? Is that normal? Tho even smaller its installable and work
Click to expand...
Click to collapse
Yes its normal the compression rate is max while re-compilin nd u need not be worried about it
Sent from my GT-S5670 using XDA
Hello,
THANKS FOR ALL THE HELPS THIS FORUM IS PROVIDING
one of my humble request is
can anybody upload the manifest explorer apk for installing in my LG G2 D 802.
The zip file I have downloaded for the original site can not be installed in the phone even with cwm recovery installation.
Kindly help me
thanking you
drsaidalavi said:
Hello,
THANKS FOR ALL THE HELPS THIS FORUM IS PROVIDING
one of my humble request is
can anybody upload the manifest explorer apk for installing in my LG G2 D 802.
The zip file I have downloaded for the original site can not be installed in the phone even with cwm recovery installation.
Kindly help me
thanking you
Click to expand...
Click to collapse
The zip they have in their repo is an eclipse project that you would have to compile to make an apk. If you want to view android manifest.xml, you could also just decompile the app you want to know about.
Please post any questions in Q&A, and you may get more help with this particular question in Android General Q&A.
Hello All,
I would like to mod a bit the default dialer in the G2. i found the package com.android.contacts which I believe its related however there are only XML files (under res folder) but no source code, i wasnt able to find any odex file.
so my questions is where in the file system can I find the source code/package for the default G2 dialer?
Thank you for your help in advanced.
[email protected]@c3 said:
Hello All,
I would like to mod a bit the default dialer in the G2. i found the package com.android.contacts which I believe its related however there are only XML files (under res folder) but no source code, i wasnt able to find any odex file.
so my questions is where in the file system can I find the source code/package for the default G2 dialer?
Thank you for your help in advanced.
Click to expand...
Click to collapse
I believe the dialer apk is system/priv-app/LGTeleservice.apk and the source code is in the android manifest
Art Vanderlay said:
I believe the dialer apk is system/priv-app/LGTeleservice.apk and the source code is in the android manifest
Click to expand...
Click to collapse
Thank you!
I believe that the related APK file is com.android.contacts since I managed to find several related classes which I believe are related, see below:
AlphabetConverter.java
NumberToHebrewConverter.java
NumberToRussianConverter.java
NumberToChunjiinConsonantConverter.java
etc
So based on the above I believe that I am on the right direction however im currently trying to understand the idea behind the hashmap and its functionality and also find the relevant class for handling the click button events.
does anyone have any experience with that?
Thank you in advanced.
Dear developers, I'm sorry for the noobie question, but I'm kinda trying to port apps myself, and I'm confused when it comes to which library is an app using (*.so files)....When I decompile an app, I noticed that if it is using a library, in the smiles somewhere in the code there is something like that "LoadLibrary(string***)" but there is no name of the lib written.....how do you figure out which is the lib that its using? And second, where do you get this lib from......because as I looked through some ported apps by You, dear developers, (like SyncHub from Xperia Z3 and Portrait Retouch from Xperia C3), You had included some libs in the apks, but I cant find those libs anywhere in the firmware itself.......So do You create those libs yourself, or....?
VladoBENZ said:
Dear developers, I'm sorry for the noobie question, but I'm kinda trying to port apps myself, and I'm confused when it comes to which library is an app using (*.so files)....When I decompile an app, I noticed that if it is using a library, in the smiles somewhere in the code there is something like that "LoadLibrary(string***)" but there is no name of the lib written.....how do you figure out which is the lib that its using? And second, where do you get this lib from......because as I looked through some ported apps by You, dear developers, (like SyncHub from Xperia Z3 and Portrait Retouch from Xperia C3), You had included some libs in the apks, but I cant find those libs anywhere in the firmware itself.......So do You create those libs yourself, or....?
Click to expand...
Click to collapse
The library files will be in /system/lib/
anagramgenius said:
The library files will be in /system/lib/
Click to expand...
Click to collapse
Well thats the problem, that they are not there....Both the examples, ported SyncHub and Portrait Retouch, has libs in them, that I cant find in system/lib.....and I wonder where the developers got them from
VladoBENZ said:
Well thats the problem, that they are not there....Both the examples, ported SyncHub and Portrait Retouch, has libs in them, that I cant find in system/lib.....and I wonder where the developers got them from
Click to expand...
Click to collapse
Did you really search those lib files in Z3 or C3? Because I found the lib file of SyncHub, i.e. libxt.so in /system/lib/
anagramgenius said:
In what firmware of Z3 you searched for those library files?
Click to expand...
Click to collapse
I checked several firmwares, not just one......if its easier, lets talk for one file in particular......in order SyncHub to work, it obviously needs libxt.so......which a developer included inside his ported apk......so the original apk is absolutely the same, as his, except that there is no libxt.so file in it......so i tried to look for it in all folders of the firmware......and there is no such file......there are libxt_native.so........but its like 1 mb, whereas the file from the ported apk is like 10 mb
VladoBENZ said:
I checked several firmwares, not just one......if its easier, lets talk for one file in particular......in order SyncHub to work, it obviously needs libxt.so......which a developer included inside his ported apk......so the original apk is absolutely the same, as his, except that there is no libxt.so file in it......so i tried to look for it in all folders of the firmware......and there is no such file......there are libxt_native.so........but its like 1 mb, whereas the file from the ported apk is like 10 mb
Click to expand...
Click to collapse
I even found the lib file of textinput-tng.apk i.e. libswiftkeysdk-java.so in /system/lib/
anagramgenius said:
I even found the lib file of textinput-tng.apk i.e. libswiftkeysdk-java.so in /system/lib/
Click to expand...
Click to collapse
Yes, it is there , but all the lib files that are in these ported apps, i cant find....and im wondering if the developers that port apps, are making them themselves
VladoBENZ said:
Yes, it is there , but all the lib files that are in these ported apps, i cant find....and im wondering if the developers that port apps, are making them themselves
Click to expand...
Click to collapse
AFAIK, they don't make the library files. It will be in the firmware itself.