Modifying built-in phone application - Java for Android App Development

Instead of building my own custom telephony application by making use of the TelephonyManager class, is it possible to hack or modify that built-in native phone application to make it do what I want?

You cannot modify another app from your app.

EatHeat said:
You cannot modify another app from your app.
Click to expand...
Click to collapse
wasn't my question.
For what its worth I think my answer is to be found on source dot android dot com

Related

[XAP][TOOL] WPH Tweaks - Customize your Windows Phone!

WPH Tweaks was originally developed by @Jaxbot for Windows Phone 7.
WPH Tweaks allows you to change various settings in your phone's registry that you would usually change with a registry editor. Some of these settings never meant to be changed so they may not have the desired effect. We take no responsibility of the possible damage caused to your device.
WPH Tweaks for Windows Phone 8 is currently very limited, but the main features are adding Google to search providers, and adding a 'Never'-timeout option in lock screen settings. There are currently some other tweaks that do not work well so do not expect everything to work.
The project is open source and located in GitHub. The experimental code can be found here and the stable code can be found here.
Special thanks to @GoodDayToDie ! This project uses his native access libraries and full capability unlock.
If you really want to try out this still experimental project you can find links below.
DOWNLOAD:
Windows Phone 8 with Enable all sideloading:
Attached wphTweaks_wp8-bXX.xap
Please use the Unlock all capabilities XAP before deploying this app.
Windows Phone 7 with Root Tools:
Attached wphTweaks_wp7-bXX.xap
You can read more about the WP7 version of WPH Tweaks on the WindowsPhoneHacker website: http://windowsphonehacker.com/articles/app_wph_tweaks-04-09-12
Great job Jesse!
This is definitely needed on WP8!
TheInterframe said:
Great job Jesse!
This is definitely needed on WP8!
Click to expand...
Click to collapse
Well I listed them already As I said, this is still very experimental. I think the only unique feature is adding Google to search providers at the moment.
Cool stuff! Good to see more homebrew coming out. Let me know if you need a hand finding any tweaks.
GoodDayToDie said:
Cool stuff! Good to see more homebrew coming out. Let me know if you need a hand finding any tweaks.
Click to expand...
Click to collapse
I've been using this thread by @megasounds as a reference, but sadly most of the possible tweaks are not writable.
jessenic said:
Well I listed them already As I said, this is still very experimental. I think the only unique feature is adding Google to search providers at the moment.
Click to expand...
Click to collapse
Yeah I missed that, I read it again and re-worded the post (guess you didn't see the edited version ). Anyways I'm assuming the app is device independent (if we had a interop unlock on other devices) it would technically work on other devices right?
Yeah, it uses the samsung diagnostic component for automatic restarts, but that's not essential.
Is there a tweak to set the search key to open a google page instead of Bing?
Sent from my Nexus 7 using XDA Premium 4 mobile app
Can this be re-uploaded? I can't seem to be able to download it. It keeps telling me Jenkins is restarting. Maybe attach it here or Dropbox, mediafire or support ms with skydrive Or someone could PM me the file?
Add Google work for italian Samsung Ativ S
AlvinPhilemon said:
Can this be re-uploaded? I can't seem to be able to download it. It keeps telling me Jenkins is restarting. Maybe attach it here or Dropbox, mediafire or support ms with skydrive Or someone could PM me the file?
Click to expand...
Click to collapse
Sorry, forgot to actually restart it. Should work now. When I get some stable builds I will upload the releases here at XDA, but until then I'll keep them in the CI.
Maybe you could implement a method to change the date format?
The registry key is
Code:
[HKEY_CURRENT_USER\Control Panel\International
"sShortDate"="dd-MMM-yy"
dd-MMM-yy = 17-Oct-13
Is it possible to edit that key?
AlvinPhilemon said:
Maybe you could implement a method to change the date format?
The registry key is
Code:
[HKEY_CURRENT_USER\Control Panel\International
"sShortDate"="dd-MMM-yy"
dd-MMM-yy = 17-Oct-13
Is it possible to edit that key?
Click to expand...
Click to collapse
I think it is possible, but that is what "Settings>language+region>Regional setting" changes
jessenic said:
I think it is possible, but that is what "Settings>language+region>Regional setting" changes
Click to expand...
Click to collapse
yeah but what I want to change is the short date. dd-MMM-yy was available in WP7 but removed in WP8. Using a registry editor, I'm unable to edit that key. It claims it is successful but when I use GoodDayToDie's native access webserver, I find that it isn't changed.
Sent from my GT-I8370 using Tapatalk
Of course it's for Samsung only (at now) ?
Budniu said:
Of course it's for Samsung only (at now) ?
Click to expand...
Click to collapse
Works on all interop unlocked phones and those are only Samsung phones so yeah.
Can we have in next release ability to change PhoneManufacturer? Thanks
You can add this:
Increase or decrease duration of vibration of touch buttons:
Code:
[HKEY_LOCAL_MACHINE\System\Touch\Buttons]
"Duration"="{value in miliseconds in dword}"
Increase or decrease intensity of touch buttons:
Code:
[HKEY_LOCAL_MACHINE\System\Touch\Buttons]
"Intensity"="{value of intended intensity in dword}"
Enable or Disable haptic feedback
Code:
[HKEY_LOCAL_MACHINE\System\Touch\Buttons]
"Vibrate"="{1 to enable, 0 to disable}"
Fantastic tool
Mattemoller90 said:
You can add this:
Increase or decrease duration of vibration of touch buttons:
Code:
[HKEY_LOCAL_MACHINE\System\Touch\Buttons]
"Duration"="{value in miliseconds in dword}"
Increase or decrease intensity of touch buttons:
Code:
[HKEY_LOCAL_MACHINE\System\Touch\Buttons]
"Intensity"="{value of intended intensity in dword}"
Enable or Disable haptic feedback
Code:
[HKEY_LOCAL_MACHINE\System\Touch\Buttons]
"Vibrate"="{1 to enable, 0 to disable}"
Fantastic tool
Click to expand...
Click to collapse
Thank you
djtonka said:
Can we have in next release ability to change PhoneManufacturer? Thanks
Click to expand...
Click to collapse
Changing PhoneManufacturer is unstable. In WP7, if you change it 3-4 times it breaks the app DRM, you cannot run any apps anymore without a hard reset. This has not been tested yet in WP8 but we assume it is the same
Implemented Notification Sound changer as per @megasounds request.

[Q] Do I need to write drivers?

I have fair number of years of programming behind me. But I haven't tried anything for Android, as I dislike Java.
But I want to try. I want to make something that works at low level, say, like a firewall. It acts as a filter between two communicating parties/devices.
To write anything like that, can someone suggest which is the best approach - code in Java (if it can perform such a feast) or code driver in C?
Thanks much!
Regards,
Nayan
Sent from my Micromax A117 using xda app-developers app
The interesting thing in such low level projects is the entry point: So for a firewall you only have to acces iptables because android has linux kernel. So no C-part, no drivers, only plain java. See AFWall, it's an open source firewall.
EmptinessFiller said:
The interesting thing in such low level projects is the entry point: So for a firewall you only have to acces iptables because android has linux kernel. So no C-part, no drivers, only plain java. See AFWall, it's an open source firewall.
Click to expand...
Click to collapse
Excellent! I would certainly study AFWall. Thanks for the reference.
But actually, my quest doesn't stop here. I am exploring Android, and Google's restriction of "UI to be built only via Java". (I am not interested in scripting and widgets for now, unless they are absolutely needed.)
I want to know the answers for same question (driver or app) for the following:
* Network Filter [EmptinessFiller, you already answered this as Java]
* Disk (SD cards) (for many various purposes) - file system should not block the intention, hopefully.
* USB filter
* SMS filter
I am still thinking of other categories. Will write more later.
Please suggest and refer. Thanks again!
General answer: Your app is always built in java. (It's UI components, it's LifeCycle (Activity, Service, Broadcastreceiver))
You may include native code, but that does not have more possibilities. It's only a little bit quicker.
Forgotten: If you have root, you may want to change some binaries, because you can't change things in an app. There you need native code of course.
EmptinessFiller said:
You may include native code, but that does not have more possibilities. It's only a little bit quicker.
Click to expand...
Click to collapse
Shame, isn't it? Too much power in Java's hand
EmptinessFiller said:
Forgotten: If you have root, you may want to change some binaries, because you can't change things in an app. There you need native code of course.
Click to expand...
Click to collapse
My point exactly! Low level stuff is best written in native code.
But right now, I am learning how to.
cnayan said:
Shame, isn't it? Too much power in Java's hand
My point exactly! Low level stuff is best written in native code.
But right now, I am learning how to.
Click to expand...
Click to collapse
Have a look at the Android NDK and this guide about the development of root apps.
nikwen said:
Have a look at the Android NDK and this guide about the development of root apps.
Click to expand...
Click to collapse
Thanks for the link. Good stuff, but won't help in my targets... unless an example is seen.

[Q]Android interface definition language

So, I'm still a beginner at making android apps but, i dont understand .aidl files. To what i can comprehend aidl files help your apps to talk to other apps using a common framework
It allows you to define the programming interface that both the client and service agree upon in order to communicate with each other using interprocess communication (IPC)
Click to expand...
Click to collapse
but isnt this the same thing as intent?
An Intent provides a facility for performing late runtime binding between the code in different applications.
Click to expand...
Click to collapse
Some help here @[email protected]
Regards
MasterAwesome

javax.swing on Android - possible?

Hello.
Is it possible to compile and run java window application on my Tablet? Google does not give clear answer. Sometimes I need to improve my programs a little in travel.
I'd be grateful for answers.
Niko0pl said:
Hello.
Is it possible to compile and run java window application on my Tablet? Google does not give clear answer. Sometimes I need to improve my programs a little in travel.
I'd be grateful for answers.
Click to expand...
Click to collapse
You can use StandOut library to make windowed app in ease, you can get it here https://www.google.com.eg/url?sa=t&...=7X6MV0eLXpgZU_u3VWCLQw&bvm=bv.82001339,d.d24
Thank you. And which app should I use? Now I'm using AIDE, But I'm not sure if it supports adding extra library.
Niko0pl said:
Thank you. And which app should I use? Now I'm using AIDE, But I'm not sure if it supports adding extra library.
Click to expand...
Click to collapse
use eclipse for pc

[Q] [DEV][Gradle] How to make a modular Application ?

Hi guys,
I'm currently working on an app for a company that asked me to make it modular.
Actually the app contains different features and the company would like to be able to compile the differents flavors of the App via Gradle.
If I understood correctly the current flavor solution offered in Android Studio doesn't fit my needs as if I have like 5 differents modules I'd have to make a flavor for : feature 1, feature 1 + 2, feature 1 + 2 + 3, feature 1 + 2 + 3 + 4, feature 1 + 2 + 3 + 4 + 5, feature 2, feature 2 + 3, ...... and so on.
So how can I say to gradle I just want to compile this part of my code ?
And how can I manage my code in a clean way for my app to understand which modules are enabled or not ?
Thanks a lot for your answers !
Not sure I'm understanding the problem. Create the flavors and in each of the src/<flavor>/ directories you can specify a build.gradle file and in that gradle file you can add dependencies for other modules. So this modular code would exist in <project root>/libprojects and the separate flavors would then conditionally include that code as a dependency. Make sense?
.
libprojects/module1
libprojects/module2
libprojects/module3
src/flavor1/build.gradle
src/flavor2/build.gradle
/src/flavor3/build.gradle
Each of those build.gradle files in the separate flavors could include dependencies for modules that it needs. Remember, code in a flavor takes precedence over code in src/main/java. So use that to your advantage to creating modular code.
Thanks a lot for your answer
It kinda give me an answer for the concept of isolating code on libraries. But the code isn't the biggest issue for me. Is it possible to put the resources (drawable and raw) in the libs so that I can grab them only on the required flavor of my app ? And do this via gradle dependency as I would have too much flavors otherwise.
Thanks again
joplayer said:
Thanks a lot for your answer
It kinda give me an answer for the concept of isolating code on libraries. But the code isn't the biggest issue for me. Is it possible to put the resources (drawable and raw) in the libs so that I can grab them only on the required flavor of my app ? And do this via gradle dependency as I would have too much flavors otherwise.
Thanks again
Click to expand...
Click to collapse
FYI, make sure you tap "reply" in the future so a person's post is "quoted" otherwise that person, me, doesn't get notified you responded from XDA. I just happened to click back on this post. Didn't receive a notification.
When you say libs do you mean "libprojects" folder or do you mean libs as in creating a jar file with those resources? Don't forget you can copy the dependencies from another flavor if you need to at compile time. Not sure if that would help in your scenario.
shafty023 said:
FYI, make sure you tap "reply" in the future so a person's post is "quoted" otherwise that person, me, doesn't get notified you responded from XDA. I just happened to click back on this post. Didn't receive a notification.
When you say libs do you mean "libprojects" folder or do you mean libs as in creating a jar file with those resources? Don't forget you can copy the dependencies from another flavor if you need to at compile time. Not sure if that would help in your scenario.
Click to expand...
Click to collapse
Sorry, bad old reflex
Actually that is my problem. How am I supposed to isolate my features ? Should I make an Android library ? Should I brutally use gradle to isolate some files ?
Thanks again
joplayer said:
Sorry, bad old reflex
Actually that is my problem. How am I supposed to isolate my features ? Should I make an Android library ? Should I brutally use gradle to isolate some files ?
Thanks again
Click to expand...
Click to collapse
It really depends on what you mean by isolate features. If you mean paid vs free app then you should undoubtedly isolate those features with a gradle variable that is set at compile time and read from at runtime via the BuildConfig class.
Code:
if (BuildConfig.IS_PRO) {
... some code
}
It's more of a mess to exclude code then to just make a single code source where you conditionally include/exclude based on compile time variables.
shafty023 said:
It really depends on what you mean by isolate features. If you mean paid vs free app then you should undoubtedly isolate those features with a gradle variable that is set at compile time and read from at runtime via the BuildConfig class.
Code:
if (BuildConfig.IS_PRO) {
... some code
}
It's more of a mess to exclude code then to just make a single code source where you conditionally include/exclude based on compile time variables.
Click to expand...
Click to collapse
Thanks a lot I think this kind of syntax might help me.
To make things clear the product will be compilable for different end products. One might want geolocalization, another not. As features end up taking space in the APK I need to exclude them from compilation. And finally this app must be compilable out of Android Studio so Gradle is my only savior ! And I'm far from beeing a Gradle expert so thanks for your answer I'll look at it

Categories

Resources