anyone know how to make a android flashable update zip? - Xperia Play General

I need to make a flashable zip that can delete one apk file from system/app and add another. i need the script.

delete("system/app/app.apk")
package_extract_dir("system","/system")
Sent from my GT-N7100 using xda premium

Dont u need to mount the system 1st??
mount("MTD", "system", "/system");
delete("system/app/app.apk");
package_extract_dir("system","/system");
Regards,
Sdojoin

This is only one part of the scrip. Of course you have to mount system.
Edit: mario, i thouht you know a bit of this since you have your own rom...
Sent from my GT-N7100 using xda premium

I think dont matter if the script dont hav mount system script. U can always mount it manully via cwm.
Regards,
Sdojoin

Related

Cache partition size

Hello to all in comunity.
Galaxy s has only 30MB of cache size. And this is bad because some apps on the market can't be installed, since market uses this cache partition for the downloads. Is there a way to increase this size or to symlink it on some bigger partition like /data or somewhere else?
Sent from my GT-I9000 using XDA App
Anybody? I heard that's a way to symlink cache anywhere else, but i can't do it, everytime i try a message saying "resource busy" or something like this appears on Terminal Emulator. I'm trying to symlink cache to /data.
Do you have ext4 lagfix enabled?
Sent from my GT-I9000 using XDA App
No. Do i need to enable it?
Sent from my GT-I9000 using XDA App
Using speedmod kernel with lagfix enabled on cache (ext4) gave me 100 MB.
Sent from my Galaxy S/CM7 using XDA App
avary said:
Using speedmod kernel with lagfix enabled on cache (ext4) gave me 100 MB.
Click to expand...
Click to collapse
And what version of speedmod are you using? I'm on K12-T 500Hz....if i enable ext4 lagfix on cache, will i get the 100MB too?
And also, were you using CM7 already?
Thanks!!
I tried to symlink the cache to a folder i created ala hardcore's suggestion (Thanks again hardcore!), but unfortunately I got the same sized partition as the original cache folder, which kinda makes sense. Hopefully Samsung or one of the guys on XDA (yeah, they'll probably get a fix out before Sammy does) will have a solution.
avary said:
Using speedmod kernel with lagfix enabled on cache (ext4) gave me 100 MB.
Sent from my Galaxy S/CM7 using XDA App
Click to expand...
Click to collapse
I call bull****.
So there isn't a way to do it right now? I guess we need supercurio's or hardcore's help. Please people, help to contact them. Thx!!
Sent from my GT-I9000 using XDA App
I agree
snapper.fishes said:
I call bull****.
Click to expand...
Click to collapse
So do I. I tried using the latest speedmod, and no change. Think the only solution would be to have the cache size changed in the internals. Definitely out of my league; I don't want to try changing a setting and lose the use of my phone. Hopefully someone gets a fix in; battle bears is calling...
Definitely we need to move this thread to android development and see if someone there with enough skills can help us. I think it's an urgent problem. What about battle bears? And what if gameloft start to sell their games on android market now?
Sent from my GT-I9000 using XDA App
Thanks!!!!
gangpe said:
I tried to symlink the cache to a folder i created ala hardcore's suggestion (Thanks again hardcore!), but unfortunately I got the same sized partition as the original cache folder, which kinda makes sense. Hopefully Samsung or one of the guys on XDA (yeah, they'll probably get a fix out before Sammy does) will have a solution.
Click to expand...
Click to collapse
lucbl1 said:
Anybody? I heard that's a way to symlink cache anywhere else, but i can't do it, everytime i try a message saying "resource busy" or something like this appears on Terminal Emulator. I'm trying to symlink cache to /data.
Click to expand...
Click to collapse
How do you guys exactly try to symlink it? I guess more people could help out if they knew exactly what you are doing and what the error messages exactly say.
I'm not really interested in getting a bigger cache partition since I don't use really big apps, but this would probably be thay way I'd do it:
(you could type these command either through adb shell or directly on the device using a terminal emulator -- WARNING: these commands are not tested and may horribly break something)
Code:
mkdir /data/cache
busybox rm -rf /cache
busybox ln -s /data/cache /cache
shantzu said:
How do you guys exactly try to symlink it? I guess more people could help out if they knew exactly what you are doing and what the error messages exactly say.
I'm not really interested in getting a bigger cache partition since I don't use really big apps, but this would probably be thay way I'd do it:
(you could type these command either through adb shell or directly on the device using a terminal emulator -- WARNING: these commands are not tested and may horribly break something)
Code:
mkdir /data/cache
busybox rm -rf /cache
busybox ln -s /data/cache /cache
Click to expand...
Click to collapse
I was just using the same code you posted. But i think that for symlinking, /system and /data must be in Ext2/3 or 4 format, am i right? I'll be testing it in the weekend!
I mentioned this issue to supercurio who is looking into it.
Sent from my GT-I9000 using XDA App
lucbl1 said:
I was just using the same code you posted. But i think that for symlinking, /system and /data must be in Ext2/3 or 4 format, am i right? I'll be testing it in the weekend!
Click to expand...
Click to collapse
well, tbqh I didn't work much with RFS, so I am not sure if it supports symlinks, I guess it can't hurt to try though...
If it doesn't work on RFS you'd have to try some ext FS (ext2, ext4, whatever you prefer).
rlorange said:
I mentioned this issue to supercurio who is looking into it.
Click to expand...
Click to collapse
So maybe supercurio can fix it. Let's hope! Any news please report here.
Sent from my GT-I9000 using XDA App
Problem fixed on last speedmod kernel!
Sent from my GT-I9000 using XDA App
can someone plz help me? i got the problem and its rly annoying..i have 2.3.3 xxjvo with cf_root how do i fix this ****?!
romdroid. said:
can someone plz help me? i got the problem and its rly annoying..i have 2.3.3 xxjvo with cf_root how do i fix this ****?!
Click to expand...
Click to collapse
If rou are rooted just folow this commands in terminal...
su
mkdir /sdcard/tempcache
mount -o bind /sdcard/tempcache /cache
This is temporary, after reboot cache will return normal and you can delete tempcache in sdcard...
Cheers

Question. Deleting system files

I can't delete my gmail.API out of the system files it just respawns. And ideas?
apk?
Make sure the system is rw. Otherwise it just "pretends" to delete.
Yeah apk sorry. Switched keyboarding. root explorer says r/w at the top
Sent from my SCH-I500 using XDA App
Don't trust root explorer. It doesnt always correctly mount as rw.
How do I fix that sir?
Sent from my SCH-I500 using XDA App
You can use terminal commands, but for a fairly simple way to do it, I use "Remount /system (ro/rw)". It's a free app on the market, easily remounts system as rw at the touch of a button.
Well my idea didn't work but thanks guys
zachsx said:
How do I fix that sir?
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
Sir??? Really???
Sent from my stock 2.1
unrooted, fully bloated (for now) Fascinate

native swap does not work on cm9 android 4.0.3

hi,
i have followed the native swap tut but it does not work for me maybe the problem is that i have clockwork recovery 2.x.x ive done everything like in the tut and when i type free in terminal swap displays 0.
what is the problem?
Sent from my LG-GT540 using XDA
you need the swapon file in /system/etc/init.d . just take one from any rom.
How can I open *.img file to extract the swapon file?
Can you give me the link for swapon file?
Google it or search on xda for 07swapon.
Sent from my GT540 using xda premium
which is the maxmum swap partition size that i can make.??im currently having a 256mb partition..running miro's ics
odi032 said:
which is the maxmum swap partition size that i can make.??im currently having a 256mb partition..running miro's ics
Click to expand...
Click to collapse
in theory you can have 32 gigabyte i think ;P
Try make and load swap manualy with adb mkswap swapon swapoff it is not ICS feature it kernel feature
It works on andoroid 4.0.4
vita94 said:
hi,
i have followed the native swap tut but it does not work for me maybe the problem is that i have clockwork recovery 2.x.x ive done everything like in the tut and when i type free in terminal swap displays 0.
what is the problem?
Sent from my LG-GT540 using XDA
Click to expand...
Click to collapse
Do you have an init.d script called 07swapon in your /system/etc/init.d folder?
It only works on CM roms.....
If not, tell me and I will attach it for you
EDIT: File attached. Rename to 07swapon and copy to /system/etc/init.d directory

[Q] Problem updating to 4.3

Hi guys
I have a bit of a problem here!
I got the ota update, wanted to install it, but failed.
So i downloaded the ota zip file from our site. ([REF] Nexus 7 Stock OTA URLs)
Went to recovery and tried to install it, and bam. Failed!
It says Something about xt9ime.apk not being in system/app or sth like that.
Can anyone help me?
Edit: i have the recovery log file if it helps! :S
If you've changed or deleted any system files, that would do it.
It's even telling you what the problem is.
That file is changed or missing.
danvee said:
If you've changed or deleted any system files, that would do it.
It's even telling you what the problem is.
That file is changed or missing.
Click to expand...
Click to collapse
I replaced the file, but it isnt working.
Sent from my Nexus 7 using XDA Premium HD app
You should have had a look at your log file or have been done the update while running logcat, in that case you would see the exact error message / the file the updater is complaining about.
Sent from my Nexus 7 using xda app-developers app
AndDiSa said:
You should have had a look at your log file or have been done the update while running logcat, in that case you would see the exact error message / the file the updater is complaining about.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
I said before, i have the log file. Do you want me to upload it for u? Or copy past it?
This is a part of the log file, a part that i think relates:
Installing '/sdcard/Download/ab67ca07c4b2e03eca795ada10ff041b77fbb7bf.signed-nakasi-JWR66V-from-JDQ39.ab67ca07.zip'...
Checking for MD5 file...
I:Cannot find file /sdcard/Download/ab67ca07c4b2e03eca795ada10ff041b77fbb7bf.signed-nakasi-JWR66V-from-JDQ39.ab67ca07.zip.md5
Skipping MD5 check: no MD5 file found.
Warning: No file_contexts
Warning: No file_contextsVerifying current system...
failed to stat "/system/app/XT9IME.apk": No such file or directory
file "/system/app/XT9IME.apk" doesn't have any of expected sha1 sums; checking cache
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: assert failed: apply_patch_check("/system/app/XT9IME.apk", "4e36a5ed22057e493b47c0c71d36d9e2762d41dc", "8aba56a4406128e78f5729753252c3d93bc21cb4")
assert failed: apply_patch_check("/system/app/XT9IME.apk", "4e36a5ed22057e493b47c0c71d36d9e2762d41dc", "8aba56a4406128e78f5729753252c3d93bc21cb4")
E:Error executing updater binary in zip '/sdcard/Download/ab67ca07c4b2e03eca795ada10ff041b77fbb7bf.signed-nakasi-JWR66V-from-JDQ39.ab67ca07.zip'
Error flashing zip '/sdcard/Download/ab67ca07c4b2e03eca795ada10ff041b77fbb7bf.signed-nakasi-JWR66V-from-JDQ39.ab67ca07.zip'
Click to expand...
Click to collapse
Sent from my Nexus 7 using XDA Premium HD app
The updater doesn't find XT9IME.apk on your /system partition. Due to that it's failing. If you have a copy of the file, try to install it in recovery mode to /system/app and try to apply the update again.
Sent from my GT-I9100 using xda app-developers app
AndDiSa said:
The updater doesn't find XT9IME.apk on your /system partition. Due to that it's failing. If you have a copy of the file, try to install it in recovery mode to /system/app and try to apply the update again.
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
I know that. I got the copy of the file. I copied it using es file explorer, no success.
pushed it in fastboot, no success.
installed it and then made it a system app using titanium back up, again nothing.
i don't know what to do any more.
Need more help here!
Sent from my Nexus 7 using XDA Premium HD app
danvee said:
If you've changed or deleted any system files, that would do it.
It's even telling you what the problem is.
That file is changed or missing.
Click to expand...
Click to collapse
Do you have any idea how to fix this...
Any thing is appreciated...
Sent from my Nexus 7 using XDA Premium HD app
Did you make sure that the permissions matched the original?
Otherwise Best is to reflash the entire ROM...
danvee said:
Did you make sure that the permissions matched the original?
Otherwise Best is to reflash the entire ROM...
Click to expand...
Click to collapse
How can i make sure that the permissions match?
So, u r suggesting that i flesh 4.2.2 again, then flash ota to 4.3?
I'll lose all my data.
If i'm about to lose my data, i'd rather flash 4.3 rom. Huh?
Im confused!
Sent from my Nexus 7 using XDA Premium HD app
danvee said:
Did you make sure that the permissions matched the original?
Otherwise Best is to reflash the entire ROM...
Click to expand...
Click to collapse
I dont want to lose my filesm can u help me?
Sent from my Nexus 7 using XDA Premium HD app
Anyone please help.
I update it,it auto flash the zip in TWRP,now it stuck on "X" boot animation,don't start up.Any solution?

[i9100] (SHARE) Swap SdCard init.d script for CM11/4.4.2

Happy new year for everyone here..
First of all sorry if my english bad..
Helo S2 community i'm new here..
i was silent reader in this great XDA Dev-site for a year.. now i'm decide to join XDA for sharing a cool stuff i have for you all.. and for help other too if i can..
i found this script in this page :
forum.xda-developers.com/showthread.php?t=2584862
Credit goes to script maker Souffre..
i only make dev/block mount point to work with our i9100.. i have tested this script and so far working good.. tested binding Real Racing 3 folder and running game without problem.. but for safety make a backup your sdcard content to pc, backup internal & external sdcard, cwm backup too if necessary..
this script will placed to your system/etc/init.d folder
tested with CM11 by infected Nightly 20140101..
Thank you works sweet with resurrection remix
Sent from my GT-I9100 using XDA Premium HD app
brainbeatuk said:
Thank you works sweet with resurrection remix
Sent from my GT-I9100 using XDA Premium HD app
Click to expand...
Click to collapse
You're welcome my friend, thanks for visiting my thread..
Step by Step
Noriyuki_Fariz said:
Happy new year for everyone here..
First of all sorry if my english bad..
Helo S2 community i'm new here..
i was silent reader in this great XDA Dev-site for a year.. now i'm decide to join XDA for sharing a cool stuff i have for you all.. and for help other too if i can..
i found this script in this page :
forum.xda-developers.com/showthread.php?t=2584862
Credit goes to script maker Souffre..
i only make dev/block mount point to work with our i9100.. i have tested this script and so far working good.. tested binding Real Racing 3 folder and running game without problem.. but for safety make a backup your sdcard content to pc, backup internal & external sdcard, cwm backup too if necessary..
this script will placed to your system/etc/init.d folder
tested with CM11 by infected Nightly 20140101..
Click to expand...
Click to collapse
Hi
Thanks for the script. I'm trying to do the swap on an S2 with SuperNexus but can't paste the script into the init.d folder (I'm guessing permissions). Could you please give me a step by step of how to get the script in and what to do with the META-INF folder?
Thanks
I just flashed thru cwm recovery here is script I pulled. Is supernexus a cm11 build? If no init.d try installing dorimanc go in stweaks app and enable init.d control may help as did for me on linaro cm11.
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:9 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:9 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/259:3 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/259:3 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:9 /mnt/secure/asec 1>>$LOG 2>>$LOG
Sent from my GT-I9100 using XDA Premium HD app
CliffMcl said:
Hi
Thanks for the script. I'm trying to do the swap on an S2 with SuperNexus but can't paste the script into the init.d folder (I'm guessing permissions). Could you please give me a step by step of how to get the script in and what to do with the META-INF folder?
Thanks
Click to expand...
Click to collapse
You in SuperNexus 4.0 ? If yes then this script should work.. Just flash in CWM, As far i know stock SuperNexus kernel based on CyanogenMOD kernel (correct me if wrong) so it have init.d support.. Permission is rwe rxe rxe or rwe rwe rwe..
Noriyuki_Fariz said:
You in SuperNexus 4.0 ? If yes then this script should work.. Just flash in CWM, As far i know stock SuperNexus kernel based on CyanogenMOD kernel (correct me if wrong) so it have init.d support.. Permission is rwe rxe rxe or rwe rwe rwe..
Click to expand...
Click to collapse
Yes running SuperNexus 4.0 and it is based on CM11. I can see the system/etc/init.d but I can't work out what to use to get the script into the folder. Also I don't know what to do with the META-INF folder from the zip file.
Thanks for your patience with a Windows geek who is on a steep learning curve
EDIT - DOH!! Root Explorer would have been a good idea.
I've copied the script over, set permissions, ignored thre META-INF and rebooted. SD0 & SD1 swapped successfully
CliffMcl said:
Yes running SuperNexus 4.0 and it is based on CM11. I can see the system/etc/init.d but I can't work out what to use to get the script into the folder. Also I don't know what to do with the META-INF folder from the zip file.
Thanks for your patience with a Windows geek who is on a steep learning curve
EDIT - DOH!! Root Explorer would have been a good idea.
I've copied the script over, set permissions, ignored thre META-INF and rebooted. SD0 & SD1 swapped successfully
Click to expand...
Click to collapse
Glad it work for you.. META-INF not needed if you place script manually, just init.d..
Hi I was wondering if you could make one for my leveno a3000 it is using fuse and has one 13gb partition for internal SD combined. I can get the vold.stab for you to look at if your interested? Please
Sent from my GT-I9100 using XDA Premium HD app
will try bro ....
Sent from my GT-I9100 using XDA Premium 4 mobile app
brainbeatuk said:
Hi I was wondering if you could make one for my leveno a3000 it is using fuse and has one 13gb partition for internal SD combined. I can get the vold.stab for you to look at if your interested? Please
Sent from my GT-I9100 using XDA Premium HD app
Click to expand...
Click to collapse
Will see what i can do.. have you try modify your a3000 vold.fstab before ?
mohaxs said:
will try bro ....
Sent from my GT-I9100 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This for you Bro
1. Tinggal hapus script nya aja gan di system/etc/init.d file nya "swapFIXcm11" lalu reboot
2. kalo ane sih ga ada yg ilang.. cuman seperti yg ane rekomen di trit baik nya backup aja data-data agan yg di rasa perlu.. cuman buat jaga-jaga aja..
nanti gunain trit aja ya gan buat diskusi nya, karena lebih banyak yang bisa bantu agan
No I haven't touched it as I don't have confidence, I hallways break things lol I have pm you the details
Sent from my IdeaTab A3000-F using XDA Premium HD app
brainbeatuk said:
No I haven't touched it as I don't have confidence, I hallways break things lol I have pm you the details
Sent from my IdeaTab A3000-F using XDA Premium HD app
Click to expand...
Click to collapse
Try swap /storage/sdcard0 and /storage/sdcard1 in your vold.fstab using root explorer or notepad , i think it will swap your sd..
Didn't work like that but I found workaround. I mount sdcard1 and didn't mount a 2nd card. Now internal shows 13gb capacity 3.5 free with 33gb app data. So works well I cannot move apps to SD as I think the ROM is made without option. Also titanium backup still shows it as extsd. Anyways thanks for the spur to try it out. I'll see if I can modify your script
Edit: It didn't work as planned my way as it still was downloading internally, I am now back to normal using link2sd and foldermount pro, actually I try move apps to SD using native2sd option in link2sd. App told me native2sd is unavailable as internal SD card is emulated from internal nand. Thanks for ya help though I presume my ROM isn't asop, even in app settings there no option to move to SD, only games like gameloft ever put data there, which I am then bind mounting extsdcard/obb over, only foldertmount can do bind though, my android tuner script doesn't work ever.
Sent from my GT-I9100 using XDA Premium HD app
:crying:
This script was working on slimkat 4.4.2 .. (by slimroms)
now i'm using slimkat 4.4.4 and the script is not working.
nothing happen after reboot the phone
Can someone help me?
Galaxy S2 i9100\slimkat 4.4.4
thats a good script, so usefull
Works fine on NamelessRom KK 4.4.4
This script is perfect for the NamelessRom 4.4.4 KitKat based, Tnx! (i9100P)
Hi i'm glad this script work for you all guys..
Noriyuki_Fariz said:
Happy new year for everyone here..
First of all sorry if my english bad..
Helo S2 community i'm new here..
i was silent reader in this great XDA Dev-site for a year.. now i'm decide to join XDA for sharing a cool stuff i have for you all.. and for help other too if i can..
i found this script in this page :
forum.xda-developers.com/showthread.php?t=2584862
Credit goes to script maker Souffre..
i only make dev/block mount point to work with our i9100.. i have tested this script and so far working good.. tested binding Real Racing 3 folder and running game without problem.. but for safety make a backup your sdcard content to pc, backup internal & external sdcard, cwm backup too if necessary..
this script will placed to your system/etc/init.d folder
tested with CM11 by infected Nightly 20140101..
Click to expand...
Click to collapse
Hi,
I've tried this mod while using xiaomi.eu_multi_GT-I9100_4.9.19_v5-4.4, and it's working flawlessly
Thanks Noriyuki_Fariz for an awesome mod!!

Categories

Resources