[HELP] How to create folder and file if they dont exist. - Tasker Tips & Tricks

Hi
I am new to tasker, so I am trying to learn things how to work with it.
This time I want to create a specific folder and file inside it if the folder and /or the file don't exist... I really don't have a clue... Please help me if you can..
Since I'm a newbie pls try to give me a solution in a simple way..
Thanks

These directions are not as simple as a newbie would want, but they're better than nothing.
To check whether a file / folder exists:
File > Test file
Set it up like this.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Then check the value of %exists
If the value of the variable matches (without quotes) 'dir' then it is a folder; if it matches 'file' then it is a file.
To make a folder:
File > Create Directory
To make a file:
File > Write file

Sukarn said:
These directions are not as simple as a newbie would want, but they're better than nothing.
To check whether a file / folder exists:
File > Test file
Set it up like this.
Then check the value of %exists
If the value of the variable matches (without quotes) 'dir' then it is a folder; if it matches 'file' then it is a file.
To make a folder:
File > Create Directory
To make a file:
File > Write file
Click to expand...
Click to collapse
Thanks so much for reply, your explanation is super simple and really nice..
But I'm sorry I need to ask you couple more questions, since I said I'm a newbie I don't understand everything...
As you did "/sdcard/something" what should I replace "something" with? And also should I try to match the variable with the file or directory name or just simply %exist ~ file/dir?
I'm sorry if I sound stupid.. Please don't laugh at me.. I'm still learning
Thanks again and waiting eagerly for your reply... Thanks

Sukarn said:
These directions are not as simple as a newbie would want, but they're better than nothing.
To check whether a file / folder exists:
File > Test file
Set it up like this.
Then check the value of %exists
If the value of the variable matches (without quotes) 'dir' then it is a folder; if it matches 'file' then it is a file.
To make a folder:
File > Create Directory
To make a file:
File > Write file
Click to expand...
Click to collapse
Ok i got it work using shell command
For directory
Run Shell > [ -d /sdcard/dirname ] && echo 1 || echo 0
Store return variable %chkdir
Then checking the value of the variable 1 for exist 0 for not
Same way for file
Run Shell > [ -e /sdcard/filename ] && echo 1 || echo 0
Store return variable %chkfile
This method is working for now... I still look forward for your simple solution since your way is simpler but I need to understand it well
Thanks

dreamsayer said:
As you did "/sdcard/something" what should I replace "something" with?
Click to expand...
Click to collapse
"something" could be a file or folder or path to file/folder. Easiest way I can tell you to get the full path to a file or folder, without explaining how file paths work, is to long-press on that file/folder in ES File Explorer and then open its Properties, then tap on 'copy full path'
dreamsayer said:
And also should I try to match the variable with the file or directory name or just simply %exist ~ file/dir?
Click to expand...
Click to collapse
You typed %exist, but I'm typing %exists because that is the name I used for the variable in my screenshot.
dir is short for directory. Directory means folder.
If
%exists !~ file
AND
%exists !~ dir
then nothing of that name exists in that location.
If %exists !~ file
then what you checked does not exist as a file, but there could be a folder of that name in that location.
If %exists !~ dir
then what you checked does not exist as a folder, but there could be a file of that name in that location.
If %exists ~ file
then it exists as a file
If %exists ~ dir
then it exists as a folder

Sukarn said:
"something" could be a file or folder or path to file/folder. Easiest way I can tell you to get the full path to a file or folder, without explaining how file paths work, is to long-press on that file/folder in ES File Explorer and then open its Properties, then tap on 'copy full path'
You typed %exist, but I'm typing %exists because that is the name I used for the variable in my screenshot.
dir is short for directory. Directory means folder.
If
%exists !~ file
AND
%exists !~ dir
then nothing of that name exists in that location.
If %exists !~ file
then what you checked does not exist as a file, but there could be a folder of that name in that location.
If %exists !~ dir
then what you checked does not exist as a folder, but there could be a file of that name in that location.
If %exists ~ file
then it exists as a file
If %exists ~ dir
then it exists as a folder
Click to expand...
Click to collapse
Thanks a lot bro it works like a charm... Thanks for your patience with me

dreamsayer said:
Thanks a lot bro it works like a charm... Thanks for your patience with me
Click to expand...
Click to collapse
No problem. Everyone starts somewhere. No one starts as an expert.
Tips: use the ? button at the top, use the user-guide built into tasker, and save all documentation offline when it asks you, because you'll want to refer to the docs at random times.

Sukarn said:
No problem. Everyone starts somewhere. No one starts as an expert.
Tips: use the ? button at the top, use the user-guide built into tasker, and save all documentation offline when it asks you, because you'll want to refer to the docs at random times.
Click to expand...
Click to collapse
I'll do that thanks a lot...

Related

how to add a new city to the weather plugin

hi,
ive read plenty of articles how to add a new custom city to the htc home weather plugin, ive found the current city on the
my city isnt in this list:
http://www.accuweather.com/includes/ajax-functions/favoriteCities.asp?region=EUR&country=SK
but if im using the search form, i find it:
http://www.accuweather.com/world-index-forecast.asp?partner=accuweather&traveler=0&locCode=EUR|SK|LO000|ZILINA
1. problem if i want to add my city in the .xml file inside the windows dir in the rom, i cannot change it, cause, its rom, also no the file attributes, i thought, maybe i create a new file with a new language code and use this, somehow, but i dont want to change my current language: english
2. ive tried to set it in the registry:location and locationcode, but the plugin writes eveytime: unable to retrieve data for selected city...
any ideas?
1. Have you searched the registry? There may be path of the .xml file so you yould just "redirect" to your modified file. (I dont know if there is such key or not, but you can try that...)
moneytoo said:
1. Have you searched the registry? There may be path of the .xml file so you yould just "redirect" to your modified file. (I dont know if there is such key or not, but you can try that...)
Click to expand...
Click to collapse
negative
Have anyone succeed to add a new city? I have changed the xml file but the new city isn't visible? Tried reboot after the change.
Why are there several files with similar name but same content?
mrfredde said:
Have anyone succeed to add a new city? I have changed the xml file but the new city isn't visible? Tried reboot after the change.
Why are there several files with similar name but same content?
Click to expand...
Click to collapse
how did you changed the file??? i even cannot change the attributes from total commander, explorer...anything
darksider said:
how did you changed the file??? i even cannot change the attributes from total commander, explorer...anything
Click to expand...
Click to collapse
I copyed the file and changed file type to .txt and edited it in Word Mobile. Then changed back to .xml and copyed back to \windows
mrfredde said:
I copyed the file and changed file type to .txt and edited it in Word Mobile. Then changed back to .xml and copyed back to \windows
Click to expand...
Click to collapse
mine windows doesnt allows to overwrite or change this file...
Now I hade edited the file, i copyed the file thru active sync and then back to Storage Card and then used Total Commander and copyed it to \windows.
But when i select the city it can't get the information for selected city.
Is there something else i have to change?
mrfredde said:
Now I hade edited the file, i copyed the file thru active sync and then back to Storage Card and then used Total Commander and copyed it to \windows.
But when i select the city it can't get the information for selected city.
Is there something else i have to change?
Click to expand...
Click to collapse
you can try to set the settings direct in the registry, its already a thread about it, here somewhere...
i now tried to change the url in the htchome.dll but i wont find the url to replace.
Someone must have solved this problem?
I am one of the folks here who wish to be able to add different cities. If somoeone figure out how to perform it, please just let us know
I have been able to copy to my desktop HH_0409_WeatherCities and HH_0809_WeatherCities (not sure witch one attributes to english language) I added the strings related to my city and now i try to replace them on the s730 but as other found, it is in ROM and i cannot chage its properties with total commander....need help, maybe i am not so familiar with TC. I am so close!
I added my city to the HH_0809_WeatherCities.xml file by copying it to my desktop and then copying it back into the smartphone. I think the edited file shadows the file in the ROM. I can now select my own city from the list, but the weather program still cannot update.
I can see that when I select a city, the registry values
HKLM\Software\HTC\HTCHome\Weather\Settings\Location​
and
HKLM\Software\HTC\HTCHome\Weather\Settings\LocationCode​
get the right values, however the registry key
HKLM\Software\HTC\HTCHome\Weather\Settings\CityIndex​
doesn't change, and I suspect that this is not good. I haven't been able to correlate this city index with a location code. I think it might be the index of the entry in the .xml file.
CityIndex is the position of the city on the list. But it doesnt matter, you can have any number and it will work.
When I change LocationCode to another place which is in the list, it displays it. It seems it's problem of the server, they just do not provide data for other cities this way. If I change LocationCode to my city, I get this message: "Unable to retrieve data for selected city."
EDIT: Here is some more info... http://forum.xda-developers.com/showthread.php?t=319187
The library needs to be modified to connect to different server. I have just tried the DLL from Kaiser but the weather plugin just disappeared. I will try to modify Wings's HTCHome.dll.
When u fix de htchome.dll I wont that file =) I tried to modify my file but i dosen't work.
WORKING!!!
1. Instal certificate
2. Instal Resco Explorer
3. Get loccode of your place on accuweather.com
4. Switch to non-HTC homescreen
5. Copy WeatherUpdateService.exe to temp dir on your smartphone and check it is set as system and read-only
6. Copy WeatherUpdateService.exe and replace the orignal in the Windows directory using Resco Explorer
7. Modify HH_xxxx_WeatherCities.xml (or registry - HKLM\Software\HTC\HTCHome\Weather\Settings\LocationCode and HKLM\Software\HTC\HTCHome\Weather\Settings\Location)
Refresh data.
Uses N2A's server. Say him thanks.
Thank you SOOOOOO MUCH! moneytoo, you're almost a god for me!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I did try to install the Kaiser HTCHome.dll. Can anyone pls upload the original for S730 so I dont need to reset my device; to much configuration for a saturday before x-mas
afx69 said:
I did try to install the Kaiser HTCHome.dll. Can anyone pls upload the original for S730 so I dont need to reset my device; to much configuration for a saturday before x-mas
Click to expand...
Click to collapse
Here you have.
moneytoo said:
WORKING!!!
Uses N2A's server. Say him thanks.
Click to expand...
Click to collapse
thanks much*

querries about initflashfiles.dat ather90 dark rom

hi
i have been using dark rom for a while, so far great, except that i couldn't figure out how to do mms.
anyway i was going through initflashfiles.dat for which i have few querries
1..
Directory("\My Documents\My Pictures"):-File("Waterfall.jpg","\Windows\Waterfall.jpg")
Directory("\My Documents\My Pictures"):-File("Flower.jpg","\Windows\Flower.jpg")
i couldn't find these jpg in my picture folder or anywhere
2.
Directory("\Windows\Help"):-File("cecmd.htm","\Windows\cecmd.htm")
Directory("\Windows\Start Menu\Programs\Accessories"):-File("Total Commander.lnk","\Windows\Total Commander.lnk")
is there total commander in this rom
3.
Directory("\Windows\Start Menu\Programs\Accessories"):-File("WM5torage.lnk","\Windows\WM5torage.lnk")
i couldn' find wmstorage in this rom also
4.
Directory("\Windows\Start Menu\Programs\Accessories"):-File("PIM Backup.lnk","\Windows\PIMBackup.lnk")
pimbackup is not in accessories
May be i am missing something, please help
thanks
Hehe..actually i felt a lil lazy..so i just removed the stuff from the dump folder and left the initflashfiles like that
its my lazyness
This you shall find in most of the roms. hahaha
ather90 said:
Hehe..actually i felt a lil lazy..so i just removed the stuff from the dump folder and left the initflashfiles like that
its my lazyness
Click to expand...
Click to collapse
so it means:
1: i can remove these codes form the file
or:
2: i can add the programs ( but still not understanding how to put new programs in dump folder)
well yes you can remove them..becareful though
to add the files..i explained you earlier
place all the files in the dump folder except the option.xml and in the initflashfiles.txt
discard the option.xml and open the initflashfiles with a text file and copy its contents..then paste it in the MAIN (which u get before compiling ) initflashfile and ur done
again, BE SURE TO REMOVE THE 2 EXTRA BYTES ADDED BY NOTEPAD, which are FF and FE
Regards, Ather
ah-ha
i wish it was that simple for me
but i am trying hard..
i have the cab files... dump folder has exe.....bit lost here
can only wish for a detailed example...
jirrah said:
ah-ha
i wish it was that simple for me
but i am trying hard..
i have the cab files... dump folder has exe.....bit lost here
can only wish for a detailed example...
Click to expand...
Click to collapse
Hi jirrah, for cooking the rom, you have to use OEM packages, you have a very useful list made by Ather at http://forum.xda-developers.com/showthread.php?t=333359
Just remember to:
ather90 said:
ONE MORE IMPORTANT THING. Whatever you do make sure the ROM has at least 0001 bytes of free space or it will never work​
Click to expand...
Click to collapse
ather90 said:
place all the files in the dump folder except the option.xml and in the initflashfiles.txt
discard the option.xml and open the initflashfiles with a text file and copy its contents..then paste it in the MAIN (which u get before compiling ) initflashfile and ur done
again, BE SURE TO REMOVE THE 2 EXTRA BYTES ADDED BY NOTEPAD, which are FF and FE
Regards, Ather
Click to expand...
Click to collapse
Nicely done
if u need any more clarification..im here..all of us are here
thanks i think i am on right track,
WHAT SHOULD BE THE ADEQUATE SIZE OF ROM, i.e HOW many programs we can add??
i am onto the IBE in hima kitchen 4, trying to figure it out
fmvl said:
Hi jirrah, for cooking the rom, you have to use OEM packages, you have a very useful list made by Ather at http://forum.xda-developers.com/showthread.php?t=333359
Just remember to:
Click to expand...
Click to collapse
ONE MORE IMPORTANT THING. Whatever you do make sure the ROM has at least 0001 bytes of free space or it will never work
can you please explain this, how we can find about this thing.
At the end of the option "Re-assemble my new ROM" you will get that info.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
well unfortunately there has been no soulution for that..if u get a weird Build OS error at the Last step..it means that the ROM is filled..
thanks fmvl you are a good teacher....
and thanks to ather for his wonderul rom, which i am trying to understand and not to mention his kitchen.. great stuff...
i am still trying to figure out to edit initflashfiles.dat by IBE (what does it means),,,
is there any way to manually edit the initflashfiles.dat and delete the last 2 bites mentioned...
thanks
jirrah, maybe ather can explain how to use the IBE, I use the tools provided at the "C:\ather\Himalaya Kitchen\Hex Edit" folder to edit my initflashfiles.dat.txt.
I've copied a initflashfiles.dat.txt file to "C:\ather\Himalaya Kitchen\Hex Edit" folder. I always make my changes in this file, and at the end (save and close) I run a new batch file (in the same folder) with this code:
Code:
CLS
@Echo This Will Remove the FF and FE from your InitflashFile
@Echo Place the File here
@Echo njoy Automation
@pause
@explorer.exe C:\ather\Himalaya Kitchen\Hex Edit
@CLS
@Echo " Press any key to Remove the Bytes "
@pause
XVI32.exe initflashfiles.dat.txt /S=del.xsc
@pause
At the builing process, when we are prompted to edit the initflash.dat.txt file I just copy the file from the "C:\ather\Himalaya Kitchen\Hex Edit" folder to "C:\ather\Himalaya Kitchen\Tools" folder.
some oem packages contain dll files, rgu, dsm without an initflashfiles.
as far i understand i hve to copy all dll, rgu,dsm in dump folder .. even the dsm or rgu are of 0 bytes...
rgu contain the registry keys setup for that dll..
then we have to process the HKCU and HKLM in the kitchen...
But when i open the HKCU and HKLM those rgu enteries are not added up.... or the add up later,, i even checked after reassembling...
am i doing something wrong.
thanks
yes..you have to import it by Registery Workshop after you get the prompt to Edit HKLM and HKCU
Oh i see
as i remember inanother thread you advised to:
"
as far the OEM pacages are concerned..its a lil bit hard..first download the required OEM then extract it in a seperate folder...then delete the option.xml from it..then copy the files,shortcuts,RGU's,DSM's and paste them into the dump folder..dnt touch the initflashfiles.txt file yet !
"
and that i was doing, thanks for clearing
Now do we have to mention any thing in the initflashfiles about these dll or rgu files which are dumped
im sorry for that..i must have been sleepy that time
nono..no refrence needed in initflashfiles file for this..the initflashfile file only holds the shortcuts
alright....
what about dsm files, do i need to put them in dump even they are of 0 bytes...(in dump of your rom, i dont see dsm files)
and in RGU where should i import when i am processing HKCU or in HKLM, as many RGU have HKLM enteries while others have HKCU enteries...
the DSM are useless for this kitchen..but are useful for others (if they want to extract the packages using PKGTool by Bepe)
as for the RGU's its better export in both, HKCU and HKLM..but i think one would be enough ...you can always try and tell us

Where is the Hosts File in Android?

In my country some sites have been banned but most of us keep using them in pc's by changing hosts file in \Windows\System32\drivers\etc
adding ip strings like
207.200.100.5 shoutcast.com
207.200.100.5 www.shoutcast.com
I just wonder if there is someway to do this in android? If the answer is yes then my new question is "how"...
Thx for the answers...
/etc/hosts
rub1k said:
/etc/hosts
Click to expand...
Click to collapse
Thx. I reached the file by a file manager app. but i cant open it with notepad apps. Do I need the root privilage?
yes. Just ADB pull it.
Technically it's in /system/etc/hosts, /etc is a symlink.
If you want to edit it, create a hosts file on your SD card and then cp from terminal with root privileges. Or you could adb push it from your computer.
thx a lot for the answers. ill try it.
question
hello there,
i'm a newbie and i don't know anything about programming. and i need a step by step guide to edit the host file. i have reached the file with file manager but i can't edit or replace it.
thanks.
Should just be a matter of
adb pull /etc/hosts
Which will copy the file to the current directory, then make the necessary changes, then
adb remount
adb push hosts /etc/hosts
Anyone correct me if I'm wrong. If you don't have ADB set up, now would be a good time to do so; searching for "ADB for dummies" should help you with that.
I suggest nano if you have a ROM with this included (such as cyanogenmod). Then all you need to do is open the terminal and enter
Code:
su
nano /system/etc/hosts
In this manner, one can do the edits straight from the phone terminal.
Or download estrongs file manager, go to settings and set file system to "read write"(its in something like root settings or so). after that you can edit the file
cloverdale said:
I suggest nano if you have a ROM with this included (such as cyanogenmod). Then all you need to do is open the terminal and enter
Code:
su
nano /system/etc/hosts
In this manner, one can do the edits straight from the phone terminal.
Click to expand...
Click to collapse
This guy knows his hosts. I have his file on my desktop and I push it into every rom I use.
If i put in hosts like one from google for example, and some regular news sites i use, would this speed up my internet?
I've rooted my Droid and copied over a pre-populated hosts file to /system/etc that re-maps bad/ad sites to 127.0.0.1. However, when I open a terminal and ping one of the sites listed in the hosts file, it still comes back with the real IP and not 127.0.0.1.
I do believe in Linux systems, the real hosts file is in root/data/data/
>The system/etc/ hosts file is empty, aka a decoy of some sorts....?
To view it, u may need "rootexplorer.apk" (as opposed to droidexplorer.exe, a windows vista program), as I couldn't get Astro to require SU
(Need to check this out, my own system may be different?)
RedWave31 said:
I do believe in Linux systems, the real hosts file is in root/data/data/
>The system/etc/ hosts file is empty, aka a decoy of some sorts....?
To view it, u may need "rootexplorer.apk" (as opposed to droidexplorer.exe, a windows vista program), as I couldn't get Astro to require SU
(Need to check this out, my own system may be different?)
Click to expand...
Click to collapse
If it is empty, it just means there aren't any hosts in it. /etc/hosts is the correct file.
DiskCrasher said:
I've rooted my Droid and copied over a pre-populated hosts file to /system/etc that re-maps bad/ad sites to 127.0.0.1. However, when I open a terminal and ping one of the sites listed in the hosts file, it still comes back with the real IP and not 127.0.0.1.
Click to expand...
Click to collapse
What exactly is the process you are using? Does it look like this?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
And when you pushed the hosts to your phone, what command did you use?
DiskCrasher said:
I've rooted my Droid and copied over a pre-populated hosts file to /system/etc that re-maps bad/ad sites to 127.0.0.1. However, when I open a terminal and ping one of the sites listed in the hosts file, it still comes back with the real IP and not 127.0.0.1.
Click to expand...
Click to collapse
Where did you get the file from, a windows pc?
In this case you need to convert the end-of-line characters
from Dos to Unix ones. This could be done with nano editor
or with busybox's dos2unix command.
you should try to open it with the "text editor" in "ASTRO"..
farmatito said:
Where did you get the file from, a windows pc?
In this case you need to convert the end-of-line characters
from Dos to Unix ones. This could be done with nano editor
or with busybox's dos2unix command.
Click to expand...
Click to collapse
That was it! I opened the hosts file in Notepad++ and converted it to UNIX format, then saved it back to my phone. Now blocked addresses are resolving to 127.0.0.1 as expected. No more ads or malware, yay!
Converting hosts file to unix format is worked for me also ,i converted hosts file with notepad++ to unix format(edit>eol conversation>unix format) then copy it in etc ,overwrite(backup ojinal host file to sdcard first with copy command) ,no need to reboot phone
can't pull
Hi
I'm trying to pull the hosts file with adb or with android commander. the adb sais there isn't a file like that and the AC give me this when I try to copy:
Items count: 1
Items source: /system/etc/
Items destination: C:\android-sdk-windows\
Starting operation...
Coping file: [email protected]
remote object '/system/etc/[email protected]' does not exist
*** Operation complete! ***
What can I do?
thanks

APKInstaller- V 1.10 NOW INCLUDES BATCH!

APK/BATCHInstaller
By Spyrorocks​
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
First off this application only works on Windows XP [EDIT-Confirmed working on VISTA] and it designed to make your life easier!
Once installed, the Application will auto install .APK and batch files to your phone after a simple double click of the file.
It save you the hassle of having to to drag and drop files to your phone then having to run the appinstaller on your phone!
INSTALLATION
1.)Read the Readme included
2.)Run the file named "install.bat" to install program
3.)Once installed, Plug your phone into the computer
4.)Double click the .apk or batch file of your choice to install it on your phone, there is one included.
5.)Follow on screen instructions to install
SCREEN SHOTS
UPDATES
V. 1.1
Added:
*Supports Batch APK Installing
*Shows APK icons
To do:
*User friendly installer
*Fix Icon doesn't show rarely (doesn't effect program operation)
V. 1.01
Added:
*New confirmation screen for installing APKs
*Shows you the permissions the apk needs before installing
*auto-remounts adb before detecting
To do:
*Add batch install
*Fix small bug where permissions are sometimes not displayed (rare)
Newest Version
V. 1.10
Download APKInstallerv1.1.zip [
]
Old Versions
V. 1.01
Download APKInstaller1.01.zip [Downloads:
]
V. 1.00
http://www.mediafire.com/?j2mumryzkld
BUGS
* The about screen forgot to mention Gotwake424, even tho he didn't do anything
THANKS FOR TESTING
Spyrorocks - Programmer
gotwake424 - In It To Win It
FYI no one will send pm if they don't know what it is... Why not say what it is first then give us the choice to pm you or not ?
There you go
APKInstaller
Worked like a charm! If there was a way to do batch installs (possibly uninstalls?)(still Beta) WOW!!!
I can confirm working on vista. I had to remount via adb before the app would detect my phone, but after that, worked fine.
Apaca1ypse said:
Worked like a charm! If there was a way to do batch installs (possibly uninstalls?)(still Beta) WOW!!!
Click to expand...
Click to collapse
We will see what we can do, thanks for the suggestion
Thanks Apaca1ypse and ThrashWolf for trying it out.
Ill see what can be implanted in the next version, including a batch installer.
I just added the ability for it to automatically remount before installing, as per ThrashWolf experiences.
NEW VERSION RELEASED
Download APKInstaller1.01.zip [Downloads:
]
Added:
*New confirmation screen for installing APKs
*Shows you the permissions the apk needs before installing
*auto-remounts adb before detecting
To do:
*Add batch install
*Fix small bug where permissions are sometimes not displayed (rare)
Screenshots:
I cant even get it installed correctly :-/
Code:
This will install APKInstaller v1.0 by Spyrorocks ([email protected]) to your
system.
Press any key to continue . . .
Access is denied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
0 file(s) copied.
The system cannot find the path specified.
=================================================
APKInstaller has been installed.
Press any key to continue . . .
Im on vista
.PaNiNi., Please right click the install.bat file, and choose to run it with administrator privileges. That should allow it to copy the files in the correct place (%Programfiles%)
Spyrorocks said:
.PaNiNi., Please right click the install.bat file, and choose to run it with administrator privileges. That should allow it to copy the files in the correct place (%Programfiles%)
Click to expand...
Click to collapse
This is what i get when i try to install in indos 7 after running as admin
This will install APKInstaller v1.0 by Spyrorocks ([email protected]) to your
system.
Press any key to continue . . .
A subdirectory or file C:\Program Files\APKInstall already exists.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the file specified.
'"C:\Program Files\APKInstall\apkinstall.exe"' is not recognized as an internal
or external command,
operable program or batch file.
=================================================
APKInstaller has been installed.
Press any key to continue . . .
Click to expand...
Click to collapse
Thanks for the info, ill update the post
Im using Windows 7 RC(Build 7100) and it just installed & worked perfectly
No Thanks Needed!
Spyrorocks said:
Thanks Apaca1ypse and ThrashWolf for trying it out.
Ill see what can be implanted in the next version, including a batch installer.
I just added the ability for it to automatically remount before installing, as per ThrashWolf experiences.
Click to expand...
Click to collapse
To improve the Android experience... Anytime! One thing, though, in V 1.01, I don't see the permissions screen. No biggie, just thought you should know. Windows XP (x86)
running as admin
Code:
This will install APKInstaller v1.0 by Spyrorocks ([email protected]) to your
system.
Press any key to continue . . .
A subdirectory or file C:\Program Files\APKInstall already exists.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the file specified.
'"C:\Program Files\APKInstall\apkinstall.exe"' is not recognized as an internal
or external command,
operable program or batch file.
=================================================
APKInstaller has been installed.
Press any key to continue . . .
.PaNiNi. said:
running as admin
Code:
This will install APKInstaller v1.0 by Spyrorocks ([email protected]) to your
system.
Press any key to continue . . .
A subdirectory or file C:\Program Files\APKInstall already exists.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the file specified.
'"C:\Program Files\APKInstall\apkinstall.exe"' is not recognized as an internal
or external command,
operable program or batch file.
=================================================
[B]APKInstaller has been installed.
Press any key to continue [/B]. . .
Click to expand...
Click to collapse
Did you try to use it to install a apk? cause it says it installed
.PaNiNi., Did you extract the ZIP or are you running the install.bat file from inside the zip? You need to extract the zip file so it can access the other resources.
Apaca1ypse said:
To improve the Android experience... Anytime! One thing, though, in V 1.01, I don't see the permissions screen. No biggie, just thought you should know. Windows XP (x86)
Click to expand...
Click to collapse
Can you take a screenshot of what the permissions screen looks like to you? Or does it not show up at all? Do you get the screen with the Android holding a little arrow pointing down icon (Like the screenshots above)?
Windows 7 64Bit
Installed as admin
Program works great!
Get batch working and donation coming your way!
LinkinX said:
Windows 7 64Bit
Installed as admin
Program works great!
Get batch working and donation coming your way!
Click to expand...
Click to collapse
Thanks for the complement!
V. 1.02 should be out soon!
NEW Version v1.1
Added:
*Supports Batch APK Installing
*Shows APK icons
To do:
*User friendly installer
*Fix Icon doesn't show rarely (doesn't effect program operation)
Download APKInstallerv1.1.zip [
]

[Guide][noobs][theming basic and background]

first dont blame me if anything goes wrong with you just search before ask
this guide is for noobs those who want to have a background basic on theming
second sorry for my bad en
iam introducing my self my name is mohammed khalid from egypt my nickname here is apk5656
ok so lets start
keep in your mind iam using win8 so it may have diiferent settings if you have a win7
---------------------------------------------------------------------------------------------------------------------------
Installing tools
Setting up the Java SE Runtime Environment
step one install those files
STEP 1: Install these two files:
- JRE8 (This is what I use):http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
- JDK8 (Install just in case):http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
STEP 2: Setting up JDK JAVA_HOME environment variable:
After installing the two files above, locate your JDK location, in my case, mine is C:\Program Files\Java\jdk1.8.0_20.
Then open up your Control Panel and click into System (Control Panel\All Control Panel Items\System)
then in side bar click advanced system settings
A popup will appear, click on the Advanced tab, then click on "Environment Variables..."
Another smaller popup, Environment Variables, will open up. Click on "New..."
According to the screenshot, click type in the Variable name (JAVA_HOME) and Variable value (Location of your JDK set up).
After everything is done, click OK on all popups, then reboot your computer.
You are now ready for apps like eclipse/ Studio, future proofing yourself for now.:victory::victory::victory::highfive::highfive::highfive:
-----------------------------------------------------------------------------------------------------------------------------------
now we will set up your tools which will help you theming
apk tool
download tool from here http://www.mediafire.com/download/s7y2bja7pjuxqru/APK-Multi-Tool-Stable-RELEASE.zip
after downloading it continue with me to setting up it
setting up apktool
First Make sure you have "framework-res.apk" of your device whose apk you are going to edit.
If you dont have "framework-res.apk". Click Here (Micromax A35 Stock framework)
Steps:
Extract the downloaded zip and open extracted folder.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Open Setup.bat and press "3" (Without Quotes)
3. It will make automatically some folders and you will be again moved to the above screen.
4. Now put your framework-res.apk to "other" folder (Have a look there).
5. Now in the menu, Press 2.
6. Now press 1. (a cmd window will popup).
type there- "apktool if framework-res.apk" (without quotes)
and press ENTER.
Now Quit the menu.
Congratulations, You have set up APK MULTITOOL successfully
------------------------------------------------------------------------------------------
decompiling/recompiling your first app
PART 1: How To Decompile Apk:
1. If You All Done Right, You Will See Like This,
2. Let Us Decompile Settings.apk (Get Your Settings.apk From Your Device /system/app)
3. Place Your Settings.apk inside "place-apk-here-for-modding"
4. Open "Script.bat", Press Enter, Then You Will See Like This.
5. As You Know, Settings.apk is a system app, so Press Option "9", Then Press ENTER
6. Wait For Decompilation process(It will be automatically done.)
7. Your Decompiled Apk Will Be In "projects" folder.
PART 2: How To Recompile Apk:
1. The Basic Editing, You Must Know How To Do This, I Wont Teach You This One, In This Tutorial, After Editing, Open "script.bat".
2. Press "11" and ENTER, To Compile System Apps.
3. After Buliding Apk, You Will See Like This
4. Press "y" and ENTER, Now You Will See Like This.
6. Now The Most Important Part Comes, MINIMISE Your script.bat Screen, Find "keep"
Open this folder, You Will Get These,
Be Carefull:
Delete "resources.arsc", "res" file/folder, If You Edited any ".xml", "png".
Delete "classes.dex" if you have edited any "smali file".
Delete "AndroidManifest.xml", if you editied This File (If You Not Edited "AndroidManifest.xml", Dont Delete It.)
7. Open The MINIMISED "script.bat", Press ENTER.
8. You Will Find Your Modded Apk In "modified-system-apk-files-here" folder.
9. Rename "systemSettings.apk" to "Settings.apk".
10. Paste This "Settings.apk" to Your /system/app.
NOTE:
If You Edit Your "AndroidManifest.xml", You Need to Sign Your Apk.
For Signing, Place the Modded App in "place-apk-here-for-signing" folder.
In "script.bat", The Option Number is "20".
The "script.bat" Automatically Termainates After Signing.
The Signed Apk is in "place-apk-here-for-signing" folder.
Also, stock ROM dont accept custom signed system apk(s), for using custom signed system apk(s), you need to disable "signature verification" from "services.jar". google it
Dont worry about signatures, if you didnt edited your "AndroidManifest.xml".
--------------------------------------------------------------------------------------------------------------------------------
some basics to help you theming
.9 png images you cant edit them just by photoshop they have a custom edit bcuz the are patched
this thread will help you
http://.xda-.com/showthread.php?t=605662
ok now about the normal png you can edit it simply with photoshop but if you resized any png do not try to make it much bigger if you did this you will get bugs
ok now about editing xmls
look any xml file has connected with other
i mean if you open any layout xml you may found something like string/-
thats mean this layou xml has string in string.xml file in values folder that is what i mean with xmls are connected
so until now thats it this post will be updated soon with more basics bcuz the basics which i wrote is too small and i wanna to learn you a lot of basics
but thats just for my short time and i have alot of exams
ok untill now hope to see you around.......

Categories

Resources