[Q] Push source changes to Superuser app - Android Q&A, Help & Troubleshooting

Hello,
Recently I pull down the source code for Koushik Dutta's Superuser app. I made some changes in the source. This changes are the following:
1. SuHelper class now throws 2 kind of exceptions instead of one generic instance of Exception. I believe it is better for developing. Different exceptions, different reasons, different action to do when they are catched.
2. Fixes for several Lint's warnings.
3. Fixes in translation.
4. UI new features:
a) At the first screen you can long click at an item several actions are shown ("Allow/Deny" which changes the permission without deleting the permission, "Revoke permission", "Details" leads to the same screen as a simple click o\at an item).
b) At the details screen for every item/application and new checkbox/switch added to allow/deny superuser permission.
c) At settings screen miscellaneous settings added which refer to the pop-up dialog about the outdated su binary.
Please see the attached photos from the modified application.
I would like to ask 2 questions now:
1. Do you think that these changes are useful to you?
2. Has anyone contribute by commiting any source to this app? Should I pull the current HEAD of the from the repository or simply commit and push my changes?
Thanks in advance,
LiTTle
PS: Dear moderator's, I think that this thread fits better at "Android Software and Hacking General [Developers Only]" or "Android Software Development" but I was not able to post it there.

Still working on this
I am still working on this. New features added. I will try to post some more posts in order to move this question to the appropriate sector!
1. Minor bug fix. You can reproduce this fix by following the next steps:
-From the first screen select / click / touch an application.
-The details screen for this application is shown.
-Rotate the device.
-View the trash icon which will clear all logs. The trash menu should not appear in here.
2. Disable the countdown at Superuser Request screen. I don't like to wait. Do you?
3. Change the default position of the toast (up / center / down) when an application receives superuser privileges.
4. You can start an application from inside this application. Why only do you view the list of the applications at the first screen.? From now on, you can run them!
I downloaded the whole official repository for Superuser app, merge the changes and I created an update.zip.
Feel free to download it and and give me comments at this thread!
At least let me know that you like the changes!
PS: I just made some enhancements. The main developer is Koushik Dutta. I am not going to still reputation from him!
TheLiTTle said:
Hello,
Recently I pull down the source code for Koushik Dutta's Superuser app. I made some changes in the source. This changes are the following:
1. SuHelper class now throws 2 kind of exceptions instead of one generic instance of Exception. I believe it is better for developing. Different exceptions, different reasons, different action to do when they are catched.
2. Fixes for several Lint's warnings.
3. Fixes in translation.
4. UI new features:
a) At the first screen you can long click at an item several actions are shown ("Allow/Deny" which changes the permission without deleting the permission, "Revoke permission", "Details" leads to the same screen as a simple click o\at an item).
b) At the details screen for every item/application and new checkbox/switch added to allow/deny superuser permission.
c) At settings screen miscellaneous settings added which refer to the pop-up dialog about the outdated su binary.
Please see the attached photos from the modified application.
I would like to ask 2 questions now:
1. Do you think that these changes are useful to you?
2. Has anyone contribute by commiting any source to this app? Should I pull the current HEAD of the from the repository or simply commit and push my changes?
Thanks in advance,
LiTTle
PS: Dear moderator's, I think that this thread fits better at "Android Software and Hacking General [Developers Only]" or "Android Software Development" but I was not able to post it there.
Click to expand...
Click to collapse

Bug fixes
After a little work I found a bug every time the extra actions are shown when the user does a long click at an application. This bug is only visible for tablet users. I attach the new "update.zip" file. I attach new "update.zip" file because I don't see a lot of downloads. In case more than 5 downlaods will happen I will upload it at the play store also, along
The 1 person who tried it, she reported the error!
TheLiTTle said:
I am still working on this. New features added. I will try to post some more posts in order to move this question to the appropriate sector!
1. Minor bug fix. You can reproduce this fix by following the next steps:
-From the first screen select / click / touch an application.
-The details screen for this application is shown.
-Rotate the device.
-View the trash icon which will clear all logs. The trash menu should not appear in here.
2. Disable the countdown at Superuser Request screen. I don't like to wait. Do you?
3. Change the default position of the toast (up / center / down) when an application receives superuser privileges.
4. You can start an application from inside this application. Why only do you view the list of the applications at the first screen.? From now on, you can run them!
I downloaded the whole official repository for Superuser app, merge the changes and I created an update.zip.
Feel free to download it and and give me comments at this thread!
At least let me know that you like the changes!
PS: I just made some enhancements. The main developer is Koushik Dutta. I am not going to still reputation from him!
Click to expand...
Click to collapse

I am in touch with the developer to push my changes in his repository. Thanks for any help.
I will post again if I have trouble!
TheLiTTle said:
After a little work I found a bug every time the extra actions are shown when the user does a long click at an application. This bug is only visible for tablet users. I attach the new "update.zip" file. I attach new "update.zip" file because I don't see a lot of downloads. In case more than 5 downlaods will happen I will upload it at the play store also, along
The 1 person who tried it, she reported the error!
Click to expand...
Click to collapse

Related

SmartBoot - Bootmanager for WM6.5 .NET3.5

Hi guys,
as I've been around for a while, I decided to share a bit of my work with you, too.
So feel free and use this small program if you like. No warranties as usal from my side.
This Bootmanager has a quite intuitive UI. You get an quick overview of the phone status and can select your boot profiles which you can manage inside the UI as you like (see screen shots below).
Additionally you can have voice announcements, SenseUI control, easy backup & restore of startup folder and program settings and an extended information screen. On this info panel you can find all important information about your phone.
This app only requires .NET CF 3.5 to be installed on your device.
The Pattern of the folder structure is always "\_AutoStart_" & selected Foldername. You can change the folder names in the UI settings tab. The folder "_AutoStart_Backup" is created by the program if you back up your current folder. All other "_AutoStart_" & X folders are created initially, but you want to choose which startup links are in there (folder names are case sensitive!). Just ensure the "X" matches your folder name in the ui settings for this specific button exactly. The default buttons are for Sense UI and XDAndroid. Their respective folder names (in the settings tab) are "Sense" and "Android", therefor I have "_AutoStart_Sense" and "_AutoStart_Android" folders on the root of my phone. In the "_AutoStart_Common" folder you have all the shortcuts which have to start no matter which profile is selected.
Tipp:
I have overclocked my device continously (stable) using this method (with this App) and with SmartBoot I can easily select between OC and non-OC configurations.
For your convenience this Windows Mobile® freeware app supports AppToDate, an easy to use application update program. You can obtain it freely from here.
Please download from Post #2.
Thanks to eboelzner for his great Sense SDK!
Download:
Download SmartBoot only here please. (Please no mirrors or similar!)
Please feel free to leave a comment or bugs found.
PS: I will not provide any localization support. Just english language.
If you want I can create a "Light" Version without sounds and stuff, just mention it.
Also if there is demand for it I could create a step-by-step guide.
AndiCP said:
Download:
Download SmartBoot only here please. (Please no mirrors or similar!)
Please feel free to leave a comment or bugs found.
PS: I will not provide any localization support. Just english language.
If you want I can create a "Light" Version without sounds and stuff, just mention it.
Also if there is demand for it I could create a step-by-step guide.
Click to expand...
Click to collapse
Would be nice if we could download it from there. Tried for 30 min but not possible.
claus1953 said:
Would be nice if we could download it from there. Tried for 30 min but not possible.
Click to expand...
Click to collapse
Downloaded just fine for me. I plan to experiment with Android soon, and this will come in handy. Thanks.
J_M_H said:
Downloaded just fine for me. I plan to experiment with Android soon, and this will come in handy. Thanks.
Click to expand...
Click to collapse
Still no luck for me, it says "site not available or too busy etc etc"
wow
AndiCP said:
Hi guys,
as I've been around for a while, I decided to share a bit of my work with you, too.
So feel free and use this small program if you like. No warranties as usal from my side.
This Bootmanager has a quite intuitive UI. You get an quick overview of the phone status and can select your boot profiles which you can manage inside the UI as you like (see screen shots below).
Additionally you can have voice announcements and an extended information screen. On this info panel you can find all important information about your phone.
This app only requires .NET CF 3.5 to be installed on your device.
I wanted to give the community something back, even though it is not much.
But maybe somebody finds it useful, I just thought I could share. Enjoy!
And please don't be too harsh as this is my first publication. There are more to come if it goes smoothly.
Please download from Post #2.
Thanks to eboelzner for his great Sense SDK!
Click to expand...
Click to collapse
big thank
Thanks, good idea & pretty app. I'll try it.
thanks, look like a very powerful and useful program.
downloading is a bit slow, but smooth.
This promises to be a great app.
Would you consider adding a "safe mode" boot option with it? Just wondering.
And thank you very much for sharing.
hello guys. what is XDAndroid? sorry for being a noob
Thank you for your kind feedback
YOSEFE said:
This promises to be a great app.
Would you consider adding a "safe mode" boot option with it? Just wondering.
And thank you very much for sharing.
Click to expand...
Click to collapse
You currently have two options for a safe mode:
1. Tap "Do nothing" at the initial screen (will exit immediatly -> no boot programs)
2. go to settings and enable "Confirmation", then click the button of your desired boot environment (and you can decide on each short cut -> safe mode).
@All: Thanks for your kind feedback! You are welcome!
PS: If you choose option 2 from above and tap no for at least one shortcut, you will get an "Ooops! Something went wrong!" message at the end.
You can ignore this, as it simply means not all shortcuts got executed.
Where is this app made? Itsn't really clear to me
Installed .cab, soft reset, error:
SmartBoot.exe
DirectoryNotFoundException
at System.IO.Directory.InternalGetFileDirectoryNames(String fullPath, Boolean file)
at System.IO.Directory.InternalGetFiles(String path, String searchPattern)
at System.IO.Directory.GetFiles(String path, String searchPattern)
at SmartBoot.Form1.Check()
at SmartBoot.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form._SetVisibleNotify(Boolean fVis)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.Run(Form fm)
at SmartBoot.Form1.Main()
on TMOUS HD2 2.08 stock rom
?
twoply said:
Installed .cab, soft reset, error:
SmartBoot.exe
DirectoryNotFoundException
at System.IO.Directory.InternalGetFileDirectoryNames(String fullPath, Boolean file)
at System.IO.Directory.InternalGetFiles(String path, String searchPattern)
at System.IO.Directory.GetFiles(String path, String searchPattern)
at SmartBoot.Form1.Check()
at SmartBoot.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form._SetVisibleNotify(Boolean fVis)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.Run(Form fm)
at SmartBoot.Form1.Main()
on TMOUS HD2 2.08 stock rom
?
Click to expand...
Click to collapse
I've got the same problem.
Hi AndiCP,
i think you have forgotten the xml file. I mean: \Application Data\SmartBoot\Configuration.xml
I have made a empty file. Then the message is:
Fehler: There is an error in XML document (0, 0).
Click to expand...
Click to collapse
OK, that's clear.
Next point: you have written that you support only english, no problem.
But Fehler in the popup's is german . Please fix it. And also upload an XML file please.
Also the \_AutoStart_ folders are not created automaticly. Is this the way how should be?
Have we to do this on our own, or is this a litlle bug we have found ?
BTW:
i have allways installed the right .NET version from MS.
EDIT 1:
you say on your private website that the folder names are case sensitive.
Then it must be: _AutoStart_Backup
In your screenshot: _Autostart_Backup
Sorry to say that the app is NOT working on my phone at this moment.
And i'am not alone. There are more people with problems. Please fix it.
At least sense gives problems on restart the phone.
I had to de-install the good idea app. Also some strange problems
on de-installtion. It was not possible. Only with many know how
i was able to de-install it.
mr.First said:
I've got the same problem.
Click to expand...
Click to collapse
Hello twoply and mr.First,
your program error probably comes from a different Startup folder or restricted access to it.
I can't reproduce this error, but I guessed and put an additional entry into the registry ("HKEY_CURRENT_USER\Software\SmartBoot\Autostart_Folder").
If your folder is not "\Windows\AutoStart\" you can enter another path there.
I also added a reg key to customize the initial sound file ("HKEY_CURRENT_USER\Software\SmartBoot\Sound_Load").
Please download the updated version.
Further you don't have to softreset in order to try or set things up, just go to your start menu and use the shortcut.
Finally I hope this helps you, please report your results here.
mike2nl said:
Hi AndiCP,
i think you have forgotten the xml file. I mean: \Application Data\SmartBoot\Configuration.xml
I have made a empty file. Then the message is:
OK, that's clear.
Next point: you have written that you support only english, no problem.
But Fehler in the popup's is german . Please fix it. And also upload an XML file please.
Also the \_AutoStart_ folders are not created automaticly. Is this the way how should be?
Have we to do this on our own, or is this a litlle bug we have found ?
BTW:
i have allways installed the right .NET version from MS.
EDIT 1:
you say on your private website that the folder names are case sensitive.
Then it must be: _AutoStart_Backup
In your screenshot: _Autostart_Backup
Sorry to say that the app is NOT working on my phone at this moment.
And i'am not alone. There are more people with problems. Please fix it.
At least sense gives problems on restart the phone.
I had to de-install the good idea app. Also some strange problems
on de-installtion. It was not possible. Only with many know how
i was able to de-install it.
Click to expand...
Click to collapse
Hello mike2nl,
first of all "Fehler" means "Error".
Second, "Configuration.xml" not found comes from the SmartBoot Directory not being created properly. (Bug: Updated version 1.01 fixes this, then you will also have all the other folders created automatically on first launch).
Third, "AutoStart" is correct whereas in the screen shot you saw before was a left-over of an earlier version, which doesn't matter, because if it wouldn't be found it will be created during backup process anyway.
Last but not least, I can say nothing about "strange problems".
Thanks for your feedback!
Please download the updated version 1.01 or just run AppToDate
Hi AndiCP,
thanks for your fast reaction. I will test it again now. Downloaded and then install it. Will report later here....
EDIT 1:
after installing the app and two times a soft reset the app blocks sense more then once. Strange...
I had to de-install the little app. This was an adventure again. All known ways are not working.
Only massive working in the windows folder and registry cleaning has helped out of that issue.
On which system you have developed thius app? If there something special done for the SonyEricson?
EDIT 2:
after re-install the application i had denite the folder move for the autostart things. Strange, because
then the app will workig. If i have selected Sense UI i get an error message:
Ooops, something went wrong
Click to expand...
Click to collapse
Is this normal? Why you say it is something went wrong? But so far so good. Will test further now.
EDIT 3 (info only):
i have changed the autostart folder in the cab from \Windows\Auto Start to \Windows\Opstarten (dutch version)
EDIT 4 (question):
Have we to copy the apps/shortcuts for the \_AutoStart_xxx\ folders on uor own?
- if the answer yes, no problem (i think thats the way for now)
- if the answer no, then is something wrong
Possible you can think about that issue for a future version of your helpfull app.
Further i think you must add the descirption from your private website here to the first post:
The Pattern is always "\_AutoStart_" & selected Foldername. You can change the folder names in the UI settings tab. The folder "_AutoStart_Backup" is created by the program if you back up your current folder. All other "_AutoStart_" & X folders are created initially, but you want to choose which startup links are in there (folder names are case sensitive!). Just ensure the "X" matches your folder name in the ui settings for this specific button exactly. The default buttons are for Sense UI and XDAndroid. Their respective folder names (in the settings tab) are "Sense" and "Android", therefor I have "_AutoStart_Sense" and "_AutoStart_Android" folders on the root of my phone. In the "_AutoStart_Common" folder you have all the shortcuts which have to start no matter which profile is selected.
Click to expand...
Click to collapse
AndiCP said:
Hello twoply and mr.First,
your program error probably comes from a different Startup folder or restricted access to it.
I can't reproduce this error, but I guessed and put an additional entry into the registry ("HKEY_CURRENT_USER\Software\SmartBoot\Autostart_Folder").
If your folder is not "\Windows\AutoStart\" you can enter another path there.
I also added a reg key to customize the initial sound file ("HKEY_CURRENT_USER\Software\SmartBoot\Sound_Load").
Please download the updated version.
Further you don't have to softreset in order to try or set things up, just go to your start menu and use the shortcut.
Finally I hope this helps you, please report your results here.
Click to expand...
Click to collapse
Thank you for updating application.
Indeed, my Startup folder has another name. I changed the path in the registry, and now everything works.
mike2nl said:
Hi AndiCP,
thanks for your fast reaction. I will test it again now. Downloaded and then install it. Will report later here....
EDIT 1:
after installing the app and two times a soft reset the app blocks sense more then once. Strange...
I had to de-install the little app. This was an adventure again. All known ways are not working.
Only massive working in the windows folder and registry cleaning has helped out of that issue.
On which system you have developed thius app? If there something special done for the SonyEricson?
EDIT 2:
after re-install the application i had denite the folder move for the autostart things. Strange, because
then the app will workig. If i have selected Sense UI i get an error message:
Is this normal? Why you say it is something went wrong? But so far so good. Will test further now.
EDIT 3 (info only):
i have changed the autostart folder in the cab from \Windows\Auto Start to \Windows\Opstarten (dutch version)
EDIT 4 (question):
Have we to copy the apps/shortcuts for the \_AutoStart_xxx\ folders on uor own?
- if the answer yes, no problem (i think thats the way for now)
- if the answer no, then is something wrong
Possible you can think about that issue for a future version of your helpfull app.
Further i think you must add the descirption from your private website here to the first post:
Click to expand...
Click to collapse
to Edit 1: I can't reproduce and never had something like that, sounds like you have problems in your rom anyway as you are the only one reporting this.
Info: Its a simple and standard setup cab (auto generated). Nothing special or changed, it only copies the files. It works the same way on every windows mobile version.
to Edits 2&3: as I said, please check your Autostart folder and change it accordingly.
to Edit 4: Yes. I won't ever include a filemanager!
Hi AndiCP,
i have downloaded the last version yesterday. Installed it and it is running.
At now withour any issue. I think the changings are the solution. But with
un-installation i have my issues. Also when sense is off. But that is not
really a big issue, yet. I will test this again after the next hard reset.
I think this comes with the next CHT test. We, the team, are really haevy busy .
So far, excellent app, that helps me to organize my startup issues on all
CHT (e, s, ...) issues. Thanks for that. That brings us a good effort.
Will report this to co0kie (CHT) and Dark Ninja (GTX).
BTW:
possible you can tell me (PM) where you get or has made the sound files.
I will change something for my needs

[REF] █▌█▌█▌█▌THE ANDROID WALK>THROUGH - Guides, Explanations, Fixes & Tips █▌█▌█▌█▌

[REF] █▌█▌█▌█▌THE ANDROID WALK>THROUGH - Guides, Explanations, Fixes & Tips █▌█▌█▌█▌
Find here and EXTENSIVE collection of every single information available on Android : Kernels, Builds, Updates, Fixes and much much more...
Posts Guide​
Post 1 : Android Encyclopedia
Post 2 : Complementary Guides
Post 3 : Problems, and Fixes
Post 4 : How-to's
WARNING : This post needs updating, formating, typo-checking. Please be patient, as i'll need to collect a lot more data, and rest a little as well
Mods, I made a typo in my post ^^ Can somebody help there? Can't find how to edit a poll Thanks!​
A big THANK YOU to all the contributors of this thread, who are helping me, and the others!
​
This is a GUIDE/LINKS Thread. Suggestions are welcome, but :
PLEASE DON'T ASK QUESTIONS HERE Please check this (How to post a good question and maximize answers)
USE THE THREAD LINKS PROVIDED INSTEAD ON POST 3
You will save yourself double the time : On DEDICATED THREADS you will have more experienced users and more traffic, thus a faster and/or better answer!!!​
Why this thread​I've been reading a lot lately, but still haven't found an updated thread for basic questions, or just a welcome stop-by.
I'd add I'm not a cook neither a developer, but came to understand a few things by myself that weren't precisely told
(A common flaw of computer advices : Do this to solve that - You don't need to know how or why)
This brings pros, as I'll be more oriented towards the end users, but cons as I'll sometimes lack the necessary skills to go further. As a whole, I do believe this may still help understand the basics, and help get rid of a few misunderstandings. This is why there'll be a lot of "seems" and "mays" but in the end, most of the "basic" data here is accurate, and i'll get better as time goes by.
My current hardware and software
- HD2 Europe FR
- Hastarin 7.6 on PhireMod Sense 1.5
- Dutty CDC V11 COM2 FR
- Radio 2.15.40
However, this post covers Android as a whole, and lots may apply to other devices, be it with or without Haret "emulation"
Legend:​
-
Simple Explanation
->
A parameter or file you may change/trigger in order to enhance/solve problems/your Android build (yes, this works both ways)
[file]
An actual Windows Mobile/Windows XP/Seven file. You can see them using a SD Card reader/usb cable/etc
root/
This is Android C:\ drive
A file or directory present/visible ONLY when under Android on the phone.
/
Same as root/, but with some laziness included
(exe)
Means this is a Windows XP/7 Program
(apk)
Means....!
A. Android itself​
There are a few things you need to know on android on HD2.
What an Android build is made of :
- A "sound enabler" [CLRCAD.exe],
- An Android Bootloader for WM6 [HARET.exe],
- A startup command [startup.txt], Touch-screen Calibration Instructions [ts-calibration], a boot logo [initrd.gz]
- An Android Kernel [zImage],
- An Android Root Filesystem [rootfs.img]
- A ROM image [system.ext2]
- A data container [data.img]: This holds your texts, contacts and everything else. Sometimes provided BLANK by some chefs to avoid high boot times (cf Updating Android)
All of these should be on the "Android" folder of your SD card.
Note : For an easy launch of your Android, I recommend Exceller Multiple Boot Loader (link here), that you can set on autoboot (or not)
When you launch Android via EBL on WM6:
- [CLRCAD] enables sound
- [Haret] is launched, then totally closes Windows Mobile (all resources shut down)
- Kernel+Drivers, ROM and Data are loaded
What to learn about this:
- There are hardware/software interactions happening when Haret "closes" WM6 and it's own drivers take place.
-> It may be useful to activate "Airplane mode" in Windows to avoid pieces of the radio chip to stay indefinitely on without Android being able to shut them off (cf Power consumption problems)
-> Full charging may not be achieved under Android, this because of Android drivers not being able to correctly write the battery status (yet). To get to 100%, charge when the phone is off or under WM6 (although i do manage to have a 100% under Android under certain circumstances)
-> It may as well be useful to launch Android with Keypad lights on in order to ensure that lights are working properly. This depends on hardware and software, and varies from people to people.
->Flashing a radio under WM6 has the same impact over Android, as the radio chip instructions are shared between Android and WM6 (cf Robo Voice)
->The WM6 ROM used, while seemingly not worthy of attention (as it is "shut down" by Haret), seems to handle some important work when closing itself or interacting with the hardware. That's why changing from "Stock rom" to a "custom one" may resolve a few problems too.
B. Android's Internals​
First, at the current state of development, Android is ENTIRELY run through the SD card.
-> Class 2 cards have been reported to being a source of annoyance, still being able to correctly run Android, but slowing a lot of problems. T-MO USA users have different experiences with the bundled microSD card provided. However, i'd advise using AT LEAST a Class 4 microSD, with correct formating.
- File explorers under Android are reporting a "root/" directory with several files and folders, and a "root/sdcard" folder. In fact, the [data.img] of the SDcard IS (some part of) the "root/" (unzipped for you to see) whereas the SDcard is...the SDcard. That's why removing the SDcard with android running may freeze the whole file-system.
- The actual NAND work is approximately for the devs to put the [rootfs.img and system.ext2] inside the phone flash, to ensure that Android still runs when removing the Sdcard. The problem is : the [data.img], that holds Android's data, may still be on the SDcard (as EU HD2 only have 512mo of ROM, and Android already takes 300 just for booting)...To be continued.
Kernel, Libraries, Modules, File-system, and the like...
Ok, I know little about them, as I'm not a developer or a cook, but here are the basics
Kernel bundles
-> [zImage] : It is the main kernel file, it seems to contain the primary drivers using for controlling the phone. You can update this file by downloading a "Kernel" like Hastarin 7.6, by powering the phone in WM6, and replacing the [zImage,Haret,initrd.gz] in the Android folder of the SDCard
- [Initrd.gz] seems to be the logo launched when Haret is loading Android (needs confirmation)
- [rootfs.img] : It handles the basic file-system
Android Builds Bundles (further explanation)
- [system.ext2] : It contains the Android files described there-under, also provided in a build
Modules
Located in /system/lib/modules, they are here to handle the Bluetooth and Wifi. They sometimes need to be replaced manually (aka "pushed" via the shell/terminal)
Libraries
Located in /system/lib/ or /system/lib/hw, they handle other elements, like lights and so on. They can also be uploaded manually when needed.
File-system Organisation
- root/acct, root/bin, root/cache, root/config, root/dbgfs, root/sbin, root/dev, root/mnt, root/proc, root/sys, root/tmp seems to contain files used for Android. Never went there.
- root/data/etc and root/data/system holds some system files. Don't mess!
- root/data/app/ is the main location for user installed apps (.apk)
-> root/data/data/ is the location for each apps' storage (like some sort of registry), like scores for games, etc
-> root/data/data/ seems to also be the place where the "hosts" file of android is located (The other ones across the file-system are usually empty ones)
- root/system/app/ is the main location for cooked (pre-installed) apps. Removal is at your own risk!
-> root/system holds the build.prop file, responsible for some of the phone behavior. This folder seems to be physically hosted in Android's [system.ext2] file, and is dependent of the chef providing it. You can configure alternate DNS in this file (BACKUP first).
Kernels' flavors (MichyPrima Kernel Thread)(Hastarin Kernel Thread)
- There are two branches : EVO and Nexus1. They mean different libraries, drivers and modules. Nexus1 is the most stable, but the least capable. EVO, although less stable, is the most able, and thus has been selected to be at the base of the NAND development.
- There are two data approaches : RMNET and PPP. Both have their pro's and con's: Speed(PPP) vs Stability(RMNET). (Learn more here)
- There are several kernel chefs, and several available tweaks for each branch.
- There are several capabilities, such as Overclocking or Not, etc. Usually, each Kernel chef delivers its Kernel with or without these additions. Find the one that suits you best.
To summarize / To Update Android :
- A downloaded "Build" provides a FULL working Android system, you need NOTHING ELSE
- A downloaded "Kernel" provides : An updated [Haret, initrd.gz, zImage] that you just "paste" over an existing Android "Build" and sometimes updated "Modules/Libraries" that you need to manually push
->Note : There seems to be a workaround, like a [root] folder, containing many sub-folders, that is placed in the [Android] folder. The files included in this [root] folder seems to be copied by Haret into the root/ folder of Android on boot. That is why, when you "update" an entire "build", chefs ask that you deleted everything on your [Android] folder, to ensure nothing from an old "build" or "Kernel" will be copied to the new "build" upon booting Haret.
->Note on updating "Builds" : I personally erase everything but the [data.img] on my android folder, then unzip the content of a new "build". WARNING : Some chefs include [data.img] in their "builds", so be sure to CHECK to avoid an override!
How to choose a build/a kernel:
- Check what are your needs : Sense implementation, Basic but blazing Android, HTC Sense.com services.... Each come with a price
- Again, choose what do you want from your phone, cutting-edge but unstable or basic but sure...(You may have both )
-> I personally don't recommend going out of binded paths. Each chef, in each build, uses a specific Kernel dev, and adapts its ROMS to it. I chose to only update a similar Kernel, when the cook or chef just didn't have the time to implement it yet (usually, unless Kernels are really faulty, new ones come with new builds, so just wait for a wholesome upgrade)
C. Basic Android Tools (Survival Starter Kit)​Some tweaks will require "Super-User Access" or stuff like that. Again, here are the basics.
First, "Droid Explorer" (exe).
No, don't look on the market, it's a WINDOWS XP/7 PROGRAM.
(Why the capitals? For the story, a few months ago, it took me HOURS to figure that, as there is also a "Droid Explorer" on the market, free as well. When you're told, "Go into ADB mode with Droid explorer and push that file in the rootlib" you're starting to think you took the wrong spaceship )
-> ADB Mode : Short for "Android Debugger Mode". You can switch this in "Parameters/Application/Development, Check the USB Debug). You need to enable ADB mode to use Droid Explorer.
- Droid Explorer basics : If already on ADB, click on "Connect device" at the right corner, and select the only device shown.
- Warning : I've personally got increasing problems accessing/pushing files to Android using Droid Explorer. I'm currently using the "root folder update" method. (Handle with caution!)
Other useful programs (most are free, some very useful may not, and some are included in builds):
System Apps
- Root explorer (Apk) : A useful Android program, to access files currently not available trough ES Filexplorer or Astro, although some other file explorers may possibly retrieve SU privileges to access the entire file-system. "root/data" is a typical folder not accessible with "traditional" file explorers.
- Super-User (apk): It's an Android Program, provided with your build. It enables programs to access some privileged code/areas...(To investigate)
- Terminal Emulator (apk) : It's Android's cmd.exe, used to input commands like in DOS-Mode
Usually Bundled Apps
- Astro (apk): Beautiful File Explorer
- Drocap2 (apk): Screenshot app. Push start, and shake HARD
- DSP manager (apk): Manages that crackling speaker bad bass rendition
Must-have Apps
- Adfree (apk) : Similar to winhelp2002 for windows, this block some ads while on the Internet. Doesn't block GoogleAds (developers need to survive through free apps too!)
- BatteryLevel (apk): Inputs a permanent notification, which shows the battery percentage. Lightweight and useful, albeit not always properly refreshed
- DroidWall (apk): The only? firewall for Android. Need Busybox (cf TitaniumBackup) in order to function properly. Warning : May block genuine apps from accessing Internet. And no, your cracked apps won't be prevented from calling "home", as license verification goes through the Android system itself.
- GPS Status (apk) : Handles the A-GPS, compass and other stuff
- SetCPU (apk+widget) : This is used to tweak the CPU. (see Hastarin's recommendations, a shame I can't export my settings). Install the apk, then place a widget in order for it to work (mandatory? need to investigate...)
- Shazam (apk)
- SMS Popup (apk) : Great program, pops sms and enables quick management. SMS notifications have to be handled solely by either the program, or the system. Disable one or the other accordingly.
- Startup Cleaner Program (apk) : Manages starting programs. Handle with care.
- SwitchPro (apk+widget) : Almost similar to Cookie's switches for WM6. Can't live without. Weird implementation though.
- Taskiller (apk+widget) : Selective task killer. Has been reported to cause wake-up lag when set on "autokill on sleep" (and I do, but use it on other occasions)
- TeslaLED (apk) : Ke$ha's favorite tool for impromptu parties!
- CurrentWidget (widget) : report power consumption. Helps reporting battery drain problems (I got 3ma on standby ). Don't set to "update" on less than 1 minute. Use it to log when on sleep, then check power consumption on standby.
- DolphinBrowserHD (apk) : Very configurable, personal choice.
Very Nice Addition
- Swype (apk) : Provided on the forum, or sometimes implemented on Builds, can't live without either.
Is there a developer in the room?​- Taintdroid (needs implementation/compiling?)
Unusual stuff coming from me, but this program recently came to my attention. It detects every ID/IMEI/etc Internet leakage and reports to the user. It visibly need some kind of integration into the kernel in order to work. With a firewalling program, we could prevent our phones from spying hard on us (I have a dream, i know ^^)
>>>Hastarin, MichyPrima, ElBartoMe and the others, anyone there? <<<
Thanks for all the devs, chefs and forum users, i'll link when available and when free
Complementary guides
This is post 2 :
Complementary guides
Complementary guides:
> How to flash an android build, and boot issues/solutions
http://forum.xda-developers.com/showthread.php?t=732380
>A good explanation of the different terms
http://forum.xda-developers.com/showthread.php?t=774859
>Frequently asked questions (although pretty much technical to me) (Tips and Apps)
http://forum.xda-developers.com/showpost.php?p=7088391&postcount=3
Main Problems, Concatenated Solutions, Original Threads
This is post 3 :
Main Problems, Concatenated Solutions, Original Threads (When available):
Main Problems and Solutions (compilation)​Some filenames aren't correct, i'll check that later
(One general thread)
Battery Drain (One thread there) (Another Thread here)
May be the main problem out there, although Touchscreen freezes are competing for #1 as well
- Try tweaking WM6 power management (Thread here)
- Use CurrentWidget log mode to verify
- Remove root/data/system/batterystats.bin
- Try the Airplane mode in WM6. For daily Android users, set to airplane, then switch the phone off and on without a reboot app. The airplane mode should stay indefinitely on. For constant switchers, launch haret after airplane mode. On next reboot, WM6 shouldn't have airplane mode on.
- Try checking the "lightslib.q8sk"(?) file/problem. Try replacing it with the newer "lights.htcleo.so" provided on the forums
- Try flashing a different radio or WM ROM (test radio first of course)
- Try booting Haret with the keys' lights on
Robo Voice
This issue seems to be hardware+software related. AKA It is different for everybody, and same build+rom+kernel may produce different results on similar phones.
- Current state of resolution is : FLASH RADIO and CHANGE WM ROM ^^
PPP Stuttering (no Edge/HSPA icon warnings)
- Try the libhtc_ril_wrapper.so fix provided by noellenchris (Another thread there)
- Try updating your kernel
- Try removing Taskiller Autokill feature (not the kill on sleep feature)
PPP Freezes (icon going on and off, etc)
- Try tweaking the build.prop (GSM or WCDMA prefered via "ro.telephony.default_network=" parameter ) (See "Tweaks" Section)
- Try changing the DNS inside "root/system/build.prop" (Link of your mobile provider DNS here)
- Try tweaking the APN in "root/system/etc/apns-conf.xml"
Screen of Death (Thread)
As Robo Voice, this issue seems to be hardware+software related. AKA It is different for everybody, and same build+rom+kernel may produce different results on similar phones.(Proof)
- Try flashing a new radio
- Try formating your SD with the largest FAT32 Allocation Unit Size possible (Thread Here)
- Try changing your SD-Card
Touch-screen Freezes
- Try disabling g-sensor in Parameters/Display/Auto-rotation
- Try offset change. Still haven't understand... (Thread Here)
Music Stutter
- Try updating or Changing Kernel (Thread Here)
- Try this workaround
Background Noise
See this thread
Camera "Moon picture" Preview
- Temporary fix : Disable preview
Camera : HTC 5Mpx (EVO/Desire Roms ONLY) (No Desire HD, No Desire Z...)
See thread here
011 International Dialer issue
Fix can be found here
T-MO USA MMS Issues
Thread Here
Tweaks i'm aware of​
Boost DATA Speed
-> Edit your "root/system/build.prop" and check for correct values (These ones seems "overboosted") -> (Thread Here)
- Here are the "HSPA network" values explanations (See here), these seems more moderate
Build.prop Configuration
ro.telephony.default_network=
-> "0" is WCDMA/UMTS Prefered, even when network is very low
-> "3" is GSM/WCDMA Auto Mode, switch 2G/3G according to highest network
How-To's
This is post 4 : How-To's
HOW TO REQUEST FOR HELP ON XDA​Again, personal point of view here, but there are a lot of "unsaid" things around there....
1. Nothing more annoying than a "noob" (and we've ALL been through there, but...) that didn't (at least) try looking for himself.
-> Use wisely the "Search on this thread" button. It's WORKING. Tip: If you're not on a specific thread, but rather in the Development of General sub-forum, tick the "Post" button to avoid going through entire threads for a single answer.
2. Do remember: you're not alone.
-> DON'T BE RUDE, BE POLITE, SAY HI, THANK PEOPLE, we all have to be patient. It's XDA Community. Plus, some threads are moving real fast, and may have flooded your question. Ask again, and just don't complain!
-> EDIT YOUR SIGNATURE. Insert your ROM, Radio, Phone model, etc etc etc. Most common answer to noob problems: "WHAT'S YOUR ROM"
->Try asking GOOD QUESTIONS, starting with (Hi!) "I've been looking for this, found this, understood this, but need help about that" (Thanks) and you'll see how people will be more inclined to answer ^^
Flash a WM6 ROM (compatible with Android)​> Need-to-Know : HSPL, RUU, WM6 Roms
1. Install the HSPL
- A HSPL is needed in order to "flash" custom roms, as well as new radios, and then Android Builds. Most up-to-date HSPL is HSPL 3 (found here).
- Plug your WM6 phone to your computer using the USB cable provided on activesync mode (SDCard Flash method here)
- Launch the "Mobile Manager" in Vista/Seven, or wait for activesync in Windows XP, and establish a connection (Connection failure : Look here)
- Launch "HSPL3_PKG.exe", and follow the instructions
- Reboot phone
2. Download and Install a WM6 ROM
- Hint: Choose and download a recent WM6 rom (advices here)
-> Your phone needs its battery to be charged at a minimum of 50%, else flashing won't occur
- Again, plug your phone in USB-Activesync mode
- Unzip the archive, and launch "CustomRUU.exe" ("ruu_signed.nbh" is the WM6 rom file)
Flash a new Radio (under WM6 only)​- Choose a recent radio, minimum required is 2.08, 2.12 recommended (radio thread here)
- Again, plug your phone in USB-Activesync mode
- Sometimes, only the radio (ruu_signed.nbh) is provided in zip files. "Pick" the "custom_ruu.ex"e of a WM6 ROM, and copy it in the unzipped radio folder, it'll work just as well.
- Launch and follow the instructions
Install Android on a SD Card​
Update an Android Build (with a new build)​
Update an Android Build (with a new kernel)​
Yes, I did find this useful - Thank-you !
RedWave31 said:
A.Android itself
There are a few things you need to know on android on HD2.
>What an Android build (like mdeejay NextSense.zip) is made of :
- An Android for Windows Mobile emulator (HARET),
Click to expand...
Click to collapse
HaRET is not an emulator. It is a Linux bootloader.
A Really good guide, actually explains quite a lot about the filesystem that I wasn't aware of. Well written and a great idea.
msoler8785 said:
HaRET is not an emulator. It is a Linux bootloader.
Click to expand...
Click to collapse
Thanks, updated!
Feel free to submit ideas or whatever!
Wow, good idea on putting it all in one thread, few things, however:
As another poster suggested, haret is not an emulator (handheld reverse engineering tool)
As far as the filesystems: rootfs.img is the linux rootfile system, startup.txt are commandline arguments for the linux startup, system.ex2 is the root android filesystem, etc. So to avoid confusion, think of it this way: system.ex2 would be closer to the android "rom image", where as rootfs, startup.txt, ts-calibration, and initrd are for the linux kernel side, so you can boot up android. (Very oversimplified I know, just trying to help)
When you install a linux box, typically it's installed on more than one partition (keeping the /home directory on a seperate one is always good practice, and some people even keep /var on a seperate one for log files as well.) data.img and system.ex2 would be like different partitions of the android filesystem. When you buy a phone that isn't "rooted", it means you don't have access to the root file system, aka in this case, system.ex2.
*edit* oops you already saw the thing about the haret. Didn't notice.
You may also want to add that for where apps are located after install, /data/app is for user installed apps, /system/app are for pre-loaded apps that are installed with the system. If you wanted to remove any app that came with the system (like the amazonmp3, for example), you'd delete it out of there. (Delete files out of the system/app at your own risk, don't delete it if you don't know what it is)
Added HSPA Values and DNS and APN files location. Enjoy
This is a very nice guide. Has a lot of the necessary stuff that the other guides leave out.
Good job. Maybe I will just link folks to this guide in the future instead of directly answering them. (probably just do both though - I was pretty noob at one point)
Oh, and .apk = Android Package (android apps are .apk / android package file)
Added 5mpx Fix, hope the HD Roms will have camera too
- Try the Airplane mode in WM6. For daily Android users, set to airplane, then switch the phone off and on without a reboot app. The airplane mode should stay indefinitely on. For constant switchers, launch haret after airplane mode. On next reboot, WM6 shouldn't have airplane mode on.
Click to expand...
Click to collapse
For my phone, turning on Airplane mode in WM6. then booting into Android with Haret without restarting, then coming back to WM6...it is still in Airplane mode.
Great Job man...keep this thread up to date...We appreaciate your hardwork....thanks a lot...
Top work dude!
Spelled "through" wrong in the title
OCedHrt said:
For my phone, turning on Airplane mode in WM6. then booting into Android with Haret without restarting, then coming back to WM6...it is still in Airplane mode.
Click to expand...
Click to collapse
Damn I spent a lot of time trying to figure this one, as I'm not using WinMo anymore. Are you using Cookie HomeTab's switch? Or directly in the Com Manager?
>I remember using Cookie Switch didn't stay at next reboot
- BTW, maybe it has to do with your launcher, or even the rom
jetsetwilly said:
Top work dude!
Spelled "through" wrong in the title
Click to expand...
Click to collapse
LOL This is the "Walk-true-shame"
Thanks for reporting
Added "How to post a Good Question", personal joke of the day, but REAL INFO
A question and a few suggested tools-
First, where in the Android file structure are the logs stored?
Second, another way to access the phone from Windows, one I use for working on Linux systems-
1) install QuickSSHd from the market. It will open an SSH (secure) tunnel into the phone
2) Install on your windows system Winscp and Putty (both Windows XP and up applications and both free. Winscp allows you to transfer files to and from the phone and Putty gives you a root shell and your desktop/notebook keyboard.
While these tools are not real simple, if you have an understanding of basic Linux and get this far you can then log into the phone over your home WiFi network with full root access and get into a lot of trouble if you aren't careful. It also seems more stable than Droid explorer.
Excuse this potentially silly question...
How do you quit Android? I'm running the Runnymede/Rhyme/Bliss one and long holding power doesnt do anything.
Is it just a battery pull?

[Discontinued/Files Removed] Tasker Project for Snapchats (Requires Root)

[Edit] Discontinued indefinitely. App creation was a little out of my league when I began trying to make it. Then Snapchat started encrypting files in more complicated ways than I had experience with, so I couldn't keep up and unfortunately had to drop all efforts. This project will no longer work and no further effort has been made to continue progress. I apologize for the lack of communication.
There are other resources out there that are still working, however. If you need help finding such things, you're welcome to PM me to ask what I'm referring to.
Discontinued until further notice. Currently working on an app that does all of this and more. For those who previously downloaded this and find it suits their needs for the most part, enjoy it, and consider checking out the app in the future. To others, I will let you know when I release the app. It should be much improved from the current project (and it doesn't require Tasker).
Due to a request to release my tasker project, which silently, neatly, and automatically copies and renames the snapchats you receive to a separate folder, I created this thread. Please try the latest version before asking for help with an issue. Most issues have probably been solved at this point.
There are still bound to be a few kinks in this, but I have spent lots of time getting it to work as much as possible (I am rather proud of the regular expressions that I created myself, even if they might be overkill).
Attached is the project if you just want to import it and let it go to work. Just extract from the zip and import in tasker by clicking a Project at the bottom of the Profiles tab (not the + sign, but an icon to the left of it)
To describe it simply: upon receiving a notification from snapchat and noticing a file change in the directory where the files are stored, it runs a series of commands that copies and saves them to the SDcard/Snapchat/Saves(/Vids) with filenames of "[DATE] - [TIMEMS] [NAME OF SENDER].jpg" (or .mp4). TIMEMS is the time in milliseconds from some time in January 1970. It keeps the task from overwriting your saves and it orders them nicely.
If I end up making any drastic changes, I'll probably come back and include them here. If you take it and make any changes that simplifies the process or makes it work better, feel free to share.
Good luck!
The new version (5-8_v5) has been released (small update from v4)! PLEASE READ BEFORE USING:
Requires Tasker's Accessibility service to be running (Android Settings> Accessibility> Tasker) to catch the notifications—only if you want the usernames to be automatically parsed and used; if you don't turn it on, it'll give you a Variable Query every time it finds a file loaded. Also if you don't turn it on, run the Folder Fixes task on your own, cause it's supposed to run the first time you get a notification.
When this first runs, it assumes that you have the folder/directories created. I don't know when snapchat creates them (during install or after receiving the first snap), so if you get errors related to not finding the file then try re-running the Folder Fixes associated task.
If you see something asking for text with the title Username, that's the Variable Query I mentioned. That's asking for the person's name who sent it, if you know it. If you don't know it at the time of asking, you can put anything in there and it'll copy with that attached (you can always go to the folder and rename it yourself)—otherwise, you can close it (or wait 15 seconds) and rerun the task on your own time.
Besides that, don't touch anything and you should be fine!
Changelog (5-8_v5):
Small update to 5-6 which stops the task and, therefore, the %Last[whatever] variables from being created if the Username variable is unset when it gets to the part where it copies (equating to no copies being made, regardless).
Because of that, now you shouldn't have to delete variables manually.
An unmentioned change in 5-6 was that I changed the flash message. It now flashes the names of each file it creates. This can be turned off—Action 37 in the Copy/Rename tasks.
(v2) Figured out the other reason why duplicates were happening with images. It has now been updated. (The only way this could backfire [same for videos] is if you get two different snaps of the exact same filesize in the same time period—very unlikely)
(v2) Made the Variable Query nicer looking.
(v3) Fixed some variable references that were funky
(v4) Fixed the profiles getting turned off and staying off by accident under certain scenarios
(v5) Changed it so no user input is required to turn off the profiles. If the 4.2+ one runs at all, it stops and turns off the other one.
(v5) Changed the %Last[etc] variables from creating excessive arrays with the same numbers.
Changelog (5-6):
Revamped the way it checks for previously copied snaps. It should be foolproof now, giving no duplicates while still not missing any.
Added an Array Clear for the %Username variable at the end of the copy/rename tasks.
Added a Variable Query if it's going to copy something but %Username is not set (see above for usage)
You can delete the Variable Set %Notification from the Update Username task if you want. It's just there for me so I can check it as a global variable. It isn't referenced anywhere else in the project.
Changelog (5-4_v2):
TONS of error fixes caused by insufficient permissions and directories are now included in the run-once profile.
Added profile (and associated tasks) which should fix the problem that users were having about the video folder not existing
(v2) Optimized the way it turns off profiles. This should automate the above-listed stuff. So even if you have all the profiles on, it should turn off the ones that don't work (unless both of them work). Still, in case the run-once wasn't turning off when done, now it will.
(v2) I consider this the first fully stable release. However, you're welcome to note if it doesn't work for you.
Changelog (5-3):
The received_video_snaps folder will no longer be allowed to be deleted by Snapchat
No more error messages when saving video snaps
If the %Username(1) variable is unset, it will flash a Variable Query, which you should type the person's name in.
The only issue with this is for videos. You will just need to go back to the other screen and load the video again.
If/Then was deleted in the Username catching task to catch multiple usernames better.
Profiles should now only trigger once per file change. I would check from time to time to make sure they are still in the "on" position. It should be fine, but I won't assume anything.
Project icon changed to Snapchat icon
Changelog (4-29):
has been significantly enhanced from the original. It now does a much better job:
Preventing duplicates saves
Not running indefinitely
Running efficiently and quicker
Having less confusing global variables
Picking up the username (currently testing to see if this can be done even better, but I basically need to wait for a certain type of notification. It should be better regardless)
Edit, I think it's safe to delete the If and End If in the Update Username task, which might work for trying to pick up multiple usernames at the same time. This hasn't been extensively tested, but I'm pretty sure it's the correct decision
Automatically catching videos when they're loaded
I also fixed a few rather large errors that might have been in the previous release
Donations are accepted!
NEWEST Version is on the bottom (I'm not really sure why people are downloading the original version at this point... it's just there for reference. I may just remove that one if it tricks people that much...)
I should probably note that this does require root, because you have to change the permissions of the files for tasker to be able to read them.
Hello, is it possible to make one with this conditions with just a simple task...
Whenever I receive new snapchat notification, I then open tasker and just run that particular task.
What I want the task to do is just copy everything and remove the ".nomedia" extension from snapchat folder into a new folder in the memory card.
The reason I want this is that Snapchat isn't so popular in my country. Therefore, I only receive Snapchats once in a while and I only want to save the images sometimes. Not all the times. Moreover, i dont wanna keep tasker running in the background.
Thanks a lot!!
rfkw said:
Hello, is it possible to make one with this conditions with just a simple task...
Whenever I receive new snapchat notification, I then open tasker and just run that particular task.
What I want the task to do is just copy everything and remove the ".nomedia" extension from snapchat folder into a new folder in the memory card.
The reason I want this is that Snapchat isn't so popular in my country. Therefore, I only receive Snapchats once in a while and I only want to save the images sometimes. Not all the times. Moreover, i dont wanna keep tasker running in the background.
Thanks a lot!!
Click to expand...
Click to collapse
That should be rather simple. If you wanted to use my project, you would do that by deleting or turning off all the profiles in the project, and then you'd only need the tasks named Run & Rename Snapchat Image and Run & Rename Snapchat Video and get rid of some of the extra features that you don't need. For example, you could get rid of a bunch of the steps in the tasks.
[deleted]
This would technically work for both images and videos, but to get it to actually find the videos, you'd have to find a way to run the task while snapchat is loaded and the video says "Tap to View". I'd suggest setting up a gesture.
By the way, in the project I have, tasker only runs when each profile is active. That's why they're there, to prevent the battery drain that would otherwise occur. The profile states are rather infrequent (when you receive a snapchat notification, and when a file is changed in the directories listed), so I haven't really noticed battery drain from that.
You're also aware that you have to do this BEFORE you view the snapchat, right? Otherwise, you could just take a screenshot...
An alternative to the above method would be to use the Copy Dir command on those directories, or the FolderSync app, but you'd still need to change or add the correct file extension (jpg and mp4). Fiddle around with it; you might be able to figure out a way to add the extension.
Disregard below, I figured it out, it wasn't so clear about long pressing the icons at the bottom of the screen to get to the projects dialog. Done now! Thank you shenkenstein
I'm unable to import the prj file. I tried multiple things until I just changed it from snap.prj.xml to snap.prf.xml and the Tasker was able to see it in the import dialog. But once I select it I get:
Error: the import contains more than one profiles​
I'm thinking there's something missing in my Tasker. I keep hearing references to 'projects' but no such tab exists in my UI. I've gone to preferences and unchecked 'beginner mode' with very little changes.
What am I missing?​
shenkenstein said:
An alternative to the above method would be to use the Copy Dir command on those directories, or the FolderSync app, but you'd still need to change or add the correct file extension (jpg and mp4). Fiddle around with it; you might be able to figure out a way to add the extension.
Click to expand...
Click to collapse
I actually tried setting up a simple copy dir commad. Just copy dir from the receivedsnapchat folder to a random folder on my sdcard whenever I run Snapchat.
However, it doesnt seem to work. I guess it's something to do with the chmod thing which I'm not familiar with. Am I right?
Thanks for your help tho! I'll try out the steps you listed. Hopefully I can get it to work.
---------- Post added at 01:13 PM ---------- Previous post was at 12:18 PM ----------
shenkenstein said:
On second thought, what you want would just be easier to create a task with:
A1: List Files [ Dir:/data/data/com.snapchat.android/cache/received_image_snaps Match: Include Hidden Files: On Variable:%nomedia Continue Task After Error: On ]
A2: List Files [ Dir:/data/media/Android/data/com.snapchat.android/cache/received_video_snaps Match: Include Hidden Files: On Variable:%nomediavid Continue Task After Error: On ]
A3: Run Shell [ Command:chmod 777 %nomedia() Timeout (Seconds):0 Use Root: On Store Output In: Store Errors In: Store Result In: Continue Task After Error: On ]
A4: For [ Variable:%filestocopy Items:%nomedia() ] --- don't forget the () after nomedia
A5: Copy File [ From:%filestocopy To:Snapchat/Saves/%TIMEMS.jpg Use Root: Off Continue Task After Error: On] -- here's where I have an issue, because I'm pretty sure you need to tell it the original filename of the file, minus the nomedia part (the variables stored in %nomedia will be the entire filename, including directories). That's why I find it easier to create my own filename, so I'd use something like %TIMEMS as I have listed. You could also change the directory here. You COULD keep the old filename using tasker's variable search replace function with a regex to select everything but the nomedia part, but I think that's not worth the effort.
A6: End For
Click to expand...
Click to collapse
Alright managed to get it working. Currently for A5, I've set it to To:New Folder. This new folder is a folder on my sdcard.
The question I have is, if I'm using %TIMEMS.jpg, how would it rename the files? Would it be sequenced or will all the files have the same name?
Would it be 1TIMEMS.jpg, and next pic would be 2TIMEMS.jpg, 3TIMEMS.jpg and so on? Or would it be the original filename with TIMEMS at the back, ie. "adlfkadlfhadlfTIMEMS.jpg"?
Thanks!!
rfkw said:
Alright managed to get it working. Currently for A5, I've set it to To:New Folder. This new folder is a folder on my sdcard.
The question I have is, if I'm using %TIMEMS.jpg, how would it rename the files? Would it be sequenced or will all the files have the same name?
Would it be 1TIMEMS.jpg, and next pic would be 2TIMEMS.jpg, 3TIMEMS.jpg and so on? Or would it be the original filename with TIMEMS at the back, ie. "adlfkadlfhadlfTIMEMS.jpg"?
Thanks!!
Click to expand...
Click to collapse
You can see for yourself by doing a flash %TIMEMS. It always comes up with different numbers, such as 1367028766502 or 1367028766586. I don't think tasker is fast enough to do multiple commands in the same millisecond. Does that make sense?
And chmod is the shell command that gives the files permission to be read, write, and executed. You can read about it online if you really want, but if it's not working you either don't have root or didn't check use root. In fact, the Copy Dir alternative would probably require use root to be checked as well, but again, because we're wanting to change filenames, I don't think that's the command we want.
Bumping because of new version.
You can delete the old project and add this one if you have the older version. Deleting a project is done much the same way adding one is.
Vid done!
I installed and when I load a video, I get a message "Vid Done" When I exit Snapchat, I get a Tasker Error, List Files: file not found: /data/media/Android/com.snapchat.android/cache/Received video snaps. What am I doing wrong? I'm a noob, sorry if it's a dumb question.
Hi! I've imported it to Tasker, and everything seems fine there. However, it simply won't do anything and I've tried everything with my extremely limited knowledge.
I receive a Snap, but nothing shows up in /storage/sdcard0/Snapchat/Saves/(or Vids depending). Running Xperia P, with JB 4.1.2
I've checked that the images or videos do show up in the folders specified by the project, it just seems like it doesn't recognize I have gotten a snap?
Dahlmo said:
Hi! I've imported it to Tasker, and everything seems fine there. However, it simply won't do anything and I've tried everything with my extremely limited knowledge.
I receive a Snap, but nothing shows up in /storage/sdcard0/Snapchat/Saves/(or Vids depending). Running Xperia P, with JB 4.1.2
I've checked that the images or videos do show up in the folders specified by the project, it just seems like it doesn't recognize I have gotten a snap?
Click to expand...
Click to collapse
Do you have tasker enabled in accessibility settings? If not, then the profile won't get the username from the notification. If you don't want to enable it, you can add a Variable Query for Username(1) in the copying task. Then, that'll always ask you for that variable when it finds the file added. Just put whatever you want there (though it's designed for the person's name)
As my project is set up, the file won't copy if the username isn't set, and it won't set if tasker can't access the notifications.
I've just added:
If %Username(1) ! Set
Variable Query: Variable %Username(1)
End If
to my copy tasks right before the For, For, Run Shell, etc... commands. That should take care of that situation, if it's the problem, and if I release a new version it'll have it :good:
wdgewood said:
I installed and when I load a video, I get a message "Vid Done" When I exit Snapchat, I get a Tasker Error, List Files: file not found: /data/media/Android/com.snapchat.android/cache/Received video snaps. What am I doing wrong? I'm a noob, sorry if it's a dumb question.
Click to expand...
Click to collapse
No, it's not a dumb question. It's because the File Modified profile picks up when Snapchat deletes the file as well as when the file is copied by tasker (but the task that gets that error message is what allows it to not run every time this happens). It's not a significant error, UNLESS you aren't seeing it copy the files. You can turn those flash error messages off in Tasker Preferences>Action>Flash Problems.
Edit: I just fixed the error message from displaying even with the flash problems option checked. Go to the SnapVid File Added profile, click the File Modified part of it, and add /received_video_snaps/ after /cache/ so that it looks like "/data/media/Android/com.snapchat.android/cache/received_media_snaps/" without the quotes. I'm surprised I didn't notice that myself. Haha, thanks for pointing it out. That'll should also prevent the task from running while you're sending videos (because I saw a folder named sending_video_snaps there too before it deleted it again).
Edit 2: Nevermind, the error still came up, but it's only when snapchat deletes the folder. Also, my profile doesn't activate with that folder added, which is probably why I left it at /cache/. What's happening is the Video File Ready task is trying to List Files and it's not finding the folder in which it's supposed to search. I don't know any way around this because it keeps deleting the folder, even if you add it manually. --more on this below--
shenkenstein said:
Do you have tasker enabled in accessibility settings? If not, then the profile won't get the username from the notification. If you don't want to enable it, you can add a Variable Query for Username1 in the copying task. Then, that'll always ask you for that variable when it finds the file added. Just put whatever you want there (though it's designed for the person's name)
As my project is set up, the file won't copy if the username isn't set, and it won't set if tasker can't access the notifications.
Click to expand...
Click to collapse
After enabling it in the accessibility settings it still isn't working fully.
In Tasker, I imported the SNAP.prj.xml file, and the profiles "Snapchat Notification, Snap File Added and SnapVid File Added" are all set to on. Tasker says there are "no active profiles" but I assume that is due to the snap.prj.xml file being under the "two people" tab, and not the "house" tab.
I see that under vars on the home tab I have "%Username1 someoneIrecievedfrom" so something must be work. Just not getting any files I assume. Again, this (adding variables and such) is out of my league, so I apologize for seeming a bit technically impaired.
Dahlmo said:
After enabling it in the accessibility settings it still isn't working.
In Tasker, I imported the SNAP.prj.xml file, and the profiles "Snapchat Notification, Snap File Added and SnapVid File Added" are all set to on. Tasker says there are "no active profiles" but I assume that is due to the snap.prj.xml file being under the "two people" tab, and not the "house" tab.
I see that under vars on the home tab I have "%Username1 someoneIrecievedfrom" so something must be work. Just not getting any files I assume.
Click to expand...
Click to collapse
If you run the Run & Rename Snapchat Image task by itself, does it work then?
Hmm. Don't worry about the username variable, then. The "no active profiles" is fine, because these profiles are set to be active only for the event itself (which is like a split second long). The only other thing I can think of, without seeing your run log, is if you don't have root or haven't given Tasker root access. So, also try turning on the Run Log and noting where you get an error.
Breakthrough!
I just had a major breakthrough with the videos folder deletion problem (which ends up creating errors and stuff). [deleted]
That literally disables Snapchat's ability to delete folders in the cache folder, but it allows it to create new folders and files within the new folders. Theoretically, you could also do this same function to the received_video_snaps folder, and it would never be able to delete the files within the folder. Unfortunately, if you did that then every time you hit "load" in snapchat, it would load a new file into the folder, so you'd probably get multiples. But that could be done to the images folder without any issues, I think.
[deleted]
Dahlmo said:
After enabling it in the accessibility settings it still isn't working fully.
In Tasker, I imported the SNAP.prj.xml file, and the profiles "Snapchat Notification, Snap File Added and SnapVid File Added" are all set to on. Tasker says there are "no active profiles" but I assume that is due to the snap.prj.xml file being under the "two people" tab, and not the "house" tab.
I see that under vars on the home tab I have "%Username1 someoneIrecievedfrom" so something must be work. Just not getting any files I assume. Again, this (adding variables and such) is out of my league, so I apologize for seeming a bit technically impaired.
Click to expand...
Click to collapse
I'm having this issue too. I have a rooted Galaxy Nexus and have enabled Tasker in Accessibility settings. I've attempted to run the ''Run and Rename Snapchat Image' when I had a pending one and it did not work. I could, however, see the file in the directory (/data/data/com.snapchat.android/cache/received_image_snaps) when I checked it out via Root Explorer. I also could see my contact's name in the %Username value.
My Run Log from when I manually run that task with an active Snapchat is attached with the 5-3 profile.
a10waveracer said:
I'm having this issue too. I have a rooted Galaxy Nexus and have enabled Tasker in Accessibility settings. I've attempted to run the ''Run and Rename Snapchat Image' when I had a pending one and it did not work. I could, however, see the file in the directory (/data/data/com.snapchat.android/cache/received_image_snaps) when I checked it out via Root Explorer. I also could see my contact's name in the %Username value.
My Run Log from when I manually run that task with an active Snapchat is attached with the 5-3 profile.
Click to expand...
Click to collapse
Thanks for the Run Log.
Well, your answer is that the List Files command (label List nomedia) is failing to find the files in the folder. I can think of only two possible reasons for this (and I think it's #1):
1. Check the permissions of the folder /received_image_snaps/ and tell me if it's missing read permissions for group or other (I think Tasker falls under Other, but I forget). If it is, try manually adding those permissions (check the boxes); you might want to add permissions to execute as well, just in case. I can set up another command in the run-once profile to solve this for everyone if it fixes it for you, so let me know.
2. In the List nomedia command, I have it set up to match any files in there which have a character or more followed by .nomedia (this is under Match, listed as "+.nomedia"). If the files you see in that folder don't match this regex, it won't list them. You can safely delete this entirely without any negative side-effects. Nothing gets put in that folder that doesn't match that regex, anyway, for me.
shenkenstein said:
Thanks for the Run Log.
Well, your answer is that the List Files command (label List nomedia) is failing to find the files in the folder. I can think of only two possible reasons for this (and I think it's #1):
1. Check the permissions of the folder /received_image_snaps/ and tell me if it's missing read permissions for group or other (I think Tasker falls under Other, but I forget). If it is, try manually adding those permissions (check the boxes); you might want to add permissions to execute as well, just in case. I can set up another command in the run-once profile to solve this for everyone if it fixes it for you, so let me know.
2. In the List nomedia command, I have it set up to match any files in there which have a character or more followed by .nomedia (this is under Match, listed as "+.nomedia"). If the files you see in that folder don't match this regex, it won't list them. You can safely delete this entirely without any negative side-effects. Nothing gets put in that folder that doesn't match that regex, anyway, for me.
Click to expand...
Click to collapse
Yeah, the permissions were not set to allow it reading. Now it gets to the end before it fails. I've uploaded the run log as well as a screenshot of the error it pops out. It's worth noting that the file it "can't find" both exists and has 777 permissions set.
a10waveracer said:
Yeah, the permissions were not set to allow it reading. Now it gets to the end before it fails. I've uploaded the run log as well as a screenshot of the error it pops out. It's worth noting that the file it "can't find" both exists and has 777 permissions set.
Click to expand...
Click to collapse
Strange. I normally only see the copy file error if the file itself doesn't have permissions (which would be the result of the previous command not working) or if the %Username1 variable doesn't exist, but you noted clearly that it did work, and the variable should still be there from when it found it earlier.
And I think I just duplicated this error. It's so mundane that this is the case, but it's quite a big issue, so I'll have to update the version in a bit. Try adding a Saves folder in your Snapchat folder in your sd card. I was about to doubt this would be the case until I tried a different folder in my task.
Though, I'm confused why your screen still showed that error. Something's still awry I think...

Bridgeman

Good day. Can you please help me with installing this app. It is called Bridgeman. And the installers consist of 5 apks. Namely:
* BridgeMan_1.0.apk
* Celestial_1.0.apk
* Misc_1.0.apk
* Tides_1.0.apk
* Voyage_1.0.apk
I got these installers from my phone that has a successfully installed Bridgeman. I used an app called File Expert to get these apks. Wellabout the app. The app is just a one icon app but it consist of manyparts. The main app is the Bridgeman. When you open it, it consist offour menu which are: Voyage, Celestial, Tides and Misc.
When I installed only Bridgeman.apk I can see the menu, but noresponse when I press any of the four. So that's when I saw the fourapk of the menu. And I installed all of them. Now when I press a menufor example Voyage. I get sent to a new page like how it is supposed to work. But after sending me to a new page I just get kicked back out to the main menu.
Weirdly enough the Misc menu is the only one that is working. But Celestial, Voyage and Tides do not work and just gives me a blackscreen and get kicked back out to the main menu.
I also included a zip file of what I got from sdcard0/Bridgeman folder. If this would help.
My phone that has a working Bridgeman is an LG-E510 and 2.3.4 AndroidVersion. While the one I am trying to install is a Samsung Galaxy S2International and 4.1.2 Android Version.
Can anyone help me on this?Do I need to copy some files from the old one? Am I missing files?
I don't think the problem is in the File Expert because I justtransferred a calculator app by the same process. But I could be wrong on this. Anyways the calculator is just a one app apk so it's muchsimpler, unlike this that have many apks. It seems when I press for example the Voyage the page or line that must be executed when I pressthat cannot execute somehow. If this help.
Here is the link
mediafire.com/?78hxjuxb88zjfsx
Re: bridgeman
I suggest to seek technical support sending an email or calling their office since the developer's website is googleable(I have googled the word "BridgeMan Android" and found their developer's official website is ww.deckmaster.com.ph(Just add another w), I assumed that you can find a way to communicate with the developer

No option to make Default Apps

Hello Forum,
Usually when you tap a link or document for the first time on a new device, you are presented with an list giving you the option to make one of the apps on the device the default app to open the link or document from now on.
In my case I just get a generic Android system error with a "report" button.
I solved the opening a link problem by using the option in Firefox to make it the default app.
However, for documents and anything else that may come my way, will crash instead of getting the familiar menu option mentioned above.
Any ideas, please?
Possibly an option that is turned on or off in system?
This is a stock ROM direct from Xiaomi. MIUI 10.1 Stable.
Thanks in advance.
I am using Solid Explorer file manager, there's such menu like you mentioned.

Categories

Resources