yashsingh1/xdaforums huggingface dataset:
[Connected Car] RichieB:
It seems your SCT has certificates in another order. Could be because I am still on version 1.47.88.

From you packages.xml:

<package name="com.parrot.activesources" codePath="/data/app/com.parrot.activesources-1.apk" nativeLibraryPath="/data/data/com.parrot.activesources/lib" flags="0" ft="1432d043ca8" it="1432d0441b7" ut="1432d0441b7" version="1" userId="10071">
<sigs count="1">
<cert index="1"

So you need to set the cert index to "1". Or delete the complete shared-user section for "com.parrot":

<shared-user name="com.parrot" userId="10005">
<sigs count="1">
<cert index="2" />
</sigs>
<perms>
<item name="android.permission.DISABLE_KEYGUARD" />
<item name="android.permission.EXPAND_STATUS_BAR" />
<item name="android.permission.STATUS_BAR" />
<item name="android.permission.WAKE_LOCK" />
<item name="android.permission.INTERNET" />
</perms>
</shared-user>
[Connected Car] donaldta:
It is possible that he never installed the com.parrot.activesources apk, so its cert isn't there.
[Connected Car] RichieB:
That is theoretical possible (the activesources apk was in his packages.xml), but since the Parrot certs always seem to have an index of 1 lower than the acu cert, I think they come preinstalled.
[Connected Car] santu001:
Thanks guys, for your quick responses and thoughts. I have the most recent version. So this could mean the solution is very dependent and could be different on each unit. I will try your suggestion. Meanwhile I restored the original packages.xml. Even though nothing seemed wrong, I thought I better be save then sorrow!
[Connected Car] RichieB:
Yes, it seems the cert indexes changed between the firmware versions, or maybe their order differs per SCT device. But as your packages.xml shows, the correct cert index for you is "1". This should work for you. I also had to remove the package entry for com.parrot.mediaplayer from the packages.xml because the new apk does not match the old entry. Normally the entry is removed when an app is uninstalled, but that is not possible with system apps.
[Connected Car] santu001:
So, I should also completely delete this section within packages.xml?

</package>
<package name="com.parrot.mediaplayer" codePath="/system/app/com.parrot.mediaplayer.apk" nativeLibraryPath="/data/data/com.parrot.mediaplayer/lib" flags="1" ft="14820" it="14ff0" ut="14820" version="1" sharedUserId="10005">
<sigs count="1">
<cert index="2" />
</sigs>
[Connected Car] RichieB:
Yes, because the cert index in that section is wrong. It will be recreated when you install the new APK.

Remove the section starting with

<package name="com.parrot.mediaplayer"

up until this line right beneath it:

</package>

Here is an awk script to do this safely:

cd /data/system
awk '/<package name=\"com.parrot.mediaplayer\"/ { p=1; q=0 } /<\/package>/ { q=1 } { if (p!=1) print; if (q==1) p=0 }' packages.xml > packages.xml.new
mv packages.xml packages.xml.bak
mv packages.xml.new packages.xml
[Connected Car] santu001:
I already edited the file manually and did the whole routine and got to install the APK. I did struggle with some issues at first, where the player activity intend couldn't be found and gave an error with all sources. Then I tried to leave the package line intact and just changed to the same cert (1). Installed the APK again and somehow It worked. So thanks again and then i'll stop.. ;) :good:

The lay-out looks much better, although I do wish we could change the background, but that's nitpicking. I knew it wasn't perfect, but since it's a necessity we got the better deal. Still, now I created another problem, sort of.. I'm missing most album arts. I already had this problem and I really couldn't care less, since I mainly use Player Pro. But now I have to find a way to get those arts up again, because the new player needs it to benefit. Maybe It's because I edited them within Player Pro that I've lost them, but it would be nice to manually trigger the grace note database update.

Pity that we didn't also get a better music browser to search your albums and playlist. Scrolling can be very annoying.
[Connected Car] RichieB:
Good to see you got it installed. I think the way you are supposed to search is by using the voice recognition. It works reasonably well, the few times I've used it.
[Connected Car] santu001:
After finding out that during the day the Parrot media player changes background and becomes even lighter, I tried to change the original apk with a different background pic. I used the original ACUhome globe background and copy paste it into the metal background image and the rename the unzipped file to apk again. Well that didn't work because it didn't install.

But maybe it much easier to just change the background image in drawable-night-hdpi and drawable-nonight-hdpi directly within SCT. But I couldn't find the location. I guess it would be possible to swap those files, or at least make daytime and night time the same, or is this simplistic thinking? So does anybody know where I should look to find and replace those backgrounds. I did it all with ES file explore within SCT, so that probably not the easiest way. But since you can't use the search-option in system files, it's like searching for a needle in a haystack. :(

Just for the record I added my new background as an attachment. It's probably to dark and therefore effecting readability of the text anyway. But the daytime setting is way to bright in my opinion. So I would just settle for the night time setting.

Regarding the album covers. I searched the activities within ADW custom shortcuts to find a way to manually update the cover art, although there are lots of other options, I just couldn't find it, so maybe it not there? I guess adding or changing the content of the USB with automatically trigger the Grace note update. Could also be that setting ACUhome as default would do the trick. Now I only get a few covers which are most likely retrieved from the USB folders.
[Connected Car] donaldta:
You would need to re-sign the APK if it is modified. Otherwise Android will reject it because it cannot prove authenticity.
[Connected Car] RichieB:
Before you sign the APK (using jarsigner) you will need to update the SHA hashes inside the MANIFEST.MF file:

Name: res/drawable-notnight-hdpi/metal_player_background.png
SHA1-Digest: XpBM0qa8Tn/MUlTvvjmp9K7p+20=

Name: res/drawable-night-hdpi/metal_player_background.png
SHA1-Digest: Y6AEklJAbPuYBoC7FvJBwzQplz8=

to get the updated SHA hash you can use

openssl sha1 -binary res/drawable-notnight-hdpi/metal_player_background.png | base64
[Connected Car] donaldta:
Isn't this done for you if you use something like APK Multi-tool or Android Multitool?

Thanks! I appreciate the explanation. I always wondered about the SHA1-Digest was in the Manifest.MF file. I sort of thought it was odd that the values were different from the Cert.SF file. For your suggestion, I guess the Cert.SF digest is created by including the developer's keystore in the algorithm while the Manifest.MF doesn't.

Too bad the ResXploit module of the Xpose Framework for the Gingerbread version hasn't been backported yet. Otherwise this would be easier to accomplish without having to do any compiling or signing.
[Connected Car] santu001:
Ok, not that simple then. I though It would be easier to just replace the jpg file somewhere in SCT. Not that it's that complicated with your help and effortless guidelines, but I'm not sure what the result will be anyway without a preview. In daytime the text changes from light to dark, so if I resigned the apk with both dark backgrounds, it would probably not be usefull anyway. It's not that big a problem for now, If I get restless I'll give it another try. ;) It's more that I like to then that I need to...

The cover art is a bigger concern. Funny thing, if I add another USB device the cover arts are there, most of them are very low resolution, but we can fix that. So for now I use different usb-devices, which is easy since your USB music apk is fixed on usb 1. A work around for now and..
[Connected Car] gekkekoe123:
I was under the impression that framaroot 1.6.1 added "services" where other software could invoke it directly. So We don't need UI in this case. But I could be wrong.

I decompiled the apk content with apktool. It also gives you a disassembly of the classes.dex (where I change the load lib calls to use lib cpurple). You can use apktool to rebuild the apk again. In the apk in the previous post, I searched for all activity_frama and renamed them to main. So the files in that apk should be ok to merge with your messenger app.
[Connected Car] gekkekoe123:
Ok so we managed to get rid off the activity.xml error. This next error looks like a lib/compile error thing. But before we continue, it might be wise to wait for some SCT owners to actually test the messenger apk.
[Connected Car] johnnie_w:
Thanks for your awesome work! I will try tomorrow morning before going to work, and will let you know afterwards. I really appreciate all the efforts!
[Connected Car] VSTmoTP2:
Great work, hopefully you guys will get this system cracked... I just bought a 2014 XC60 but I held off on getting SCT due to some complaints of bugs and limited usability due to lack of apps. Your work could open up a whole world of possibilities for the Volvo SCT unit.
[Connected Car] gekkekoe123:
There might be even an easier way to obtain root.

1. download [url]http://www.cydiaimpactor.com/[/url]
2. launch cydia impactor
3. select bridge option and enter ip : port of your sct
4. try one of the options.

if # drop SuperSU su to /system/xbin/su succeeds then you're done.

Else you could try to start telnetd and telnet to you device, you should also have root. (# start telnetd as root on port 22/# start telnetd as system on port 2222)

I think you need to enable usb debugging in the menu's. It's normally used with usb cable, but there's also a bridge option to do adb over ip.

if that doesn't work, we should be able to the option "echo ro.kernel.qemu=1 >/data/local.prop" since we're running android <= 4.0

see: http://www.saurik.com/id/17 , "Optaining root" section
[Connected Car] getiem:
Thanks for thinking with us. Some practical problems may arise:

SCT does not have a hardware button or menu option to reboot. I did not try the ADB command reboot yet, maybe it works. The system runs already when the car is started. I do not know when it shuts down, but it is said that it shuts down after 15 minutes of engine shutdown.

Second, at the moment we only have ADB over Wifi, so if the function to run ADB over Wifi does not come back after reboot, we're stuck.

I want to try getting root and have the functions, but I am using only known/ "safe" ways to get there. The car is not really mine (from my Work) and it is my daily tool for more then 5 hours, 6 days in the week. Just to let you know :)

I downloaded the new .apk with the messenger. Will try it tomorrow after lunch. :laugh:
[Connected Car] gekkekoe123:
The first option doesn't require a boot. only the latter. It forces adb to run as root. But understandable if the unit isn't yours.
[Connected Car] gekkekoe123:
Looks good. But you should be able to use the wikango apk. The second bug lets you craft arbitrary images. The cydia impactor uses both methods, that should work as well. But adjust the wikango.apk and the SCT should be hacked ;)

I could not get the other bug exploit working, but i'm not on jre 7 so that was the problem.
[Connected Car] stavas:
I understand that you are frustrated with the lack of feedback here. I can't help until I get my Volvo with SCT a few weeks from now.

Regarding the Messenger app, is it enough to know if it exists for SCT, or do you need the apk itself?

// Regards, stavas
[Connected Car] xadax:
Available SCT Asteroid Market apps:

COYOTE Series (COYOTE System)

TuneIn Radio (TuneIn, Inc.)

Maps (Parrot SA)

Spotify (Parrot SA)

Deezer (Deezer)

Roadtrip (Parrot SA)

Liveradio by Radioline (RadioLine)

Wikango HD US/Europe/Australia/China (AlerteGPS Software)

That's it, besides a few pre-installed apps/services (like Browser, Service, Media, E-Mail, Weather, Calculator, Gallery), which can only be updated by a new firmware version.
[Connected Car] donaldta:
At this point, it is enough to know which apps are available for the SCT. At least then I can download their counterpart on my Smart to be able to compare their sizes/directory structure. Getting the actual APK would be like having the cherry on top of a hot fudge sundae.

Btw, in case you're wondering why I would still need this info even though I created what seems like a good apk exploiting bug# 9695860, we still do not know if it works. Volvo may have patched one or both of the bugs for the Masterkey Exploit. Which means there still is a possibility that gekkekoe123 and I would be right back to the drawing board trying to realign files to match an applicable APK for the SCT.
[Connected Car] xadax:
Tried it, got 'Failure [INSTALL_FAILED_INVALID_APK]' on most exploits.

'Bootloader' resulted in a reboot of the SCT unit.

telnetd/telnet, did not work I believe, but have to try that again later tomorrow to be sure.

Shell is in non-root mode, no changes on file system allowed.
[Connected Car] donaldta:
Awesome, thanks! By the looks of it, if the unmodified Asteroid Messenger won't install because it is signed with a different keystore with the Asteroid than the SCT then we should use SCT's version of Spotify to exploit bug# 8219321 (1.8MB and suitable directory structure) and Maps to exploit bug# 9695860 (645k, smallest footprint).

So, if there's anyone with an SCT that would like to help us out then please install these two programs onto your SCT from the Asteroid Market. Then use "sdk/platform-tools/adb pull /data/app/{appname}" then attach them to a post in this thread. If you want to use the GUI its located in "sdk/tools/monitor" then you can use the file explorer panel to locate and download files.

I'm not so sure it is restricted to being updated by a new firmware version. Usually, when apps are updated on Android, it just needs to be signed by the same keystore. If the applications come with the initial firmware then android package installer will check if the key matches between the two APKs. If it matches then the new version does not replace the old in storage. Actually, the update is installed into /data/apps with a "-1", "-2", "-3", etc, appended to the app's manifest name. Then the shortcut in the app drawer is redirected to the new version. This allows you the option to "uninstall updates" from the Application Manager so that you can revert to original version at a later time.

However, I'm not sure how it handles an app with the same version as the firmware. I do know that you would probably need to use the "-r" switch to reinstall an existing app. For example, "adb install -r calculator.apk"
[Connected Car] donaldta:
Just in case the modified Asteroid Messenger can be installed into the SCT, I went ahead and embed the ES File Explorer apk into Parrot's Maps. This should make it easier for whomever uses it to change the following line in "/system/build.prop" from "false" to "true". Hopefully that will allow them to install any package without the need to use the Masterkey exploit.

EDIT: Attachment updated to use older version of ES File Explorer. The working version has an MD5 checksum of 4b1c6f9930498575fc699a8bdd81718d

root@Microknoppix:/home/knoppix/Downloads# java -jar /usr/local/bin/AndroidMasterKeys.jar -b -a Maps_100.0.24.apk -z ES_File_Explorer_V1.6.2.5.apk
root@Microknoppix:/home/knoppix/Downloads# zip -T MasterKeysModded-Maps_100.0.24.apk
test of MasterKeysModded-Maps_100.0.24.apk OK
root@Microknoppix:/home/knoppix/Downloads# md5sum MasterKeysModded-Maps_100.0.24.apk
4b1c6f9930498575fc699a8bdd81718d MasterKeysModded-Maps_100.0.24.apk
root@Microknoppix:/home/knoppix/Downloads#
[Connected Car] gekkekoe123:
The winkango apk does not work. Could not use androidmasterkeys on that file for some reason. Its not the jre.

So guys get us one of the other apk from sct market.

Cydia impactor failed probably due to wrong apks. Its a generic tool

---------- Post added at 06:39 AM ---------- Previous post was at 06:29 AM ----------

so you did tried the /data/property thing and rebooted? After that starting telnet should give u root. The fact that you could start telnet tells me that the bugs are exploitable on sct.
[Connected Car] getiem:
i will get you the other apk files this afternoon. caution, all other apps are system apps. only wikango is freely downloadable installable and uninstallable in our asteroid market.

[MENTION=5389783]donaldta[/MENTION], i know there are no real safe ways, but realy experimental methods are a bit frightening to me. i allready sent gekkekoe an invitation to drive by, so we maybe could work on a live system together..
[Connected Car] santu001:
Hmm, getting restless already. Isn't there a simple way the keep the media player from changing from night to day setting. The darker version is ok, but the light version is so bright that I really don't like it.
[Connected Car] donaldta:
You can try using NinjaMorph or Metamorph.
[Connected Car] jlzuliani:
Problem to uninstall waze

Gentlemen,

I have the same problem with Waze in Volvo SCT like other users. Someone mentioned to uninstall and install it again, but when I try to unisntall but I had a "Failure" message (just this word Failure) and nothing else. I tried also with ES File Explorer and I had a message saying that is not possible to uninstall it. Is there another way to do that? I also tried in ADB Shell with command pm, but I had the same Failure message...any ideia?

Thanks a lot.
[Connected Car] donaldta:
It sounds like you didn't actually install Waze but copied it into /system/app directory. This is a horrible way of installing applications.

To get rid of Waze, you have to remount system partition as read-write. This can be accomplished by enabling Root Explorer from Es File Explorer's Fast Access menu then holding down the words, "Root Explorer". A window will pop up with an option to "Mount R/W" which will allow you to make changes to the directories below /system.

You can now go into /system/app directory and delete the Waze APK but you will also have to go into /data/data and delete the com.waze directory. Make sure you delete all of its files and subdirectories.
[Connected Car] santu001:
Thanks for the suggestion, but no cigar. It corrupted com.parrot. media player.apk in system/app. Luckely I kept my first packages.xml, which made a reinstall of your original apk possible. I didn't at first. I did change the background image in the res folder with the new background image with the same name. Didn't try to look for the day and night issue, because I wouldn't know where to look.Pity it didn't work. It would be a nice way to change these things. Still thanks for your help. You don't stop to amaze me in how your always helping us guys. Thanks again. ;)
[Connected Car] OldAbe:
Hello!

I just found your work with Volvo SCT and think it looks very promising. Excellent work and I look forward to following your future.

I own a Volvo XC60 with SCT (eu -1.47.96) that I would like to open the system for installing more applications such as TomTom. :)

My question to you.

In order to use your "One-click script" do I need to install the Android SDK on my PC or are there other dependencies that I need to know before I start?

In "Manual instructions and commands," it says that this is needed and I was a bit concerned about the same applies when using the script.

Is there any difference in the end to use the "One-click script" or follow "Manual instructions and commands:"?

Thanks again Abe
[Connected Car] RichieB:
No, there are no dependencies other than a Windows PC in the same network as the SCT Wifi. The relevant bits of the Android SDK are included in the zip file.

The difference is that the script is much, much easier and complete. If you do it manually you will most likely miss things like remount.sh and rewhitelist.sh. So please use the menu.bat script.
[Connected Car] OldAbe:
Thanks for the quick feedback and your responses.

//Abe
[Connected Car] jlzuliani:
Thanks for the replay donaldta, now I know the correct way to install applications. But I think I'm doing something wrong...I followed the procedure above, but I had a message saying "Sorry, the test has being failled, it's not possible to perform this operation in your device".

For the records, since I installed ES File Explorer, even with the option "Access to hiden files" ON, I never saw the files inside the directory /data for instance. Do I have to uninstall and install it again?
[Connected Car] donaldta:
Yes, if you have already rooted your device and installed SuperSU then that usually something is screwy with the apps installation directories. Try uninstalling the app and reinstalling it. That usually fixes most oddities with apps.
[Connected Car] santu001:
What do you guys think? Will this tasker solution work in fixating mediaplayer in nightmode? Or am I missing day and night settings all together, since it's not a Smart? I first thought IGO used the same time clock as the mediaplayer, but there different. And SCT doesn't have any settings for time. Does the parrot Smart have a day and night setting? Or should is the tasker solution what I'm looking for? I don't have tasker yet...
[Connected Car] RichieB:
The only app I see switching day and night modes is Tomtom. I don't see a difference in the Smart media player between day and night. Maybe this is because I didn't upgrade the SCT firmware?
[Connected Car] donaldta:
It should work if your SCT is actually changing. It is a Android state. Nothing specific to Parrot.
[Connected Car] santu001:
Then your in luck, 'cause mine is plain brushed bright silver during daytime and text colour inverted. Tom Tom probably, like IGO, has it's own settings regardless of the system settings. I thus need a find a way to set nightmode permanent. Because the difference is considerable. I do think mediaplayer is the only app that utilizes this within SCT.

Now I feel comfortable spending a few euro's in trying... ;)
[Connected Car] santu001:
Those where indeed two well spend euro's, because it worked!!! Exactly like the link showed and I can see now why everybody is raving about Tasker. An essential app, so it seems. ;)
[Connected Car] RichieB:
Tasker is definitely a must-have. Set rewhitelist.sh to run when a new app is installed for example, and/or set USBMusic apk to run on startup. I also use it to start sshd when a connection to my wifi is made (and kill it when the wifi connection is gone).

Btw, I created the day/night switch as well, and it does switch! It seems my SCT was stuck in night mode, and is not wired to the headlight switch (which I have always set to Auto anyway). It seems that the Asteroid Parrot media player is the only app that uses this setting, so I suppose it is by design. Pretty strange that your media player was switching automatically.

Now that I see the day mode, I agree that the media player background is way too bright!