[WIP][DEV]Trib's Sense 4.1 for HD2[ICS 4.0.4][Apr.28th.2013] - HD2 Android NAND Development

The Why:
Well, someone asked for it in the HD2 General boards.
I'm gonna need your guys help with this one.
And maybe, this could be a community project.
Help and Q & A Section:
http://forum.xda-developers.com/showthread.php?t=2260070
Flash.cfg | Installation:
10/405/7 - Tmo
10/260/7 - EU
v0.9c may need you to use the recovery-raw img below to install the Rom as it has a choice of EU and TmoUS.
But Since it does not have clK support several Devs have collaberated in hopes to create a nice Aroma Interface.
It is not yet installed on the current build of 0.9c. Thank you.
Recommended to use this recovery until I get an aroma installer going that'll work for everyone:
http://forum.xda-developers.com/attachment.php?attachmentid=1925031&d=1367338890
Download:
Version 0.9c is current beta.
https://drive.google.com/folderview?id=0B_INq6-kUQ8VTnFXcVJ3ZUg5TTQ&usp=sharing
Working:
Data (Set apn with apk aleady in Rom)
MMS
SMS
Cell Service
WiFi
Camera
Touch
Audio
Root
USB Mass Storage via UMS
Extended Menu
Native Screenshot via Ext. Menu
Not Working:
Bluetooth
Weather
Video Recording
What I'd like to work on:
Bluetooth
Graphics
Thanks:
Big thanks to Greeneyes2910, croniccorey, Amarullz, ph03n!x, Ljjehl, the (Legendary) Daekin, PixelFreak and of course all who help in the future.
ScreenShots:

Yeah, hope the devs help you and we her a fast and stable Working Rom for us legendary hd2
Sent from my HTC One using xda app-developers app

It will be better to select SystemOnExt in order to have an EU version with very good speed and response.....

for wifi have you tried gilbert solution?
gilbert32 said:
F*** YEAH!!!!
flash tytung's kernel from here: https://code.google.com/p/nexus-hd2/downloads/list?q=label:ICS+label:Kernel+label:HWA
push the file included in this archive to /system/etc/firmware: http://forum.xda-developers.com/attachment.php?attachmentid=841847&d=1325675485
push the file included in this archive to /system/lib/modules: http://forum.xda-developers.com/attachment.php?attachmentid=1899838&d=1366545251
if it doesn't work, try this in adb shell:
chmod 644 /system/lib/modules/bcm4329.ko
chmod 644 /system/etc/firmware/fw_bcm4329.bin
reboot
if it still doesn't work, this should start wifi:
insmod /system/lib/modules/bcm4329.ko iface_name=wlan0 firmware_path=/system/etc/firmware/fw_bcm4329.bin nvram_path=/proc/calibration
-pixelfreak-: sorry, i got wifi covered before you
Click to expand...
Click to collapse

xzakly said:
for wifi have you tried gilbert solution?
Click to expand...
Click to collapse
Nice find. Thanks. I'll try right now.
Can you link me to where that is from?

Tribulattifather said:
Nice find. Thanks. I'll try right now.
Can you link me to where that is from?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2239844&page=8

Tribulattifather said:
Nice find. Thanks. I'll try right now.
Can you link me to where that is from?
Click to expand...
Click to collapse
and for symlinking
have you tried something like:
package_extract_dir("data/weather", "/sd-ext/sys-parts/weather");
set_perm_recursive(1000, 1000, 0771, 0644, "/sd-ext/sys-parts/weather");
symlink("/sd-ext/sys-parts/weather", "/system/media/weather");
?
and this build is only compatible with magldr?

Right now I have:
Code:
ui_print("..Extracting new User Data..");
package_extract_dir("data", "/data");
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
symlink("/data/system.app", "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.app");
symlink("/data/system.usr", "/system/usr");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.usr");
symlink("/data/system.fonts", "/system/fonts");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.fonts");
symlink("/data/system.media", "/system/media");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.media");
ui_print("");
I have tried this (but didn't work for me):
Code:
ui_print("..Extracting new User Data..");
package_extract_dir("data", "/data");
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
run_program("/sbin/mkdir", "/sd-ext");
run_program("/sbin/mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
run_program("/sbin/mkdir", "/sd-ext/sys-parts/app");
run_program("/sbin/mkdir", "/sd-ext/sys-parts/usr");
run_program("/sbin/mkdir", "/sd-ext/sys-parts/fonts");
run_program("/sbin/mkdir", "/sd-ext/sys-parts/media");
package_extract_dir("data/system.app", "/sd-ext/sys-parts/app");
package_extract_dir("data/system.usr", "/sd-ext/sys-parts/usr");
package_extract_dir("data/system.fonts", "/sd-ext/sys-parts/fonts");
package_extract_dir("data/system.media", "/sd-ext/sys-parts/media");
symlink("/sd-ext/sys-parts/app", "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/sys-parts/app");
symlink("/sd-ext/sys-parts/usr", "/system/usr");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/sys-parts/usr");
symlink("/sd-ext/sys-parts/fonts", "/system/fonts");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/sys-parts/fonts");
symlink("/sd-ext/sys-parts/media", "/system/media");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/sys-parts/media");
ui_print("");
Did I not symlink correctly?
And yeah, for now, it's for Mgldr..

Tribulattifather said:
Right now I have:
Code:
ui_print("..Extracting new User Data..");
package_extract_dir("data", "/data");
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
symlink("/data/system.app", "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.app");
symlink("/data/system.usr", "/system/usr");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.usr");
symlink("/data/system.fonts", "/system/fonts");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.fonts");
symlink("/data/system.media", "/system/media");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.media");
ui_print("");
I have tried this (but didn't work for me):
Code:
ui_print("..Extracting new User Data..");
package_extract_dir("data", "/data");
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
run_program("/sbin/mkdir", "/sd-ext");
run_program("/sbin/mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
run_program("/sbin/mkdir", "/sd-ext/sys-parts/app");
run_program("/sbin/mkdir", "/sd-ext/sys-parts/usr");
run_program("/sbin/mkdir", "/sd-ext/sys-parts/fonts");
run_program("/sbin/mkdir", "/sd-ext/sys-parts/media");
package_extract_dir("data/system.app", "/sd-ext/sys-parts/app");
package_extract_dir("data/system.usr", "/sd-ext/sys-parts/usr");
package_extract_dir("data/system.fonts", "/sd-ext/sys-parts/fonts");
package_extract_dir("data/system.media", "/sd-ext/sys-parts/media");
symlink("/sd-ext/sys-parts/app", "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/sys-parts/app");
symlink("/sd-ext/sys-parts/usr", "/system/usr");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/sys-parts/usr");
symlink("/sd-ext/sys-parts/fonts", "/system/fonts");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/sys-parts/fonts");
symlink("/sd-ext/sys-parts/media", "/system/media");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/sys-parts/media");
ui_print("");
Did I not symlink correctly?
And yeah, for now, it's for Mgldr..
Click to expand...
Click to collapse
i think they are but the ext partition is mounting on system boot up?
" package_extract_dir("data", "/data"); "
you need to change that line to
" package_extract_dir("data/local", "/data"); "

xzakly said:
i think they are but the ext partition is mounting on system boot up?
" package_extract_dir("data", "/data"); "
you need to delete this line or else you'll be extracting all the files you want to move to ext into data
Click to expand...
Click to collapse
Oh duh, hahaha. Thank you.
Also, my dropbox just got randomly suspended.. What other hosts can I use that allow me a folder view?

Tribulattifather said:
Oh duh, hahaha. Thank you.
Also, my dropbox just got randomly suspended.. What other hosts can I use that allow me a folder view?
Click to expand...
Click to collapse
That's probably due to many downloads..
i don't know but http://d-h.st/ is a good host at least for speed
you can also try google drive
by the way i edited my last comment

xzakly said:
That's probably due to many downloads..
i don't know but http://d-h.st/ is a good host at least for speed
you can also try google drive
by the way i edited my last comment
Click to expand...
Click to collapse
I actually use dev-host and goo.im for my other devices as to not overload servers etc. I'll try google drive. Ty again.
Plus, i've read all 29 pages of that thread you linked me and gave me some ideas. So gonna try some tests.

Tribulattifather said:
Right now I have:
Code:
ui_print("..Extracting new User Data..");
package_extract_dir("data", "/data");
set_perm(2000, 2000, 0771, "/data/local");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
package_extract_dir("system", "/system");
symlink("/data/system.app", "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.app");
symlink("/data/system.usr", "/system/usr");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.usr");
symlink("/data/system.fonts", "/system/fonts");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.fonts");
symlink("/data/system.media", "/system/media");
set_perm_recursive(0, 0, 0755, 0644, "/data/system.media");
ui_print("");
with this code you don't have any package_extract for the ext partition
Click to expand...
Click to collapse

xzakly said:
with this code you don't have any package_extract for the ext partition
Click to expand...
Click to collapse
Yeah. It's an all nand atm until I situate the sd-ext symlinks..
Also, Im uploading to Google Drive now. Still the same one. Haven't had any breakthroughs yet.

Tribulattifather said:
Yeah. It's an all nand atm until I situate the sd-ext symlinks..
Click to expand...
Click to collapse
you'll need to mount sd-ext when system boots, you'll need a script in init.d for that

Tribulattifather said:
The Why:
Well, someone asked for it in the HD2 General boards.
I'm gonna need your guys help with this one.
And maybe, this could be a community project.
Download:
https://www.dropbox.com/sh/x2kpjbmwtns1gca/7i74QaCD3A
Flash configurations in link.
Working:
Camera
Touch
Audio
Root
USB Mass Storage via UMS
Extended Menu
Native Screenshot via Ext. Menu
Not Working:
Wifi
Bluetooth
Data
Dialer
EGL glitches
What I'd like to work on:
Symlinking to Sd-ext
Wifi
Thanks:
Big thanks to Greeneyes2910, Ljjehl and all who help in the future.
ScreenShots:
Click to expand...
Click to collapse
Great thanks.Maybe you could chat with zexmunze http://forum.xda-developers.com/showthread.php?p=40803744
sent from my HTC HD2 using xda premium

Okay. I got the WiFi to work. And I think the data/ cell service, too. But I lost the graphics in doing that somehow.
If I can't figure out the graphics i'll upload anyhow in about an hour.

Tribulattifather said:
Okay. I got the WiFi to work. And I think the data/ cell service, too. But I lost the graphics in doing that somehow.
If I can't figure out the graphics i'll upload anyhow in about an hour.
Click to expand...
Click to collapse
hey man,is this only for T-mobile hd2?And how much system,cache,please update in the first post

fengsam said:
hey man,is this only for T-mobile hd2?And how much system,cache,please update in the first post
Click to expand...
Click to collapse
Right now it's for the TmoHD2, which is what I have, until someone can help me convert the updater-script so it symlinks to the sd-ext.
10/405/7 though.

Will try your rom :good:
I'm porting viper rom sense 4.1 but get stuck with permission error . Hope sense 4.1 comes to HD2 soon

Related

Creating an update zip

Hi am trying to create an update sip for my theme but everytime i try to flash it says syntax error in update script. This is my code can anyone help me.
show_progress(0.500000, 0);
mount("MTD", "data", "/data");
package_extract_dir("data", "/data");
unmount("/data");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, 0644, "/system/framework/framework-res.apk");
set_perm(0, 0, 0755, 0644, "/system/app/Launcher2.apk");
show_progress(0.100000, 0);
unmount("/system");

[CWM3 SCRIPT] Simple Clean'n'Fix "update.zip" -> 1.0b (17 Jan 2011)

Hi all, just 250kb of contribution for community...
What's that sh*t ?!!
Just an Edify update.zip compatible CWM3 (and 2.x), based on Doc's Rom And Darkyy's installers scripts, and that's all !
Does it install something ?
Negative. Just scripting's magic !
What does it do ?
Clear cache
Clear dalvik cache (So first reboot after = 4-8 minutes)
Clearing media databases
Fix permissions
In one operation !
But when this could be useful ??
Using multiple No Wipe Roms per month ^^
Switching between differents themes
Errors with media scanner / Really big and old databases / FCs
Manual modding of system's apk / files without caring of their permissions
Too much Geeking ! =)
Does it will boost my Quadrant Score to 3 000 000 ?
Aim of that update-script is just restoring originals permissions and clearing media db, just the minimum when you done some big changes in /system or when you experiment media scanner errors or weird things (FC...)... If issue is not related to it (bad theme, not signed apk...) it can't do anything else for you !
And that's all ! =) But if your device is buggy, you can try that before reflashing an entire /system...
---------------------
Here is updater-script content :
Code:
ui_print(" ");
ui_print("WiwiPouPou - Clean'n'Fix");
ui_print("Based on Doc's Rom And Darkyy's Installers scripts");
ui_print(" ");
ui_print("Mounting...");
mount("MTD", "cache", "/cache");
mount("MTD", "data", "/data");
mount("MTD", "system", "/system");
mount("MTD", "dbdata", "/dbdata");
delete_recursive("/cache");
ui_print("Clearing dalvik-cache");
delete_recursive("/data/dalvik-cache");
ui_print("Clearing media databases");
delete_recursive ("/dbdata/databases/com.android.providers.media");
delete_recursive ("/dbdata/databases/com.cooliris.media");
show_progress(0.100000, 10);
ui_print("Repairing Permissions");
ui_print(" ");
set_perm_recursive(0, 0, 0755, 0644, "system");
set_perm_recursive(0, 2000, 0755, 0755, "system/bin");
set_perm_recursive(0, 0, 0755, 0755, "system/etc");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm_recursive(1002, 1002, 0755, 0440, "system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0777, 0777, "system/etc/init.d");
set_perm(0, 0, 04755, "/system/xbin/su");
set_perm(0, 0, 04755, "/system/xbin/busybox");
run_program("scripts/db");
set_perm(1000, 1010, 0771, "/data/app");
show_progress(1.000000, 0);
show_progress(0.100000, 60);
show_progress(0.100000, 10);
show_progress(1.000000, 0);
unmount("/data");
unmount("/system");
unmount("/dbdata");
unmount("/cache");
ui_print("Finish !");
If it can be useful, and better if someone wants to enhance it... tell me !
I plan to add some others separates cleans scripts, to use when device stuck after boot (bad framework-res.apk, bad init.d script...), good when you don't have a PC with adb close to you...
I say 1.0b cause i've tested it on my i9000 only...
So do a backup before, it's always good !
-------
Added Media databases clear only / Permissions Repair only update.zips for separates process (Does not delete caches - you can do it with CWM)
*Sorry for English
dunno if is safe to run a fix permission in that script.
read here http://android.modaco.com/content/zte-blade-blade-modaco-com/327756/fix-permissions/
Thanks a lot!
Thanks for this script, how about adding symlinks and toolbox commands too?
corgar said:
dunno if is safe to run a fix permission in that script.
read here http://android.modaco.com/content/zte-blade-blade-modaco-com/327756/fix-permissions/
Click to expand...
Click to collapse
Yes i've seen that before, but here it's not CWM script, it's based on Doc's permissions fix, so it just restore originals permissions ! Like if you had just installing a nowipe rom (But it don't install files) !
g00ndu said:
Thanks for this script, how about adding symlinks and toolbox commands too?
Click to expand...
Click to collapse
I'll do a version with ! but i'm not sure it's always same symlinks and toolbox commands in all differents roms and busybox versions... That's why i've removed them from original script ! Just in case, for now !
Does this work with CMW2?
EarlZ said:
Does this work with CMW2?
Click to expand...
Click to collapse
Yes Edify scripting (Using by CWM 3) is compatible with olds versions !
CWM 3 uses ONLY Edify, that's why we need to use it with !
So, YES !
Great, will be using this from now on instead of manually doing things also you forgot 1 important thing, clearing the battery stats.. altho I understand it does absolutely NOTHING to the battery life its one of those things a OC-flasher does on a regular basis!
EarlZ said:
Great, will be using this from now on instead of manually doing things also you forgot 1 important thing, clearing the battery stats.. altho I understand it does absolutely NOTHING to the battery life its one of those things a OC-flasher does on a regular basis!
Click to expand...
Click to collapse
Yes i was thinking about adding it, but you can do it with CWM and it's recommended to do it when batt is full, so... i let people choose !
WiwiPouPou said:
Yes i was thinking about adding it, but you can do it with CWM and it's recommended to do it when batt is full, so... i let people choose !
Click to expand...
Click to collapse
Battery stats has nothing to do with your battery meter, its just a file that contains the history and break down of what you've used your battery for. Its a log file. Theres been a huge misconception about this.
EarlZ said:
Battery stats has nothing to do with your battery meter, its just a file that contains the history and break down of what you've used your battery for. Its a log file. Theres been a huge misconception about this.
Click to expand...
Click to collapse
Thanks a lot for this !
After applying this script i have all the app UNLINKED from market!
How to resolve this issue?
thx
x86-Dark said:
After applying this script i have all the app UNLINKED from market!
How to resolve this issue?
thx
Click to expand...
Click to collapse
it's a 2.2.1 bug.
just go in settings -> manage apps -> select all apps
market -> clear market data
restart market
Can u write what program/tools you use to make update-binary and updater-script?
Thanks for sharing, OP - I think this will be handy one day.

Help to recompile an update-script

Hi Guys!
Can anyone help me to recompile this script
Code:
delete_recursive("/system/app");
delete_recursive("/system/framework");
package_extract_dir("system", "/system");
set_perm(0, 0, 04755, "/system/xbin/sqlite3");
set_perm(0, 0, 04755, "/system/xbin/su");
set_perm(0, 0, 04755, "/system/xbin/sh");
set_perm(0, 0, 04755, "/system/xbin/busybox");
adding to this (from simplestas) in one script:
Code:
show_progress(0.600000, 3);
package_extract_dir("system", "/system");
set_perm(0, 0, 0777, "/system/bin/pvrsrvinit");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0777, "/system/bootmenu/2nd-init");
delete_recursive("/data/data/com.motorola.Camera");
delete("/system/app/BlurCamera.odex");
show_progress(0.300000, 2);
assert(package_extract_file("CG35.smg", "/tmp/CG35.smg"),
write_raw_image("/tmp/CG35.smg", "/dev/block/mmcblk1p15"),
delete("/tmp/CG35.smg"));
assert(package_extract_file("CG61.smg", "/tmp/CG61.smg"),
write_raw_image("/tmp/CG61.smg", "/dev/block/mmcblk1p12"),
delete("/tmp/CG61.smg"));
show_progress(0.100000, 0);
thanks for any advice!

[Q] Error (level 6) by installing my port from MyTouch 4g

Hello!
i am developing a Port from a HTC MyTouch 4g custom ROM. I have copied some Files from MyTouch ROM to that ROM using araxis merge.
Then i have copied /system/framework to /data/framework_s and the following apps from /system/app to /sd-ext/app_s:
Code:
Carrera.apk
Downtown.apk
Graffiti.apk
HTCSetupWizard.apk
install_flash_player.apk
Quickoffice.apk
RedRocks.apk
Ruby.apk
Swype.apk
teeter.apk
TwonkyMobile_T-Mobile.apk
Vending.apk
VSuiteApp.apk
Wildflower.apk
Then i edited updater-script:
Code:
# Script Version: 0.9
show_progress(0.999999, 99);
ui_print(" ");
ui_print("-installing t ROM touch 0.0.2");
ui_print("-Recommended Partition Layout");
ui_print("-Fat32+Ext4");
ui_print(" ");
ui_print("-Installing DATA Partition...");
unmount("/data");
mount("MTD","userdata","/data");
delete_recursive("/data/dalvik-cache");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/local");
set_perm_recursive(0, 0, 0755, 0644, "/data/framework_s");
ui_print(" ");
ui_print("-Installing SDEXT Partition...");
unmount("/sd-ext");
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
delete_recursive("/sd-ext/app_s");
delete_recursive("/sd-ext/framework_s");
delete_recursive("/sd-ext/lib_s");
delete_recursive("/sd-ext/dalvik-cache");
package_extract_dir("sd-ext", "/sd-ext");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/app_s");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/lib_s");
ui_print(" ");
ui_print("-Installing SYSTEM Partition...");
unmount("/system");
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
ui_print(" ");
ui_print("-Setting Up SYSTEM Permissions...");
symlink("/sd-ext/lib_s","/system/lib");f
symlink("/sd-ext/app_s","/system/app");
symlink("/data/framework_s","/system/framework");
symlink("/data/hosts","/system/etc/hosts");
symlink("/proc/calibration","/system/etc/calibration");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluz");
set_perm(0, 3003, 0755, "/system/bin/ip");
set_perm(0, 3003, 0755, "/system/bin/ipd");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3003, 06755, "/system/bin/netd");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06755, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 0, 04755, "/system/bin/sysro");
set_perm(0, 0, 04755, "/system/bin/sysrw");
symlink("/system/xbin/busybox","/system/xbin/bb/ifconfig");
symlink("/system/xbin/busybox","/system/xbin/bb/route");
set_perm(0, 0, 04755, "/system/xbin/openvpn");
set_perm(0, 0, 04755, "/system/etc/ppp/ip-up-vpn");
set_perm(0, 0, 04755, "/system/xbin/dropbear");
set_perm(0, 0, 04755, "/system/xbin/flash_image");
symlink("dropbear","/system/xbin/dropbearkey");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
ui_print(" ");
ui_print("-Installing Toolbox & Busybox...");
symlink("toolbox", "/system/bin/chownto", "/system/bin/getevent", "/system/bin/getprop", "/system/bin/ifconfig", "/system/bin/iftop", "/system/bin/ioctl", "/system/bin/log", "/system/bin/nandread", "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/schedtop", "/system/bin/sendevent", "/system/bin/setprop", "/system/bin/smd", "/system/bin/start", "/system/bin/stop", "/system/bin/vmstat", "/system/bin/watchprops", "/system/bin/wipe", "/system/bin/top");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/sbin/sh","-c",
concat("( cd /system/xbin ; ",
" ./busybox --install -s /system/xbin )"));
delete_recursive("/data/data/com.noshufou.android.su");
set_perm(0, 0, 06755, "/system/bin/su");
delete("/system/xbin/su");
symlink("/system/bin/su","/system/xbin/su");
package_extract_dir("sdcard", "/sdcard");
ui_print(" ");
ui_print("-Installing Boot Partition...");
unmount("/boot");
format("MTD", "boot");
package_extract_file("boot.img","/tmp/boot.img");
write_raw_image("/tmp/boot.img", "boot");
delete("/tmp/boot.img");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
ui_print(" ");
ui_print("-Installation Completed");
ui_print("-Reboot and Enjoy");
unmount("/system");
unmount("/data");
unmount("/cache");
unmount("/sd-ext");
show_progress(0.000000, 0);
Now if i install the ROM via CWR, i get the following error:
Code:
Installing: /sdcard/update.zip
finding update package...
Opening update package...
Installing update...
E: error in /sdcard/update.zip (status 6)
installation aborted.
here is my rom:
http://www.multiupload.com/LQ81YXSCN0
Can you tell me, what the error status 6 means and how i can fix it?
It's a syntax/file format error. Can also happen if updater-script does not include a particular command..
TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
Droidzone said:
It's a syntax/file format error. Can also happen if updater-script does not include a particular command..
TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
Click to expand...
Click to collapse
what is a particular command?
Sent from my HTC Desire using xda premium
tischn said:
what is a particular command?
Click to expand...
Click to collapse
and how can i add one?
He just means there may be a command missing from your script. There isnt a type of comand called "Particular command"
rootSU said:
He just means there may be a command missing from your script. There isnt a type of comand called "Particular command"
Click to expand...
Click to collapse
and how can i add a comand called "Particular command"?
very simple.. Compile your own recovery
TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
tischn said:
and how can i add a comand called "Particular command"?
Click to expand...
Click to collapse
There is no command called "particular command"
Reminds me of the time I 'talked' to a bot named A.L.I.C.E
Alice: What's your name, oh kind Sir?
Dz: I don't have a name.
Alice: Ok, I don't have a name, how do you do today?
TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
Droidzone said:
Reminds me of the time I 'talked' to a bot named A.L.I.C.E
Alice: What's your name, oh kind Sir?
Dz: I don't have a name.
Alice: Ok, I don't have a name, how do you do today?
TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
Click to expand...
Click to collapse
hehe. ALICE was shocking. Theres a video somewhere on the net with 2 different robots "talking" to each other.
Droidzone said:
very simple.. Compile your own recovery
TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
Click to expand...
Click to collapse
and how can i compile my own recovery
tischn said:
and how can i compile my own recovery
Click to expand...
Click to collapse
And what do you mean with compile?
Topic unsubscribed
TouchPal-d from my Desire running Supernova Extreme Rom - 450 apps and counting. .
I'm sorry to say, I think you are a long way off where you want to be right now. I think you need to get to know android a bit better for now.
Compiling = compiling source code (or building) to create either a rom or recovery (etc)
You're probably right! Nevertheless, I'll try it because i can learn during this
How much of the script did you update? was it from the original device? Have a look at some of the scripts in roms for our device. Particularly the CM7 hboot versions that ship stuff out to sd-EXT and have a look what they are doing.
I had a look at the updater-script from the cool3d bliss v1a, and had extended the updater-script with some commands that the data on the sd-ext can be used
tischn said:
Hello!
i am developing a Port from a HTC MyTouch 4g custom ROM. I have copied some Files from MyTouch ROM to that ROM using araxis merge.
Then i have copied /system/framework to /data/framework_s and the following apps from /system/app to /sd-ext/app_s:
Code:
Carrera.apk
Downtown.apk
Graffiti.apk
HTCSetupWizard.apk
install_flash_player.apk
Quickoffice.apk
RedRocks.apk
Ruby.apk
Swype.apk
teeter.apk
TwonkyMobile_T-Mobile.apk
Vending.apk
VSuiteApp.apk
Wildflower.apk
Then i edited updater-script:
Code:
# Script Version: 0.9
show_progress(0.999999, 99);
ui_print(" ");
ui_print("-installing t ROM touch 0.0.2");
ui_print("-Recommended Partition Layout");
ui_print("-Fat32+Ext4");
ui_print(" ");
ui_print("-Installing DATA Partition...");
unmount("/data");
mount("MTD","userdata","/data");
delete_recursive("/data/dalvik-cache");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/local");
set_perm_recursive(0, 0, 0755, 0644, "/data/framework_s");
ui_print(" ");
ui_print("-Installing SDEXT Partition...");
unmount("/sd-ext");
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
delete_recursive("/sd-ext/app_s");
delete_recursive("/sd-ext/framework_s");
delete_recursive("/sd-ext/lib_s");
delete_recursive("/sd-ext/dalvik-cache");
package_extract_dir("sd-ext", "/sd-ext");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/app_s");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/lib_s");
ui_print(" ");
ui_print("-Installing SYSTEM Partition...");
unmount("/system");
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
ui_print(" ");
ui_print("-Setting Up SYSTEM Permissions...");
symlink("/sd-ext/lib_s","/system/lib");f
symlink("/sd-ext/app_s","/system/app");
symlink("/data/framework_s","/system/framework");
symlink("/data/hosts","/system/etc/hosts");
symlink("/proc/calibration","/system/etc/calibration");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluz");
set_perm(0, 3003, 0755, "/system/bin/ip");
set_perm(0, 3003, 0755, "/system/bin/ipd");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3003, 06755, "/system/bin/netd");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06755, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 0, 04755, "/system/bin/sysro");
set_perm(0, 0, 04755, "/system/bin/sysrw");
symlink("/system/xbin/busybox","/system/xbin/bb/ifconfig");
symlink("/system/xbin/busybox","/system/xbin/bb/route");
set_perm(0, 0, 04755, "/system/xbin/openvpn");
set_perm(0, 0, 04755, "/system/etc/ppp/ip-up-vpn");
set_perm(0, 0, 04755, "/system/xbin/dropbear");
set_perm(0, 0, 04755, "/system/xbin/flash_image");
symlink("dropbear","/system/xbin/dropbearkey");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
ui_print(" ");
ui_print("-Installing Toolbox & Busybox...");
symlink("toolbox", "/system/bin/chownto", "/system/bin/getevent", "/system/bin/getprop", "/system/bin/ifconfig", "/system/bin/iftop", "/system/bin/ioctl", "/system/bin/log", "/system/bin/nandread", "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/schedtop", "/system/bin/sendevent", "/system/bin/setprop", "/system/bin/smd", "/system/bin/start", "/system/bin/stop", "/system/bin/vmstat", "/system/bin/watchprops", "/system/bin/wipe", "/system/bin/top");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/sbin/sh","-c",
concat("( cd /system/xbin ; ",
" ./busybox --install -s /system/xbin )"));
delete_recursive("/data/data/com.noshufou.android.su");
set_perm(0, 0, 06755, "/system/bin/su");
delete("/system/xbin/su");
symlink("/system/bin/su","/system/xbin/su");
package_extract_dir("sdcard", "/sdcard");
ui_print(" ");
ui_print("-Installing Boot Partition...");
unmount("/boot");
format("MTD", "boot");
package_extract_file("boot.img","/tmp/boot.img");
write_raw_image("/tmp/boot.img", "boot");
delete("/tmp/boot.img");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
ui_print(" ");
ui_print("-Installation Completed");
ui_print("-Reboot and Enjoy");
unmount("/system");
unmount("/data");
unmount("/cache");
unmount("/sd-ext");
show_progress(0.000000, 0);
Now if i install the ROM via CWR, i get the following error:
Code:
Installing: /sdcard/update.zip
finding update package...
Opening update package...
Installing update...
E: error in /sdcard/update.zip (status 6)
installation aborted.
here is my rom:
http://www.multiupload.com/LQ81YXSCN0
Can you tell me, what the error status 6 means and how i can fix it?
Click to expand...
Click to collapse
i read in one thread that you have to use notepad instead of wordpad so you dont get that error!!

Gapps with own apk

Hallo
I have for the last days read and read and try to learn all about this custom rom. but i dont get any smartere at the moment.
I have download a custom rom 4.3 and Gapps for 4.3
1 wipe all
2 flash custom rom
3 Flash gapps
4 boot rom and wait long before all aps from market is install
Now i thouht you can download all the .apk you need and put them into the gapps or custom rom.
first i try this unzip the custom rom put all .apk into system\app but when rom is flash and boot i come to where
i must put my pincode in then break hell lose all program stop working system ui and so on.
Then i thought we try the same with the Gapps instead but same result.....
I Search more on google and found this tool "APK Swapper" where you can add .apk to the rom
and it then can i pack all as .zip and flash it
Now i hought i work fine but no way i get same error.
I try to search more on google but get more confuse because few says that works for me other say no and try to search more but now i am so confuse that i need little help here.
How do i make a Zip or put them into Gapps these .apk i like to have on my rom ?. and then falsh it and all is there....
P.S i have just try this
Unpack the Gapps signed 4.3 and then change in the update-script
ui_print("***********************************************");
ui_print(" Google Apps for Android 4.3.0");
ui_print("***********************************************");
ui_print("Installing files...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
delete("/system/app/Provision.apk","/system/app/textinput-tng.apk","/system/app/DBA.apk","/system/app/DBA.apk","/system/app/Ebay.apk","/system/app/Ebay-Kleinanzeigen.apk","/system/app/Ebay-Widget.apk","/system/app/Entertain-Remote-Control.apk","/system/app/Facebook.apk","/system/app/Firefox.apk","/system/app/Google-Maps.apk","/system/app/GPS-Status.apk","/system/app/HandcentSMS.apk","/system/app/HandcentSMS-Danish-Language.apk","/system/app/HandcentSMS-ink.apk","/system/app/Ingdiba.apk","/system/app/lieferando.apk","/system/app/MailListWidget-K-9.apk","/system/app/NovaLauncher.apk","/system/app/ROM-Manager.apk","/system/app/Paypal.apk","/system/app/Sense-V2.apk","/system/app/Solitar.apk","/system/app/Skype.apk","/system/app/Sparkasse.apk","/system/app/SpeechSynthesis-Data-Installer.apk","/system/app/TeamViewer.apk","/system/app/YouTube.apk","/system/app/XDA-Developers.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk","/system/app/BrowserProviderProxy.apk","/system/app/PartnerBookmarksProvider.apk","/system/app/Gmail2.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Cleaning up...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
Click to expand...
Click to collapse
But all goes fine to flash the rom and gapps but then when it has boot and come to first time to Chose the lanuage
all program start to stop unfornataly has stop ....and i cant come to next step or chose the langugage because it
it just popup with stops and stops. and so on,
mitsucats said:
Hallo
I have for the last days read and read and try to learn all about this custom rom. but i dont get any smartere at the moment.
I have download a custom rom 4.3 and Gapps for 4.3
1 wipe all
2 flash custom rom
3 Flash gapps
4 boot rom and wait long before all aps from market is install
Now i thouht you can download all the .apk you need and put them into the gapps or custom rom.
first i try this unzip the custom rom put all .apk into system\app but when rom is flash and boot i come to where
i must put my pincode in then break hell lose all program stop working system ui and so on.
Then i thought we try the same with the Gapps instead but same result.....
I Search more on google and found this tool "APK Swapper" where you can add .apk to the rom
and it then can i pack all as .zip and flash it
Now i hought i work fine but no way i get same error.
I try to search more on google but get more confuse because few says that works for me other say no and try to search more but now i am so confuse that i need little help here.
How do i make a Zip or put them into Gapps these .apk i like to have on my rom ?. and then falsh it and all is there....
P.S i have just try this
Unpack the Gapps signed 4.3 and then change in the update-script
But all goes fine to flash the rom and gapps but then when it has boot and come to first time to Chose the lanuage
all program start to stop unfornataly has stop ....and i cant come to next step or chose the langugage because it
it just popup with stops and stops. and so on,
Click to expand...
Click to collapse
Try in data/app instead system/app
Add this to the script
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data","/data")
run_program("/sbin/busybox", "umount", "/data");
pascuals said:
Try in data/app instead system/app
Add this to the script
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data","/data")
run_program("/sbin/busybox", "umount", "/data");
Click to expand...
Click to collapse
So something like this
ui_print("**************************************** *******");
ui_print(" Google Apps for Android 4.3.0");
ui_print("**************************************** *******");
ui_print("Installing files...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 51);
package_extract_dir("data","/data")
run_program("/sbin/busybox", "umount", "/data");
delete("/system/app/Provision.apk","/system/app/textinput-tng.apk","/system/app/DBA.apk","/system/app/DBA.apk","/system/app/Ebay.apk","/system/app/Ebay-Kleinanzeigen.apk","/system/app/Ebay-Widget.apk","/system/app/Entertain-Remote-Control.apk","/system/app/Facebook.apk","/system/app/Firefox.apk","/system/app/Google-Maps.apk","/system/app/GPS-Status.apk","/system/app/HandcentSMS.apk","/system/app/HandcentSMS-Danish-Language.apk","/system/app/HandcentSMS-ink.apk","/system/app/Ingdiba.apk","/system/app/lieferando.apk","/system/app/MailListWidget-K-9.apk","/system/app/NovaLauncher.apk","/system/app/ROM-Manager.apk","/system/app/Paypal.apk","/system/app/Sense-V2.apk","/system/app/Solitar.apk","/system/app/Skype.apk","/system/app/Sparkasse.apk","/system/app/SpeechSynthesis-Data-Installer.apk","/system/app/TeamViewer.apk","/system/app/YouTube.apk","/system/app/XDA-Developers.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk","/system/app/BrowserProviderProxy.apk","/system/app/PartnerBookmarksProvider.apk","/system/app/Gmail2.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Cleaning up...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!")
Click to expand...
Click to collapse
And then put all the app in forlder data\app
Noo
Add the 3 lines at the end before run_program("/sbin/busybox","unmount","/system") ;
Enviado desde mi Nexus 7 usando Tapatalk now Free
pascuals said:
Noo
Add the 3 lines at the end before run_program("/sbin/busybox","unmount","/system") ;
Enviado desde mi Nexus 7 usando Tapatalk now Free
Click to expand...
Click to collapse
I have yesterday try that and the rom goes fine and the Gapps goes also fine
but when i comes into the phone and login by Google store then start to download all
the programs so they where not install.
what is wrong now ?
The root folder looks like this
Data
App
META-INF
com
optional
face
addon.d
app
lib
vendor
system
addon.d
app
etc
framework
lib
tts
usr
The updater-script looks like this
ui_print("***********************************************");
ui_print(" Google Apps for Android 4.3.0");
ui_print("***********************************************");
ui_print("Installing files...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk","/system/app/BrowserProviderProxy.apk","/system/app/PartnerBookmarksProvider.apk","/system/app/Gmail2.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Cleaning up...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
run_program("/sbin/busybox","mount","/data");
package_extract_dir("data/", "/data/local");
set_perm(0, 0, 0755, 0644, "/system/app/textinput-chn.apk");
set_perm(0, 0, 0755, 0644, "/system/app/textinput-tng.apk");
set_perm(0, 0, 0755, 0644, "/system/lib/libXT9Engine.so");
set_perm(0, 0, 0755, 0644, "/data/app/CameraMX.apk");
set_perm(0, 0, 0755, 0644, "/data/app/DBA.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Ebay.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Ebay-Kleinanzeigen.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Ebay-Widget.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Entertain-Remote-Control.apk");
set_perm(0, 0, 0755, 0644, "/data/app/ES-Datei-Explorer.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Facebook.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Firefox.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Google-Maps.apk");
set_perm(0, 0, 0755, 0644, "/data/app/GPS-Status.apk");
set_perm(0, 0, 0755, 0644, "/data/app/HandcentSMS.apk");
set_perm(0, 0, 0755, 0644, "/data/app/HandcentSMS-DL.apk");
set_perm(0, 0, 0755, 0644, "/data/app/HandcentSMS-ink.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Ingdiba.apk");
set_perm(0, 0, 0755, 0644, "/data/app/lieferando.apk");
set_perm(0, 0, 0755, 0644, "/data/app/MailListWidget-K-9.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Paypal.apk");
set_perm(0, 0, 0755, 0644, "/data/app/ROM-Manager.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Sense-V2.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Skype.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Solitar.apk");
set_perm(0, 0, 0755, 0644, "/data/app/Sparkasse.apk");
set_perm(0, 0, 0755, 0644, "/data/app/SpSynthesis-Data.apk");
set_perm(0, 0, 0755, 0644, "/data/app/TeamViewer.apk");
set_perm(0, 0, 0755, 0644, "/data/app/XDA-Developers.apk");
set_perm(0, 0, 0755, 0644, "/data/app/YouTube.apk");
run_program("/sbin/umount", "/data");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
Click to expand...
Click to collapse
Hallo
i have plaz the whole day and now get all to work. so cool
Thank you very much for all the help......
The code looks like this
ui_print("***********************************************");
ui_print(" Google Apps for Android 4.3.0");
ui_print("***********************************************");
ui_print("Installing files...");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
show_progress(1, 51);
delete("/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/SetupWizard.apk","/system/app/Velvet.apk","/system/app/Vending.apk","/system/app/BrowserProviderProxy.apk","/system/app/PartnerBookmarksProvider.apk","/system/app/Gmail2.apk");
package_extract_dir("system", "/system");
package_extract_dir("data", "/data");
package_extract_dir("data", "/data/local");
set_perm(0, 0, 0755, 0644, "/system/app/textinput-chn.apk");
set_perm(0, 0, 0755, 0644, "/system/app/textinput-tng.apk");
set_perm(0, 0, 0755, 0644, "/system/lib/libXT9Engine.so");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(0, 0, 0755, 0644, "/data/app");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
show_progress(1, 15);
ui_print("Cleaning up...");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("Cleaning up...");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
Click to expand...
Click to collapse

Categories

Resources