Page 1 of 2

Removing Sound recorder app from archos 5it firmware. Howto?

Posted: Tue Oct 26, 2010 10:02 pm
by lama1234
Hello all,

I want to ask. What exactly should I do in firmware, that sound recorder app will be removed from Arshos 5IT? I need it a lot! Please, help me and forgive me for my bad English...

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Wed Oct 27, 2010 8:38 am
by dm8tbr
I guess you could just go to settings / applications / manage
and then just uninstall the soundrecorder.

Or do you need something more elaborate?

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Wed Oct 27, 2010 8:45 pm
by lama1234
dm8tbr wrote:I guess you could just go to settings / applications / manage
and then just uninstall the soundrecorder.

Or do you need something more elaborate?
I can't, cause there isn't active uninstall button. I think sound recorder is a part of firmware and uninstall button is inactive in settings/applications/ manage... enything else?

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Wed Oct 27, 2010 10:12 pm
by dm8tbr
indeed

well if you really want to get rid of it I guess you could install the SDE bootloader, then prepare an rootfs where that app is stripped out.

nothing for the absolute beginner, but also not thaaat hard if you know your way around linux.

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Thu Oct 28, 2010 7:50 am
by lama1234

Code: Select all

[quote="dm8tbr"]indeed

well if you really want to get rid of it I guess you could install the SDE bootloader, then prepare an rootfs where that app is stripped out.

nothing for the absolute beginner, but also not thaaat hard if you know your way around linux.[/quote]
Can you write me step-by-step what should i do? Is this firmware looks like original in archos5it? Where can i find that firmware for my A5IT? Please help me if you can. Thanks.

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Sat Oct 30, 2010 7:10 pm
by dm8tbr
What have you tried to get this done so far? Do you have a linux system (Virtual machine is fine too)? How familiar are you with Linux?

Also out of curiosity, why is it so imperative for you to remove this application that you want to invest so much work/time?

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Sat Oct 30, 2010 9:12 pm
by lama1234
dm8tbr wrote:What have you tried to get this done so far? Do you have a linux system (Virtual machine is fine too)? How familiar are you with Linux?

Also out of curiosity, why is it so imperative for you to remove this application that you want to invest so much work/time?
Yes,i have a linux system, but i'm a n00b for it. My linux knowledges are not good. I bought archos5it for my friend,but now he's in a prison, and they can't have any stuff which have a sound recorder. And that's why i want to do this... it's very important for me... So, could you help me? Please...

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Sun Oct 31, 2010 8:02 am
by dm8tbr
Which linux do you have? So I can recommend the right packages to be installed.

I checked and the ofending package is in the image androidroot.cramfs.secure in the path: system/app/SoundRecorder.apk

PS: Unexpected reason but somehow makes sense.

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Sun Oct 31, 2010 8:20 am
by dm8tbr
In case of ubuntu/debian it's actually very easy it turns out:
This covers how to get the aos-tools compiled:
http://dev.openaos.org/wiki/SettingUpMultiRootGen7

This covers how to unpack, modify and repack a firmware:
http://archos.g3nius.org/index.php?titl ... are_update

I had no idea einstein had made it so easy. :D

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Sun Oct 31, 2010 10:16 pm
by lama1234
dm8tbr wrote:In case of ubuntu/debian it's actually very easy it turns out:
This covers how to get the aos-tools compiled:
http://dev.openaos.org/wiki/SettingUpMultiRootGen7

This covers how to unpack, modify and repack a firmware:
http://archos.g3nius.org/index.php?titl ... are_update

I had no idea einstein had made it so easy. :D
In these days I'll be very bussy, but i'll try that after few days. My linux's Ubuntu 10.
And question: do i need an internet connection on my linux for compiling Aos-tool? Because i don't have it in that machine.
Do I have unpack/repack my original aos ( for A5IT) or linked pre-patched for a5-7?

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Wed Nov 03, 2010 9:55 pm
by lama1234
dm8tbr wrote:In case of ubuntu/debian it's actually very easy it turns out:
This covers how to get the aos-tools compiled:
http://dev.openaos.org/wiki/SettingUpMultiRootGen7

This covers how to unpack, modify and repack a firmware:
http://archos.g3nius.org/index.php?titl ... are_update

I had no idea einstein had made it so easy. :D
Hi. I have no an internet connection in my linux pc. How can i compile aos-tools? And i need some ubuntu packages for compiling ( like libssl and subversion with many anothers...) i can't get it without internet. Or ... can you do archos firmware without sound recorder apk for me and i would download it from you? Or... step by step help me, what should i do in linux and later, that archos firmware would be that what i need...
Thank you a lot for help.
Respect.

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Thu Dec 02, 2010 6:44 am
by lama1234
So, I unpacked my archos5it firmware with aos-tools and now I have file which called androidroot.cramfs.secure. I mounted it with command
"mkdir cramfs
mount -t ext3 -o loop ./androidroot.cramfa.secure cramfs"
But there is a problem. I cannot change anything in this mounted file, becouse it is read only. I found SoundRecorder.apk in system/app folder, but I can't delete it.
does anybody know how can I edit that file?

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Thu Dec 02, 2010 12:24 pm
by grond
lama1234 wrote: But there is a problem. I cannot change anything in this mounted file, becouse it is read only. I found SoundRecorder.apk in system/app folder, but I can't delete it.
does anybody know how can I edit that file?
You need the cramfs-tools to extract the cramfs (split it up into a directory tree full of files, best done as root to preserve the owner ids), remove the file and whatever belongs to it and then to create a new cramfs from the modified directory tree. The cramfs-tools are standard linux stuff, I believe they were written by Linus himself. You can find them looking around on the web or perhaps your linux distribution even has a package comprising them.

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Thu Dec 02, 2010 5:05 pm
by lama1234
Ok. I unpacked .aos with aos-unpack command. Then "sudo bash unpack.sh". That's all right. I found cramfs.secure folder and removed soundrecorder.apk. Next step is repacking. I type in terminal "sudo bash repack.sh" and there i get a problem with 6 line, 13 line etc... When i trying to look inside this file (repack.sh) i see, that in 6 line there are command aos-repack....... I can't remember now whole line, because i haven't that pc at this time. But i can't repack my firmware. Anyone could help me? Tommorow i'll try to write whole error.

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Thu Dec 02, 2010 5:29 pm
by lama1234
Sorry dm8tbr, your PM is disabled. I can't answer

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Fri Dec 03, 2010 10:34 am
by lama1234
That's the problem with repacking

Code: Select all

[email protected]:~/aos-tools/tools/firmware_archos5# sudo bash repack.sh
5124 blocks
repack.sh: line 6: aos-repack: command not found
3121 blocks
repack.sh: line 13: aos-repack: command not found
Directory data: 40164 bytes
Everything: 56816 kilobytes
Super block: 76 bytes
CRC: dbcdaa4d
repack.sh: line 19: aos-fix: command not found
Directory data: 700 bytes
Everything: 4832 kilobytes
Super block: 76 bytes
CRC: 244da69c
repack.sh: line 26: aos-fix: command not found
[email protected]:~/aos-tools/tools/firmware_archos5# 

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Fri Dec 03, 2010 2:56 pm
by grond
aos-repack and aos-fix aren't in your PATH. You might want to do a normal "su" to become root, then adjust the PATH variable. If you are in the same directory as aos-repack and aos-fix, you could just do "export PATH=$PATH:." If they are in a different directory, just replace the dot "." with the path to that place. After that run repack.sh again and it should work (or at least give you a different error... :D )

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Fri Dec 03, 2010 4:27 pm
by lama1234
grond wrote:aos-repack and aos-fix aren't in your PATH. You might want to do a normal "su" to become root, then adjust the PATH variable. If you are in the same directory as aos-repack and aos-fix, you could just do "export PATH=$PATH:." If they are in a different directory, just replace the dot "." with the path to that place. After that run repack.sh again and it should work (or at least give you a different error... :D )
Ok. I did that. The problem was with head in bitmapfs.cramfs.secure, when i was trying to repack. So I didn't unpack bitmapfs.cramfs.secure at all, only androidroot.cramfs.secure. I repacked it by typing -f (force) in command aos-repack digest. So finally I did my own aos without soundrecorder, browser, emeil etc... Now I'm having the last problem how update my archos5it with this firmware. When I trying to update by pushing vol+ and power, then update firmware and copying firmware to archos I get the error "update failed NOK (code 207)".
What should I do next?

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Sat Dec 04, 2010 6:36 pm
by grond
lama1234 wrote:Ok. I did that. The problem was with head in bitmapfs.cramfs.secure, when i was trying to repack. So I didn't unpack bitmapfs.cramfs.secure at all, only androidroot.cramfs.secure. I repacked it by typing -f (force) in command aos-repack digest. So finally I did my own aos without soundrecorder, browser, emeil etc... Now I'm having the last problem how update my archos5it with this firmware. When I trying to update by pushing vol+ and power, then update firmware and copying firmware to archos I get the error "update failed NOK (code 207)".
What should I do next?
Assuming that you had hacked your original firmware already, all you should need to do is to copy your repacked androidroot.cramfs.secure over replacing that on the a5it's filesystem. I think that can be done easily when connecting the a5it via USB in recovery mode and mounting the hidden filesystem. There should be details on this available. The process would be at least very similar to that required to install one of the openaos android builds so you might want to look around openaos.org for instructions.

Re: Removing Sound recorder app from archos 5it firmware. Ho

Posted: Sat Dec 04, 2010 11:28 pm
by dm8tbr
actually you would just put the files in the openaos/update/cramfs directory and it will copy it over to the right ubi partition in NAND on next reboot.