In MIUI 2.6.22 themes don't work because the direcory theme does't exist in /data/system
To repair this issue you need:
- MIUI themes version 4 (v4)
- Create the directory theme in /data/system/
To create the directory theme follow this instruction ( from terminal emulator )
[email protected]:/$
[email protected]:/$ su
[email protected]:/# cd /data/system
[email protected]:/data/syste/# mkdir theme
[email protected]:/data/syste/# chown system theme
[email protected]:/data/syste/# chgrp system theme
Also you can use a root explorer like ES File Explorer to create the directory
Related
This mod allows you to replace easily the system fonts
or to move your system fonts to the SD card freeing
some space in the ROM.
First thing to do is to replace libsgl.so with my modified version
or if you prefer compile it yourself after applying the attached patch.
Code:
adb remount
adb shell
cp /system/lib/libsgl.so /system/lib/libsgl.so.bak
mkdir /system/sd/fonts
exit
adb push libsgl.so /system/lib/
adb shell reboot
At reboot the system will check first in
Code:
/system/sd/fonts
if some suitable fonts are found there they will be loaded
else the default fonts in
Code:
/system/fonts
will be loaded.
The fonts in /system/sd/fonts must be named:
Code:
DroidSans.ttf
DroidSans-Bold.ttf
DroidSerif-Regular.ttf
DroidSerif-Bold.ttf
DroidSerif-Italic.ttf
DroidSerif-BoldItalic.ttf
DroidSansMono.ttf
These are optional, and can be ignored if not found in the file system.
DroidSansJapanese.ttf
DroidSansFallback.ttf
You can achieve this by moving or copying the default system fonts,
renaming the fonts you want to use or by a symbolic link e.g.
Code:
cd /system/sd/fonts
ln -s Vera.ttf DroidSans.ttf
I have tested it with DejaVu and DejaVu condensed fonts.
Enjoy and try out your own font combinations.
Hi,
I developed a custom Settings.apk with some changes.I installed it on emulator it woks fine.But when i install on device,after reboot the Settings application is not visible.I checke using ADB whether it is system/app or not,it is in system/app
but not visible.
I tested on LGP350 device
My steps are
1)Rooted the phone using GingerBreak
2)Take backup of Setting.apk,Settings.odex
3)Remove Setting.apk,Settings.odex from system/app
4)Copied my custom Settings.apk to System/app(i have no Settings.odex )
5)Reboot the device
My command sequence is :-
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb shell
$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
# chmod 777 system/app
# exit
$ exit
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb push Settings.apk system/app
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb reboot
After reboot there is no Settings app on my device
Hj, how do you install settings.apk on emulator?
Ramkumar Pinninti said:
Hi,
I developed a custom Settings.apk with some changes.I installed it on emulator it woks fine.But when i install on device,after reboot the Settings application is not visible.I checke using ADB whether it is system/app or not,it is in system/app
but not visible.
I tested on LGP350 device
My steps are
1)Rooted the phone using GingerBreak
2)Take backup of Setting.apk,Settings.odex
3)Remove Setting.apk,Settings.odex from system/app
4)Copied my custom Settings.apk to System/app(i have no Settings.odex )
5)Reboot the device
My command sequence is :-
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb shell
$ su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
# chmod 777 system/app
# exit
$ exit
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb push Settings.apk system/app
C:\Users\ramkumar\.android\avd\android_simulator.avd>adb reboot
After reboot there is no Settings app on my device
Click to expand...
Click to collapse
sorry for my english!
Hj, how do you install settings.apk on emulator?
I try to install settings.apk, but It error.
Please tell me how to install it on emulator.
What emulator do you use?
thanks!
I've a problem installing Java in my 858:
I follow theses steps:
Open Terminal Emulator
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/jbed.apk /system/app
cp /sdcard/libjbedvm.so /system/lib
but at the last command say me the memory is not enought, so retried but say the file exist and is read only, open the explorer i see the file is some kb versus the 3 mb in sdcard, i tried in terminal change permission with chmod in 777 at this file, tried in adb, tried to eliminate but nothing to do, i've smartlucky rom 2.4 (froyo 2.2.2 rooted).
Some suggestion ?
Hi everyone
Instructions as follows, based on the one here but modified for Optimus 3D and my personal experience:
Prerequisites:
Rooted Optimus 3D with CWM installed
USB debugging enabled
Root explorer or any similar software (must have R/W access to system)
Android SDK with ADB installed
Java SDK installed
LG USB drivers installed
xUltimate downloaded and unzipped somewhere.
Instructions:
This was tested and working using v21D. YMMV for other roms, depending on what apps can or cannot be deodexed.
BACKUP YOUR ROM USING CWM. THIS IS VERY IMPORTANT. I WILL NOT ACCEPT ANY RESPONSIBILITY FOR ANY BRICKED PHONES.
Connect your phone to your computer.
Move the following apps in /system/apps to /sdcard/odex. These files will refuse to deodex using xUltimate:
Maps.apk and Maps.odex
Phonesky.apk and Phonesky.odex
PolarisOffice.apk and PolarisOffice.odex
PlusOne.apk and PlusOne.odex
VoiceSearch.apk and VoiceSearch.odex
Open Main.exe after extracting xUltimate, enter '5' and hit enter, accepting all prompts.
After some time, the deodexing process will complete and it will turn green and say the process was successful.
Open Root Explorer again, delete ALL of these apps in /system/apps. You'll get them back later after copying the deodexed files over. THIS IS REQUIRED OR YOUR PHONE WILL BOOTLOOP.
ApplicationManager.apk
ApplicationManager.odex
BookmarksWidget.apk
BookmarksWidget.odex
Browser.apk
Browser.odex
Calculator.apk
Calculator.odex
CarHome.apk
CarHome.odex
DrmProvider.apk
DrmProvider.odex
DrmService.apk
DrmService.odex
FavoriteContactsWidget.apk
FavoriteContactsWidget.odex
Finance.apk
Finance.odex
Gmail.apk
Gmail.odex
HiddenMenu.apk
HiddenMenu.odex
HiddenSIMUnlockManu.apk
HiddenSIMUnlockManu.odex
LGercui.apk
LGercui.odex
LGSetupWizard.apk
LGSetupWizard.odex
LGSetupWizardNotiForGB.apk
LGSetupWizardNotiForGB.odex
News.apk
News.odex
oem_install_flash_player.apk
oem_install_flash_player.odex
PicoTts.apk
PicoTts.odex
Protips.apk
Protips.odex
Richnote.apk
Richnote.odex
RichnoteWidget.apk
RichnoteWidget.odex
S3DApps.apk
S3DApps.odex
S3DGallery.apk
S3DGallery.odex
S3DGameAsphalt.apk
S3DGameAsphalt.odex
S3DGameGolf.apk
S3DGameGolf.odex
S3DGameNova.apk
S3DGameNova.odex
S3DGuide.apk
S3DGuide.odex
S3DSpace.apk
S3DSpace.odex
SetupWizard.apk
SetupWizard.odex
SmartShare.apk
SmartShare.odex
Street.apk
Street.odex
Talk.apk
Talk.odex
TodayPlusWidget.apk
TodayPlusWidget.odex
TtsService.apk
TtsService.odex
WeatherWidget.apk
WeatherWidget.odex
WhatsNew.apk
WhatsNew.odex
Click to expand...
Click to collapse
Turn on USB storage mode on your phone, copy done_app and done_frame to the internal SD card.
Turn USB storage mode off, open ADB in command prompt and enter the following commands. Make sure the # or $ signs have appeared after every command before continuing with the next step.
su (allow any superuser requests that appear here)
mount -o rw,remount -t ext4 /dev/block/mmcblk0p7 /system
busybox cp /sdcard/done_app/* /system/app/
busybox cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
chmod 644 /system/app/*
chown root.root /system/app/*
chmod 644 /system/framework/*
chown root.root /system/framework/*
mount -o ro,remount -t ext4 /dev/block/mmcblk0p7 /system
reboot
Click to expand...
Click to collapse
If mount -o ro,remount -t ext4 /dev/block/mmcblk0p7 /system returns an error that device or resource is busy, ignore it and just reboot.
The first reboot will take a while, be patient.
After the phone reboots, you can move the files from /sdcard/odex back to /system/apps.
You're done! You can install any deodexed theme now
Mostly deodexed v21D files: Mediafire
Extract the files somewhere and follow the instructions from step 7 onwards.
This method should work for most stock roms. Make sure you make another CWM backup after the process to ensure everything remains as is afterwards
Another advantage of an almost fully deodexed rom is that the phone feels so much faster and smoother
EDIT: Verified that the ICS theme does not work with this method Lots of FCs everywhere. Try at your own peril.
Remember to hit thanks below
I am using custom rom's for about a year now and am using a script to delete several things I am not using.
But for some of the /system/app and /system/priv-app directories I do not know what functionality is behind and if it safe to delete.
I have started this thread as a help also for others who want to clean up and use their install as lean and mean as possible.
To start, this is the list of directories I am deleting after an install, enclosed also the script I am using from terminal in twrp for this (remove the .txt and chmod 755 to make it executable).
Note; I am using alternatives for calendar, mail, contacts, camera and galary so they are also included in the list.
Code:
/system/app/AntHalService
/system/app/BasicDreams
/system/app/BuiltInPrintService
/system/app/Calendar
/system/app/Camera2
/system/app/CtsShimPrebuilt
/system/app/EasterEgg
/system/app/Email
/system/app/Gallery2
/system/app/HTMLViewer
/system/app/LatinIME
/system/app/LiveWallpapersPicker
/system/app/messaging
/system/app/NfcNci
/system/app/PhotoTable
/system/app/PrintRecommendationService
/system/app/SpareParts
/system/app/Stk
/system/app/SubstratumSignature
/system/app/Terminal
/system/app/Traceur
/system/priv-app/BackupRestoreConfirmation
/system/priv-app/CallLogBackup
/system/priv-app/CNEService
/system/priv-app/Contacts
/system/priv-app/CtsShimPrivPrebuilt
/system/priv-app/DocumentsUI
/system/priv-app/InputDevices
/system/priv-app/ManagedProvisioning
/system/priv-app/MusicFX
/system/priv-app/OneTimeInitializer
/system/priv-app/SubstratumHelperService
/system/priv-app/VpnDialogs
/system/priv-app/WeatherClient
/system/framework/com.google.widevine.software.drm.jar
/system/lib/libjni_latinimegoogle.so
/system/media/bootanimation.zip
/system/bin/bootanimation
Can someone tell me what the functionality is for the apk in the following directories:
/system/app:
embms
ExtShared
WAPPushManager
/system/priv-app:
StatementService
Tag
Are there other apks in /system/app or /system/priv-app, belonging to a default (AOSP-based) Android Pie which can be deleted safely?