[Q] Howto install apps via update_script - Desire Q&A, Help & Troubleshooting

Hi,
i am actually trying to install apps via an update_script. But it doesnt work like i thought it would^^
i have a zip-file containing the following structure:
Code:
/META-INF
/META-INF/com
/META-INF/com/google
/META-INF/com/google/android
/META-INF/com/google/android/update_script
someapp.apk
my update_script:
Code:
show_progress 0.1 0
mount("MTD", "userdata", "/data");
mount("MTD", "system", "/system");
show_progress 0.1 3
run_program("/system/xbin/busybox", "install", "*.apk", "/data/app");
show_progress 0.1 6
unmount("/data");
unmount("/system");
show_progress 0.1 10
but actually after reboot there is no installed app!
what is going wrong? did i missunderstand the usage of busybox out of an update_script?
and yes, i already tried google -.-
i dont want to just move the apk to /data/app, because it is installed in the system, but does not appear in the market and there wont be any updates then.
hope u can help me
device info
------------
Desire GSM (AMOLED-Display)
Hboot 0.83
Radio 32.56.00.32U_5.17.05.08
ClockwerkMod Recovery 2.5.0.7
ROM: InsertCoin Sense 2.1 1.0.3 A2SD

if you need further information, feel free to ask

hi, mhm ... why not using adb?
anyway had you cleared all data from the market-app after you installed it by pushing?
because sometimes this is an solution
other thing is just try to reinstall it over the market
or i just dont get what you mean

ok. i dont use adb, because im trying to create a .zip file, in which any users/friends can put .apk and install them by flashing the .zip through CM recovery.
well plz dont ask for the sense behind it, but it is a good practice do get a bit more involved in scripting and understanding ROMs and customizing
i dont cleared the data from the market app. maybe thats the point.. i'll give it a try when i have some more time than now at work.
but it is the same thing when u repack any ROM. if u add/delete apps, they wont show in the market and so u are not able to get updates for it.
anyway thanks for the answer!

Related

[Q] Needed: Idiots guide to updating system apps

In a lot of the custom roms threads I see that people are always asking the cooks to update the system apps as soon as a new one is released.
Rather than us users constantly hassling the cooks to do this, could somebody post an 'idiots' guide how to update the system apps ourselves?
I have seen a few threads about how to remove apps using adb, but none on how to update them.
Any help would be appreciated, not just by the users, but probably by the overworked cooks too
Cheers.
EDIT: by this I mean a way to update the apk in the system folder rather than the date to save space on the phones memory.
One way is to open the market and click on the 'downloads' link at the top and it will give you a list of installed apps and the ones highlighted in red have updates.
Another way is to search the market or a free app called 'aTrackDog' which will check all your apps for updates.
Thanks, but that is not what I meant. I should have made it clearer in my question.
What I want is this: a way to update the applications so that the updated apk goes into the system folder rather than the data folder. That way the update doesn't take up any more of the precious space on my phone.
I'll edit the OP to show this.
But thanks anyway for your help.
Don't you mean the fact that certain apps included in roms cant be updated. Only possible by flashing an updated version of that rom.
Wrong section.
prodygee said:
Don't you mean the fact that certain apps included in roms cant be updated. Only possible by flashing an updated version of that rom.
Click to expand...
Click to collapse
No, that's not true. Often when a cook produces their own rom they will release an "Update pack" when a system app has been updated (such as Flash or Maps). For an example, see here under 'updated system apps':
http://forum.xda-developers.com/showthread.php?t=773997
What I am asking for is if anybody knows how to use adb to update apps on the system partition. When updating from the market a the update takes place on the data folder, not the system one.
Ta.
scutworker said:
No, that's not true. Often when a cook produces their own rom they will release an "Update pack" when a system app has been updated (such as Flash or Maps). For an example, see here under 'updated system apps':
http://forum.xda-developers.com/showthread.php?t=773997
What I am asking for is if anybody knows how to use adb to update apps on the system partition. When updating from the market a the update takes place on the data folder, not the system one.
Ta.
Click to expand...
Click to collapse
do you mean by example
Code:
adb push Vending.apk /system/app
adb reboot
TomLeeDesire said:
do you mean by example
Code:
adb push Vending.apk /system/app
adb reboot
Click to expand...
Click to collapse
That is something like it. What I want is a guide to what to do to update these apps when an update is out in the market place. Something like being able to update the app from the market, but then move the new apk to the system folder so to save space on data.
Thing is, if you're using a cooked ROM you're likely to be using A2SD+ which makes the need to not have system updates redundant as you've got your EXT partition. The other way would just be to edit the original ZIP file and reflash the ROM without a wipe
EddyOS said:
Thing is, if you're using a cooked ROM you're likely to be using A2SD+ which makes the need to not have system updates redundant as you've got your EXT partition. The other way would just be to edit the original ZIP file and reflash the ROM without a wipe
Click to expand...
Click to collapse
That is not entirely true, even though I sport A2SD+ (and it's 1/3 free) my /data is always begging for room... I'm always at the 15MB-free-limit.
Then you've either got a LOT of apps storing data or something's not right
Small dirty 0.1beta guide
I'll use teppic's update zip as example (hope he doesn't mind), sample of his updateapps.zip can be found in this thread -> http://forum.xda-developers.com/showthread.php?t=773997
1. Install the update from Market, then open Appmonster and backup it on SD. After that, uninstall the update, to free up space.
2. Open the update.zip with WinRar (don't unpack it), you'll see 2 folders
META-INF
system
Open the inside of META-INF till you get to update-script and open it for editing, here's the example:
Code:
show_progress 0.1 0
delete SYSTEM:app/YouTube.apk
delete SYSTEM:app/YouTube.odex
delete SYSTEM:app/Facebook.apk
delete SYSTEM:app/Facebook.odex
delete_recursive DATA:data/com.android.vending
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
show_progress 0.1 10
Replace/add/remove .apk's (you can add .apk without .odex) in this list, as those commands will delete existing apps from /system/app on phone
The rest of the script will copy the content of the other folder you saw before (system with subfolder app), so you want to add/remove apk's you like to there. Remember to use WinRar's function to add the file to archive, everything done here's is inside of the archive. When you're done, save the update-script, check everything again and close WinRar.
3. Flash the zip ;]
or do it manually:
h_ttp://forum.cyanogenmod.com/topic/8067-how-to-manually-update-system-apps/
EddyOS said:
Then you've either got a LOT of apps storing data or something's not right
Click to expand...
Click to collapse
I do think A LOT fits (about 300 apps installed)...
That's exactly what I wanted.
Thanks for the help, everybody.
Does this work on a Rooted (Unrevoked) phone with HTC's Original Froyo?
- I've been following teppic74's thread for some time now, and for every app that get an updated I get closer to flashing his ROM... but if I can just update my apps I wouldn't have to go through the process of reinstalling everything else after...
gosa said:
Does this work on a Rooted (Unrevoked) phone with HTC's Original Froyo?
- I've been following teppic74's thread for some time now, and for every app that get an updated I get closer to flashing his ROM... but if I can just update my apps I wouldn't have to go through the process of reinstalling everything else after...
Click to expand...
Click to collapse
Sure thing.
thed0g said:
Sure thing.
Click to expand...
Click to collapse
Nice!
That means my weekend is saved, I 'm gonna give myself some updates!
- Thanks!
One thing...if using the push and pull commands in adb to move the apk files to the system partition, what happens to the .odex files? Do you move them as well?
scutworker said:
One thing...if using the push and pull commands in adb to move the apk files to the system partition, what happens to the .odex files? Do you move them as well?
Click to expand...
Click to collapse
.odex files are only on some custom rom's, you probably dont have them.
Hello again...
I kind of never got around to doing this last weekend - both because lack of time but also because the more I read the more worries I have. (Don't know when I lost my "gung ho" attitude, but age seems to turn me into a chicken...)
Anyway - I wanted to ask one important question.
How do I keep an eye on the space I have available for updating my apps? What if the updates are so much larger than the apps I'm replacing, what will happen then?
I read in teppic74's thread that he recommended some adjustments to save space, but how do I know what I have to "play" with? Is there a good app to read available space in "system"?
Thanks in advance,
gosa

[MOD][A2SD] Apps2sd-Simple v2 - G2/DZ Flashable Zips ANY-ROM

Pretty simple.
A rom with busybox, and init.d support are required.
all zips assume normal mmcblk1p2 ext partition on your sdcard.
If you have completely wiped your device flash this (WIPE):
apps2sd-simplev2-G2-DZ-WIPE.zip - sets up /data/app /data/data and dalvik-caches on ext partition
If you have apps in /data and want to keep them, but switch to apps2sd, flash this (NO-WIPE):
apps2sd-simplev2-G2-DZ-NOWIPE.zip - moves all apps installed to ext, moves all app data installed to ext, moves dalvik caches to ext, fixes permissions after moving depending on how many apps you have this takes a LONG TIME the be patient message should be followed, you can open adb shell during the update and check the sd-ext with df -h to make sure it's growing (give it twenty to thirty second between df -h runs) I flashed this with about 400mb of apps and data, booted perfectly. YMMV
after flashing your favorite rom update (no-wipe updates with roms that DO NOT PROVIDE APPS2EXT Support already, or you will need to disable this function first) flash this (MOUNTEXT):
app2sd-simplev2-mountext-G2-DZ.zip - creates a mount script that has more luck than the provided 05mountsd from cyanogen.
whats happening under the hood?
well i used a very common way of implementing apps2sd with symlinks. the fun part was having the updater-script pretty much do the whole process. instead of making a script and having that executed by the updater-script i used the updater-script itself to perform the scripting.
example (NO-WIPE)
Code:
assert(getprop("ro.product.device") == "vision" || getprop("ro.build.product") == "vision" || getprop("ro.product.board") == "vision");
run_program("/sbin/busybox", "mount", "/dev/block/mmcblk0p26", "/data");
run_program("/sbin/busybox", "mount", "/dev/block/mmcblk0p25", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0777, "/system/etc/init.d/05mountsd");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Simple APPS2SD");
ui_print("Hope you made a backup of /data!!");
run_program("/sbin/busybox", "mount", "/dev/block/mmcblk1p2", "/sd-ext");
delete_recursive("/sd-ext/data/app/");
delete_recursive("/sd-ext/data/data/");
delete_recursive("/sd-ext/data/dalvik-cache/");
ui_print("Destroying dalvik-cache...");
delete_recursive("/data/dalvik-cache/");
delete_recursive("/cache/dalvik-cache/");
ui_print("Creating external data folders...");
run_program("/sbin/busybox", "mkdir", "-p", "/sd-ext/data/dalvik-cache");
ui_print("Moving existing apps.. BE PATIENT.");
run_program("/sbin/busybox", "cp", "-R", "/data/app", "/sd-ext/data");
run_program("/sbin/busybox", "cp", "-R", "/data/data", "/sd-ext/data");
delete_recursive("/data/data/");
delete_recursive("/data/app/");
ui_print("Linking directories...");
run_program("/sbin/busybox", "ln", "-s", "/sd-ext/data/app", "/data/app");
run_program("/sbin/busybox", "ln", "-s", "/sd-ext/data/data", "/data/data");
run_program("/sbin/busybox", "ln", "-s", "/sd-ext/data/dalvik-cache", "/data/dalvik-cache");
run_program("/sbin/busybox", "ln", "-s", "/sd-ext/data/dalvik-cache", "/cache/dalvik-cache");
run_program("/sbin/chown", "1000:1000", "/data/app");
run_program("/sbin/chown", "1000:1000", "/data/data");
run_program("/sbin/chown", "1000:1000", "/data/dalvik-cache");
run_program("/sbin/chown", "1000:1000", "sd-ext/data/app");
run_program("/sbin/chown", "1000:1000", "/sd-ext/data/data");
run_program("/sbin/chown", "1000:1000", "/sd-ext/data/dalvik-cache");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Fixing permissions...");
set_perm(0, 0, 0777, "/sbin/fix_permissions");
run_program("/sbin/sh", "/sbin/fix_permissions");
ui_print("Done, give it a whirl.");
is this easier? no way. could have just done a script in two minutes, but where's the fun in that?
the mountext zip is for situations where you already have links setup, you just need to reflash /system for some reason (update, weirdness etc) just flash this directly afterward, and unless you wiped data you should be able to boot right back up.
why make flashable zips? a request, also people want this for rom's that don't natively support it, works on almost any rooted rom. i cant be sure of sense roms, but it shouldnt be any different.
Have fun everyone. let the flaming begin (for some reason my threads just attract trolls, go figure..)
i tested these for hours, seem to be working as planned, MAKE A BACKUP. if you dont, dont come a cryin'.
I don't endorse using external sd partitioning on the g2, but i'll try to stay up with suggestions or fixes should problems arise.
Perfect! Thanks for developing tjis flash
Sent from my HTC Vision using XDA Premium App
The only reason I've started using sd-ext is because I was getting the dreaded installation failed due to not enough space message, or something to that effect, even though there was plenty of space reported on the phone. Don't know if it's a CM7 bug or what, but I've run in to it multiple times. Thanks for this, I'll play with it and see if it does me well!
How long should it take for the phone to boot up after the no-wipe method?
SomEngangVar said:
How long should it take for the phone to boot up after the no-wipe method?
Click to expand...
Click to collapse
On a really terrible sdcard I used last night it was upward of twenty minutes, but I was watching a logcat to be certain that it was moving forward and not looping. As long as the boot animation isn't restarting you should be alright. Using a slow sdcard will seriously degrade performance though.
Run a logcat during boot if in doubt, or run ddms.
amazinglarry311 said:
On a really terrible sdcard I used last night it was upward of twenty minutes
As long as the boot animation isn't restarting you should be alright.
Click to expand...
Click to collapse
I would think a class 4 would be fine? I'm just asking because it spent a lot of time on the splash screen.
SomEngangVar said:
I would think a class 4 would be fine? I'm just asking because it spent a lot of time on the splash screen.
Click to expand...
Click to collapse
The one I was using said it's a class four, the class 2 that came with the device is way faster, I'm pretty sure the c4 card I have has some bad or dead blocks, it's only a matter of time, that or the manufacturer is full of **** and it isn't really a c4.
Like I said, if in doubt watch a logcat and make sure it isn't repeating.

[Q]When insering apps into a rom build, how to prevent the market reboot issue?

So, after compiling my rom, when having 3rd party apps in the Data/App folder of the rom, once installed and running, when installing apps from the market, or downloading anything in general it causes the infamous reboot issue (due to what seems to be a permissions issue for the cache).
Simply putting those apps into the system app folder, once installed, will cause the programs to error out when starting (eg: rom manager, google earth, and the shadow galaxy live wallpaper)
So here's a question to all dev's
when building your roms, have you come across that issue, and how did you manage to fix it?
(im still new to dev'ing, and no, im not using a kitchen, but doing it the hard way and just typing up code)
also, If anyone knows how to in the mns/default.xml choose a live wallpaper rather than a fixed wallpaper, please let me know
Would simply adding
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
to the begining of the updater-script with the symlinks work?
Edit: Well I seem to have answered my own question again, doing this works. lol

I have been Hacked!

Yeah..as the title says.. 3 weeks ago this hacker hacked into my network..
placed rootkits in all my 3 computers and then hacked its way to my Desire and my wifes iphone. good thing i had wireshark running same time.
So.. 5 units hacked with the method in like 1 houre. Bad luck for me i guess.
And kaspersky didnt give me any warnings at all. bye bye kaspersky.
Anyway... i flashed my desire's HBOOT just to be sure. after i did a check with "AutoKiller Memory Optimizer" all kinds of malware services was attached to most of my apps.
1- downgraded HBOOT
2- flashed stock HBOOT from alpharev
3- Changed recovery from CWM to 4EXT as i suspected the recovery being infected somehow.
I checkd my log... the hacker had removed some files and moved shell files from an folder to another as well as busybox and so on. it was so many i thought il be better of installing new ROM.
I tried with Gingervillain first... everything installed fine..
checking with "root explorer" i see same files that had been moved and added was still there.
OK.. i tried again..
full wipe with 4ext and then installed Runnymede.. still.. when i check my root partition most of the files still there and i get same results doing a root check.
any idees...? im not sure if my kernel is right. it should be, when i installed Runnymede. when checking kernel v.
it says.. "[email protected] #11"
May be kernel rootkit? does the kernel start before recovery?
can someone plz confirm this?
baseband seem to be the same
any advise as for how to start from scratch will be much appreciated.
Clawsman said:
full wipe with 4ext and then installed Runnymede.. still.. when i check my root partition most of the files still there and i get same results doing a root check.
Click to expand...
Click to collapse
Full wipe wipes /cache, /data and /sd-ext to my knowledge. There is a possibility some of the files remain on /system. Use 4EXT to manually format each partition using format option.
Clawsman said:
it says.. "[email protected] #11"
Click to expand...
Click to collapse
That seems in order. Long name in attach marks modules added to that kernel.
Sent from my HTC Desire using Tapatalk
Ok
well.. i did the format manually in 4EXT.
I suspect some files still to be there..also some boot files containing malware script.
what file contains the boot script? i mean.. what file is the first to be triggered when booting in HBOOT. because many things in the recovery doesnt seem right. and the hboot fastrecovery starts with a delay.
Like when i want to partition or when i want to format all partitions except sd. Acts like it doesnt want to.
Anyway.. was just wondering if i could just adb and delete every file folder that is in in my phone and then flash recovery and ROM again.
Is that what RUU does?
is that something to recomend?
RUU is complete wipe of everything. /system, /hboot etc.
Download the correct one for your phone, *follow its instructions* (may need a gold card - google it) and run it on a clean pc.
Clean your pc ie format and reinstall after taking backups.
Then start again wit ha new hboot/rom setup.
Is that even possible? Infecting an Android phone via a Wi-fi network?
And Recovery shouldn't be able to get infected. I think ONLY /data can, and eventually /system if it's mounted as RW.
But on a wipe data gets deleted, and on a ROM install /system and boot (which holds the kernel and ramdisk) is deleted anyway.
RADIO starts before HBOOT. And there's absolutely no way they can be infected.
To be safe:
fastboot erase cache
fastboot erase system
fastboot erase boot
fastboot erase recovery *OVERKILL*
Then just do fastboot flash recovery {RECOVERY}
And there's nothing more you must do. HBOOT reflashing is 100% pointless.
Maybe top-notch hackers are shifting their interest from hacking NASA, FBI and similar organizations in the US to hacking Android phones. Or maybe it's one of their favourite ways to have fun in their idle time. Who knows?
Anyways, here's a Thanks from me, mr. Andrei, for your contribution to this community.
TVTV said:
Maybe top-notch hackers are shifting their interest from hacking NASA, FBI and similar organizations in the US to hacking Android phones. Or maybe it's one of their favourite ways to have fun in their idle time. Who knows?
Anyways, here's a Thanks from me, mr. Andrei, for your contribution to this community.
Click to expand...
Click to collapse
I do what i can. There are many devs that know much more than me. Your thanks are appreciated
For me it's still strange, tho. Only data and system could be "infected"
Take a look at this: http://forum.xda-developers.com/showthread.php?t=1399076
It's a scheme i made on how HTC and Nexus devices work. (How they boot, what are the individual partitions, etc)
Clawsman said:
Yeah..as the title says.. 3 weeks ago this hacker hacked into my network..
placed rootkits in all my 3 computers and then hacked its way to my Desire and my wifes iphone. good thing i had wireshark running same time.
So.. 5 units hacked with the method in like 1 houre. Bad luck for me i guess.
And kaspersky didnt give me any warnings at all. bye bye kaspersky.
Anyway... i flashed my desire's HBOOT just to be sure. after i did a check with "AutoKiller Memory Optimizer" all kinds of malware services was attached to most of my apps.
1- downgraded HBOOT
2- flashed stock HBOOT from alpharev
3- Changed recovery from CWM to 4EXT as i suspected the recovery being infected somehow.
I checkd my log... the hacker had removed some files and moved shell files from an folder to another as well as busybox and so on. it was so many i thought il be better of installing new ROM.
I tried with Gingervillain first... everything installed fine..
checking with "root explorer" i see same files that had been moved and added was still there.
OK.. i tried again..
full wipe with 4ext and then installed Runnymede.. still.. when i check my root partition most of the files still there and i get same results doing a root check.
any idees...? im not sure if my kernel is right. it should be, when i installed Runnymede. when checking kernel v.
it says.. "[email protected] #11"
May be kernel rootkit? does the kernel start before recovery?
can someone plz confirm this?
baseband seem to be the same
any advise as for how to start from scratch will be much appreciated.
Click to expand...
Click to collapse
An example of those infecting file?? What file in your root partition?? What path? Rom files are only on /system
Inviato dal mio Galaxy Nexus usando Tapatalk
I never use a anti virus and until now never have a problem...As i know!
Well it happened to me..
I have deleted everything.. I remember i checkd my log, and busybox files was moved to the system folder.. And all kinds of services was attached to Google map, calender, Facebook, wifi apps, market, etc..
And new apps installed like vpn, cam apps, recorders.. etc
Im currently using the free lookout...
And want to Buy a security tool.
Any advice Will be much appreciated.
Sent from my HTC Desire using xda premium

[KERNEL MOD] Get unlimited space in /system partition ! [FOR ADVANCED USERS ONLY]

Hello all,
I recently joined the Marvellous Team, and we started working on a Sense 5 port.
The problem was that Sense 5 is a little bit huge. I mean, about 886 MB. So we would have to reduce a lot the size and nearly de-sense the ROM, which is absolutely pointless as we want Sense 5
So we thought we could try to link some system folders to /sd-ext. I already tried, but never with succes, because of many things like permissions, mounting, etc.
Now, I thought about one thing that would be great : mounting the whole /sd-ext partition to /system ! @thehacka1 and I worked a lot on the kernel, and finally it works ! You can see in the screenshot posted, I have 530 MB of system partition
HOW TO DO IT
We have to mod the kernel. I used to do everything myself (with a lot of commands and scripts) but then I found out that it absolutely didn't work because the kernel wasn't repacked correctly So I advice you to use @dsixda 's Android kitchen that you can found here.
Step 1
Install the latest version of the kitchen
Create a working folder with the ROM zip you want to patch
Go to advanced (0) then boot image options (12)
Uncompile the kernel
Step 2
Here we do the most important thing... Editing init.rc.
Open init.rc with your favourite editor and look for the lines
Code:
mount yaffs2 [email protected] /system
mount yaffs2 [email protected] /system ro remount
.
Delete them and replace them by
Code:
mount ext4 /dev/block/mmcblk0p2 /system
.
Save and voila ! You have done the most difficult part of the job
Step 3
Create a folder BOOT-EXTRACTED in the folder of the kitchen
Put the extracted and modded boot.img in it
Go back to the kitchen's boot image tools
Repack the kernel
Step 4
Here your are ! You have the kernel. Let's edit the ROM zip now.
Open your updater-script, and replace
Code:
format("yaffs2", "MTD", "system", "0", "/system");
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("system", "/system");
by
Code:
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/system");
run_program("/sbin/busybox", "rm", "-rf", "/system/*");
package_extract_dir("system", "/system");
If I were you, I would also remove all the lines with tmpbackuptool. INFO by thehacka1 : do this only if you are porting a rom
Replace the boot.img in the zip by your new boot.img and you're done
I forgot to say : with this mod, the system is mounted as writable If you want to mount it read-only, add
Code:
mount ext4 /dev/block/mmcblk0p2 /system ro remount
after
Code:
mount ext4 /dev/block/mmcblk0p2 /system
DEVICE COMPATIBILITY
This mod should work for every device. If you use it for your ROM, please just give a link to this thread
What you need to know is that, for non-MTD based devices, there will be no line like
Code:
mount yaffs2 [email protected]
but lines like
Code:
mount yaffs2 [email protected]
or something like that.
Maybe, if your device isn't the WildFire S (poor you ), your sd-ext is not /dev/block/mmcblk0p2. I let you modify as you want and you can post here the path for other devs !
BE CAREFUL
This mod may not work. I am not responsible for anything that could happen to your device. This mod may eat your cat. It may eat your family. It may bring you back to the future. I don't care. If you complain about the fact that it broke your device, I will only laugh at you. You're warned Do it at your own risk !
Click to expand...
Click to collapse
I didn't test all the cases. Maybe there will be bugs if everything is not unmounted or wiped.
After modding your rom like that, you won't be able to use any something2sd tweak. I shal certainly mod one to work with a third sd partition, but not now. You won't be able to flash any scripts that install things in /system without modding them. It is easy : replace
Code:
mount("yaffs2", "MTD", "system", "/system");
by
Code:
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/system");
in the updater-script.
This mod is for developers and advanced users ! Here is not a place for asking questions about how to decompile a kernel
CREDITS
dsixda for his amazing kitchen
thehacka1
thehacka1
thehacka1
thehacka1 who took all the risks for testing this mod, including bricking his own phone !
thehacka1, whom I told that he would be named 5 times in credits if this mod worked
All the Marvellous team people (you're so great guys )
Does it make it slower if you have a bad sdcard?
Btw AWESOMEEEEEEEE
Sent from my HTC "Marvellous" WFS
Guitarfreak12 said:
Does it make it slower if you have a bad sdcard?
Btw AWESOMEEEEEEEE
Sent from my HTC "Marvellous" WFS
Click to expand...
Click to collapse
Certainly. It will slow down the phone I think. But I didn't test a lot after flashing... This is mostly for development purposes
izi501 said:
Certainly. It will slow down the phone I think. But I didn't test a lot after flashing... This is mostly for development purposes
Click to expand...
Click to collapse
Great work guys
Awesome work guys , I needed it to load more system apps btw best of luck for sense 5 , my jimmies are unrustled
You mother ****ing genious izi. It finally worked. Come on Hangouts. We can now talk sense 5. You also need to give me that kernel.
EDIT: People only remove backuptool lines if you are porting a rom. If you are trying to do this for a rom that's already there then you don't need to remove those lines. You just need to mount sd-ext to system.
May be its only for s-off... Right???
Sent from my HTC Wildfire S A510e using xda app-developers app
finance.resat said:
May be its only for s-off... Right???
Sent from my HTC Wildfire S A510e using xda app-developers app
Click to expand...
Click to collapse
I actually don't think so mate. It is just a kernel mod.
Sent from my HTC "Marvellous" WFS
finance.resat said:
May be its only for s-off... Right???
Sent from my HTC Wildfire S A510e using xda app-developers app
Click to expand...
Click to collapse
I'm S-ON and it works for me
I don't think I will make a CronMod script modded now, because I tried to partition my sd card with a third partition, and I realized that it will need a modded recovery to wipe it and backup it.
If someone wants to do it, the third partition is /dev/block/mmcblk0p3.
Envoyé depuis mon HTC FeuSauvage S avec CM10.1 et Tapatalk 4
izi501 said:
I'm S-ON and it works for me
I don't think I will make a CronMod script modded now, because I tried to partition my sd card with a third partition, and I realized that it will need a modded recovery to wipe it and backup it.
If someone wants to do it, the third partition is /dev/block/mmcblk0p3.
Envoyé depuis mon HTC FeuSauvage S avec CM10.1 et Tapatalk 4
Click to expand...
Click to collapse
@JDevs might include that in next update of owlmod :good:
cyb3r.pr3dat0r said:
@JDevs might include that in next update of owlmod :good:
Click to expand...
Click to collapse
Maybe He musts get bored with all our requests Moreover he's in travel for now so he can't.
But you can always do that with ADB... It's just annoying because it needs a PC, USB drivers, and all.
Any chance to release a flashable zip?
LucidSomnia said:
Any chance to release a flashable zip?
Click to expand...
Click to collapse
It isn't possible, because the flashable zip would contain the whole kernel. I would have to release a flashable zip for every Android version, and for every ROM with a custom kernel So it is easier to ask the dev of your ROM to propose a modded kernel with this mod.
izi501 said:
It isn't possible, because the flashable zip would contain the whole kernel. I would have to release a flashable zip for every Android version, and for every ROM with a custom kernel So it is easier to ask the dev of your ROM to propose a modded kernel with this mod.
Click to expand...
Click to collapse
can we mount /data to /dev/block/mmcblk0p2 too ?
cyb3r.pr3dat0r said:
can we mount /data to /dev/block/mmcblk0p2 too ?
Click to expand...
Click to collapse
No, not on the same partition. But what is possible is to mount /data to a third SD partition (/dev/block/mmcblk0p3) or even to the original system partition ([email protected]). You can play a bit with the mount commands.
I tried to mount /data fully to sd-ext, but it slowed down the phone A LOT (AOSP from @thehacka1, without anything installed, was very laggy) and then the phone didn't reboot
And a third SD partition would need a modded recovery to wipe it and backup it. Certainly it only needs to mod a bit TWRP, but I don't have the time nor the will to do it You can wipe it and backup it yourself, it isn't very difficult, just takes more time.
cyb3r.pr3dat0r said:
my jimmies are unrustled
Click to expand...
Click to collapse
U aware?

Categories

Resources