I need help with packing an apk as an update zip. Followed a lot of how-to's:
What i did:
[folder]/system/app/app.apk
[folder]/META-INF/com/google/android/update-script
This is what the script looks like:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
show_progress 0.1 10
Now, the recovery says it flashed successfully, but if i boot the system, the app was not placed into /system/app.....
Can anyone assist?
You're not mounting partitions.
Made this : System App Flasher
Just copy .apk(s) in /system/app and flash.
gamin92 said:
You're not mounting partitions.
Made this : System App Flasher
Just copy .apk(s) in /system/app and flash.
Click to expand...
Click to collapse
NICE! Thank you sir!
Related
Hi!
I have 3 files: boot.img, system.img, userdata.img and I want to create my update.zip with them.
I already extrat it and create the folder structure. Now I need to create my update-script to make the install.
Can someone help me with this?
Regards,
NS
Just look at other people's scripts.. it's easier than trying to write one from scratch. There are a few important commands like format, copy_dir, write_raw_image, set_perm and run_program, but it's easier to see how they're used in context that for me to explain it.
Can't go wrong with:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
copy_dir PACKAGE:data DATA:
show_progress 0.2 0
format BOOT:
write_raw_image PACKAGE:boot.img BOOT:
show_progress 0.2 10
I'm trying to create an update.zip pack using this _HTC Magic_RUU_Sapphire_SMC_Voda_WWE_3.03.990.6_release_signed_NoDriver
But after I sucefull install the update the phone dont boot and freeze on Vodafone Red screen...
eugene373 said:
Can't go wrong with:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
copy_dir PACKAGE:data DATA:
show_progress 0.2 0
format BOOT:
write_raw_image PACKAGE:boot.img BOOT:
show_progress 0.2 10
Click to expand...
Click to collapse
You need the toolbox symlinks..
Can you be more specific?
maxisma said:
You need the toolbox symlinks..
Click to expand...
Click to collapse
Not for an update, or did I miss something.
Is this a Full Flash, if so, then yes you will need the syslinks as well.
EDIT*
Yeah, you will need those, I mis-read the Post.
Does anyone have the latest EVO VERSION of QIK? I cant install most APPS from the market so if you can get me the APK I would appreciate it.
Thank you ...
Here ya go.... Try this one View attachment Sprint_Qik.apk
jayharper08 said:
Here ya go.... Try this one View attachment 542381
Click to expand...
Click to collapse
That looks like the APK file I extracted from the SPRINT LOVERS ROM. It would not install. I think Maybe I need a flashable QIK for EVO??
It was a different size BUT I still get "application not installed" .. does anyone know how to SIDE LOAD THIS? maybe a flashable APK??
I'm not sure how to put it in a flashable zip. I will pm Rydah or TommyTomatoe to see if they can for you.
jayharper08 said:
I'm not sure how to put it in a flashable zip. I will pm Rydah or TommyTomatoe to see if they can for you.
Click to expand...
Click to collapse
Thanks .... I really want to get this app back on my phone ....
push it to your phone via RootExplorer...
Rydah805 said:
push it to your phone via RootExplorer...
Click to expand...
Click to collapse
PUSH the APK installer I have or what??
EDIT: I pushed the sprint QIK APK that someone posted above by doing th following:
Open Root Explorer.
Go to /sdcard where you placed the .apk files.
Press the menu button to 'Multi-Select' and copy. (Or individually long press and copy)
Select the .apk files you placed on your SD card.
Go back to the " / " folder. (Press the [...] dots at the top)
Open the 'system' folder.
Open the 'app' folder. (You should now be in /system/app)
MOUNT AS R/W! (By default you are mounted as R/O)
Paste the .apk files.
REMEMBER THE NAMES! (To change permissions)
Scroll to each .apk and long press individually. (Options should pop up)
Scroll to and press 'Permissions'.
New screen should say (ALONG THE TOP) Read - Write - Execute (ALONG THE SIDE) User - Group - Others.
Change the .apk permissions to match all your other system app permission. (Check READ for ALL. Check WRITE for USER. Leave Execute UNCHECKED)
Press OK.
Go to phone Home Screen.
Reboot.
*DID NOT WORK. still told me I had to install and would not...
copy the apk from your sd card into "System/Apps/" Via Root Manager. Reboot.
Here You Go:
Try This:
=]]
flash it through recovery
Rydah805 said:
copy the apk from your sd card into "System/Apps/" Via Root Manager. Reboot.
Click to expand...
Click to collapse
I did this and then changed permissions to look like the other apps but it doesnt show up under all apps
Rydah my boy. I knew you would come thru. Lol.
Sent from "The EVO"
Rydah805 said:
flash it through recovery
Click to expand...
Click to collapse
Well, I flashed the ZIP file you created.... It appeared to FORMAT my entire phone.. and then gave an error!! now it is stuck at the EVO4G screen.. WHY in the world would anyone do this to someone??? unless I am missing something.. it actually said it was formatting...
WTF!!
UPDATE: YEP .. FORMATTED PHONE.. All I can say is that was not nice and I really should report you for killing my phone.. BUT I am reinstalling everything ...
dahauss said:
Well, I flashed the ZIP file you created.... It appeared to FORMAT my entire phone.. and then gave an error!! now it is stuck at the EVO4G screen.. WHY in the world would anyone do this to someone??? unless I am missing something.. it actually said it was formatting...
WTF!!
Click to expand...
Click to collapse
Believe me. It wasn't intentional, if infact something happened. He has zipped up a few things for me and worked fine. You did a nandroid before flashing right?
Sent from "The EVO"
jayharper08 said:
Believe me. It wasn't intentional, if infact something happened. He has zipped up a few things for me and worked fine. You did a nandroid before flashing right?
Sent from "The EVO"
Click to expand...
Click to collapse
I saw it say FORMATING /SYSTEM and then formatting /CACHE and then it gave me an e: error and crashed my phone and it wont boot at all
NADA its dead.. I have to reflash totally.. NO I didnt do a backup as I ASSUME no one would write a script to ERASE and FORMAT someones phone..
dahauss said:
I saw it say FORMATING /SYSTEM and then formatting /CACHE and then it gave me an e: error and crashed my phone and it wont boot at all
NADA its dead.. I have to reflash totally.. NO I didnt do a backup as I ASSUME no one would write a script to ERASE and FORMAT someones phone..
Click to expand...
Click to collapse
I know he is trusted by quite a few people on here. I'm sure he was just trying to help.
Sent from "The EVO"
Here is what it did:
show_progress 0.1 0
delete_recursive DATA:dalvik-cache
delete_recursive DATA:boot-cache
format CACHE:
format SYSTEM:
delete_recursive DATA:data/com.htc.wdm
delete SYSTEM:bin/dumpcrash
copy_dir PACKAGE:system SYSTEM:
symlink toolbox SYSTEM:bin/cat
symlink toolbox SYSTEM:bin/chmod
symlink toolbox SYSTEM:bin/chown
symlink toolbox SYSTEM:bin/chownto
symlink toolbox SYSTEM:bin/cmp
symlink toolbox SYSTEM:bin/date
symlink toolbox SYSTEM:bin/dd
symlink toolbox SYSTEM:bin/df
symlink toolbox SYSTEM:bin/dmesg
symlink toolbox SYSTEM:bin/getevent
symlink toolbox SYSTEM:bin/getprop
symlink toolbox SYSTEM:bin/hd
symlink toolbox SYSTEM:bin/id
symlink toolbox SYSTEM:bin/ifconfig
symlink toolbox SYSTEM:bin/iftop
symlink toolbox SYSTEM:bin/insmod
symlink toolbox SYSTEM:bin/ioctl
symlink toolbox SYSTEM:bin/ionice
symlink toolbox SYSTEM:bin/kill
symlink toolbox SYSTEM:bin/ln
symlink toolbox SYSTEM:bin/log
symlink toolbox SYSTEM:bin/ls
symlink toolbox SYSTEM:bin/lsmod
symlink toolbox SYSTEM:bin/mkdir
symlink toolbox SYSTEM:bin/mount
symlink toolbox SYSTEM:bin/mv
symlink toolbox SYSTEM:bin/nandread
symlink toolbox SYSTEM:bin/netstat
symlink toolbox SYSTEM:bin/newfs_msdos
symlink toolbox SYSTEM:bin/notify
symlink toolbox SYSTEM:bin/printenv
symlink toolbox SYSTEM:bin/ps
symlink toolbox SYSTEM:bin/renice
symlink toolbox SYSTEM:bin/rm
symlink toolbox SYSTEM:bin/rmdir
symlink toolbox SYSTEM:bin/rmmod
symlink toolbox SYSTEM:bin/route
symlink toolbox SYSTEM:bin/schedtop
symlink toolbox SYSTEM:bin/sendevent
symlink toolbox SYSTEM:bin/setconsole
symlink toolbox SYSTEM:bin/setprop
symlink toolbox SYSTEM:bin/sleep
symlink toolbox SYSTEM:bin/smd
symlink toolbox SYSTEM:bin/start
symlink toolbox SYSTEM:bin/stop
symlink toolbox SYSTEM:bin/sync
symlink toolbox SYSTEM:bin/top
symlink toolbox SYSTEM:bin/umount
symlink toolbox SYSTEM:bin/vmstat
symlink toolbox SYSTEM:bin/watchprops
symlink toolbox SYSTEM:bin/wipe
set_perm_recursive 0 0 0755 0644 SYSTEM:
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
set_perm 0 3003 0755 SYSTEM:bin/ip
set_perm 0 3003 0755 SYSTEM:bin/ipd
set_perm 0 3003 02750 SYSTEM:bin/netcfg
set_perm 0 3003 06755 SYSTEM:bin/netd
set_perm 0 3004 02755 SYSTEM:bin/ping
set_perm 0 2000 04755 SYSTEM:bin/pppd
set_perm 0 2000 06755 SYSTEM:bin/reboot
set_perm 0 2000 06750 SYSTEM:bin/run-as
set_perm 0 1000 06755 SYSTEM:bin/wifitools
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_recursive 0 2000 0755 0755 SYSTEM:xbin
set_perm 0 0 04755 SYSTEM:bin/su
set_perm 0 0 04755 SYSTEM:xbin/su
format BOOT:
write_raw_image PACKAGE:stock-boot.img BOOT:
show_progress 0.2 0
doesnt that mean it erased my phone??? WHY would you give me a script like that? I just tired to reinstall the sprint lovers UPDATE so I dont erase my phone.. I bet it didnt work.. BUT we will see..
OK so I flash the UPDATE to SPRINT LOVERS ROM .. it booted and gave me a FORCE CLOSE on QIK... its listed in the ALL APPS but it doesnt work. what can I do now?? all it does is FORCE CLOSE when I go to run it...
Wow! Are you serious?
Definitely wasn't intentional. Don't know why it did that to you. I know it says its formatting but it shouldn't actually do it. I used the same update script for plenty of my nods, including one that I did for JayHarper. Will look into this, but you should at minimum have some kind of backup whether its a nand or titanium backup or both.
Even if you open up the zip, its only the apk that was provided. I'll test it on my phone.... be right back.
Sent From My HTC Evo 4G On The Now Network From Sprint Using Tapatalk Pro!
Hello,
I do not have access to a Droid2 right now so please do a NAND backup BEFORE and then try to flash my MIUI D2 ROM[/URL]
IMPORTANT:
Make sure you have a .sbf file to restore the phone to factory state if this rom does not work as intended,
remember I DO NOT own a droid2 (and with the lack of donations it doesn´t look like I will be able to afford one anytime soon)
so unfortunately I can not test whether the rom works correctly, partially or not at all.
ALPHA7:
http://www.ziddu.com/download/14374125/alpha7_signed.zip.html
Install:
make sure you have root and clockworks recovery installed
Warning!!!! Make sure you are on 2.3.320 or 2.3.340!!!
-boot into recovery via clockworks bootstrap
-select "wipe data/factory reset"
-select "Yes -- delete all data"
-go back "powerbutton"
-select "install zip from sdcard"
-select "choose zip from sdcard"
-find and select alphaXX-signed.zip
-reboot
WARNING:
If the rom does not work to perfection (or at all) and you want to help with the porting effort please carry out the following steps:
1) Install the latest alpha (in this thread)
2) (optional if you want to produce a debug log but can not do so)
Before rebooting apply the following patch to enable debugging
3) From a terminal enter these commands:
Code:
adb shell stop
adb shell setprop log.redirect-stdio true
adb shell start
and in a separate terminal
Code:
adb -d logcat
Now reboot the phone so we get some logs (hopefully)
4) Repeat the process of point 3) with
Code:
db -s ? bugreport
5) check the contents of /sdcard/clockworkmod/ for .log files
Get me the resulting output logs... (under /sdcard/clockworkmod/ )
-------------------------------
If you encounter errors please be as specific as you can in the error report
Downloading now. Will put in my .02 when I get it up and running.
As promising as this looks. After downloading twice and copying over twice I can't install it. I get E:Error in /sdcard/miui-d2-alpha-signed.zip (Status 6) Installation aborted.
Any ideas?
miketoasty said:
I get E:Error in /sdcard/miui-d2-alpha-signed.zip (Status 6) Installation aborted.
Click to expand...
Click to collapse
Same here.
Would love to give this a try also if the file gets fixed. There has been a lot of hype around MIUI and I'd like to see if it works any good!
This really made my day. I can't wait to see what comes of this. Looks really promising.
I think the bug is with the buidscript
I will try to fix it... stay tuned
Open the .zip from the first posting and rename
/META-INF/com/google/android/updater-script
to update-script
and the content with:
Code:
show_progress 0.500000 0
delete_recursive SYSTEM:
format SYSTEM:
format CACHE:
copy_dir PACKAGE:sdcard SDCARD:
copy_dir PACKAGE:system SYSTEM:
copy_dir PACKAGE:data DATA:
## droid2 froyo MIUI permissions ##
set_perm_recursive 0 0 0755 0644 SYSTEM:
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
set_perm 0 3003 02750 SYSTEM:bin/netcfg
set_perm 0 3004 02755 SYSTEM:bin/ping
set_perm 0 1001 04770 SYSTEM:bin/pppd-ril
set_perm 0 2000 06750 SYSTEM:bin/run-as
set_perm 0 0 06755 SYSTEM:xbin/su
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 0 06755 SYSTEM:etc/install-recovery.sh
set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh
set_perm_recursive 0 0 0755 0555 SYSTEM:etc/ppp
set_perm_recursive 0 2000 0755 0755 SYSTEM:xbin
set_perm 0 0 06755 SYSTEM:bin/busybox
set_perm 0 0 06755 SYSTEM:bin/busybox2
set_perm 0 0 06755 SYSTEM:bin/sysinit
set_perm 0 0 06755 SYSTEM:etc/init.d/00banner
set_perm 0 0 06755 SYSTEM:etc/init.d/01sysctl
set_perm 0 0 06755 SYSTEM:etc/init.d/02firstboot
set_perm 0 0 06755 SYSTEM:etc/init.d/05modules
set_perm 0 0 06755 SYSTEM:etc/init.d/06defaulttheme
set_perm 0 0 06755 SYSTEM:etc/init.d/99complete
set_perm 0 0 06755 SYSTEM:xbin/zipalign
set_perm 0 0 06755 SYSTEM:xbin/zipalign_apks
show_progress 0.2 10
Then I am not sure if you need to sign the resulting .zip or not (try without and see what happens, if it works, or a different error)
Make sure you edit the update-script file within linux or using something like ultraedit or notepadplus
(remember guys I am working blind here as I am not likely to have a droid2 for a couple of months, I need people able to flash the different alphas and report on errors)
Tried and got same error before and after signing.
yes, the scrip has to be named update-script not updater-script
So try with the correct name and the content in my previous posting
miketoasty said:
Tried and got same error before and after signing.
Click to expand...
Click to collapse
Hyped about this ^.^
New download link doesn't work, check your pm's btw.
In the first version you forgot to add an updater-script and the other thing that is usually in that folder.... I'll add it for you and then test it out, if it works I'll upload it.
Really nice work.
Update: just finished fixing the updater-script and am testing out now
Update #2: never mind, something is just wrong with the zip and it's not working for me. I didn't end up fixing it.
so has anyone got this to work?
dling now
download in progress.....
mine gets stuck on installing updates.....
installation error
i was able to download the zip. during installation...installation aborted (error 4)....
Update: just finished fixing the updater-script and am testing out now
Update #2: never mind, something is just wrong with the zip and it's not working for me. I didn't end up fixing it.[/QUOTE]
agreed lol
I'll try and make another zip thingy.... I think just taking the files from the original zip and then putting them in a new signed one should work out
Update: FML, the rom still doesn't work so I know it is not a zip problem. I am getting a problem on clockworkmod and the log says this happened:
Code:
ClockworkMod Recovery V2.5.0.8
--Wiping DATA....
Formatting CACHE...
Formatting SDEXT...
No app2sd partition found. Skipping format of /sd-ext
Data wipe complete.
--Wiping cache...
Formatting CACHE...
Cache wipe complete.
-- Installing: SDCARD: NewMiuiAlpha.zip
Finding update package....
Opening update package...
Installing update...
E:Error in /sdcard/NewMiuiAlpha.zip
(Status 6)
Installation aborted.
I don't really know how to fix a status 6 problem but supposedly it is a problem with the updater-script and I think I know how to fix that. I am going to try one more build and if that doesn't work I'll leave it to the creator of the rom....
I hope this works...
ljbaumer said:
I'll try and make another zip thingy.... I think just taking the files from the original zip and then putting them in a new signed one should work out
Click to expand...
Click to collapse
i have my signature verification turned off...
Waiting with soo much excitement, and willing to donate to the cause!
Sent using XDA App
Hi,
I have my TF101 upgraded to ICS and ROOT with Rogue XM 1.5.0.
Before root I tried 'adb install myapp.apk' and installed the application successfuly. I have uninstalled myapp and then tried the same after root and got:
failed to copy 'myapp.apk' to '/data/local/tmp/myapp.apk': Not a directory
rm failed for /data/local/tmp/myapp.apk, Not a directory
Looking into /data/local I can see a tmp.bak folder and a tmp file. What can I do to be able to install applications using adb as before root?
Regards.
I found that tmp file is a link to /dev/block/mmcblk0p4 but after I ran mount I didn't find it mounted:
.................
/dev/block/mmcblk0p1 /system ext4 ......
/dev/block/mmcblk0p7 /data ext4 .........
/dev/block/mmcblk0p2 /cache ext4 ..........
.............................
Do you have any idea what I can do in order to be able installing apk's using adb install? Is it ok to delete tmp link file and create a tmp folder with proper permissions?
Thanks in advance.
Hi,
I am new in custom ROM developer. I want to install my bluetooth libraries in GT-P3100. In update.zip folder I copied all bluetooth libraries inside the /system/lib folder. My updater-script file is like this
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
But when I an trying to update from zip file. My tablet is showing installation abort. Any idea what I am missing here. ???