[Tool] MiPatcher ( MIUI Porting ) - Android Software Development

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Original Thread at miui.en
Overview
This is pretty minimal, I like minimal things and I feel it's self explanatory.
I wrote this tool around the assumption the user knows how to prep their base for MIUI and knows how to edit the kernel, build.prop and updater-script.
I also wrote this tool a lot for myself too with this it's easy to fork my MIUI builds around my device tree without effort; I felt other folks might find it useful too.
Huge credits to Balcan.GSM for working on this project with me, best co-dev ever
Requirements
- CM10.1 source-built for MIUI
* Boot.IMG modded for MIUI
* Updater-Script modded for MIUI
* Build.prop modded for MIUI
- MIUIv5 Donor ROM
*Must use the same/very similar codebase as your CM/AOSP
- PatchROM Resources
- WinRAR
Download MiPatcher
2/11/2014: MiPatcher 0.01
Getting started
The 'root' folder is the working directory for this tool.
Extract your CyanogenMod10.1 with modded stuff for MIUI into:
root\ROM\cyanogenmod
Click to expand...
Click to collapse
This folder never has to be touched again, except to update build.prop version to reflect an updated MIUI (unless you use a generic version tag like 'V5-Devicename'.
Extract your MIUI Donor ROM into:
root\ROM\miui
Click to expand...
Click to collapse
and finally, download PatchROM resources for your device and MIUI revision, and extract the contents into:
root\patch
Click to expand...
Click to collapse
How to use
Select the Resolution your device uses, and also enter the Vendor RIL your phone uses which can be found in build.prop, you don't have to use pre-built /data, it does not matter.
Once you've entered your RIL and Resolution execute 'Make Workspace' and wait.
One last step
If you're a developer chances are WinRAR already associates .apk as a file type, it may not and you may have to set this manually.
Toward the end of this, CM and MIUI Framework-res.apk will automatically be opened move the needed XMLs from CMs archive into MIUIs.
After you can add keyboard or whatever else to the Workspace, zip the contents and flash it to begin using MIUI
XDA:DevDB Information
MiPatcher, a Tool/Utility for the Android General
Contributors
Tquetski
Version Information
Status: Alpha
Created 2014-02-11
Last Updated 2014-02-11

MIUI General Porting Requirements
This is not so much a tutorial as an overview of the current requirements needed to fork MIUI, I won't be covering 4.3 or 4.4 as they are not in MiCode and have no Patch resources which play a huge part in this.
This will be closer to a technical manual.
Updater-Script
LBESEC
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 0, 0744, "/system/lib/liblbesec.so");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
Click to expand...
Click to collapse
Shelld
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 1000, 06750, "/system/xbin/shelld");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
Click to expand...
Click to collapse
Build.prop
- Build version
ro.build.version.incremental=4.1.24
Click to expand...
Click to collapse
MiCode version flags
#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.miui.ui.version.code=3
ro.miui.ui.version.name=V5
ro.rommanager.developerid=cyanogenmod
keyguard.no_require_sim=true
Click to expand...
Click to collapse
MIUI Ringtones
ro.config.ringtone=MI.ogg
ro.config.notification_sound=FadeIn.ogg
ro.config.alarm_alert=GoodMorning.ogg
ro.config.sms_received_sound=FadeIn.ogg
ro.config.sms_delivered_sound=MessageComplete.ogg
Click to expand...
Click to collapse
Torch fix
debug.mdpcomp.maxlayer=2
debug.mdpcomp.logs=0
Click to expand...
Click to collapse
Kernel changes
Init.rc
Bootclasspath
export BOOTCLASSPATH /system/framework/core.jar................................ ..:/system/framework/mms-common.jar:/system/framework/framework_ext.jar:/system/framework/android.policy.jar
Click to expand...
Click to collapse
Shelld Service (It is the last service called)
service mdnsd /system/bin/mdnsd
class main
user mdnsr
group inet net_raw
socket mdnsd stream 0660 mdnsr inet
disabled
oneshot
service shelld /system/xbin/shelld
class main
Click to expand...
Click to collapse
Default.prop
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.adb.secure= Remove this line
ro.secure=0 Change this to 0
ro.allow.mock.location=0
ro.debuggable=1
persist.sys.usb.config=adb
Click to expand...
Click to collapse
Libraries
Etc
- Use CMs apns-conf.xml If you plan to have working data
Media
Audio
Locksceen
Theme
Video
Wallpaper
bootanimation
Click to expand...
Click to collapse
Framework-res.apk
Open this in WinRAR and navigate to res/xml in your MIUI framework-res -and- your CM framework-res, drag the following from your CM10.1 XML into your MIUI XML to replace them:
Eri (Do not replace if using MIUIs APN list)
APN (Do not replace to try using MIUIs APN list)
Storage-List
Power-Profile
Click to expand...
Click to collapse
Telephony-common.jar
Decompile CMs Telephony-common.jar and find your device specific RIL file, it's generally listed in build.prop and will look something like this:
ro.telephony.ril_class=MotorolaQualcommRIL
Click to expand...
Click to collapse
In my case, mine is 'MotorolaQualcommRIL.smali'.
Take your RIL file and place it somewhere, decompile MIUIs Telephony-common.jar and place your device RIL in the 'Telephony' folder, found at:
\smali\com\android\internal\telephony
Build it and place iit in MIUIs framework folder, this will resolve com.android.phone force quits.

Related

Huawei 3G WCDMA Modem SUPPORT

Thanks DerArtem ( http://forum.xda-developers.com/showthread.php?t=914350 )
I modify for malata zpad,I think gtab is the same.
Add auto usb_modeswitch.
Support hauwei E1550-E1692-E1750-E1820,test on huawei E1750.
Edit init.rc in ramdisk, add:
Code:
on device-added-/dev/ttyUSB0
chmod 0777 /dev/ttyUSB0
on device-added-/dev/ttyUSB1
chmod 0777 /dev/ttyUSB1
on device-added-/dev/ttyUSB2
chmod 0777 /dev/ttyUSB2
on device-added-/dev/ttyUSB3
chmod 0777 /dev/ttyUSB3
on device-added-/dev/block/sr0
start usb_modeswitch
on boot
service ril-daemon /system/bin/rild
socket rild stream 660 root radio
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio
service pppd_gprs /system/etc/init.gprs-pppd
user root
group radio cache inet misc
disabled
oneshot
service usb_modeswitch /system/bin/usbs
user root
disabled
oneshot
Repack boot.img
Edit system/build.prop ,add:
Code:
# for 3g
rild.libpath=/system/lib/libhuaweigeneric-ril.so
rild.libargs=-d /dev/ttyUSB2
keyguard.no_require_sim=1
Use with mobile option's setting.apk
my update script
Code:
show_progress(0.900000, 180);
ui_print("+-- installing USB 3G Pack --+");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 00755, "/system/bin/chat");
set_perm(0, 0, 04755, "/system/bin/usb_modeswitch");
set_perm(0, 0, 04755, "/system/bin/usbs");
set_perm(0, 0, 00755, "/system/etc/ppp/ip-up");
set_perm(0, 0, 00755, "/system/etc/ppp/ip-down");
set_perm(0, 0, 00755, "/system/etc/init.gprs-pppd");
set_perm(1001, 1001, 00644, "/system/etc/ppp/pap-secrets");
set_perm(1001, 1001, 00644, "/system/etc/ppp/chap-secrets");
set_perm(0, 0, 00644, "/system/etc/apns-conf.xml");
set_perm_recursive(0, 2000, 0644, 0644, "/system/etc/usb_modeswitch.d");
unmount("/system");
assert(package_extract_file("boot.img", "/tmp/boot.img"), write_raw_image("/tmp/boot.img", "boot"), delete("/tmp/boot.img"));
ui_print("+------------------------------+");
ui_print("+install complete+");
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
great work, as always
I thought DerArtem's ril file only contained the GSM coding, no CDMA?
TheJesus said:
I thought DerArtem's ril file only contained the GSM coding, no CDMA?
Click to expand...
Click to collapse
yes,。。。。。
support for 4G usb modem from Clear...
Clear has teamed or merged with sprint and uses 4G Wi-Max. I have a USB modem but I can only get drivers for a windows machine....anyone able to get one to work....???
chenglu,
your system.rar only contain /system
no need to update boot.img like update.zip in this thread below?
http://forum.xda-developers.com/showthread.php?t=914350
tman7510 said:
Clear has teamed or merged with sprint and uses 4G Wi-Max. I have a USB modem but I can only get drivers for a windows machine....anyone able to get one to work....???
Click to expand...
Click to collapse
Pretty sure Sprint owns 51% of Clear or something.
As to your modem, it depends on which one. If its the Sierra Wireless 3G/4G USB modem, I made a thread about it and it never worked. Other than that, I don't know.
what is system.rar for?
replace those files in my gtab?
I have a Huawei E220 (VERY common in the Voda world) and for the US a ZTE tu25. Any thoughts on whether these have been made to work? I have a G Tab.
heinrich said:
I have a Huawei E220 (VERY common in the Voda world) and for the US a ZTE tu25. Any thoughts on whether these have been made to work? I have a G Tab.
Click to expand...
Click to collapse
Please try the ROM I build with Chenglu's support built-in and see if it works (Clemsyn+Calkulins Froyo combo). LMK how it goes.
heinrich said:
I have a Huawei E220 (VERY common in the Voda world) and for the US a ZTE tu25. Any thoughts on whether these have been made to work? I have a G Tab.
Click to expand...
Click to collapse
The Huawei should have no problem working. The ZTE, not so sure. If its GSM these files should work for it, but no guarantees.
clemsyn, do you know what I would need to do to get the E220 modem working under cyanogenmod 6?
You know there is zero support for cm6 on the tablet? Is was abandoned a few months ago.
thebadfrog said:
You know there is zero support for cm6 on the tablet? Is was abandoned a few months ago.
Click to expand...
Click to collapse
Shh, he'll never know
Great thanks)
TheJesus said:
The Huawei should have no problem working. The ZTE, not so sure. If its GSM these files should work for it, but no guarantees.
Click to expand...
Click to collapse
Noobish Question.
If I bought one of the usb modems that are enabled say in the new clemsyn / caulkin combo ROM, how would I use it to connect anything. I am on Verizon, how would I connect to its network.
Don't really understand the benefit here
sonkey said:
Noobish Question.
If I bought one of the usb modems that are enabled say in the new clemsyn / caulkin combo ROM, how would I use it to connect anything. I am on Verizon, how would I connect to its network.
Don't really understand the benefit here
Click to expand...
Click to collapse
It only works for GSM at the moment so no go for Verizon.
Crap....
Thanks for the reponse Clemsyn.
By the way I really appreciate all your work here, I use your clem / caulkin combo OC... It is fast and I love it.
Is there any plans for verizon support?
Thanks, Rob
Dont mean to be a leech but have to ask... Will there possibly be support for Cricket's (Pantech) U-185C dongle?
HI Chenglu, How do I install the System.rar file?
is it the same process as:
Installation:
1. copy the update.zip to a sdcard, and insert sdcard into folio.
2. Enter "Recovery menu" when folio is just turned on and press (POWER) once and (VOL up) next.
3. press (VOL up) Factory reset or system update.
4. press(VOL down) to continue to system update.
5. press (VOL up) to confirm system update.
6. during installation progress bar will show har far it is.
7. folio will reboot after installation.

New SE Launcher + Timescape for O1

Want that new xperia launcher on your phone? Then mumble no more.
This mod will enable you to use the Xperia launcher plus timescape widgets on your Optimus One android phone
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
DISCLAIMER: I AM NOT RESPONSIBLE FOR ANYTHING BLAH BLAH BLAH ETC.
WHAT YOU NEED
1. The flashable zip files containing the actual launcher and SE widgets(Download here)
2. Terminal emulator(free from market)
3. Executable script to modify build.prop(Download here)
INSTRUCTIONS
1. Make sure that the executable script(AKA "build") is placed in the root(meaning the base) of your SD card.
2. Using terminal emulator, input this command.(press enter after each line)
Code:
su
sh /sdcard/build
--this should change your build's manufacturer from LGE to Sony Ericsson--
--if an error appears, take note of the error message and post it here--
3. Reboot to recovey and flash SE_timescape.zip
4. Enjoy!!!!!
SMALL WARNING:
No undo.zip as of now, so if you're kind of fidgety on what's in your phone, stay away for now. But, if you have basic knowledge in removing system files, just fiddle with the zip file and you'll know exactly what to remove.
Bugs(help needed):
-app drawer button is placed a little bit high
-photo and video widget may present some errors
Thanks to cygnus of samdroid.net. Click here to visit the original thread
can i see the screenshot?
Screenies are up. I hope you like her, er I mean them.
Yo ungaze-dude you just posted wrong link you posted ungaze's data2sd link.
So that's why there's no one downloading the zip file. Thanks for pointing it out man.
Link fixed
i get this error in terminal "sed: -i requires an argument "
aragarm said:
i get this error in terminal "sed: -i requires an argument "
Click to expand...
Click to collapse
funny, that shouldn't happen. try to re-download. this time I uploaded the one I actually used on my phone.
i am currently using se launcher (for xperia) how is it different with that? Also app drawer button is not high for my launcher.
This launcher sucks. App Drawer doesn't show all apps.
good work man ! but the timescape font is HUGE!
looks ugly :/
it wieked on CM 7.0.2 )
i flashed this archive into recovery
and before i changed this string in build.prop
ro.product.manufacturer=LGE
to
ro.product.manufacturer=Sony Ericsson
neimovirne said:
it wieked on CM 7.0.2 )
i flashed this archive into recovery
and before i changed this string in build.prop
ro.product.manufacturer=LGE
to
ro.product.manufacturer=Sony Ericsson
Click to expand...
Click to collapse
That's exactly the same procedures as the 1st post.
the downloadable "build" script will automate the build prop change needed, while the SE_timescape.zip is a signed(edify) version of SEUX.zip.
About the fonts, YEP they're ugly alright(as you can see on my screenies) I wasn't really planning to use timescape but I really wanted the photo and video widget to work. So if anyone can help here, I'd greatly appreciate it.
Another thing, I wanted to use the SE launcher from this thread but was unsuccessful. Again, if anyone can help out, please do.
Even though it has a few bloats, I still like this launcher(+ photo widget and folders - really cool). I also think it's really fast. I don't have much time to tinker right now so any help would be greatly appreciated.
ungaze said:
That's exactly the same procedures as the 1st post.
the downloadable "build" script will automate the build prop change needed, while the SE_timescape.zip is a signed(edify) version of SEUX.zip.
Click to expand...
Click to collapse
where do you see in the first post at least one file for flash recovery?
neimovirne said:
where do you see in the first post at least one file for flash recovery?
Click to expand...
Click to collapse
WHAT YOU NEED
1. The flashable zip files containing the actual launcher and SE widgets(Download here) <-----HERE?!?!?!?!?!?
2. Terminal emulator(free from market)
3. Executable script to modify build.prop(Download here)
Click to expand...
Click to collapse
Did you get to read the post?
ungaze said:
Did you get to read the post?
Click to expand...
Click to collapse
I downloaded this archive but it was not clear files, not like in the archive that sent me
and by the way, on my phone works all widgets
neimovirne said:
I downloaded this archive but it was not clear files, not like in the archive that sent me
and by the way, on my phone works all widgets
Click to expand...
Click to collapse
I really don't know where you're getting at but trust me, both files are one and the same(only difference is with the update scripts which can be fixed by toggling signature verification). Anyways I've re-uploaded the SE_timescape.zip which is now compatible with all optimus one recoveries.
Have you tried the large photo widget? Did it work for you?
BTW, here's a screenie of the pinch gesture, really nice:
Can we use this on the optimus s? I would love it
cmyasika1 said:
Can we use this on the optimus s? I would love it
Click to expand...
Click to collapse
yes but don't do the steps in RED
WHAT YOU NEED
1. The flashable zip files containing the actual launcher and SE widgets(Download here)
2. Terminal emulator(free from market)
3. Executable script to modify build.prop(Download here)
INSTRUCTIONS
1. Make sure that the executable script(AKA "build") is placed in the root(meaning the base) of your SD card.
2. Using terminal emulator, input this command.(press enter after each line)
Code:
su
sh /sdcard/build
--this should change your build's manufacturer from LGE to Sony Ericsson--
--if an error appears, take note of the error message and post it here--
3. Reboot to recovey and flash SE_timescape.zip
4. Enjoy!!!!!
Click to expand...
Click to collapse
Instead, manually change your build.prop by changing this line:
ro.product.manufacturer=LGE
Click to expand...
Click to collapse
into this:
ro.product.manufacturer=Sony Ericsson
Click to expand...
Click to collapse
or you could follow this thread specifically for optimus S:
androidcentral.com courtesy of captmeach7
ungaze said:
yes but don't do the steps in RED
Instead, manually change your build.prop by changing this line:
into this:
or you could follow this thread specifically for optimus S:
androidcentral.com courtesy of captmeach7
Click to expand...
Click to collapse
So do I just flash the zip?
Where do I change the build.prop at? And will the SE widgets work?

[Tutorial][VIDEO] Add/integrate apps into Settings app!

Hello!
I wanted to make this little tutorial since many people wounder how to add certain apps to settings app
On XDA Portal
Things you will need
Apktool: http://forum.xda-developers.com/showthread.php?t=1755243
Notepad++: http://notepad-plus-plus.org/download/v6.3.2.html
Video tutorial http://www.youtube.com/watch?v=75ZzDs3seqw
Check out my YouTube channel for more videos
The procedure
1: Download and extract apktool into a folder
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2: Extract Settings.apk and framework-res.apk from your ROM to the apktool folder
3: Open up cmd and go to the APKtool folder
4: Install the framework
5: Put the app you want to add in the apktool folder then decompile Settings and the app
6: Open the settings folder and navigate to /res/values and open Strings.xml with notepad++
7: Add the name of the app furthest down
8: Navigate to /res/xml and open settings_headers.xml
9: Add this
Code:
<header android:icon="@drawable/..." android:title="@string/...">
<intent android:targetPackage="..." android:action="android.intent.action.MAIN" android:targetClass="..." />
</header>
10: navigate to the decompile app you want to add and open androidmanifest.xml
11: Copy the name at the top
12: Then paste here
13: Hold on your screen and select shortcuts
14: Choose activities
15: Scrool to the app and then press it
16: Enter what you found there here
18: Choose a name for the icon you will be using
19: Go to the app you will be adding and navigate to /res/drawable-****
20: Copy the icon to Settings/res/drawable-**** and rename it to what you put in the XML file
21: And now lets build it
22: When the building is done navigate to Settings/dist/ and there is you new Settings app
I will add a zip in the attachments, just put the Settings app in /system/app/ folder in the zip then move it to your phone and flash it
EDIT Another way to install the app (with adb):
Code:
adb remount
adb push Settings.apk /system/app/
adb shell chmod 644 /system/app/Settings.apk
adb reboot
EDIT 2: If you get any FCs or errors (app not showing up) after installing try to open up the original Settings.apk and copy AndroidManifest.xml and META-INF folder to /apktool/Settings/build/apk/ then build again (repeat every time you build)
very nice tutorial, for which roms will this work? stock, cmXX
i have a LG L9, with stock jelly bean rom. will this work for me?
mcmaster81 said:
very nice tutorial, for which roms will this work? stock, cmXX
i have a LG L9, with stock jelly bean rom. will this work for me?
Click to expand...
Click to collapse
Any rom above 4.0
cool tutorial... thanks, I appreciate it...
I think i will add a video tutorial soon
Tks 4 tuts useful.
Nice tutorial thanks
but i have a error when i complied settings.apk
C:\apktool>apktool b Settings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
could you help me?
sorry for my english
thanks
hecvalve said:
Nice tutorial thanks
but i have a error when i complied settings.apk
C:\apktool>apktool b Settings.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
could you help me?
sorry for my english
thanks
Click to expand...
Click to collapse
Dont have the .apk extension when building. Should look like this apktool b Settings
I will try this later thanks for the guide,
I'm trying to add a TTS setting to a rom which doesn't have a TTS options in the Settings -> language & input. can you tell me what activity should I choose? I cannot open TTS settings from my phone.
alexforsale said:
I will try this later thanks for the guide,
I'm trying to add a TTS setting to a rom which doesn't have a TTS options in the Settings -> language & input. can you tell me what activity should I choose? I cannot open TTS settings from my phone.
Click to expand...
Click to collapse
Actually, i have never used TTS so i dont really know :/
Hey, as said a very good tutorial! Thanks :good:
I compiled the settings apk now and everything worked fine, but when i´m opening it in the Settings.apk, I only see this:
(Yes, I know.. strange name of the app )
Flextrick said:
Hey, as said a very good tutorial! Thanks :good:
I compiled the settings apk now and everything worked fine, but when i open it in the Settings.apk, I only see this:
(Yes, I know.. strange name of the app )
Click to expand...
Click to collapse
As i said, that is probably because of appinventor :/
Skickat från min GT-P1000 via Tapatalk 2
RomWiz said:
Dont have the .apk extension when building. Should look like this apktool b Settings
Click to expand...
Click to collapse
Upps i´m noob sorry.
now i compiled but when i flash my settings.apk ,and reboot i can´t see in my device the settings
thanks
hecvalve said:
Upps i´m noob sorry.
now i compiled but when i flash my settings.apk ,and reboot i can´t see in my device the settings
thanks
Click to expand...
Click to collapse
Send me your apk and i will see if there is something faulty.
Skickat från min GT-P1000 via Tapatalk 2
Do you think that in the future you might be able to create a program or a batch file/script that can automate this? Possibly with a GUI? That would be awesome. But thanks to this wonderful guide of yours! I'm still studying it. I would try it once I find the time.
les02jen17 said:
Do you think that in the future you might be able to create a program or a batch file/script that can automate this? Possibly with a GUI? That would be awesome. But thanks to this wonderful guide of yours! I'm still studying it. I would try it once I find the time.
Click to expand...
Click to collapse
Maby, but i'm not sure if it'll work.
Video is up
i am having troubles with hiding the app from app drawer...could you help?
i removed the intent.launcher line from android manifest but it still isnt working...i mean the app just doesnt get installed ...and if i put it in system/app/ and set perms to rwrr even then it acts as if its not installed...
hsay said:
i am having troubles with hiding the app from app drawer...could you help?
i removed the intent.launcher line from android manifest but it still isnt working...i mean the app just doesnt get installed ...and if i put it in system/app/ and set perms to rwrr even then it acts as if its not installed...
Click to expand...
Click to collapse
Did you sign it?
Skickat från min GT-P1000 via Tapatalk 2
@RomWiz There shouldn't be android:id to add an app... I tried but it's not showing up there Any help?

[MOD][BOOTANIMATION] Google Wallet Loading Dot

This is the loading animation seen in google wallet, and other areas in google play. here's a sample:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Boot animation has black background. For download, see attachments. 'loadingdot_bootanim_flashable.zip' is flashable through TWRP or CWM. I have also attached just the 'bootanimation.zip' (which is NOT flashable) if you'd prefer pushing it to /system/media yourself. Enjoy!
Looks very nice. Simplistic but effective.
player911 said:
Looks very nice. Simplistic but effective.
Click to expand...
Click to collapse
that's what made it attractive to me. with there was a was to set it as the loading spinner in android, but i don't think its possible because android uses one single-frame png and rotates it 360 degrees, rather than playing separate frames of an animated gif (correct me if i'm wrong).
I've stumped myself.
I've tried multiple ways. Flashing the flashable one. Pushing through ADB. Using a root explorer.
Nothing is working for me, it just shows the very old "Android" Silver/Grey boot.
mgear2 said:
I've stumped myself.
I've tried multiple ways. Flashing the flashable one. Pushing through ADB. Using a root explorer.
Nothing is working for me, it just shows the very old "Android" Silver/Grey boot.
Click to expand...
Click to collapse
Hi,
If you use the simple bootanimation.zip, you've ofc to change the owner/group to 0 0 and permissions to 755 (rwxr-xr-x).
Without those modifications, the system will not be able to execute it at boot.
I didn't try the flashable but I guess that the OP added the needed commands to set permissions.
Anyway, the idea is really nice but sadly, the quality is pretty low.
Sweet, that worked!
Thank you!
Here's a working CWM zip with the bootanimation.zip the OP made!
I've included a copy of my updater-script :good:
PHP:
ui_print("Bootanimation.zip");
ui_print("Mounting System...");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
ui_print("Deleting Old Bootanimation...");
delete("/system/media/bootanimation.zip");
ui_print("Copying Files...");
package_extract_dir("system", "/system");
ui_print("Setting Permissions...");
set_perm(0, 0, 0755, 0644, "/system/media/bootanimation.zip");
ui_print("Unmounting System...");
unmount("/system");
ui_print("Installation Complete");
:beer:
Edit: I see you're from Philly OP! GO BIRDS!! NFC EAST CHAMPS!
Xkz said:
Hi,
If you use the simple bootanimation.zip, you've ofc to change the owner/group to 0 0 and permissions to 755 (rwxr-xr-x).
Without those modifications, the system will not be able to execute it at boot.
I didn't try the flashable but I guess that the OP added the needed commands to set permissions.
Anyway, the idea is really nice but sadly, the quality is pretty low.
Click to expand...
Click to collapse
google had the animated gif available at 64x64 and 32x32. i used the 64x64 one but scaled it up to 96x96 (otherwise it looked tiny on the n5's hi-pixel-density screen). if you or someone wants to scale up the 64x64 gif in the OP without pixelation, i'd be happy to make it into a new boot animation.

Quick fonts related question

I have an i9505 running SlimSabre 5.1.1 that I want to get the rosemary font onto system wide. I already have it as a regular font, but I also wanna try getting bold italic and also bold italic working too.
I came across this during a search
the fonts in this link turned out to be faulty http://forum.xda-developers.com/showpost.php?p=36447385&postcount=11
these ones look much better just in case anyone wishes to use them:http://forum.xda-developers.com/showthread.php?t=2517357
it's looks promising, but I want to know is it likely to work ok for me ?
HTML:
ui_print("Super-Android Changing Fonts..!! ");
ui_print("Copying Fonts...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
ui_print("Setting Permission...");
package_extract_dir("system", "/system");
set_perm(0, 0, 0777, "/system/fonts/Roboto-Bold.ttf");
set_perm(0, 0, 0777, "/system/fonts/Roboto-BoldItalic.ttf");
set_perm(0, 0, 0777, "/system/fonts/Roboto-Italic.ttf");
set_perm(0, 0, 0777, "/system/fonts/Roboto-Regular.ttf");
unmount("/system");
ui_print("All done...");
ui_print("Do Hit the Thanks Button :) ...");
I noticed the permissions were different than the current defaults which are
xx_ x__ x__ or 644 and I just wanna check with someone else, even with a nandroid I don't like taking it for granted...
Aren't there any apps you can use to install the font?
GDReaper said:
Aren't there any apps you can use to install the font?
Click to expand...
Click to collapse
yes the ifont app works ok, I'm already using it, but it will only install one font to replace Roboto-Regular.ttf in //system/fonts/
that means apps and the system will still use the original fonts whenever something uses Roboto-Bold, italic or bold italic. I want to swap the those three as well to matching versions of my new font. my cautious nature just wants someone who knows to tell me flashing this will work or another way of overwriting fonts in system/fonts. it doesn't work with my root capable file manager.
Just backup the system partition and flash. If something goes wrong, restore the backup.
It certainly will be faster than waiting for that particular someone.
GDReaper said:
Just backup the system partition and flash. If something goes wrong, restore the backup.
It certainly will be faster than waiting for that particular someone.
Click to expand...
Click to collapse
true !
flashed it and the original files are still there
can anyone suggest a way of getting of getting these fonts into //system/fonts for me ? will I have to build my own zip ?
Delete them manually and copy your fonts there, then give proper permissions?
the system folder is read only. seems a root browser can do nothing in there
Then mount it manually using a terminal emulator with
Code:
mount -o rw,remount /system
Or use TWRP's file manager.
tried in TWRP, operation failed...
will give terminal a go, but do try with a root browser after that command or do I have to do it all in terminal ? I don't speak Linux see !
3mel said:
tried in TWRP, operation failed...
will give terminal a go, but do try with a root browser after that command or do I have to do it all in terminal ? I don't speak Linux see !
Click to expand...
Click to collapse
You use the command and terminal emulator to mount system, then use a root capable file explorer to copy the files. Don't forget to set the permissions.
that didn't work either. my file browser says the copy/overwrite went ok but when I look the file sizes remain as the original ones.
does it look like the command was ok in terminal (I really wouldn't know one way or the other).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3mel said:
that didn't work either. my file browser says the copy/overwrite went ok but when I look the file sizes remain as the original ones.
does it look like the command was ok in terminal (I really wouldn't know one way or the other).
Click to expand...
Click to collapse
You wrote the command wrong.
Try deleting the original files, then copy the modified files.
thank you, that finally got it working for me...
take comfort from the fact that you taught somebody something today :good:

Categories

Resources