Android : System.getProperty() Cannot Get Prop Setting In Init.rc
Jul 29, 2009
I am trying to get property which I set in init.rc in Java app. But it always return null. Java code:String value= System.getProperty("ro.MY_PROPERTY");I have check "getprop ro.MY_PROPERTY" in console, it do return "1". But not know why cannot get it in Java app.Code...
View 3 Replies
Dec 19, 2012
How to increase the system volume by editing build.prop?? (system volume like key press sound,camera sound..etc) or any third party software can increase the system volume?
I check the system volume by using audio manager app..and it show my system volume already maximum... I using huawei u8950d....
View 3 Replies
View Related
Apr 10, 2009
I understand that userland apps on android cannot set the system clock. Wanting to know more about how the security mechanism is set up for the system I did some digging around in the source code.
/dev/alarm is opened R/W to set the system clock using SystemClock.setCurrentTimeMillis.
How the permissions work to determine whether or not an application has permission to set the clock.
I assume it's just a user level permission, and the write bit for /dev/ alarm is only enabled for the "system user" and not the "userland user" applications run under.
View 2 Replies
View Related
Aug 13, 2012
I've mapped my android phone as a network drive using Samba and changed the smb.conf file to show the System Root directory as well. However, system root is default set as R/O so to mange files USING my computer I need to change the permission to R/W using a file manager (such as root explorer). This is annoying, as I have to keep doing this in order to write to certail directories.
I would like the / directory (root) to be mounted as R/W as default so that I can quickly edit files on my PC without having to constantly change it to R/O. I want something that will automatically mount my phone's root dir into rw upon boot, without custom apps/having to manually mount as rw everytime it reboots.
View 3 Replies
View Related
Jul 21, 2013
I can't copy the file 'hosts' back to system/etc. after I cut it out of the folder a couple mins ago. When I use ES File Explorer (don't wanna pay 4euros for Root Explorer..) to try and paste it back (with everything set to RW and having root permissions) it says 'permission denied'. I don't know what I'm doing wrong..
View 3 Replies
View Related
Sep 9, 2010
Was getting ready to install the edited build.prop. I had renamed the old one to build.prop.bak, and somehow managed to restart the phone without putting a new one in. The phone stays at the M screen, and I can get into the standard recovery. Is there anyway I can push a new build.prop file through standard recovery? The only thing I have tried to do is reapply the 2.2 update.zip I was running, which didn't work due to signature verification failure.
View 1 Replies
View Related
Apr 4, 2014
Is there a way to add common system setting into the notification pull down menu?
On my old Samsung Galaxy S3, when you swipe down from the top of the screen and pull down notifications, at the top above notifications are buttons for common system settings to access (in order they are: Wi-Fi, GPS, Sound, Rotation, Bluetooth, Smart Stay, Airplane Mode, Power Saving, Hands-free mode, Screen Mirroring)
This was very useful because was easy to quickly access key functions. For example "1) swipe down and 2) press WiFi to turn on/off" or "1) swipe down and 2) press GPS to turn location on/off".
On my new Nexus 5 this functionality does not exist. When you swipe down to see notifications, key system buttons are not present. Instead there is a single system button in the upper right corner which you need to press to for common system settings (Brightness, Settings, WiFi, Mobile [ATT/Verizon], Battery, Airplane Mode, Bluetooth, Location)
This means to access common system settings requires an extra step. For example "1) swipe down, 2) press system button and 3) press WiFi to access WiFi page"
Is there a way to put these common system setting into the notification pull down menu?
View 11 Replies
View Related
Feb 11, 2012
Where i can find the proprietary files for android phones (htc desire gsm specifically). The wiki says "find updated prop blobs" but has no reference as to where to even look.
I want to build a KANG for a device i have no physical access to, so i cannot extract the proprietary files.
View 1 Replies
View Related
Aug 21, 2010
I attempted to use the new build.prop file to fix the market issue where some paid apps were not found for download.
Here is the process I used:
Download build.prop, place it on SD card. Use Root Explorer to copy build.prop into system/Deleted old build.prop file from system/ (I made a copy of the original and placed it in a folder on my SD card as a backup) Turned phone off. Turned phone back on and got to the Motorola logo, then the screen is black (backlight is still working, the screen is technically on, there just isn't anything on it).
Phone never gets to the boot animation and will not boot back up. Anyone know how I can fix this without having to flash the SBF 2.1 file again and re-root, install 2.2 update.zip, and download/setup all of my apps?
View 18 Replies
View Related
Jun 22, 2009
I am developing an application which can share data with email, contact and calendar application. Now I met a problem when I clear this application data or uninstall this application in the "system setting". "Setting" can only clear my own application data now.This problem is that how to clear email, contact and calendar data at the same time of clearing my application data. This problem can concluded as that how to clear several databases which have dependency at the same time.
View 2 Replies
View Related
Jun 16, 2010
I have a camera by Cisco and like to stream it's video stream to my android phone. It's coded in MPEG4 so there should be no problem, but it's not working anymore (it worked with another camera a few weeks ago).
CODE:...................
View 1 Replies
View Related
Sep 29, 2009
There is a big database(15M) in my application, it is too big to download the apk if I publish the source database in myapp.apk. So I encode the db to binary files(300k). But the new problem is I should decode binary files and create the database(with data), this procedure take about several minutes, so I can NOT do this in SQLiteOpenHelper.onCreate(), this is too slow for user experience(though it is a one time procedure, it is still unacceptable).
My application has NO main activity entry in launcher, the main entry is Broadcast Receiver.on Receive, the information should display to user immediately when receiving the broadcast, so I have no chance to display a several minutes "Initializing, please waiting..." UI. The best chance to create database and init data immediately after install, but how to do this, is there any broadcast? or is there any AndroidManifest attribute?
View 3 Replies
View Related
Oct 6, 2009
I'm having a weird problem. When I try to update my DatePicker it crashes, but I dont understand why. Via the debugger I could see the date[] function is filled the way it should be. Do you guys see the problem? String[] date = dateofbirthNode.getStringValue().split("/"); // "12/31/1969" DatePicker dateofbirthView = (DatePicker)findViewById (R.id.editprofile_dateofbirth_picker); dateofbirthView.init(Integer.parseInt(date[2]), Integer.parseInt(date [1]), Integer.parseInt(date[0]), null)Code...
View 4 Replies
View Related
Mar 18, 2009
I flashed my adp1 to firmware 1.1 following the instruction from HTC. http://www.htc.com/www/support/android/adp.html But after that, I want to modify the /init.rc, after I remount the rootfs as writable, I can edit or replace the /init.rc file. But the file will roll back the original version after reboot the phone. Before I modify the /init.rc, I install the busybox to the phone, then I use 'cp" command to replace the /init.rc Any one can give me some advice?
View 4 Replies
View Related
Sep 12, 2010
For something like a 'help I can't get up' app -- is there a way for a user to set a contact number, and then for the app to call that number in the future WITHOUT the user initiating the dialout? I've tried the below but there seems to be a problem. Code...
View 1 Replies
View Related
Oct 26, 2009
I want to modified the init.rc file to import a new configuration file by adding the following lines in the init.rc file import /data/myconfig/conf/init.rc trigger system And the file at /data/myconfig/conf/init.rc contains on system export TRIAL_EXPORT /trial/export/to/be/replaced The problem is that I cannot get the new export (TRIAL_EXPORT)to working. When I issue the command echo $TRIAL_EXPORT on the adb shell I do not get anything. Can somebody point out what is wrong in here?
View 2 Replies
View Related
Jan 19, 2009
I am trying to download the android source onto a new ubuntu 8.10 installation on a x86 machine. All the steps worked fine until I tried to init the repo client. I get the following. I can't find anyone else having such an repo error. I did find an obscure message that said the python error might be due to a missing readline module. I tried to install lib32readline5-dev as in the download instructions and got the following error Any ideas anybody? I am somewhat new to linux but have had a fair amount of unix experience in the past. Code...
View 14 Replies
View Related
Nov 8, 2010
I have a requirement to change network service permission(such as netd to 660 or something similar) for my application in order to access certain features. I dont want to edit init.rc file to make such changes. Since my application cannot be run in root mode, is there any alternative solution where i could do such modifications from my application point of view.
View 6 Replies
View Related
Feb 28, 2013
I have used my own graphics.c and postrecoveryboot.sh!But, after installing cwm recovery.img, it did not work!
Having this log:
Starting recovery on Wed Feb 27 20:14:47 2013
cannot open fb0: No such file or directory
CWM-based Recovery v5.0.2.8
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null)
1 /boot mtd boot (null)
2 /cache yaffs2 cache (null)
3 /data yaffs2 userdata (null)
4 /misc mtd misc (null)
[Code] ......
I:Checking for extendedcommand...
active fb swap failed: Bad file number
I:Skipping execution of extendedcommand, file not found...
View 8 Replies
View Related
Mar 10, 2013
Application "init" ask for root from SuperSu? I just did, and denied it, but I've never seen it happen before. Is this normal?
View 6 Replies
View Related
Oct 7, 2013
After I ran the curl to install the latest version of repo, when I attempt to run a repo init I get this error
Code:
dan@dan-laptop:~/aokp_jb$ repo init -u https://github.com/AOKP/platform_manifest.git -b jb-mr2 -g all,kernel,device,vendor
gpg: keyring `/home/dan/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/home/dan/.repoconfig/gnupg/pubring.gpg' created
gpg: /home/dan/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported
gpg: key 338871A4: public key "Conley Owens <cco3@android.com>" imported
gpg: Total number processed: 2
[URL ......
repo 1.12.4
gpg: Signature made Tue 01 Oct 2013 12:44:27 PM EDT using RSA key ID 692B382C
gpg: Can't check signature: public key not found
error: could not verify the tag 'v1.12.4'
View 3 Replies
View Related
Aug 30, 2013
All tutorials out there use script manager to enable tether on boot. I would like to avoid cluttering and make an init.d script to run each reboot.
My current syntax is:
#!/system/bin/sh
-A natctrl_nat_POSTROUTING -s 192.168.0.0/16 -o rmnet0 -j MASQUERADE
but this isn't working...
View 1 Replies
View Related
Sep 23, 2010
(HTC Desire running 2.2) Sometimes the init process enters a busy loop, consuming all CPU time. This has happened to me three or four times now. When it happens, Android System Info shows 100% CPU usage and if you run top in a terminal emulator, you can see that it's the init process eating up the CPU.
This makes the phone real slow and the only cure I know of is a reboot.I was going to check out the logs while the init was looping, but I forgot. I don't know how to repeat this - today it happened when I exitted VLC Stream and Convert, but it happened before I even installed this application.
I think this happened before the 2.2 upgrade as well and my son said his Xperia X10 eats the battery real fast sometimes - so maybe the same problem exists in Android 1.6 already.
View 3 Replies
View Related
Sep 23, 2010
I have started to port Android on TCC89XX board, I download Android SDK. and applied the patch with kernel 2.6.29, the Processor is having armv6 instruction set. I am not able to see the network up ifconfig is not able to show the network devices.
Also I do not get why there is no "on" binary in the system/bin, system/xbin, the init.rc and init.goldfish.rc. I cannot get the zygote process up. create_socket throws error. If any one knows about this, please tell what I need to do correctly or point me to some correct URL's.
View 2 Replies
View Related
Sep 23, 2010
I have started to port Android on TCC89XX board, I download Android SDK. and applied the patch with kernel 2.6.29, the Processor is having armv6 instruction set. I am not able to see the network up ifconfig is not able to show the network devices.
Also I do not get why there is no "on" binary in the system/bin, system/xbin, the init.rc and init.goldfish.rc. I cannot get the zygote process up. create_socket throws error.If any one knows about this, please tell what I need to do correctly or point me to some correct URL's.
View 3 Replies
View Related
May 20, 2012
I've been doing alot with the initialization routines in android just lately .
For all my efforts I have been unable to get the device-added init action trigger to fire,
Just to be clear this is set in init.rc and looks like the following,
Code:
on device-added-/dev/compass
start akmd
The above is taken from the init readme file which contains an example init.rc at the bottom
I did some further research and a quick search of the AOSP code. This revealed that the functionality is yet to be implemented. which obviously explains why the trigger wasn't being fired . The device-removed and service-exited triggers are also missing.
View 1 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
Jun 6, 2009
I am using Virtual Box with KUbuntu Linux on x86(Windows XP) system and setting up system for Android Source SDK. I have installed repo through (curl http://android.git.kernel.org/repo >~/bin/repo). Now I am trying to initialize repo by $ repo init -u git://android.git.kernel.org/platform/manifest.git but here I am getting an error shown as follows:
Traceback (most recent call last): File "/home/tirtha/mydroid/.repo/repo/main.py", line 235, in <module> _Main(sys.argv[1:]) File "/home/tirtha/mydroid/.repo/repo/main.py", line 217, in _Main repo._Run(argv) File "/home/tirtha/mydroid/.repo/repo/main.py", line 123, in _Run cmd.Execute(copts, cargs) File "/home/tirtha/mydroid/.repo/repo/subcmds/init.py", line 218, in Execute self._SyncManifest(opt) File "/home/tirtha/mydroid/.repo/repo/subcmds/init.py", line 123, in _SyncManifest m.PreSync() File "/home/tirtha/mydroid/.repo/repo/project.py", line 1440, in PreSync cb = self.CurrentBranch File "/home/tirtha/mydroid/.repo/repo/project.py", line 271, in CurrentBranch b = self.work_git.GetHead() File "/home/tirtha/mydroid/.repo/repo/project.py", line 1226, in GetHead fd = open(path, 'rb') IOError: [Errno 2] No such file or directory: '/home/tirtha/ mydroid/.repo/manifests/.git/HEAD'
I have try to go to the mentioned folder and it looks like /home/ tirtha/mydroid/.repo/manifest.git/HEAD rather '/home/tirtha/ mydroid/.repo/manifests/.git/HEAD'. Can anybody suggest me the reason of the error and any solution for this.
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