Android :: Reducing Permission

Oct 29, 2010

Reduce the number of permissions? What exactly do you mean by that?

Android :: reducing permission


Android :: Reducing Permissions

Aug 30, 2010

I've been following the "Is there a way to request permissions from a user as you need them?" thread with a lot of interest, but even if someone is convinced to make the Android permissions system better, it doesn't do anything for right now.

So, I thought I'd start a thread for coming up with alternative ways to reduce the permissions your app needs.

My app absolutely needs internet access (it's useless without it), and it uses Google Maps extensively (it's the main activity), so I have the following :

CODE:.................

I want to be able to know if I have a network connection, hence the ACCESS_NETWORK_STATE. I also try to use GPS hence the "ACCESS_FINE_LOCATION", and if GPS is not available I try to find the user's location using something else hence "ACCESS_COARSE_LOCATION" and of couse the "INTERNET" permission. I also use the "My Location' feature of Google Maps.

So... the question is : Is there a robust way to use Google Maps, and be able to send requests to my server without all those permissions (in a user friendly way) ?

I'm also experimenting with C2DM, so I have the following:

CODE:................

If I want to use C2DM, it seems I am stuck with those... Anybody know

Now... I also want to use the camera (optional) and vibrate (optional but most users will want it) so I have to add :

<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.VIBRATE" />

Total 10 lines of permissions in the manifest.... AND this is AFTER removing 4 other permissions that a small percentage of users would have found very handy, AND not adding a few other features because of the permissions bloat they would have added

CALL_PHONE READ_CONTACTS GET_ACCOUNTS SEND_SMS

So... given all of this, is there a way to reduce the permissions I need any more than I already have? AND why do I need a total of 8 permissions just to ask my server for the data they want, and try to keep them current using C2DM? Surely those permissions could be reduced somehow.

View 7 Replies View Related

Android :: Reducing List Sizes

Aug 24, 2010

I have a widget in my app (in single choice mode) and the list is longer than the screen so it requires scrolling. There is a lot of space above and below the text so I think that space could be reduced (and the font size) so that everything fit without scrolling. I haven't been able to figure out how to reduce that space.

I'm also trying to get a single checkbox below that list and i tried making 2 listviews on top of each other on the linear layout but it didn't work.

View 2 Replies View Related

Android :: Reducing Image File Size

Jun 22, 2009

I want to reduce the size of my image file to transfer it over the network. Do anybody know how can I reduce the file size using andriod APIs.

View 3 Replies View Related

Android :: Reducing Size Of Emulator / Coming Up With SDK

Aug 22, 2010

I want to reduced the size of Android Emulator i.e. come up with your SDK?As Emulator size is greater than my laptops screen size, unable to see whole content on simulator.

View 3 Replies View Related

Android :: Resizing WebView Contents (Reducing Image Height)

Aug 3, 2010

I am loading image url on to webview it fetching the image as well but I need to display it in resizeable it means the height to be reduced, help me to get reduced height of the image.

View 1 Replies View Related

HTC Desire :: Reducing The No. Of Screens From 7 To 3

Sep 17, 2010

Is this possible as I only use three and I guess the other 4 will be using some ram as they are available?

View 2 Replies View Related

HTC Desire :: Reducing Internal Memory

Nov 23, 2010

I've just been trying to download the latest update for the HTC Desire on Vodafone, but I can't install it, due to lack of internal memory.

I have checked all my apps & the ones I can "move to SD" have all been moved, but some apps won't give me the option to "move to SD"

My internal memory is still quite full (129mb out of 147mb)

Is there a way of moving stuff from the internal memory to my SD card?

View 12 Replies View Related

HTC Droid Eris :: Reducing Touch Sensitivity

Dec 1, 2009

I don't see where anyone has asked this before, so I guess I'm the first?I find myself selecting items when all I want to do it scroll down the page. I find myself calling people when all I want to do is scroll down my contacts list, and while browsing on the internet, scrolling through a web page ends up with me selecting hyperlinks instead.Is there a way to make it so you have to keep your finger on an item a little longer to actually select it?

View 8 Replies View Related

HTC Desire :: Reducing Delay Time For Secondary Keys

Aug 22, 2010

When typing on the keyboard, I frequently use secondary symbols, by holding down a button and wait for the secondary options to appear. However, it takes some time for that to happen, and the unnatural pauses makes me a bit frustrated when i'm typing. I like typing fast, and I barely tap the buttons when typing. I wanna know how I can decrease the time needed to hold down the buttons until the secondary options appear, so that I can test a few values and find something I am comfortable with.

View 4 Replies View Related

Samsung Moment :: Preventing Screen Lock And Reducing Keystrokes

Nov 9, 2009

Is it possible to prevent the screen from locking? Right now, I have to wake the phone, then unlock the screen. Waste of time.

Also, it is a minimum five key press to make a call. Wake > Unlock > Dialer > Favorites > Person. Is it possible to have one-touch calling from the home screen?

View 46 Replies View Related

Android :: G1 - Getting Permission When Using ADB

Feb 15, 2009

XX@XX-T23:/opt/android-sdk-linux_x86-1.0_r2/tools$ adb shell $ ls sqlite_stmt_journals cache sdcard etc init default.prop logo.rle init.trout.rc system data sys proc init.goldfish.rc init.rc sbin root dev //
It works normally $ cd data $ ls opendir failed, Permission denied
//have no permission $ cd cache cd: can't cd to cache ........//
Maybe the same reason above $. Does it mean I should get the G1's root permission?

View 2 Replies View Related

Android :: Why I Get Permission Alert?

Apr 7, 2010

I compiled my app in Eclipse and export it as signed application package, when I install it on my G1, I got "phone calls" and "storage" permission alert, "phone calls" permission said: "read phone state and identity", "storage" permission said :"modify/delete SD card contents". but in my AndroidManifest.xml file, I never define these two permission, and my application never need the two permissions. Does anybody know why I get the permission alert? I use ADT 0.9.6. is that possible ADT compiler or signed tools inject the two permission into my app?

View 3 Replies View Related

Android :: Su Permission Denied

Apr 14, 2009

Any idea why I get permission denied when I run su in adb shell? I've seen multiple posts here claiming all you have to do is run su, but it never works for me. Why?

View 2 Replies View Related

Android :: Testing Uses Permission

Jun 24, 2009

I'm prepping my first app for publishing and am a bit confused about how to properly test my <uses-permission> tags.. if i don't specify any permissions my app runs with no complaints on my G1. I tried installing it via "adb install" as well as with the eoeAppInstaller (as somebody had recommended). Also, the app is signed with my own certificate (not the debug cert). given that it works fine with no permissions (btw, it accesses camera and sd card), how will I know if I've set all of the proper <uses- permission> tags?

View 5 Replies View Related

Android :: Need To Send Sms That Allow Permission

Oct 19, 2010

How can I send SMS from Emulator A to Emulator B such that when Emulator B receive a Text message (After the Permission is Granted to emulator B) then Emulator B gets its GPS Coordinates and send it As a SMS in Respond to Emulator A.

View 2 Replies View Related

Android :: How To Get Applications Permission?

May 29, 2009

How do I access another package's permissions? Somehow with PackageManager?

View 6 Replies View Related

Android :: How Could An App Get System Permission?

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

Android : How To Add Permission In Framework?

Sep 13, 2010

How can I add some permission in framework , is it any way to do this ??

View 2 Replies View Related

Android :: Using Permission That Doesn't Exist

Feb 10, 2010

I saw on http://developer.android.com/guide/topics/security/security.html that my app can declare a permission:

.....................

However, what if com.me.app.myapp is not yet installed on the device?

[a] I tested with "adb install", and Foo was installed on the device without incident. The only thing I see is "W/PackageManager( 62): Unknown permission com.me.app.myapp.permission.DEADLY_ACTIVITY in package com.foo.Foo"

[b] if I upload Foo into Android Market, but the user has not yet installed "myapp", will he be able to see Foo in market?

[c] if the answer to [b] is yes (I really hope so, or else it will be a major bummer ...) what message will the user see regarding com.me.app.myapp.permission.DEADLY_ACTIVITY? Since the description of this permission is declared only in "myapp", without "myapp" installed, will the user just see the name of the permission, which probably doesn't mean much?

If [c] is true, would this be a weakness to the Android permission system/Android Market? As long as I can fool the user to install my app first, I would be able to gain permissions that the user would not have otherwise granted me (had he known the true nature of such permissions).

View 2 Replies View Related

Android :: Bypass Permission Checking

May 6, 2009

I am doing an experimental project and want to send key events from one application to another. I know android doesn't allow applications to interfere each other in this way due to security concern. Is there any way i could bypass the security check? I've looked into the WindowManagerService class and made some modifications but it seems not working for me.

View 3 Replies View Related

Android :: How To Set Permission In Content Providers?

Sep 21, 2010

I have a doubt regarding content provider.My doubt is I create a app1 that creates Content Provider and in second application(app2) i am using app1's content provider methods(like insert, update etc). It's working fine but i want to set some permissions in app1, so that if any other app wants to use that provider it must have to get this permissions(<uses- permissions) then only it should be able to use providers.

View 5 Replies View Related

Android :: Tcpdump Permission Denied

Mar 4, 2010

I rooted my Motorola Cliq successfully in order to start using tcpdump. I copied tcpdump inti /system/bin. And I am logged in as root. When I try to run tcpdump I get Permission denied I am really blocked. I was trying to root my phone for 2 days just to be able to use tcpdump.

View 4 Replies View Related

Android :: Permission Denied For Using Go To Sleep

Jan 29, 2009

I wanted to use the funcion goToSleep() in PowerManager Class to force the device to sleep. But I'm getting an exception and the application crashes when I call this function. I already have added the DEVICE_POWER permission in Androidmanifest.xml. When I checked the logs I could see below error "E/AndroidRuntime( 2158): Caused by: java.lang.SecurityException: Neither user 10 020 nor current process has android.permission. DEVICE_POWER." Has anyone faced this issue before. Does application have DEVICE_POWER permission. or is it disabled.

View 5 Replies View Related

Android :: Understanding Permission Group Tag

May 14, 2009

I need some help to understand the use of permission-group tag in AndroidManifest files. Is there any need of using permission-group and what benefit offers this grouping? Is there a plus security using it? Does anyone know an example when to use it?

View 2 Replies View Related

Android :: Permission To Write On SD Card

Oct 13, 2010

EDIT: Problem solved, FileOutputStream defined uncorrectly, change to: fos = new FileOutputStream( root + "/" + saveFileName );

I have a problem writing to the SD card, here is the code: (Sorry about the layout of the code, just copy pased it )

public class SaveAndReadManager {
private String result;
private String saveFileName = "eventlist_savefile";
public String writeToFile( ArrayList<Event> arrlEvents ){
FileOutputStream fos = null;
ObjectOutputStream out = null;...............................

View 4 Replies View Related

Android :: Permission To Write To The SD Card

Jan 23, 2010

I would like my app to archive the application DB to the SD card. In my code I check if the directory can Write(), and if not then throw an IOException. In this perticular instance, I am trying to copy the db file to the root directory on the SD card, but its throwing an IOException. How can I change the permission on a folder/file to be able to write to it

View 3 Replies View Related

Android :: Cannot Install App If Permission Is Granted

May 8, 2009

I am sure that the permission is granted as I declare this in my manifest. Hence the app wouldn't be installed if the user didn't grant the permission.

(a) My guess is that it's a rooted phone where the app is started from an SD card (or similar) whereby the original user id has changed after the install. (b) This could be a Cupcake "feature". Acquiring wake locks has gone down a similar path as turning GPS on?

I am trying to track down (a) with my users, but this takes some time. I meanwhile now that at least one user uses a JF image. Anybody else has experience with that issue? if (b) might be valid? The app works on my 1.5 emulator and on > 400 phones with Cupcake, at least it is installed on them and users don't submit bug reports. So I guess (b) is not the case, but who knows?

View 3 Replies View Related

Android :: Root Permission For Application

Jun 11, 2010

Shall we give root permissions for android application? My requirement is I want to execute a c program using jni. That contains some functions like unmount etc. I tried in the following way static { System.loadLibrary("myjni"); }

View 3 Replies View Related

Android :: How To Know What Permission Required In Application?

Jun 2, 2010

I have a problem with an application, that refuses to start, and I think it may be because of missing permission(s). Is there any way to tell which permissions are required by an application in order to run?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved