Skip to content

Instantly share code, notes, and snippets.

@bboa
bboa / bbm
Last active November 2, 2016 22:48
Flyme OS 5 secondary BusyBox installer/uninstaller
#! /system/bin/sh
########################################################################
#
# Скрипт для установки и деинсталляции второго BusyBox во Flyme OS 5
# без удаления встроенного в прошивку BusyBox от Meizu.
#
# Работа проверялась только на Meizu MX4 Pro с прошивкой 5.1.10.0G.
# Необходим root и установленный на смартфоне эмулятор терминала.
#
#! /system/bin/sh
# Script will check and restore entries in /system/etc/hosts file.
(
HOST[0000]=localhost
HOST[0001]=alog.umeng.com
HOST[0002]=alog.umeng.co
HOST[0003]=aider.meizu.com
HOST[0004]=apis-meizu.dianhua.cn
HOST[0005]=api-app.meizu.com
HOST[0006]=api-theme.meizu.com
D/SurfaceControl( 976): Excessive delay in unblankDisplay() while turning screen on: 557ms
D/SuperStamina-WakelockHandler( 976): unblock uids
I/ActivityManager( 1261): Timeline: Activity_idle id: android.os.BinderProxy@4246a328 time:1731065
I/ActivityManager( 1261): Timeline: Activity_launch_request id:fr.neamar.kiss time:1736148
I/ActivityManager( 976): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=fr.neamar.kiss/.MainActivity} from pid 1261
V/WindowManager( 976): Pausing WindowToken AppWindowToken{42897d28 token=Token{4288f800 ActivityRecord{4288f588 u0 com.sonyericsson.home/com.sonymobile.home.HomeActivity t1}}}
D/WindowManager( 976): Input focus has changed to null
I/ActivityManager( 976): Start proc fr.neamar.kiss for activity fr.neamar.kiss/.MainActivity: pid=4728 uid=10102 gids={50102}
V/WindowManager( 976): Resuming WindowToken AppWindowToken{42897d28 token=Token{4288f800 ActivityRecord{4288f588 u0 com.sonyericsson.home/com.sonymobile.home.Ho
W/dalvikvm(13445): VFY: unable to resolve static method 391: Landroid/view/ViewAnimationUtils;.createCircularReveal (Landroid/view/View;IIFF)Landroid/animation/Animator;
D/dalvikvm(13445): VFY: replacing opcode 0x71 at 0x0070
I/dalvikvm(13445): Could not find method android.view.ViewAnimationUtils.createCircularReveal, referenced from method fr.neamar.kiss.MainActivity.displayKissBar
W/dalvikvm(13445): VFY: unable to resolve static method 391: Landroid/view/ViewAnimationUtils;.createCircularReveal (Landroid/view/View;IIFF)Landroid/animation/Animator;
D/dalvikvm(13445): VFY: replacing opcode 0x71 at 0x00be
I/dalvikvm(13445): Could not find method android.view.View.setClipToOutline, referenced from method fr.neamar.kiss.MainActivity.onCreate
W/dalvikvm(13445): VFY: unable to resolve virtual method 378: Landroid/view/View;.setClipToOutline (Z)V
D/dalvikvm(13445): VFY: replacing opcode 0x6e at 0x01e2
E/dalvikvm(13445): Could not find class 'android.content.pm.LauncherApps', referenced from method fr.neamar.kiss.d
@bboa
bboa / Jar-Apk
Last active April 18, 2018 15:37
Xperia E1 jar-apk dependencies
#Xperia E1 jar-apk dependencies
/system/framework/android.test.runner.jar
com.sonyericsson.lockscreen.uxpnxt /system/app/XperiaLockScreen.apk
com.android.calendar /system/app/SemcCalendar.apk
com.android.providers.calendar /system/priv-app/CalendarProvider.apk
com.sonyericsson.lockscreen.uxpnxt /system/app/XperiaLockScreen.apk
/system/framework/com.android.location.provider.jar
@bboa
bboa / Apk-Jar
Created April 18, 2018 15:39
Xperia E1 apk-jar dependencies
#Xperia E1 jar-apk dependencies
com.qualcomm.fastdormancy /system/app/fastdormancy.apk
/system/framework/qcrilhook.jar
com.sonyericsson.orangetheme /system/app/OrangeTheme.apk
/system/framework/com.sonymobile.runtimeskinning.jar
com.android.bluetooth /system/app/Bluetooth.apk
@bboa
bboa / resize_zram.sh
Last active April 19, 2018 10:49
Xperia E1 swap resize script
#! /system/bin/sh
(
sleep 1
swapoff /dev/block/zram0
echo 1 > /sys/block/zram0/reset
echo 104857600 > /sys/block/zram0/disksize
mkswap /dev/block/zram0
swapon /dev/block/zram0
) &
@bboa
bboa / enable_gpu_only_rendering
Last active April 18, 2018 16:04
Xperia E1 gpu-only UI rendering
#Отключение рендеринга CPU
#Disabling CPU rendering
mount -o remount,rw /system
echo '0 1 adreno' > /system/lib/egl/egl.cfg
rm /system/lib/egl/libGLES_android.so
sed -i '/dyn/d' /system/build.prop
cat << EOF >> /system/build.prop
debug.composition.type=gpu
@bboa
bboa / apk_list
Created April 18, 2018 15:49
Xperia E1 packages
#Sony Xperia E1 Dual D2105 packages
Name: com.qualcomm.fastdormancy
Path: /system/app/fastdormancy.apk
Name: com.sonyericsson.oemCryptoReceiver
Path: /system/app/OemCryptoReceiver.apk
Name: com.sonyericsson.cameraextension.permission
@bboa
bboa / Xperia_E1_apps.txt
Last active April 20, 2018 14:54
Xperia E1 apps
#****** Автоустанавливаемые приложения ******
#Evernote, Facebook, Diagnostics, TrackID
rm /system/etc/customization/applications/com.evernote.apk
rm /system/etc/product/applications/FBAndroid.apk
rm /system/etc/product/applications/diagnostics.apk
rm /system/etc/product/applications/trackid.apk
rm /system/vendor/overlay/com.sonyericsson.trackid-res.apk