[GUIDE] Halting firmware updates and their notifications - Verizon Samsung Galaxy S 4

This gets asked quite often so I decided to make a guide on how to do this. It's a very simple process and you will need something to either freeze the .apk or something to rename it. You will also need to be rooted.
Freezing:
Titanium Backup
Rom Toolbox
Renaming:
Root Explorer
ES File Explorer
The file you will be freezing/renaming is titled SDM.apk, it is located in the system/app directory. Navigate there and freeze/rename with your app of choice. If you're going the renaming route, rename it to sdm.apk.bak, or anything else you would like as long as you change the file extension. If anyone wants a different application added to list post here or PM me and I will add it. I just listed those because they're some of the popular ones and I have used all of them myself at one time or another.

Hi, is this process make stop any apps updates and update notitfications, because except title you didn't say anything about it?

blackfire74 said:
Hi, is this process make stop any apps updates and update notitfications, because except title you didn't say anything about it?
Click to expand...
Click to collapse
No this is for the ota updates
Hit thanks if I helped you out. Doing a little bit of reading goes a long way. Sent via tapatalk. now Free

Related

[Solved][Q] .apk file questions

Hi everyone! I'm still relatively new to all these customizations that can be made on these phones, and I am curious about all these .apk files I keep seeing around. Everyone time one is posted, it says to push it to your phone to replace whatever file is there... The thing is, every time I read about it I find a new way of doing it. Some say to use root explorer, some say SGS tools app, some say to use easy installer, and I think I've even read to use ADB? I just was wondering what's the best method? Easiest method? Can you screw your phone up by replacing these files? I keep reading things like if you want to switch a camera in your ROM to a different version, just install the .apk! Or, if you want to use live wallpapers in a ROM that doesn't come with it, here is the .apk for that!
Any help is much appreciated!
Thanks guys!
tarastaryo said:
Hi everyone! I'm still relatively new to all these customizations that can be made on these phones, and I am curious about all these .apk files I keep seeing around. Everyone time one is posted, it says to push it to your phone to replace whatever file is there... The thing is, every time I read about it I find a new way of doing it. Some say to use root explorer, some say SGS tools app, some say to use easy installer, and I think I've even read to use ADB? I just was wondering what's the best method? Easiest method? Can you screw your phone up by replacing these files? I keep reading things like if you want to switch a camera in your ROM to a different version, just install the .apk! Or, if you want to use live wallpapers in a ROM that doesn't come with it, here is the .apk for that!
Any help is much appreciated!
Thanks guys!
Click to expand...
Click to collapse
You CAN screw your phone up if you do it to the wrong APK (like /system/framework/framework-res.apk, if you install a bad one, your phone won't boot, but there is an easy fix, nandroid!).
Basically all the methods do the same thing. In Android "Installing" an app is as easy as moving it to the correct location. All of these methods do just that.
The easiest way IS to probably use Root Explorer because you can rename the old one just in case, and it will handle the system read/write mounting for you. Plus GUIs are always easier.
So here's how it works: user apps go in /data/app, and system apps go in/system/app. User apps can't really mess anything up, but be careful with System ones. Live wallpapers, things of that nature usually don't hurt. Camera is ok to mess around with, too.
Edit: my ramblings are probably confusing, don't hesitate to ask me to clear something up
usually most apk files can be installed easily by transferring the file to the root of your internal sd card then go to MY FILES locate the apk file and click on it and it will ask you to install. Thats it. You can also root explorer and just place it in the system/app folder then reboot. I install all of my apks through the first way I mentioned. On my wife's Mytouch4g there is no my files so use Astro file manager. Come to think of it any file manager from the market will do. Good luck...
tarastaryo said:
Hi everyone! I'm still relatively new to all these customizations that can be made on these phones, and I am curious about all these .apk files I keep seeing around. Everyone time one is posted, it says to push it to your phone to replace whatever file is there... The thing is, every time I read about it I find a new way of doing it. Some say to use root explorer, some say SGS tools app, some say to use easy installer, and I think I've even read to use ADB? I just was wondering what's the best method? Easiest method? Can you screw your phone up by replacing these files? I keep reading things like if you want to switch a camera in your ROM to a different version, just install the .apk! Or, if you want to use live wallpapers in a ROM that doesn't come with it, here is the .apk for that!
Any help is much appreciated!
Thanks guys!
Click to expand...
Click to collapse
An apk is a specialized application file used by android (uses the same file headers as .zip files).
You are correct that there are various methods to push or move apk's to appropriate directories with in the phone. now as to which is easier or best, all methods work about the same, though there are minute differences.
If you want to move apk's into a certain directory while using a phone i find it easiest to use a file manager like root explorer that has root permissions to move apks around. keep in mind that when moving system files most often you will have to reboot for the changes to take effect with out bugs.
If instead you want to use a computer personally i find ADB to be the easiest. After installing the android sdk you will have to navigate into the android sdk directory then to the platform-tools directory within the android sdk folder. then in command prompt type " adb push <directory of file on your computer> /<directory of where you want it on your phone> hit enter and all is gravy. keep in mind that pushing/moving files to your phone using adb works the best when in recovery mode.
as to which of these operations is the best is a personal decision personally i like to use adb to move around system files and root explorer for applications.
hope this helps
Thanks guys!! Ok, so just to be sure. I'm currently running the Malice rom, and somewhere in the threads is the LiveWallpaperPicker.apk
So all I have to do is download this, place it on the root of my internal SD card, go into file manager and find it, click on it, and it will ask me to install it? It's really that easy??
Or, should I download root explorer and copy and paste it to a specific place?
tarastaryo said:
Thanks guys!! Ok, so just to be sure. I'm currently running the Malice rom, and somewhere in the threads is the LiveWallpaperPicker.apk
So all I have to do is download this, place it on the root of my internal SD card, go into file manager and find it, click on it, and it will ask me to install it? It's really that easy??
Or, should I download root explorer and copy and paste it to a specific place?
Click to expand...
Click to collapse
For that file you will need to place it in /system/app (it can't be installed normally because it's a system app). So you need something like Root Explorer
I think EStrongs File explorer is a decent free alternative, but when I tried it a couple months ago I had no luck with it so I just bought Root Explorer (good investment)
The guide in my signature touches on this, but BT has you covered. I am also a huge advocate of Root Explorer.
Just take the .apk, move it to system/apps and I reboot, but it may not be necessary... no need to click on it and select install, as BT referenced.
Thanks so much everyone! Just purchased root explorer and will try this out.
IT WORKED IT WORKED IT WORKED!!!!!!!!!!!!!!!!!!!!
After I rebooted, none of my widgets could load, but I have live wallpapers again! I love learning new stuff! Thanks sooooooooooooooooo much! You guys are the BEST!!!
Odd about the widgets. Were you able to just remove them and re-add them back?
Yep, just deleted them off my home screen and added them back again. All of them had errors saying widget could not load

[Q] Over the air updates

I'm sorry if this was posted somewhere else, but I searched and nothing came up. When you root your phone does that mean you no longer can receive over the air updates? Or is that only if you have custom ROM's installed? That being said, is the ROM that you install to gain root access considered a custom ROM? Sorry... I feel like a n00b but I had to ask. :] Thanks
Trevlo said:
I'm sorry if this was posted somewhere else, but I searched and nothing came up. When you root your phone does that mean you no longer can receive over the air updates? Or is that only if you have custom ROM's installed? That being said, is the ROM that you install to gain root access considered a custom ROM? Sorry... I feel like a n00b but I had to ask. :] Thanks
Click to expand...
Click to collapse
Originally Posted by WormDoes
http://androidforums.com/thunderbolt-all-things-root/306774-simple-newbie-questions.html
"If you're rooted and you've deleted any bloatware and you try and install the ota update it will not update successfully. You can unroot and update, but be warned a lot of the time an ota update will also correct the current exploits that were used to achieve root access. If you are rooted it's usually a good idea and easier to flash a ROM that includes the update already. The developers get a hold of the source codes a few weeks before VZW actually pushes it to your phone and you don't have to wait for jcase, unrevoked, or whomever to find a new way to root if the ota breaks root access.
Hope this helps"
I was searching the same thing earlier bro and this is the answer I found.
Does this mean if I don't delete bloatware and just freeze it, then I can still get the updates? I read that article and I didn't see them answer whether or not getting an OTA update would take root off. Thanks for the response!
Sent from my ADR6400L using XDA Premium App
Trevlo said:
Does this mean if I don't delete bloatware and just freeze it, then I can still get the updates? I read that article and I didn't see them answer whether or not getting an OTA update would take root off. Thanks for the response!
Sent from my ADR6400L using XDA Premium App
Click to expand...
Click to collapse
No the point is if you root, have SU, and/or a custom recovery, the update will fail.
Sent from my ADR6400L using XDA Premium App
Good deal. Thank you for the info.
Sent from my ADR6400L using XDA Premium App
So if I'm reading this correctly, a corollary is that if you intend to root but haven't, its likely a good idea to do it before the OTA is pushed, or else you'll have to wait for the developers to figure out how to root the new one?
Sent from my ADR6400L using XDA App
More then likely any important updates/fixes/etc will turn up in ROMs anyways.
so how do you disable updates?
Nikolai2.1 said:
No the point is if you root, have SU, and/or a custom recovery, the update will fail.
Sent from my ADR6400L using XDA Premium App
Click to expand...
Click to collapse
so how do you disable updates I have a galaxy s2 4g service sprint I ve been searching around how to disable updates I keep getting prompt for one and it wont install root blocking it from installing I guess I just want to turn it of I read use bloat ware or titanum backup tried both same issue. I thought this would be an easy fix.
arcolino1 said:
so how do you disable updates I have a galaxy s2 4g service sprint I ve been searching around how to disable updates I keep getting prompt for one and it wont install root blocking it from installing I guess I just want to turn it of I read use bloat ware or titanum backup tried both same issue. I thought this would be an easy fix.
Click to expand...
Click to collapse
try this it works
only difference for you will be lines 4 and 5
look for your current ro.build.fingerprint and change it to the current update...
oh and also don't forget to delete the update from your cache
If you are comfortable editing the build.prop then follow these directions.
Directions:
1. Use root explorer and navigate to /system
2. Mount as r/w
3. Long press on build.prop then click on Open With then Text Editor
4. Find the line ro.build.fingerprint=verizon/SCH-I510/SCH-I510:2.3.6/GINGERBREAD/FP1:user/release-keys
5. Change FP1 or FP5 in that line to FP8
6. Press the menu button on the phone and click on Save and Exit
7. Mount back to r/o
8. Reboot phone
cujo6801 said:
try this it works
only difference for you will be lines 4 and 5
look for your current ro.build.fingerprint and change it to the current update...
oh and also don't forget to delete the update from your cache
If you are comfortable editing the build.prop then follow these directions.
Directions:
1. Use root explorer and navigate to /system
2. Mount as r/w
3. Long press on build.prop then click on Open With then Text Editor
4. Find the line ro.build.fingerprint=verizon/SCH-I510/SCH-I510:2.3.6/GINGERBREAD/FP1:user/release-keys
5. Change FP1 or FP5 in that line to FP8
6. Press the menu button on the phone and click on Save and Exit
7. Mount back to r/o
8. Reboot phone
Click to expand...
Click to collapse
I attached the file for more info.
mine reads:
ro.build.fingerprint=samsung/SPH-D710/SPH-D710:4.0.4/IMM76I/FI27:user/release-keys
do I change the FI to something else? if so this change will not brick my phone? this is my only cell connection to outside world.
the download system update that wants to install is a FL24 is it because the phone knows FI the FL will not install?
You could just rename otacerts to otacerts.bak and then rename updater.apk to updater.bak.
Sent from my personally built from source CM10.1 N7.
arcolino1 said:
I attached the file for more info.
mine reads:
ro.build.fingerprint=samsung/SPH-D710/SPH-D710:4.0.4/IMM76I/FI27:user/release-keys
do I change the FI to something else? if so this change will not brick my phone? this is my only cell connection to outside world.
the download system update that wants to install is a FL24 is it because the phone knows FI the FL will not install?
Click to expand...
Click to collapse
Yes change the FI27 to FL24
Should do it for you..
Disclaimer.. I don't know your phone but this has worked for me and many others on the Samsung charge...
I don't think it will brick your phone..
Make sure you have a backup .
SENT FROM THE DOG POUND
cujo6801 said:
Yes change the FI27 to FL24
Should do it for you..
Disclaimer.. I don't know your phone but this has worked for me and many others on the Samsung charge...
I don't think it will brick your phone..
Make sure you have a backup .
SENT FROM THE DOG POUND
Click to expand...
Click to collapse
what additional info do you need from my phone, that will make this a more sure ok to do for sure no worries ? what about
what disconnecktie recommended "You could just rename otacerts to otacerts.bak and then rename updater.apk to updater.bak"
is that safer, not sure where to find those files? I am doing titanium back. but i do not want to go through the hassel of reloading everything back on the phone.
Either way will work but the otacerts and updater both just catch ota information when it is sent out. You aren't deleting anything so it is impossible to brick from it. The otacerts is in /system/etc and the updater apk is in /system/app or course. Use a root file explorer like es file explorer and mount system as read/write.
Sent from my personally built from source CM10.1 N7.
disconnecktie said:
Either way will work but the otacerts and updater both just catch ota information when it is sent out. You aren't deleting anything so it is impossible to brick from it. The otacerts is in /system/etc and the updater apk is in /system/app or course. Use a root file explorer like es file explorer and mount system as read/write.
Sent from my personally built from source CM10.1 N7.
Click to expand...
Click to collapse
so do I wait to see the update icon? then do the process
and to be clear the process is?
go to /system/etc then rename otacerts to otacerts.bak save it
then go to /system/app then rename update.apk to update.bak save it
how long does that change last if they are pushing the update wont it just come right back?
arcolino1 said:
so do I wait to see the update icon? then do the process
and to be clear the process is?
go to /system/etc then rename otacerts to otacerts.bak save it
then go to /system/app then rename update.apk to update.bak save it
how long does that change last if they are pushing the update wont it just come right back?
Click to expand...
Click to collapse
They won't be able to push it anymore after that. Change it then reboot and they can't send then to you anymore.
Sent from my personally built from source CM10.1 N7.
What he said...
SENT FROM THE DOG POUND
disconnecktie said:
They won't be able to push it anymore after that. Change it then reboot and they can't send then to you anymore.
Sent from my personally built from source CM10.1 N7.
Click to expand...
Click to collapse
ok, so to be clear I do not see the files now in those locations
otacerts and updater.apk
will I see them after the update icon comes back?
arcolino1 said:
ok, so to be clear I do not see the files now in those locations
otacerts and updater.apk
will I see them after the update icon comes back?
Click to expand...
Click to collapse
Are you using a thunderbolt? If you're not then you're in the wrong forum and should probably post your questions there.
Sent from my personally built from source CM10.1 N7.
he has a GS2....
but mine should work....
take the info to your phone section here on XDA and ask what they think...
good luck

Is it possible/safe to do this?

I don't have enough posts yet to post in the Development Forum, but I have a small question.
There are some .apks in the .zip file for DroidTh3ory's new M0N0LITHTH3ORY ROM that I'm not going to use like AndExplorer and Terminal Emulator, can I delete these, and there are also some .apks from another ROM I'd like to add.
Is it safe to do this?
EchoX860 said:
I don't have enough posts yet to post in the Development Forum, but I have a small question.
There are some .apks in the .zip file for DroidTh3ory's new M0N0LITHTH3ORY ROM that I'm not going to use like AndExplorer and Terminal Emulator, can I delete these, and there are also some .apks from another ROM I'd like to add.
Is it safe to do this?
Click to expand...
Click to collapse
Good question...
kierandill said:
Good question...
Click to expand...
Click to collapse
Hmm, that's great! Except in the first line I said that I DON'T HAVE ENOUGH POSTS YET
Read next time!
EchoX860 said:
I don't have enough posts yet to post in the Development Forum, but I have a small question.
There are some .apks in the .zip file for DroidTh3ory's new M0N0LITHTH3ORY ROM that I'm not going to use like AndExplorer and Terminal Emulator, can I delete these, and there are also some .apks from another ROM I'd like to add.
Is it safe to do this?
Click to expand...
Click to collapse
You can delete those apks and add apks from something else, no problem. You will have to re-sign the zip before it becomes flashable again.
The easy way would be to flash monolith, and use something like titanium or root explorer to remove the system apps. To add apps to a running rom, you can drop the apk in /system/app, and change the permissions to match everything else. (XX_X__X__)
Thanks! I did it this way, Open both .Zips on my PC, delete the ones I don't want, and just click and drag from another ROM. I take it that's bad?
EchoX860 said:
Thanks! I did it this way, Open both .Zips on my PC, delete the ones I don't want, and just click and drag from another ROM. I take it that's bad?
Click to expand...
Click to collapse
That's fine if you didn't extract them and zip them back up. I open the zips with winrar or 7zip and swap them that way with no problems, sometimes if your replacing an app delete the one you are replacing before you drag and drop the new/themed version.
If you completely unzip and re-zip the file will need to be resigned to be able to flash. The way you describe will work no problem.

[MOD] Updated HOST File (Need Root)

**Disclaimer**
**I Take NO Responsibility in bricking your device**
For those of you who have a rooted device, ads suck, don't they?
Well here is the most up-to-date HOSTS file to help remove most ads (including ads in games/apps)
Needed:
Rooted Device
Root Explorer (Or another file manager that has /system/ directory access)
Attached hosts File
Step 1: Download and unpack hosts.zip
Step 2: Transfer hosts file to internal memory
Step 3: BACKUP Original hosts file (hosts.backup)
Step 4: Replace new hosts file from internal memory into directory /system/etc/
-Delete original (MAKE SURE THERE IS A BACKUP)
-Copy in new hosts
Step 5: Give full permissions to new hosts file
Step 6: Reboot
If there is any connectivity problems, replace the old hosts file
What this does:
Just like any other hosts file (on your PC), this tells the OS to route any website/ip that fall into a giant list of "ad" domains, to route back to 127.0.0.1 (you)... meaning, when an app/website asks for www.i_am_an_ad.com, instead of getting the ad, it gets a null response from yourself!
If you didn't understand the directions or what this is:
I DO NOT recommend customizing your Prime. I come from a Galaxy S, which you don't need balls to mess with, its nearly unbrickable.. this device..however is.. Do no attempt any messing with the /system/ folder without knowledge!
How does this differ than using an ad block app like Adfree?
Not trying to be a prick ... just curious.
Superguy said:
How does this differ than using an ad block app like Adfree?
Not trying to be a prick ... just curious.
Click to expand...
Click to collapse
no bloat. and can actually be incorporated into a ROM
also, this blocks ads at the source, i dont know how adfree blocks it, but i dont ever use ad-blocking programs, that means they the app can see your traffic..
ide rather some internal script doing the job it does with every bit of data in my phone than some external app.. we all should know about DOLPHIN logging user traffic...
Ad-away is the best app. It dies same thing, just installs a hosts file. Makes it in easy ui, and more noob proof. Also easier to update hosts file.
I like this way too, especially like you mentioned to be included in roms.
Sent from my Galaxy S2
There are multiple apps in the market that do exactly this...but easier.
RussianMenace said:
There are multiple apps in the market that do exactly this...but easier.
Click to expand...
Click to collapse
yes, but said aps, again, cannot be included in roms. this is mainly for custom roms.
personally, i would rather incorporate this into my roms before i flash, then download some app that does it
biggem001 said:
yes, but said aps, again, cannot be included in roms. this is mainly for custom roms.
personally, i would rather incorporate this into my roms before i flash, then download some app that does it
Click to expand...
Click to collapse
I'd rather use an app that updates the host file with the latest ad addresses as they become known rather replacing it manually. But that's just me
Charsher47 said:
I'd rather use an app that updates the host file with the latest ad addresses as they become known rather replacing it manually. But that's just me
Click to expand...
Click to collapse
again.. its for people making roms, mainly.
Ok, even if you bake it into a ROM, which is "what this is for" you would still have to manually update the host file to adapt to new Ad domains....yes?
I'm not trying to crap on your work here, just trying to understand the advantages this has over using a market app, which in itself can be baked into a ROM with developers permission.
yeah, but every release culd have it updated. I know most developers just don't put out one version of the rom and call it a day. Most update there roms at least 2-3 times a month if there is still a need for it.
doeboy1984 said:
yeah, but every release culd have it updated. I know most developers just don't put out one version of the rom and call it a day. Most update there roms at least 2-3 times a month if there is still a need for it.
Click to expand...
Click to collapse
agreed. this just reduces bullcrap 3rd party apps you don't need. roms are updated weekly at the latest, normally (at least in my galaxy s forum). throw in the host file every time and you are set. not some
biggem001 said:
**Disclaimer**
**I Take NO Responsibility in bricking your device**
For those of you who have a rooted device, ads suck, don't they?
Well here is the most up-to-date HOSTS file to help remove most ads (including ads in games/apps)
Needed:
Rooted Device
Root Explorer (Or another file manager that has /system/ directory access)
Attached hosts File
Step 1: Download and unpack hosts.zip
Step 2: Transfer hosts file to internal memory
Step 3: BACKUP Original hosts file (hosts.backup)
Step 4: Replace new hosts file from internal memory into directory /system/etc/
-Delete original (MAKE SURE THERE IS A BACKUP)
-Copy in new hosts
Step 5: Give full permissions to new hosts file
Step 6: Reboot
If there is any connectivity problems, replace the old hosts file
What this does:
Just like any other hosts file (on your PC), this tells the OS to route any website/ip that fall into a giant list of "ad" domains, to route back to 127.0.0.1 (you)... meaning, when an app/website asks for www.i_am_an_ad.com, instead of getting the ad, it gets a null response from yourself!
If you didn't understand the directions or what this is:
I DO NOT recommend customizing your Prime. I come from a Galaxy S, which you don't need balls to mess with, its nearly unbrickable.. this device..however is.. Do no attempt any messing with the /system/ folder without knowledge!
Click to expand...
Click to collapse
Well I thank you for your time and effort... I followed your directions and BAM my prime is adfree...
AdFree is one of the first root apps I downloaded. Just easier as a user and I love blocking ads!
Lock-N-Load said:
AdFree is one of the first root apps I downloaded. Just easier as a user and I love blocking ads!
Click to expand...
Click to collapse
Was just coming in here to say that. Way to beat me to it
Atleast upload a more recent one...
http://www.multiupload.com/SAQUI2FOBH
Lock-N-Load said:
AdFree is one of the first root apps I downloaded. Just easier as a user and I love blocking ads!
Click to expand...
Click to collapse
I use AdAway. There's an updated host almost every day.
Lock-N-Load said:
AdFree is one of the first root apps I downloaded. Just easier as a user and I love blocking ads!
Click to expand...
Click to collapse
Itaintrite said:
I use AdAway. There's an updated host almost every day.
Click to expand...
Click to collapse
yeah, they are great and everything, but that's just one more app you have to run in the background, taking up that much more system resources.
Swiftks said:
yeah, they are great and everything, but that's just one more app you have to run in the background, taking up that much more system resources.
Click to expand...
Click to collapse
i agree, when we start pushing roms out, it'll be much easier to just update the hosts files with the ROMS then installing that app every time you update the rom
biggem001 said:
i agree, when we start pushing roms out, it'll be much easier to just update the hosts files with the ROMS then installing that app every time you update the rom
Click to expand...
Click to collapse
I use adfree and I don't let it run in background and it still works, you only install app again if you update to different ROM, or you must swipe everything every time, but you have to install all of your apps again as well, install one more app won't make a dent to your finger, or you can use Titanium Backup
I'm surprised this hasn't been baked in CM7/8 or the upcoming CM9 yet.
Would be pretty easy to add it in the customize for most any ROM.
Sent from my DROID3 using Tapatalk

[Q] APK Creation

Well as many of you know we're over most of the hurdles we needed to jump with the CM7 build for Nook tablet.
Updates for the internal version are simple via CWM, the SD version is not so simple of course.
I'm assuming that it should be possible to built an APK that gains superuser permissions then copies the new files to the system. Can anybody confirm this is possible please?
We need to know that we can tell our SD user that they can update their version just as easy as the internal user
Thanks in advance for your help again everyone!
Well presumably this is how ROM Manager and Metamorph both do their thing, just in a slightly more round about way (as they don't come with the files they need to copy). I'm almost 100% sure this is possible, but I've never tried it personally.
EDIT: Looks like this is how you'd do it: http://developer.android.com/reference/java/io/File.html. Specifically the renameTo() method.
CelticWebSolutions said:
Well as many of you know we're over most of the hurdles we needed to jump with the CM7 build for Nook tablet.
Updates for the internal version are simple via CWM, the SD version is not so simple of course.
I'm assuming that it should be possible to built an APK that gains superuser permissions then copies the new files to the system. Can anybody confirm this is possible please?
We need to know that we can tell our SD user that they can update their version just as easy as the internal user
Thanks in advance for your help again everyone!
Click to expand...
Click to collapse
Well there are about a dozen ways to do this. First of one of the hardest things is comming up with the commands/script. I can defiantly do this. If you want an apk, there are a few guys whom could port my script to an apk. I'm going to make a script here that will format, and create partitions and extract directly from the nook, no need to go through the fancy formatting and such, just go into terminal and run the script. Ill post a prototype for you to have the testers test!
Do you think something like BacksideUpdater inside custom ROM for LG Optimus V?
made by JerryScript
JerryScript i very nice guy, I bet if you ask him, he will let you play with his code
if is it what you looking for
Yes, this is possible. I wrote an app that flashes the recovery partition for my older Froyo phone in the very rudimentary Basic4Android. Copying files under root privileges was part of this process. Fairly easy if you find the right coding examples in whatever your development platform of choice.
xdajunkman said:
Yes, this is possible. I wrote an app that flashes the recovery partition for my older Froyo phone in the very rudimentary Basic4Android. Copying files under root privileges was part of this process. Fairly easy if you find the right coding examples in whatever your development platform of choice.
Click to expand...
Click to collapse
So one of the problems is its not really copying. Its more of an extraction from one place to another. We are required to use dd, and fdisk(for formatting).
GREAT! I was worried updates would be to complicated for people
Sent from my Nook Tablet using xda premium
... and I was worried that I might have to wipe my NT clean again to get the updates. After a week with this wonderful upgrade, I've got a LOT of customization I don't want to lose...
Whoops, wrong button with the thanks. Anyway, it occurs to me you could just have people run a script from a terminal emulator. That would probably be the simplest way to do it. Make an Update folder on the SD card, add it to the PATH by default, and users could just copy over the update files and run the script. Just a thought.
Sycobob said:
Whoops, wrong button with the thanks. Anyway, it occurs to me you could just have people run a script from a terminal emulator. That would probably be the simplest way to do it. Make an Update folder on the SD card, add it to the PATH by default, and users could just copy over the update files and run the script. Just a thought.
Click to expand...
Click to collapse
Has to be simple, something like copy an update.zip onto the SD card then run the apk which will automatically run the update in the zip But my knowledge of such things is limited so I need help there
Same process. With the above method, the user would only have to copy over the file, open a terminal, and type 'update'. With the apk idea you just have to add a little more time for someone to actually write the app (not that it would take too long).
Sycobob said:
Same process. With the above method, the user would only have to copy over the file, open a terminal, and type 'update'. With the apk idea you just have to add a little more time for someone to actually write the app (not that it would take too long).
Click to expand...
Click to collapse
Hmm.... that sounds good.
Anybody know how to actually implement it ?
Dammit, idk why I keep hitting the thanks button thinking it's reply >.>
Anyway, it's just a matter of setting the PATH variable to include /sdcard/Update/ or something similar. To make an actual update, make a folder called Update, fill it with all the files that need to be copied over (probably in a directory structure), and write a script that actually copies everything over. You'll need to make sure sh is in /system/bin (I think it is by default).
You could zip the the files as well, using gunzip (busybox?) to extract them before copying them, then deleting them when you're done, just to keep it cleaner for the user.
The only downside to all this is that I don't know how you would flash a kernel.
Sycobob said:
Dammit, idk why I keep hitting the thanks button thinking it's reply >.>
Click to expand...
Click to collapse
That makes two of us!
Sycobob said:
Anyway, it's just a matter of setting the PATH variable to include /sdcard/Update/ or something similar. To make an actual update, make a folder called Update, fill it with all the files that need to be copied over (probably in a directory structure), and write a script that actually copies everything over. You'll need to make sure sh is in /system/bin (I think it is by default).
You could zip the the files as well, using gunzip (busybox?) to extract them before copying them, then deleting them when you're done, just to keep it cleaner for the user.The only downside to all this is that I don't know how you would flash a kernel.
Click to expand...
Click to collapse
I'm guessing you'd just flash it as usual, surely that one is the easiest? Copying stuff to boot partition would hopefully be just as simple, I was mainly worried about updating system files. I could do with building one for the current update to test the theory!

Categories

Resources