3

I'm trying to reverse engineering the apk developed by using React-Native. I have lack of knowledge about React-Native and also Android. I don't know how the react-native work on lower level but I read that under the currently recommended bundling instruction of JS bundle, JS will be includes as plaintext can be easily extracted.

However, I used the dex2jar to convert as jar file and open the source code on JD-GUI / JADX and haven't found the location of JScode. All I want to try is add some smali code to test how it works after recompiling the apk. But I have no idea of the JScode location.

In conclusion, I want to know about the Javascript Code location in decompiled apk.

rachel_hong
  • 471
  • 2
  • 6
  • 15
  • Hi, please check first whether the code obfuscation is done or not. You can easily check if obfuscation was successful In Android Studio via APK analyzer. if done then not possible, if not done then you can go ahead! May this will help you. –  Apr 16 '18 at 13:34
  • can i get source code (JS files) from apk? – Rajesh N Aug 02 '18 at 05:15

1 Answers1

4

You can found the javascript bundle using APK Analyzer, like the image below :

enter image description here

If you using MacOS, you can unzip the apk, with Open the terminal and type :

unzip app.apk

You can find the javascript bundle inside of the assets folder. The name of the bundle is index.android.bundle

robbywh
  • 313
  • 5
  • 20