Adding standard Android media playback APIs to DAB app - MTCB Software Development

Is it possible to add the standard Android media playback APIs to an existing app? I want to add it to the DAB app which works with the Joying usb dongle. the reason i want to add it is because Automate uses these api to show albumart and musicinformation on his home screen. You also can control the app on the homescreen.
What i did so far:
- i decompiled the dab apk and loaded into Androidstudio.
- i followed a few guides like this one http://stackoverflow.com/questions/12526228/how-to-put-media-controller-button-on-notification-bar
but i cant get it to work
My question is, is it even possible to add it to any kind of android app or are there any restrictions? Or is there somebody who can do it?
dab file: https://drive.google.com/file/d/0B9a-tOFUEeEBcDh0T2N3amFUakE/view?usp=sharing

If you ever find information on how to do it, please share here as i would be interested in doing the same to the MTCRadio app to be able to control it from AutoMate too.
---------- Post added at 04:50 PM ---------- Previous post was at 04:48 PM ----------
EDIT: The only idea i had so far was using the XPosed framework to hook the MTCRadio app methods but I didn't actually try yet. I'm kinda new with XPosed.

stormlabs said:
If you ever find information on how to do it, please share here as i would be interested in doing the same to the MTCRadio app to be able to control it from AutoMate too.
---------- Post added at 04:50 PM ---------- Previous post was at 04:48 PM ----------
EDIT: The only idea i had so far was using the XPosed framework to hook the MTCRadio app methods but I didn't actually try yet. I'm kinda new with XPosed.
Click to expand...
Click to collapse
i found a lot of information about it, but i didn't get it to work. Maybe other people can look at it.
http://stackoverflow.com/questions/...lock-screen-like-google-play-music-in-android
https://github.com/googlesamples/android-UniversalMusicPlayer/blob/master/README.md

Related

[Q] [ICS]Miniapp Remote Control - Change Buttons?

Hi
Really like the miniapp to quickly use the ir remote control. But the displayed button layout in it seems to be automatically set.
Is there a way to change the layout?
Greetz
scheich
Sry for breaking the forum rules, because im asking but isnt this forum the best place for this kind of questions .... oo now two questions
Hi Scheich,
scheich said:
Is there a way to change the layout?
Click to expand...
Click to collapse
I was wondering the same, so I talked to the magnificent Tony from Sony
Here's the complete log if ur interested, if not just read the red parts:
Code:
Disconnected.
Sony Electronics
11:17 AM Connecting...
11:17 AM Connected. A support representative will be with you shortly.
11:18 AM Support session established with Tony (C3RP).
11:18 AM Tony (C3RP): Hi. Welcome to Sony Online Support. I’m Tony.
11:18 AM Tony (C3RP): Please allow me a moment to review your concern.
11:18 AM Customer: Hi Tony, I'm Chris...sure take ur time
11:19 AM Tony (C3RP): Hi, Chris. I'll be happy to provide the information about the IR Remote Miniapp.
11:19 AM Tony (C3RP): Please explain the concern in details so that I can assist you better.
11:20 AM Customer: Ok, so the IR min app is great, I love it...but I cant figure out if or how I can change the button layout or better add additional buttons. It is possible in the normal IR app, so I thought it'd be possible here aswell
11:21 AM Tony (C3RP): Thanks for the detailed information.
11:23 AM Tony (C3RP): Please give me a moment while I check the information for you.
11:25 AM Tony (C3RP): I understand that you wish add additional buttons to the remote control; is that correct?
11:26 AM Customer: to the remote control mini app, not the normal version where u can see the whole layout.
11:27 AM Customer: The mini app only gives us Vol up 'n down; Prog up'n down, power, input and mute...but I'd like a shortcut for some other functions aswell
11:28 AM Customer: like a Menu button (for the TV Menu) or a button for selecting the PC on my TV f.e.
11:28 AM Tony (C3RP): Have you set any gesture in the tablet?
11:29 AM Customer: tried with or without, mini app stays the same
11:30 AM Tony (C3RP): Are you getting any arrow button in the mini application of the tablet?
11:31 AM Customer: yes the arrow button pointing in the upper right corner takes me to the full app
11:33 AM Tony (C3RP): Yes, are you referring to the same?
11:33 AM Tony (C3RP): I'll provide the steps to customize an existing Remote Control application profile to control the functions on multiple devices.
11:33 AM Tony (C3RP): The following support article should assist you with this.
11:33 AM Tony (C3RP) has sent a link: http://www.kb.sony.com/selfservice/documentLink.do?externalId=C1024631
11:33 AM Tony (C3RP): Are you able to view the page?
11:34 AM Tony (C3RP): Please check and let me know if you are referring to the same that is mentioned on the above page.
11:35 AM Customer: Yes I can few the page, but I'm sorry, thats the full IR app, I'm reffering to the mini app. You know what I mean?
11:38 AM Tony (C3RP): Thanks for the information.
[COLOR="Red"]11:39 AM Tony (C3RP): The Mini application will show the buttons that are present when you register the device.
11:39 AM Tony (C3RP): If you wish to have more buttons appear in the mini application, then please add the buttons using the procedure that is listed on the above page.
11:39 AM Tony (C3RP): Once after adding the additional buttons, the same will be appear in the mini application window.[/COLOR]
11:39 AM Customer: ah ok, will try that now
11:40 AM Tony (C3RP): Yes, please go ahead.
11:41 AM Tony (C3RP): Performing all the steps mentioned above should resolve the issue.
11:41 AM Tony (C3RP): If you need any additional information feel free to stop by our chat room again using the same email address.
11:41 AM Customer: Wait, gimme a sec please.
11:41 AM Tony (C3RP): We're available 24/7.
11:41 AM Tony (C3RP): Good-bye and thank you for contacting Sony Online Support.
11:41 AM Customer: Seriously? (Added in afterwards, cuz I was disconnected before...but c'mon? :D)
11:41 AM Tony (C3RP) has ended the session.
Of course I tried the BS he told me to, but that doesnt work.
The only thing u can do is change the icons that r displayed in the mini app. I.e. Vol up 'n down, Prog up 'n down, Input and Mute can be set to any function using the learning feature. Or u can add another device, naming it Additional functions and program ur desired buttons there. (Thats what I did)
Hope this helps.
scheich said:
Sry for breaking the forum rules, because im asking but isnt this forum the best place for this kind of questions...
Click to expand...
Click to collapse
I'd say it is the correct forum.
Lunat1c said:
I'd say it is the correct forum.
Click to expand...
Click to collapse
Yessss
Lunat1c said:
Or u can add another device, naming it Additional functions and program ur desired buttons there.
Click to expand...
Click to collapse
Thank you and thanks Tony ^^ ! I will try it that way. Lets see if theres a limit of registered devices.
scheich said:
Yessss
Thank you and thanks Tony ^^ ! I will try it that way. Lets see if theres a limit of registered devices.
Click to expand...
Click to collapse
This was my approach. I registered a device and set every button manually by using my logitech harmony remote that is already operating on activities, not devices. With this approach, I only need the one device registered, and the mini remote does everything I need it to do.
Sent from my PG86100 using Tapatalk 2

Comic Strips

Hello guys.
I found this app called Comic Strips.
It is a great app to view most of the comic strips.
Grab a copy.
I'm sharing this since I couldn't find it on play store in my region.
No affiliation with the dev.
Thank me later
thanks for the info:fingers-crossed:
---------- Post added at 12:45 AM ---------- Previous post was at 12:40 AM ----------
:good: you can use application called "market enabler" to get those from market which you cnt view to ur region from playstore, bt ur phone must be rooted
Market enabler.
Yes I had tried it couple of times. But it turns on and off and problems regarding setting local time etc etc pop up frequently. Plus Im on a previous smooth build of market, not the latest.
It would be nice if people posted replies...
Dropped from a -Fire

modding decompiled apk

Hello,
I've decompiled 'Hill Climb Racing' apk in order to modify game specs. What I wanted to do was unlimited fuel, or modify one of vehicles that are in-game and make them super fast or something like this.
Well, unfortunately I have no idea where and which file should I modify to obtain such advantages over the game. Any ideas?
I haven't delved too deep into the apk, but after a quick peek I would suggest taking a look in the assets folder. There is a subfolder called stage_data with a file called rainbow.json and in it you can tweak values like friction etc although it appears a bit cryptic. Also in assets, another folder called atlas has a plist file that contains information about coins, not sure which, or if any, value affects how much each coin is with but it may be of use to you. I don't know where to find a way to set infinite coins/gas.
Cheaters
apk is signed with manifest. So, if you change a file in apk, signature will be wrong.
After more looking, I think a lot of information is actually stored in /data/data/com.fingersoft.hillclimb/shared_prefs/hillclimbprefs.xml. Lots of entries related to unlocked vehicles and levels. I will try to mess around with it later today and post results. Unless someone more knowledgeable comes up with a solution for you first, that is.
---------- Post added at 05:26 PM ---------- Previous post was at 04:50 PM ----------
In the file I mentioned above, search for "coins". You can set the value to 999999999, rinse and repeat anytime you run low for unlimited coins.
---------- Post added at 05:57 PM ---------- Previous post was at 05:26 PM ----------
Also try searching through the file for lines containing "unlocked" or "UNLOCKED" and set the values to 1.
boydster said:
---------- Post added at 05:26 PM ---------- Previous post was at 04:50 PM ----------
[/COLOR]In the file I mentioned above, search for "coins". You can set the value to 999999999, rinse and repeat anytime you run low for unlimited coins.
---------- Post added at 05:57 PM ---------- Previous post was at 05:26 PM ----------
Also try searching through the file for lines containing "unlocked" or "UNLOCKED" and set the values to 1.
Click to expand...
Click to collapse
Yup, I saw this file earlier, although it doesn't meet what I wanted to do. As you said this file contains your actual 'progress' in-game.

[Q&A] [ROM][KK][UNOFFICIAL] [SlimRoms] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703

[Q&A] [ROM][KK][UNOFFICIAL] [SlimRoms] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703
Q&A for [ROM][KK][UNOFFICIAL] [SlimRoms] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [ROM][KK][UNOFFICIAL] [SlimRoms] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
nice
the rom is working tnx iam testing now
iam wait lollipop rom
very tnx to slimroms
---------- Post added at 06:34 PM ---------- Previous post was at 06:20 PM ----------
me too when i plug the hedset dont work
sorry for my bad english
---------- Post added at 06:58 PM ---------- Previous post was at 06:34 PM ----------
QA Bot said:
Q&A for [ROM][KK][UNOFFICIAL] [SlimRoms] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [ROM][KK][UNOFFICIAL] [SlimRoms] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Click to expand...
Click to collapse
the usb dont work
Thanks. How are people restoring data. Reason I ask is because I flashed lots of apps through twrp to get around s-on. If I go twrp >restore then just check data from my last backup do you foresee issues?
Probably won't be using this as daily driver yet but hope most major bugs will be fixed.
What about gapps? Is there a recommended one?
Yea. No audio through headphone jack. That sucks because overall this runs very smooth. I remember when I was using jmz kernel connecting audio jack sometimes triggered erratic behavior like it dialing numbers, bringing up voice search etc.
Hopefully it gets fixed because I really like it but not being able to listen to podcasts/music in car is a deal breaker. Still its really awesome to have some development.
I already flashed back to stock to test out the wp kernel (so far working good) But would love to find a solution for this. Anyone think its possible this is a codec issue? Maybe the phone this ROM was originally ported to already had all the codecs installed?
That would be a easy-ish fix but I wouldn't know where to begin. My experience with codecs is they'll fix audio issues but usually it covers all audio issues on the device, not just one aspect--no sound through audio jack.
I just thought I'd share a potential jumping off point for anyone serious about finding a fix.
A few notes for further troubleshooting--
The phone recognizes when a headphone is being plugged in as the music pauses and all sounds stop.
Soundabout app will give a warning when headphones are unplugged.
Headphones
I have the headphones working on AT&T version by replacing files located in /system/etc with files from stock rom
media_codecs.xml
media_profiles.xml
mixer_paths.xml
mixer_paths_auxpcm.xml
I just downloaded rom to sdcard and moved and replaced files with Root Explorer then flashed.
I'm enjoying this rom so far, but there are a few problems I've encountered. audio Jack won't work, i can't seem to record with the camera though i can take pictures, and i can't change the wallpaper to a picture in my gallery. Also the computer no longer sees it via usb, other than that it does what i wanted. tethering to my tablet to share my phones internet with it. im on straight talk, the pre loaded att stuff was stopping me. thank you for this!
The camera is VERY GRAINY AND BLURRY
Have anyone tried to used the camera? On my phone it looks really grainy and blurry. If anyone knows what's the problem with it I might try and fix it.
jswin77 said:
I have the headphones working on AT&T version by replacing files located in /system/etc with files from stock rom
media_codecs.xml
media_profiles.xml
mixer_paths.xml
mixer_paths_auxpcm.xml
I just downloaded rom to sdcard and moved and replaced files with Root Explorer then flashed.
Click to expand...
Click to collapse
You're awesome! Gonna try it after I get a full charge...
kingjo23 said:
Have anyone tried to used the camera? On my phone it looks really grainy and blurry. If anyone knows what's the problem with it I might try and fix it.
Click to expand...
Click to collapse
From what I remember it was a little blurry i think. Maybe try a different camera app?
The headphones still aren't recognized in the FM Radio app.Overall still need several improvements.
jswin77 said:
The headphones still aren't recognized in the FM Radio app.Overall still need several improvements.
Click to expand...
Click to collapse
I'll see if it fits my needs (don't use FM radio)
Btw--i don't really follow what you meant by download the ROM? Did you unextract it, copy the files to system/etc then recompress it?
That's what I'm gonna try but what I probably would've done is flash slim as is then reboot recovery and use file manager to move the files. Also in another thread I inquired if @MiniBlu's wp mod might work with this since I'm s-on...you don't happen to try it did you?
Thanks again for the tip.
I just moved the files from running stock Rom to the zip file and flashed in recovery.This is all I've tried.
Found another bug--front facing camera crashes for me right after switching. I tried it with 2 different camera apps.
KLit75 said:
You're awesome! Gonna try it after I get a full charge...
From what I remember it was a little blurry i think. Maybe try a different camera app?
Click to expand...
Click to collapse
I did but it is still the same, will try and use stock camera
LibyaGamer said:
the rom is working tnx iam testing now
iam wait lollipop rom
very tnx to slimroms
---------- Post added at 06:34 PM ---------- Previous post was at 06:20 PM ----------
me too when i plug the hedset dont work
sorry for my bad english
---------- Post added at 06:58 PM ---------- Previous post was at 06:34 PM ----------
the usb dont work
Click to expand...
Click to collapse
the headphones was fixed yet. [ROM][Fixed headphones ] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703
---------- Post added at 04:16 PM ---------- Previous post was at 04:13 PM ----------
KLit75 said:
Yea. No audio through headphone jack. That sucks because overall this runs very smooth. I remember when I was using jmz kernel connecting audio jack sometimes triggered erratic behavior like it dialing numbers, bringing up voice search etc.
Hopefully it gets fixed because I really like it but not being able to listen to podcasts/music in car is a deal breaker. Still its really awesome to have some development.
Click to expand...
Click to collapse
the headphone was fixed yet. [ROM][Fixed headphones ] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703
---------- Post added at 04:18 PM ---------- Previous post was at 04:16 PM ----------
jswin77 said:
I have the headphones working on AT&T version by replacing files located in /system/etc with files from stock rom
media_codecs.xml
media_profiles.xml
mixer_paths.xml
mixer_paths_auxpcm.xml
I just downloaded rom to sdcard and moved and replaced files with Root Explorer then flashed.
Click to expand...
Click to collapse
the headphone was fixed yet. [ROM][Fixed headphones ] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703
---------- Post added at 04:19 PM ---------- Previous post was at 04:18 PM ----------
xda_chAos said:
I'm enjoying this rom so far, but there are a few problems I've encountered. audio Jack won't work, i can't seem to record with the camera though i can take pictures, and i can't change the wallpaper to a picture in my gallery. Also the computer no longer sees it via usb, other than that it does what i wanted. tethering to my tablet to share my phones internet with it. im on straight talk, the pre loaded att stuff was stopping me. thank you for this!
Click to expand...
Click to collapse
the headphone was fixed yet. [ROM][Fixed headphones ] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703
---------- Post added at 04:20 PM ---------- Previous post was at 04:19 PM ----------
jswin77 said:
The headphones still aren't recognized in the FM Radio app.Overall still need several improvements.
Click to expand...
Click to collapse
the headphone was fixed yet. [ROM][Fixed headphones ] Slim-a3ul-4.4.4.build.9.0-UNOFFICIAL-20150703
When I flash the Rom, Google play store and Google play services no longer work. Does this happen to any one else???
Sent from my HTC Desire 610 using XDA Free mobile app
MGfusion said:
When I flash the Rom, Google play store and Google play services no longer work. Does this happen to any one else???
Sent from my HTC Desire 610 using XDA Free mobile app
Click to expand...
Click to collapse
Its running really smooth for me and play store is fine. I did a clean flash and flashed the headphone fix. Also what gapps are you using? I just downloaded slimrom gaps for 4.4.4--the zip is labeled "slimaddons". Think there's a way to download gaps right in settings but I didn't notice that till after flashing.
Want to try this ROM, but do I need to flash the jm3auz kernel before doing so?
Oh lol didn't even notice thanks
Sent from my HTC Desire 610 using XDA Free mobile app
Waterrmelonn said:
Want to try this ROM, but do I need to flash the jm3auz kernel before doing so?
Click to expand...
Click to collapse
No. Just factory reset, flash ROM, flash headphone fix, reboot.

[APK] Missing apps? FM Radio, Quick Remote, Smart settings etc dl HERE [discontinued]

Hello guys,
If you've installed a rooted image like I did, maybe you just noticed that the author decided to get rid of LG bloatwares. But some apps are really useful and I don't get why he removed them. I am indeed refering to FM Radio and Quick Remote (IR) apps.
So, I did a backup of the two apk from my latest clean install.
Attachments below. May not work with all variants (as I read that US carriers removed these apps because of money/rights?)
Hope it will be useful to some of you. Cheers!
P.S. don't hesitate to ask if you're searching for an apk. Glad to help.
stock LG Browser apk available at post #10
LG Health and Health Agent apk available at post #21
Mirrorlink apk available at post #23
Calc system app apk+lib available at post #26
Alarm clock apk available at post #35
QRemote (Lollipop) apk dl below, QRemote (MM) here with its QuicksetSDK (MM) here
LG Keyboard MM (should be flashable, else copy zip content to system)
Smart Setting with sys files pack available below
LG Browser MM (system/priv-app)
LG Mirrorlink MM (system/app)
LG Smart Notice MM
LG Radio (working!) (install as normal apk)
LG Smart World (install as normal apk)
LG live wallpaper
LG Home and LG Message
LG Quick Memo+
LG Backup and Restore
Mine doesn't have the voice recorder icon !!
The stock one (default) sucks; may I suggest you to install Sony Audio Recorder
https://play.google.com/store/apps/details?id=com.sonymobile.androidapp.audiorecorder
Nice design and a great Android Wear integration.
Anyone having problems with quick remote after setting the dpi to 540? Try to set it again to 640 with appsettings xposed module but didn't work...
What's the point to change the DPI for this app? The display is perfect.
I only changed those settings with Chrome to get the tablet mode and tabs bar on the top.
bel57 said:
What's the point to change the DPI for this app? The display is perfect.
I only changed those settings with Chrome to get the tablet mode and tabs bar on the top.
Click to expand...
Click to collapse
I have changed all the system not only Quick remote.
Oh I see. And what did you get? Am not in that sort of thing, so I can't imagine what your system looks like and I must say, no idea to make Qremote fitting the original display. Good luck!
Can anyone upload lg smart actions
Would like LG browser
Sent From My LG G4
Here you go.. stock Browser apk.
Ok thank you, now just need to figure out how to get everything Working in Verizon lg g4
---------- Post added at 01:13 PM ---------- Previous post was at 01:10 PM ----------
Well can't manually install smart settings, time to kinky.
Smart settings is missing? I'm sorry, dunno how the things work to assemble all files and create a flashing zip...
Good luck, anyway.
Outta said:
Ok thank you, now just need to figure out how to get everything Working in Verizon lg g4
---------- Post added at 01:13 PM ---------- Previous post was at 01:10 PM ----------
Well can't manually install smart settings, time to kinky.
Click to expand...
Click to collapse
Have you figured how to install the browser on the Verizon variant?
Sent from my VS986 using XDA Free mobile app
Hey, I accidentally removed my Live Wallpaper Picker and was wondering if you have a version that will work with the H815 variant?
Someone with working fm radio post your build.prop please, trying to figure out what's different about the verizon varriant that it's disabled.
Outta said:
Someone with working fm radio post your build.prop please, trying to figure out what's different about the verizon varriant that it's disabled.
Click to expand...
Click to collapse
I don't think that's going to help, my friend. Verizon and some of the other US carriers typically ground one of the wires leading to the FM module, which literally diverts electricity away from it so that it won't even turn on - and I bet that's what Verizon has done here with their G4 as well. A build.prop edit won't change it. All you can do is crack your phone open, get out a soldering gun, and try to solder a new ungrounded connection yourself (Skill level: Adam Outler).
Some carriers do this so that you are required to use streaming apps for radio instead like Tune-in Radio or Spotify, which burns through your data plan and makes them more money. You aren't the only one upset about this. There are a lot of petitions online to get carriers to reverse this practice. One is here: http://freeradioonmyphone.org/
Thanks for the explanation, @biff6789
I wasn't aware of such plan as modifying a device just to make money.
Hopefully I own the H815 variant.
Outta said:
Ok thank you, now just need to figure out how to get everything Working in Verizon lg g4
---------- Post added at 01:13 PM ---------- Previous post was at 01:10 PM ----------
Well can't manually install smart settings, time to kinky.
Click to expand...
Click to collapse
Hey, did you ever get this figured out?
VZW LG G4
Yeh, installed tasker, lol ?
Can you upload the Health one please?
Sent from my LG-H811 using Tapatalk

Categories

Resources