Outils pour utilisateurs

Outils du site


Blunch (CM10+ on a Sony-Ericsson Xperia Pro MK16a)

Unlock the Bootloader

SE has a nice documentation to unlock the bootloader,

Please note! It will only be possible to unlock the boot loader for certain releases. You can check if it is possible to unlock the boot loader of your device in the service menu by following the steps below:

In your device, open the dialler and enter *#*#7378423#*#* to access the service menu.
Tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.

but this very phone says “Bootloader unlock allowed: No”. Fortunately, and despite conflicting information, the test points method seems to work (using s1tool). However, it doesn't.

There also are mentions that the Xperia FlashTool might help, but it seems to only work with unlocked bootloaders. Indeed.

Root the System

None of the default zergRush, psneuter or GingerBreak exploits work because there isn't any writable location (without noexec) where the binaries can be written. This makes rootkits such as DooMLoRD's or SuperOneClick fail.

The only way to root bootloader-locked Xperia Pros seems to be through the Eroot_1.2 tool. This works (it seems to be using the zergRush attack).


shell@android:/ $ <in>su</in>
shell@android:/ # <in>setprop net.hostname blunch</in>

Remove the Google Applications, and Other Bugs

They are useless, annoying and a threat to my privacy. As they cannot be removed by simply slapping in a new image, they can be removed using ADB. The contents of the gapps.zip is a good indication of what to remove. The /system/app mover app can help.

$ <in>adb connect 192.168.XX.XX</in> # ADB Wireless is pretty awesome!
connected to 192.168.XX.XX:5555
$ <in>adb shell</in>
shell@android:/ $ <in>su</in>
shell@android:/ # <in>mount -o remount,rw -t rfs /dev/mtdblock0 /system</in>
shell@android:/ # <in>mkdir -p /sdcard/blunch/gapps</in> # Let's keep a backup just in case
shell@android:/ # <in>for app in FB*.apk facebook.apk EventStreamPluginFacebook.apk EventStreamPluginTwitter.apk SEMCFacebookProxy.apk; do cp /system/app/$app /sdcard/blunch/gapps; rm -r /system/app/$app; done</in>
shell@android:/ # <in>for app in ChromeBookmarksSyncAdapter.apk GMS_Maps.apk GenieWidget.apk Gmail.apk GoogleBackupTransport.apk GoogleCalendarSyncAdapter.apk GoogleContactsSyncAdapter.apk GoogleFeedback.apk GoogleLoginService.apk GoogleLyricsPlugin.apk GooglePartnerSetup.apk GoogleServicesFramework.apk MediaUploader.apk NetworkLocation.apk Phonesky.apk SEMCFacebookProxy.apk SetupWizard.apk Street.apk Talk.apk YouTubeKaraokePlugin.apk YouTubePlugin.apk; do cp /system/app/$app /sdcard/blunch/gapps; rm -r /system/app/$app; done</in> # GMS_Maps.apk contains Maps and Latitude
shell@android:/ # <in>for app in OmaDatasyncService.apk OmaV1AgentDownloadServices.apk OMAClientProvisioning.apk OmaDownload.apk; do cp /system/app/$app /sdcard/blunch/gapps; rm -r /system/app/$app; done</in> # I don't care for OTA updates and management
shell@android:/ # <in>mount -o remount,ro -t rfs /dev/mtdblock0 /system</in>

There is a list of some other Sony Ericsson bloatware that can be safely removed (and those which cannot). Though not for the MK16a, some applications in the list are also present (and removable).

How Useless and Unused Applications Still Use Data

A couple of days after removing all these applications (and only those), I happened to be looking at the data usage, and got this.

 More than 100 MB used by unused Google Applications

All the removed applications accounted for about half (100 MB) of my data usage for the previous month. Quite insightful considering I hadn't been using them.

projets/blunch.txt · Dernière modification : 2015-06-14 06:04 de shtrom