Compcache userinit.sh tutorial for Cyanogen 367 - G1 Android Development

Here is a simple tutorial to get compcache ramswap running on the new Cyanogen 3.6.7 rom. Thanks to Cyanogen we now have a functioning swap that is fast and will not cause SSD wear.
Please make sure you have adb installed and functioning before you continue, as this tutorial will utilize adb to push the required files to the phone. Also your sd card should have a 500megish ext(2,3,4) partition as the second partition for this to work.
Download the userinit.sh.txt file attached here then:
Rename it to userinit.sh
create a directory c:\userinit
copy userinit.sh to c:\userinit
open CMD prompt
adb push c:\userinit\userinit.sh /system/sd
adb shell chmod 755 /system/sd/userinit.sh (not sure if needed being safe)
adb shell reboot
( This completes the compcache setup )
++++++++++++++++++++++++++++++++++++++++++++
To see if it is working enter: cat /proc/ramzswap in the terminal console app on the phone. You should have a XX% GoodCompress listed if it is working properly.
Hope this helps a bit. Please correct me if I made mistakes.
edit: re-uploaded the script with swappiness set to 60. You can re-push the new one the same way.
edit: removed media info from post and userinit.sh to simplify things.
edit: the following may help for those unable to get adb working. Make sure you place userinit.sh on the root of your sd (fat32 partition)
in terminal emulator:
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/userinit.sh /system/sd
chmod 755 /system/sd/userinit.sh

thanks...very helpful tuttorial

Just did the audio push and it moved all 3 folders

Does this mean we no longer need the linux swap partition?

DOHCtor said:
Does this mean we no longer need the linux swap partition?
Click to expand...
Click to collapse
It is no longer needed. Compcache should work better, but time will tell I guess.

bkmo said:
It is no longer needed. Compcache should work better, but time will tell I guess.
Click to expand...
Click to collapse
I'll just leave my linux swap partition there for now then.
I notice when I run #free it shows total swap size around 24mb. With the linux swap, I get 32mb.

P_Dub_S said:
Just did the audio push and it moved all 3 folders
Click to expand...
Click to collapse
so you are saying on your sd card you now have:
/system/sd/media with subfolders of ringtones, alarms, notifications, ui ?

thanks for the tutorial
thanks for the tutorial. one questions remains. how do we disable the sd-swap?

Thank you so much for this. Seems to be working perfectly on 3.6.7.1. Cheers!

DOHCtor said:
I'll just leave my linux swap partition there for now then.
I notice when I run #free it shows total swap size around 24mb. With the linux swap, I get 32mb.
Click to expand...
Click to collapse
Good, it is working fine then. I believe that the 24mb is pre-compiled by Cyanogen and is not user configurable right now.

endolin said:
thanks for the tutorial. one questions remains. how do we disable the sd-swap?
Click to expand...
Click to collapse
if you used the attached userinit.sh then it is not enabled. The partition is now unused. You now will not be wearing down your sd with swap.

I just looked into your userinit.sh file. There's a line in there that seems to remove the media files from the phone memory. Why would you do that?

DOHCtor said:
I just looked into your userinit.sh file. There's a line in there that seems to remove the media files from the phone memory. Why would you do that?
Click to expand...
Click to collapse
I didn't write the initial script so I can only speculate that it is clearing the directory that the os is looking in before linking it to the sd. I really have not pondered on it. It has been working fine on my phone ever since I implemented it though.

bkmo said:
so you are saying on your sd card you now have:
/system/sd/media with subfolders of ringtones, alarms, notifications, ui ?
Click to expand...
Click to collapse
I just checked and no they didn't get created but the cmd prompt showed all the files being pushed?

In cyans images, the media dir is empty. Its being deleted so it can then be symlinked to the one in the sd dir.
DOHCtor said:
I just looked into your userinit.sh file. There's a line in there that seems to remove the media files from the phone memory. Why would you do that?
Click to expand...
Click to collapse

P_Dub_S said:
I just checked and no they didn't get created but the cmd prompt showed all the files being pushed?
Click to expand...
Click to collapse
Hmm can't debug it now, but will try to get adb running on a windowz box tomorrow. Just don't remove the media files from the fat32 partition until it is proven the files are copied to the sd properly. goodnight all

dwang said:
In cyans images, the media dir is empty. Its being deleted so it can then be symlinked to the one in the sd dir.
Click to expand...
Click to collapse
I know, but doesn't the phone auto search for it in those folders? I use ringdroid and it creates a fold hierarchy just like that already. Is it really neccessary to add the symlinks?

Yes but all those music files show up in the music app which is annoying.
This method gets rid of that problem.
Its not strictly neccessary but I wrote it for that reason
DOHCtor said:
I know, but doesn't the phone auto search for it in those folders? I use ringdroid and it creates a fold hierarchy just like that already. Is it really neccessary to add the symlinks?
Click to expand...
Click to collapse

dwang said:
Yes but all those music files show up in the music app which is annoying.
This method gets rid of that problem.
Its not strictly neccessary but I wrote it for that reason
Click to expand...
Click to collapse
Actually, it doesn't if you put it in the media folder and within the media fold you have other sub folders (ringtone, notification etc.), which ringdroid already creates for you. Like I said, I don't understand the reason to do a symlink for them.

dwang said:
Yes but all those music files show up in the music app which is annoying.
This method gets rid of that problem.
Its not strictly neccessary but I wrote it for that reason
Click to expand...
Click to collapse
Hey, I almost forgot that you wrote it initially. I shared it here because I think it is a much cleaner way of putting the audio on sd. I now dont have to see all this junk in my music library. Great job on the script BTW

Related

Deleting system sounds

Was just wondering if anyone has deleted ringtones, notification or alarms successfully? `ould love to get rid of them if possible. Tried making a copy of jf rc30, deleting them and amazon apk then installing but didn't work gave me error message.
i removed unused ringtones w/o any issues
If you have JF's RC30 1.31 installed you should be able to just delete them. Astro should let you goto where they are saved and just delete em. You may need to use DroidSans Tweak tools to remount /system as read/write first.
Hmmm, changing to read/write and trying to use Astro gave me "error deleting file"
Any other ideas?
Dharkaron said:
If you have JF's RC30 1.31 installed you should be able to just delete them. Astro should let you goto where they are saved and just delete em. You may need to use DroidSans Tweak tools to remount /system as read/write first.
Click to expand...
Click to collapse
No neither of those work but thanks for the effort to help. I tried those when i first got root. Im gonna try deleting the same way as i did amazon and see if it works.
stats555 said:
No neither of those work but thanks for the effort to help. I tried those when i first got root. Im gonna try deleting the same way as i did amazon and see if it works.
Click to expand...
Click to collapse
Word let me know if this works. I asked in another thread how to do it but no one answered. All I got was the "yes you can delete them" response
I deleted all of my ringtones without any issues. Just use adb shell and remove them. You can also "pull" them first if want to have a backup. In adb shell type "cd /system/media/audio/ringtones". Now you are in the ringtones folder, now type "ls" and then a list of all the ringtones will display. Once you know the name of the one you want to delete just type "rm filename.ogg" and thats it.
BlueBoar said:
I deleted all of my ringtones without any issues. Just use adb shell and remove them. You can also "pull" them first if want to have a backup. In adb shell type "cd /system/media/audio/ringtones". Now you are in the ringtones folder, now type "ls" and then a list of all the ringtones will display. Once you know the name of the one you want to delete just type "rm filename.ogg" and thats it.
Click to expand...
Click to collapse
Worked great thanks!
No problem, that was one of the first things I did was to change all of the ringtones. Couldn't stand the ones that came with it.
BlueBoar said:
No problem, that was one of the first things I did was to change all of the ringtones. Couldn't stand the ones that came with it.
Click to expand...
Click to collapse
Yeah i hear you on that, just a bunch of crap taking up space. I use mp3's for ringtones so no need to waste system space on them! I just learned how to use adb thank god!
Update - deleted most of the ringtones and 4 notifications, freed up 2mb's
BlueBoar said:
I deleted all of my ringtones without any issues. Just use adb shell and remove them. You can also "pull" them first if want to have a backup. In adb shell type "cd /system/media/audio/ringtones". Now you are in the ringtones folder, now type "ls" and then a list of all the ringtones will display. Once you know the name of the one you want to delete just type "rm filename.ogg" and thats it.
Click to expand...
Click to collapse
Sweet worked like a charm! Thanks a bunch
Ok I read how to delete the ringtones but what is ADB Shell? Lke where do i go to type in all those commands?
My phone is rooted JF1.41 with the latest RC33 modded update.
Cargo75 said:
Ok I read how to delete the ringtones but what is ADB Shell? Lke where do i go to type in all those commands?
My phone is rooted JF1.41 with the latest RC33 modded update.
Click to expand...
Click to collapse
You can do it all right from the phone with Terminal.
Type
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
cd /system/media/sounds/(whichever directory you want)
ls
rm (whichever .ogg file you want)
The .ogg files are case sensitive, so beatplunker.ogg isn't the same as BeatPlunker.ogg
Also the .ogg extension has to be at the end of each file you rm.
If you want to save a backup on your sd card I just typed this before I started removing things. Good luck
Code:
cp /system/media/sounds /sdcard
Beast84 said:
You can do it all right from the phone with Terminal.
Type
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
cd /system/media/sounds/(whichever directory you want)
ls
rm (whichever .ogg file you want)
The .ogg files are case sensitive, so beatplunker.ogg isn't the same as BeatPlunker.ogg
Also the .ogg extension has to be at the end of each file you rm.
If you want to save a backup on your sd card I just typed this before I started removing things. Good luck
Code:
cp /system/media/sounds /sdcard
Click to expand...
Click to collapse
wow, thank you!
Cargo75 said:
wow, thank you!
Click to expand...
Click to collapse
No problem. Just figured I'd pass some of the knowledge these fine peeps here have passed on to me
Cargo75 said:
Ok I read how to delete the ringtones but what is ADB Shell? Lke where do i go to type in all those commands?
My phone is rooted JF1.41 with the latest RC33 modded update.
Click to expand...
Click to collapse
In the future, you may what to do this through your PC to prevent carpel tunnel... You can download the Android SDK from here: http://developer.android.com/sdk/1.1_r1/index.html
Extract it to your drive. Navigate to that folder in a command prompt window then "tools". Once there you can run(make sure the G1 is plugged in the usb):
adb remount (remounts the system read/write)
adb shell (this drops you into the shell to interact with your phone)
cd /system/media/audio/
From there you should be able to follow the proceeding directions.
I went and did all this and even went the extra mile and pushed some of my custom mp3's to the file (about 3 meg worth). Is this going to cause problems with updating in the future?
You don't need to remount the system to read/write manually if it already has been done with DroidSans do you?
I usuall y do the mount through Terminal emulator.
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
bam gone!
I tried to copy and after mounting I typed:
cd /system/media/audio/
ls
then got:
alarms
ringtons
notifications
ui
then I typed: cp /system/media/audio /sdcard
and got this message:
cp: omitting directory '/system/media/audio'
is it something small and dumb that I'm doing or are the files copied?

How to Change Music Widget in any Cupcake Build

Always perform a nandroid backup before attempting any mods.
This is a tutorial on how to change the music widget to the one of your liking. It doesn't matter if you have the Dude build and want the G build widget or have the G build and want the 1.5Hr1 widget. This will work for any cupcake (Android 1.5) user who is not happy with their current music widget. I use a windows PC and I am not a Linux guru so I'm not going to attempt to tweak my tutorial for Linux users. Hopefully it's not to hard for them to figure it out from this. (I think it's just file path differences, maybe?)
First step is to have ADB commands working on your computer. Follow this link if you don't know how to do this.
http://forum.xda-developers.com/showthread.php?t=502010
Now that you have ADB, you have to download the appropriate music player/widget that you prefer.
This one is for installing the dark blue music widget with the off-center play/pause button and the transparent record and needle logo. My personal favorite for looks, but has a play/pause with a easy to miss touch area.
http://rapidshare.com/files/227653807/Music_fancy_widget_G_build.apk
This one is for installing the plain white and pale blue music widget with rectangular shape and the large play/pause button with it's large touch area.
http://rapidshare.com/files/227653907/Music_standard_build.apk
This third option is for future development. You can "harvest" a third music widget/player from a third source that doesn't yet exist using the ADB pull command. Lets say your using build X, but build Y has a theme available and you love the themed music widget on themed build Y. What you do is perform a nandroid backup of your current build so you can return to it later and install build Y and then theme it. (Don't waist your time setting up your settings because you won't be on this build for long. Just make sure USB debugging is enabled in settings > Applications > Development so you can use ADB.) You can skip this step if you have access to a friends phone who's already running the music player/widget you want. Connect the USB cable to the phone and go into where you run your ADB commands in Command Prompt on your PC. Type in this command.
adb pull system/app/Music.apk c:\your_path_here
Click to expand...
Click to collapse
The "system/app/Music.apk" part of the command is case sensitive. This will create the Music.apk with the widget you want at the path you specify. Next you can use Fastboot to restore your nandroid backup of build X. (Nandroid saves everything. It's as if you never left.)
Next step is to rename the downloaded file "Music.apk". It's case sensitive and take note of the folder path it's in.
Next, enter the following ADB commands from the appropriate place in Command Prompt. (Start > Run > type "cmd")
adb remount
adb shell rm -r system/app/Music.apk
adb push c:\your_path_here\Music.apk system/app
Click to expand...
Click to collapse
"system/app/Music.apk" and "system/app" parts are both case sensitive.
saying no such directory, would apps to sd card cause that, and ifso what would i instead need to put in?
i never knew there was a difference between the music widgets...
whats different about them?
the gui??
pgiuoco said:
saying no such directory, would apps to sd card cause that, and ifso what would i instead need to put in?
Click to expand...
Click to collapse
On the last step, adb push, dont just put your directory, put in the file name also, Music.apk. For example, i put the file on my C directory to make it easy, so I typed "adb push c:\Music.apk system/app" without the "".
FYI - I have Apps2SD and I used the above command. Guess that doesn't make a difference, assuming because the symlinks say so? I'm such a Linux noob!!!!
bigballa said:
i never knew there was a difference between the music widgets...
whats different about them?
the gui??
Click to expand...
Click to collapse
Yes, different looking gui, the Dark Blue is very nice!
P.S. Nice write up!
setzer715 said:
On the last step, adb push, dont just put your directory, put in the file name also, Music.apk. For example, i put the file on my C directory to make it easy, so I typed "adb push c:\Music.apk system/app" without the "".
Click to expand...
Click to collapse
Wow, that was a BIG OOPS! Thanks for catching that. I fixed the original post.
Has anyone found a way to do this via Terminal Emulator? I'm at work so I wanna do this now instead of waiting till I get home.
djdeviance said:
Has anyone found a way to do this via Terminal Emulator? I'm at work so I wanna do this now instead of waiting till I get home.
Click to expand...
Click to collapse
I'm not a frequent Linux user, but I know a couple of commands. You could download the apk file to your sdcard and try this. This method is not recommended!
su
rm -r system/app/Music.apk
Click to expand...
Click to collapse
This will delete your old music player. Next, you can just install the new music player apk through Apps Installer or whatever you use in it's place. This will allow you to use the new music player as if it was any other 3rd party app. However, I recommend uninstalling it and doing it through the ADB push when you get home.
yeah the app installer method didn't work for me
pgiuoco said:
yeah the app installer method didn't work for me
Click to expand...
Click to collapse
Did you delete the original Music.apk first? Do you have cupcake, or are you using JF RC33 like it says in your sig? This music player has a widget embedded and needs cupcake. If neither of these is the problem, then just use the adb push commands in the first post. I don't recommend using apk installer. I just posted that to help out someone who was too impatient to get home to his pc.
testing567 said:
Did you delete the original Music.apk first? Do you have cupcake, or are you using JF RC33 like it says in your sig? This music player has a widget embedded and needs cupcake. If neither of these is the problem, then just use the adb push commands in the first post. I don't recommend using apk installer. I just posted that to help out someone who was too impatient to get home to his pc.
Click to expand...
Click to collapse
Haha ended up doing it at home anyways. =D Yeah i was kinda doing nothing at work. So as usual I started fidgeting with my phone.
the steps given in the first post work perfectly...!!!
i am on ADP1.5H A2SD...Gud Work...THNX..!!
If someone could post screenshots of the different UIs, that'd be great.
For some reason, when I pushed the Music.apk it worked fine, but when I tried to do the same thing with the CalendarProvider.apk, it didn't....
This method works for me as well. How do you take screenshots with the new builds?
CalendarProvider.apk... Just do a normal .apk installation.
Does this only work for Rooted phones as when I try it I get permission denied
Code:
C:\android\tools>adb shell rm -r system/app/Music.apk
rm failed for system/app/Music.apk, Read-only file system
C:\android\tools>adb shell
$ su
su
su: permission denied
$
jayaustn said:
If someone could post screenshots of the different UIs, that'd be great.
Click to expand...
Click to collapse
i second this idea
moosefist said:
i second this idea
Click to expand...
Click to collapse
I third it
music.apk
can someone post some different download links for the two different music.apk builds? rapidshare has always hated me and will still not let me download either of them saying that my ip address is already downloading something. thanks.
Can someone post pics of all the music widgets in order to compare them?

File explorer via DDMS doesn't work

When I try and use the file explorer in DDMS for my device it just comes up as blank. I am am running JF ADP1.5 on the device and the 1.5SDK on Mac OS X.
Can someone please confirm that DDMS file explorer works for JF ADP1.5 (preferably on Mac).
Anyone have any other suggestions?
it never worked on 1.5 for me...
This is because you are using a modified firmware.
You have to replace the busybox ls file with the toolbox ls file.
but my ls is linked to toolbox ?
just had another go, it appears you have to close the file explorer and open it again
Ah ok thanks. I didn't know that. What is the easiest way for me to get a file out of an application directory then. I want to get the sqlite database from an app I am writing off the phone.
I'm using apps2sd so I thought the application data should reside in /system/sd/app but if I navigate there in linda or astro it is blank. /data/app is also blank.
BGH80 said:
I'm using apps2sd so I thought the application data should reside in /system/sd/app but if I navigate there in linda or astro it is blank. /data/app is also blank.
Click to expand...
Click to collapse
/data/data
jashsu said:
/data/data
Click to expand...
Click to collapse
/data is also empty
Have you tried opening it with Term Emu or adb instead of a file manager?
Well I'm a bit stuck now.
I got thinking my apps 2 sd wasn't working so I just decided to switch to the unionfs method.
Now my phone is looping. I don't want to do a wipe and I don't have access to ADB here at work so I can't copy a new update.zip ROM to my phone.
So I can't check anything until I get home and can reflash my phone which will hopefully fix the problem.
Ah what a nightmare. The unionfs apps2sd didn't work on the first attempt so I ended up having to reformat, wipe, reinstall etc. I'm back up and running now and was able to get the file I wanted via adb pull.
How come file managers don't show the contents of folders such as /data/data/ ?
BGH80 said:
Ah what a nightmare.
Click to expand...
Click to collapse
Welcome to A2SD.

writing update-script file

I would like to copy additional files into the /data/app/ folder with an update.zip file. My script will successfully add to /system/app/ folder but not /data/app/. I've seen code to delete and then add a whole new /data/app/ folder but I would like to keep whatever is in there already, just add and remove specific files in it. This is what I've been using but it fails. Can this be done?
Code:
show_progress 0.200000 0
delete DATA:app/com.facebook.katana.apk
copy_dir PACKAGE:data DATA:
set_perm 1000 1000 0771 DATA:app
diordnahero said:
I would like to copy additional files into the /data/app/ folder with an update.zip file. My script will successfully add to /system/app/ folder but not /data/app/. I've seen code to delete and then add a whole new /data/app/ folder but I would like to keep whatever is in there already, just add and remove specific files in it. This is what I've been using but it fails. Can this be done?
Code:
show_progress 0.200000 0
delete DATA:app/com.facebook.katana.apk
copy_dir PACKAGE:data DATA:
set_perm 1000 1000 0771 DATA:app
Click to expand...
Click to collapse
While not necessarily my forte, do you happen to be running apps2sd? My guess is that the partition on the SD card hasn't mounted yet, and thus, the file(s) can't be accessed to delete.
yes I am.
Though my update script works to write and delete to /system/.. folders just fine. The update-script files I have looked at delete the whole folder first and then create/copy the new one, then correct permissions. I can't find anything specific to delete/adding individual files though.
diordnahero said:
yes I am.
Though my update script works to write and delete to /system/.. folders just fine. The update-script files I have looked at delete the whole folder first and then create/copy the new one, then correct permissions. I can't find anything specific to delete/adding individual files though.
Click to expand...
Click to collapse
The system folder is not part of apps2sd, so that would make sense.
I'm still thinking this is your issue. I'm wondering if there is a way to mount via an update script?
JsChiSurf said:
The system folder is not part of apps2sd, so that would make sense.
I'm still thinking this is your issue. I'm wondering if there is a way to mount via an update script?
Click to expand...
Click to collapse
I dont think mounting via an update script is possible but you could write a script to do it kinda like Cyanogen's backup script that mounts the sdcard when in recovery to do a backup of google ****s.
zippy-man said:
I dont think mounting via an update script is possible but you could write a script to do it kinda like Cyanogen's backup script that mounts the sdcard when in recovery to do a backup of google ****s.
Click to expand...
Click to collapse
I saw this syntax referenced in another thread, that you can use in an update script:
run_program PACKAGE:script.sh
I'm assuming this is what Cyanogen is doing?
That's pretty cool. So, moral of the story, you can create a little shell script that runs during the update process that will mount the necessary partition, and move / add / delete files as necessary.
Actually makes it nicer, as you can write your entire update as a shell script rather than using the standard update script lingo, which may be less familiar...
JsChiSurf said:
I saw this syntax referenced in another thread, that you can use in an update script:
run_program PACKAGE:script.sh
I'm assuming this is what Cyanogen is doing?
That's pretty cool. So, moral of the story, you can create a little shell script that runs during the update process that will mount the necessary partition, and move / add / delete files as necessary.
Actually makes it nicer, as you can write your entire update as a shell script rather than using the standard update script lingo, which may be less familiar...
Click to expand...
Click to collapse
yup, I've done that before. Very handy. that'll get the job done
I dont think mounting via an update script is possible but you could write a script to do it kinda like Cyanogen's backup script that mounts the sdcar
Click to expand...
Click to collapse
I saw this syntax referenced in another thread, that you can use in an update script:
run_program PACKAGE:script.sh
I'm assuming this is what Cyanogen is doing?
That's pretty cool. So, moral of the story, you can create a little shell script that runs during the update process that will mount the necessary partition, and move / add / delete files as necessary.
Actually makes it nicer, as you can write your entire update as a shell script rather than using the standard update script lingo, which may be less familiar...
Click to expand...
Click to collapse
Yep. You just create whatever script you want and add that to the update script and it will run it. I have used it for many things but have not used a script to mount the sd card.
If you get a hold of the script that cm wrote you could pull out the party that mounts the sd card and use that to write to data if it its located on the sd card.
-------------------------------------
Sent from my HTC Hero
Awsome! Great stuff.
I found this but have not tried it yet as there hasn't been need to update anything lately.

[shell][utility][terminal] munky-tool

***MUNKY-TOOL***
IS AN ONBOARD ANDROID UTILITY
FEATURES
[*]Copy system.img
[*]Copy boot.img
[*]Backup efs
[*]Logcat
[*]Backup and Restore Contacts
[*]Out For A Rip
Munky-tool will locate and copy most partitions without you having to track down paths. This is convenient if you use a ROM kitchen, or just want to make a backup of your system without using custom recovery. Some devices do have weird partition names, and munky-tool will not find them. If this happens to you, run the following command in terminal emulator
Code:
ls /dev/block/platform/*/by-name
Paste the output and your device name in the comments, and I will work your device in if possible.
INSTRUCTIONS
Download zip or clone git
Place extracted munky-tool folder in system partition (must be able to set permissions)
Set permissions of munky-tool script (not the directory) to at least 775 (rwx rwx rw)
Open terminal emulator and key in 'su' for root permissions
cd to the munky-tool directory
Type ./munky-tool to execute the script and start the utility
​
DOWNLOAD
github
Dude once again you're creativity and hard work is paying off. Great job man
Style point for the rip bud!
Sounds very helpfull and as markbencze already replyed I gues it's working on the O+O too. Have to try it in the next days.
thx markbencze for sharing.
SaschaKH said:
Sounds very helpfull and as markbencze already replyed I gues it's working on the O+O too. Have to try it in the next days.
thx markbencze for sharing.
Click to expand...
Click to collapse
Yes. I tested it on my OPO. It went out for a rip. It will run on any device, and it will find the partitions on most.
Where's the download link dude, i'm not find download link from github ?
itsnie said:
Where's the download link dude, i'm not find download link from github ?
Click to expand...
Click to collapse
On the right side of page near the clone url, there should be a button that says download as zip.
Just realized you have to be in desktop view to see the download as zip button. I will post an additional link a little later.
Just added backup and restore contacts.
N-i-c-e!
Thank you.
I've been working on the same sort of thing, and trying to figure out how to get adb connected to the phone with debugging off, for those people (I won't use the word I'm thinking of) who don't make backups, then break the screen, or bootloop the phone. Your script makes finding the data partition trivial, but I'm still working on the "force debugging on from outside" part.
But munky is going to be part of my phone from now on.
Rukbat said:
N-i-c-e!
Thank you.
I've been working on the same sort of thing, and trying to figure out how to get adb connected to the phone with debugging off, for those people (I won't use the word I'm thinking of) who don't make backups, then break the screen, or bootloop the phone. Your script makes finding the data partition trivial, but I'm still working on the "force debugging on from outside" part.
But munky is going to be part of my phone from now on.
Click to expand...
Click to collapse
Thanks, man. Glad to hear you like it.
mike the inkman said:
***MUNKY-TOOL***
IS AN ONBOARD ANDROID UTILITY
FEATURES
[*]Copy system.img
[*]Copy boot.img
[*]Backup efs
[*]Logcat
[*]Backup and Restore Contacts
[*]Out For A Rip
Munky-tool will locate and copy most partitions without you having to track down paths. This is convenient if you use a ROM kitchen, or just want to make a backup of your system without using custom recovery. Some devices do have weird partition names, and munky-tool will not find them. If this happens to you, run the following command in terminal emulator
Code:
ls /dev/block/platform/*/by-name
Paste the output and your device name in the comments, and I will work your device in if possible.
INSTRUCTIONS
Download zip or clone git
Place extracted munky-tool folder in system partition (must be able to set permissions)
Set permissions of munky-tool script (not the directory) to at least 775 (rwx rwx rw)
Open terminal emulator and key in 'su' for root permissions
cd to the munky-tool directory
Type ./munky-tool to execute the script and start the utility
​
DOWNLOAD
github
Click to expand...
Click to collapse
Good Tool, do you already plan to support restore EFS? which make a full loop of running time change the EFS setting without a PC,
this can help to me to control the modem band preset selections for network testing purpose.
Azlun said:
Good Tool, do you already plan to support restore EFS? which make a full loop of running time change the EFS setting without a PC,
this can help to me to control the modem band preset selections for network testing purpose.
Click to expand...
Click to collapse
It is usually done in bootloader, but I am pretty sure I can make it work. Just need to test it before I release it. I am also going to release this as an apk soon. (Don't know how soon, but I probably won't have time for a few weeks)
An app that we can point new users to that will back up their userdata partition? Fantastic!
Rukbat said:
An app that we can point new users to that will back up their userdata partition? Fantastic!
Click to expand...
Click to collapse
Yeah, I think it will fill a need. I am going to do an APK to do the things from this script, and a corresponding GUI Linux package for APK modding, and maybe do something for Windows as I get time. In the process of moving somewhat unexpectedly, so it is taking longer than I would have liked.

Categories

Resources