Creating A Lockscreen Replacement App - Java for Android App Development

I am attempting to create a lockscreen replacement application for some research I am doing, but I don't see any documented API's for the Android OS on how I would go about this.
Please let me know where to start if you have any experience with this.

Just found the solution to my question. For any future beings with a similar question:
There is no legit way to replace the lockscreen on an Android device. All of the ones on the market either do not function as advertised, or they use a meddly of questionable API calls in conjunction with one another to SIMULATE a lockscreen.
If you want to actually create your own lockscreen, you need to download and modify the Android source code. The files you need to pay attention to are under "/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard"

Could you please mention how do the other apps in the market do it?? In detail?
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!

As of android 4.4 (KitKat), the source has been moved to frameworks/base/packages/keyguard it seems.

Related

[Q] Modify stock mail app?

First off, I'm brand new to Android development so please bear with me.
My only goal at this point is to add the ability to choose the notification LED color to the Android 2.2 stock mail app (on the Droid). I've searched all over the place and haven't found an existing solution for this yet.
It seems to me like it should be super easy to add this functionality to the stock mail app. I can already choose my sound and vibrate settings, why not the LED color? Toss in some notification.ledARGB = something (plus the few other lines of code to make it work), a list to choose the color and we're good to go.
My problem, though, is I have no idea where to begin to have access to the code of the stock mail app. I would guess it goes something like:
1. Download the apk
2. Somehow open the source
3. Make the changes I need
4. Turn it back into a useable apk
5. Swap out the existing apk with my new modified one on the phone
I really only care about making this work on my own phone, so I'm not worried about signing the apk with a public cert or anything. I'm rooted as well, so no worries there.
Anyone have any insight? If I basically have the right plan of attack, and advice on the specifics? If I'm totally wrong in my approach, any advice on what I should be doing would be greatly appreciated.
Thanks in advance for any help!
I think this app is a part of AOSP, so you don't have to decompile an apk - grab sources and build them.
Well, that certainly makes sense. Just did some digging, and I found a pile of info about getting the source, git, repo, etc.
Naturally I'm a windows user, so it looks like I'll need to get some linux up and running to actually do anything with the source code. Ubuntu is installing as we speak....
Any tips on what to do next for a newbie like me?
Should I follow all the directions to get Eclipse ready to develop on the linux box?
Do I just need to download the Email.git to do what I want?
What do I do with the Email.git once I've gotten it?
Just gonna give this a little bump. I've got my linux box all set up and i've got the entire android source downloaded. I'm not really sure where to go from here, though.
How do I just modify and compile the email app into an apk? Thanks for any forthcoming handholding, guys.

[Q] Cross-tablet apks

Hi all...
I was wondering if and how could be possible to port apks built for one tablet to another of different brand, i.e. I liked a lot the email client of the Samsung Galaxy 10.1 (with multiple email selector and recycle bin emptying feature), but many others are worth a try...
When I try simply to push the email.apk to my Iconia, it won't work (the icon diasppears from apps), if I try to install it I obtain an error (app not installed) probably due to a signing mismatch... I'd like really to learn how to do this, if possible. This knowledge will complete and accomplish any further request about personalization of our tablets, could be a great improvement being capable to get out the "system" you really want...
I tried to figure out how to use apk manager, but it's quite really difficult without some good suggestion, the thread is more than 200 pages long, and I got stoned before simply find out any usefull info about "system apks"...
TIA
I would like to know also. I want the Facebook account integration from the Galaxy.
Some apps are license by that manufacurer and would be considered wares.its a gray area please be careful. And make sure the Dec of all apps you use get paid
simple answer
couple of APK for galaxy are using CORE framework of the galaxy tabs firmware itself
that will not be possible to just install those apk.
such as
touchwizUI
status bar overlay (I mean the minimode menu with quick access), the quick access settings...
Email and Social things
It's their "Marketing Strenght" so they didn't make it easy to be "stolen" by other brands
I run just the dual clock, the memo, and eReader from samsung but I am running a custom firmware so that change many things
At this moment only 1 custom firmware does use Samsung as base, Virtuous Galaxy... but I have to warn that using custom firmware without following backup steps strictly or knowing the consequence is to AVOID.
sanaell said:
...
At this moment only 1 custom firmware does use Samsung as base, Virtuous Galaxy... but I have to warn that using custom firmware without following backup steps strictly or knowing the consequence is to AVOID.
Click to expand...
Click to collapse
first of all, thanks for your answer, and your warn...
I'd like to go deep in the question, as you correctly affirmed, virtuous galaxy's based upon Unity v5 kernel, but virtuous picasso also lays on the same structure, doesn't it?
right now I'm running m-dj's picasso 1.1.0 rom, wouldn't be possible, with any required modification, to run elsewhere coming apks?
I mean, think about having two different pcs, both with the same hardware and the same linux distro and kernel, wouldn't seem wierd that on one pc you could run an application that won't run on the other?
I'm thinking, if they wanted to protect their components why they didn't simply wrote hardware oriented kernels? Therefore, its a fact that on my iconia I can run either a Samsung or an Asus based rom, according to this, where is the cross-platform limit? I mean, is there some sort of documentation defining which part of these Android system is "really" open, under GPL, GNU or whatever structured property info list? I can't find any browsing the net... or maybe I've found too much, its almost impossible to understand what you can and what you can't...
I do not know the whole answer to this question.but I do know this much.if you have any.apk application that is for sale on the market or was installed for free on any device that it was not pre installed on. I would thing it would be considered pirated. As you did not buy it.nor did the developer give permission to run the API on your device.thou some apostle you buy can be installed across the devices you have registered with Googler
if im wrong people please correct me.I just think that developers that fallow rules and write great software MUST BE PAID.
erica_renee said:
I do not know the whole answer to this question.but I do know this much.if you have any.apk application that is for sale on the market or was installed for free on any device that it was not pre installed on. I would thing it would be considered pirated. As you did not buy it.nor did the developer give permission to run the API on your device.thou some apostle you buy can be installed across the devices you have registered with Googler
if im wrong people please correct me.I just think that developers that fallow rules and write great software MUST BE PAID.
Click to expand...
Click to collapse
Right and Wrong
if the application is a paid application and wasn't preinstalled on your tablet it is not really legal
if the application is free but cannot be installed from the market and you install it from other sources it's ok
if the application is from another tablet, and exclusively on this tablet do not expect run it on the stock firmware of your tablet, you have great chance to cannot run it simply, or get some random FC (such as from GALAXY because they use another structure on the file directory... so some application try to get the path and it's return an error, Or they are implemented and integrated with the kernel and that... you can't pass throught)
On my tablet I do run
ASUS widget
Galaxy widget (dual clock)
and some other application not from ACER.
now to get back to the OP
. you are on a virtuous... why not go on the virtuous Galaxy !!! if you want galaxy application... I don't get it...
sanaell said:
now to get back to the OP
. you are on a virtuous... why not go on the virtuous Galaxy !!! if you want galaxy application... I don't get it...
Click to expand...
Click to collapse
I agree to this explanation of yours, when I flash a rom different from the original, aware that's coming from a different brand, I'm more or less conscious that I'm doing something wrong. mmmf... that's philosophy... won't lose your time
The point is, I've tried the Galaxy rom, I don't like the interface, I don't like the extra bar functionalities, in short I mostly appreciated the Email.apk, most of all because it has a convenient "select all" function, even in the recycler bin (I can't stand with an email client stupid like the one embedded in the Acer version). In any case, given the impossibility to get the Galaxy Email, I'll buy a new one on the market...

[Q] Detecting homescreen

Hey guys,
In an effort to 'hack' the Sense homescreen to use a custom launch/shortcut bar, I am creating an app that needs to know if the homescreen is currently visible. With this, I need some help.
I've been looking at four possibilities to do this:
1. constantly poll the window manager for the current activity. This works, however my battery doesn't like this and it's generally bad practice.
2. Use a widget to tell the service wether it's active. Too bad, Android doesn't seem to provide some kind of event to a widget when the homescreen is opened. Strange though, as you'd say this would be very useful when updating widgets. Am I overlooking something?
3. Watch the logcat or message broadcast. This works nicely to intercept a user moving away from the homescreen at it will output this when switching activities:
08-22 12:25:28.891: VERBOSE/HtcAppUsageStats(255): (launch app, package): (People, com.android.htccontacts)
I think I could intercept that, but then there's another problem. Pressing home broadcasts this message for com.htc.launcher, however using the back key (or even software options) to move back to the homescreen do not invoke this.
4. Intercept hardware presses. This seems rather hard when you don't want to actually do something with the presses. This combined with the above method would give me a decent way to see if the homescreen is active.
But all of those methods just don't work the way I want them to. Anyone got a clue on how to accomplish this? I don't mind if I require root access or some dirty programming, by the way. After all, it's some sort of a hack.
A push in the right direction would be very welcome
Quick kick. No one knows a solution for this?
Sent from my HTC Sensation Z710e using XDA App
If this is just for sense, have you checked the openSense sdk?
From something awesome
I haven't really looked into this, I also have no experience with widgets, but using my general knowledge in how Android works, concerning 2), does the widget not receive a visibility change? I know for LiveWallpapers there is a void VisibilityChanged(boolean visible) method that allows it to update when visible. Do Widgets not have this?
killersnowman said:
If this is just for sense, have you checked the openSense sdk?
From something awesome
Click to expand...
Click to collapse
Couldn't find the documentation of it. But it must be somewhere, this is indeed another option to look into.
Metastable said:
I haven't really looked into this, I also have no experience with widgets, but using my general knowledge in how Android works, concerning 2), does the widget not receive a visibility change? I know for LiveWallpapers there is a void VisibilityChanged(boolean visible) method that allows it to update when visible. Do Widgets not have this?
Click to expand...
Click to collapse
I've tried all the event listeners I could find in the reference. I don't remember the VisibilityChanged method thou, will look into that tonight. Otherwise I might be able to build a Live Wallpaper and hook it to a service.. Interesting
Thanks both!

Removing/disabling features of GS4 without rooting/flashing ROM

Hi all,
I am part of an IT Client team and we are trying to prep for the deployment of the GS4. The S3 is our current standard and was received pretty well, but some of the features are overwhelming to our sales force. Is there any way that we can disable some of these features perhaps even automatically via ADB and a USB cable?
Also, we are wanting to have our company app preinstalled. Currently it resides in the marketplace but apparently some of our sales force don't understand the Play Store and that they actually have to go find the app and install it. Is there a way to automatically sideload our app? We were also discussing a launcher like launcherpro with an xml file included that contains default locations for icons, data, etc.
Has anyone tried this before? Please advise with ideas/suggestions. We don't want to flash a ROM generated by our company because that would require too much overhead on our part to manage because thousands of phones need to me maintained. We also don't want to root the NatureUI/Touchwiz stock rom that comes with the S4.
metroidnemesis13 said:
Hi all,
I am part of an IT Client team and we are trying to prep for the deployment of the GS4. The S3 is our current standard and was received pretty well, but some of the features are overwhelming to our sales force. Is there any way that we can disable some of these features perhaps even automatically via ADB and a USB cable?
Also, we are wanting to have our company app preinstalled. Currently it resides in the marketplace but apparently some of our sales force don't understand the Play Store and that they actually have to go find the app and install it. Is there a way to automatically sideload our app? We were also discussing a launcher like launcherpro with an xml file included that contains default locations for icons, data, etc.
Has anyone tried this before? Please advise with ideas/suggestions. We don't want to flash a ROM generated by our company because that would require too much overhead on our part to manage because thousands of phones need to me maintained. We also don't want to root the NatureUI/Touchwiz stock rom that comes with the S4.
Click to expand...
Click to collapse
I'm not quite sure about disabling features on the stock ROM. I know there's an Easy mode that can be used for first time smartphone owners. As far as preloading your company app, you can write a script to do so. However, that requires you to manually enable developer mode and USB debugging on every single phone. I'm not sure how practical this is, considering you have so many phones. A better way might be to send a mass text message or email to each of the phones with the play store link to the app. Once again, considering the employees might be unfamiliar with the phone, a text would probably be the simple way to go. I would use side-loading as a way of installing your app in the event that someone had an issue with the text. I believe you'd run into the same issues with preinstalling LauncherPro and associated xml files. It doesn't seem there's a way you can properly deploy what you need to w/o going hands on on all units.
Please read forum rules before posting
Questions and help issues go in Q&A and Help section
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
Depending on what functionality you would like to disable, you can go to the App Manager heading in the Settings menu, and disable system apps you don't use. In terms of disabling parts of functionality in certain system apps, that probably wouldn't be possible on stock unrooted devices.
metroidnemesis13 said:
apparently some of our sales force don't understand the Play Store
Click to expand...
Click to collapse
...
I'm not sure how to solve your problem. I was going to say once you are willing to ADB and USB debug you might as well cook up the ROM the way you want it and blast it on with Odin.
However, one thing to be concerned about is the OTA software updates that you probably want your users to be able to receive. If you mod the stock software (either with ADB or a modded ROM) in such a way to make the phone status 'Custom' your users won't be able to get updates and bug fixes from Samsung.
I would just try to hold their hand through getting the app installed (ie. email them a link to it when they get a phone so all they have to do is tap the link and hit install) and leave the rest of the phone alone.

Bounty for Homescreen Customization

Hello. I'm new to Android. I recently bought an S4 after 5.5 years with various iPhones. The ability to customize my phone is awesome, but daunting given all of the different apps and rooting knowledge that are required. Unfortunately, after having my phone for months, I've made little progress in learning how to do what I want to do with it because I work a ton of hours. Thus, I will pay someone to set up my phone the way I want. I live in Los Angeles, so I prefer someone who can do this in person. But I am happy to do this over Skype or the phone if possible. I have no idea how much to pay for this, so I'm open to bids.
I have an S4 on AT&T. It's not rooted. Let me know what other phone information you need. I would like the following from you:
(1) my phone rooted, and an explanation of which ROMs are available so I can pick the best one for me
(2) customized lockscreen setup, including the ability to run various apps/widgets with a numerical lock code, but not having to unlock my phone first (as I understand it, I need a customized ROM to do this because certain widgets run only without a lock code being used on the phone)
(3) customized home screens. Not just one though. I am envisioning a different theme for each page (maybe around 5 pages total). Thus, I want to be able to use a different picture on each home screen and potentially use different size icons and text on each home screen.
(4) some tasker automation (I already have a few ideas myself, but am open to suggestions from you to automate my phone)
I am not asking you to come up with the design ideas for my lockscreens and homescreens. I already have most of what I want in my head, and have downloaded the appropriate pictures. I'm going for a minimalist design. I just need someone to help me execute my ideas (which may include some photo editing), though if you have any design suggestions I would like to hear them.
Please send me a private message, including how much you'd charge for your help, and we'll go from there. Thank you very much.
Paul
Before you ask, what firmware are you running? The newest firmware blocked root access and is impossible to downgrade or root
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
You should look into SSLauncher. It's not what I use, but I played around with it for a few days. It is definitely the most customizable launcher on the Play Store.
This is not what a bounty is. You are looking to pay for work. This is not allowed on XDA and violated the free sharing spirit of XDA.
I am sorry for an inconvenience
Friendly Neighborhood Moderator

Categories

Resources