How one can debug apk without sources or open source app apk without full recompile? - General Questions and Answers

Hi,
Is it possible to debug apk without sources or open source app apk without full recompile?
I needed and tried to debug (Android Stock) Email app , found its sources from AOSP code storage,
opened it in Android Studio, was forced to compile it back - I mean Android Studio opened something available Debug" button, codes were shown only .smali, then I attached original source codes...
But I didn't able to debug it, since it stopped with some mysterious error, something like: "certificates is not coincide with required one" or similar...
So, what I can to to do that?? It is very difficult to compile app newly since it needs build system to be adopted for building as separate android app.
Thanks

Was this wrong place to ask? I can not write into "Developent" Thread on this Forum yet.

Related

Question about building Android 1.5 source for emulator

I just had a quick question, haven't been able to find any answers elsewhere. Figured I'd ask it here. I Was wondering if it's possible to build the Android source so that the resulting Android Emulator disk images contains all of the apps of a normal Android 1.5 system?
I've tried building the source twice now but, the disk images are just the normal emulator disk images (missing most of the default apps & some of the graphical improvements of the 1.5 update). I feel like it must be some sort of setting in the makefile to say what platform to build for.
Any help would be greatly appreciated.
Do I need to follow the instructions listed here? Will this enable the build process to build the emulator disk images so that they mimic the G1 completely (including all default Android apps, etc) ?
http://source.android.com/documentation/building-for-dream
Those apps you are referring to are closed source and no matter how you build it, they won't show up in the emulator. You could possibly install them after the fact, but that is truely hit or miss.

[Q] modifying AOSP Calendar issue

Hi, so I'm a student learning Android app development and trying to modify the AOSP calendar to fit my needs so I downloaded the source code from git and made a project with 2.2 FroYo as the basis through Eclipse with ADT and all but I ran into a problem. So I run into:
android.provider.Calendar cannot be resolved into a variable
I did some research and found that the SDK apparently does not have the calendar code nor the database which is why I am running into these issues. So I learned from here jimblackler[dot]net/blog/?p=151 all that. He does have a solution except I have no idea what he is saying. He posted a bunch of code but I have no idea where that code is supposed to go in and I dont understand what he is trying to do with "content://calendar/calendars"
So I just decided to ignore the errors and obviously I couldn't compile it through eclipse so I made an unsigned apk and tried to install it unto the Emulator via ADB but as an unsigned apk it would not let me install it I tried to sign it by going through google's developer site but I am at lost again. I'm a noob to these things unfortunately..
I was wondering if anybody could help me out and point me in a good direction, I would be eternally grateful. Thanks.
P.S. sorry if I was being vague about the google's developer site and source code site but as a newbie I can't post links properly

Android Internal API with Android Studio

Hi everyone!
I'm looking for help how to get Android Studio working with Androids Internal API.
There is a very good tutorial HERE that shows how to set everything up in Eclipse,
but since Eclipse is now deprecated and Google will be dropping support for ADT plugin
the logical move is to set everything up with Android Studio.
The things I did are pulling the boot.oat file from stock Nexus 5X, and use the standard procedure to get framework.jar and framework-classes2.jar.
After getting the internal packages out of the framework, I modified the android.jar file by adding all the missing packages.
The problem is even though all references, classes, interfaces and resources are there and the code doesn't give errors or warnings
that classes could not be found, the build still fails with messages like these:
Code:
error: package com.android.internal.R does not exist
com.android.internal.R.drawable.sym_app_on_sd_unavailable_icon);
...
cannot find symbol
mLocales = LocalePicker.constructAdapter(this);
...
Basicly, anything related to the internal API gives an error only when compiling.
My next idea is to build all the internal classes as a library and add it to the project where I need it,
but I wanted to ask does anyone else have any better ideas or suggestions?
I've done my googling but I haven't found anything recent and related to AS, only Eclipse.

Simple way to port "official" Android ROM (AOSP) to specific device

Hi,
AOSP (check: source.android.com) is where one can find kind of official source code of Android.
Then you download it, compile it - and you have ROM ready to be flushed.
1. Is it will work for any device?
or, and I guess this makes more sense-
2. One need to modify according to his device spec. some parameters in the code. For example somewhere in the files there is a file with code holding some constant SW parameter called something like "double CPU_HZ" and you need to type "=1500;" because this is correct for your device.
Is there a simple guide to all device specifc parameters (and where to find them in the code)? Because if so - anybody can Download->follow the guide, modify all params according to his device spec->compile->flush->you have clean Android OS ready to go.
Thanks,.

Android SDK source code

Hello,
I'm looking for Samsung's Android SDK modifications for a particular device. Specifically, their changes to platform/frameworks. I.e. this stuff: android.googlesource.com/platform/frameworks/base/+/nougat-mr1.1-release/core/java/
I went to opensource.samsung.com under Mobile, searched for my device model number (SM-T560NU) and downloaded a zip file that had a Platform/frameworks but base changes are not there.
I know they've changed the code in some way because when I step through it in my IDE the line numbers do not match the Android source code (as a matter of fact they are completely off). Does anyone know of a way to get this code? I don't know much about building ROMs, is there a framework-base.jar that lives somewhere on the device I can pull?
Thanks.

Categories

Resources