Add an AccessibiltyService to a decompiled android app - Android Software/Hacking General [Developers Only]

Hello Guys & Gals
I'm a SEC student and i have a lab to do with these conditions.
1.Decompile an app
2.Add an AccessibiltyService to it
3.Check if the user has app1.example, app2.example
4.Use ViewTextChanged event like a keylogger to grab the named apps data.
My Solution was
1.I've done it via apktool, that was easy though.
2.First i've decompiled it to Java via Jadx and i've got tons of errors, then i thought it's better to create an AccessibiltyService outside that app, compile it to smali and inject it to the app, next.
these are some related articles
How to Create an Accessibility Service in Android with Example? - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org
Inclusive Android Interfaces with Custom Accessibility Services — SitePoint
Custom Accessibility Services for Android allow a developer to create inclusive interfaces for all users and Valdio Veliu shows us how to create our own.
www.sitepoint.com
A complete guide to Accessibility Service Part 1
Now since you are reading about accessibility service you must be familiar with the marvelous application of this service in android. If…
medium.com
[GUIDE][INDEX]How to modify an apk
How to modify an apk Intro: I’ve done several threads about how to theme and other similar topics but the info is sparse, so this ultimate guide/index will seat proudly in the theme section of XDA and will be updated when new things come, and...
forum.xda-developers.com
honestly those are good articles but didn't help me a lot to complete my lab.
i still can't create a standard AccessibiltyService.
would you please recommend me your solutions.
Thanks in advance.

Related

[Q] Hello World!

Thats where I'm at...
I'm going to learn java then transition to android with the end-result being an app developed for android. I don't think it will be a difficult app to develop. A database with a front end GUI for data entry and retrieval with export and backup options. Nothing flashy or fancy, but nothing that currently exists fits what I want it for the way I want it. I would like to have it done by the end of the year working around real life.
I am completely new to Programming. More of a power user, but that is where it ends... I am a complete user.
I bought a book called Java 7 for absolute beginners by Jay Bryant (ISBN 1430236868)... Can't link to it because of anti-spam rules. Don't know if it will help.
What are some other books (I can't learn with e-books... I do better with a textbook) that the experts here would recommend?
Java is good, but you also have to learn all about the Android system.
This includes activities, providers, cursors, listviews and any number of things that are not in your Java book.
The usual mother lode for Android documentation is the, um, Android documentation!
http://developer.android.com/reference/packages.html
Short advice on how to write your app (pretty much standard advice for anything at all DB related).
Write a provider for your information that is backed by an SQLite database.
Write an activity that queries this and uses Cursor and CursorAdapter to fill a ListView.
Renate NST said:
Java is good, but you also have to learn all about the Android system.
This includes activities, providers, cursors, listviews and any number of things that are not in your Java book.
The usual mother lode for Android documentation is the, um, Android documentation!
Short advice on how to write your app (pretty much standard advice for anything at all DB related).
Write a provider for your information that is backed by an SQLite database.
Write an activity that queries this and uses Cursor and CursorAdapter to fill a ListView.
Click to expand...
Click to collapse
Thanks.
I wanted to learn the programming language basics before throwing android into it.

From Desktop to Android Development

From Desktop and Web to Android Devices : I Need Help
For over twenty years I have developed apps using Borland's Delphi and BDS development tools. I now want to migrate a subset of that functionality to Android devices ... but need help getting over the learning curve hump.
The general particulars are:
1. Master-Detail, content management. Multiple detail data tables for each master record.
2. Image gallery. See all images in the gallery or only those images which have been linked to a master record.
3. Taking a pic and linking it to a master record.
4. Ability to query for local businesses ... such as "Find <business name> within <x miles> of my current GPS location.
I currently have Eclipse and the latest ADK tools installed. Also, I have some Java experience.
Is there a place I can go to find a baseline source code framework that satisfies these requirements and demonstrates how to store and manage the master and detail data and links?
Any help would be greatly appreciated. I can be contacted at [email protected]
Many thanks, from an old dog trying to learn new tricks.
Patrick
In my opinion, the best way for not a game development is using Xamarin platform. Xamarin is pretty good, but it's not a free.
All I can provide is the hard way : stick to a place like stackoverflow.com + the android official documentation.
You'll find tons of content relating to your question ; I'm sure about that.
VirginiaFarm said:
From Desktop and Web to Android Devices : I Need Help
For over twenty years I have developed apps using Borland's Delphi and BDS development tools. I now want to migrate a subset of that functionality to Android devices ... but need help getting over the learning curve hump.
The general particulars are:
1. Master-Detail, content management. Multiple detail data tables for each master record.
2. Image gallery. See all images in the gallery or only those images which have been linked to a master record.
3. Taking a pic and linking it to a master record.
4. Ability to query for local businesses ... such as "Find <business name> within <x miles> of my current GPS location.
I currently have Eclipse and the latest ADK tools installed. Also, I have some Java experience.
Is there a place I can go to find a baseline source code framework that satisfies these requirements and demonstrates how to store and manage the master and detail data and links?
Any help would be greatly appreciated. I can be contacted at [email protected]
Many thanks, from an old dog trying to learn new tricks.
Patrick
Click to expand...
Click to collapse
The offical Android Tutorials are a great place to start.
I've found that if you start by trying to build something that you have in the past but target it at Android you'll learn a lot about the framework, its quirks, and how to do things maybe a little bit better than what you'll sometimes find on various sites. I second that Android's docs and tutorials are a great place to start, but you could take them and piece something together right from the start. It's also a great way to see how your project will work and perform on a real device running the Dalvik or ART VM FWIW, you'll notice that things will perform MUCH better with ART.
If you are a window coder, using java or c# is easy for transform, so download android studio or xamarin, open examples and do again.
If sqlite (default in android is not enough with you) you need create app with client-server app

[Q] From Desktop to Android Development

From Desktop and Web to Android Devices : I Need Help
For almost twenty years I have developed apps using Borland's Delphi (starting with v1) and BDS development tools. I now want to migrate a subset of that functionality to Android devices ... but need help getting over the learning curve hump.
The general particulars are:
1. Master-Detail, content management. Multiple detail data tables for each master record.
2. Image gallery. See all images in the gallery or only those images which have been linked to a master record.
3. Taking a pic and linking it to a master record.
4. Ability to query for local businesses ... such as "Find <business name> within <x miles> of my current GPS location.
I currently have Eclipse and the latest ADK tools installed. Also, I have some Java experience.
Is there a place I can go to find a baseline source code framework that satisfies these requirements and demonstrates how to store and manage the master and detail data and links?
Any help would be greatly appreciated. I can be contacted at [email protected]
Many thanks, from an old dog trying to learn new tricks.
Patrick

Best back end for Android app?

I appologize if this is a dumb question, but I am new to app development, altough some experienced in php/html.
I want to create an app where user fills in forms. The app development is easy to find info about, but i also want a back end plattform where I read the submitted forms and organize users.
So, my question. Is there a sort of ready wordpress like plattform to customize, or should this be built from scratch? If so, which platform is the best?
One note I should add about Buddy (full disclosure: I work there) is that we maintain independent instances of the platform in different locations around the world. If you need to host your backend in Europe (for response time or data sovereignty reasons, for example), you can choose your app backend to be sandboxed in the EU. Likewise the US and likewise China (with Brazil, Singapore and Australia coming soon).
he best way to develop mobile apps is to use REST services. So now you can choose any thing.
Any language that can used for server side programming can be used.
Now it is up to you choose the language.
If you familiar with JavaScript then you can try nodejs. You can make small app server in it.
But if your server software design is very complex (containing threads and synchronisation) then java can be handy.
But there is no restriction of language.
Firebase should be also a way to go for this.
The best android back end services include, Parse, Kumulos, Kinvey, backendless, QuickBlox.
Concerning the forms where users can fill up information, would something like help out?
https://play.google.com/store/apps/d...solutions.fasp
On Apple's platform you might need an iPhone developer - it is quite possible to create and publish an iPhone app using your form.
I did take the help of mobile apps development service in toronto to know the process which is described here: http://support.brightcove.com/en/app-cloud/docs/step-step-guide-publishing-apple-app-store-using-mac
Thanks Carol for sharing such a wonderful article.
"Planet Odoo | About | Odoo Migration, Odoo -Quickbook Integration
Odoo-Ebay Integration takes into consideration the competitive level in business and provides a quick fix implementation for every industry to break through.
I have heard good things about Hasura (Not affiliated in anyway). And I think parse - mentioned above - is no longer available.
I'm wondering why nobody mentioned Google CLoud or AWS. They are most mobile friendly for a good price
Hi, if you will decide to build from scratch, there are different options/frameworks. But If you use kotlin you should look to Ktor.
Backend options for an Android app
Here, The list of good backend options for an Android app:
1. Parse.
2. Back4app.
3. Firebase.
4. Kinvey.
5. Appcelerator.

[APP] Seeking Help To Rev Engineer My Own App

First I want to make this clear right from the start that I am the developer/author of the app I am wanting to reverse engineer. There is nothing illegal or questionable about my intentions.
If I have posted this in the wrong section I do apologize and would ask that it be moved to the appropriate section.
Before I go into any specifics of what the app does or what it is used for; the reason why I am wanting to reverse engineer the apk back into source code has a somewhat unique origin that very few people will ever encounter. About 4 years ago I began development on my app that is now known as Ls Droid. I did not know any Java code and I had an idea at the time that lead me to find a development tool created by MIT that was known as App Inventor 2. If you've never heard of this before, App Inventor is a GUI based programming language based on Googles Blocky that allows the user to combine various types of blocks that each represent different code functions and create working Android apps. I'm not going to discuss how App Inventor works but you can read the overview of it at appinventor.mit.edu/ . Over time my app outgrew what MIT's version of App Inventor was capable of and I moved my app to another platform(Thunkable) that was still based on App Inventor but greatly expanded on it's functionality and was capable of dealing with larger projects than what the MIT servers would allow. I used Thunkable for several years and ran my app though it's entire Alpha development life cycle and into an open Beta. Unfortunately Thunkable had been creating their own(improved) version of App Inventor from the ground up and not only was it incompatible with app's created on the App Inventor platform but they did not include many of the things my app required to work and I was forced to look for another platform to move my app to in order to continue development. Unfortunately by this point all of the spin off versions of the original MIT App Inventor had created advertising components and the majority of people using these GUI based programming platforms were now focused on creating earning apps. As a result the people running spin off versions of App inventor are now focused on providing tools based around add based apps and less interested in fixing basic functionality for core components as they are rarely used in earning app.
So this brings me to my current situation. The compiler used by the current GUI programming platform I have been using for the last 8 months or so has become unreliable and buggy. Core functionality of how specific blocks function has also been altered several times in the last 6 months and each time a change like this is made requires dozens of hours to restructure my apps logic to work with the new changes. I have tried to leave these GUI based programming platforms several times and move my app into Android Studio but have never been successful. Attempting to recreate my app from scratch in Android Studio would be a massive undertaking even for someone fluent in Java and I only have a basic understanding of Java at best. I can however work from existing code and alter or restructure it with out a lot of trouble and that's basically all I need to do in my app at this point.
I have worked with a number of people in the past who have tried to help me turn an APK back into source code that worked in Android Studio and about a year and a half ago I was working with someone who was able to decompile the app and successfully import it into Android Studio where it did mostly work with the emulator. Unfortunately this person was killed in a car accident, I do have a copy of what they had done that was close to a working version but I was never able to get a copy of the source they had working in Android Studio. I have had a couple of other people look at this code since then but no one else was able to do anything with it. At this point the version that was being worked on that did open in Android Studio is old enough that it bears very little resemblance to the current version of the app and attempting to even work from this code now would be a massive step backwards.
In the past I have always looked for help from automotive reverse engineering forums since my app has a very unique purpose, it is used to read and write the binary code from an engine's computer on a number of General Motors vehicles that are popular/common in the hot rod community using a Bluetooth tool connected to the vehicles OBD II data port. I created this app to remove the cost barrier that had previously been required when you wanted to make changes to an engines program on fuel injected vehicles....my app is free and uses a relatively cheap OBD II tool. There are thousands of people that have used my app over the last couple of years and successfully re-tuned their vehicle with many of these people being able to do this with no cost out of pocket as they already had the tool my app was designed to work with.
My app is now at the point where even making basic changes or bug fixes is becoming an issue due to constant changes in the GUI based programming language. I have exhausted the help of various automotive community's, mixing smart phones and cars was a long shot in the first place and here I am 4 years later with a very successful app but it's well beyond what my network of car hacking colleges are able help me with. It's no secret that XDA has some of the best Android developers(and hackers) anywhere on the web so I figured this would be the best place to turn to for help.
Maybe this would be fun for someone here? I doubt people get a chance to decompile and reconstruct an app legally....and if they do it's extremely unlikely it was done on an app built with a program like App Inventor. I have no issues making my apps source code public so I have no issues discussing anything to do with this publicly, but if someone would prefer to discuss this by PM or Email I'm fine with that as well.
My app can be found at ls-droid . com near the top of the page, there are a couple of versions posted currently with 2.2B being the last public release but it's not exactly current. I do not want to post the APK for the most recent version of the app I have been working on at the moment on the off chance someone wanting to use the app were to find it since it has some pretty nasty bugs right now due to compiler changes. You can search Youtube or Facebook and should have no trouble finding information on my app if your wondering how it works.

Categories

Resources