AndroidRuntime: java.lang.RuntimeException Phone app not working - Java for Android App Development

Dear Guys,
I have an LTE tab with Android version 4.0.4, when i make GSM call, black screen appears in portrait, and phone app crash by FC message "Unfortunately, the process com.android.phone has stopped", unable to make calls, now with the help of logcat, i found below exception.
AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020109
I am trying to locate the Resource ID #0x7f020109, but unable to find it , Kindly suggest some solution please. Please help me

Take a look on logcat again. Just after these lines you will see where this resource is called.
Post Some more logcat. I try to explain it.
Sent from my GT-S5360 using XDA Premium 4 mobile app

muzi786 said:
Dear Guys,
I have an LTE tab with Android version 4.0.4, when i make GSM call, black screen appears in portrait, and phone app crash by FC message "Unfortunately, the process com.android.phone has stopped", unable to make calls, now with the help of logcat, i found below exception.
AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020109
I am trying to locate the Resource ID #0x7f020109, but unable to find it , Kindly suggest some solution please. Please help me
Click to expand...
Click to collapse
Search for id in public.xml of phone.apk.if its not there it must be in framework .search there
Sent from my GT-S5570 using XDA Premium 4 mobile app

arpitkh96 said:
Search for id in public.xml of phone.apk.if its not there it must be in framework .search there
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thanks for helping me, dear i find in both framework and phone.apk but not found this id, i think its permission issue, here below the selected lines of logcat .. and also full logcat for selected pid "5438" has been attached (phone.txt) and complete log (new.txt) . Kindly please look in to it..
03-26 15:45:48.990 5438 5438 W GsmCallTracker: test.voicecall -false
03-26 15:45:48.990 5438 5438 W GsmCallTracker: voice call is not supported!!
Above two lines are comming only for incoming calls and also for outgoing calls, and no indication of incoming calls are comming on tab.
03-26 15:45:53.725 5438 5438 D Activity: [email protected]() : com.android.phone.PrivilegedOutgoingCallBroadcaster
03-26 15:45:53.745 5438 5438 D Activity: [email protected]() : com.android.phone.PrivilegedOutgoingCallBroadcaster
03-26 15:45:53.925 396 1512 W ActivityManager: Permission Denial: broadcasting Intent { act=android.intent.action.PHONE_STATE flg=0x10 (has extras) } from r.callerPackage (pid=5438, uid=1001) requires com.sec.android.app.factorytest.permission.KEYSTRI NG due to receiver info.activityInfo.packageName/info.activityInfo.name
03-26 15:45:54.526 5438 5438 E AndroidRuntime: FATAL EXCEPTION: main 03-26 15:45:54.526 5438 5438 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: android.content.res.Resources$NotFoundException: Resource ID #0x7f020109

That permission denial is only warning.exception is that resource
Sent from my GT-S5570 using XDA Premium 4 mobile app
---------- Post added at 05:11 PM ---------- Previous post was at 05:10 PM ----------
Decompile phone.apk search incallscreen.smali and search this id and try to find what is it
Sent from my GT-S5570 using XDA Premium 4 mobile app

arpitkh96 said:
That permission denial is only warning.exception is that resource
Sent from my GT-S5570 using XDA Premium 4 mobile app
---------- Post added at 05:11 PM ---------- Previous post was at 05:10 PM ----------
Decompile phone.apk search incallscreen.smali and search this id and try to find what is it
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Dear i copied Phone.apk from /system/app/Phone.apk and when i try to decompile its gives below output
./apktool d Phone.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/usr123/apktool/framework/1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103031b
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x0103031b
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01040591
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValueExt(ResScalarValue.java:86)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlValue(ResScalarValue.java:55)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlItemValue(ResScalarValue.java:48)
at brut.androlib.res.data.value.ResArrayValue.getType(ResArrayValue.java:74)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:50)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:440)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:243)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
In extracted Phone folder, i trying to found that resource id but not found, can you please suggest , i think decompile is not done properly and this is the same reason for incoming calls also ? as currently no indication of incoming calls on tab

You have not installed correct framework.until you are able to fully decompile you cant say that didnt found the resource
Sent from my GT-S5570 using XDA Premium 4 mobile app

arpitkh96 said:
You have not installed correct framework.until you are able to fully decompile you cant say that didnt found the resource
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Dear, thanks so much for your great support, can you please suggest the right way of decompile or if feasible to you can i attach the Phone.apk file. Please suggest..

There are lot of guides on xda search
Sent from my GT-S5570 using XDA Premium 4 mobile app

arpitkh96 said:
There are lot of guides on xda search
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Right, i am searching and will get back to you after successful decompile Phone.apk , Thanks again dear so much..

muzi786 said:
Right, i am searching and will get back to you after successful decompile Phone.apk , Thanks again dear so much..
Click to expand...
Click to collapse
Now Phone.apk has been successfully decompiled.....
./apktool d Phone.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/usr123l/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
and i found missing resource not found id in below file
res/values/public.xml: <public type="drawable" name="APKTOOL_DUMMY_0109" id="0x7f020109" />
Kindly please suggest..

muzi786 said:
Now Phone.apk has been successfully decompiled.....
./apktool d Phone.apk
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/usr123l/apktool/framework/1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
and i found missing resource not found id in below file
res/values/public.xml: <public type="drawable" name="APKTOOL_DUMMY_0109" id="0x7f020109" />
Kindly please suggest..
Click to expand...
Click to collapse
Search in framework-res.apk and if you have samsung device search twframework-res.apk also.
And as previously said search in that smali that for what purpose/element this id is being referred.
Had you deleted any apk from your system earlier?
Sent from my GT-S5570 using XDA Premium 4 mobile app

arpitkh96 said:
Search in framework-res.apk and if you have samsung device search twframework-res.apk also.
And as previously said search in that smali that for what purpose/element this id is being referred.
Had you deleted any apk from your system earlier?
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Let me check and will update you...

Dear arpitkh96
No i cant delete any apk file, I search ID in framework-res.apk and twframework-res.apk files, also i search InCallScreen.smali file but cant find in Phone.apk and frameworks apk , however i also decompile SecPhone.apk, SecContacts.apk and Settings.apk and found this id in SecContacts.apk and Settings.apk in --> public.xml
In SecContacts.apk
res/values/public.xml: <public type="drawable" name="call_dial_btn_08_press_tw_h" id="0x7f020109" />
In Settings.apk
res/values/public.xml: <public type="drawable" name="ic_sysbar_quicksettings" id="0x7f020109" />
Kindly please suggest , thanks for your great help and support.

All I can say is resource not found exception means that corresponding drawable (named like tw button 08...)is not available .search for this drawable.if its not present make one with same name.otherwise if are on stock unrooted ROM,its better to take it to Samsung care
Sent from my GT-S5570 using XDA Premium 4 mobile app

arpitkh96 said:
All I can say is resource not found exception means that corresponding drawable (named like tw button 08...)is not available .search for this drawable.if its not present make one with same name.otherwise if are on stock unrooted ROM,its better to take it to Samsung care
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Right, actually its LTE tab which comes with out calling faclility i have rooted it and enabled voice via "voice_capable=true" in framework-res.apk, i am on stock ICS ROM, can i need to rebuild Phone.apk or can i replace the Phone.apk ? please kindly just guide me. Thanks a lot for great information..

muzi786 said:
Right, actually its LTE tab which comes with out calling faclility i have rooted it and enabled voice via "voice_capable=true" in framework-res.apk, i am on stock ICS ROM, can i need to rebuild Phone.apk or can i replace the Phone.apk ? please kindly just guide me. Thanks a lot for great information..
Click to expand...
Click to collapse
You can not use phone.apk from other device or other android version. though you can build but it requires loads of skills.and if samsungs dependencies are in phone.apk then even that would not work.its better to use a custom ROM.only that could help you.maybe devs have a better solution. I cant say
Sent from my GT-S5570 using XDA Premium 4 mobile app

arpitkh96 said:
You can not use phone.apk from other device or other android version. though you can build but it requires loads of skills.and if samsungs dependencies are in phone.apk then even that would not work.its better to use a custom ROM.only that could help you.maybe devs have a better solution. I cant say
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Right, so its mean we have only option as you suggest before to rebuild Phone.apk for fixing the missing drawable, as per above findings, is call_dial_btn_08_press_tw_h" id="0x7f020109" related to missing resource in Phone.apk ? as this reference found in SecContacts.apk --> public.xml , its image file present in drawable folder of SecContacts, as below
SecContacts/res/drawable-sw600dp-mdpi/call_dial_btn_08_press_tw_h.png
SecContacts/res/drawable-sw800dp-mdpi/call_dial_btn_08_press_tw_h.png
So can i use below procedure for this missing drawable
1)Copy this image file to decompiled Phone directory, like below, as this image is currently not present in Phone drawable directories.
Phone/res/drawable-sw600dp-mdpi/call_dial_btn_08_press_tw_h.png
Phone/res/drawable-sw800dp-mdpi/call_dial_btn_08_press_tw_h.png
2) Edit Phone.apk --> public.xml and add reference of it like as below
replace this line --> <public type="drawable" name="APKTOOL_DUMMY_0109" id="0x7f020109" />
with new line --> <public type="drawable" name="call_dial_btn_08_press_tw_h" id="0x7f020109" />
3) rebuild Phone.apk and then copy it in system/app/ directory.
Either above procedure is right ? Pleas suggest

muzi786 said:
Right, so its mean we have only option as you suggest before to rebuild Phone.apk for fixing the missing drawable, as per above findings, is call_dial_btn_08_press_tw_h" id="0x7f020109" related to missing resource in Phone.apk ? as this reference found in SecContacts.apk --> public.xml , its image file present in drawable folder of SecContacts, as below
SecContacts/res/drawable-sw600dp-mdpi/call_dial_btn_08_press_tw_h.png
SecContacts/res/drawable-sw800dp-mdpi/call_dial_btn_08_press_tw_h.png
So can i use below procedure for this missing drawable
1)Copy this image file to decompiled Phone directory, like below, as this image is currently not present in Phone drawable directories.
Phone/res/drawable-sw600dp-mdpi/call_dial_btn_08_press_tw_h.png
Phone/res/drawable-sw800dp-mdpi/call_dial_btn_08_press_tw_h.png
2) Edit Phone.apk --> public.xml and add reference of it like as below
replace this line --> <public type="drawable" name="APKTOOL_DUMMY_0109" id="0x7f020109" />
with new line --> <public type="drawable" name="call_dial_btn_08_press_tw_h" id="0x7f020109" />
3) rebuild Phone.apk and then copy it in system/app/ directory.
Either above procedure is right ? Pleas suggest
Click to expand...
Click to collapse
Don't edit public.XML.keep it as it is.other steps same.
And I don't think this would solve the problem. as that apktool... Id indicates that it will automatically take resources from dependency apps or frameworks
please if your device has forum then better ask there else ask it in android q & a forum.I have no experience with type of problems you are facing and what you are trying to achieve so its better if you ask some expert or people who are experienced in these type .I had just given you knowledge which I had.moreover this forum is for java app development ,not for decompiling etc.Sorry please don't mind but I can't help you.probably steps you have followed to enable voice call must of seen from a guide etc.ask those people
Sent from my GT-S5570 using XDA Premium 4 mobile app

arpitkh96 said:
Don't edit public.XML.keep it as it is.other steps same.
And I don't think this would solve the problem. as that apktool... Id indicates that it will automatically take resources from dependency apps or frameworks
please if your device has forum then better ask there else ask it in android q & a forum.I have no experience with type of problems you are facing and what you are trying to achieve so its better if you ask some expert or people who are experienced in these type .I had just given you knowledge which I had.moreover this forum is for java app development ,not for decompiling etc.Sorry please don't mind but I can't help you.probably steps you have followed to enable voice call must of seen from a guide etc.ask those people
Sent from my GT-S5570 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Dear arpitkh96
Thanks for your comments and suggestions, i found XDA is the best forum to acheive this kinds of issues, but unfortunately the LTE 8.9 Android tab section is not fully active, perhaps may be this has been considering old device as i found some threads related to enable voice features but i think this kind of issue is the first one which i was reported. I also posted on other forums but dont get any response. Also i am feeling afraid to flash CM10 rom but as per R&D and asking on XDA, still not get any reponse. I hope this not a big deal for a normal developer, and i hope may be in future this issue will resolve, or i will try myself to become a developer . I appreicate your help and time for communication as my learning is keep growing up. Thanks again once and best wishes for you and for all developers.

Related

[REQ][DEV] Can someone edit this for me?

I need to remove the clock from my status bar, I know that it's /res/layout/tw_status_bar.xml but I can't decompile anything to save my life, it's getting in the way of my theme! Can someone help me out, thanks!
I believe this line needs to be removed:
<com.android.systemui.statusbar.policy.Clock android:textSize="19.0dip" android:textColor="#ffa6a6a6" android:gravity="left|center" android:id="@id/clock" androidaddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
please post your log, so we can see the problem on why you cant decompile, i also had something in my theme, stoping it from recompiling, then i took a look at the log, with some help from my fellow xda users, so maybe i can help you, because i got this log thing down now, once its out of your theme, you can compile and recompile freely
I don't know how, that's why I can't decompile it!
Sent from my GT-I9100 using xda app-developers app
Installing framework-res.apk is needed for decompiling systemui
Try "apktool if framework-res.apk"
PS. Don't use apk manager. Use the real apktool
Sent from my GT-I9100 using xda premium

[Q] I cant Recompile SystemUI.apk on Aurora ICS 4.1

Hi guys,
I was decompile SystemUI and i have changed Statusbar.xml and i want recompile SystemUI but i cant recompile when i want recompile;
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)
at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.j
ava:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSourceName(CommonTreeN
odeStream.java:106)
at org.antlr.runtime.tree.TreeParser.getSourceName(TreeParser.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliTreeWalker.java:372)
at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecogniz
er.java:192)
at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)
at org.jf.smali.smaliTreeWalker.smali_file(smaliTreeWalker.java:451)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:85)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
this error. Please give me advice thanks...
uppp! Any idea ?
freidel1 said:
uppp! Any idea ?
Click to expand...
Click to collapse
Try recompiling without changing anything. If it fails it means your apktool has a problem. Otherwise you are making a bad change... what are you trying to modify?
Sent from my U8800
spirosbond said:
Try recompiling without changing anything. If it fails it means your apktool has a problem. Otherwise you are making a bad change... what are you trying to modify?
Sent from my U8800
Click to expand...
Click to collapse
Thanks your post i tried recompiling without changing anything but same error. After i tried decompile X5settings and i tried recompile X5settings it gives same error im using http://forum.xda-developers.com/showthread.php?t=1805408 this guide. i was download https://www.dropbox.com/s/z60enehmswxmceb/Decompiling.zip and i extract it(its include java.exe i was copyed java.exe to System32). I wasn't download java. How to download java(Which version jdk jdr etc) ?
uppp

AndroidManifest.xml problem

So i have some problems, I'm developing a small app which u can see in my singature, in newer versions I added one more activity, that is actually page for FAQ, and code working as it should but AndroidManifest.xml gives me a problem...
I added a new activity to AndroidManifest.xml and added root permisions but when i save and export app, AndroidManifest.xml goes back to "stock" unchanged file and when i run my app and try to go to that new activity it gives me force close normally because there is no second activity in AndroidManifest.xml
so what to do? I'm shure there is someone who knows what is problem
btw im using Eclipse + Android SDK without any other stuffs
Post your manifest that you are trying to save and then the log cat when it errors out.
Do you modify the manifest of the right project?
If you do, try cleaning the project or deleting the project from the workspace and adding it again.
zalez said:
Post your manifest that you are trying to save and then the log cat when it errors out.
Click to expand...
Click to collapse
But there is no error, everything is normal
nikwen said:
Do you modify the manifest of the right project?
If you do, try cleaning the project or deleting the project from the workspace and adding it again.
Click to expand...
Click to collapse
Yes, I'm modifying manifest of right project, will try that
Sent from my GT-I9100 using xda premium
By any chance, are you uninstalling before adding the new APK via Eclipse? I ran into issues with some files if I didn't do an uninstall first...
@buildakicker, i don't understand you... did you meant am i uniinstalled app from my phone before testing it? if that is question then no, i didn't do that, and that is not problem...
Problem was in eclipse, i just did what @nikwen said and app working perfectly
I was speaking of uninstalling the app off the device and then re-installing it fresh... Glad you got it figured out!
Sejk97 said:
@buildakicker, i don't understand you... did you meant am i uniinstalled app from my phone before testing it? if that is question then no, i didn't do that, and that is not problem...
Problem vas in eclipse, i just did what @nikwen said and app working perfectly
Click to expand...
Click to collapse
Still don't understand you xD
Sorry but English is not my native language
Sent from my GT-I9100 using xda premium
Sejk97 said:
Problem vas in eclipse, i just did what @nikwen said and app working perfectly
Click to expand...
Click to collapse
Great. :good:

apk reverse engineering

Hello and congratulations for the forum.
I'm trying to recognize malware starting from static code android in particular in permissions.
When I try to decompile apps like WhatsApp unfortunately many strings are obscured, particularly getSystemService method arguments.
How can I do to make them readable?
thanks for your attention
How do you decompile?
Sent from my GT-S5360 using xda app-developers app
I use dex2jar to get source java code
It's illegal to do so
I am a researcher
How antivirus are developed without knowing virus signature?
We call it "Ethical hacking". Eg: SQL injection technique to assess security vulnerabilities of web app.
Sent from my GT-S5360 using xda app-developers app
there is not a way to decrypt string value in the source code please? Yes, this is for ethical hacking, of course
I want to catch whatsapp notification to analyze the text of the message in real time, for insert a routine I want to catch this event and I want decompile code
Franceso thought you would that little thanks button for supporting your views
Sent from my GT-S5360 using xda app-developers app
sure,
you can help me please?
This should be your answer:
dsgwords.blogspot.com/2013/03/android-runtime-class-loading.html?m=1#!/2013/03/android-runtime-class-loading.html
Also try decrypting input.jar in andriod services framework path
Sent from my GT-S5360 using xda app-developers app
practically to get the file. dex should I do
/ dx - dex - output = output.jar input.jar
and then use dex2jar and decompiler?
this way I can see all encrypted strings of WhatsApp?
Many thanks
This is what I wanted to do:
decompile WhatsApp
find the code snippet to send notification
before sending the notification to send the contents of the message to my program
and then send the notification normally
Do you think it possible?
When decompilo WhatsApp many strings are encoded in copdice source, this is my problem.
This in an example:
String[] arrayOfString = new String[2];
char[] arrayOfChar1 = "3&j&>;, =?&-` 3+z=><f]\027\003\027\[email protected]\013\036\034".toCharArray();
many many thanks
Good question. I have not tried decompile procedure. I wil refer my friend.
I suggest one thing. You compile a java piece of string code. Also a string array. Decompile and see. Then make apk. Decompile and see. You get difference then we see if we can apply any charcode standards like ascii.
Sent from my GT-S5360 using xda app-developers app
Please try below post friend
Did you try this:
http://androidorigin.blogspot.in/2011/02/dex-format-to-jar-format.html
Open Source
http://code.google.com/p/dex2jar/
http://code.google.com/p/smali/
and an example
http://code.google.com/p/smali/source/browse/examples/HelloWorld/HelloWorld.smali
Also I found string encrypters being used in java programs to defeat decompile or disassemble. Need to find out if whatsapp use any such algorithm like SHA. I leave it to you just research some more.
When I get time I will try for myself and let you know. Have official work thanks buddy.
(Mods please let me know instructions on posting outside urls or the rules pertaining to it.)
PS: Remember to use same java compiler version that used to compile whatsapp. After you get jar, you can check which version created edit.
To know go to:
jar file > Open with Winzip or WinRar (Any archiver Winrar preferred. Do not double click it will execute) -> META-INF directory -> MANIFEST.MF
You should see something like this
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_08-b03 (Sun Microsystems Inc.)
Hope that helps.
Use dex2jar to convert the APK into a standard JAR file and then JD-GUI to view the source code. However if the application was compiled with proguard obfuscation then you will have a very hard time to understand the code.

Need Help Porting OnePlus Music Player

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?

Categories

Resources