NMM type for Recoveries - Android Q&A, Help & Troubleshooting

Anyone think it's possible to implement the manager system from nexus mod manager or something similar to a recovery. For example, have it keep track of the mods you install and the files it changes and put an option to remove it where it removes the files that were editing and replaces them with the files that were there prior to installing the file? If it help nexus mod manager is open source allowing to view the source code and I believe all that is handled under the NexusClient under ModManagement. If someone can implement this it will make it a lot easier to manage the mods we install on top of the roms since the only way to remove mods currently is making a backup prior to flashing the mod or by dirt flashing the Rom on top and reinstalling other mods.
Here's a link to the sourcehttp://goo.gl/PFnqI0
Sent from my HTCONE using Tapatalk

luigi311 said:
Anyone think it's possible to implement the manager system from nexus mod manager or something similar to a recovery. For example, have it keep track of the mods you install and the files it changes and put an option to remove it where it removes the files that were editing and replaces them with the files that were there prior to installing the file? If it help nexus mod manager is open source allowing to view the source code and I believe all that is handled under the NexusClient under ModManagement. If someone can implement this it will make it a lot easier to manage the mods we install on top of the roms since the only way to remove mods currently is making a backup prior to flashing the mod or by dirt flashing the Rom on top and reinstalling other mods.
Sent from my HTCONE using Tapatalk
Click to expand...
Click to collapse
So you are simply stating having a program that automate a backup of the files yyou change? So instead of having to do it manually, as soon as you change something it makes a backup..

lacoursiere18 said:
So you are simply stating having a program that automate a backup of the files yyou change? So instead of having to do it manually, as soon as you change something it makes a backup..
Click to expand...
Click to collapse
Similar. The way I see this working is to create a class that adds this support and have it create a temp file of sorts with everything that was editing and a list of files that were created and allowing it to backup the files that were replace so it can put them back when u decide to remove the mod and delete the extra files that were created. Doing this would make it easier for developers to implement this into the scripts used to install the mods and possible having installations split between roms and mods, having the developers define it in the script and if undefined have it follow the default install which should be roms. Defining roms and mods could possibly be done through if-else statements such as adding InstallAsMod or InstallAsRom on the first line of a script and on the recovery have it check if it says InstallAsMod or InstallAsRom on the first line and if neither have it follow the InstallAsRom code which could be an exact copy of the way the recovery currently works. Though those are just my thoughts with my very basic java knowledge, maybe someone else with more insight can give a better method. Also having something like a extra menu in the recovery that displays the installed mods and having the uninstall/removal process there. The problem I see with this would be with rom updates, they will make changes to the files causing issues with the uninstall option if the files where changed through the rom update.
Sent from my HTCONE using Tapatalk

Related

Rom building questions.

If we have a base rom even from a backup.
Couldn't we edit simple things in the rom. Like host files for blocking adds. Add the changes that the super charger script makes. Disable/remove alot of blur like we do now with titanium backup. Longer wifi scan times. ect.
How would you get the base rom and how do you edit the files contained in the rom. I'm used to linux I run it at the house. If its like editing cfg files and what not. I might be able to make my own rom for myself.
Figured out you can open apk files easily with winrar.
And if all else fails sbf here i come
infinity8x3 said:
If we have a base rom even from a backup.
Couldn't we edit simple things in the rom. Like host files for blocking adds. Add the changes that the super charger script makes. Disable/remove alot of blur like we do now with titanium backup. Longer wifi scan times. ect.
How would you get the base rom and how do you edit the files contained in the rom. I'm used to linux I run it at the house. If its like editing cfg files and what not. I might be able to make my own rom for myself.
And if all else fails sbf here i come
Click to expand...
Click to collapse
Can't wait to see what you come up with... I'll test it.
You don't need a custom rom in order to block ads. There its a hosts file floating around that does that in one of the X2's subforum.
Sent from my DROID X2 using XDA App
or get ad free from the market...and guess what? it's free! >.>
It's true that those small changes don't require a custom rom but I think tinkering with the idea and trying to put something together would be a great learning experience and could lead to the first "custom rom".
Questions should be posted in the general forum. I will recommend you visit the chef central forums where they have all the tools and possible many answers for rom building.
Cheers and thread moved.

[Tool][28-11-2011] (Rom)Archive Compare and Edit v2.1

About:
This tool is meant to easily compare the contents of two rom archives and allow easy manipulation by copying files from one rom to another and removing files from a rom archive. The idea is to specify two rom archives which have the same structure, usually something like the following:
[data]
[META-INF]
[sdcard]
[system]
flash_image
modem.bin
zImage
I made it because I would like to know which files/apks might have been removed from one rom compared to another, which isn't always clear from the descriptions. But then thought other people might find it usefull as well, so here it is
It's written in java, just extract the zip and run through run.bat (windows only) or the .jar file.
Update, version 2 added
Ok, I tested it today and seems to work fine... Was able to reflash a rom modded with this tool (file from another rom added, other files removed).
For now it just allows transferring of files between roms and removal of files from a rom archive.
How it works:
1. Load the rom-archives (zip only) using the browse buttons. If one file is selected all contents are simply listed, in case 2 files are supported only the extra files per rom are listed.
You can filter on .apk/.odex files only by using the checkbox and pressing 'Scan'.
2. By using the 'Copy >>' and '<< Copy' buttons you can copy files between roms, these entries will be colored GREEN in the respective table views.
3. By using the 'Remove files' buttons you can remove files from the roms, these entries will be colored RED in the respective table views.
4. Save the rom by pressing the proper 'Save Changes' button and specifying the name of the .zip it has to be saved to.
A progressbar will show the progress and you'll get a message telling you when it's done. It's not the fastest but it does the job. The resulting zip can then be flashed through clockworkmod (at least the one I tested it with could ).
THere are prolly some bugs when you move files back and forth and delete files in between and adding them again, etc... I just tested it with moving a few files from one rom to another and deleting a few form the target rom. This worked fine, but please let me know about bugs and issues.
Update, version 2.1 added
Allrighty, I included the data from the spreadsheet found here:
http://forum.xda-developers.com/showthread.php?t=1069924
To display information about the selected apk's in the table. This gives you a quick overview about what an apk does and whether or not you can and want to remove it. It's displayed in a little text area below the table.
I also changed it so that by default one 'view' is shown, once a first archive is selected the option to select a second one is enabled by displaying the proper buttons. Only after a second file is specified the complete view is shown (two tables, etc).
That's it again for now
Use it at your onwn risk!
Thanks this is very helpful tool.
Would love to see this further developed...two thumbs up!
Sent from my GT-I9100 using Tapatalk
Subscrived to this topic in a hope to see development on it
Sent from my GT-I9100 using xda premium
Woooww, this tool is awesome, how about adding feature like u can copy one or more file from one archive to another one so we can not only remove but also add
I hope u will improve this app further in the future!
Sent from my GT-I9100 using Tapatalk
Thanks for the comments people, good idea about moving apk's to one and another as well indeed To be continued (and always open for suggestions!)
Also updated main post, but...
I rewrote it to allow removal of files and copying of files between two rom packages, I haven't been able to test it myself yet (finished it just now and really need to catch some sleep) but will try to do so tomorrow... However, if anyone else wants to give it a shot as well please let me know and I'll send it (tomorrow evening or monday prolly). I will not put it up before it has been tested and it is about 2:30am here so time to go to sleep. If I get a chance to test and upload tomorrow I'll do so...
Will try to check this topic tomorrow again but can't promise... Busy day.
Clever tool. Will definitely watch this develop
Gr8 work pal. Please continue your development. Is really a handy tool.
Updated 1st post with new version and some instuctions/clarifications
wow. missing that tool.
And another update, added ifnormation display about the apk's using the spreadsheet from this source:
http://forum.xda-developers.com/showthread.php?t=1069924
and changed the UI a bit to make it a bit simpler...
ps. Thinking about adding a feature where you can add seperate apk's/files... Would have to think about how to add that without rewriting too much.

[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!

[WEBTOOL] Note 2 Multi Window Tool

READ ALL OF THIS POST CAREFULLY!
Multi Window on the Note 2 is kinda cool, but it only works with limited apps, which kinda sucks. There are 2 solutions to this - the first is to wait for developers to add support (perhaps using my guide), the second is to edit one of the framework APKs to enable other apps. The second is the most useful, but perhaps a little complex for most people.
So here's a tool to help.
This tool takes a list of apps and creates you an update zip (for flashing via clockworkmod) with a modified framework APK that enables your chosen apps for multi window support.
Important points to note...
This tool is ONLY tested on the LJ1 release, additional options are added via user requests. I STRONGLY recommend you don't use the resulting zip on a ROM version other than that for which it's intended.
Backup before flashing the update zip. No really! Or at LEAST backup the framework-res.apk.
If you don't want to use clockworkmod you can extract the framework-res.apk and push it via ADB. Make sure to set the permissions to 0644 or your device won't boot.
Be very careful to ensure that your entries in the tool are correctly formed or again you could end up with a non-booting device.
Use this tool at your own risk!
Got that? OK, let me tell you how to compile the list in the tool.
Simply, you need to enter <item> </item> tags with the 'package names' of your chosen apps in the textbox. Package names are best found on the web Play Store by looking at the URL. Here's some examples for you.
Plume on the web Play Store is at play.google.com/store/apps/details?id=com.levelup.touiteur - therefore the package name is com.levelup.touiteur and you should use the entry <item>com.levelup.touiteur</item>.
TVCatchup on the web Play Store is at play.google.com/store/apps/details?id=com.gzero.tv - therefore the package name is com.gzero.tv and you should use the entry <item>com.gzero.tv</item>.
Simple eh? Just put in the ones you need, hit the button and download your update zip.
To use the tool, head on over to this topic.
Have the xml precharged samsung apps or build from 0 and we need to add chrome, talk, snote, etc?
The pre-configured stuff stays, just put in things you want to *add*.
P
If someone on LJ3 can post their unedited/stock framework-res.apk Paul said he should be able to update his script to deal with that too.
Lennyuk said:
If someone on LJ3 can post their unedited/stock framework-res.apk Paul said he should be able to update his script to deal with that too.
Click to expand...
Click to collapse
i have posted on his forum, he is working on it ;D
alj3 tool already available, going to test. thx
LJ3 support added.
P
paulobrien said:
LJ3 support added.
P
Click to expand...
Click to collapse
working!!! thx
work perfectly! now I have about 40 apps
I'm a bit short of time, but I will add an option where you can upload your framework-res.apk for patching to avoid version issues.
P
if you want faster to find out package name. go to www.play.google.com then press installed apps and you will be able to find faster package name of your all installed apps
paulobrien said:
READ ALL OF THIS POST CAREFULLY!
Multi Window on the Note 2 is kinda cool, but it only works with limited apps, which kinda sucks. There are 2 solutions to this - the first is to wait for developers to add support (perhaps using my guide), the second is to edit one of the framework APKs to enable other apps. The second is the most useful, but perhaps a little complex for most people.
Click to expand...
Click to collapse
All kinds of love coming your way from me Paul and all the devs like Lenny who got this working, awesome stuff guys.
Hi, very very good,works fine...what the solution to had items stock spen calendar Please?
Thanks
Envoyé depuis mon GT-N7100 avec Tapatalk
Awesome tool Paul, thanks for supporting the Note2 community, it works like a gem
Sent from my GT-N7100 using xda premium
androidizen said:
All kinds of love coming your way from me Paul and all the devs like Lenny who got this working, awesome stuff guys.
Click to expand...
Click to collapse
Paul did most of the leg work even for what I did. All I did was turn his findings into a mod so that people could have something while Paul worked on a better system (like this one he has made).
Working fine.. thanks
Sent from my GT-N7100 using xda premium
I threw together a little app to steamline the process a bit. This is my first android program so this thing contains a whole 3 hours of android wisdom...
It's a frankenstein mix of googled code but it gets the work done. A work in progress. This version asks for some storage/call/debug permissions which I have no idea how to remove or limit. So if that makes you feel uneasy pm me and I can send you the netbeans project in a 7z and you can check the source code and compile it yourself.
What the app does is display a list of installed packages by item name, you can then select the ones you want, hit the export button which will copy your selection to the clipboard, open a browser window to pauls page where you can paste it into the text area and download the generated apk all directly on the phone.
I would not recommend selecting all items in the list, this might have horrible consequences. Just select stuff you recognize.
For me the download popped up cfw but then failed to install the apk (possible due to file location), so I moved the apk to the root dir, rebooted to cfw recovery and then flashed just fine.
In later versions I'll see about reducing permissions, add icons to the list.
Disclaimer: Whatever you do with this app, whatever consequences come from using this app, is on you.
Thanks for the lovely apk page. <3
// m
Hi,....against me....
I can't seem to find source code to generate the application scalendar after several attempts still nothing,can you help me.
Thanks. ..
Envoyé depuis mon GT-N7100 avec Tapatalk
Hi all,
Everytime i add an app to the multiscreen view the one that i flashed before disappears. So, if i add dropbox and then imdb i will imdb but dropbox will disappear. Im flashing the zip files using CWM recovery. Can someone tell me how i can solve this? Thanks
koahhe said:
Hi all,
Everytime i add an app to the multiscreen view the one that i flashed before disappears. So, if i add dropbox and then imdb i will imdb but dropbox will disappear. Im flashing the zip files using CWM recovery. Can someone tell me how i can solve this? Thanks
Click to expand...
Click to collapse
Are you adding one app. Flash the generated zip and then add one app, generate a new file and flash it? If so, dont do it that way You must add all apps you want in the same file, generate that and flash it
Sent from one big Note II

What can be changed before an entire reflash/recompile is required?

In the interest of learning the ins and outs of Android firmware modding I wanted to start small with changing icons, perhaps making basic theme changes, adding new buttons/actions etc. To what degree can changes be made to the currently installed ROM before an entire reflash is required? Can such changes be made simply through the file system using a shell by replacing binaries, etc? Or, is it necessary always to download a particular Android version from Google and recompile/reflash to your device after implementing the desired changes?
Perhaps this is too general of a question.
sherrellbc said:
To what degree can changes be made to the currently installed ROM before an entire reflash is required? Can such changes be made simply through the file system using a shell by replacing binaries, etc?
Click to expand...
Click to collapse
As long as you don't make a mistake that causes your device to no longer boot, a full reflash is never required if you just modify single files. Make sure you know how to recover from a non-booting Android system before you start modding.

Categories

Resources