Huawei 3G WCDMA Modem SUPPORT - G Tablet Android Development

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.

Related

【rom】u8800pro&u8800-cm7-120202[unoffical]

I do not have enough time, but I will continue.
(i hope you can understand my bad english)
Features
working: sensor / GPS / backlight / Bluetooth / 3D display /audio /RIL signal / WIFI / wifi hotspot / Camera / USB tether / Video
u8800pro not working: FM / TV-OUT
Issue: play music with speaker the sound is lots of hums and noises
Credits: Dzo, stockwell, NForce25, Genokolar, CM
Installation
To install, first make sure you have a recovery image.
On first install you should really wipe your data partition, so backup all your apps using titanium backup.
Put the zip fille on the sdcard of the phone
switch off the phone
Boot into recovery by pressing power and volume up and keeping them pressed until the recovery menu appears
Select "install zip from sdcard" by pressing volume up/down and then pressing power.
Select "choose zip from dcard"
Select the file you downloaded
Confirm
Wait until it finishes
Press back until you get to the main menu, select "reboot system now"
CHANGELOG
02-03-2012
the fixed Phone.apk(you need this one better than old version)
02-02-2012
CM a lot of updates,e.g: ICS rotation animations
Calander not need account
fix bug
07-01-2012
fix Video Recording
use CM libaudio
23-11-2011
change autorun.iso 's path (cust partition)
fix&update enhanced scripts
Raise in-call volume
CM7 add T9 dialer
other mod
25-11-2011
update to use 35 kernel
fix sim not ready,data connect can't work
fix compass issue
fix in-call volume
DOWNLOAD
https://sourceforge.net/projects/genoandroid/files
SOURCES
https://github.com/Victor-android
{
"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"
}
I've got RIL signal working on mine. PM me
Is this really different from the normal X5 so u have to rebuild this rom?
Sorry im a little noob about these things.
You can't imagine how different it is
diferent cpu, diferent chipset.
Sent from my ragelis
Download
Where can i download it?
Odinforce said:
Where can i download it?
Click to expand...
Click to collapse
Not released. you need waiting
genokolar said:
working: * sensor / GPS / backlight / Bluetooth / 3D display /audio /RIL signal / WIFI / wifi hotspot /
not working: Camera / FM / USB tether / Video
* have issue
big bug: The phone never enters Deep Sleep
Available to everyone for debugging:http://www.mediafire.com/?rpk2jci32u5aahn
SOURCES
https://github.com/Victor-android
Click to expand...
Click to collapse
I'm trying to install it via CWM but it keeps giving me an error.
Sent from my U8800Pro using XDA App
Unpack update.zip, open META-INF/com/google/android/updater-script and replace all "u8800pro" occurences to "u8800". Then pack those files again, and it will flash just fine
Flashed CM7
NForce25 said:
Unpack update.zip, open META-INF/com/google/android/updater-script and replace all "u8800pro" occurences to "u8800". Then pack those files again, and it will flash just fine
Click to expand...
Click to collapse
OK i followed the instructions, flashed it, but now it is stuck in a loop at the CM7 welcome screen.
Done, i just forgot to wipe cache / data partition; thanks Genokolar you're the man, Nforce25 thanks.
Is there any chance to have it all in English?
Odinforce said:
OK i followed the instructions, flashed it, but now it is stuck in a loop at the CM7 welcome screen.
Done, i just forgot to wipe chache / data partition; thanks Genokolar you're the man, Nforce25 thanks.
Is there any chance to have it all in English?
Click to expand...
Click to collapse
There is english in it. Just change it in settings. If you can't find it - you can change it in /system/build.prop too.
You can also change it via adb:
Code:
[email protected] ~ $ adb shell
# setprop ro.product.locale.region US
# setprop ro.product.locale.language en
I have a U8800-51 (AT&T Impulse 4G) and been trying to get various U8800 ROMs to work. I changed the update-script from "u8800pro" to "u8800" and voila this ROM loads! Now I know the -51 isn't a PRO model, but for whatever reason anything PRO related works on this device. I previously had no luck with any U8800 CWM images and loaded the PRO version (worked).
I'm hoping this helps get a legit U8800-51/Impulse image going.
Anyone know why PRO-related stuff works when hardware is MM7x30-based?
InstigatorX said:
I have a U8800-51 (AT&T Impulse 4G) and been trying to get various U8800 ROMs to work. I changed the update-script from "u8800pro" to "u8800" and voila this ROM loads! Now I know the -51 isn't a PRO model, but for whatever reason anything PRO related works on this device. I previously had no luck with any U8800 CWM images and loaded the PRO version (worked).
I'm hoping this helps get a legit U8800-51/Impulse image going.
Anyone know why PRO-related stuff works when hardware is MM7x30-based?
Click to expand...
Click to collapse
What hardware is working for you on this one?
AT&T Impulse 4G (U8800-51). I took the boot.img from this ROM and put into Oxygen ROM and now it boots just fine. However, it reboots after a couple minutes.
It's because of the rmt_storage binary. Why didn't you try this ROM?
I think there's some confusion...
Your U8800PRO (from this thread) works when I change the update-script to install on "u8800" and not "u8800pro". Very cool.
For grins I tried to take your boot.img (from U8800PRO ROM) and put into Oxygen ROM.
Yeah, U8800Pro also boots oxygen and miui with boot.img from this ROM. But how about hardware of your phone with this ROM? Does 2g/3g work? Does bluetooth work? Does wifi work? Does audio work?
Impulse
According to several sites, including Huawei Product description, your phone has the same specs as the U8800, therefore it cannot be the Pro, check wether you have the impulse or the Pro.
Impulse: 800 MHz Scorpion processor, Adreno 205 GPU, Qualcomm MSM 7230 chipset
U8800Pro:1 GHz processor, Adreno 205 GPU, Qualcomm MSM8255 chipset
I agree 100% with what you're saying. That's my point. Seriously...no other U8800 ROM works (that I've found). This ROM does. There's something about the AT&T version of the U8800 that prevents them from working. On the back of the phone it says...
Model: U8800-51
H/W: Ver.C
This model seems to have everyone confused as to what it actually is. It also has an FM radio in it (verified and working on std AT&T ROM), whereas the standard U8800 does not. Seems like it is a hybrid.
Oh so the Impulse 4g has a 800MHz processor? I had thought that it was more similar to the pro model.
So here is the breakdown of models from what I understand:
U8800 - MSM7630 800MHz, WCN1312 WIFI chip, 7.6Mbps HSDPA
U8800h - MSM7630 800MHz, WCN1312 WIFI chip, 14.4Mbps HSPA+
U8800-51/Impulse4g - MSM7630 800MHz, BCM4329 WIFI chip, 14.4Mbps HSPA+
U8800+/PRO - MSM8255 1GHz, BCM4329 WIFI, 14.4Mbps HSPA+
With the kernel source for the U8800-51 I don't think it would take much to get the U8800 roms working on it.. since it's the same chipset and everything I would think only wifi/bt/fm code/modules (in the kernel and rom) would need to be changed. There's probably some other changes in the kernel which are preventing the U8800 kernels from working too.

[GUIDE] LinuxonAndroid on the Galaxy S III i9300 -UPDATED

First and formost: I am not the original creator of this work and I am only offering my method of getting this to work with your Galaxy S III. I had some issues which I worked out myself and with a little help from the official support from LinuxonAndroid.
All credits go to the original creators of this work, Android on Linux:
Official website
XDA page
Complete Android on Linux app via Google Play
There are two main methods of getting the required files. One is via the App, the other is from the website. There is a third option of building your own image, detailed in the app, but I had problems with rootstock and qemu so I can't verify it works. Also, rootstock has been depreciated and isn't in the official repositories any more.
Currently, I find the LXDE version to be quite smooth with a Swapfile on. There is also no Audio output.
You WILL need:
Install the app listed above from Google Play.
Also, download Android Terminal Emulator if you don't already have that installed and android-vnc-viewer.
You will also need something like Root Explorer or ES File Explorer. ES is great and free. I recommend that.
The Guide:
Follow the instructions in the app. Download your chosen image and extract it somewhere on your phone's internal SD card. A Folder called Ubuntu might be best You can also use the above website links and get them yourself form SourceForge or BitTorrent.
Now open up your file explorer and navigate to /data/data/com.zpwebsites.linuxonandroid/files/ Inside you should see a file called "bootscript.sh". You can either delete it and replace it with the modified file I provided or you can make the following changes:
Find:
Code:
###########################################
# Checks if you have a external sdcard #
# and mounts it if you do #
###########################################
if [ -d /sdcard/external_sd ]; then
$bbox mount -o bind /sdcard/external_sd $mnt/external_sd
fi
Add Under:
Code:
if [ -d /mnt/extSdCard ]; then
$bbox mount -o bind /mnt/extSdCard $mnt/external_sd
fi
Save or overwrite that file and move onto the next step. This may be incorporated into the next bootscript update, it may not. Make sure you check for this!
Ok, we should now be ready to first boot. Open the Complete Linux On Android app and navigate to "Launch". Point the laucnh page towards the palce you stored the iamge, also hit "Configure Linux" and tick the Swap File option. VERY important to do that. You can click the button that says "Boot" and the Android Terminal Emulator should open up and proceed to boot!
You may get an error here but it should continue normally and won't be a problem. You will be asked for your resolution and Unix password. The Password will be your LINUX password to authorise root access as normal. The resolution you should set is 1280x720 to match the resolution of our Galaxy S III displays.
You should get a read out like this when all is done and successful:
{
"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"
}
Now we can move into the last step, getting to the desktop!
Open up the AndroidVNC app from the app drawer (if you didn't install that already do so now, the links are above).
Enter whatever you like for the Nickname. Ubuntu would be a good one, or you can just leave it blank.
Enter "localhost" without the quotes as the Address.
Enter "ubuntu" without the quotes as the Password.
Leave the Port as 5900
Hit connect!
You should now see something like this:
​
Touch Input seems to be the best input method for AndroidVNC.
Lots of information and support can be found via the app and the official Android On Linux website!
​
Things you could do:
Use a USB dock, Mouse and Keyboard + HDMI to enable this into a full desktop!
Download a VNC program for your PC and connect over Wi-Fi to remotely control your install
Donate
You should buy the donate version of the app on Google Play store to unlock beta features and support the devs! It comes in a few flavours, £1, £2 etc. All donations receive the features! Support these guys!
Phone Fund
Help these guys get more devices to port this over to, like our GS3, then we can expect more features!
http://www.indiegogo.com/Linuxonandroid
Thanks:
Thanks to Zack and Tuxling for getting this off the ground and creating the images and app!
Thanks to Francis Is Bacon, Zack and Brouche on the Linux on Android IRC for their help getting this running
Updated!
Yeah, now i can build cm10 kangs at cinema with my sgs3
Thanks, maybe i will test it later
how could I miss this? :crying:
going to test this, thanks!
Use a USB dock, Mouse and Keyboard + HDMI to enable this into a full desktop!
I've been looking for whole forum to see it it's possible, and it's not possible yet, you must choose if you use de OTG or MHL. We're still waiting for some kernel developers solve this issue.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Ahh, maybe Bluetooth, then?
Kryten2k35 said:
Ahh, maybe Bluetooth, then?
Click to expand...
Click to collapse
Yes, this would be another option but i'm not sure if you can connect a bluetooh mouse and keyboard... Hope samsung or anybody else fix the problem with mhl connector
topfreitas said:
Use a USB dock, Mouse and Keyboard + HDMI to enable this into a full desktop!
I've been looking for whole forum to see it it's possible, and it's not possible yet, you must choose if you use de OTG or MHL. We're still waiting for some kernel developers solve this issue.
Click to expand...
Click to collapse
Working great with a BT keyboard with integrated trackball and hdmi for the display.
I'm using the keysonic ksk-3201 BT
My trouble now is that the tv out is not working with cyanogenmod.
I think need to get back to stock i9100 rom but the power needed by ubuntu/gnome need a faster rom.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
So when you say to add the code in the boot script am I just pasting the /extsdcard add on or removing what you have above it as well?
Sent from my GT-I9300
CreekDirt said:
So when you say to add the code in the boot script am I just pasting the /extsdcard add on or removing what you have above it as well?
Sent from my GT-I9300
Click to expand...
Click to collapse
Hi mate,
You can remove what they have there or add it as well. I'll clean up the OP now to make this clearer.
Add this:
Code:
if [ -d /mnt/extSdCard ]; then
$bbox mount -o bind /mnt/extSdCard $mnt/external_sd
fi
UNDER:
Code:
###########################################
# Checks if you have a external sdcard #
# and mounts it if you do #
###########################################
if [ -d /sdcard/external_sd ]; then
$bbox mount -o bind /sdcard/external_sd $mnt/external_sd
fi
PUT HERE
REST OF STATEMENTS ARE HERE
You can also just get rid of all the other statements if you want since none of them are specific to the GS3.
I will try later. Thanks for the guide.
Enviado do meu GT-I9300

[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.

[Tool] MiPatcher ( MIUI Porting )

{
"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.

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