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

Special Developer Edition Firmwares and Hacking on Archos 5 IT, 5/7 IMT, 605/705, with Android, ├àngstr├Âm and other Linux
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post 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...
dm8tbr
Archos Guru
Archos Guru
Posts: 524
Joined: Thu Nov 23, 2006 3:44 pm
Location: openaos.org
Contact:

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

Post 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?
openAOS
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post 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?
dm8tbr
Archos Guru
Archos Guru
Posts: 524
Joined: Thu Nov 23, 2006 3:44 pm
Location: openaos.org
Contact:

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

Post 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.
openAOS
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post 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.
dm8tbr
Archos Guru
Archos Guru
Posts: 524
Joined: Thu Nov 23, 2006 3:44 pm
Location: openaos.org
Contact:

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

Post 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?
openAOS
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post 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...
dm8tbr
Archos Guru
Archos Guru
Posts: 524
Joined: Thu Nov 23, 2006 3:44 pm
Location: openaos.org
Contact:

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

Post 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.
openAOS
dm8tbr
Archos Guru
Archos Guru
Posts: 524
Joined: Thu Nov 23, 2006 3:44 pm
Location: openaos.org
Contact:

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

Post 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
openAOS
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post 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?
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post 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.
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post 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?
grond
Archos Guru
Archos Guru
Posts: 627
Joined: Thu Nov 23, 2006 10:37 pm
Location: Berlin
Contact:

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

Post 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.
openAOS
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post 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.
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post by lama1234 »

Sorry dm8tbr, your PM is disabled. I can't answer
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post 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# 
grond
Archos Guru
Archos Guru
Posts: 627
Joined: Thu Nov 23, 2006 10:37 pm
Location: Berlin
Contact:

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

Post 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 )
openAOS
lama1234
Archos Novice
Archos Novice
Posts: 13
Joined: Tue Oct 26, 2010 9:58 pm

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

Post 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?
grond
Archos Guru
Archos Guru
Posts: 627
Joined: Thu Nov 23, 2006 10:37 pm
Location: Berlin
Contact:

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

Post 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.
openAOS
dm8tbr
Archos Guru
Archos Guru
Posts: 524
Joined: Thu Nov 23, 2006 3:44 pm
Location: openaos.org
Contact:

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

Post 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.
openAOS
Post Reply

Return to “Open Development”