Hi.
In device overview section of technical support app on the bottom there are recommended actions. Since Android 12 update I am not receiving any actions there (like cache cleanup to speed up device and others).
This section is now always empty.
Am I the only one?
Related
Dear experts,
I'm looking for an App which allows efficient control of the 'Restrict background data' checkbox on a per-App Basis.
In ICS today I can navigate
Settings -> Data Usage -> "someAPP"
and then check/uncheck the 'Restrict background data' checkbox to make the data traffic explicit for me: If I don't use "someAPP" I can expect that there is no background data traffic generated by "someAPP" (no extra cost in roaming mode).
I do have some apps (e.g. a pushmail app for company mails) which I always want to allow the use of background data in order to get my mail.
Other's (e.g. use of gmail, G+, etc.) I want to toggle the behaviour very quickly:
If I'm in 'roaming' mode: disable, if in my home-network with flat cost: enable.
This is the reason I can't use the 'Mobile Data' switch.
Today I navigate as shown above, which is cumbersome and likely to be incomplete.
I think of an app, where you can compose a list of apps (from the installed ones) and enable/disable 'restrict background data' for apps on this list with one click.
Any idea, if an App featuring this exists?
thanx,
pottendo
PS: I've found
http://forum.xda-developers.com/showthread.php?t=1326157
which's suggestion is not exactly meeting my requirements.
Hacking support...
hi,
as there was no response I started hacking myself - based on the settings app from the AOSP tree.
With some significant help (thanx gw) I managed to extract some internal API to access the network policy manager from my app - just like the android settings app does.
The code is:
[...]
mPolicyService = INetworkPolicyManager.Stub.asInterface(
ServiceManager.getService(Context.NETWORK_POLICY_SERVICE));
[...]
... mPolicyService.getUidPolicy(packages.get(position).uid)...
[..]
Now I'm stuck at:
[...]
05-14 21:54:31.478: E/AndroidRuntime(19765): java.lang.SecurityException: NetworkPolicy: Neither user 10107 nor current process has android.permission.MANAGE_NETWORK_POLICY.
[...]
although my manifest lists:
[...]
<uses-permission android:name="android.permission.MANAGE_NETWORK_POLICY"/>
[...]
So any ideas to allow my app to behave just like the settings app?
thanx, pottendo
PS: would have posted this in the android developer forum - but still missing some posts..
Update...
Just to keep you updated (and collect some meaningful posts ): I managed to include the app within a system image (nadlabaks Milestone CM9) and set the respective permission in the manifest:
<permission androidrotectionLevel="signatureOrSystem" />
this seems to work somehow - but still not entirely.
pottendo
Solution!
hi,
finally I found the 'fix' for my application.
I moved the source of my little app to a android buildable tree and built within this framework. It get's properly signed then and either is part of my home-made mod-image, or (for a shortcut, thanx to nadlabak!) I can copy the app to /system/app on my phone via 'adb push ...' and install from the phone.
'adb install -r ...' cannot be used, as this is no option for system apps.
It works now, and I'm now able to control the BG data propery from my app. Now I should start learning java ui programming...
thanx for listening,
pottendo
Share?
Hi,
This is exacty what I'm looking for !!
Would you mind sharing your work? If yes, please email me.
Thanks !
Olivier
Sorry, overlooked your request.
I've not done too much since my last post - i've an international flatrate now.
The build setup is quite complex as internal Android interfaces are used.
I have to reverse engineer again for Android 4.2.
I'll followup ... But don't hold your breath!
pottendo
Sent from my Galaxy Nexus using xda app-developers app
Hello,
Hope this is correct forum for this question...
In my company we are starting one project that will (among other) include e.g. 50+ android mobile devices on the field...
So I need to find windows 7 desktop software for managing all of this devices at one place...
To have statuses, check location, lock apps, wipe etc - all regular stuff when administrating device...
Is there such software??
Ivo
Questions should be asked in Q&A forums, not Development forums.
Thread moved.
helo,
I would like to discuss about proper ways of reducing the memory footprint (and thus the possibility of receiving an OutOfMemoryError). After having taken away 2 x 4mb backrounds, my app has stopped OOM-ing. But this is not a viable thing to do in practice of course. How about just terminating the activities as user navigates through them ? Anyone can share some experience ?
Thanks,
Kellogs
Sir, while you are waiting on some answers, First ensure you post in the Correct Sections, the Development Section is for that...
Your Thread as been moved, here is some good reading:
[GUIDE] - XDA New User Guide - Getting started on XDA
Forum & Marketplace Rules
I have ended up clearing the background in all the main layouts of each activity in onStop() and then putting it back in onStart(). So far so good.
LE:
Lots of complications in my case; make the Activities noHistory="true" and troube is just behind the corner due to Android not finishing the the Activities immediately. So, isntead of A getting finished when A -> B, Android will only finish A when C has been reached: A-> B -> C. add the FLAG_REORDER_TO_FRONT in the mix and the soup is ready. Ended up finishing the Activities as user navigates away from them.
Friends, i'd like to create an android app with push notification.
I'm a noob in android app development but i've interest to learn android app programing.
Below is my requirement. I'm not sure how/where to start about this, any guidance from other android developers would be a great help
Requirement:
1) Send message with image/text/sound/video clip to all who have installed this app.
2) All past messages must be available in the app for any reference later - Something like a message thread
3) Upon receiving any new message there must an alert in the notification area at the top.
4) All messages must be available even for new installs.
Hi everybody,
First I'm not sure if my question corresponds to this forum. My apologies if so!
I'm using a Huawei Mate 10, with Oreo 8.0.
It has two interesting options for network rules configuration (i don't know if they are from Oreo or from Huawei, can any tell me this, please?) in Settings-- > Wireless & networks --> Mobile data;
- Networked app: It can configure per app network rules such as mobile/wifi data, but background/roaming data too.
- Data saver: I think it applies a drop rule to all background data with a white list. This is correct?
I would like to backup this rules. I tested AFWall+, ant it's a great software, but it does not have background data rules management.
I have tried Huawei Backup and Restore apk, and backing up "Blocked", "System UI" and "Settings" elements, the rules are not restored.
Is there any way to accomplish this?
I would like to accomplish this with the apk permission rules for run in background. In my case this option is in Settings - - > Battery - - > Launch. I could not find any apk to do this.
Thanks a lot!
Operich