Can i build stock AOSP/Lineage OS apps on Android Studio? - android

i have android phone, i wanna rebuild stock AOSP/Lineage app by name "Settings", i wanna add any functions. I'm download settings app source code from Lineage OS Github, and import this code on android studio. Android studio gives out many errors. I have Mac OS X 10.12 and build android with stock apps is difficult task.

You can't build Settings app separately, you can only build it with AOSP and even after building Settings app with AOSP you will not be able to run or replace it with existing Settings app on any Android Device because you need to sign it with the platform signing keys.
So it is only possible to build it with AOSP and only possible to run it with your custom ROM.

Related

How to make ide in Android like AIDE to compile android project in android phone itself

As I know there is a Software (AIDE) in android that can compile android projects to APK in android phones.
My question is how this works? Is it possible to make DEX file in android devices and pack it in APK?
Yes, you can create a basic level Java/Xml Android App using AIDE.
Step:1: Prerequisites
Install AIDE from Google Play on your Android device (all Android versions from 2.2 are supported) and start it. AIDE comes bundled with a mobile version of the Android SDK, so there is no need to install anything else.
Step:2: Creating the App Project
"When you start AIDE for the first time in expert mode you will see the "Create new Project" dialog. If you have already opened a project the dialog will not show, but you can invoke it from AIDE's integrated file browser by choosing "Create new Project here...". In the create app dialog you first choose the type of project you want to create. For your first app choose "Android App / Hello World" here. A dialog will popup where you can define the basic information about your new app: First, choose a name for your app. Second, choose a package name of your app. Your package name must be unique across all packages installed on the Android system. For this reason, it's generally best if you use a name that begins with the reverse domain name of your organization or publisher entity. Finally, tap "Create" to make AIDE generate your new app project. An app project contains all the files that comprise the source code for your Android app. AIDE will generate these files on your SD card. AIDE will also open two important files of your new app for editing: main.xml and MainActivity.java. By default, AIDE will create a Git repository for your new project. This behavior can be turned off in the settings. See the tutorial about Using the Git version control system for more info.
Step:3: Running the App Project
Running an app project with AIDE is easy. Just select "Run" from the menu. In order to run your app, AIDE will first build an Android application package file (APK) for your app. An APK file is used to distribute and install application software onto the Android operating system. The APK file contains all of your program's code, resources, assets, certificates, and manifest file. You will see a popup showing the progress of the build.
Finally, you can run!
For more details:
Create a Simple app using AIDE. AIDE tutorial
Develop Android apps from within Android using AIDE (video)

How can I deploy Mobile Application Framework (MAF) in Android Studio?

How can I deploy Oracle-MAF in Android Studio?
I googled it a lot, but without avail. The only way I have found seems hard. Is there something easier?
Follow the steps .
Steps
Install android studio and create a new project (this is to enable emulator)
In jDeveloper Preference select Mobile Application Framework, select `Android platform.
Set Android SDK Location, Android Platform Location, Android Build Tools Location.
Generate Keystore entries.
Create one Deployment profile for Android (You can debug in simulator or run within your device).
Run/ Debug the application

Simplify Build Process of Android Platform Apps

I'm working on a custom default android browser. I follow steps here AOSP to build my custom browser:
Clone android source code
Make changes on android browser
Build the Browser only for Nexus 4:
lunch full_mako-eng
make -j Browser
I rooted my Nexus 4 and install the Browser App. Everything is fine but I wonder if there is any other methods that simplier than above steps?
Can we just import the Browser into Eclipse or IntelliJ and build it directly to the phone?
At first, I want to point to some errors in your receipt.
Command make -jN builds all the sources of AOSP, where N is usually equal to "number of processor cores + 2". After the whole build of sources you can just build your browser application using command mmm packages/apps/Browser -jN snod
Browser application is a part of Android and thus, it is possible that it uses some system permissions that are not available for applications that are not installed on system image or not signed with system image. If it is not, then you can extract Browser application from AOSP, import it as a separate application into Eclipse and build it as a separate application (however, you will need to modify some resources).

Debug native Android Applications

Is it possible to debug a native Android application with eclipse and the Android SDK. I have downloaded the sources. Would I have to build the app and then deploy it onto the device to debug it (like any other debugging process)? If so, how would I go about doing that (can use messenger/call app if needed).
You can debug native android applications using eclipse and ndk-gdb. The detailed information you can find here

How to deploy Titanium Projects to Android customers?

I want to deliver a finished and working Titanium App to Android customers. But I can't find any documentation about how to produce something like a jar-file that I can create to directly install it on Android devices without the Android market or the Titanium IDE at hand (I can't expect my users to install Titanium IDE first, right).
When you do a build for device in titanium studio, titanium studio creates an apk file for you.
You can find this at Titanium Workspace/Your Project/Build/Android/bin/app.apk. This is the app file you want.
This file can be e-mailed to your customers, and if the android phone is set to accept apps from 3rd party locations, they can install it through this e-mail.
See the Appcelerator Wiki:
https://wiki.appcelerator.org/display/guides/Deploying+to+Android+devices
and
https://wiki.appcelerator.org/display/guides/Distributing+Android+apps

Categories

Resources