closed - Android Software Development

closed

OK. Ran the script but seems to hang at the recursively deleting part so I have no gallery anymore... I edited the media list file as told but still .nomedia files everywhere
Sent from my HTC Glacier using xda premium

parkave85 said:
OK. Ran the script but seems to hang at the recursively deleting part so I have no gallery anymore... I edited the media list file as told but still .nomedia files everywhere
Sent from my HTC Glacier using xda premium
Click to expand...
Click to collapse
Can you send me the exact content of your /sdcard/media_list ?
Note that it MUST be exactly that filename and path, not external SD!
Is busybox installed on your ROM ?
Ive attached a version which verboses all Output to
/mnt/sdcard/media-cleaner_upper-output.txt
/mnt/sdcard/media-cleaner_lower-output.txt
Please run that script and send me both of the textfiles

sebsch1991 said:
Can you send me the exact content of your /sdcard/media_list ?
Note that it MUST be exactly that filename and path, not external SD!
Is busybox installed on your ROM ?
Ive attached a version which verboses all Output to
/mnt/sdcard/media-cleaner_upper-output.txt
/mnt/sdcard/media-cleaner_lower-output.txt
Please run that script and send me both of the textfiles
Click to expand...
Click to collapse
OK here ya go... on another note the script is taking about 40 min. Is this normal?? http://db.tt/eRC9qh8othe media list
http://db.tt/ncVLH7zvone output
http://db.tt/jr1RrJmBthe other...I believe is empty but haven't looked
Sent from my HTC Glacier using xda premium

parkave85 said:
OK here ya go... on another note the script is taking about 40 min. Is this normal?? http://db.tt/eRC9qh8othe media list
http://db.tt/ncVLH7zvone output
http://db.tt/jr1RrJmBthe other...I believe is empty but haven't looked
Sent from my HTC Glacier using xda premium
Click to expand...
Click to collapse
The script you are running is running through your whole root Filesystem.. this is why it takes 40 mins ..Normally its done within 30-40 seconds!
What did you write into your media_list ?
Did you change any other things such as the Folder Variable inside the script ?

sebsch1991 said:
The script you are running is running through your whole root Filesystem.. this is why it takes 40 mins ..Normally its done within 30-40 seconds!
What did you write into your media_list ?
Did you change any other things such as the Folder Variable inside the script ?
Click to expand...
Click to collapse
the media list is there... just /sdcard didn't change a thing...
Sent from my HTC Glacier using xda premium

ok your media_list contains the follwing entry
Code:
/sdcard
That means you want to collect the whole /sdcard to your media-repository ?
Sry that makes no sence to me!?
Step by step how to again:
1. Download the zip
2. extract both files (media_list + S11media-cleaner.sh) to your SD-Card /mnt/sdcard
3. busybox chmod 755 or 777 S11media-cleaner.sh (make it executable)
4. add the folders you want to be displayed in gallery to your media_list
/sdcard/myPictures
/sdcard/DCIM
/sdcard/private/xxx_movies
5. run the script from terminal or whatever "sh /mnt/sdcard/S11media-cleaner.sh"
6. if you like you can copy the script to /etc/init.d for running on startup

Yes. I want all of the .nomedia files removed... my media list file seems to have no effect on the script... everything got .nomedia files regardless of what I put in the media list file
Sent from my HTC Glacier using xda premium

As of now, even with media list as is nothing appears in gallery is what I'm saying
Sent from my HTC Glacier using xda premium

parkave85 said:
Yes. I want all of the .nomedia files removed... my media list file seems to have no effect on the script... everything got .nomedia files regardless of what I put in the media list file
Sent from my HTC Glacier using xda premium
Click to expand...
Click to collapse
Try new version 0.9.3 ..
Should fix that for you

I moved on to another app now, sorry I couldn't stand being without a gallery... I will give this a shot at some point though.
Sent from my HTC Glacier using xda premium

Oh wow, thanks!
I was doing this manually and was annoying.
Added it to /system/etc/init.d/ but that didn't work, it didn't add the files.

LiLChris06 said:
Oh wow, thanks!
I was doing this manually and was annoying.
Added it to /system/etc/init.d/ but that didn't work, it didn't add the files.
Click to expand...
Click to collapse
Does it work for you running the script manually ?
Unfortunatley i currently cant test the init.d thing ...
There may be a problem with the sequence of inits. I named the script S11 to start at an earlier point (does android care about the values??)
Maybe at that point of time the /sdcard is not mounted yet ..
So you could try renaming the script to maybe S99..?!
Please report back and I will change that

Related

DiskCacheIndex.Tmp files?

I have noticed that I am getting a lot of DiskCacheIndex.Tmp files on my SD Card when I use Android which is almost all the time instead of WM. I delete these files manually. I did a search on this and really found no answers other than they are temp files. So looking for something definitive.
1. What are these files?
2. Any apk to delete them automatically?
Thanks!
I would like to know as well
GScript Light
Try to write a Gscript. Download this app in the market. Save the script. Now you can run it every time without deleting those files manually.
There should be enough examples for doin that on google
Cheers
In Gscript write a scrip named "Delete DiskCacheIndex" (or whatever)
cd /mnt/sdcard
rm DiskCacheIndex*
ls
zolom said:
In Gscript write a scrip named "Delete DiskCacheIndex" (or whatever)
cd /mnt/sdcard
rm DiskCacheIndex*
ls
Click to expand...
Click to collapse
Haha, it was so easy and I didn't got the solution
I bet you guys have the app 3D Gallery installed. For me that was the reason for getting this files...
Sent from my Desire HD using XDA App
TML1504 said:
I bet you guys have the app 3D Gallery installed. For me that was the reason for getting this files...
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
Finally someone identified the cause!
Thank you!
dj_ghosie said:
Finally someone identified the cause!
Thank you!
Click to expand...
Click to collapse
no prob, you're welcome!
There is a program for automatically removal of these files. Check for "Junk Killer" on market.
GoranLazic said:
There is a program for automatically removal of these files. Check for "Junk Killer" on market.
Click to expand...
Click to collapse
Thanks for bumping this thread.. this problem has already been solved more than 3 months ago..
Edit :Oh.. I'm sorry, it was 4 months ago
GoranLazic said:
There is a program for automatically removal of these files. Check for "Junk Killer" on market.
Click to expand...
Click to collapse
Thanks, it may have been solved 3 or 4 months ago, but I just saw your posting and just DnI Junk Killer. Sometimes it helps to bump up. Thanks again!

Unzipped new darkstone!!!!!!

Onto my sdcard and guess what??? You can't have 2 android folders. Damn it some off the dumbest mistakes are so easy to do.
Sent from my HTC HD2 using XDA App
chrisgto4 said:
Onto my sdcard and guess what??? You can't have 2 android folders. Damn it some off the dumbest mistakes are so easy to do.
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Change your Android folder to what ever you want and edit the startup.txt accordingly. You can have as many build as your heart desire.
Yeah I know. What I'm saying is....I used androzip to unzip to sdcard, which when writing to specified location OVERWRITES any existing folder named android with the one it is unzipping. I'm retarted for short
Sent from my HTC Desire using XDA App
chrisgto4 said:
Yeah I know. What I'm saying is....I used androzip to unzip to sdcard, which when writing to specified location OVERWRITES any existing folder named android with the one it is unzipping. I'm retarted for short
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
that sucks.
live and learn
chrisgto4 said:
Yeah I know. What I'm saying is....I used androzip to unzip to sdcard, which when writing to specified location OVERWRITES any existing folder named android with the one it is unzipping. I'm retarted for short
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Use pocketrar and you can set the location it extracts to, chose something like Android2, Android3 etc then in startup.txt edit this line:
Code:
set cmdline "rel_path=Android2"
Set the rel_path to whatever folder its in, and there you go.

Gallery App

Hi,
For some reason, my gallery app was causing my xoom to stay awake 100% of the time and I had no idea why...
So I just deleted it...
But now I need to use the gallery! I have tried a few links but none seem to work! If someone could attach it or a link or tell me how to get it back it would be of grat help.
Thanks!
Sent from my Milestone using Tapatalk
Nobody?
Sent from my Milestone using Tapatalk
This is why you never want to actually delete the file but instead rename. If you are using a ROM you can just reflash the ROM over it, otherwise, here's the gallery files I pulled, push these files to /system/app/
thanks a lot
Hey I had the same problem,,,did it work, deleting it? I saved it then deleted it and it still says my xooms battery is using 56 percent of my battery LOL when it is gone?
mcdevtingz said:
Hi,
For some reason, my gallery app was causing my xoom to stay awake 100% of the time and I had no idea why...
So I just deleted it...
But now I need to use the gallery! I have tried a few links but none seem to work! If someone could attach it or a link or tell me how to get it back it would be of grat help.
Thanks!
Sent from my Milestone using Tapatalk
Click to expand...
Click to collapse
As soon as I deleted it it stopped draining battery
Sent from my Milestone using Tapatalk
You could have extracted the apk from the rom or even used a third party app like quickpic.
scsa20 said:
This is why you never want to actually delete the file but instead rename. If you are using a ROM you can just reflash the ROM over it, otherwise, here's the gallery files I pulled, push these files to /system/app/
Click to expand...
Click to collapse
I tried to copy and paste them but its not working. What should permissions be set to?
Sent from my Milestone using Tapatalk
It's the same permission as the others in the /system/app directory. It needs to be 744, rw-r--r--.
scsa20 said:
It's the same permission as the others in the /system/app directory. It needs to be 744, rw-r--r--.
Click to expand...
Click to collapse
What app allows me to set this?
Sent from my Milestone using Tapatalk
mcdevtingz said:
What app allows me to set this?
Sent from my Milestone using Tapatalk
Click to expand...
Click to collapse
root explorer or any root accessible file explorer app
jerrycycle said:
root explorer or any root accessible file explorer app
Click to expand...
Click to collapse
I haven't found.an option for the number
Sent from my Milestone using Tapatalk
You check the appropriate boxes. There are 3 columns with 3 boxes each total 9. Check all in the left column & 1 St and 2 md in the middle column. Leave all others un checked. Reboot
scsa20 said:
It's the same permission as the others in the /system/app directory. It needs to be 744, rw-r--r--.
Click to expand...
Click to collapse
So close, but not quite chmod 644 /system/app/*.apk
The apk's themselves don't execute. The dalvik cache executes But as far as Gallery not sleeping, maybe it is trying to sync Picassa or something.
yeah, you're right, it's 644, still not fully used to the permissions in linux -_-

[mod] ICS apk de/recompile script for APK Tool - Windows

ICS Framework-res.apk does not like to be decompiled and recompiled by APK tool.
The work around is to use 2 different versions of APK tool and keep swapping files for decompile and recompile.
I have put this in a handy little batch file package to manage all this. It really is basic stuff, but hopefully for those who are not quite sure, it will ease the pain a little.
Please feel free to test it. Enjoy:
This is an updated script to modify ICS *.apk using APK tool.
I take no credit for Apk tool or the process.
I have simply automated it for Windows as there are issues with ICS framework-res modification
Pre -requisites
1. WinRar
2. Java
Click to expand...
Click to collapse
Initial setup
1. Extract the apk folder from the .zip to the root of C:\
The structure should then look like c:\apk\ACTIONS
2. Go into c:\apk\ACTIONS\Install_files
3. Double click "Setup_Install.bat"
Click to expand...
Click to collapse
Usage
Simply double click START.bat and follow the instructions
Click to expand...
Click to collapse
Limitations
Can decompile any one .apk with any name at a time. Do not put any .apk files into the "in" folder until prompted to.
Click to expand...
Click to collapse
Thanks to Rob222 for confirming the method.
Updated the OP. Now can decompile / recompile any name .apk
Simple script. Double Click start and follow prompts.
hi!
got this problem
Ficheiro não encontrado
1 ficheiro(s) copiado(s).
Error: Unable to access jarfile C:\Windows\System32\\apktool.jar
Click to expand...
Click to collapse
any hint ?
i already made the java paths .. tryed java6 and java7
but always that error
ruizit0 said:
hi!
got this problem
any hint ?
i already made the java paths .. tryed java6 and java7
but always that error
Click to expand...
Click to collapse
What command did you run when you did that?
Did you run the setup file first?
You will need to be an administrator. Are you? If so try right click on the start script > Run as administrator
Just realised I somehow had left part of the usage instructions for the old version in the post by mistake. That maybe why some of you have issues.
Nice one bro... that was surely something that many have tried.. nice work..
Sent from my GT-I9300 using Tapatalk 2
Did not work
I set up the script as per the OP but I get the error attached
Think I need this. Getting errors trying to build apks.
Sent from my GT-I9300 using xda premium
Phone_Guru said:
I set up the script as per the OP but I get the error attached
Click to expand...
Click to collapse
Please walk me through, step by step what you did from downloading to receiving this error
Sent from my GT-I9300 using Tapatalk 2
Hey I'm a total noob with apktool on win. But I have unzipped apks on my phone using root explorer swapping res files and made working theme mods...
Could you guide to a good guide to doing this stuff on windows with a GUI I'm code illiterate virtually but know what's going on
Sent from my GT-I9300 using xda premium
I was able to get the CM 10 Framework-res to decompile and recompile using this version:
http://www.mediafire.com/?clk29i70rg7n8i9
The beauty of apks is that if you're swapping oranges for oranges, you don't need to decompile. You only really need to decompile if you're changing XML files.
To swap one image for another image with the same name is easy.
1)Download winrar (or 7zip - but I use winrar).
2)Open the apk with winrar (do NOT extract)
3)Delete the images you want to change
4)Drag the replacement images back in. When the window pops up with options, change "compression" to "store"
5)Close winrar
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
The beauty of apks is that if you're swapping oranges for oranges, you don't need to decompile. You only really need to decompile if you're changing XML files.
To swap one image for another image with the same name is easy.
1)Download winrar (or 7zip - but I use winrar).
2)Open the apk with winrar (do NOT extract)
3)Delete the images you want to change
4)Drag the replacement images back in. When the window pops up with options, change "compression" to "store"
5)Close winrar
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Oh... yeah cool so this automates replacing different images in the apk with the same location... I just use a vrtheme skeleton CMW.zip folder and zip it when done for flashing.
So how do you decompile the arsc archive and mess with deeper stuff?
Sent from my GT-I9300 using xda premium
thankssssssssssssssssssssss Alot
first i Run Setup_instal.bat as administrator in "C:\apk\ACTIONS\Install_Files"
after that my problem solve (i have problem like post 2 and 3)
and thats Awsome ,
graffixnyc said:
content removed
Click to expand...
Click to collapse
Kindly remove your link. This thread is about the mod I am sharing, which I scripted. It is not about other mods.
rlorange said:
Oh... yeah cool so this automates replacing different images in the apk with the same location... I just use a vrtheme skeleton CMW.zip folder and zip it when done for flashing.
So how do you decompile the arsc archive and mess with deeper stuff?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
No, you don't use this at all if you're going to be changing images. This is for the deeper stuff.
rootSU said:
Please walk me through, step by step what you did from downloading to receiving this error
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
I did exactly what the OP says, extracted the files into the root of the C drive, ran the setup and clicked on the start.bat and followed instructions. I now ran the setup again and took a screenshot of what appeared because it was so fast I couldn't see it. It said access denied and 0 files copied. I then took ownership of the System32 folder and ran setup again and it said 1 file copied. I now ran the start.bat again and got the attached error.
So am I right in thinking that you can't simply merge folders/files and zip like you can with root explorer because windows is not a Linux system?
Sent from my GT-I9300 using xda premium
Phone_Guru said:
I did exactly what the OP says, extracted the files into the root of the C drive, ran the setup and clicked on the start.bat and followed instructions. I now ran the setup again and took a screenshot of what appeared because it was so fast I couldn't see it. It said access denied and 0 files copied. I then took ownership of the System32 folder and ran setup again and it said 1 file copied. I now ran the start.bat again and got the attached error.
Click to expand...
Click to collapse
can you try right clicking the start.bat and run as administrator please? You're still getting access denied messages.
rlorange said:
So am I right in thinking that you can't simply merge folders/files and zip like you can with root explorer because windows is not a Linux system?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
You can swap anything like-for-like. You can put in a replacement folder, xml file or png as long as everything has the same name.
If you want to edit an existing XML, you cannot do this without decompiling as when an xml is compiled, it does not appear as plain text. Similarly if you want to add more pngs or xml files, resources changed so it has to be decompiled too.
But if its simply swapping like-for-like, you can just use winrar or 7zip as mentioned earlier.
rootSU said:
can you try right clicking the start.bat and run as administrator please? You're still getting access denied messages.
Click to expand...
Click to collapse
I tried that and still got the error messages.

[Q] How to change boot animation?

hi,
saw a cool boot animation in reddit.. http://www.reddit.com/r/Android/comments/1pb6dv/jarvis_boot_animation_480x800/
i downloaded this file, extracted the archive, changed the desc.txt file to suit nexus 4's resolution put it in a archive named 'bootanimation.zip' and placed it in /system/media/. but when i rebooted the phone only the black screen was there to greet me
i even tried the default resolution in desc.txt but still the boot screen is completely black..
i'm on stock rom, rooted with franco kernel.. what am i missing here.. help me to set up the boot animation please..
When you zip it back up, you need to use the "store" compression method.
Sent using xda-developers app
Chromium_ said:
When you zip it back up, you need to use the "store" compression method.
Sent using xda-developers app
Click to expand...
Click to collapse
Yep.. did that too.. i used 7zip to create the archive.. and the permissions have been set as rw-r-r using ES explorer..
vic6888 said:
Yep.. did that too.. i used 7zip to create the archive.. and the permissions have been set as rw-r-r using ES explorer..
Click to expand...
Click to collapse
Do you have an empty extra line in your desc? This is necessary.
Upload it here so that I can take a look at it and hopefully find the issue.
Sent using xda-developers app
Chromium_ said:
Do you have an empty extra line in your desc? This is necessary.
Upload it here so that I can take a look at it and hopefully find the issue.
Sent using xda-developers app
Click to expand...
Click to collapse
yep.. just checked the file and it has the empty line in the end..
i'm sorry i couldn't attach the zip file since it is over 12mb.. i have attached the desc.txt file and will give the link for boot animation..
https://eos.feralhosting.com/fuller/bootanimation.zip
thanks for your help..
FWIW i tried previewing this animation in the Boot Animation app.. it threw an error.. so there might be a possibility that this zip has some issue..
I just checked out the zip and everything seems to be fine. I also tried it out (put it in system/media) and it worked perfectly.
Are you sure the one that you linked above isn't working for you? Try using it without any modifications just to be sure.
Sent using xda-developers app
Chromium_ said:
I just checked out the zip and everything seems to be fine. I also tried it out (put it in system/media) and it worked perfectly.
Are you sure the one that you linked above isn't working for you? Try using it without any modifications just to be sure.
Sent using xda-developers app
Click to expand...
Click to collapse
now i feel stupid.. reddit op had given a mediafire link too.. i downloaded from that link.. the issue with that link was that all the part folders and desc.txt were present under a folder and that folder was zipped as bootanimation.zip.. in the new link which i gave in my previous post the part folders and desc.txt were directly zipped...
now the animation works perfect and i have even modded the desc to suit nexus 4's resolution.. :laugh:
thanks a lot Chromium_
Chromium_ said:
I just checked out the zip and everything seems to be fine. I also tried it out (put it in system/media) and it worked perfectly.
Are you sure the one that you linked above isn't working for you? Try using it without any modifications just to be sure.
Sent using xda-developers app
Click to expand...
Click to collapse
now is there any guide to add a sound file to this boot animation.. let me know if you know any guide.. thanks..

Categories

Resources