Related
Hi Everyone,
I am trying to code my first android app, which is an app that will copy some files from the app's asset folder to /system/app, adjust permissions and let the user know the process has been finished. I am a systems person, not a programmer, so know all of the details as to what has to get done. I create some scripts in /assets, and have the files I want to copy in /assets as well.
How do I go about programming this? Is this the right method I'm looking at doing?
danifunker said:
Hi Everyone,
I am trying to code my first android app, which is an app that will copy some files from the app's asset folder to /system/app, adjust permissions and let the user know the process has been finished. I am a systems person, not a programmer, so know all of the details as to what has to get done. I create some scripts in /assets, and have the files I want to copy in /assets as well.
How do I go about programming this? Is this the right method I'm looking at doing?
Click to expand...
Click to collapse
Can I have the files? I'll try to do this for you
Sent from my Galaxy Nexus using Tapatalk
Better to help him instead of doing it for him, that way he learns more and gets his hands dirty. =p
Hehe, thanks for the response guys!
Anyways, tycoon177, thanks for signing up to help me!
I have zipped up everything I have related to the project, it is pretty simple, I just want to copy some files from the progrsm into /system/app, I have created an install and an uninstall script (although I haven't tested them just yet, not sure how I would do that right now) and have placed those scripts in the /assets/scripts folder. The goal is to copy the files into the proper locations, in order for the Kobo Vox to get access to the Android market. I have devised some instructions and posted them in the following forum page ( http://www.mobileread.com/forums/showthread.php?t=160948&page=1 ), but a lot of users seem to be messing up their system (they aren't a technical bunch) so I figured I should try and learn java and build an app for all of this...
Unfortunately this is a little beyond my abilities, but my intro to Java course starts tonight hehe.
Anyways, the project name is called OogleVox, it won't need to be going onto the Android Market, and will probabably just be an apk download from one site or another.
The link to the source code is here:
http://www.multiupload.com/ASI47S2BM4
Thanks again for your help!
danifunker said:
Hehe, thanks for the response guys!
Anyways, tycoon177, thanks for signing up to help me!
I have zipped up everything I have related to the project, it is pretty simple, I just want to copy some files from the progrsm into /system/app, I have created an install and an uninstall script (although I haven't tested them just yet, not sure how I would do that right now) and have placed those scripts in the /assets/scripts folder. The goal is to copy the files into the proper locations, in order for the Kobo Vox to get access to the Android market. I have devised some instructions and posted them in the following forum page ( http://www.mobileread.com/forums/showthread.php?t=160948&page=1 ), but a lot of users seem to be messing up their system (they aren't a technical bunch) so I figured I should try and learn java and build an app for all of this...
Unfortunately this is a little beyond my abilities, but my intro to Java course starts tonight hehe.
Anyways, the project name is called OogleVox, it won't need to be going onto the Android Market, and will probabably just be an apk download from one site or another.
The link to the source code is here:
http://www.multiupload.com/ASI47S2BM4
Thanks again for your help!
Click to expand...
Click to collapse
I don't know what Kobo Vox is, but for android, in general, the /system partition is read only, and on most devices the MMC or eMMC is locked so that it can't even be remounted read/write. Also, any user app won't be able to gain the required permissions to write to /system/app even if the partition was unlocked and mounted read/write. If you are rooted and security allows you write access to the MMC/eMMC, then you'd need su to gain the required permissions from the OS.
Gene Poole said:
I don't know what Kobo Vox is, but for android, in general, the /system partition is read only, and on most devices the MMC or eMMC is locked so that it can't even be remounted read/write. Also, any user app won't be able to gain the required permissions to write to /system/app even if the partition was unlocked and mounted read/write. If you are rooted and security allows you write access to the MMC/eMMC, then you'd need su to gain the required permissions from the OS.
Click to expand...
Click to collapse
Thanks Gene Poole, I know this app will require root permissions, which will require a run as su. That's going to be a requirement for the app
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Sorry, I did not figure this out..
Sent from my Galaxy Nexus using Tapatalk
tycoon177 said:
Sorry, I did not figure this out..
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Thanks for trying! I'm taking a Java course at school now, maybe I'll be able to figure this one out in due time.
If you want to write app before learning java you could use basic4android. You could use its phone library to execute the commands direct and as you can also issue adb commands etc with it you could also have your app more interactive whereby it could check for things you know cause problems and react accordingly.
The site is basic4ppc.com I think, it would allow you to quickly and easily code an app and as with eclipse and other ide's it produces native standalone apk files signed and ready for use.
Dave
Sent from my LG P920 using Tapatalk
Hi guys, just found an easy way to to get the hidden setting for starting the sideload process from browser.
put any app (".apk" file) on the sdcard anyway easy for you, give it an easy short name before actaully moving it to sdcard, so you remember and not make mistake typing it later.
In the Nook Tablet open the browser type: file://localhost/sdcard/appxxxx.apk
Substitute appxxxx.apk with your apk file actual name.
This will bring hidden settings, then choose unkown source and off you go.
This is first step to to root..
Thanks for sharing.
Is "appxxxx.apk" the name of the app we want to side-load or the actual keystrokes we type in? Does this method work after 1.4.1 update?
Its more oriented to 1.4.1 so yes will work because unknown sources its a must in order to sideload from links and applications.
Veronica
Sent from XDA using one of my Android Toys
tmlee51 said:
Thanks for sharing.
Is "appxxxx.apk" the name of the app we want to side-load or the actual keystrokes we type in? Does this method work after 1.4.1 update?
Click to expand...
Click to collapse
noob here... I also need guidance about the appXXXX.apk. What do I fill in for the XXXX? Can I get an example?
Thanks in advance!!
How did you put the app on the SD card - via your PC? And then do I replace the four Xs with the app name, as in file://localhost/appangrybirds.apk? Can we do this with 1.4.1 unrooted?
jekkyll said:
How did you put the app on the SD card - via your PC? And then do I replace the four Xs with the app name, as in file://localhost/appangrybirds.apk? Can we do this with 1.4.1 unrooted?
Click to expand...
Click to collapse
I'm going to go out on a limb here and assume...
"AppXXXX" ... aka "GenericAppName" ... aka "FillInTheBlank" .
I think what he found is that by going through the web browser and into your directory structure, it somehow bypasses the preventative check that would come up and say "BN Store .apks only!".
Could be wrong... i don't have 1.4.1.
edit: from the OP's description, it seems possible, however highly unlikely, that the Settings menu in which you allow unknown sources is accessed by launching an app called "AppXXXX.apk". Again... highly unlikely, but I could see some confusion from the way he typed it.
OP is perfectly clear and this works with rooted 1.4.0. appxxxx.apk means maps.apk.
Thanks MikeCH
Will this work with non rooted 1.41 nook tablet?
MikeCh said:
Hi guys, just found an easy way to sideload from browser.
put you app on the sdcard. the in thebrowser type. file://localhost/appxxxx.apk
This will bring hidden settings, then choose unkown source and off you go.
Click to expand...
Click to collapse
Is it possible to get a browser to download directly to the SD card instead of manually having to do it?
dude... just type this in the browser....
nook1.adamoutler.com
nook2.adamoutler.com
nook3.adamoutler.com
Those three addresses will give full functionality to an unrooted tablet with just sideloading. They load: Hidden Settings, homecatcher, and launcherpro.
Have fun.
No joy
Tried this on a stock NT 1.4.1.
file://localhost/appname.apk
Results in "file not found"
file://localhost/sdcard/appname.apk
Does pop the installer selection screen, but then the install is blocked by 1.4.1 just like other side-load methods. Methinks the author doesn't have a stock 1.4.1. Perhaps he has unknown sources enabled from a previous root?
tmlee51 said:
Thanks for sharing.
Is "appxxxx.apk" the name of the app we want to side-load or the actual keystrokes we type in? Does this method work after 1.4.1 update?
Click to expand...
Click to collapse
Apxxx.apk means any app xxx is for you to substitute for your .Apk actual name.
Sent from my BNTV250 using xda premium
Absolutely, just google an apk file and download it. Then go to your browser menu to the downloads and open the file. This should bring the hidden setting too.
Sent from my BNTV250 using xda premium
MikeCh said:
Absolutely, just google an apk file and download it. Then go to your browser menu to the downloads and open the file. This should bring the hidden setting too.
Sent from my BNTV250 using xda premium
Click to expand...
Click to collapse
I didn't see your answer to "does this work after the 1.41 update?" Can you tell us if:
1. The NT must be rooted
2. The update number , i.e., 1.40 or 1.41
Thanks
docfreed said:
I didn't see your answer to "does this work after the 1.41 update?" Can you tell us if:
1. The NT must be rooted
2. The update number , i.e., 1.40 or 1.41
Thanks
Click to expand...
Click to collapse
I'm going under the assumption that the op has a rooted tablet, since he did not state otherwise.
laserbiz said:
Is it possible to get a browser to download directly to the SD card instead of manually having to do it?
Click to expand...
Click to collapse
No, it does not give the options.
trgilman said:
I'm going under the assumption that the op has a rooted tablet, since he did not state otherwise.
Click to expand...
Click to collapse
This is about getting you rooted, and eventually side-load what ever.
Have you managed to install new certificates on Bluestacks ? Seems to me like Security/Credential Storage menu is completely missing as well as other features. I understand that this is just an emulator but we need many other features for development (see attached settings options).
Anyone?
creatorul said:
Have you managed to install new certificates on Bluestacks ? Seems to me like Security/Credential Storage menu is completely missing as well as other features. I understand that this is just an emulator but we need many other features for development (see attached settings options).
Click to expand...
Click to collapse
Anyone?
creatorul said:
Have you managed to install new certificates on Bluestacks ? Seems to me like Security/Credential Storage menu is completely missing as well as other features. I understand that this is just an emulator but we need many other features for development (see attached settings options).
Click to expand...
Click to collapse
Still no info on this question??
bluestack is targeted for noobs who want to run only apps. its not for testing.
Update Your BlueStacks Or Use AVD
Hi ,
Yesterday, I installed ubuntu touch in my nexus 4 and decided to use it as my daily rom.
So, i tried to modify some settings. Everything is working well, however i have two problems.
The first one : I failed to synchronized contacts with syncevolutions. It's working but it synchronise only one or few contacs in my .csv file. As a solution i used google contacts sync. But if somebody have (or had) the same problem it can be interesting to share the solution with evryvody.
The second one : I tried to change the browser app settings, but it didn't work. I used these two websites to help me :
"bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/README#L71" and
"lists.launchpad.net/ubuntu-phone/msg10301.html" I removed the first part, because i'm not able to post outside links.
According to the first website, we can change the homepage and the searche engine, you can use the second website to understand how to do it, i followed the instructions, but it didn't work for me. So, if somebody want to try or already have the solution, it would be amazing.
Thanks.
Edit : Apparently It is now possible to change the search engine directly in the browser (18 June update)
Although it's about calendar sync, this might be helpful: http://forum.xda-developers.com/ubuntu-touch/help/calendar-app-doesnt-sync-t3054933
What's the content of your browser settings files? I have that working fine for me here.
Code:
[email protected]:~$ cat ~/.config/webbrowser-app/settings.conf
homepage=https://duckduckgo.com
searchengine=duck
allowOpenInBackgroundTab=true
[email protected]:~$ cat ~/.local/share/webbrowser-app/searchengines/duck.xml
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Duck Search</ShortName>
<Description>Search Duck Duck Go</Description>
<Url type="text/html"
template="https://duckduckgo.com/?q={searchTerms}"/>
<AdultContent>false</AdultContent>
<Language>en-au</Language>
<OutputEncoding>UTF-8</OutputEncoding>
<InputEncoding>UTF-8</InputEncoding>
</OpenSearchDescription>
thank you for your answer,
so i only had some problems in my duck.xml files, and it is working now.:good:
Thanks for everything, it might help other people too.
PS: i don't know have to change the title to [SOLVED]
Great to hear that. I'm glad that it's working now.
If you're using the web interface, you can click on the edit button below the first post, then on "Go Advanced" and then you can edit the title.
Sent from my awesome Ubuntu Touch device using the Forum Browser app
directory not found
Hello:
I can't find the directory: /home/phablet/.config/webbrowser-app /
on my bq aquaris 4.5 device...
When I try:
cat~/.config/webbrowser-app/settings.conf
the answer is:
No such file or directory
Thanks in advance.
natxuno said:
Hello:
I can't find the directory: /home/phablet/.config/webbrowser-app /
on my bq aquaris 4.5 device...
When I try:
cat~/.config/webbrowser-app/settings.conf
the answer is:
No such file or directory
Thanks in advance.
Click to expand...
Click to collapse
The file and directory isn't created by default. You have to create it manually.
Btw, a settings UI is coming soon.
Thx
nikwen said:
The file and directory isn't created by default. You have to create it manually.
Ok, I thought I only had to modify an existent file
I'll try...
Thanks a lot for your answer, nikwen.
Click to expand...
Click to collapse
natxuno said:
The file and directory isn't created by default. You have to create it manually.
Ok, I thought I only had to modify an existent file
I'll try...
Thanks a lot for your answer, nikwen.
Click to expand...
Click to collapse
The file is automatically generated on devel-proposed build 166 now. However, it's called webbrowser-app.conf there.
If you're on the stable channel, expect that your browser settings will break in the future. However, you'll simply have to apply your changes to the new file then.
Hello,
I decided to install ubuntu touch again after all the new things they made.
However, changing the browser is no more working for.
I just wanted to know if there was another way to do it or if it was only my fault ?
Moreover, is that possible to uninstall preinstalled scopes like 7digital, amazon, ebay ... ?
@Remy.L There is just one browser for Ubuntu (except one third party browser). You can switch tabs by swiping up from the bottom edge though.
No, uninstalling preinstalled scopes isn't possible using the GUI as long as they aren't in the store.
Sent from my awesome Ubuntu Touch device using the Forum Browser app
---------- Post added at 12:07 AM ---------- Previous post was at 12:04 AM ----------
Now I get what you mean with "changing the browser". There should be a settings option in the browser itself now (install the update from this week if you haven't already). Give it a try.
If there is still something you want to change manually, check out the contents of the browser's data directory. I think they renamed the settings file.
Sent from my awesome Ubuntu Touch device using the Forum Browser app
Sorry, i did not mean browser but search engine (replace google by duckduckgo).
I did not managed to have it working in the new version.
Anyway, do not bother you, i'm not using ubuntu touch anymore because i'm do not like that path they are taking with this OS (you can not uninstall what you do not want).
As i prefer to use open source software, the best thing to do now is to use an AOSP rom (or maybe firefox OS)
Thanks a lot for all your answers and have a nice day
PS: Sorry for my English, i'm not totally fluent
Edit : Apparently with the new version it is possible to change and chose the search engine you want.:good:
However, I guess that it is still impossible to remove unwanted stock scopes (however, as it is possible to remove unwanted stock apps, it may be possible to do it soon)
Remy.L said:
Sorry, i did not mean browser but search engine (replace google by duckduckgo).
I did not managed to have it working in the new version.
Anyway, do not bother you, i'm not using ubuntu touch anymore because i'm do not like that path they are taking with this OS (you can not uninstall what you do not want).
As i prefer to use open source software, the best thing to do now is to use an AOSP rom (or maybe firefox OS)
Thanks a lot for all your answers and have a nice day
PS: Sorry for my English, i'm not totally fluent
Edit : Apparently with the new version it is possible to change and chose the search engine you want.:good:
However, I guess that it is still impossible to remove unwanted stock scopes (however, as it is possible to remove unwanted stock apps, it may be possible to do it soon)
Click to expand...
Click to collapse
You could try removing them with the terminal-app like this:
Code:
sudo click unregister --user=phablet com.ubuntu.badscope
That should actually work. Pretty much everything can be uninstalled, even though not easily.
nikwen said:
You could try removing them with the terminal-app like this:
Code:
sudo click unregister --user=phablet com.ubuntu.badscope
That should actually work. Pretty much everything can be uninstalled, even though not easily.
Click to expand...
Click to collapse
Ok tried to use this command, however if i want to uninstall amazon scope, it says to me that com.ubuntu.amazon does not exist.
Moreover it seems that we still cannot change the search engine directly in the browser ( I tried the devel/ubuntu version via Multirom)
Remy
Remy.L said:
Ok tried to use this command, however if i want to uninstall amazon scope, it says to me that com.ubuntu.amazon does not exist.
Moreover it seems that we still cannot change the search engine directly in the browser ( I tried the devel/ubuntu version via Multirom)
Remy
Click to expand...
Click to collapse
You need to find out the right package name of the amazon scope (given that it is installed as a click package, of course; I was unable to find it using "click list").
The reason why you don't see the option to change the search engine is that the devel builds are really, really outdated. I think they are half a year old or something like that. Either install the stable channel or devel-proposed.
Ok, thank you for all your answers, it may help a lot of people
Unfortunatly I broker my Nexus 4 screen last week (I'm planning to repair it but not yet [in few month]) so i can not try this rom right now.
Once more, thanks again for your help and for your answers,
Have a nice day
Oh, I'm sorry to hear that. Did you know that the Meizu MX4 Ubuntu Edition has just been released?
Sent from my awesome Ubuntu Touch device using the Forum Browser app
Hi nikwen,
I'm back on this forum because i repaired my nexus 4. Everything is now workinh, and the rom seems very nice.
However it is still impossible to uninstall unwanted scopes (like amazon) even with the terminal. (impossible to know the name of the scope).
I also tried this sudo dpkg --get-selections >liste but it does not list the scopes name.
Thank you for all your answers
Remy.L said:
Hi nikwen,
I'm back on this forum because i repaired my nexus 4. Everything is now workinh, and the rom seems very nice.
However it is still impossible to uninstall unwanted scopes (like amazon) even with the terminal. (impossible to know the name of the scope).
I also tried this sudo dpkg --get-selections >liste but it does not list the scopes name.
Thank you for all your answers
Click to expand...
Click to collapse
Hi,
Yes, there's been a discussion about this on the ubuntu-phone mailing list recently. The reason why they can indeed not be uninstalled is that they are remote scopes with the code lying on a Canonical server and not on the device itself. I didn't follow the whole discussion, so if you are interested, check out the mailing list archive and you should be able to find the conversation within the first 5 pages.
Hi Nikwen,
So i checked your link and found what i needed
So yes, it is impossible to uninstall these scopes like you said, the only way is to keep it without using it.
But the thing i was thinking about is : If you do not use these scopes does it still get informations from you (in background) ? (because and do not want it to use my data continuously)
Sorry for all these questions
Have a nice day,
Remy
@Remy.L No, they won't be giving any information away. Scopes only run when they are in the foreground and even if they are, they are confined by a software called "apparmor", which means that they cannot access any data besides that which you enter into the search box. They don't have access to any of your private stuff.
Sent from my awesome Ubuntu Touch device using the Forum Browser app
Hi All !
Some of us do know the application a long time but others don't. Therefore this small GUIDE.
Removing system apps without root/unlocked can be done in a few ways like :
manually : with an ADB list and described HERE huge thnx @SirTAVARES
automatic : if you don't like to do it manually, you can use the ADB/Fastboot Tool which will do the job for you.
The XiaomiADBFastbootTools isn't explained in depth afaik and can do a lot more but I'll focus on the removal of those system apps.
HOW TO :
NOTE : do try some apps (not all at once) and see if the phone boots again - if you would have a problem you can always restore the onces you removed or perform a factory reset to restore all apps (as they are not really gone )
0. enable developer options to enable USB debugging ( go to settings/about phone/tap MIUI version 7 times to enable dev. options -> then go to settings/additional settings/ dev. options/enable USB debugging )
1. download the latest version HERE
2. run the .jar application
3. you'll get this screen
As you can see, the tool will start by default in ADB. You'll see a bunch of apps you could de-install under the Uninstaller tab.
If you're sure which apps you want to de-install just check the ones you want and tab UNINSTALL
google where is the nearest gas station
TIP : try one first like Google Chrome f.e. and see if it works
EXAMPLE : Removal of Google Chrome :
Once removed you can check if the app is gone of your home screen apps or under settings/installed apps/tap the 3-dot sign to show all apps/ search for ''chrome'' and the app should be removed.
4. if you want the removed app(s) back, just tap the Reinstaller and check the ones you want to re-install. Easy right !
Once re-installed your Chrome app will appear again on your home screen/app list
5. TIP : before removing, check the app name under settings/installed apps/show all apps/tap on an app and tap the Ⓘ to get the app info
Other functions :
1. As you probably noticed besides running in ADB, this tool can easily boot into Fastboot, Recovery, System or EDL.
When booting into Fastboot you can see some other functions you can apply. Be aware of the risks applying things under fastboot !
2. Very useful option is the possibility to push, pull ,... apps/folders with FILE EXPLORER. Just tap OPEN and you can easily perform some actions afterwards.
(ignore the KB sizes - once pulled you'll get the right folder/apks )
E N J O Y
Nice tuto....will debloat for sure...
SirTAVARES said:
use this list: https://drive.google.com/open?id=1TbofebVTy5U1FDMQEAfv6O1CsxTblpO7
includes some adaway hosts to block Xiaomi Stuff
Click to expand...
Click to collapse
Dear SirTAVARES, Can you tell me, is adaway worked with Global stable NON Root ? How to push it inside system files ??
N.ice tool, but I have a doubt... How I remove the Security Center?
PS. I have a Mi 9, with locked bootloader and now I'm beta 9.6.27
Thank you very much for sharing, i will test for changing system font
Sorry for that stupid question, but I don't get the tool running
Prinz069 said:
Sorry for that stupid question, but I don't get the tool running
Click to expand...
Click to collapse
You must have the JRE environment installed and pointing to the correct path.
omgomg said:
You must have the JRE environment installed and pointing to the correct path.
Click to expand...
Click to collapse
What is "JRE Environment" please? Why same not included in the OP instructions?
All help appreciated!
belerephont said:
What is "JRE Environment" please? Why same not included in the OP instructions?
All help appreciated!
Click to expand...
Click to collapse
This is what you have to install to be able to run .jar files. OP just assumed everyone has java installed (I would too to be honest) and didn't mention it.
I have installed the updated java and am trying to open the windows 10 boot tool and it refuses to open. Yes I did upzip it but the program will not open. Any help please?
gardenwarlord said:
I have installed the updated java and am trying to open the windows 10 boot tool and it refuses to open. Yes I did upzip it but the program will not open. Any help please?
Click to expand...
Click to collapse
What version you installed? I recommend that you install 6.5.1:
https://github.com/Saki-EU/XiaomiADBFastbootTools/releases/tag/6.5.1
That is what I downloaded...Win version. I unzipped and then tried to open but it does not work.
gardenwarlord said:
That is what I downloaded...Win version. I unzipped and then tried to open but it does not work.
Click to expand...
Click to collapse
You don't need unzipped. Download the version .JAR an run it. I made this way
Evidently I have absolutely no idea what I am doing. Nothing opens
gardenwarlord said:
Evidently I have absolutely no idea what I am doing. Nothing opens
Click to expand...
Click to collapse
Lets go from begining:
- First thing that I did, I uninstalled all versions of Java;
- Second, (I made this way, you can jump this step) - reboot my laptop;
- Third, I installed the latest version (in this moment is version 8, update 221) - I installed both 32 bits (x86) and 64 bits (x64);
- Fourth, run the tool (just download .JAR version) and clicked with right botton for open with Java.
When I right click nothing asks to open it in java
If you have java installed, then just a double click on the XiaomiADBFastbootTools-6.5.1.jar is enough.
Opens in 7z
gardenwarlord said:
Opens in 7z
Click to expand...
Click to collapse
Probably you made 7zip as default app. Right botton, "open with...", choose Java
Hello! Tried different versions ... NOT FOUND Redmi 4X MIUI 10 Global 9.6.27 Android 7.1.2 N2G47H