eta on widget api release? - G1 Android Development

I know this isn't available yet, but does anyone know when we'll be allowed to develop widgets? I have some ideas for some really useful stuff, and it's killing me that I can't do anything about it!

i think between the next couple of SDK releases, we should have it.

I'm actually looking to implement this myself.
You can grab the Launcher code from the android git tree and then implement the changes to allow 3rd party widgets... it's actually not that hard to do.
The problem I ran into is that all apps are sandboxed from eachother. Ie, one developer's APK might have a widget, but the Launcher would have no way to access the classes in that APK due to the sandbox.
The way around this is to use sharedUserId, but that requires that both widgets are signed by the same private key. There may be some security issues with that.

Related

Help loading Mvelopes APK

Hey guys,
I am trying to load mvelopes.apk and keep getting "Application not installed".
I have tried it from my "download" folder as well as "system/app" with no luck.
I took the apk from my phone, it was in a Titanium backup file (xxx.apk.gz) Could that be part of the problem?
Permissions are set to RW R R and root is the owner.
Any suggestions would be appreciated.
Without knowing what that app does, a possible reason for it not installing is that it has some dependency on other tools that either aren't enabled or are not available on the KF.
As an example, apps that use GeoLocation or the camera won't install because they are looking for hooks that just aren't there.
mvelopes is an app to manage personal budgets and money. It is associated with mvelopes.com and is a lot like mint.com.
Here is the Android Market Link
I would love it if somebody could see if they can load it on their device. Especially one that has market installed.
If you look at the Permissions tab it say's:
"FINE (GPS) LOCATION
Access fine location sources such as the Global Positioning System on the device, where available. Malicious applications can use this to determine where you are, and may consume additional battery power."
I think this is what is making it impossible to install right now, because it's looking for location services which aren't enabled on the KF. Perhaps with a custom ROM this might be possible in the future, but nobody knows for sure right now. Not all is lost, you just might have to wait a month or so to find out.
Thank you!
Thanks for looking into this and that would explain it.
I have also opened a ticket with Mvelopes requesting that they make it officially supported in the Amazon market.
I won't hold my breath as the ROM approach might be better once they get fully refined.
Thanks again!
bneilson said:
Thanks for looking into this and that would explain it.
I have also opened a ticket with Mvelopes requesting that they make it officially supported in the Amazon market.
I won't hold my breath as the ROM approach might be better once they get fully refined.
Thanks again!
Click to expand...
Click to collapse
I don't hold out hope that CM7 or any other ROM will help us here - Maybe they can spoof the location somehow to fool the app but it seems like your first instinct might have been right -- the onus is on the companies who build the apps to get with it and embrace the "tablet revolution". Basically apps designed for phone screens look silly on tablets; the wide bits of useless screen real estate are dreadful. Case in point - the Gmail app on the KF.
Light at the end of the tunnel tho - it seems that companies are suddenly realizing that "Tablet App" doesn't necessarily mean "iPad App".
Banking from my KF would be pretty awesome.
hoss12300 said:
I don't hold out hope that CM7 or any other ROM will help us here - Maybe they can spoof the location somehow to fool the app but it seems like your first instinct might have been right -- the onus is on the companies who build the apps to get with it and embrace the "tablet revolution". Basically apps designed for phone screens look silly on tablets; the wide bits of useless screen real estate are dreadful. Case in point - the Gmail app on the KF.
Light at the end of the tunnel tho - it seems that companies are suddenly realizing that "Tablet App" doesn't necessarily mean "iPad App".
Banking from my KF would be pretty awesome.
Click to expand...
Click to collapse
You may be right there, but I think Location Settings also include WiFi based geolocation as well as far as I'm aware? I'm not sure why such an app would require location settings anyway, it's a bloody budgeting app! Maybe the OP should approach the developer, and tell them they are missing out on the KF market here!
Someone should make a T-Shirt - Tablet App != iPad App
sl0ttedpig said:
You may be right there, but I think Location Settings also include WiFi based geolocation as well as far as I'm aware? I'm not sure why such an app would require location settings anyway, it's a bloody budgeting app! Maybe the OP should approach the developer, and tell them they are missing out on the KF market here!
Someone should make a T-Shirt - Tablet App != iPad App
Click to expand...
Click to collapse
Yep, in this context (the Mvelopes requirements) Wifi geolocation can only provide you with the coarse location, not fine. As you point out tho, its a banking app - why on earth does it need to know where you are within 50m (I'm pretty sure that's the radius)? Quizzical indeed. Perhaps if a Dev sees this thread some light can be shed on why this is 'necessary'.
Some nerdy stuff on the subject from the Android Dev Guide: Location and Maps > Obtaining User Location

[Q] Why aren't there more floating apps?

So, there have always been a couple of "floating" apps in the market. For example,
https://play.google.com/store/apps/details?id=gpc.myweb.hinet.net.PopupVideo&hl=en
Anyway, my question is why don't other apps use the same framework code that these floating apps use? Or is it just completely different than what I think it is. I've tried asking this on Reddit before but people didn't understand what I was asking and just kept downvoting/ignoring the posts.. Aren't floating apps just basically the Samsung floating ones without having to launch them via the multiwindow launcher?
EDIT:
What I was asking about are floating apps, not associated with touchwiz. Please stop referring to the ones associated with JB.. I have seen the threads that concern customizing your apps such that they can be launched with the multiwindow launcher, but that is not what I am asking about. Again, look at the playstore link, it works with non-touchwiz android strains, right? That's what I am talking about. Please READ this before posting a comment about touchwiz AGAIN.
I think this is resolved in that we've decided that it is because developers think that people don't care about multitasking for tablets, not necessarily because it is hard to implement.
check this thread out:
http://forum.xda-developers.com/showthread.php?p=33965979
Sent from my GT-N8013 using XDA Premium HD app
Right, so you've misunderstood my question..
I mean, the floating calculator apps and whatever from before the Galaxy Note Line came out, these all work on other devices. Why is it that apps can't incorporate the framework within them to be used whenever, without using the multiwindow launcher?
Let me tell you why your posts were ignored.
It seems you're not so much asking a question as pushing an agenda.
You seem to want someone to say "wow that's a great idea let's do that!"
In which case your question is moot.
Either that or you're just assuming for some reason that app developers aren't
making everything multiwindow because it's difficult to implement. More likely
devs could give a *%#$ about multiwindow when coding an app i.e. it's not a
priority.
blud7 said:
Let me tell you why your posts were ignored.
It seems you're not so much asking a question as pushing an agenda.
You seem to want someone to say "wow that's a great idea let's do that!"
In which case your question is moot.
Either that or you're just assuming for some reason that app developers aren't
making everything multiwindow because it's difficult to implement. More likely
devs could give a *%#$ about multiwindow when coding an app i.e. it's not a
priority.
Click to expand...
Click to collapse
Yes.. basically. I don't know how to code Android apps (my experience with programming is in analytical things) so I don't exactly know how much work is involved in getting that framework into an existing code. I assumed that multiwindow is an attractive option because of the hype regarding Cornerstone and now Samsung's multitasking abilities, but I guess that isn't really the case. Is it actually hard? I'm still not sure I have an answer for that because it just sounds like you're telling me no one gives a ****, which is an answer to one of my questions, but not all of them..
http://forum.xda-developers.com/showthread.php?t=1998133
Here ya go, make ANY app multi screen. Enjoy.
This option still requires the Multiwindow launcher, correct?
Or does it not actually require the multiwindow launcher, but there's no way to distinguish between wanting to launch it as a window and launch as a whole screen except through the multiwindow launcher?
Otherwise.. you just didn't read the rest of the thread or my posts.
No, it seems he didn't read any of the posts above.
And again yeah, I think multiwindow is not a priority for most app devs.
With enough people clamouring for it, well who knows?
The truth is, every addition requires more effort as well as implementing features
that the dev may not have thought of. What if the target audience is phones only?
What if the target is multiple devices? I myself have no experience coding for android,
but an educated guess would tell me that's where the problem lies. I'm sure you've
read that one problem with android is the multiple devices it runs on...
Ah.. You're probably right. I was just thinking that it'd be the most excellent way to differentiate Android tablet apps (because all the review articles love to say that iPads have tablet optimized apps but Android tablets don't). I guess I'll look into it as a side project after qual's...
Aren't floating apps integrated to touchwiz?
Not what I was asking.. but yes.
There are apps that "float" without using touchwiz, such as a browser and a video player, but nothing to organize them the way samsung did. That said, multiwindow is coded into the OS rather than apps running workarounds to make it float. I can't say all apps should be floating, like games or whatnot, but the ones that you use on a daily basis would be more worth floating. There could be 1, 000 reasons why devs don't float all their apps, but if they don't then they don't. But if they do, it wouldn't be a bad idea to make an app that organizes floating windows into a multiwindow setting. The only problem is making the app. It might be worth looking into samsung's source code to see what they do to make it work.
Sent from my SGH-T999 using XDA Premium HD app

Facebook Home specific ROM?

I see that the HTC First will be more integrated into the notification system of Android. Will ROM makers be able to make these higher level integrations on their ROMs, or is this specific to individual devices, like PhotoSphere?
Probably way too early in the game for such. Don't know much about it yet but it seems Facebook Home is deeply integrated into the OS (with respect to the First), mainly in the form of a launcher. However, HTC/Facebook states the First comes "preinstalled" with Home so maybe they will be releasing a stand alone launcher for other phones.
zhp pilot said:
Probably way too early in the game for such. Don't know much about it yet but it seems Facebook Home is deeply integrated into the OS (with respect to the First), mainly in the form of a launcher. However, HTC/Facebook states the First comes "preinstalled" with Home so maybe they will be releasing a stand alone launcher for other phones.
Click to expand...
Click to collapse
From what I understand, the idea is to have a standalone launcher serperate from the Facebook and Messenger apps, in case you don't want the launcher. But if you get the launcher, it also includes a universal messenger for Facebook and SMS. The "deep integration" on the First is for notifications only, and the way the OS handles them.
I read an article stating the First will have a way of uninstalling the app so you have a stock OS.

The recent (and multiple) changes in newer official Gapps

Let me say first this- is NOT a tinfoil hat-style thread. I know data gets collected and that is not really the concern I have here. I am more interested in what seems to be an attempt at monopolizing users' devices. What I am trying to start a discussion on is the recent changes in just about every Google-produced apk update and the changes these updates implement into the Android environment. Take GBoard for example....this recent update took an excellent keyboard and added several features to it that are frankly, redundant and unnecessary. Rendering is better in Chrome or Firefox and with "Now on Tap", Google search widget, Google Now, and the browsers themselves this redundancy is borderline meaningless and seems more like bloatware intended to promote people to use google over any other search engine. Android System Webview is almost as meaningless. There is no reason to have an un-configurable web interface coded into every app when it makes more sense to just use a browser with more feature-rich abilities. I could see it maybe useful on slow devices, but anyone with a Qualcomm dual-core or better should not need it.
Then on the other end of the spectrum they have Google Now Launcher, which has not been updated in over a year and is extremely boring in its customizability. NowLauncher has been ignored even though it's the core of the interface. It's as if they are just bored and instead push updates in order to make people feel like things are new, when in fact many of these updates are really downgrades in functionality by causing the operating system to feel schizophrenic.
Now I am certain some will agree and probably more will disagree, but I am finding myself simply disabling or uninstalling more and more of google's totally revamped "upgraded" apps. The level of device synergy they are trying to accomplish appears to be doing the opposite and creating solutions for problems that really didn't exist. These things may pose security issues, but again that is the least of my concern.
It kinda makes me feel like Google's change in direction since the drop of the Nexus line has caused further alienation of those who loved Android for being simple yet customizable. Does anyone out there agree that Google needs to calm down a bit with these changes and maybe consider that add-ons are not improvements? I know one thing for sure- it's beginning to drive me towards AOSP and third party alternatives. I appreciate any and all input. Thanks.
The Now Launcher hasn't been updated because they moved to the Pixel launcher, I guess.
I honestly kinda like the Pixel launcher a lot better than Now launcher, though I don't use either of them. I did try them, but I prefer Nova still.
As for the keyboard, I think what they did was to make stuff more convenient, or at least try it.
The keyboard browser wasn't made to replace an actual browser. It's just for really small searches.
I also find it kinda neat.
I myself don't use Google Now, nor Google Assistant. I don't even have the Google app installed.
So being able to do a quick search right from the keyboard could prove useful in this scenario.
And I'm pretty sure I saw a switch to turn off the search option, so you can still have the old-school keyboard while still having the new features (multilingual predictions).
But I'm not using their keyboard either. It doesn't really have what I need.
Most Google apps don't suit my needs, so I opt not to use them. And that's everybody can do. They aren't forced to use them. Sure, they may come pre-installed on devices, but I'm almost certain that you can disable them if you don't need of use them.

[APP][MOD][4.4+] Instagram without ads and annoyances

Hi all. It seems like there's a lot of people annoyed by ads on Instagram. I was, too, until I figured out a novel way to patch it.
Changes
Removed ads in the feed.
Removed ads in stories.
Removed "who to follow" blocks in the feed.
Removed stories in the feed (those between the posts, not those on top of course).
Carousel posts always show the first media instead of randomly jumping to the second one.
Analytics requests are blocked.
Enabled "internal" settings, accessible by either long-pressing the home tab or in the settings menu. These allow doing a lot, so use with care. The most useful feature so far is the ability to manually override each of the gazillion server-side configuration values.
Without further ado, here's the link: Download.
How my patch works
Instagram, as, probably, all the other Facebook apps, uses Proxygen for its HTTP client. Since Proxygen is written in C++, it needs JNI bindings to be used in an Android app. This means that the Java classes that interface with the native code can't be obfuscated. So, instead of digging through piles of obfuscated code that gets reshuffled with each update, I did the most straightforward thing: I injected my code into Proxygen's Java part. I had to make minimal modifications to the bytecode in order to intercept the API responses and pass them through my code before the app gets any chance to process them.
To repeat the process yourself:
Download any Instagram apk or pull one from your device.
Run apktool d on it.
Download View attachment 4752809 and unpack it. Place the two files into smail/com/facebook/proxygen in your disassembled Instagram folder, replacing the existing ones.
Download View attachment 4842971, unpack it and place the folder into any of the smali folders; I did smali_classes3 because there was no room for method references in the first dex.
Build the new apk with apktool b.
Sign it.
Install it.
Enjoy!
The sources for the hooks are in View attachment 4842969. You compile these with javac, then run dx to convert them to dex, then baksmali to get the smali files that apktool can then integrate into Instagram's dex.
Unlocking the developer settings is another thing entirely as it doesn't depend on the API. There's no getting around the obfuscated code. You need to find an enum class that has RELEASE, DEBUG, INHOUSE as its values. There are several methods that return boolean; you need to change the one that returns true to false (this determines whether this is a release build), and then another one to return true so that the build type returned ends up as INHOUSE. Decompiling it using jadx makes figuring this out a lot easier.
I'll probably automate the patching process at some point in the future.
Hope you enjoy!
13/10/2019: updated to v114 and updated hooks files.
App seems to crash when I access my following list by going to my profile. Running Android Pie.
Ac3Da3m0n said:
App seems to crash when I access my following list by going to my profile. Running Android Pie.
Click to expand...
Click to collapse
I can confirm this. App crashes when I open my following and followers list, and when I open my "viewed by" stories list.
Enviado de meu Redmi Note 5 usando o Tapatalk
I'll test on my Xiaomi Redmi Note 6 Pro
Can I download pics with this Mods?
el_easy said:
Can I download pics with this Mods?
Click to expand...
Click to collapse
No. It's not modded Instagram app.
Crashes on following/followers list
And on multiple logins also
el_easy said:
Can I download pics with this Mods?
Click to expand...
Click to collapse
No. This doesn't touch any of the UI because I aim for it to be as portable between versions as possible. To modify the UI you inevitably have to touch obfuscated code.
These crashes are caused by apktool not decoding resources properly. I created an issue on github.
Great work. On the most part, ads are blocked. However, branded content shows up in the feed sometimes. I think there's an internal setting called "branded content show settings" not sure if this is the right option.
Also has anyone figured out which internal flag switches the feed back to a linear post history instead of the personalized one?
Edit:
To those who can't seem to install the apk, you have to disable Play Protect in the Google Play Store as that is blocking apps with an unknown signature from being installed.
There are some crashes when I tweaking settings, otherwise good mod.
Great work, thanks
I can confirm it crashes when trying to open the followers list
@Grishka11, for many people its crashing including me. Can you upload a patched version so that its easier for everyone to just install the apk?
Grishka11 said:
No. This doesn't touch any of the UI because I aim for it to be as portable between versions as possible. To modify the UI you inevitably have to touch obfuscated code.
Click to expand...
Click to collapse
Thanks bro, I will wait for the next version because the crashes ...
By the way, I hope one day you can do the same with Facebook app, I know evilwomba does that, but he takes too long to update..
pratik_193 said:
@Grishka11, for many people its crashing including me. Can you upload a patched version so that its easier for everyone to just install the apk?
Click to expand...
Click to collapse
What do you mean? This is a patched version. There's a bug in apktool that causes it to crash because of the non-standard way the resources are stored in the original apk to reduce its size.
el_easy said:
Thanks bro, I will wait for the next version because the crashes ...
By the way, I hope one day you can do the same with Facebook app, I know evilwomba does that, but he takes too long to update..
Click to expand...
Click to collapse
I mainly patched Instagram because I use it myself a lot. Facebook isn't a thing where I'm from, so I don't even have the app installed, I use the mobile website on the rare occasions when I need it. I can try, of course...
Great work and pretty interesting approach. Keep it up!
Grishka11 said:
What do you mean? This is a patched version. There's a bug in apktool that causes it to crash because of the non-standard way the resources are stored in the original apk to reduce its size.
Click to expand...
Click to collapse
You are right. The mod is amazing! It was getting very annoying to see ad after every 2nd or 3rd post on insta.
Any news about a possible fix?
nicknitewolf said:
Great work. On the most part, ads are blocked. However, branded content shows up in the feed sometimes. I think there's an internal setting called "branded content show settings" not sure if this is the right option.
Also has anyone figured out which internal flag switches the feed back to a linear post history instead of the personalized one?
Edit:
To those who can't seem to install the apk, you have to disable Play Protect in the Google Play Store as that is blocking apps with an unknown signature from being installed.
Click to expand...
Click to collapse
confirmed about sponsored post shows up sometimes.
keep up the good work!

Categories

Resources