Android :: How To Load Compiled Kernel Into Emulator?
Jan 4, 2010This is basic kind of question, Can we load our own compiled kernel into the emulator? If there is guide or steps for that please give me those links.
View 2 RepliesThis is basic kind of question, Can we load our own compiled kernel into the emulator? If there is guide or steps for that please give me those links.
View 2 Repliesi want to add some features to linux kernel to run on my mobile (android based mobile perhaps). but i don't know who let me to upload my custom kernel. i want to buy such mobile phone. some restrictions about uploading custom kernel to phone:
1- replace existing kernel.
2- can use my phones functionalities: it is due to some drivers are closed source and i must use the vendor's kernel to use it's drivers.
Is there any 1.5 image going around for the emulator? I would like to try my apps with onscreen keyboard. Maybe someone is actually making nightly builds but I can't find any.
PS: Not sure if it's appropriate to ask in this list.
A long time ago, on a 386 far, far away, some people would regularly boot Linux from DOS/Win16/Win32/Win95/etc... using a utility called loadlin. Loadlin would basically grab the system from the short and curlies, and load a target kernel into RAM, and jump directly into, which would effectively be running the kernel in practically the same way as if LILO had loaded it.
Would it be possible to actually make a Linux kernel module which did the same thing? Modules can be loaded at bootup, so it could be configured on a rooted system to load this module, which would effectively jump to a new kernel, throwing the old one out of memory.
I needed a tun.ko module for my kernel, so I tried compiling my own kernel.
The kernel did build OK, and also boots OK, the only problem is that I cannot load any modules.
It seemes, that the module tools (insmod, modprobe etc) looks for the modules in /lib/modules, and I have them in /system/lib/modules, so my wifi does not work, as I cannot load the module.
Where I can specify the kernel module load path in the .config file?
Example:
# cd /system/lib/modules
# ls -l
-rw-r--r-- root root 315403 2008-08-01 14:00 bcm4329.ko
-rw-r--r-- root root 211573 2008-08-01 14:00 tun.ko
# modprobe bcm4329.ko
[Code] .....
When I trying run Android Emulation, i Have error message:
$ tools/emulator -avd Default -verbose -debug-all
emulator: found SDK root at /opt/android-sdk-linux_86
emulator: /home/jupeter/.android/avd/Default.ini: parsing as .ini file
emulator: 1: KEY='target' VALUE='android-8'
emulator: 2: KEY='path' VALUE='/home/jupeter/.android/avd/Default.avd'
emulator: /home/jupeter/.android/avd/Default.ini: parsing finished
emulator: root virtual device file at /home/jupeter/.android/avd/Default.ini
emulator: virtual device content at /home/jupeter/.android/avd/Default.avd
emulator: /home/jupeter/.android/avd/Default.avd/config.ini: parsing as .ini file........
I want to make two emulators use the same SD-Card image. I automatically created a SD-Card in the first emulator and downloaded all the data to this SD-Card.
How can I load this SD-Card in another emulator? I don't want to recreate all the data on the SD-Card for every single emulator all the time.
Is there anyone have successful experience getting nexus 1 kernel running on top of the emulator coming with the SDK 2.1? I can not even bootstrap the kernel , I mean I didn't see something like the following as what I did on goldfish kernel Uncompressing Linux. done, booting the kernel. .....
View 2 Replies View RelatedHas anyone successfully compiled the android kernel and tested it in the Android emulator, and if so is there anything that special that needs to be done? Documentation for the SDK is excellent, however documentation for compiling the kernel and setting up a custom machine in the emulator has been hard for me to find.
View 5 Replies View RelatedI was trying to upgrade the kernel image for emulator from 2.6.25 to 2.6.27. I took the gold fish code and compiled as per the goldfish_defogging file. Loading the new kernel images gives me the following problem. can anybody help ? It will be even better if some body from the android team answer this question The complete log of -show-kernel is given below Code...
View 2 Replies View RelatedI am attempting to use bin2elf/bin2sin. Where can I find entrypoint and load address for kernel & ramdisk of msm8255? Will any technical papers of qualcomm have that?
View 3 Replies View RelatedI opened my android emulator & now i like to execute my application. How much time it will take to install that application in emulator?
View 2 Replies View RelatedThe emulator screen does not show up with new zImage... The steps I followed are: 1) Downloaded the android kernel from "git clone git://github.com/CyanogenMod/cm-kernel.git" 2) extracted config file from config.gz from /proc/config.gz in emulator 3) copied config file to .config in "cm-kernel" directory 4) export CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/ toolchain/arm-eabi-4.4.0/bin/arm-eabi- 5) make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig make ARCH=arm CROSS_COMPILE=$CCOMPILER menuconfig make ARCH=arm CROSS_COMPILE=$CCOMPILER
View 5 Replies View RelatedI'm working with Eclipse and writing an Android application. I've noticed that the load times to the Android emulator can vary significantly. Recently, I found that manually going back to the main menu of the emulator helps my application load much faster.Is there a quicker way (read: automatic way) to exit out of my application rather than hitting the Back button multiple times until I get to the main app menu? Secondly, is there something I am doing wrong that factors into the longer load time?
View 1 Replies View RelatedHow to load the mysql server in android emulator
i.e
Class.forName("com.mysql.jdbc.Driver")
i got the exception java.land.ClassNotFoundException in com.mysql.jdbc.Drive .
I'd like to download the android kernel completely. Can I know from where I can get the site to install the android kernel and also the complete source code of the emulator. Also from where can I get the patches of the git?
View 3 Replies View RelatedI cannot load a web site on the emulator. ( using web view ). The map also does not appear on my emulator ( appear only grey title). I think the two problems are related.
On the emulator, there is 3g symbol.
How do I load snesoid save files from my phone so I can play them on my pc? Can someone walk me through this cause I tried just copying the file to pc but it didn't load with snes9x.
View 1 Replies View RelatedI have some xml files with a custom format (based on the scxml specifications) that I want my program to read. I've already written the code to read it, but I'm running into problems actually reading the file itself. I want the file to be compiled with the apk, as it will not be changed at all during run time. So I put the file (test.xml) in the res/xml/ folder, and got the inputstream by using:
getResources().openRawResource(R.xml.test);
But when I read in this inputstream it is complete jibberish, which makes me suspect it is being read in binary, as openRawResource() is often used for binary files like images, if I am correct. What is the correct way to do this?
I need to import a couple of jars that where compiled under the full implementation of java. I know that Android doesn't use all the packages that java has to offer. My question is: Is it possible to import them without creating errors? Is there a tool that can convert jars to android jars? if so, can some examples be provided.
View 1 Replies View RelatedDoes anybody know if the new desktop kernel patch written by Mike Galbraith can be applied or modified to be used in the android kernel?
Tiny Linux Kernel Patch Delivers Huge Speed Boost - PCWorld Business Center
I haven't messed around with android kernels yet, but I have applied it to my current Ubuntu 10.10 system and you can see the difference. Its like night & day!
I have vanilla linux kernel version 2.6.27. I want to apply android specific patches and convert it to android linux kernel 2.6.27. Where can a user find the patches to convert a normal vanilla kernel into android kernel?
View 1 Replies View RelatedI have an application which is based Android 1.5 but for enabling different screen types support I have to compile and package it with v1.6. When I install and run the resulted APK on my 1.5 emulator, everything works fine except that "Preferences" activity crashes every time I launch it!
When I revert back my API dependency to 1.5 and remove a few 1.6 specific config blocks from AndroidManifest.xml and compile/package it with 1.5, everything works just fine!
Below is the exception I get when it crashes:
CODE:.................
I am writing an application and due to various reasons I had to build it using make (froyo code) and not SDK. When I run my app on emulator it works fine. I have an Android device and code to build image for the device. When I build my app with device code, it builds fine. How ever, when I run the application, I get
java.lang.ClassNotFoundException:
<package.class> in loader dalvik.system.PathClassLoader[.]
A source file in my code is actually doing
sourceClass = classLoader.loadClass(sourceName);
sourceName here is pointing to a class I actually build (I have classname.java file in my code under correct package directory and package name). Note that this app is running fine on emulator, but on a device it is failing.
I verified that the .class file exists in out/target/common/obj/APPS/ xxxApp_intermediates/classes.jar, classes-full-debug.jar, classes-full- names.jar
There are so many apps in the market and I don't trust all of them. Is there a way to remove some permissions of the already compiled APK? It doesn't matter if I cannot sign it anymore with the original certificate of the developer. And is there also a way to add an error-handler into the .apk-file, so that the errors of the requested permissions will also be suppressed?
View 3 Replies View RelatedHow I can add headers to my native c file.
So here's the details.
I was able to setup my android project to call a native function from a .so file. And actually I need to add box2d to my project, but I when I include the header files, it won't make. So basically my problem is how do I tell the make file to include a whole folder with header and cpp files.
I tried adding the path directly to the include statement just for the sake of testing it. The error goes away, but new errors come out.
A lot of Android apps are open source, but how can we make sure the person who finally uploads to the Google Market does not include some spyware just before uploading?
Background: Mobile apps security seems to be a growing concern, and I would like to reassure the users of my Open Source Android app. Solutions that require to modify the deployment process or application content are acceptable too.
How do I remove strings from / obfuscate a compiled binary? The goal is to avoid having people read the names of the functions/methods inside.
It is a dynamic library (.so) compiled from C++ code for Android with the NDK tools (includes GCC)
I compile with -O3 and already use arm-eabi-strip -g mylib.so to remove debugging symbols, but when I do strings mylib.so all the names of the functions/methods are still readable.
I installed Titanium from appcelerator and built the "KitchenSink" example application.All works well, I'm just wondering where does the javascript code ends up in a built app.I grep-ed the Xcode project and also the result application as I found it in Library/Application Support/iPhone Simulator/KitchenSink.app, but I can't find any function names from .js files, not even string texts used within the application. Nearest information I found is an answer here : How Does Appcelerator Titanium Mobile Work? but I do not understand clearly how the process works.Is the javascript code being compiled into a binary code (what compiler is used then?), or is it just transformed in some special data-format and interpreted in a running application ?
View 3 Replies View RelatedI have compiled Android source code already (which I downloaded using GIT), and I am being editing the source code of an Application for testing on Emulator, each time I wanna see results I have to re-Compile the source code again using 'make' I am pretty sure that there is a way to partly-compile the image.
View 1 Replies View Related