I have a webkit plugin apk (just like the sample BrowserPlugin under development/samples). I want to integrate it into the system.img. I build it as the preload apk in /system/app/, but when the phone boot up, the apk is not installed properly.
If I install the apk in /data/app/ manually, it works well.
when the apk in /system/app/, the .so inside the apk can not be extracted to /data/data//lib/
Anyone know how to integrate the webkit plugin as a preload apk on Gingerbread, please kindly help me.
Thanks
.so file should be merged to the system.img separately. If it's a browser plug-in, it should be copied to /system/lib/plugins/<package_name>
It looks like there's no mechanism in android to extract .so file from an apk file that contains .so files if it's integrated with the system.
Related
I built apk in Android studio but its extension shows as Mobogenie apk instead of normal apk.
It's because you have installed mobogenie software on your pc. It's valid apk file. Don't worry about it.
Mobogenie is just your default application to open an apk file. Your apk file is right.
I am currently working on an android app but my hard drive unfortunately crashed and I lost all the data on it... I am trying to recover my source code from the debug APK I had installed on my phone (using dex2jar and jd-gui) however, it seems like the classes are not present in the classes.dex and classes2.dex (both files are tiny and do not contain any of the classes in my code, see photo).
I used apk extractor to get the apk from my installed app and I cant seem to get anything close to my original classes... I am wondering if I am doing something wrong to get the APK from the installed app; any help would be greatly appreciated.
Thanks.
For de-compiling your APK to Java classes you can go to this site -
http://www.javadecompilers.com/apk
Just upload your apk and click on decompile. It should work for you !
I've been having some issues playing radio streams with MediaPlayer in a particular case. But that's not the point, the point is that I found an app that does exactly what I can't do, and I'm suspecting that is because It's using the Cordova / Phongap media plugin. My question is, given an apk there's anyway to know if the apk was build with Phonegap / Cordova or if was made with plain native Android code?
You download the apk (there are online tools to do that)
You unzip the apk (an apk is just a zip with a specific content)
In the extracted folder search for the assets\www\ folder.
If it's a cordova or phonegap app, you should see a file cordova.js in that folder.
(Yes, it's that easy to get all the sources of a cordova app :( )
Hi i'm new to android my client want to run the app in their on Android Device i go through the many answers through Stack overflow like this:-
How to make .apk file
How to build an APK file in Eclipse?
but i'm unable to make build.
I want to make a build of app in which is usually .apk extension and how i'm able to install this .apk file in my clients android device it doesn't have any eclipse or IDE.
Please suggest me the way or some links regarding this process to build and install the app in clients android device without using eclipse or any IDE.
Thanks in advance.
Eclipse create .apk file of your project by itself and save it in bin folder copy that apk file and send that to client and tell him to save apk on SD card and run directly from SD card. It will work.
the moment you run the app on the emulator or a device, the .apk file is created and put in /%YOUR PROJECT%/bin/app.apk
you can send that to your client...
I have an APK generated from eclipse which contains a native library packaged inside the APK.
I start a service when BOOT_COMPLETED is received. Normal version of SO file and APK runs fine.
I had setup the debug environment and tried to debug this app and native code.
Now the problem is if i install this through ADB install my.pack.age.app it gets copied to data/app and then i dont get the BOOT_COMPLETED Intent.
When i manually put this apk to system/app folder i get unsatisfied linker error as library not found. It is searching in path data/data/my.pack.age.app/lib.
I have the debug version of native library generated with gdbserver file and other gdb.setup and other things are setup properly for debugging.
How can i debug this apk while installing in the /system/app folder?
PS: Modifying the Packages.xml and packages.list by hand and changing the path of native library is not in my option as it would require every time to modify that file & may get corrupt installation.
I found the problem, For system APKs that are bundled with Device from OEM,
You have to put the library in System/lib folder for all the APk in system/app folder.
I was putting it packaged inside the APK.