colors.xml problem - Android Software Development

Hey everyone, I just have a quick question:
I'm following the tutorial in the Hell, Android book (2nd edition) and I've followed every single step properly, but on page 39 it asks me to create a colors.xml file, which I put in res/values/, whcih is where it says it should go. For some reason it says that there are a lot of errors in it, but I did everything just as the book said. here's the code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="background">#3500ffff</color>
</resources>
it says there's a problem with the very first line, but I don't see any problems with it. If anybody could help me out, that'd be great. Thank you
EDIT: it also says it ends prematurely, so that confuses me, too. Should I just delete the file and add the background/color information in the main "strings" thing? Not the "strings.xml" tab, but the strings tab next to it.
I also found another problem. In my res/layout-land/main.xml file, it says there's no attribute for "orientation" found in package "android", but in my res/layout/main.xml file, I have androidrientation in there a couple of tiems and it's perfectly fine. Any ideas? I'm using Eclipse.
EDIT #2:
I've managed to get rid of all of the errors, so it shows the project is entirely error free, but whenever I try to run it in the Emulator, it gives me a force close, and at that stage in the book, it says I should be able to run the app fine. Any ideas?

PrestoMovie said:
it says there's a problem with the very first line, but I don't see any problems with it. If anybody could help me out, that'd be great. Thank you
Click to expand...
Click to collapse
I think there may be some "invisible" chars, especially if you copied content from WWW, pdf or such. Try to delete this file, create it again and type content by hand. Or create it using notepad and paste content to it.
PrestoMovie said:
I also found another problem. In my res/layout-land/main.xml file, it says there's no attribute for "orientation" found in package "android", but in my res/layout/main.xml file, I have androidrientation in there a couple of tiems and it's perfectly fine. Any ideas? I'm using Eclipse.
Click to expand...
Click to collapse
I guess you have omitted xmlns:android declaration.

PrestoMovie said:
I've managed to get rid of all of the errors, so it shows the project is entirely error free, but whenever I try to run it in the Emulator, it gives me a force close, and at that stage in the book, it says I should be able to run the app fine. Any ideas?
Click to expand...
Click to collapse
Run logcat and look, what was the error.

Brut.all said:
Run logcat and look, what was the error.
Click to expand...
Click to collapse
Logcat?
and I looked at the res/layout-land/main.xml and it actually still says there's an error with the first line, but after I retyped it, it says there are no errors with the project, but it still has the little red mark in the right that says there's an error. I'm really confused now.

Brut.all said:
I think there may be some "invisible" chars, especially if you copied content from WWW, pdf or such. Try to delete this file, create it again and type content by hand. Or create it using notepad and paste content to it.
I guess you have omitted xmlns:android declaration.
Click to expand...
Click to collapse
you mean the xmlns at the very top? the "<?xml version="1.0" encoding="utf-8"?>"? I have that, if that's what you mean.
P.S.
I really appreciate your help with all of this!

PrestoMovie said:
Logcat?
Click to expand...
Click to collapse
http://wiki.cyanogenmod.com/index.php/Logcat
Or just type "logcat" into Google.
PrestoMovie said:
you mean the xmlns at the very top? the "<?xml version="1.0" encoding="utf-8"?>"? I have that, if that's what you mean.
Click to expand...
Click to collapse
No, no. Look into res/layout/main.xml file, there should be 'xmlns:android="http://schemas.android.com/apk/res/android"' somewhere (probably in first tag). This is feature of XML, not Android: if you want to use "xxx:yyy" tag or attribute name in XML file, then you should first declare this 'xxx'.

Brut.all said:
http://wiki.cyanogenmod.com/index.php/Logcat
Or just type "logcat" into Google.
No, no. Look into res/layout/main.xml file, there should be 'xmlns:android="http://schemas.android.com/apk/res/android"' somewhere (probably in first tag). This is feature of XML, not Android: if you want to use "xxx:yyy" tag or attribute name in XML file, then you should first declare this 'xxx'.
Click to expand...
Click to collapse
oh, ok. I have that there in the main.xml file. its exactly as you put it there, so how would I declare it?

PrestoMovie said:
oh, ok. I have that there in the main.xml file. its exactly as you put it there, so how would I declare it?
Click to expand...
Click to collapse
Do you have it in errorous file? (res/layout-land/main.xml)

Brut.all said:
Do you have it in errorous file? (res/layout-land/main.xml)
Click to expand...
Click to collapse
yes. I've also had a ton of other errors pop up, but I'm trying to see if I can resolve those on my own, because there's quite a few.

Related

(Dev) Here goes nothing

This is my attempt to get some more creativity, innovation, and roms here on xda. alot of people here have incredible skills but they cant be harnessed because they dont know what to do. if you are an artist we need you make icon packs. you have made 30 roms but you cant sign them. blah blah.
so no one abuse this but i attached a toolkit to do anything and everything with android on windows. im pushing this to be used for creating themes. hopefully it can help. but i thought it would be nice if everyone had this and the opensource community could start to grow even more.
i like this idea because it can help fellow Devs and even the watchers. everyone can get involved and give something to the community.
And now i present the Avabox
Any questions post them up.
OUTLINE------------------------------------------------------------
unyaffs-you have the ability to take system.img and data.img from you nandroids and get specific items from them.
Autosign- sign anything and everything. name your zip update.zip and follow the readme. roms themes, apps, anything.
Baksmali- put in apk in the folder. read readme. edit any icons wallpapers, anything. close it up and enjoy.
Perlscripts- this opens the boot.img for you.
Read the readme on all of these programs.
So this is going to be a quick tutorial Im gonna put up a video soon on how i got this to work on my computer
First things first download Avabox and unzip it in your C folder (same place you put androidsdk).
then get the java runtime from here not to be confused with the java development kit but since your there might as well grab it as well.
Install the java runtime then reboot
then open up avabox and click on autosign and place the zip you want signed in that folder and name it update.zip (dont add the .zip part it should already be a zip file).
then open up command prompt and type:cd\
cd Avabox/auto-sign
java -jar signapk.jar testkey.x509.pem testkey.pk8 update.zip update_signed.zip
After that last enter give it a second and look in your avabox/update file and you'll notice a new file called update_signed.zip
I know that this is almost word for word from the read me but a few differences can go along way expect a video shortly..... well around wednesday or whenever i can get someone to help with this
porting
im interested in learning how to port and combine different aspects of themes and other mods. will this do it or is there other software i need. I can do the work if shown the way. I read all the post everday with peopl;e asking for this and that and i do it myself. If shown I would help with requests as much as possible. HELP PLEASE
Thank you Avalaunch!!
so with this software, can i take a signed theme mod (like launcher or taskbar) and it will grab the images for me to edit, and then repack and sign to a flashable zip?
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
regaw_leinad said:
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
Click to expand...
Click to collapse
hm ill have to check into it. it should be making a new classes.dex too. i never really used it on edits.
Avalaunchmods said:
hm ill have to check into it. it should be making a new classes.dex too. i never really used it on edits.
Click to expand...
Click to collapse
It changes the classes.dex and resigns it it looks like, but doesn't copy the mods of the pngs to the apk.
regaw_leinad said:
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
Click to expand...
Click to collapse
What do you mean? Baksmali and Smali are for decompiling classes.dex and opening it up for the .smali files that are inside. Smali takes that output and recompiles it back into classes.dex for your .apk or .jar file.
You need to update the baksmali and smali .jar's. You have older versions and that will cause issues with certain .jar and .apk's when decompiling. baksmali-1.2.1.jar and smali-1.2.1.jar are the latest versions and will not require the BOOTCLASS PATH to be included...
Does the autosign work windows 7 (64 bit)? I've heard issues with other autosigns on 7. If it doesn't, no biggie I got xp in a VM... lol
obannvi said:
What do you mean? Baksmali and Smali are for decompiling classes.dex and opening it up for the .smali files that are inside. Smali takes that output and recompiles it back into classes.dex for your .apk or .jar file.
Click to expand...
Click to collapse
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
Baksmali- put in apk in the folder. read readme. edit any icons wallpapers, anything. close it up and enjoy.
Click to expand...
Click to collapse
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
regaw_leinad said:
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
Click to expand...
Click to collapse
What im trying to figure out is why would you even need to use baksmali/smali to edit .png's inside an .apk. All that needs to be done is opening of the .apk with 7zip, modify whats in /res/drawable etc then close...No need to sign .apks or anything. If anything, the script needs to contain something to extract /res/ * from the .apk to edit.
obannvi said:
What im trying to figure out is why would you even need to use baksmali/smali to edit .png's inside an .apk. All that needs to be done is opening of the .apk with 7zip, modify whats in /res/drawable etc then close...No need to sign .apks or anything. If anything, the script needs to contain something to extract /res/ * from the .apk to edit.
Click to expand...
Click to collapse
I'm actually doing more than that. I am changing the code to look for instead of <name of file>.jpg to <name of file>.png
While also putting the new png in the apk. Think that's possible? I changed all of the locations where that file comes up in the smali code.
regaw_leinad said:
I'm actually doing more than that. I am changing the code to look for instead of <name of file>.jpg to <name of file>.png
While also putting the new png in the apk. Think that's possible? I changed all of the locations where that file comes up in the smali code.
Click to expand...
Click to collapse
I gotcha. So you're looking in blah.smali for any reference to .jpgs and changing that reference to look for .png instead??
obannvi said:
I gotcha. So you're looking in blah.smali for any reference to .jpgs and changing that reference to look for .png instead??
Click to expand...
Click to collapse
yeah, not working too well atm, but working on it.
I think this is what I've been looking for. Downloading now.
Just noticed that ActivePerl was for 64bit. I am downloading 32bit as I have only have 32bit Vista Pro installed and not the 64bit.
regaw_leinad said:
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
Click to expand...
Click to collapse
i guess i need to explain more. i use baksmali to make apks easier to search through. for me at least. instead of changing the type and everything i just put it in the folder and baksmali then do changes and create a new archive. sign and change .apk. if you smali it back to apk then it wont save edits. sorry about that anyways has this helped people so far? i love showing that windows can be a dev platform
&RoidRage said:
I think this is what I've been looking for. Downloading now.
Just noticed that ActivePerl was for 64bit. I am downloading 32bit as I have only have 32bit Vista Pro installed and not the 64bit.
Click to expand...
Click to collapse
yes just google active perl i use win 7 64bit and when this toolbox was made, it was only made for certain people who had 64bit.
Sorry for the n00b question, but I have searched and haven't had much luck. Hopefully, this is the best place for this question. I just started editing .png's and updating some apk's files to customize some things on my phone for looks. However, I am really interested in modifying the taskbar and notification screen, but I have no clue where to start. Is there a guide somewhere I could follow to learn how to change them? What programs, if any additional ones will I need etc..?
Thanks for your help!
Figured it out on my own. framework.apk and resources.apk

Anyone proficient with PHP?

I'm trying to accomplish something in php format and I'm stuck.
I don't want to go into too much detail because I'm trying to surprise a friend on here so I will only go into specifics via pm but here's what I got so far:
I dl'd the eclipse PHP environment and the Zend debugger, got it all set up just fine (I think, lol)
I'm trying to edit an existing .php and with Treve's help was able to determine just exactly what I needed to edit. But I can't figure out how to "play" the code so I can see the changes, or even the original.
When I go to play the .php thru the web portal I only get code, it sees the file and displays it but doesn't convert it to the format I'm looking for, it just shows a large part of the page in plain text.
Any help would be greatly appreciated.
I will owe you one, or two maybe (and I'll actually pay up on it!!).
Please PM me if you need/want specifics. If there is something I am obviously missing then please help me out.
Thanks!
neb
wish i could help
regaw_leinad said:
wish i could help
Click to expand...
Click to collapse
Move along regaw, nothing to see here...
Anyone else? Anyone... anyone? Bueller?
i'm taking a php class and i know < ? p h p
i think thats right??? lol...
Not real proficient in it, but I figured if I can learn PHP in three weeks to allow me to build a web report group builder for the company I work for, I might be able to help.
First, which web server are you using? Apache, IIS or something else? The answer to that question depends on what happens next.
nebenezer said:
I'm trying to accomplish something in php format and I'm stuck.
I don't want to go into too much detail because I'm trying to surprise a friend on here so I will only go into specifics via pm but here's what I got so far:
I dl'd the eclipse PHP environment and the Zend debugger, got it all set up just fine (I think, lol)
I'm trying to edit an existing .php and with Treve's help was able to determine just exactly what I needed to edit. But I can't figure out how to "play" the code so I can see the changes, or even the original.
When I go to play the .php thru the web portal I only get code, it sees the file and displays it but doesn't convert it to the format I'm looking for, it just shows a large part of the page in plain text.
Any help would be greatly appreciated.
I will owe you one, or two maybe (and I'll actually pay up on it!!).
Please PM me if you need/want specifics. If there is something I am obviously missing then please help me out.
Thanks!
neb
Click to expand...
Click to collapse
tkirton said:
Not real proficient in it, but I figured if I can learn PHP in three weeks to allow me to build a web report group builder for the company I work for, I might be able to help.
First, which web server are you using? Apache, IIS or something else? The answer to that question depends on what happens next.
Click to expand...
Click to collapse
Apache2
And I just realized I apparently need GIFEncoder, reading up on it...
uhmm ill take a stab at it, i can probably guess what you're trying to set up by why you are needing but you want to be secretive. if you are using a decent webserver gifencoder should be installed. if you are running a script on a server you set up on your local pc then maybe you havent installed php correctly or it may not be running that why its coming up as txt in your browser.
edit: i see you installed zend, so youre running a server on your pc. im willing to bet you havent started the php service.
i have some webspace i havent used for years if you want some space let me know, u can run the script there
Bonified PHP Guru here... send me a PM and I will see what I can do to help.
I too am a php programer. Your issue is that to don't have the php integrated into your web server correctly best way to solve that would be to find some one that can host the app for you. I currently have my own servers at several co-location sites all running php and can let u use for a while
Download and install XAMPP web server, it's easy, free and works great. Then you can veiw your changes.
Yes install xampp and you will get a server running in no time ... just copy your php to inside the apache folder.
Thanks guys!
Only PHP thread on XDA??
I was searching to see if anyone has managed to compile PHP cli for rooted Android devices, and the only result I found is this thread ...
So I installed xampp, very neat program, but I can't figure out how to use it right.
I'm not sure what I'm doing wrong...
localhost takes me to the xampp screen and myadmin screen works but when I try opening the php in the browser I get "object not found", and the icon on the browser tab switches from the xampp icon to the Zend icon even though I've uninstalled Zend
xampp says Apache and MySQL are running.
Also I went with eclipse-php. I've set up a galileo w/ adt successfully but have not done something right in the php install, I can't create working php projects or files.
I edited and saved as php in notepad++, if anyone wants to check it out and try to get it to execute please let me know
Any help would be appreciated
Thanks
nebenezer said:
localhost takes me to the xampp screen and myadmin screen works but when I try opening the php in the browser I get "object not found", and the icon on the browser tab switches from the xampp icon to the Zend icon even though I've uninstalled Zend
Click to expand...
Click to collapse
It sounds like you need place the php file into the working root directory for XAMPP. You may even need to rename the php file as index.php and place that in the root.
I think you are just trying to open the php file from your file explorer. The php file needs to be in the web root directory and you access it like you would a webpage. ( http://127.0.0.1/YOURFILE.php ) <--- but like I said it needs to be in the webroot directory.
centran said:
It sounds like you need place the php file into the working root directory for XAMPP. You may even need to rename the php file as index.php and place that in the root.
I think you are just trying to open the php file from your file explorer. The php file needs to be in the web root directory and you access it like you would a webpage. ( http://127.0.0.1/YOURFILE.php ) <--- but like I said it needs to be in the webroot directory.
Click to expand...
Click to collapse
Thank you,
I tried your suggestions to no avail. I put the file in (separately, not multiple copies) c:\, c:\xampp and c:\xampp\php and always get the error.
I tried renaming the file index.php, same error
I need to put this on the shelf for a bit and do something productive...
Thanks for your help guys!
nebenezer said:
Thank you,
I tried your suggestions to no avail. I put the file in (separately, not multiple copies) c:\, c:\xampp and c:\xampp\php and always get the error.
I tried renaming the file index.php, same error
I need to put this on the shelf for a bit and do something productive...
Thanks for your help guys!
Click to expand...
Click to collapse
The correct directory for xampp is in htdocs.
damageless said:
The correct directory for xampp is in htdocs.
Click to expand...
Click to collapse
Tried that one also.. BUT I didn't try it after renaming to index.php
One more shot!
*edit, still just getting raw code, which I suppose is better than an error code
thanks damage
pm me your php script. probably best to just pastebin.ca it. If it is showing you the code after putting it in the htdocs directory that means you found the right directory. Usually when php is not configured correctly on your web server it doesn't just show you the code, the mime type is not recognized and offers it as a download. So your browser would try to download "index.php" or whatever instead of just showing you raw php.
hahhaah.. I know what you're up to....
Here's how I did it before your modifications you're working on: http://i0v.net/matrix/

[SOLVED] Problem with editing build.prop

Hey guys,
I am facing the following problem:
Whenever I alter the build.prop I get stuck with red LED and black screen. It doesn't matter whether I edit it with root explorer or whether I edit the file inside the zip befor flashing.
Any ideas how to solve this?
Swift2603 said:
Whenever I alter the build.prop I get stuck with red LED and black screen.
Click to expand...
Click to collapse
+1
+push
Swift2603 said:
+push
Click to expand...
Click to collapse
Which ROM?
What are you trying to edit? What are you changing? It obviously does not like that change...
YetAnotherForumUser said:
Which ROM?
What are you trying to edit? What are you changing? It obviously does not like that change...
Click to expand...
Click to collapse
Oh yeah sorry...forgot to mention that...I just thought that other people might face this too...
I am on Quarx 11/02 build. I am trying to set the ring call delay from 3000ms to 300ms. I also tried to edit the values
ro.product.model from MB526 to MB525
ro.product.name from MB526_DFP to MB525_JOREM_U3
I touched nothing else.
thx in advance
Swift2603 said:
Oh yeah sorry...forgot to mention that...I just thought that other people might face this too...
I am on Quarx 11/02 build. I am trying to set the ring call delay from 3000ms to 300ms. I also tried to edit the values
ro.product.model from MB526 to MB525
ro.product.name from MB526_DFP to MB525_JOREM_U3
I touched nothing else.
thx in advance
Click to expand...
Click to collapse
Could you attach a modified version of build.prop for our perusal? /me wonders if there are spurious characters or character encodings in your edited copy...
Here it is.
CR/LF line terminators not welcome in build.prop...
Swift2603 said:
Here it is.
Click to expand...
Click to collapse
I assume you used Windows to edit that file as there are CR/LF line terminators. Try the attached version which follows the normal Unix convention of ending lines with a single LF (I removed the CR's from the file you sent). If you use Windows to edit Unix-based files (Android is a (somewhat out of the ordinary) Linux distribution) you need to make sure you don't mess up the line endings; use an editor which respects the file's existing line terminators, eg. Notepad++.
YetAnotherForumUser said:
I assume you used Windows to edit that file as there are CR/LF line terminators. Try the attached version which follows the normal Unix convention of ending lines with a single LF (I removed the CR's from the file you sent). If you use Windows to edit Unix-based files (Android is a (somewhat out of the ordinary) Linux distribution) you need to make sure you don't mess up the line endings; use an editor which respects the file's existing line terminators, eg. Notepad++.
Click to expand...
Click to collapse
Actually I edited it with the file viewer of the ESFileExplorer and it was saved in Unicode UTF-8. I tried to edit it with Notepad++ before but that also failed.
I will try it with your version and give feedback asap.
Thx!
EDIT: IT WORKS! Thanks again buddy!
Using the build.prop editor from the play store also solved the problem for me ... seems to be a issue from the ES file exploder?
Sent from my MB526 using xda app-developers app

Lumia 950/950XL Service level execution

Hi,
I've been able to use vcREG 1.5 on a 950XL to execute any exe file via services.exe, except it's getting stopped by Code Integrity. That's also why putting older NdtkSvc.dll doesn't work on the newer phone (aside from the fact that it has to be in c:\windows). I thought oh maybe any valid arm executable signed by microsoft would be enough, so I copied some executables from the Raspberry Pi Windows 10 IoT image, but I could only get them to run inside the app sandbox because they weren't in the system catalog :'(
Example:
21-March-2016 15:04:08.339601 0x000003D4 0x00000F88 Verbose Microsoft-Windows-CodeIntegrity Code Integrity completed validating file hash. Status 0xC0000428.
21-March-2016 15:04:08.339631 0x000003D4 0x00000F88 Error Microsoft-Windows-CodeIntegrity Code Integrity determined that a process (\Device\HarddiskVolume37\Windows\System32\services.exe) attempted to load \Device\HarddiskVolume39\WPSystem\ftpd.exe that did not meet the Windows signing level requirements.
So now the trick is to find an executable on the system that currently exists, that can be used to gain further access... I've been trying various things like OOBE stuff etc without any luck so far.
Hoping someone else has some ideas... maybe even executing a dll function to import registry from a file or something directly, then we could unlock interop on 950's..
Thanks
Great work
maybe you can MTP your 950/950xl and look for the files in the \windows folder
micheal
Can you tell me how to execute a exe via services.exe ? Thanks?
naiple said:
Can you tell me how to execute a exe via services.exe ? Thanks?
Click to expand...
Click to collapse
use vcREG1.5 to edit HKLM\SYSTEM\ControlSet001\Services\NlpmService\ImagePath
Change it to whatever executable you want, reboot and it will run as LOCAL SYSTEM, provided that it is signed correctly.
NOTE: Changing this will stop your Glance screen from working, so take note of the original value and restore it after you are done if you use glance.
megasounds said:
Great work
maybe you can MTP your 950/950xl and look for the files in the \windows folder
micheal
Click to expand...
Click to collapse
Actually using MTP isn't the best thing for that, because you are missing out on more than half of the available executable files as they are not viewable via MTP on 950/XL due to permissions. It's best to mount the FFU image and look around that way.
I have already looked and tested most of them, thus why I was asking if anyone else had some ideas.
darkfires said:
use vcREG1.5 to edit HKLM\SYSTEM\ControlSet001\Services\NlpmService\ImagePath
Change it to whatever executable you want, reboot and it will run as LOCAL SYSTEM, provided that it is signed correctly.
NOTE: Changing this will stop your Glance screen from working, so take note of the original value and restore it after you are done if you use glance.
Click to expand...
Click to collapse
Thanks! I will try it on my lumia
darkfires said:
use vcREG1.5 to edit HKLM\SYSTEM\ControlSet001\Services\NlpmService\ImagePath
Change it to whatever executable you want, reboot and it will run as LOCAL SYSTEM, provided that it is signed correctly.
NOTE: Changing this will stop your Glance screen from working, so take note of the original value and restore it after you are done if you use glance.
Click to expand...
Click to collapse
I can't find NlpmService because my lumia730 don't have a Glance screen ... is there any way else to run a exe?
naiple said:
I can't find NlpmService because my lumia730 don't have a Glance screen ... is there any way else to run a exe?
Click to expand...
Click to collapse
I only decompiled the NdtkSvc on 950XL, the one on 730 might be different. But to answer your question there is only one other way, and it will kill USB so you won't be able to connect to it via PC at all until you reverse the change. If you post your NdtkSvc.dll I can check it for you.
HKLM\SYSTEM\ControlSet001\Services\NokDeviceHubSvc\ImagePath
darkfires said:
I only decompiled the NdtkSvc on 950XL, the one on 730 might be different. But to answer your question there is only one other way, and it will kill USB so you won't be able to connect to it via PC at all until you reverse the change. If you post your NdtkSvc.dll I can check it for you.
HKLM\SYSTEM\ControlSet001\Services\NokDeviceHubSvc\ImagePath
Click to expand...
Click to collapse
Ahh, i find the Nlpmservice. Don't know why i cant find it yesterday... And if you need any thing(unlocked bootloader, uefi...) from 730 or 540 i can post it, both are prototype and can enter massStorage. Hope i can help you. Thank you for the answer
naiple said:
Ahh, i find the Nlpmservice. Don't know why i cant find it yesterday... And if you need any thing(unlocked bootloader, uefi...) from 730 or 540 i can post it, both are prototype and can enter massStorage. Hope i can help you. Thank you for the answer
Click to expand...
Click to collapse
I'm trying to do something different and I found this topic so if you still have these devices can you extract NlpmService.dll file from System32 and upload it here for me?

[GUIDE] Using TortoiseSVN and WinRAR to build Leedroid Rom

I have seen a lot of questions and issues with successfully building LeeDroid Rom using SVN. Here is a short guide for building and syncing using Tortoise SVN and zipping up a flashable zip with WinRAR on Win 10. This should work equally well on any other Win version. Mac users are on their own. This guide will aim to get you started, it is by no means comprehensive. Follow the guide carefully. It will take a few hours to complete it the first time through, mostly because of the time it takes for an initial sync, but the following syncs and builds should only take about five minutes from sync to flashable zip.
1. Download the latest TortoiseSVN and install it - I encourage you to read the website when you have the opportunity, especially reading the PDF for your language in the Support/Docs section.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
2. Create a folder for syncing to. I create a folder in the root of my C: drive and just name it "LeeBuilds". Feel free to name it how you please. Inside the LeeBuilds folder, create two folders. One for syncing to and one for output. So I made two folders, "Sync" and "Output".
3. Go to the LeeDroid website and select your device. In this case the U11, so click on U11.
4. After clicking on U11, a pop-up window will appear with an SVN address. Highlight the URL and right-click to copy it. DO NOT include the "[email protected]:~$" portion, only the part beginning with "svn..." and ending with "...trunk". *Remember to check the URL closely after copying to TortoiseSVN to be sure you sync the correct device*
5. Go back to the sync folder you created and right click on it and hit "SVN Checkout".
Since you copied the SVN URL from the LeeDroid site, the URL to sync with will be automatically populated. *BE SURE to closely double check the URL and make sure it points to the U11. You don't want to sync for the wrong device!* Simply tap ok and you will begin to sync. You can always go back to the Leedroid site to copy the URL again if needed. Again, be sure to not include the "[email protected]:~$" portion. Depending on internet speed, an initial sync can take 15 minutes to a couple hours to complete.
----a standard SVN sync in progress window looks like this
6. After syncing is complete, you will see the LeeDroid rom version number you are synced to.
7. You can now close the SVN sync window and right-click on the Sync folder again. Move the cursor over "Tortoise SVN" and click on "Export".
-----There are hidden files and folders in your sync folder. You MUST use the "Export" function to include only files and folders needed for making a flashable zip.
8. Select your Output folder to export to and tap "Select Folder". Your export will begin.
9. After the export finishes, you're done with the syncing part! Download and install the latest WinRAR.
10. Go to your output folder and select all the files including the boot.img in the folder, right-click on your selection, move the cursor to WinRar and select "add to archive".
11. In the pop-up, be sure to hit the "zip" radio button and rename your zip to whatever you like and then hit "ok".
You're finished! Transfer the zip to your phone and flash in recovery like normal. For following updates, right-click the sync folder and an "SVN update" option will appear in the context menu. Click the update button, delete the files that were in your output folder, export to the output folder and then zip and flash. You can always refer to the steps above if you encounter an error somewhere or need to start over. Hope this helps.
Thank you for the guidance! It's very detailed and easy to use!
DroidIt! said:
I have seen a lot of questions and issues with successfully building LeeDroid Rom using SVN. Here is a short guide for building and syncing
You're finished! Transfer the zip to your phone and flash in recovery like normal. For following updates, right-click the sync folder and an "SVN update" option will appear in the context menu. Click the update button, delete the files that were in your output folder, export to the output folder and then zip and flash. You can always refer to the steps above if you encounter an error somewhere or need to start over. Hope this helps.
Click to expand...
Click to collapse
Thank you for the guide, I have tried per your instructions but I get a error (see Attach) when I try the initial download. Is it not working or am I messing up? Thanks
dioooi said:
Thank you for the guidance! It's very detailed and easy to use!
Click to expand...
Click to collapse
Great to hear.
hammered58 said:
Thank you for the guide, I have tried per your instructions but I get a error (see Attach) when I try the initial download. Is it not working or am I messing up? Thanks
Click to expand...
Click to collapse
I have seen that before. Sometimes, maybe one in twenty, the connection with the server will time out for whatever reason. What I'd do is just delete your sync folder to make sure it's clean, make a new one and try another sync. You should get a good sync. It CAN depend on your internet connection too.
DroidIt! said:
Great to hear.
I have seen that before. Sometimes, maybe one in twenty, the connection with the server will time out for whatever reason. What I'd do is just delete your sync folder to make sure it's clean, make a new one and try another sync. You should get a good sync. It CAN depend on your internet connection too.
Click to expand...
Click to collapse
Ok thanks will try!
hammered58 said:
Thank you for the guide, I have tried per your instructions but I get a error (see Attach) when I try the initial download. Is it not working or am I messing up? Thanks
Click to expand...
Click to collapse
IT looks like the URLin the pic may be incorrect. It should be:
http://www.renovate-ice.com/svn/leedroid-11/trunk
Try starting again.
jhill110 said:
IT looks like the URLin the pic may be incorrect. It should be:
http://www.renovate-ice.com/svn/leedroid-11/trunk
Try starting again.
Click to expand...
Click to collapse
Uhoh, I was afraid of that. Yeap, you need to CLOSELY check the SVN URL as I say in the guide. I saw the same thing yesterday when I went to copy/paste the URL. It seems for whatever reason it wants to default to the 10. I actually let Lee know about it. I added to check the URL in the guide after I discovered that. Easy fix though, you can just change the "10" in the URL to "11" and you'll be just fine. :good:
DroidIt! said:
Uhoh, I was afraid of that. Yeap, you need to CLOSELY check the SVN URL as I say in the guide. I saw the same thing yesterday when I went to copy/paste the URL. It seems for whatever reason it wants to default to the 10. I actually let Lee know about it. I added to check the URL in the guide after I discovered that. Easy fix though, you can just change the "10" in the URL to "11" and you'll be just fine. :good:
Click to expand...
Click to collapse
Well, it looks correct until after "trunk". There's extra characters. It's fine until then.
Great guide. I'm leaning towards user error on the copy somehow.
jhill110 said:
Well, it looks correct until after "trunk". There's extra characters. It's fine until then.
Great guide. I'm leaning towards user error on the copy somehow.
Click to expand...
Click to collapse
The only thing I see in the pic after "trunk" is a "I". That's just the cursor animation from the website. Do you see more characters after "trunk"?
DroidIt! said:
The only thing I see in the pic after "trunk" is a "I". That's just the cursor animation from the website. Do you see more characters after "trunk"?
Click to expand...
Click to collapse
Yes, /%7c after trunk, then doesn't exist.
jhill110 said:
Yes, %7c after trunk, then doesn't exist.
Click to expand...
Click to collapse
That's really weird. I just tried Lee's site on both Chrome and Edge and didn't see that. I'll let him know. Thanks a ton for the report. :good:
DroidIt! said:
That's really weird. I just tried Lee's site on both Chrome and Edge and didn't see that. I'll let him know. Thanks a ton for the report. :good:
Click to expand...
Click to collapse
It worked perfectly fine for me. First time using tortoise and no problem.
jhill110 said:
It worked perfectly fine for me.
Click to expand...
Click to collapse
Lol, now I'm confused. Worked good with or without the %7c?
Ok, to clinch it all I heard from THE MAN. Either copy/paste and make sure it looks like it does in the pic, or just type it out in the URL field. Any strange characters you might see are PHP used for the cursor animation. Soooo, lol just follow the guide and check the URL when you come to that part. Simple solution.
DroidIt! said:
Lol, now I'm confused. Worked good with or without the %7c?
Click to expand...
Click to collapse
No worries, I'm probably not explaining properly.
I copied "http://www.renovate-ice.com/svn/leedroid-11/trunk"
And it worked great for me.
Looking at the error line in his pic it's :
http://www.renovate-ice.com/svn/leedroid-11/trunk/|.
It appears to be looking for /%7c in the url and not being correct it throws the error.
Like I mentioned it sounds like the url copy got messed up some how for him.
jhill110 said:
No worries, I'm probably not explaining properly.
I copied "http://www.renovate-ice.com/svn/leedroid-11/trunk"
And it worked great for me.
Looking at the error line in his pic it's :
http://www.renovate-ice.com/svn/leedroid-11/trunk/|.
It appears to be looking for /%7c in the url and not being correct it throws the error.
Like I mentioned it sounds like the url copy got messed up some how for him.
Click to expand...
Click to collapse
Ahhh, gotcha. Yeap, should end with the "trunk". Maybe I should add that in the guide. Thanks for the catch.
Edit: fixed on #4 in the guide. :good:
for what do I need the output folder for? if I export, then exactly the same files are included as in the sync folder.
and the data folder is not available for me.
4ntagonist said:
for what do I need the output folder for? if I export, then exactly the same files are included as in the sync folder.
and the data folder is not available for me.
Click to expand...
Click to collapse
There's hidden files and folders in the Sync folder. If you zip up from there you'll likely not have a bootable rom...or it'll be borked. So, that's the propose for the second folder. Not sure what you mean about the data folder though.
DroidIt! said:
There's hidden files and folders in the Sync folder. If you zip up from there you'll likely not have a bootable rom...or it'll be borked. So, that's the propose for the second folder. Not sure what you mean about the data folder though.
Click to expand...
Click to collapse
I have activated hidden files & folders in explorer. You are right, here is the comparison. But I have always packed the files from my one sync folder. If I do not pack the hidden folder .svn, it is exactly the same data. The ROMs have always worked. But I am doing it now according to your instructions. And I meant the folder from your screenshot that you named data, seen in step 11. I do not have it.
4ntagonist said:
I have activated hidden files & folders in explorer. You are right, here is the comparison. But I have always packed the files from my one sync folder. If I do not pack the hidden folder .svn, it is exactly the same data. The ROMs have always worked. But I am doing it now according to your instructions. And I meant the folder from your screenshot that you named data, seen in step 11. I do not have it.
Click to expand...
Click to collapse
Lol, honestly don't know where it came from. I just checked my SVN folders for the 10 and the 11, I don't have it either. Some little buggers to fix up in the pics.
FYI, I figured out that if you copy/paste the URL's from Lee's site to SVN, the URL's are backwards, meaning that if you copy the 11 link, it'll paste the 10 URL into Tortoise and vice-versa. Soooo, statement still stands. Double-check your pasted URL when you do your init sync. If the URL says "10" simply chance it to "11" or whatever you desire and all's good. :good:

Categories

Resources