Where can I get the Car Home code so I can modify a few things?
I've searched through GitHub with no luck.
Thanks.
Since CarDock.apk is part of the google apps distribution, you probably wont find the code.
You could use apktool to decompile and rebuild the apk. Only drawback is that you will need to work with .smali files and not .java source.
Thanks. I don't think it'¡s worth it then cause I don't have a car yet.
Related
I am learning to program with Java and have a ways to go but want to play with a simple android app in eclipse. Anyone want to share some source code for a simple app that I can play with? I dont care what it does. Something that would have menu options would be nice. Also, something that works on the Samsung Vibrant or the G1.
Just realized the jdk has sample android apps so thats most likely all I need.
I'm looking to get the aosp lockscreen working on my Motorola Defy based rom; hopefully without needing a third party app.
I've read quite a few posts suggesting that the offending file lies inside of android.policy.jar.
More specifically LockPatternKeyguardView.smali.
I have tried the method listed here with no luck.
Now I have found in LockScreen.smali, for instance; it calls for
Lcom/motorola/android/widget/SlideButton$OnSlideEndListener; instead of
Lcom/android/internal/widget/SlidingTab$OnTriggerListener;
I got this line of code from a Korean build which uses the android lockscreen.
Only downside to the Korean build is that it has a dual time, with one always pointing to Seoul.
I went ahead and changed it to call the android lockscreen; however I found another bootloop.
So my request is could someone be so kind as to modify my android.policy.jar to use the android lockscreen?
Thus giving me a working example I can compare to the original and finally figure out what I'm missing.
Attached you will find both the Korean (for reference), and the Nordic files I wish to modify.
I went ahead and baksmalied the classes.dex for both to make it easier for whomever helps out )
Also just to note, I have read this post, and well it just reskins the zz_moto_jog_tab_bar images to look like the aosp lockscreen.
Doesnt work the same way though.
Thank you .. . .
Well, I know CC doesn't execute APKs, but does CC apps still based on Java? or some nasty binaries?
Mine bought in UK with serial 4103, sadly it's not rootable, but I'm curious if the apps based on java, in other words, can we crack the source code of CC apps?
The "apps" (called cast receiver) are created in HTML5/JavaScript and hosted on the internet. The API ia well (?) documented on Google pages. If you register yourself as developer (5$) you can create your own apps or use the remote debugger (http://ip-of-your-cast:9222) on existing apps.
morph1us said:
The "apps" (called cast receiver) are created in HTML5/JavaScript and hosted on the internet. The API ia well (?) documented on Google pages. If you register yourself as developer (5$) you can create your own apps or use the remote debugger (url removed as new use) on existing apps.
Click to expand...
Click to collapse
Thanks. So is there any way to find the source code of an app running on CC? Well, not necessarily all or original source code, i.e., APKs and JARs are fine as they can be decompiled into readable source code, although may obfuscated but still readable...
I've been playing with Xposed for a little bit as it's been fun to explore.
As a test, I wanted to write an app that would hook into SMS methods, and change the content of the text.
I managed to do this quite easily with the SMS app I use, as the package name was obviously easy to find, and there weren't a great deal of classes to check.
What I noticed when doing this was that the method I was hooking was little more than a wrapper for a call to an Android library function, namely
Code:
android.telephony.SmsManager.sendSingleSMS()
And I got interested in just hooking that method directly.
The problem is that while I could readily find the source code for SmsManager and its method sendSingleSMS, by downloading Android source code, I couldn't locate the actual package containing them.
I thought this would be as simple as
Code:
if (!lpparam.packageName.equals("android.telephony.SmsManager"))
Or
Code:
if (!lpparam.packageName.equals("android.telephony"))
But these did not work, and even
Code:
if (!lpparam.packageName.contains("tele"))
Fails to find any results.
So in essence, how best can I go about hooking android.telephony.SmsManager.sendSingleSMS()?
The package is android. I'd suggest using initZygote instead of handleLoadPackage for hooking that, though,
GermainZ said:
The package is android. I'd suggest using initZygote instead of handleLoadPackage for hooking that, though,
Click to expand...
Click to collapse
Ah, right I see, that seems obvious now. Thanks
same question about android.os.UserHandle
I'd like to hook UserHandle.getUid(int uid);
to trick system to think my apps uid is system...
but I can't seen to understand what is the package for UserHandle
10X
I am using a hm-10 to connect to my Android test application. Unfortunately, is a big struggle compared to the hc-05 device. Anyway. The "samplegatt" does not work, either with my device or for whatever reason. So I found a different blog that explains the sample must be modified:
(the dumb forum won't allow me to post a link)
ayh tee tee pee android-er.blogspot.com/2015/12/connect-hm-10-ble-module-to-android.html?showComment=1454055306623#c9017603593836048433
So after the modifications, THAT won't work either. It's not the first one, just the most recent.... I have tried so many example applications from google searching, I have saturated my efforts. I KNOW the module can work with my phone, from using a ble test application from play store (that I can't seem to find company website or track down the source code for).
I was hoping to know if anyone else struggled with this, and if you can advise me on how / where to get a working sample application.
It turns out, the new changes for sdk version 23 require all types of permission changes in the code, since someone decided it was a good idea to enable gps location in order to use bluetooth. I had to change my target sdk back to 22 and the samples started working.