Move a file during Installation - iPAQ rw6828, XDA Atom ROM Development

You must know that, We use initflashfiles.txt for copying a file from one location to another during Installation.
Directory("DESTINATION FOLDER"):-File("DESIRED FILENAME","FILE SOURCE")
But tell me How to Move a File during Installation?

Related

Help! OI File Manager - "Could not move file."

I am trying to move .mp3 files from the "Zedge" folder to the "Notifications" folder inside System\Media\Notifications
OI File Manager keeps telling me it can't move the file. I tried copying instead, and it says "Could not copy file." I am running rooted 2.1. Anyone know what's going on here?
you need to mount the system dir to be rewritable to paste the mp3 there. OI file manager does not have that feature best bet if you want a file manager with root level access buy root explorer it's worth every penny.

[Q] delete strange folder created by Easy Unrar

I installed Easy Unrar, Unzip & Zip from Goolge play to unzip a zip folder on my phone. It didn't work at all, besides, it created a folder (with strange character name) which can not be deleted. It's 0 byte, can be opened but is empty. Can not create anything inside. I tried deleting with Astro file manager, nothing happened, the folder still there. I tried deleting from my PC, it said the 'Cannot delete the folder. Storage is protected. Remove the write-protection and try again'. The strange folder is on my internal memory. I don't have a memory card installed. Please help.
I can delete any other things on my phone. The file name of the zip I tried to unzip is not English, which I suspect might be the problem?
Ian
help
ive encountered this too. can someone help us or did you already fix this? I think it has a chinese character like.apk but when you open. it opens as if it was a folder. but you cannot delete, rename, move or copy. even through desktop operations failed. and also its shows the date accessed in a year 1970. i tried to edit my date settings hoping that I might delete it but this note 2 has a minimum of year 2000. help thanks
Try to install clean master and open it. Press junk file and standard. Allow it to scan. It shld have a residual folders place. Just scan it with standard and advanced. See if it is still thr. Btw. U can unzip zip files with File Expert.
Sent from my GT-I9300

[SOLVED] Edit .ogg in camera.apk

I have a rooted Galaxy M Style phone with stock Gingerbread 2.3.4 firmware. I am trying to customize my stock camera app, but am not sure what I'm doing wrong. I plan to replace the autofocus_ok.ogg with a different tune from my phone. I checked the properties of the autofocus_ok.ogg and saw it's a mono, 44100hz, and 96 bitrate file. The tune that I have has the same properties. So this is what I have done so far:
I backed up camera.apk to /system/app/camera.apk.bak and the camera.odex to /system/app/camera.odex.bak. I left a copy of camera.odex in /system/data. I copied the camera.apk to my memory card and placed the file on my computer. I renamed the file to a .rar. I then deleted the autofocus_ok.ogg and placed the tune that I wanted in that directory. Then I renamed it to autofocus_ok.ogg. I renamed the file back to .apk and transferred the file back to the memory card, then over to /system/app. The camera app will not install/not showing up on my phone. I am transferring the files through root explorer on my phone.
I worked with the original apk file again with apktool. I was able to decompile and replaced and renamed the files that I needed again. I compiled the file and transferred the file to /system/app again, but the apk will still not install. I checked the complied apk file and noticed that the file didn't have the META-INF folder, so I copied that over to. Tried to install it again by copying the file to /system/app, but it still won't show up on my phone. Is there anyway for me to change the autofocus_ok.ogg without a custom rom?
Thanks.
ImAhNoBoDy said:
I have a rooted Galaxy M Style phone with stock Gingerbread 2.3.4 firmware. I am trying to customize my stock camera app, but am not sure what I'm doing wrong. I plan to replace the autofocus_ok.ogg with a different tune from my phone. I checked the properties of the autofocus_ok.ogg and saw it's a mono, 44100hz, and 96 bitrate file. The tune that I have has the same properties. So this is what I have done so far:
I backed up camera.apk to /system/app/camera.apk.bak and the camera.odex to /system/app/camera.odex.bak. I left a copy of camera.odex in /system/data. I copied the camera.apk to my memory card and placed the file on my computer. I renamed the file to a .rar. I then deleted the autofocus_ok.ogg and placed the tune that I wanted in that directory. Then I renamed it to autofocus_ok.ogg. I renamed the file back to .apk and transferred the file back to the memory card, then over to /system/app. The camera app will not install/not showing up on my phone. I am transferring the files through root explorer on my phone.
I worked with the original apk file again with apktool. I was able to decompile and replaced and renamed the files that I needed again. I compiled the file and transferred the file to /system/app again, but the apk will still not install. I checked the complied apk file and noticed that the file didn't have the META-INF folder, so I copied that over to. Tried to install it again by copying the file to /system/app, but it still won't show up on my phone. Is there anyway for me to change the autofocus_ok.ogg without a custom rom?
Thanks.
Click to expand...
Click to collapse
erm... is the permissions set correctly rw-r--r-- ?
MoonBlade said:
erm... is the permissions set correctly rw-r--r-- ?
Click to expand...
Click to collapse
Yup, permissions were set correctly like rw-r--r--. Owner is root:root. Those are the permission that I set on the apk file like they were on the original file. I just realized that the compiled apk's from apktools doesn't show up on my phone. The apk that I created by opening up winrar and just replacing the .ogg files do show up, but I get the error "The application Camera (process com.sec.android.app.camera) has stopped unexpectedly. Please try again."
Anything else I can try or a thread to refer to?
ImAhNoBoDy said:
Yup, permissions were set correctly like rw-r--r--. Owner is root:root. Those are the permission that I set on the apk file like they were on the original file. I just realized that the compiled apk's from apktools doesn't show up on my phone. The apk that I created by opening up winrar and just replacing the .ogg files do show up, but I get the error "The application Camera (process com.sec.android.app.camera) has stopped unexpectedly. Please try again."
Anything else I can try or a thread to refer to?
Click to expand...
Click to collapse
why dont you try to push the modified apk manually using root explorer or so instead of pushing via adb ..
after decompiling apk and modifying it, compile it into some folder and then copy it into you sd card then use root explorer and manually push(copy) the apk into system/app .. give proper permissions and then reboot your phone..
Here are some guides to use apktool
http://forum.xda-developers.com/showthread.php?t=1891686
http://forum.xda-developers.com/showthread.php?t=1989533
MoonBlade said:
why dont you try to push the modified apk manually using root explorer or so instead of pushing via adb ..
after decompiling apk and modifying it, compile it into some folder and then copy it into you sd card then use root explorer and manually push(copy) the apk into system/app .. give proper permissions and then reboot your phone..
Here are some guides to use apktool
http://forum.xda-developers.com/showthread.php?t=1891686
http://forum.xda-developers.com/showthread.php?t=1989533
Click to expand...
Click to collapse
I have been pushing the modified apk through root explorer all this time. I don't even have adb install, haha. The procedure you explained have been the way I have been doing it the whole time, lol. I read the threads you posted and the procedure is the same as I've been doing it, except for the second thread. I can't grab the apktool from 4shared because I don't have an account. I am using the latest apktool 1.5.2. Also, I didn't understand what PulseDroid was talking when he said "We are NOT done just yet, we cannot use the new apk's... we have to take what we did and add it back to the original apk file to keep proper signature use something like 7zip, take the 'resources.arcs' file and any other xml files you edited out of the "-new" apk and copy them into Original apk". So I'm suppose to replace the resources.arcs and the .ogg files that I created from the new apk to the old apk? I didn't mess with any xml file.
Anyways, is there anything else I can try?
EDIT: ........I feel so embarrassed. I checked out this thread http://forum.xda-developers.com/showthread.php?t=2378177 and saw this post "Drag your replacement files into WinRAR and (here's the important part) in the Compression Method drop-down choose "Store"." All this time I have been compressing the file as "Normal" in Winrar, instead of "Store".
All in all, I did not need apktool at all. I used the original apk and opened it up in Winrar. I deleted the files that I wanted to replaced and put in the files that I wanted. Each time I put something in the file in Winrar I get a prompt for compression and instead of "Normal" compression just use "Store". It was that simple.
This helped me, thank you!

[Q] Choose Specific App Install Path

Hi
I'm trying to move my security software apk file to the /system/app folder to make it hard reset proof. I renamed the original apk which is in the /data/app folder. I then copied the file to the /system/app folder and renamed it to the original filename. I then installed the apk, chose replace. What happend was that the app created another apk in the /data/app folder this time with a "2" behind it.
I'm guessing the apk has code in it that tells it to install there. So what I was wondering, can I set a specific default install directory, install the apk and then return it to default?
or
Where do the file go after the apk is ran, the program isn't ran by the apk because when you try and run it, it just asks to install it, not open the program. Could I move the actual app files and edit the install path in where the os stores the list of installed apps and there paths (where ever that is?)?.

Create ext4-Image

Good Morning,
I had make a backup with clockwork and twrp. I install the Assayed Kitchen and convert the backup to the work folder.
I had seen that in a original ext4 image (same kind of backup) two folder with the name "tts" and "TTS". Is this a problem if in my backup the folder only one with the name "TTS". At the "TTS" Folder there are some files for pico. In the "tts" there a file named "resourche.rtf". In my Backup all files are in a folder named "TTS".
The second is, that there is a apk in the original named "AUX.apk". If my Backup extracted to the work folder the apk named "_AUX.apk". Renaming to AUX.APK isnĀ“t possible under windows. When I create new rom the "_AUX.apk" will be not renamed back to "AUX.APK". What can I do.
How I create a ext4-file named "system.img.ext4" with the kitchen? I ever get a file named "system.img". How I can convert to ext4? At the creating I give the command that the kitchen create a raw-file. Is this right for ext4?
Why I have to say the kitchen the system size. I look how big the system folder. When the system folder have a size with 400mb I write 500mb. Is this right? Or can I say 420mb too? Because the partition of the device are at 885mb.
The ready ext4-file have to be in a update.zip for flashing with sd card.
I had seen that I have to signing the update.zip. Is this right with apk-sign?
Maybe someone can explain me how to create a rom into ext4.
Thank you very much

Categories

Resources