I have been building a custom ROM and I added some pre-build apk's to this ROM.
When I actually flash the ROM I do see that those new "system apps" are preinstalled.
Still I was wondering about the location of the installation?
When I search on the net everyone actually refers to /system/apps/ as the location, and yes the precompiled .apk files are there. Still it's just an apk, a compressed file not an installed app.
Normally when I install an app it's resources/files are placed under /data/data.
So now I would like to know where a pre-build system app gets installed?
In my specific example I actually ship some binaries and some scripts (as assets) with my app, which when being installed as a non-system app, can simply be found under /data/data/my.app.name/bin
The funny thing is that when I start the app after it has been supplied as a system app in my ROM it will actually be able to see the supplied script files, yet when I search for those I cannot find them!
Just curious if anyone knows how a system app installation actually works, what are the performed actions, why can I only find the .apk and not the "decompressed" installation directory?
Related
I need to extract the APK of my application when it is installed, I know there is an application called APK EXTRACTOR which performs this task, but in my case I want to extract the apk myself from delphi code.
So far I have only been able to find the APKs of pre-installed applications on the phone in the path "/system/app" and "system/priv-app" but internally I cannot find the apk of my app.
I recall a long time ago a file manager did a backup
of all the applications.
It puts all the APKs in a directory on the phone
It was on the GOOGLE market.
It might help to find out how he does it.
I have written code to download and open the installation screen where if user can allow to install it will get installed, but I required auto installation of app. So if someone have any trick to implement auto installation of local APK file using Android Studio. Please share.
What you are asking is a security risk and wont be allowed by the operating system.
I'm sure there's malware out there that can do it, but those often use exploits that are 'quickly'/eventually patched.
What the best way (in terms of efforts) to test android application by ordinary users (that have no ability to install android sdk, connect usb cable and so on things)?
I see two variants:
Google Play + alpha/beta versions restricted only for several users, but according to this delay may be several hours, and it is too long for me.
Is it possible to reduce this time delay to several minutes? Is it possible to automate, so our CI upload apk file after each commit?
Publish apk file on our web server, so user can install it via download. But I tried this way by myself, and for some reason apk file was openned by program that can open zip files, and this program not suggest install it, I have to install additional file manager, find apk file in download folder and install it with help of file manager. Is it expected behaviour for android, when I open external apk file?
may be there is more variants?
I built my first android app a few months ago and had it installed on my phone. After a few weeks I lost the app from my Windows PC because of a new installation of Windows. Now I need the app and it still resides inside the phone but I can't seem to find the apk file anywhere! I have tried looking in the app and app-private folders and also in the data folder but no luck. Any help would be appreciated.
Regards,
Owais
If that application still installed in your device then you can get that APK definitely
Find a application on play store named apk extractor.
It will be ask you for paid but skip it and install it, then there will be list of applications after installing apk extractor.
Just select the application for which you want apk.
I am wondering if it is possible to build an .apk-file from an app on my android device, meaning the apk will build and install itself on my phone for instance.
This has to be done without any USB-cables etc!
Best regards
First question: You dont wanna build an apk form existing app, do you?
However, if you have Eclipse, what so ever, on your computer and made the apk file, you can transmit it by e.g by wlan to your smartphone and install it. Beginners could do it like this:
Copy the APK file to your Android’s memory card
Download and install the Apps Installer application from the Android Market
Once installed, the Apps Installer will display the APK files on your memory card.
Click and install your APK files.
Else i guess you need a rooted smartphone to it by hand.
You could use an app like Apk Share to backup apps if that's what you mean.
As far as I know, only AIDE and APDE has managed to successfully done this. I am also looking for a solution to do it, and here's what I found(similar questions on Stackoverflow also didn't get answer):
You might want to cross compile the toolchain itself.
Or you can use a web server that's running linux to compile the apk
So far similar questions only get answers like: hey use AIDE, which is not the answer, here we're looking how to make something like AIDE, not using it. So either cross compile or use a web-based compiler. I haven't found any other solutions