Android :: Android System - System Context - Replace Classes
Oct 12, 2010
I'm engineer but more from a chip/assembler x86 level. I'm new to Android. Still figuring some general things out. I have written some apps, but have a general question. If I were to write an improved version of - let's say - TextView. Is it possible to make all app's on the system using this class, basically replace TextView? How are the java classes on the Android system, are they compiled, can I replace the library? Is this protected?
View 1 Replies
Mar 15, 2010
This is a very weird problem. My app that runs just fine but somehow if I leave my phone for an hour or two while my app is running, I get the following error when I come back to it later:
CODE:................
I know for a fact that my yoga.database.Manager class was loaded at the time when the app was launched, but somehow the class must have been unloaded by the system as I left the phone.
Does Android unload classes automatically after certain periods? What can I do when my class gets unloaded? The above error causes my app to crash, but I can easily re-launch it and it runs just fine. The problem occurs mostly on my HTC Magic phone running Android 1.6.
View 2 Replies
View Related
Jun 16, 2010
I came across this today and was wondering does this work in production app or does it merely work because my phone allows non market apks.
Here is an example, Take a class like, android.view.IWindow, and copy it's source into your project and recompile it after changing a few things. (Don't rename or repackage it).
Now when your APK loads in the VM, something odd happens.
CODE:...
So the logging is a little ambiguous, but is it saying that the classes in this APK are blocking out previous versions and that these new classes aren't being verified. If so I hope this is only succeeding because as developers most targets are in development mode when allowing non market apks (non rooted phones). However does this work in market released apps as well? This seems like a really nasty security exploit if I can override system interfaces just for my application.
View 4 Replies
View Related
Nov 30, 2009
I want to get a system preference value in a class, but I don't have the context there, because the class that calls it doesn't have the context either. I've found that for Resources one can use the static Resources.getSystem() function. Is there any similar way for getting system preferences without context?
My class isn't an activity nor service. It's a utility class. Could give more info if needed.
View 4 Replies
View Related
Jan 27, 2009
after i got my application ready, i put it on my web server, then i got a big problem. i played around and finally find out couple facts between using edge (not 3g) and wifi to download my file 1. the size different. if i use wifi, the downloaded file is 59k which is correct, the one from edge is only 53k. 2. when i try to install them, the wifi one is just fine. but the edge one shows it is trying to replace Android System. and of course, the installation failed.
View 3 Replies
View Related
Nov 29, 2009
In an Android utility class, I want to get a system preference value in a class, but I don't have the context there, because the class that calls it doesn't have the context either. I've found that for Resources one can use the static Resources.getSystem() function. Is there any similar way for getting system preferences without context?
My class isn't an activity nor service. It's a utility class. Could give more info if needed.
View 4 Replies
View Related
Aug 29, 2010
To use a custom IME, it must be selected from the "Settings app". How does the system do this operation? What are the code files that changes the settings?
View 3 Replies
View Related
Jun 20, 2012
Can I replace apks in the system folder on an odexed rom, or do I need to be deodexed first?
View 1 Replies
View Related
Sep 30, 2010
I don't really know much about this but I have the leaked 2.2 update, rooted, Droid X and I would like to know if it's possible to change the system font (Droid Sans) with a different one, and/or the consequences of doing so. Something leads me to believe it's not possible/easy to do because I haven't seen too much of this but if it is possible, a link to a tutorial would be much appreciated. Although a confirmation of the possibility of this would also be nice!
View 3 Replies
View Related
Aug 3, 2013
Well actually I wanted to replace/ place a text file in system directory (e.g. /system/etc/) of android phone remotely which means I don't have any physical contact to that phone.
By remotely I mean via downloading or through app. or any other mean ?
- Is it possible?
- Is it necessary to have that phone rooted?
View 8 Replies
View Related
Mar 19, 2013
I know it's possible to uninstall messaging and music, but is it possible to replace them with like ChompSMS and Rocket Player in the system or do the third party apps use the stock apps?
View 4 Replies
View Related
Feb 9, 2009
Is it possible to write data or create folder in system directory like /system/media/audio/alarms. i.e other than our respective package.
View 2 Replies
View Related
Nov 17, 2010
I am an Android app developer, and I have purchased a Nexus One device which I use to continuously test my developed Android applications.
Background: ----------------- One of the applications I developed uses a native shared library (e.g. myNativeLib.so). Only my application loads & uses this native library. I had developed this app before Android NDK came out. I pack my native library into my apk's 'assets' folder, and during my application start- up, I extract this native library from my package's assets folder to my app private directory (i.e. <assets> -> /data/data/<myappprocess>/ myNativeLib.so). Then I use System.load() API in my application to dynamically load this native library.
Problem: ------------ This application was developed during Android 1.5 (i.e. cupcake) days {I didn't have the Nexus One then}. The above procedure has been working without any problems right from Android 1.5 to Android 2.2 (i.e. Froyo). I have also tested the same on my Nexus One for Android 2.1 (i.e. Eclair) and Android 2.2.
The problem began the moment I recently upgraded my Nexus One to Android 2.2.1 via the FRG83 system update. Now, whenever I try to load my native library, I get the following error:
D/dalvikvm( 3653): Trying to load lib /data/data/<myappprocess>/ <mynativelib>.so <some address> I/dalvikvm( 3653): Unable to dlopen(/data/data/<myappprocess>/ <mynativelib>.so): Cannot load library: link_image[1995]: failed to link <mynativelib>.so
What I have Tried: -------------------------- 1. I tried my application using Android 2.2 SDK (emulator)...it works, no issues. 2. I checked out the latest froyo & android2.2.1 source code from Android open-source, built & tested my application + native lib using the latest froyo source...it built & ran, no issues. This should've taken care of any changes in the native code dependencies between Android 2.2 & Android 2.2.1 3. I even checked Android 2.2.1 source code for dalvik (java System & Runtime classes) + bionic (linker & dlopen sources) between Android 2.2 & Android 2.2.1 (using source checked out from Android open-source), but couldn't find anything consequential 4. I am unable to return my Nexus One to Android 2.2.
View 3 Replies
View Related
Sep 4, 2010
Phone: UK Galaxy S Issue: Recovery boot error message in red writing
Multicsc : can not access to / system/csc/VOD/system/
Background: I have been trying to root my phone from information found in a youtube video. All went well and the little ninja bloke with the sniper rifle was in the app list. Tried installing busybox and was told that the phone was not rooted�..
I think I ran the root application again and at some point I started getting this error message when in recovery. I have since run the one click root method to unroot the phone and the little nija dude is no longer there. Since I rooted the phone it will no longer connect to my wireless network, it finds the network and attempts to obtain an ip address. After a few min it times out and tries again. When I load the phone recovery the error message is still present.
View 3 Replies
View Related
Jun 23, 2010
Can we modify the system while the phone is booted now that we have the unrevoked recovery flash tool? is this what NAND unlock means?
View 24 Replies
View Related
Jul 11, 2012
What will the cwm backup?
if I backup a system with locked bootloader,will the bootloader relock after I restore the system from an unlocked bootloader system?
Which content will cwm backup?(include kernel?)
View 5 Replies
View Related
Sep 23, 2009
I use Java API "System.setProperty()" to set a system property. After invoke "System.setProperty()", API "System.getProperty()" can return the value just I set. However, when I use command "adb shell getprop" to verify, it shows that this property is not set at all. Do I wrongly understand API "System.setProperty()" ?
View 9 Replies
View Related
Sep 2, 2010
Is there any way for an ordinary application to replace low level classes that are preloaded on startup, so that higher level preloaded classes will end up calling my custom versions rather than the originals?
I'm thinking the answer is no, but want to make sure I haven't overlooked something.
View 3 Replies
View Related
Oct 12, 2010
I have written some apps, but have a general question. If I were to write an improved version of - let's say - TextView. Is it possible to make all app's on the system using this class, basically replace TextView? How are the java classes on the Android system, are they compiled, can I replace the library? Is this protected?
View 8 Replies
View Related
Apr 7, 2010
How to push a 3rd party app into system.img given the source code but is it possible to push a 3rd party app into system.img with only .apk file . If so please let me know the steps for doing it .
View 2 Replies
View Related
Feb 12, 2010
My application can be installed and run on android, in two different places: "/data/MyApplication" and "/system/MyApplication".
I need to know where at the moment is my application installed, if it is in "/data/" or if it is in "/system".
View 3 Replies
View Related
Nov 17, 2010
How to SET system colours, but I need to find out how you GET them - how do you find out what they are?
On the Samsung Galaxy S for example, the Tab views, the ListView highlights, Menu Items and Summary line on the Preference Screen are all blue.
There are many apps which immitate the style of the Preference Screen and I want to do the same. Obviously I cannot just hard code and set the colour to Blue, as other handsets use different colours.
The question is, is there a way to programmatically find out what colour the Preference Screen Summary Line, Tabs, or ListView selections are, so that you can then set that against a TextView elsewhere in your app?
How do I get the android system colours?
View 2 Replies
View Related
Apr 15, 2010
In my project ,I need get all the name of the activities ,not only my own application, but also the third party application , and how can I get?
View 3 Replies
View Related
May 8, 2009
How do I clear the log on a device?When I do adb logcat after hooking up my G1 via the USB cord I seem to be getting old logs and don't see the most recent errors that I am trying to diagnose at the end of the trace.
View 3 Replies
View Related
Aug 10, 2010
Do we need to call System.gc() to indicate that system should do a garbage collection or just let system to choose when to collect garbage and free it? Because my app will random FCs on certain phones, but if I add some calls to System.gc(), then there were no FCs.
View 17 Replies
View Related
Aug 5, 2010
I wrote a test to check what kind of permissions are allowed to an application. A test run in the emulator shows the following error: However, a search of SDK doc revealed that only the following permissions are reversed to the system: Code...
This brings up 2 questions: (1) Why did the emulator deny other permissions in addition to those 4 system ones? (2) How could an app get the system permission? If this can only be done by building a custom Android like an OEM build, where in the Android platform does it check for system-level permission?
View 6 Replies
View Related
Mar 19, 2009
In Sun Java I can get System endianess using the System.getProperty ("sun.os.endian"). How to get endianess of the system in Android?
View 5 Replies
View Related
Feb 9, 2009
I downloaded new Android SDK 1.1 release 1. But I cannot find new system image for Dev Phone 1.
I thought that new system-image will be included in new SDK.
Where is a system-image for DP1?
View 11 Replies
View Related
Oct 24, 2008
So i realized today on my way home from work that my cars Clarion CD deck has a USB connector for hooking up thumb drives to play music off of them. I figured this HAS to work with the G1 and it does!I was able to hook the G1 charge and play the music off the SD card through the G1 with ease.Just set the G1 to act as a usb drive, and you can play music and charge your phone via USB while driving.So keep that in mind if you're going to be getting a new car CD player, get one with USB (pretty common on new CD players) and you'll be glad you did.
View 45 Replies
View Related
Nov 16, 2010
I've seen references on how to SET system colours, but I need to find out how you GET them - how do you find out what they are? On the Samsung Galaxy S for example, the tab views, ListView highlights when you select an item, and the Summary text line on the preference screen are all blue.There are many apps which immitate this style and I want to do the same. Obviously I cannot just hard code and set the colour to Blue, as other handsets use different colors.The question is, is there a way to programmatically find out what colour the Preference Screen Summary Line, Tabs, or ListView selections are, so that you can then set that against a TextView elsewhere in your app?How do I get the android system colours?
View 1 Replies
View Related