In AOSP 4.2.2 what private APIs in NotificationManager can be used to list all system notifications? - android-source

If I am compiling AOSP 4.2.2 from source, what private APIs in NotificationManager can I use to display system notifications?

You can use the below api.
private INotificationManager mNoMan;
mNoMan = INotificationManager.Stub.asInterface(
ServiceManager.getService(Context.NOTIFICATION_SERVICE));
StatusBarNotification[] notis = mNoMan.getActiveNotifications(mContext.getPackageName());
You need this permission
android.permission.ACCESS_NOTIFICATIONS

Related

How can i comunicate between two devices without cloud server?

I tried develop an mobile app its share my current geolocate without cloud server between two devices whos install same apps .This devices posible using internet and it have cellphone number.
So i set fullter and add google map flugin. And i marked my current geolocate in google map also. But i stuck in issue.
"How can i send my current gelocate data to another device whitout any cloud server?"
I consider socketio. But i can't find way how can get correct device address
that receive device.
private Socket mSocket;
#Override
protected void onCreate(Bundle savedInstanceState) {
try {
mSocket = IO.socket("How can i get this url");
mSocket.connect();
} catch(URISyntaxException e) {
e.printStackTrace();
}
}
Or what is best way from this issue?

How to read Wi-Fi SSID in both platforms | iOS

I need to read Wi-Fi SSID from a Flutter app.
I am using this plugin
I use in a async function this code
String _SSID = await Wifi.ssid;
How can I configure the iOS platform in Xcode to make it work? Now it returns null.
That plugin doesn't support iOS, and short of implementing the iOS side yourself that probably isn't going to change any time soon. Use the connectivity plugin instead:
var wifiBSSID = await Connectivity().getWifiBSSID();
var wifiIP = await Connectivity().getWifiIP();
var wifiName = await Connectivity().getWifiName();
The plugin documentation describes what steps to take to get it enabled for iOS.

Is there any private api to detect camera access by different apps on iphone?

I need to implement an app that monitors camera use i.e. which app used camera (started/stopped) on iPhone.
my app is going to run in background using apple's background multitasking feature for voip and navigators.
I can use private api as my client doesn't need this app on appstore.
Thanks.
Take a look at this private framework:
https://github.com/masbog/PrivateFrameworkHeader-iOS-iPhone-5.-/tree/master/ImageCapture.framework
It has some interesting classes (including ICCameraProperties with property locked)

Show available wifi in UITableView similar to iHome Connect

I'd like to show a list of available wifi in my next app, similar to iHome Connect. http://itunes.apple.com/us/app/ihome-connect-setup-app-for/id450241802?mt=8
I've done some googling and have found out that the only way to do this is to use a private API (illegal), but there are apps in the app store that are doing this?
Has anyone had the need to do this? If so, what private API did you use and was your app rejected?
It is possible using private API and your app will likely be rejected.
Stumbler helper library: http://code.google.com/p/iphone-wireless/

How do you retrieve the call list and voicemail messages on the iPhone?

I'm developing an iPhone application that replicates the functionality of the built-in phone
application, but adds a few features on top. This is for ad hoc distribution only.
In particular, is there a way to programmatically retrieve the last calls received by the phone? Also, how can an application access the list of voicemail messages?
You can check out the private CoreTelephony APIs, esp CTCallCenter.h. You can dump the private headers with this tool: https://rubygems.org/gems/private-dumper
And check out other private headers here: https://github.com/kennytm/iphone-private-frameworks/
You might also find some more info here: http://iphonedevwiki.net/index.php/Main_Page
This app demonstrates how to access the call-log even without private APIs and jailbreaking: https://github.com/nst/spyphone
I'm not sure though, if it is possible to completely re-build the Phone.app with private APIs without jailbreaking.
Johannes