[Library] Android Bubbles: Facebook like chat bubbles for Android - IDEs, Libraries, & Programming Tools

Hi everyone! I would like to share a library I've been working on for the last few days called Android Bubbles. It is an implementation of Facebook's chat bubbles that are used in Messenger.
Even though there are a few libraries out there that do that, I felt that the animations and level of detail were not on par with Facebook's implementation, so I decided to develop my own.
Android Bubbles focuses on smooth animations for a similar user experience to Facebook's, and has extremely easy implementation.
You can find the project here: github.com/RodrigoDLPontes/AndroidBubbles (I can't post links as I am a new user).
Tell me what you think!

"Draw over apps" permission on Marshmallow
How does this library deal with the "draw over apps" permission for marshmallow?

ponnex said:
How does this library deal with the "draw over apps" permission for marshmallow?
Click to expand...
Click to collapse
ponnex, as far as I know, Marshmallow requires the user to give explicit permission for apps to draw over everything. That means the user would have too allow your app through Settings. You could add an Intent to Settings.ACTION_MANAGE_OVERLAY_PERMISSION, so that the user could easily enable your app, and call Settings.canDrawOverlays() to check whether or not permissions have been granted before you do anything else. After that you should be able to use the library with no problems.
Since I had developed for a device running Lollipop, I didn't have those steps in mind when I developed the example app in GitHub. I will update it as soon as I can.
Edit: Example app has been updated.

RodrigoDLPontes said:
ponnex, as far as I know, Marshmallow requires the user to give explicit permission for apps to draw over everything. That means the user would have too allow your app through Settings. You could add an Intent to Settings.ACTION_MANAGE_OVERLAY_PERMISSION, so that the user could easily enable your app, and call Settings.canDrawOverlays() to check whether or not permissions have been granted before you do anything else. After that you should be able to use the library with no problems.
Since I had developed for a device running Lollipop, I didn't have those steps in mind when I developed the example app in GitHub. I will update it as soon as I can.
Edit: Example app has been updated.
Click to expand...
Click to collapse
Yes, I know that, all the information you cited above. I guess it would be great if you can include that in the library itself or use a notification along with the service so that it won't need a permission. e.g. Facebook Messenger and other app

ponnex said:
Yes, I know that, all the information you cited above. I guess it would be great if you can include that in the library itself or use a notification along with the service so that it won't need a permission. e.g. Facebook Messenger and other app
Click to expand...
Click to collapse
Sorry about the late reply ponnex, I got sidetracked by some other things. I will look into implementing that!

Related

Android vs iPhone - A comparison of Security Models

Since there have been so many security discussions going on for Android and iPhone, I did a short post on the topic comparing the security models of both. Do chime in with your comments all
Android vs iPhone: Security Models
One point about the "sandbox".
You already pointed out that Apple doesn't have "permissions", but that also affects the sandbox. An app doesn't have to ask permission to get your personal data and they would have no way of stopping it even if it did.
Android not only requires the app to ask for the permission when you install it, they can also enforce that restriction if the permission wasn't requested. The Android sandbox does not allow code to do things it never advertised because it is running tightly controlled bytecodes that can be statically proven to only access the information it was given permission to access.
On the contrary, iOS apps can run any code without any controls other than what the reviewer observes.
So, the "permissions" and the tighter control of the Android sandbox combine to make the apps even more tightly restricted.
One thing I would love to see added to Android is the Blackberry style of permissions where each request can be set to "allow, ask each time, disallow" so you can disallow an app from using a permission it requested, or even allow it, but require the OS to ask you to verify each time the app uses that capability. Right now Android says "this is what it *WILL* do and if you install it I won't do anything to restrict it - either accept this or don't install the app" which is very limiting.
There are quite a few apps that I've installed which asked for permissions that it isn't important for me to give them. I want to use their main feature, but the programmer went and added what they thought was a nifty unrelated feature and that secondary feature requires permissions. If I only want the main feature then I should be able to disallow the unnecessary "addon" permissions. (To name an example - a Zip file browsing app that wants to kill tasks? Really? Why? Oh, because the developer thought it was cool to add a task killer to every app in the market. D'oh!)
Also, the lack of this per-permission "line item veto" capability is teaching Android users to just blindly accept an apps permission requests because they all sound daunting even for benign apps and so they learn to stop thinking about it and the permission granting is really just noise for the sheep for the most part. Granted, there are a few security conscious users that will push back when apps request permissions outside of their needs, but it would be better if the average user would see every time an app does something suspicious, rather than just letting it happen willy-nilly under the covers and the security conscious would have better tools to investigate their suspicions by verifying that the app only generally does use the capabilities when it is about to do something worthwhile.
^^ I totally agree with what you say.. And the ability to revoke certain permissions from the app at certain times is what i desire as well. .This is something that always makes me doubtful when installing apps.. They should atleast do this for the internet permission. I know I can do this by rooting my phone but I want to be able to do it without rooting...

[App] PermissionDog

Hi just made an app with my friend ventrix.
PermissionDog lists all the applications you have installed and checks out what permissions each app is using.
Based on these permissions it sets how dangerous the application can be.
PermissionDog also supports realtime protection. Every time you launch an application
a notification pops up and shows how many permissions the app is using
and how dangerous that application is. (in case you missed reading the permissions when you downloaded the app).
You can exclude any app from Real Time Protection (RTP) or disable the RTP service.
It's like a really lightweight antivirus.
Please note that the application is in Beta stage.Is fully functional and hopefully bug free but needs some tweeks.
Serius updates will come to the next few days!
Android Market Link
Rate if you like.
Looks great. Are you planning a way to edit permissions, so we can retain an application and remove permissions we don't agree with.
weakwire said:
Hi just made an app with my friend ventrix.
PermissionDog lists all the applications you have installed and checks out what permissions each app is using.
Based on these permissions it sets how dangerous the application can be.
PermissionDog also supports realtime protection. Every time you launch an application
a notification pops up and shows how many permissions the app is using
and how dangerous that application is. (in case you missed reading the permissions when you downloaded the app).
You can exclude any app from Real Time Protection (RTP) or disable the RTP service.
It's like a really lightweight antivirus.
Click to expand...
Click to collapse
That's interesting... does it also pick up when an app requests additional permissions that wasn't requested when the app was launched?
PartTimeLegend said:
Looks great. Are you planning a way to edit permissions, so we can retain an application and remove permissions we don't agree with.
Click to expand...
Click to collapse
Permissions Denied does something similar to what you want, although it's not perfect
https://market.android.com/details?id=com.stericson.permissions&feature=search_result

Android: Unlock application's additional features with Facebook share or tweet

I have a free application published on Google Play. I want to add some new features and ask users to 'pay' for them with Facebook shares or tweets.
Scenario:
1. User updates application
2. New features are available in settings but they are not active
3. To activate feature user has to share information about my application on FB or on Tweeter
4. Only if sharing was successful feature will be available to the user.
For me it seems like a good idea to spread information about application in social media... however I can't find any 'out of the box' solution (library or code). Is there any?
Has anybody tried this approach and was it successful?
Also I'm trying to find out if this method is compliant with Google Play policy. I've read play.google.com/about/developer-content-policy.html with great care but I didn't find any clues. Has anyone got any policy violations emails from Google after implementing this method?
Maybe you can find something in the Facebook API.
have ebinks
What do you use to code? There's tons of assets for Unity that'd do what you're trying to do.
Clem_Superhippo said:
What do you use to code? There's tons of assets for Unity that'd do what you're trying to do.
Click to expand...
Click to collapse
I'm not using Unity but develop my app in 'pure' Android SDK.
Just found this library: http://www.codeproject.com/Tips/457153/How-to-integrate-Facebook-Twitter-Linkedin-in-Andr
It looks promising so I'll give it a try.
You mean reward users for posting on Facebook or any social share, sure I dont think its that hard,
just everytime a user presses on the Share button add some coins to him ingame, you can also make
alot of money if you reward useres for watching a video ad in your game like a Vungle ad.

[Q] Cloning Facebook APK for use with multiple accounts?

Greetings, all!
I would like to preface my question the way I always do when posting here: I am a fairly recently blind individual, and my visual aid software does NOT "play nice" with the XDA Forum search feature at ALL; due to this, sometimes I don't catch previously asked questions, though I do my best to check for them.
All that aside, I have a question that has been plaguing me for quite some time. I am what I would consider to be an intermediate(ish) Android user. I am dipping my toes into the pool of app modification and scripting, but I am afraid this is beyond my knowledge.
I am currently using a rooted "vanilla" Samsung Galaxy Note 4 (SM-N910T), running 4.4.4. I am expecting a barrage of "why?" and "what for?" comments, but I use two separate Facebook accounts. I am a part of a rather...underground subculture, and I prefer to keep that part of my identity separate. Due to this fact -- as well as my needs as a blind individual -- the usual suspects: browser windows, Seesmic, SocialCamp, Friendster, etc., do not work with my visual impairment modifications on my device. I have done extensive research on the subject and thus, I am searching desperately for assistance in cloning the Facebook app itself. I am thinking of cloning the Facebook APK file manually in order to run my two separate accounts. I know there are other apps that are frequently cloned, such as Instagram or WhatsApp, where the general consensus is to use the "APK Editor" app, but I am concerned about the implications that would have on future app updates and the app's signature and integration with normal Facebook features and other apps that connect to Facebook.
I have combed the web exhaustively in order to glean whatever info I could on this subject, but there is literally almost NOTHING regarding the Facebook app specifically. I do not wish to clone the app for sharing or to build upon it for a "new and improved" app of my own devise -- I simply wish to modify this for my own personal use ONLY.
I really appreciate any and all tips, hints, and shared knowledge in general that this community so generously provides. I will try whatever it takes! Thanks in advance!
XRivetGirlX said:
Greetings, all!
I would like to preface my question the way I always do when posting here: I am a fairly recently blind individual, and my visual aid software does NOT "play nice" with the XDA Forum search feature at ALL; due to this, sometimes I don't catch previously asked questions, though I do my best to check for them.
All that aside, I have a question that has been plaguing me for quite some time. I am what I would consider to be an intermediate(ish) Android user. I am dipping my toes into the pool of app modification and scripting, but I am afraid this is beyond my knowledge.
I am currently using a rooted "vanilla" Samsung Galaxy Note 4 (SM-N910T), running 4.4.4. I am expecting a barrage of "why?" and "what for?" comments, but I use two separate Facebook accounts. I am a part of a rather...underground subculture, and I prefer to keep that part of my identity separate. Due to this fact -- as well as my needs as a blind individual -- the usual suspects: browser windows, Seesmic, SocialCamp, Friendster, etc., do not work with my visual impairment modifications on my device. I have done extensive research on the subject and thus, I am searching desperately for assistance in cloning the Facebook app itself. I am thinking of cloning the Facebook APK file manually in order to run my two separate accounts. I know there are other apps that are frequently cloned, such as Instagram or WhatsApp, where the general consensus is to use the "APK Editor" app, but I am concerned about the implications that would have on future app updates and the app's signature and integration with normal Facebook features and other apps that connect to Facebook.
I have combed the web exhaustively in order to glean whatever info I could on this subject, but there is literally almost NOTHING regarding the Facebook app specifically. I do not wish to clone the app for sharing or to build upon it for a "new and improved" app of my own devise -- I simply wish to modify this for my own personal use ONLY.
I really appreciate any and all tips, hints, and shared knowledge in general that this community so generously provides. I will try whatever it takes! Thanks in advance!
Click to expand...
Click to collapse
Try using Facebook and a Facebook clone app like Klyph. I haven't used Klyph myself, but it should do everything Facebook does.
I'd use the official Facebook app with the account you use most often. Then Klyph with the account you use less often. But that's just me.
I really hope this works for you! Good luck!
https://play.google.com/store/apps/details?id=com.abewy.klyph_beta
spexwood said:
Try using Facebook and a Facebook clone app like Klyph. I haven't used Klyph myself, but it should do everything Facebook does.
I'd use the official Facebook app with the account you use most often. Then Klyph with the account you use less often. But that's just me.
I really hope this works for you! Good luck!
https://play.google.com/store/apps/details?id=com.abewy.klyph_beta
Click to expand...
Click to collapse
Thanks so much for your input. I will give it a shot and report the results.
Sent from my Samsung SM-N910T using XDA mobile app.
To bad u r rooted, otherwise setting up Knox would be anything you could wish for @XRivetGirlX. With Knox setup you could run multiple facebook identity's and switch very easy between the 2
regards
Thanks for the input I am afraid that I am a little too "root-happy" and could never refrain!
Sent from my Samsung SM-N910T using XDA mobile app.
marleyb said:
To bad u r rooted, otherwise setting up Knox would be anything you could wish for @XRivetGirlX. With Knox setup you could run multiple facebook identity's and switch very easy between the 2
regards
Click to expand...
Click to collapse
Rooting prevents installing knox?
Sent from my mobile device
bat0nas said:
Rooting prevents installing knox?
Sent from my mobile device
Click to expand...
Click to collapse
@bat0nas
Yup , I'm afraid so , no knox and root!:angel:
Not sure if the OP found a solution or not, but I can suggest one.
As you are rooted, may be you can try the profiles feature of Titanium backup Pro (paid version only).
You can create several profiles. And add apps to those profiles, when you switch from one profile to the other (via simple widget), the app data is switched as if you are changing to another user or another phone. So you can still use the same original FB app, but with different user for each Titanium profile.
I hope this helps.
Used to you could decompile the apk in APK-Tool and then change the package name in AndroidManifest.xml, then finally recompile/sign/install. That doesn't even work for me anymore. I get "packaged can not be parsed" or "application not installed"
I need a clone for PayTm app's latest version. You could please help me
I need a clone for PayTm app's latest version. You could please help me

why developers are not focusing more in sailfishOS?

I was just wondering why sailfishOS has still really bad apps.
and why is not developers are doing more apps for this amazing OS?
just wondering
it's very simple: no market.
In general you make apps to earn money. perhaps you'll find some developer or group of developers that will port a popular app as a hobby, student project, or simply because they are using sailfish and want an specific app.
so basically, if there is no market, there is no money. therefore no apps
Actually I have just bought xperia 10 plus to move away from toxic android ecosystem (from google to all the app junk), after I have figured out that I could delete 90% of application on my android phone and I would never miss them.
If you are using sailfish phone, you have an option to run apks there is no real need for native applications. Quite frankly in last few years I could hardly find any application that was something that "I have to have". All the really needed applications were added to the first smartphones: email, gps, browser, sms, mms, calls, video player, music player, camera, contacts, text editor, sound recording... and I am already stretching it with last two, I cant remember when I have last time wrote high volume of text on those tiny useless on screen keyboard or had a need to record some sound.
There is one app on android which I will need (access to online banking) and I hope it will work, it didnt work even on my previous android until I have reversed it and change some code to stop verifying for root and safetynet, so it should work here too.
Everything else is... more a toy than useful or actually some security application to prevent all others doing something that you don't want, from rolling ads to stealing data. I am waiting for this mobile application market to slowly collapse, there is no more value in it except maybe games. Everything else is just wasting time in the least constructive way.
And not having market is a huge bonus, if you check sailfish apps (jolla store and openrepos) you will find that you have everything you need for having a great phone, made by enthusiasts not people that want to become rich. And no one is making useless junk as, as valthunder said, there is no market. And this is fine. Actually great.
root said:
There is one app on android which I will need (access to online banking) and I hope it will work, it didnt work even on my previous android until I have reversed it and change some code to stop verifying for root and safetynet, so it should work here too.
Click to expand...
Click to collapse
Great to read about your decision!
For banking apps that require Google Services you could try to tweak your Sailfish Alien Dalvik with Signature Spoofing and a GServices replacement like MicroG.
The SafetyNet replacement here is the DroidGuard Helper that should be installed alongside GmsCore.
eltmosen said:
Great to read about your decision!
For banking apps that require Google Services you could try to tweak your Sailfish Alien Dalvik with Signature Spoofing and a GServices replacement like MicroG.
The SafetyNet replacement here is the DroidGuard Helper that should be installed alongside GmsCore.
Click to expand...
Click to collapse
Naah, I am having my own "cracked" apk build from previous phone, I have removed all checks to root and safetynet and it works fine, no need to change it. Since the app is just front end for web interface it works since forever, I have also removed version matching with server. Took a day or two but worth it
But I have one question: I am trying to integrate xposed framework (last version as there si no boot/recovery img to try with magisk) into system.img (8.1). And same goes for su. Is there any "official" way how to do it without unpacking system.img, adding binaries, repacking it...
root said:
But I have one question: I am trying to integrate xposed framework (last version as there si no boot/recovery img to try with magisk) into system.img (8.1). And same goes for su. Is there any "official" way how to do it without unpacking system.img, adding binaries, repacking it...
Click to expand...
Click to collapse
Following all things sfos quite closely i did not witness anyone get xposed framework to work. (at least no public report) That might be due to sfos users generally are not Android wizards. The matter might still be a low hanging fruit to anyone with deeper knowledge
Whenever rooting/xposed/su is brought up, much more competent guys then me hint at Alien Dalvik just being an AOSP tailored to run inside LXC on non android kernel plus filesystem integration, Intents integration, shared clipboard etc.
quoting my friend olf:
"Jolla uses many modern measures to confine the Android container: at LXC level, with cgroups, firewall rules, SElinux policies etc.
You may configure additional measures at all these levels, it is just a Linux machine and you are the administrator!"
So maybe what you want to achieve practically is even possible using a whole set of different tools then available in Android?
And yes, my vague explanation hinting at me being a simple user having no clue and just putting things together from forum posts is a correct observation

Categories

Resources